<div> </div>
<div>Hi All,</div>
<div> </div>
<div>Intersection problem:</div>
<div> </div>
<div>I have an application performs a query on a polygon layer with a point - using intersection with the spatialfilter.</div>
<div> </div>
<div>The problem is this:</div>
<div> </div>
<div>The polygon originated from a shapefile - loaded as SDF via studio.</div>
<div>The single polygon feature originally was 2 distinct polygons dissolved together via ArcMap.</div>
<div> </div>
<div>The intersection works only on one of the polygons, and fails to return a feature reader at all when within the other polygon.</div>
<div> </div>
<div>This fails in both code execution and as a GeFeatureInfo WMS request in the same manner.</div>
<div> </div>
<div>Has anyone encountered this?</div>
<div>Has anyone worked around?</div>
<div> </div>
<div>Is it better to explode the feature? I require the geometery from each part to do a highlight.</div>
<div> </div>
<div>Is there an issue with how a shapefile multipolygon is converted to SDF?</div>
<div>Or is this an isse with the SelectFeatures functionality?</div>
<div> </div>
<div> </div>
<div> </div>
<div>Cheers,</div>
<div> </div>
<div> </div>
<div>Kori Maleski</div>
<div> </div>
<div> </div>
<div> </div>
<div> </div>
<div>$geometryFactory = new MgGeometryFactory();<br> <br> // create a coordinate<br> $coordinate = $geometryFactory->CreateCoordinateXY($x,$y);<br> <br> // create a point<br> $point = $geometryFactory->CreatePoint($coordinate);<br>
<br> $queryOptions = new MgFeatureQueryOptions();<br> $queryOptions->SetSpatialFilter('Geometry',$point,MgFeatureSpatialOperations::Intersects);<br> <br> <br> $layerResource = new MgResourceIdentifier($layerdefinition); <br>
$layer = new MgLayer($layerResource, $resourceService);<br> <br> <br> $layerClassName = $layer->GetFeatureClassName();<br> <br> $layerFeatureId = $layer->GetFeatureSourceId(); <br> $layerFeatureResource = new MgResourceIdentifier($layerFeatureId); <br>
$layerId = $layer->GetObjectId(); <br> <br> $featureReader = $featureService->SelectFeatures($layerFeatureResource,$layerClassName,$queryOptions); </div>
<div> </div>
<div> </div>
<div> </div>
<div> </div>