[mapserver-users] Problem with postgis querybypoint in mapserver-php

2010-06-11 Thread Guillermo Tamburini Beliveau
Hi, I'm trying to recover the line of an ancient subject that I wrote to the list! It is about a problem with the querybypoint method in php in mapserver with postgis layers. If you want to see it, please take a look below (previous message). I unsubscribed the list because my main reason was to

[mapserver-users] Problem with postgis querybypoint in mapserver-php (abusqu***)

2010-06-11 Thread Guillermo Tamburini Beliveau
Hi, At last I forgot to put the user name. thank you. Mensaje citado por Guillermo Tamburini Beliveau guita...@topo.upv.es: Hi, I'm trying to recover the line of an ancient subject that I wrote to the list! It is about a problem with the querybypoint method in php in mapserver with

[mapserver-users] identifying segfault

2010-06-11 Thread Martin Kofahl
Hi, I'm trying to identify a segfault which I suppose to be mapscript related. Nothing in the logs, the only message I have is httpd[10210]: segfault at 7fffe46e5fcc rip 2adac849e6aa rsp 7fffe46e5fa0 error 6 What can I do with these pointers? I did play around with readelf but

Re: [mapserver-users] Problem with postgis querybypoint in mapserver-php

2010-06-11 Thread Alexandre Busquets
Try to implement these code changes in your code $qlayer-set('template', 'none'); $qlayer-set('status', MS_ON); $map-setExtent($minX, $minY, $maxX, $maxY ); $map-setSize($WIDTH, $'HEIGHT'); $map-preparequery(); [...] for ($i = 0; $i $numResults; $i++) { $resultat = $qlayer-getResult($i);

[mapserver-users] automatically generate a layer's PROJECTION object for a mapfile?

2010-06-11 Thread Mark Phillips
Hi, Does anyone know if there is a way to automatically generate the proj4 projection keyword values for a layer, needed for the PROJECTION object for that layer in a mapfile. assuming that you have the layer's data in a file that includes projection metadata? I'm interested in using MapServer

Re: [mapserver-users] automatically generate a layer's PROJECTION object for a mapfile?

2010-06-11 Thread Jeff McKenna
Mark Phillips wrote: Hi, Does anyone know if there is a way to automatically generate the proj4 projection keyword values for a layer, needed for the PROJECTION object for that layer in a mapfile. assuming that you have the layer's data in a file that includes projection metadata? You

[mapserver-users] Re: automatically generate a layer's PROJECTION object for a mapfile?

2010-06-11 Thread Sumit Sharma
you would like to use OGR/OSR for this purpose. If you are using .NET you can use swig wrappers. SpatialReference object can be used to create proj4 string from wkt. -- View this message in context:

RE: [mapserver-users] Re: automatically generate a layer's PROJECTION object for a mapfile?

2010-06-11 Thread Fawcett, David (MPCA)
You could also use Python or the other languages supported by gdal. In Python, here is a little bit of code to show the function. spatialReference = layer.GetSpatialRef() spatialReference.ExportToProj4() David. -Original Message- From: mapserver-users-boun...@lists.osgeo.org

Re: [mapserver-users] automatically generate a layer's PROJECTION object for a mapfile?

2010-06-11 Thread Mark Phillips
This is way cool! Have the changes related to RFC 37 been incorporated into the trunk yet? If so, I'll try it out! When is a 6.0 release expected? Thanks, --Mark On Fri, Jun 11, 2010 at 9:59 AM, Jeff McKenna jmcke...@gatewaygeomatics.com wrote: Mark Phillips wrote: Hi, Does anyone

[mapserver-users] Simple question

2010-06-11 Thread Ricardo Vilella
Hi all, is the first time I use the list. I detail my work environment: * Debian Lenny * Mapserver version 4.6.1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=PDF OUTPUT=SWF OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=CAIRO SUPPORTS=FREETYPE SUPPORTS=ICONV SUPPORTS=WMS_SERVER

[mapserver-users] Polygon outline not drawn in PDF output if polygon is not filled

2010-06-11 Thread Anzel, Phil - Fort Collins, CO
Hi, It appears that a polygon's outline does not appear in a PDF image unless the polygon is also filled. Consider this MAP file: MAP OUTPUTFORMAT NAMEpdf DRIVER pdf END #OUTPUTFORMAT # NAME png # DRIVER GD/PNG #END EXTENT 643507 5660466

Re: [mapserver-users] Polygon outline not drawn in PDF output if polygon is not filled

2010-06-11 Thread Yewondwossen Assefa
Hi There, The first issue with the color/fill-color seems to be a defect. This second issue with the Width parameter is due to the fact that the parameter is not supported in the PDF driver. The intention is to depreciate the current PDF support and use the Cairo PDF driver for the 6.0

RE: [mapserver-users] Polygon outline not drawn in PDF output if polygon is not filled

2010-06-11 Thread Anzel, Phil - Fort Collins, CO
Hi, Assefa, Thanks for getting back to me so quickly. FWIW it appears that the same problem (no outlines shown when using an unfilled polygon) impacts SVG output as well. There is another problem: layer OPACITY appears to have no effect. Is that a defect as well? I'll work my way up to the

[mapserver-users] performance problem

2010-06-11 Thread fedesan
I' having performance problems using postgreSQL 8.4 and mapserver 5.0.0 on a 4 cpu's sever with 16 GB RAM I was using a mapfile with 10 layers but in order to find out the problem now i'm using just one layer in a really basic mapfile. gis.states_g table has only 24 records, one for each state

Re: [mapserver-users] performance problem

2010-06-11 Thread Andy Colson
On 6/11/2010 3:49 PM, fedesan wrote: I' having performance problems using postgreSQL 8.4 and mapserver 5.0.0 on a 4 cpu's sever with 16 GB RAM I was using a mapfile with 10 layers but in order to find out the problem now i'm using just one layer in a really basic mapfile. gis.states_g table

Re: [mapserver-users] performance problem

2010-06-11 Thread Andy Colson
On 6/11/2010 3:49 PM, fedesan wrote: DATA geom900913 from (select gid,geom900913 from gis.states_g) as foo using unique gid using SRID=900913 I think you'd be ok with: DATA geom900913 from gis.states_g using unique gid using SRID=900913 Dont think it should make a speed difference though

[mapserver-users] Migration to MapServer

2010-06-11 Thread yUser
Hello, Am new to MapServer. What I am trying to achieve is the following: I have a Google Maps web application which shows bicycle routes. Users can then search from those bicycle routes (javascript). As I am learning more about MapServer I am also wondering if migrating from using Google Maps

Re: [mapserver-users] Migration to MapServer

2010-06-11 Thread christopher.schmidt
On Jun 11, 2010, at 6:02 PM, ext yUser wrote: Hello, Am new to MapServer. What I am trying to achieve is the following: I have a Google Maps web application which shows bicycle routes. Users can then search from those bicycle routes (javascript). As I am learning more about MapServer I am

[mapserver-users] PDF and SVG only shows last georeferenced raster layer

2010-06-11 Thread Anzel, Phil - Fort Collins, CO
Hi, I think there is a defect when using multiple raster data layers with PDF or SVG image formats: only the last geo-referenced raster layer is drawn. This problem does not exist if the output is PNG. To demonstrate this problem, retrieve two adjacent JPEG tile files from Microsoft's Virtual

[mapserver-users] Re: Migration to MapServer

2010-06-11 Thread yUser
Hello Christopher, Thanks for replying and for the information you provided. Based on your suggestion I am also looking into OpenLayers. Actually, one more reason I wanted to migration to MapServer was to access map data within a LAN without internet. I am still looking into OpenLayers and

Re: [mapserver-users] Re: Migration to MapServer

2010-06-11 Thread christopher.schm...@nokia.com
On Jun 11, 2010, at 6:58 PM, ext yUser wrote: Hello Christopher, Thanks for replying and for the information you provided. Based on your suggestion I am also looking into OpenLayers. Actually, one more reason I wanted to migration to MapServer was to access map data within a LAN

RE: [mapserver-users] performance problem

2010-06-11 Thread Lime, Steve D (DNR)
What's speed like outside of OL? I mean, running shp2img. In your OL code I wonder if ratio:3 might be causing *huge* image requests... With single tile mode I've have the best luck with ratio:1. Steve From: mapserver-users-boun...@lists.osgeo.org

Re: [mapserver-users] performance problem

2010-06-11 Thread Jeff McKenna
fedesan wrote: I' having performance problems using postgreSQL 8.4 and mapserver 5.0.0 on a 4 cpu's sever with 16 GB RAM I was using a mapfile with 10 layers but in order to find out the problem now i'm using just one layer in a really basic mapfile. gis.states_g table has only 24 records, one