Re: [mapserver-users] Bulk creation of mapfile

2014-08-13 Thread Cristiano Sumariva
I took the plpgsql way. Created a set of functions that generates the mapfile blocks and store the tokens in several postgresql tables(using traditional SQL relations). Then I invoke the mapfile( id ) from database and pass the mapfile text direct to mapscript. With this, the mapfile creation has

[mapserver-users] Random error 500 over WMS mapscript?

2014-08-04 Thread Cristiano Sumariva
I would like to known if some else suffered from random error 500 with apache and PHP mapscript. If I copy the same tile URL and load it on another browser tab the image shows up without error. Here a sample URL from production server: http://www.ecologia.ufrgs.br/atlasdigital/mapa-ta/index.php/ma

Re: [mapserver-users] Mapfile VS MapScript performance

2012-11-07 Thread Cristiano Sumariva
Also using mapscript you can integrate mapserver with application by saving mapfile into database and letting application manage the mapserver configuration, grant access to authenticaded session clients You will lose speed but win maintenance. I do not really like to update the mapfile, then the t

Re: [mapserver-users] WFS fails if table name includes a dot character

2012-10-09 Thread Cristiano Sumariva
Uppercase chars in table names will also cause trouble, avoid them. 2012/10/9 Puneet Kishor > > > On Oct 9, 2012, at 7:51 AM, Rahkonen Jukka > wrote: > > > Hi, > > > > It may be an odd idea to use dots in table/feature type names, but > because I made such a test and faced a problem so I report

Re: [mapserver-users] Re: interesting thread on JSON-ish output from MapServer

2011-09-12 Thread Cristiano Sumariva
Why do this the hard way? Mapserver now can generate KML output. Just create a KMLLayer on google maps API an it will do all for you. The KMLlayer do the ajax request for you, setup the click handler on Map, setup the infoWindow events all in a two line call, support all simple features geometry t

Re: [mapserver-users] layer data sources more than one

2011-09-12 Thread Cristiano Sumariva
Also there is the LAYER TILEINDEX http://mapserver.org/optimization/tileindex.html#tileindex that may do that you need. Like a virtual mosaic. 2011/9/12 Rahkonen Jukka > Hi, > > You will do it with "ogrtileindex". Read > http://www.mapserver.org/optimization/tileindex.html > > -Jukka Rahkonen- >

Re: [mapserver-users] Re: About shapefile generation in PHP with DBF

2010-08-09 Thread Cristiano Sumariva
Yes I want data creation/conversion from a user interactive query generated from a set of tables. I maded some executions of ogr2ogr. This tool looked as a good solution. The problem is that the results may take long to execute( in case of a join between two tables like 10 million rows history in

[mapserver-users] About shapefile generation in PHP with DBF

2010-08-06 Thread Cristiano Sumariva
I took a look at documentation in PHP mapscript but did not find a way to create the .dbf file. Do mapserver classes has support for generating attribute .dbf file? If not any sugestion for an ready to use tool that I can use? For database export one option I found was to call pgsql2shp with a pre

Re: [mapserver-users] mapserver >= 5.6 and querys via php-mapscript

2010-06-11 Thread Cristiano Sumariva
If I remember well the loader script shp2pgsql create the unique attribute called gid. And that gid I supose be the record id or record position from the shape source file. So if you need a map between file position and database record returned read the attribute 'gid' from that shape record. I do

[mapserver-users] Escape caracter on Mapfile

2010-06-08 Thread Cristiano Sumariva
People I got on this situation: mixing single quotes with double quotes. Mapserver say at following page : http://mapserver.org/mapfile/expressions.html that for expressions it allow escape. Do it allow escape on other mapfile attributes ? Current mapserver version is 5.4.1 I need the following s

[mapserver-users] Question about PHP object comparison

2010-04-09 Thread Cristiano Sumariva
I executed this example and object comparison returned true on clone call. But it returned false when I request another reference from same layer from getLayer. Should not it return true ? #/* 09/04/2010 test for mapserver object comparison on PHP. # If I clone a layer object from a map instance

[mapserver-users] List all symbols on PHP ms_map_object

2010-03-25 Thread Cristiano Sumariva
I want read all symbols available in a mapfile for listing. Documentation says that I can request symbol references by calling ms_map_obj->getSymbolById( id ). What is not well defined on documentation is if those id are numbered from zero to n-1 symbol. so I can loop over the list. _