Hot answers tagged

3

This is the question/response I got from oracle's spatial expert in Europe in 2014. q: Does oracle have the concept of an empty geometry? If so can you give me an example? Would this be a valid way of creating an empty point? SDO_GEOMETRY(2001, NULL, SDO_POINT_TYPE(NULL, NULL, NULL), NULL, NULL) My initial reaction was there is no such thing as an empty ...


1

After some exploring (and looking hard at the GeoServer code) I think this is a documentation fail (updated now). The short answer is that you need to add a dependency on gt-svg to your project so that your code has access to SVGGraphicFactory which is used to convert the SVG found at the URL to an icon to be drawn. So just add this to your pom.xml: &...


1

As Aileen said, Oracle has no specific concept of an EMPTY geometry as differentiated from a straight NULL geometry. All spatial operations involving NULL geometries behave according to the regular rules for NULLs in relational algebra - put simply: anything combined with NULL is NULL. I just realized that there is specific syntax in the WKT notation to ...


1

I am not sure if this is a more efficient way but you could also compare the area of the input polygon to the area of the convex hull of the same polygon. Idea: The area of the convex hull of a concave polygon is always bigger then the area of the concave polygon itself. Simple method: public static boolean isConvexPolygon(Polygon p){ // calculate ...



Only top voted, non community-wiki answers of a minimum length are eligible