The GeoXml it was designed for was largely that coming out of a WFS or some of that in GeoRSS
SRSname =EPSG:25831 is a useful alert... Having your coordinates in a projection other than lat lon... can be a real issue though I was able to do some primitive conversions its been awhile since Ive dealt with that part of the code. I seem to recall if you had a LatLonBox or similar flag along side the envelope it would use a crude transformation on all the points. <gml:boundedBy> <gml:Envelope srsName="EPSG:25831" srsDimension="2"> <gml:lowerCorner>440265.2785 4379722.6861</gml:lowerCorner> <gml:upperCorner>533244.7182 4414715.0209</gml:upperCorner> </gml:Envelope> </gml:boundedBy> Hmmm looks like there is no basis in the data to make such a transformation... Martin wrote: > Thanks for the info. > > Just noticed that i managed to omit a link to the actual map page in > my previous post so i'll include a link to the latest page where i am > trying to parse the GML file here: > http://googlemapsapi.martinpearman.co.uk/user_maps/bellamallorca.dk/kort.bellamallorca.dk.20091001a/kort/gml.htm > > I see Lance has tried a workaround with code such as: > > var linestring=mark.getElementsByTagName("LineString"); > if(linestring.length <1){ > linestring=mark.getElementsByTagName("gml:LineString"); > // etc > } > > I've been experimenting and added a GLog to the loop that creates the > polylines. > Outputting the 'lines' array of points from which the polylines should > be created. > > The output of the GLog statement doesn't look very promising, with > what looks to be a value of 90 for all latitude values: > > (90, 141.1708000000217),(90, 134.0680000000284),(90, > 133.75599999999395),(90, 137.5),(90, 142.49200000002747) > > Give the map sidebar (underneath the map) a click, sidebar links that > do anything seem to pan the map off to 90 degrees north so i wonder if > GeoXml is not converting the GML coords properly... > > Loading the map in IE7 i get an alert that says: 'SRSname =EPSG:25831; > attempting to create transform'. > > I don't get that alert in any other browser; i've tried FF3, Opera 10, > latest Chrome and Safari 4. > > So i'm no further forward. > Can GeoXml handle the coordinate format used in the GML file i wish to > render? > > Martin. > > PS My aim is only to extract the polyline routes from the GML so if > anyone has any idea how to do so without using GeoXml i'd be very > interested to hear! > > On 2 Oct, 10:48, Andrew Leach <[email protected]> wrote: > >> On Oct 1, 4:00 am, Martin <[email protected]> wrote: >> >> >> >> >>> I can see in Firebug's console that both functions processing() and >>> processGML() are passing an undefined value in their arguments for >>> what should be a GLatLng value. >>> >>> Has anyone got any ideas to help me get GeoXml working and extract the >>> polyline data from the GML file? >>> >> This is probably one for Lance, but geoxml.js contains lines like >> this: >> coordset=mark.getElementsByTagName("gml:coordinates"); >> which won't work in Firefox. Firefox doesn't understand namespaces in >> the same way as IE, and would need something like >> coordset=mark.getElementsByTagNameNS("http://www.opengis.net/ >> gml","coordinates"); >> >> KML doesn't use a namespace in the same way [with the exception of >> Google's gx: extension], so Firefox is happy with getElementsByTagName >> (). >> >> Andrew > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
No virus found in this outgoing message. Checked by AVG - www.avg.com Version: 8.5.409 / Virus Database: 270.14.3/2412 - Release Date: 10/03/09 18:34:00
