[mapserver-users] confused with regular expression

2009-07-31 Thread Ahmet Temiz
hello I am confused with regular expression. EXPRESSION ('[lkod]' =~ /andezit | bazalt/' ) I just want to choose andezit | bazalt containing records. But I got nothing. can you tell what the correct expression is ? regards -- Open WebMail Project (http://openwebmail.org) -- This

Re: [mapserver-users] confused with regular expression

2009-07-31 Thread Michael Schulz
Hi, maybe try removing the last quotation mark after the regex. Also, I think the spaces are taken into account in your regex, so you should try remove them and see if it works. I think sth. like EXPRESSION ('[lkod]' =~ /andezit|bazalt/ ) could work. If the field lkod only contains the rock

Re: [mapserver-users] SLD with Mapserver 5.4.2

2009-07-31 Thread Andrea Dessì
Hi Michael, Thank you for your answer :) Now SLD is working i had a mistake with names references. I have just another question: how is possible to add a style using SLD without overriding the whole server style? I explain what i want to do: I have a map served by MapServer, so a mapfile with

RE: [mapserver-users] Impossible to draw SDO Geometries fromOraclewhen SDO_GTYPE is 2007 and the interpretation is2(connectivity by arcs : SDO_ELEM_INFO(1, 1003, 2, [...]) )

2009-07-31 Thread Pano Voudouris
Julien, I know you said you verified the geometries by Mapviewer but have you tried the sdo_validate layer routine? Just to be sure... Example from the manual: -- Is a layer valid? (First, create the result table.) CREATE TABLE val_results (sdo_rowid ROWID, result varchar2(1000)); --

[mapserver-users] Bad image quality with PHP Mapscript

2009-07-31 Thread tschobber tschöbbi
Dear user list, I have a simple question: What could be the reason (in my case) why the image output of PHP Mapscript generated files are much worse than with the mapserv binary file? Both use the same mapfile with 3 layers - each for one zoomlevel. The PHP Mapscript file reads the mapfile

Re: [mapserver-users] SLD with Mapserver 5.4.2

2009-07-31 Thread Michael Schulz
Hi Andrea, mapserver uses sld in library mode, meaning that if for a certain layer of the mapfile an sld symbolization is provided it takes precedence over the mapfile symbolization. If for another layer no sld id provided, then the mapfile symbolization is used. Thus, As far as I know you can

Re: [mapserver-users] Bad image quality with PHP Mapscript

2009-07-31 Thread Daniel Morissette
tschobber tschöbbi wrote: I have a simple question: What could be the reason (in my case) why the image output of PHP Mapscript generated files are much worse than with the mapserv binary file? I guess it would help if you were more explicit on what you mean by much worse... is it a color

RE: [mapserver-users] Impossible to draw SDO Geometries fromOraclewhen SDO_GTYPE is 2007 and the interpretation is2(connectivity by arcs : SDO_ELEM_INFO(1, 1003, 2, [...]) )

2009-07-31 Thread Julien Collaer
Hello Pano, Thanks for the idea, it wasn't done yet ! I've just executed the validate_layer_with_context verification Oracle function and my geometries are ok (the result table is empty for the circular / problematics geometries). But some of the others geometries (correctly rendered by

Re: [mapserver-users] SLD with Mapserver 5.4.2

2009-07-31 Thread Andrea Dessì
Michael Schulz ha scritto: Hi Andrea, mapserver uses sld in library mode, meaning that if for a certain layer of the mapfile an sld symbolization is provided it takes precedence over the mapfile symbolization. If for another layer no sld id provided, then the mapfile symbolization is used.

Re: [mapserver-users] How to enter the projected coordinates in Postgis

2009-07-31 Thread Alexander Petkov
On Thu, Jul 30, 2009 at 8:57 AM, Suman Chatterjeeschatter...@addisontx.gov wrote: Hi, I have created 2 tables in postGIS and POSTGreSQL – in one, I am storing the GPS coordinates which are in the form of say lat= 32.4 and longitude = 72.45 ( which are in degrees) with SRID 2276 And in

[mapserver-users] tile index question - appropriate scales

2009-07-31 Thread Mark Volz
Hello, I created a tile index for an air photo. I would like to know how to determine an appropriate scale for each tile index level. Thanks Mark Volz GIS Specialist Lyon County, MN ___ mapserver-users mailing list

RE: [mapserver-users] How to enter the projected coordinates in Postgis

2009-07-31 Thread Suman Chatterjee
Hi Alex, Thank You very much for pointing out the mistake. But still I am facing some problem. My GPS is collecting data in NAD1983 which I found corresponds to SRID 4269. The extent of the Addison area is 2445459.0713 7001896.9648 2514178.5480 7070616.4415 It is in LCC NAD1983(ft) which I

Re: [mapserver-users] How to enter the projected coordinates in Postgis

2009-07-31 Thread Gregor at HostGIS
Select ST_Transform(gpscoords,2276) from gpsdata; But it is throwing error : ERROR: transform: couldn't project point:-14 (latitude or longitude exceeded)SQL state:XX000 It means what it says: one of your points has a invalid ordinate, so it cannot be transformed. Try this to debug it.

RE: [mapserver-users] How to enter the projected coordinates in Postgis

2009-07-31 Thread Suman Chatterjee
Hi Greg, Thank You very much. I was just trying and found the fault.Actually the longitude should come first and then the latitude. I was doing otherwise and so the error. Now the transform function is working. Thanks Suman -Original Message- From: Gregor at HostGIS

Re: [mapserver-users] Shapefile with first FID = 0 not showing..

2009-07-31 Thread Michelle Douvil
It looks like if I switch to the OGR driver for Shapefiles, my issues are resolved. Are there any drawbacks to using the OGR driver vs the Native mapserver drivers? Many thanks, Michelle -- View this message in context:

Re: [mapserver-users] Shapefile with first FID = 0 not showing..

2009-07-31 Thread Frank Warmerdam
Michelle Douvil wrote: It looks like if I switch to the OGR driver for Shapefiles, my issues are resolved. Are there any drawbacks to using the OGR driver vs the Native mapserver drivers? Michelle, The OGR driver is slower - quite a bit of extra overhead going from shape objects to OGR

Re: [mapserver-users] tile index question - appropriate scales

2009-07-31 Thread Brent Fraser
Mark, Take the pixel size in meters and multiply by 4,000; that will get you close. So for a image with a pixel size of 5 meters, a good scale would be 1:20,000. Any larger than that (say 1:10,000) and you'll start to see pixel edges. Unless you meant something else?... Best Regards,