Re: [mapserver-users] msLoadMap(): Unable to access file.

2012-11-29 Thread Jörg Thomsen
Hi, mapserver tells you what's wrong: msLoadMap(): Unable to access file. (/home/sangitas/softwares/ex1/world_mapfile.map) as your online-resource contains 'mapserv.exe' i think you are working on windows. The path to your mapfile looks like unix-path. On windows it should look like c:\path

[mapserver-users] EXPRESSION error with MapServer 6.2

2012-11-29 Thread Astrid Emde
Hello, I have a MapServer 6.2 question. I run MapServer 6.2 on Windows Server 2008. I noticed a strange behaviour with the EXPRESSION definition while I am migrating my mapfiles to MapServer 6.0 This is my table: CREATE TABLE ax_bauwerkoderanlagefuerindustrieundgewerbe ( ogc_fid serial NOT

Re: [mapserver-users] Problem with attribute query, multiple attributes

2012-11-29 Thread Bistrais, Bob
Thanks Jeff. That link shows how to build an index on a shapefile. Is there an equivalent for File GDB? I'm looking at the GDAL document for GDB now, not seeing an index description. -Original Message- From: Jeff McKenna [mailto:jmcke...@gatewaygeomatics.com] Sent: Wednesday,

Re: [mapserver-users] Problem with attribute query, multiple attributes

2012-11-29 Thread Fawcett, David (MPCA)
Since OGR accesses the GDB via ESRI's API/Library, it may (should) take advantage of attribute indexes built on the data with ArcMap. You should make sure that the feature classes in the GDB have attribute indexes on any column that you want to use as query criteria and that they have good

Re: [mapserver-users] EXPRESSION error with MapServer 6.2

2012-11-29 Thread Lime, Steve D (DNR)
Hmmm... Seems like bug. There weren't any major changes to the EXPRESSION code but I imagine at least small modifications were made. I have access to similar data here, let me try a local test. Steve -Original Message- From: mapserver-users-boun...@lists.osgeo.org

Re: [mapserver-users] EXPRESSION error with MapServer 6.2

2012-11-29 Thread Jeff Lake
shot in the dark .. But I believe the error your getting in an actual MySQL error .. your table name is a bit long ... -Jeff Lake MichiganWxSystem.com AllisonHouse.com TheWeatherCenter.net GRLevelXStuff.com On 11/29/2012 10:16, Astrid Emde wrote: Hello, I have a MapServer 6.2 question. I run

Re: [mapserver-users] Problem with attribute query, multiple attributes

2012-11-29 Thread Lime, Steve D (DNR)
Honestly I don't think an index is going to help unless the attribute filter is being passed to OGR processing. I'm not familiar enough with that driver to know if that's done or not. Usually attribute queries are written a form the driver understands. For PostGIS that means a bit of a where

Re: [mapserver-users] Problem with attribute query, multiple attributes

2012-11-29 Thread Bistrais, Bob
Whoops! I sent the wrong expression, and I acknowledge that one was incorrect. Here is the correct expression: $queryExp = (('[MAP_BK_LOT]' == '007-042') AND ('[TOWN]' == 'Acton')); -So we're selecting on items map_bk_lot and town. And again, I'm not using a shapefile here, it's a

[mapserver-users] Use STYLEITEM to style individual features?

2012-11-29 Thread Alexander Schenkel
Dear all, We have the following setup: Our features come as DB records out of a PostGIS 1.5 database, which contains a column mapserver_style besides other data columns. We want to use that column to style the individual features. Since MapServer 6.0 (we use 6.0.2), the Mapserver LAYER config

Re: [mapserver-users] Problem with attribute query, multiple attributes

2012-11-29 Thread Bistrais, Bob
I tried a few things and have an interesting result- After trying the file GDB with multiple attributes, and no success there, I tried Jeff's suggestion and used a shapefile of the parcels, and added an index. I know that conventional wisdom says shapefile is a poor choice, but when I tried

Re: [mapserver-users] Use STYLEITEM to style individual features?

2012-11-29 Thread Tamas Szekeres
Alex, This is indeed a bug in mapserver, symbol indexes are not resolved from symbol names when updating a style from string. You might want to file a ticket and assign that to me in the github issue trackerhttps://github.com/mapserver/mapserver/issues/new . Best regards, Tamas 2012/11/29

Re: [mapserver-users] Use STYLEITEM to style individual features?

2012-11-29 Thread Alexander Schenkel
Dear Tamas, Thanks, I will do so. So if I understand correctly, it should work if we use the SYMBBOL index instead of the name? so e.g.: STYLE SIZE 10 COLOR 135 255 135 OUTLINEWIDTH 2 OUTLINECOLOR 0 0 0 SYMBOL 2 # ('filled square' is the 2nd symbon in our symboldef file) END