<div>In the studio preview, it fails as well.</div>
<div> </div>
<div>Using the select tool, clicking on one polygon will highlight/select the entirety, while clicking on the other will yield no highlight/select.</div>
<div> </div>
<div> </div>
<div>Cheers,</div>
<div> </div>
<div>Kori Maleski</div>
<div> </div>
<div><br><br> </div>
<div class="gmail_quote">On Thu, Jan 15, 2009 at 10:16 AM, Kori Maleski <span dir="ltr"><<a href="mailto:kori.maleski@gmail.com">kori.maleski@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<div>Mark,</div>
<div> </div>
<div>I have attached a shapefile with one of the polygons in question. The spatialfilter fails on any dissolve multipolygon like this one.</div>
<div> </div>
<div>Again, I converted it to sdf via a load procedure.</div>
<div> </div>
<div> </div>
<div>Cheers,<br></div>
<div>Kori Maleski</div>
<div> </div>
<div><br> </div>
<div class="gmail_quote">
<div>
<div></div>
<div class="Wj3C7c">On Thu, Jan 15, 2009 at 10:08 AM, Mark Pendergraft <span dir="ltr"><<a href="mailto:markp@meadgilman.com" target="_blank">markp@meadgilman.com</a>></span> wrote:<br></div></div>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<div>
<div></div>
<div class="Wj3C7c">
<div lang="EN-US" vlink="purple" link="blue">
<div>
<p><span style="FONT-SIZE: 11pt; COLOR: #1f497d">Could you upload your SDF file with the 2 polygons?</span></p>
<p><span style="FONT-SIZE: 11pt; COLOR: #1f497d">-Mark P.</span></p>
<p><span style="FONT-SIZE: 11pt; COLOR: #1f497d"> </span></p>
<div style="BORDER-RIGHT: medium none; PADDING-RIGHT: 0in; BORDER-TOP: #b5c4df 1pt solid; PADDING-LEFT: 0in; PADDING-BOTTOM: 0in; BORDER-LEFT: medium none; PADDING-TOP: 3pt; BORDER-BOTTOM: medium none">
<p><b><span style="FONT-SIZE: 10pt">From:</span></b><span style="FONT-SIZE: 10pt"> <a href="mailto:mapguide-users-bounces@lists.osgeo.org" target="_blank">mapguide-users-bounces@lists.osgeo.org</a> [mailto:<a href="mailto:mapguide-users-bounces@lists.osgeo.org" target="_blank">mapguide-users-bounces@lists.osgeo.org</a>] <b>On Behalf Of </b>Kori Maleski<br>
<b>Sent:</b> Thursday, January 15, 2009 9:03 AM<br><b>To:</b> MapGuide Users Mail List<br><b>Subject:</b> [mapguide-users] Polygons and Intersection Problem</span></p></div>
<div>
<div></div>
<div>
<p> </p>
<div>
<p> </p></div>
<div>
<p>Hi All,</p></div>
<div>
<p> </p></div>
<div>
<p>Intersection problem:</p></div>
<div>
<p> </p></div>
<div>
<p>I have an application performs a query on a polygon layer with a point - using intersection with the spatialfilter.</p></div>
<div>
<p> </p></div>
<div>
<p>The problem is this:</p></div>
<div>
<p> </p></div>
<div>
<p>The polygon originated from a shapefile - loaded as SDF via studio.</p></div>
<div>
<p>The single polygon feature originally was 2 distinct polygons dissolved together via ArcMap.</p></div>
<div>
<p> </p></div>
<div>
<p>The intersection works only on one of the polygons, and fails to return a feature reader at all when within the other polygon.</p></div>
<div>
<p> </p></div>
<div>
<p>This fails in both code execution and as a GeFeatureInfo WMS request in the same manner.</p></div>
<div>
<p> </p></div>
<div>
<p>Has anyone encountered this?</p></div>
<div>
<p>Has anyone worked around?</p></div>
<div>
<p> </p></div>
<div>
<p>Is it better to explode the feature? I require the geometery from each part to do a highlight.</p></div>
<div>
<p> </p></div>
<div>
<p>Is there an issue with how a shapefile multipolygon is converted to SDF?</p></div>
<div>
<p>Or is this an isse with the SelectFeatures functionality?</p></div>
<div>
<p> </p></div>
<div>
<p> </p></div>
<div>
<p> </p></div>
<div>
<p>Cheers,</p></div>
<div>
<p> </p></div>
<div>
<p> </p></div>
<div>
<p>Kori Maleski</p></div>
<div>
<p> </p></div>
<div>
<p> </p></div>
<div>
<p> </p></div>
<div>
<p> </p></div>
<div>
<p>$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); </p></div>
<div>
<p> </p></div>
<div>
<p> </p></div>
<div>
<p> </p></div>
<div>
<p> </p></div></div></div></div></div><br></div></div>_______________________________________________<br>mapguide-users mailing list<br><a href="mailto:mapguide-users@lists.osgeo.org" target="_blank">mapguide-users@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/mapguide-users" target="_blank">http://lists.osgeo.org/mailman/listinfo/mapguide-users</a><br><br></blockquote></div><br></blockquote></div><br>