Package com.vividsolutions.jtstest.function

Source Code of com.vividsolutions.jtstest.function.PreparedGeometryFunctions

package com.vividsolutions.jtstest.function;

import com.vividsolutions.jts.geom.Geometry;
import com.vividsolutions.jts.geom.prep.PreparedGeometry;
import com.vividsolutions.jts.geom.prep.PreparedGeometryFactory;

public class PreparedGeometryFunctions
{
  private static PreparedGeometry createPG(Geometry g)
  {
    return (new PreparedGeometryFactory()).create(g);
  }
 
  public static boolean preparedIntersects(Geometry g1, Geometry g2)
  {
    return createPG(g1).intersects(g2);
  }
 
  public static boolean intersects(Geometry g1, Geometry g2)
  {
    return g1.intersects(g2);
  }
 

}
TOP

Related Classes of com.vividsolutions.jtstest.function.PreparedGeometryFunctions

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.