Hi,<div><br></div><div>I ran into an error while trying to use pgsql2shp to export a table of geography LINESTRING() objects:</div><div><br></div><div><div>[XXX~]$ [XXX]/pgsql2shp -f testfile -p 58456 geo_test global_points</div>
<div>Initializing... Done (postgis major version: 1).</div><div>Output shape: PolyLine</div><div><b>Dumping: XERROR: parse error - invalid geometry</b></div></div><div><br></div><div><br></div><div><br></div><div>This above table was constructed by passing a series of user generated lat/long points to a php function that then constructed a LINESTRING() string to insert into the global_points table using pg_query().  I thought perhaps there was a problem with my code on that side of the equation, so I used the<a href="http://workshops.opengeo.org/postgis-intro/geography.html#creating-a-geography-table"> tutorial here</a> to construct a new table (airports) in a new database (geo_three) using phpPgAdmin to insert the values to eliminate that possibility.  However, I still received the same error:</div>
<div><br></div><div><div>[XXX~]$ [XXX]/pgsql2shp -f airportest -p 58456 -r geo_three airports</div><div>Initializing... WARNING: Cannot determine spatial reference (empty table or unknown spatial ref). No prj file will be generated.</div>
<div>Done (postgis major version: 1).</div><div>Output shape: Point</div><div><b>Dumping: XERROR: parse error - invalid geometry</b></div></div><div><br></div><div><br></div><div>I'm afraid I'm lost on where this error is coming from - if I am not providing enough information to diagnose please let me know.  Thanks in advance,</div>
<div><br></div><div>Sam Snellings</div>