[mapguide-users] show one symbol for each polygon. (GordonL)

Olcay Ebcin olcay.ebcin at odakent.com.tr
Mon Oct 7 02:45:44 PDT 2013


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 <gordon.luckett at arrowgeomatics.com>
To: mapguide-users at lists.osgeo.org
Subject: Re: [mapguide-users] show one symbol for each polygon.
Message-ID: <1381076275984-5082062.post at n6.nabble.com>
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 <gordon.luckett at arrowgeomatics.com>
To: mapguide-users at lists.osgeo.org
Subject: Re: [mapguide-users] GetFeatureInfo Not Returning Point
	Attributes
Message-ID: <1381076566360-5082063.post at n6.nabble.com>
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
mapguide-users at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users

End of mapguide-users Digest, Vol 82, Issue 6
*********************************************



More information about the mapguide-users mailing list