Hi,
I have a process that is using the Zip 5 code shapfile from the US Census and the Counties shapfile from the census.I issue a query for each Zip 5 in order to know the relationship Zip <> County.
Collection<Feature> _Zips = ZIPS.FeatureSource.GetFeaturesByColumnValue("ZCTA5CE10", _zPTCD.Key.ToString(), ReturningColumnsType.AllColumns);
if (_Zips.Count > 0)
{
Collection<Feature> _Counties = COUNTIES.FeatureSource.SpatialQuery(_Zips[0], QueryType.Contains, ReturningColumnsType.AllColumns);
foreach (Feature _cnty in _Counties)
I got this exception in my code :
GisSharpBlog.NetTopologySuite.Geometries.TopologyException occurred
Message=side location conflict [ (-98.918045, 37.379078, NaN) ]
Source=NetTopologySuite
StackTrace:
at GisSharpBlog.NetTopologySuite.GeometriesGraph.EdgeEndStar.PropagateSideLabels(Int32 geomIndex)
at GisSharpBlog.NetTopologySuite.GeometriesGraph.EdgeEndStar.ComputeLabelling(GeometryGraph[] geom)
at GisSharpBlog.NetTopologySuite.Operation.Relate.RelateComputer.LabelNodeEdges()
at GisSharpBlog.NetTopologySuite.Operation.Relate.RelateComputer.ComputeIM()
at GisSharpBlog.NetTopologySuite.Operation.Relate.RelateOp.get_IntersectionMatrix()
at GisSharpBlog.NetTopologySuite.Operation.Relate.RelateOp.Relate(IGeometry a, IGeometry b)
at GisSharpBlog.NetTopologySuite.Geometries.Geometry.Relate(IGeometry g)
at GisSharpBlog.NetTopologySuite.Geometries.Geometry.Contains(IGeometry g)
at ThinkGeo.MapSuite.Core.BaseShape.ContainsCore(BaseShape targetShape)
at ThinkGeo.MapSuite.Core.BaseShape.Contains(BaseShape targetShape)
at ThinkGeo.MapSuite.Core.MultipolygonShape.ContainsCore(BaseShape targetShape)
at ThinkGeo.MapSuite.Core.BaseShape.Contains(BaseShape targetShape)
at ThinkGeo.MapSuite.Core.FeatureSource.ABQ=(BaseShape ARQ=, IEnumerable`1 AhQ=)
at ThinkGeo.MapSuite.Core.FeatureSource.SpatialQueryCore(BaseShape targetShape, QueryType queryType, IEnumerable`1 returningColumnNames)
at ThinkGeo.MapSuite.Core.FeatureSource.SpatialQuery(BaseShape targetShape, QueryType queryType, IEnumerable`1 returningColumnNames)
at ThinkGeo.MapSuite.Core.FeatureSource.SpatialQuery(Feature feature, QueryType queryType, IEnumerable`1 returningColumnNames)
at ThinkGeo.MapSuite.Core.FeatureSource.SpatialQuery(Feature feature, QueryType queryType, ReturningColumnsType returningColumnNamesType)
at GEOWEB_I_T_B.Global.Application_Start(Object sender, EventArgs e) in C:\Users\a09zmzz\Documents\Visual Studio 2010\Projects\GeoSpatial\GEOWEB_I_T_B\Global.asax.cs:line 263
InnerException:
thanks for your help!