[mapguide-users] Precision when selecting polygons
Dave Wilson
dave.wilson at autodesk.com
Wed Apr 16 16:20:53 EDT 2008
If you are using MGOS 2.0 then you can theme on the joined columns. You can't in the 1.2 version. A join between an SHP and a table in MySQL should work in 2.0 and allow selection since the selection is based on the SHP. The searching should also work on the join since theming and searching are both filters.
The selection problem is specific to MySQL so having all your data in MySQL won't work.
Dave
-----Original Message-----
From: mapguide-users-bounces at lists.osgeo.org [mailto:mapguide-users-bounces at lists.osgeo.org] On Behalf Of Krunoslav
Sent: Wednesday, April 16, 2008 12:21 PM
To: mapguide-users at lists.osgeo.org
Subject: RE: [mapguide-users] Precision when selecting polygons
Dave Wilson-3 wrote:
>
> MySQL only does Envelope operations.
>
> For example when selecting MapGuide might do an Intersect spatial
> operation; however, MySQL (at least version 5 and earlier) only does
> Envelope Intersects so you won't always get the results you expect
> depending on how the polygons sit next to each other.
>
> This is a known issue with MySQL. I'm not sure if they have resolved this
> in later versions.
>
>
Thank you for your answer. Since I have all data in mysql tables, I created
new Geometry column, converted my SHP to mysql with shp2mysql tool, so I
have everything in same table.
It seemed perfect, but obviously it won't work this way.
Since I have to use styling which is related to property in one column, I
also tried to use SHP <-> MySQL join, without geometry data in mysql. I can
get properties from mysql table, but layer isn't themed, I don't know why,
all parcels are the same color, even if mapguide studio can "pull"
properties from the table.
Same procedure works fine when everything (converted SHP) is in mysql, but
there is problem as mentioned above.
So, is there any solution for this or should I give up from using mysql?
Anyway, before starting on a project:
I have few shp files and data tables in Excel (which I can easely convert to
mysql tables). What would you recommend for next things to work?
1. Properly selecting polygons
2. Searching (regarding to some property from table)
3. Themes (also regarding to one column in table).
What database to use and how to join this together?
Sorry for my bad english and thank you in advance.
--
View this message in context: http://www.nabble.com/Precision-when-selecting-polygons-tp16718926s16610p16728445.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
More information about the mapguide-users
mailing list