[Geomoose-users] How to add a new line to postgis db in degrees?

Brent Fraser bfraser at geoanalytic.com
Tue Jul 12 19:07:38 EDT 2011


Pinchi,

   The problem is that GeoMoose is set up to deal with coordinates in 
the Display Coordinate System (900913 in your case).  That's what the 
JavaScript passes to the editor.php, and that's what the PHP inserts 
into the PostGIS database.  I'd recommend storing the data in PostGIS in 
900913, otherwise you'll have to edit the editor.php to use 
"ST_Transform" prior to inserting into the database.

Best Regards,
Brent Fraser


On 7/12/2011 4:16 PM, pinchitirabassi wrote:
> Hi, I've set up geomoose and I followed the instructions on the website. I
> created a tool to add lines, and they are added to the database, but I have
> a database with information in the EPSG:4326 SRID, and the insertion is made
> in meters. I need to configure it so as to insert linestrings in degrees.
>
> So far, I have changed some lines in the mapbook:
>
> EPSG:4326
> dd
>
> But this didn't do anything.
>
> I set a wms map-source and it works perfectly:
>
> <map-source name="street_editor" type="wms" tiled="true"
> projection='EPSG:900913'>
>          <url>http://localhost/cgi-bin/mapserv</url>
>
>
>          <layer name="streets"/>
>    </map-source>
>
> I don't know if it has something to do with the problem.
>
> Hope you can help.
>
> Pinchi
>
> --
> View this message in context: http://geomoose-users.964460.n3.nabble.com/How-to-add-a-new-line-to-postgis-db-in-degrees-tp3164035p3164035.html
> Sent from the Geomoose-users mailing list archive at Nabble.com.
>
> ------------------------------------------------------------------------------
> AppSumo Presents a FREE Video for the SourceForge Community by Eric
> Ries, the creator of the Lean Startup Methodology on "Lean Startup
> Secrets Revealed." This video shows you how to validate your ideas,
> optimize your ideas and identify your business strategy.
> http://p.sf.net/sfu/appsumosfdev2dev
> _______________________________________________
> Geomoose-users mailing list
> Geomoose-users at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/geomoose-users
>





More information about the Geomoose-users mailing list