Thanks Gordon, I use postgis and I get centroid by st_centroid(the geom). I can create view aswell.
However, I think that there should be an easy solution to show symbols in the center of polygon features. Maybe, I should write somewhere st_centroid(the geom) to re-position the symbol. Currently, it doesnt seem useful to show symbols in all vertices of the polygon. Regards, Olcay ---------------------------------------------------------------------- Message: 1 Date: Sun, 6 Oct 2013 09:17:55 -0700 (PDT) From: GordonL <[email protected]> To: [email protected] Subject: Re: [mapguide-users] show one symbol for each polygon. Message-ID: <[email protected]> Content-Type: text/plain; charset=UTF-8 You might have to get the centroids of the polygons using your dataset first. For example, if you are using Oracle spatial, select SDO_GEOM.SDO_CENTROID(mygeom,0.005) as myCentoidGeom from mySpatialTable or if you are using SQL Server: select mygeom.STCentroid() as myCentroidGeom from mySpatialTable and so on? gordon ps. You can create a view doing this and then you will have to either apply a constraint (Oracle) or SCHEMABINDING with index (SQL Server) or use Jackie's technique of overriding the schema but you have to do this each time your database changes - http://themapguyde.blogspot.ca/2010/09/using-fdo-schema-overrides-redux.html It would be nice to do Schema Overrides within Maestro (or Studio)?. -- View this message in context: http://osgeo-org.1560.x6.nabble.com/show-one-symbol-for-each-polygon-tp50816 69p5082062.html Sent from the MapGuide Users mailing list archive at Nabble.com. ------------------------------ Message: 2 Date: Sun, 6 Oct 2013 09:22:46 -0700 (PDT) From: GordonL <[email protected]> To: [email protected] Subject: Re: [mapguide-users] GetFeatureInfo Not Returning Point Attributes Message-ID: <[email protected]> Content-Type: text/plain; charset=us-ascii Ok, since the WMS getFeatureInfo is not working in MapGuide 2.5 (64 bit windows). I decided to select features another way, I used Johan's awesome little hook with JQUERY and MapGuide on OpenLayers to getSelectedFeatures.php rather than the built-in WMS getFeatureInfo. http://blog.gisky.be/2013/02/using-mapguideselection-with-openlayers.html This is a pretty neat fix since it used both OpenLayers and jQuery and not the jxlib that Fusion uses. Slick. -- View this message in context: http://osgeo-org.1560.x6.nabble.com/GetFeatureInfo-Not-Returning-Point-Attri butes-tp5080008p5082063.html Sent from the MapGuide Users mailing list archive at Nabble.com. ------------------------------ _______________________________________________ mapguide-users mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/mapguide-users End of mapguide-users Digest, Vol 82, Issue 6 ********************************************* _______________________________________________ mapguide-users mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/mapguide-users
