[pmapper-users] How to use pMapper to insert data in PostGres/PostGis

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

[pmapper-users] How to use pMapper to insert data in PostGres/PostGis

Bruno Moreira
Hi,

I'm trying to give pMapper users the abillity to create a polygon and to write it in a PostGres/PostGis database using Drawing plugin.
I'm using the layer definition as mentioned in Drawing Polygon documentation. I just included template-part--mapserver6.map, in the top of template.map file.

I already tried to find some documentation about Drawing plugin but only get the basic configuration, and I am unable to make it work: here is the error I've got in Apache error log:
- [Fri Oct 02 10:21:23 2015] [error] [client 192.168.7.20] Could not create group 'drawPolygon' defined in groupOrder in 'C:/ms4w/apps/pmapper/pmapper-4.3.2/config/config_localizacoes.xml'. Check if name is correct., referer: http://cmsc0404/pmapper/map_default.phtml?config=localizacoes

Is there any place that has a step-by-step tutorial to enable pMapper to insert data in a PostGres/PostGis database?

Thank you
Bruno Moreira

#####################################################################################
Esta mensagem de e-mail foi verificada para Vírus e Conteúdo pelo MailMarshal
#####################################################################################

------------------------------------------------------------------------------

_______________________________________________
pmapper-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/pmapper-users
Reply | Threaded
Open this post in threaded view
|

Re: [pmapper-users] How to use pMapper to insert data in PostGres/PostGis

gioza
An idea:

modifying the AREA measure JS you can get the vertex of the polygon you're drawing then you could insert those data in postgis with a php script.

Have a look to this:
http://sourceforge.net/p/pmapper/mailman/message/31561792/
Reply | Threaded
Open this post in threaded view
|

Re: [pmapper-users] How to use pMapper to insert data in PostGres/PostGis

Bruno Moreira
Hi,

I've decided to modify Drawing plugin, and after the draw the polygon I have an array with coordinates, which I can insert into Postgresql/Postgis database using ST_GeomFromText.

Thank you!