[mapserver-users] EXPRESSION error with MapServer 6.2

Lime, Steve D (DNR) Steve.Lime at state.mn.us
Thu Nov 29 07:27:14 PST 2012


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-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Astrid Emde
Sent: Thursday, November 29, 2012 9:16 AM
To: mapserver-users at lists.osgeo.org
Subject: [mapserver-users] EXPRESSION error with MapServer 6.2

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 NULL,
  gml_id character(16), -- Identifikator, global eindeutig
  ...
  bauwerksfunktion integer,
  wkb_geometry geometry
  ...
);


DATA "wkb_geometry from (SELECT ogc_fid, bauwerksfunktion, wkb_geometry FROM ax_bauwerkoderanlagefuerindustrieundgewerbe) as foo using unique ogc_fid USING SRID=25832"

As bauwerksfunktion is an integer column my EXPRESSION definition was like this in MaServer < 6.0

EXPRESSION ([bauwerksfunktion] = 1210)
EXPRESSION ([bauwerksfunktion] = 1215 OR [bauwerksfunktion] = 1220 OR [bauwerksfunktion] = 1250 OR [bauwerksfunktion] = 1260)

Now with MapServer 6.2 it does not work anymore:
* instead of a map I get an Internal Server Error

My Logfile says:
[Thu Nov 29 15:03:31 2012].824000 msEvalExpression(): General error message. Invalid item index.

I also checked http://mapserver.org/mapfile/expressions.html

Does anyone has an idea?

--
Thanks for your help

Astrid Emde

..................................................................
FOSSGIS 2013, Die Konferenz für Open Source GIS mit OpenData und OpenStreetMap erstmals in der Schweiz!
12.-14. Juni, HSR, Rapperswil, http://www.fossgis.de ..................................................................


_______________________________________________
mapserver-users mailing list
mapserver-users at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users





More information about the MapServer-users mailing list