#1281: Indexing / geometry / avoid multicurve GML feature
---------------------+------------------------------------------------------
Reporter: fxp | Owner: geonetwork-devel@…
Type: defect | Status: new
Priority: minor | Milestone: v2.11.0
Component: General | Version: v2.11.0
Keywords: |
---------------------+------------------------------------------------------
When extracting bounding "polygon", we may end up trying to convert
MultiCurve to Polygon which trigger errors and record is not indexed. Do
not support MultiCurve in indexing (we can't mix geometries in shapefile
BTW)
{{{
<!-- MIKADO AUTOMATIC var63=[-76.816333 ... -57.079131] (Curves-
coordinates) MULTIPLE / OPTIONAL -->
<gml:posList>-76.816333 -36.777203 -77.192141 -43.722611 -80.198605
-47.195299 -78.319565 -50.400867 -74.561741 -54.674947 -70.052045
-57.079131</gml:posList>
</gml:LineString>
</gml:curveMember>
</gml:MultiCurve>
class com.vividsolutions.jts.geom.MultiLineString cannot be
converted to a polygon. Check Metadata
java.lang.IllegalArgumentException: class
com.vividsolutions.jts.geom.MultiLineString cannot be converted to a
polygon. Check Metadata
at
org.fao.geonet.kernel.search.spatial.SpatialIndexWriter.toMultiPolygon(SpatialIndexWriter.java:453)
}}}
--
Ticket URL: <http://trac.osgeo.org/geonetwork/ticket/1281>
GeoNetwork opensource Developer website <http://sourceforge.net/projects/geonetwork/>
GeoNetwork opensource is a standards based, Free and Open Source catalog application to manage spatially referenced resources through the web. It provides powerful metadata editing and search functions as well as an embedded interactive web map viewer. This website contains information related to the development of the software.