So I have a map I'm working to build: and to build it I've created a
mySQL database table from the shapes within a shape file.  I'm taking
the multipolygon() values and recoding the coordinates as an array.
Everything seems great, except that some of the multipolygons really
are MULTI.  The text of the PhP I'm working with is here:

http://freeforthepicking.com/Query/changedpamela16.txt

You can see the output of the above file by saving the following, and
giving it a KML extension:

http://freeforthepicking.com/Query/changedpamela16.php

Essentially my problem is that my PhP doesn't know how to properly
process the contents of a multipolygon with more than one polygon.

What I need the PhP to do is assess and do something different each
time a multipolygon is encountered (MOST of the polygons in the
dataset are not multi, just single polygons even though they are
stored as multipolygon).  Namely, instead of just taking the array of
coordinates and parsing it out - it needs to split it into two arrays,
each one under their own separate polygon tag in the KML.  I am okay
with the manipulation of the string within the while loop: but what I
need to do is a conditional loop WITHIN the first while loop that
creates that second (or third) polygon.

I'm learning, and I think pretty fast- but a tip from someone who
knows PhP better than I do would be really helpful.  Just a basic
approach would be fine - no need to rewrite code for me I can struggle
through that on my own.

I'm sure someone has dealt with this already in the past.

Dom
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Maps API" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/Google-Maps-API?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to