Closed (outdated)
Project:
Geocode
Version:
6.x-1.0-alpha2
Component:
Documentation
Priority:
Normal
Category:
Support request
Assigned:
Reporter:
Created:
19 Dec 2009 at 19:20 UTC
Updated:
10 Apr 2025 at 12:04 UTC
Jump to comment: Most recent
Comments
Comment #1
allie mickaI think this is likely an issue with GMAP or whatever you are using to display the line?
Please go to your "Display settings" for the field you created in step 2 (the Geo field), and change it to something like "Default", "Well known text", etc.
If you get something to show up there, then the issue is more likely Gmap's dealings with the linestring data.
Thanks!
Comment #2
steinmb commentedI have tested this with the alpha 2 release and it is working perfect. Have you tested with WKT as Allie suggested in #1?
Comment #3
dubs commentedThanks for getting back - I've been so busy I haven't checked until now. I've discovered that the GPX files I was sent by the client were incorrectly formatted. The XML was using slightly different attribute names for the points. I've altered the files, and they work just fine.
Sorry about that - the module seems to work fine.
Comment #4
bento_box commentedIt looks like Dubs solved his problem, but unfortunately I'm not having any luck either... and trying multiple gpx files doesn't seem to help.
I've added a filefield which allows me to upload a gpx file. I also have a Geospatial Data cck type with Geocoded value from another field selected. Then, I reference the filefield.
This all seems to work fine... but when I go to to view the node, neither the Openlayers map displays, nor does the wkt info (depending on what I have the display settings set at).
Any clue what could be going wrong here? Since the wkt info doesn't show up, I'm guessing there is some problem here parsing the gpx file. Any suggestions? Anyone have a sample gpx file that they know works?
Comment #5
bento_box commentedI may have discovered the source of the problem. Geocode from a text file and image worked, leading me to believe there was some problem with gpx files in particular. I checked the filefield.inc file in Geocode and noticed that it looks for the '.gpx' using substr($filename, -4) -- which, from what I understand takes the filename and truncates the last four digits. For example, roadname.gpx would be taken as just .gpx. Now, I've noticed that all of my test files have the extension .gpx.xml ... and thus, wouldn't detect the uploaded file as a gpx file.
I'll fiddle around to see if I can get things working and see if this really is the source of my problem.
Comment #6
dejanstveni commentedHello,
I have created CCK file field to upload GPX file.
I also created another filed - Geospatial data, with Widget type: Geocoded value from another field. Then I referenced my first file field (checked my first file field under Geocode handler with Return value - linestring).
Display setting for geo field is Well Known Text, like Allie Micka suggested.
When I view a node, I can only see LINESTRING(21.831780555556 43.618994444444, 21.832536111111... )
instead gpx route on a GMAP.
How to display gpx line on a google map? Please help if it is possible!!!
Comment #7
steinmb commentedClose as outdated.