Re: [mapserver-users] MapServer tutorial for C# asp.net
cs.tropic wrote: I'm wondering if anyone has files from this tutorial of Paolo Corti : http://www.paolocorti.net/2006/07/01/mapscript-c-tutorial-programming-mapserver-in-the-asp-net-framework/ now it has been fixed best regards Paolo -- View this message in context: http://n2.nabble.com/MapServer-tutorial-for-C-asp-net-tp4047060p4144333.html Sent from the Mapserver - User mailing list archive at Nabble.com. ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Dynamically update layers without service interruption
Yes, it's a matter of how you do your data management. Generally, if you're using MapServer in CGI mode you can update the data, or the mapfile, and the next time a request comes in, it will see the updated version of your image. - Original Message From: Björn Harrtell bjorn.harrt...@gmail.com To: mapserver-users@lists.osgeo.org Sent: Mon, December 7, 2009 3:11:36 PM Subject: [mapserver-users] Dynamically update layers without service interruption Is it possible to dynamically add and/or update layer definitions that also might involve updates to the underlying data without *any* service interruption? I'm primarily interested in this use case when using raster layers. I have indications that service interruptions can happen but cannot verify yet. I found http://www.mapserver.org/development/rfc/ms-rfc-44.html#rfc44 describing the feature of dynamic updates (I assume?) but no mention about if service interruption can be expected and/or how to avoid it. Regards, Björn Harrtell ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Dynamically update layers without service interruption
The key to this is to minimize the time that the data and mapfile are potententially out of sync or the time a file might be being updated so that it is in a state of flux that might cause an error if a request tries to read the file while it is being updated. I have managed this in the past with parallel data trees and a symbolic link on Linux. /path/to/data/ /path/to/data/imagesA /path/to/data/imagesB /path/to/data/images - imagesA or imagesB the map file points to /path/to/data/images and that is a symbolic link to either imagesA or imagesB, for example lets say imagesA So the update process would be something like: # sync your A and B trees rsync -s imagesA/* imagesB/. # update the images in imagesB and the mapfile in imagesB # make imagesB live (cd /path/to/data/; rm images; ln -s imagesB images) # if you want to rollback to imagesA (cd /path/to/data/; rm images; ln -s imagesA images) Hope this helps, -Steve W Dan Little wrote: Yes, it's a matter of how you do your data management. Generally, if you're using MapServer in CGI mode you can update the data, or the mapfile, and the next time a request comes in, it will see the updated version of your image. - Original Message From: Björn Harrtell bjorn.harrt...@gmail.com To: mapserver-users@lists.osgeo.org Sent: Mon, December 7, 2009 3:11:36 PM Subject: [mapserver-users] Dynamically update layers without service interruption Is it possible to dynamically add and/or update layer definitions that also might involve updates to the underlying data without *any* service interruption? I'm primarily interested in this use case when using raster layers. I have indications that service interruptions can happen but cannot verify yet. I found http://www.mapserver.org/development/rfc/ms-rfc-44.html#rfc44 describing the feature of dynamic updates (I assume?) but no mention about if service interruption can be expected and/or how to avoid it. Regards, Björn Harrtell ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] Spatial Joins for labels
Hi, I was just wondering if it is possible to spatially join layers on the fly for labeling purposes. For example it would be useful to be able to have a label: TEXT [NAME] [ADDRESS] [Watershed.WatershedName] [Municipality.MunicipalityName] I am guessing something like this might be possible for postgis. However is it possible for shapefiles as well? Mark Volz GIS Specialist Lyon County, MN 507-532-8218 ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] Expression Syntax
I looked on map server website in the documentation and cant get the synstax correct I have two textboxes idOwner and idOwner2 I am a bit confused on the FILTERITEM because I am trying to write the expression to include two fields. USE1_DESC and BLOCK are the two fields that form the query LAYER # Parcels Owner Layer NAME 'Parcels' DATA 'parcels/parcels.shp' STATUS DEFAULT TYPE POLYGON METADATA qstring_validation_pattern '.' END TEMPLATE 'parcels/itemquery_parcels_Owner.html' FILTERITEM 'USE1_DESC' FILTER (* WHERE USE1_DESC = '%idOwner%' and BLOCK = '%idOwner2%') END ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Expression Syntax
Jay, you must use FILTERITEM only for simple FILTER expressions (string comparison only) for example: FILTER 2005 -fieldvalue FILTERITEM year -fieldname For Logical FILTER expressions you do not define FILTERITEM. In this case you must place the FILTER between parentheses, and fieldnames between brackets for example: FILTER ([field1]4000 AND [field2]==Museum) --observe quotes on both sides on text fields See http://mapserver.org/mapfile/expressions.html#expressions for detail on how to build logical expressions Regards, Emiliano 2009/12/10 Jay Kapalczynski jkapalczyn...@ci.maple-grove.mn.us I looked on map server website in the documentation and cant get the synstax correct I have two textboxes idOwner and idOwner2 I am a bit confused on the FILTERITEM because I am trying to write the expression to include two fields. USE1_DESC and BLOCK are the two fields that form the query LAYER # Parcels Owner Layer NAME 'Parcels' DATA 'parcels/parcels.shp' STATUS DEFAULT TYPE POLYGON METADATA qstring_validation_pattern '.' END TEMPLATE 'parcels/itemquery_parcels_Owner.html' FILTERITEM 'USE1_DESC' FILTER (* WHERE USE1_DESC = '%idOwner%' and BLOCK = '%idOwner2%') END ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Ing. Emiliano Castañeda SUR Emprendimientos Tecnológicos Ing. Huergo 1189 (C1007AOL) Ciudad de Buenos Aires, Argentina Tel. +54 (11) 5811-4552 ext. 107 emilianocastan...@suremptec.com.ar www.suremptec.com ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
RE: [mapserver-users] Expression Syntax
Emiliano thanks for the responseyea I looked at the documentation and it was a bit fuzzy to me... If I do them individually it works: #FILTERITEM 'USE1_DESC' #FILTER /.*%idOwnerQueryDESC%.*/i #FILTERITEM 'BLOCK' #FILTER /.*%idOwnerQueryBLOCK%.*/i FILTER ([USE1_DESC]=%idOwnerQueryDESC% AND [BLOCK]=%idOwnerQueryBLOCK%) ERROR: msEvalExpression: Expression parser error. Failed to parse expression: =Residential AND =006 FILTER (USE1_DESC=%idOwnerQueryDESC% AND BLOCK=%idOwnerQueryBLOCK%) I seemed to get a bunch of returns that were incorrect...seems like it grabbed all of them. Thoughts? From: Emiliano Castañeda [mailto:emilianocastan...@suremptec.com.ar] Sent: Thursday, December 10, 2009 2:13 PM To: Jay Kapalczynski Cc: mapserver-users@lists.osgeo.org Subject: Re: [mapserver-users] Expression Syntax Jay, you must use FILTERITEM only for simple FILTER expressions (string comparison only) for example: FILTER 2005 -fieldvalue FILTERITEM year -fieldname For Logical FILTER expressions you do not define FILTERITEM. In this case you must place the FILTER between parentheses, and fieldnames between brackets for example: FILTER ([field1]4000 AND [field2]==Museum) --observe quotes on both sides on text fields See http://mapserver.org/mapfile/expressions.html#expressions for detail on how to build logical expressions Regards, Emiliano 2009/12/10 Jay Kapalczynski jkapalczyn...@ci.maple-grove.mn.usmailto:jkapalczyn...@ci.maple-grove.mn.us I looked on map server website in the documentation and cant get the synstax correct I have two textboxes idOwner and idOwner2 I am a bit confused on the FILTERITEM because I am trying to write the expression to include two fields. USE1_DESC and BLOCK are the two fields that form the query LAYER # Parcels Owner Layer NAME 'Parcels' DATA 'parcels/parcels.shp' STATUS DEFAULT TYPE POLYGON METADATA qstring_validation_pattern '.' END TEMPLATE 'parcels/itemquery_parcels_Owner.html' FILTERITEM 'USE1_DESC' FILTER (* WHERE USE1_DESC = '%idOwner%' and BLOCK = '%idOwner2%') END ___ mapserver-users mailing list mapserver-users@lists.osgeo.orgmailto:mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Ing. Emiliano Castañeda SUR Emprendimientos Tecnológicos Ing. Huergo 1189 (C1007AOL) Ciudad de Buenos Aires, Argentina Tel. +54 (11) 5811-4552 ext. 107 emilianocastan...@suremptec.com.armailto:emilianocastan...@suremptec.com.ar www.suremptec.comhttp://www.suremptec.com ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Expression Syntax
You might want to check out the code for query.php in the GM2 branch. From: Jay Kapalczynski jkapalczyn...@ci.maple-grove.mn.us To: Emiliano Castañeda emilianocastan...@suremptec.com.ar Cc: mapserver-users@lists.osgeo.org mapserver-users@lists.osgeo.org Sent: Thu, December 10, 2009 3:20:58 PM Subject: RE: [mapserver-users] Expression Syntax Emiliano thanks for the response….yea I looked at the documentation and it was a bit fuzzy to me… If I do them individually it works: #FILTERITEM 'USE1_DESC' #FILTER /.*%idOwnerQueryDESC%.*/i #FILTERITEM 'BLOCK' #FILTER /.*%idOwnerQueryBLOCK%.*/i FILTER ([USE1_DESC]=%idOwnerQueryDESC% AND [BLOCK]=%idOwnerQueryBLOCK%) ERROR: msEvalExpression: Expression parser error. Failed to parse expression: =Residential AND =006 FILTER (USE1_DESC=%idOwnerQueryDESC% AND BLOCK=%idOwnerQueryBLOCK%) I seemed to get a bunch of returns that were incorrect...seems like it grabbed all of them. Thoughts? From:Emiliano Castañeda [mailto:emilianocastan...@suremptec.com.ar] Sent: Thursday, December 10, 2009 2:13 PM To: Jay Kapalczynski Cc: mapserver-users@lists.osgeo.org Subject: Re: [mapserver-users] Expression Syntax Jay, you must use FILTERITEM only for simple FILTER expressions (string comparison only) for example: FILTER 2005 -fieldvalue FILTERITEM year -fieldname For Logical FILTER expressions you do not define FILTERITEM. In this case you must place the FILTER between parentheses, and fieldnames between brackets for example: FILTER ([field1]4000 AND [field2]==Museum) --observe quotes on both sides on text fields See http://mapserver.org/mapfile/expressions.html#expressions for detail on how to build logical expressions Regards, Emiliano 2009/12/10 Jay Kapalczynski jkapalczyn...@ci.maple-grove.mn.us I looked on map server website in the documentation and cant get the synstax correct I have two textboxes idOwner and idOwner2 I am a bit confused on the FILTERITEM because I am trying to write the expression to include two fields. USE1_DESC and BLOCK are the two fields that form the query LAYER # Parcels Owner Layer NAME 'Parcels' DATA 'parcels/parcels.shp' STATUS DEFAULT TYPE POLYGON METADATA qstring_validation_pattern '.' END TEMPLATE 'parcels/itemquery_parcels_Owner.html' FILTERITEM 'USE1_DESC' FILTER (* WHERE USE1_DESC = '%idOwner%' and BLOCK = '%idOwner2%') END ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Ing. Emiliano Castañeda SUR Emprendimientos Tecnológicos Ing. Huergo 1189 (C1007AOL) Ciudad de Buenos Aires, Argentina Tel. +54 (11) 5811-4552 ext. 107 emilianocastan...@suremptec.com.ar www.suremptec.com ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
RE: [mapserver-users] Expression Syntax
At a minimum, I think that you will need to add quotes around the query columns. (just use single quotes, not the fancy Microsofty ones below...) FILTER ('[USE1_DESC]'=%idOwnerQueryDESC% AND '[BLOCK]'=%idOwnerQueryBLOCK%) Try setting a filter with static values from your data to get the filter format working before you add the complexity of passing the values in with variables. FILTER ('[USE1_DESC]'='myUse' AND '[BLOCK]'='myBlock') David. From: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Jay Kapalczynski Sent: Thursday, December 10, 2009 3:21 PM To: 'Emiliano Castañeda' Cc: mapserver-users@lists.osgeo.org Subject: RE: [mapserver-users] Expression Syntax Emiliano thanks for the responseyea I looked at the documentation and it was a bit fuzzy to me... If I do them individually it works: #FILTERITEM 'USE1_DESC' #FILTER /.*%idOwnerQueryDESC%.*/i #FILTERITEM 'BLOCK' #FILTER /.*%idOwnerQueryBLOCK%.*/i FILTER ([USE1_DESC]=%idOwnerQueryDESC% AND [BLOCK]=%idOwnerQueryBLOCK%) ERROR: msEvalExpression: Expression parser error. Failed to parse expression: =Residential AND =006 FILTER (USE1_DESC=%idOwnerQueryDESC% AND BLOCK=%idOwnerQueryBLOCK%) I seemed to get a bunch of returns that were incorrect...seems like it grabbed all of them. Thoughts? From: Emiliano Castañeda [mailto:emilianocastan...@suremptec.com.ar] Sent: Thursday, December 10, 2009 2:13 PM To: Jay Kapalczynski Cc: mapserver-users@lists.osgeo.org Subject: Re: [mapserver-users] Expression Syntax Jay, you must use FILTERITEM only for simple FILTER expressions (string comparison only) for example: FILTER 2005 -fieldvalue FILTERITEM year -fieldname For Logical FILTER expressions you do not define FILTERITEM. In this case you must place the FILTER between parentheses, and fieldnames between brackets for example: FILTER ([field1]4000 AND [field2]==Museum) --observe quotes on both sides on text fields See http://mapserver.org/mapfile/expressions.html#expressions for detail on how to build logical expressions Regards, Emiliano 2009/12/10 Jay Kapalczynski jkapalczyn...@ci.maple-grove.mn.usmailto:jkapalczyn...@ci.maple-grove.mn.us I looked on map server website in the documentation and cant get the synstax correct I have two textboxes idOwner and idOwner2 I am a bit confused on the FILTERITEM because I am trying to write the expression to include two fields. USE1_DESC and BLOCK are the two fields that form the query LAYER # Parcels Owner Layer NAME 'Parcels' DATA 'parcels/parcels.shp' STATUS DEFAULT TYPE POLYGON METADATA qstring_validation_pattern '.' END TEMPLATE 'parcels/itemquery_parcels_Owner.html' FILTERITEM 'USE1_DESC' FILTER (* WHERE USE1_DESC = '%idOwner%' and BLOCK = '%idOwner2%') END ___ mapserver-users mailing list mapserver-users@lists.osgeo.orgmailto:mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Ing. Emiliano Castañeda SUR Emprendimientos Tecnológicos Ing. Huergo 1189 (C1007AOL) Ciudad de Buenos Aires, Argentina Tel. +54 (11) 5811-4552 ext. 107 emilianocastan...@suremptec.com.armailto:emilianocastan...@suremptec.com.ar www.suremptec.comhttp://www.suremptec.com ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] make error - version 5.6.0-rc1 - /usr/bin/ld: cannot find -lxslt
Hi everybody! Building 5.6.0-rc1 on Linux 2.6.23.15-80.fc7 make exits with the error below after trying to compile shp2img with the message: /usr/bin/ld: cannot find -lxslt What is xslt that ld is looking for? Thanks in advance, Ted S. gcc -c -O2 -fPIC -Wall -DHAVE_VSNPRINTF -DNEED_STRLCAT -DNEED_STRRSTR -DUSE_FASTCGI -DUSE_WMS_LYR -DUSE_WFS_LYR -DUSE_LIBXML2 -DUSE_CURL -DUSE_WCS_SVR -DUSE_WFS_SVR -DUSE_WMS_SVR-DUSE_POSTGIS -DUSE_GDAL -DUSE_OGR -DUSE_THREAD -DUSE_PROJ -DUSE_EPPL -DUSE_AGG -DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_FTEX_XSHOW -DGD_HAS_GDIMAGEGIFPTR -DGD_HAS_GETBITMAPFONTS -DUSE_ICONV -DUSE_ZLIB -I/usr/lib/ -I/usr/include/freetype2-I/usr/local/include -I/usr/local/include -I/usr/include -I/usr/include -I/usr/include/fastcgi -I/usr/include/libxml2 shp2img.c -o shp2img.o g++ -O2 -fPIC -Wall -DHAVE_VSNPRINTF -DNEED_STRLCAT -DNEED_STRRSTR -DUSE_FASTCGI -DUSE_WMS_LYR -DUSE_WFS_LYR -DUSE_LIBXML2 -DUSE_CURL -DUSE_WCS_SVR -DUSE_WFS_SVR -DUSE_WMS_SVR-DUSE_POSTGIS -DUSE_GDAL -DUSE_OGR -DUSE_THREAD -DUSE_PROJ -DUSE_EPPL -DUSE_AGG -DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_FTEX_XSHOW -DGD_HAS_GDIMAGEGIFPTR -DGD_HAS_GETBITMAPFONTS -DUSE_ICONV -DUSE_ZLIB -I/usr/lib/ -I/usr/include/freetype2-I/usr/local/include -I/usr/local/include -I/usr/include -I/usr/include -I/usr/include/fastcgi -I/usr/include/libxml2 shp2img.o -L. -lmapserver -L/usr/lib/ -lgd -ljpeg -lfreetype -lpng -lz -lXpm -lX11 -ljpeg -lfreetype -lpng -lz -lXpm -lX11 -L/usr/local/lib -lproj -ljpeg -lpng -L/usr/local/lib -lgdal -I/usr/include -lsqlite3 -L/usr/lib -lexpat -ljpeg -lpng -lpq -L/usr/lib -lpq -lz -lm -lrt -ldl -lcurl -L/usr/lib -lpq -lpgport -lxslt -lxml2 -lpam -lssl -lcrypto -lkrb5 -lcom_err -lgssapi_krb5 -lz -lreadline -lcrypt -ldl -lm -lcurl -lpthread -L -lc -L/usr/lib -lfcgi -lz -lxml2 -lz -lm -lm -lstdc++-o shp2img /usr/bin/ld: cannot find -lxslt collect2: ld returned 1 exit status make: *** [shp2img] Error 1 -- View this message in context: http://n2.nabble.com/make-error-version-5-6-0-rc1-usr-bin-ld-cannot-find-lxslt-tp4148052p4148052.html Sent from the Mapserver - User mailing list archive at Nabble.com. ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
RE: [mapserver-users] Expression Syntax
Thanks all for your thoughts Got it...I had to add ' ' around the textbox id as well when referencing the textbox id names Notice( '%idOwnerQueryDESC%' and '%idOwnerQueryBLOCK%' ) FILTER ('[USE1_DESC]'='%idOwnerQueryDESC%' AND '[BLOCK]'='%idOwnerQueryBLOCK%') Dan thanks for your thoughts...I am going to be moving to 2.x soonbut have to have the time to lean this all over again...moving to open layers that is One step at a time...I have a ton programmed into 1.6 that's going to take me some time to convert... Thanks again allvery appreciated From: Fawcett, David (MPCA) [mailto:david.fawc...@state.mn.us] Sent: Thursday, December 10, 2009 3:26 PM To: Jay Kapalczynski; 'Emiliano Castañeda' Cc: mapserver-users@lists.osgeo.org Subject: RE: [mapserver-users] Expression Syntax At a minimum, I think that you will need to add quotes around the query columns. (just use single quotes, not the fancy Microsofty ones below...) FILTER ('[USE1_DESC]'=%idOwnerQueryDESC% AND '[BLOCK]'=%idOwnerQueryBLOCK%) Try setting a filter with static values from your data to get the filter format working before you add the complexity of passing the values in with variables. FILTER ('[USE1_DESC]'='myUse' AND '[BLOCK]'='myBlock') David. From: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Jay Kapalczynski Sent: Thursday, December 10, 2009 3:21 PM To: 'Emiliano Castañeda' Cc: mapserver-users@lists.osgeo.org Subject: RE: [mapserver-users] Expression Syntax Emiliano thanks for the responseyea I looked at the documentation and it was a bit fuzzy to me... If I do them individually it works: #FILTERITEM 'USE1_DESC' #FILTER /.*%idOwnerQueryDESC%.*/i #FILTERITEM 'BLOCK' #FILTER /.*%idOwnerQueryBLOCK%.*/i FILTER ([USE1_DESC]=%idOwnerQueryDESC% AND [BLOCK]=%idOwnerQueryBLOCK%) ERROR: msEvalExpression: Expression parser error. Failed to parse expression: =Residential AND =006 FILTER (USE1_DESC=%idOwnerQueryDESC% AND BLOCK=%idOwnerQueryBLOCK%) I seemed to get a bunch of returns that were incorrect...seems like it grabbed all of them. Thoughts? From: Emiliano Castañeda [mailto:emilianocastan...@suremptec.com.ar] Sent: Thursday, December 10, 2009 2:13 PM To: Jay Kapalczynski Cc: mapserver-users@lists.osgeo.org Subject: Re: [mapserver-users] Expression Syntax Jay, you must use FILTERITEM only for simple FILTER expressions (string comparison only) for example: FILTER 2005 -fieldvalue FILTERITEM year -fieldname For Logical FILTER expressions you do not define FILTERITEM. In this case you must place the FILTER between parentheses, and fieldnames between brackets for example: FILTER ([field1]4000 AND [field2]==Museum) --observe quotes on both sides on text fields See http://mapserver.org/mapfile/expressions.html#expressions for detail on how to build logical expressions Regards, Emiliano 2009/12/10 Jay Kapalczynski jkapalczyn...@ci.maple-grove.mn.usmailto:jkapalczyn...@ci.maple-grove.mn.us I looked on map server website in the documentation and cant get the synstax correct I have two textboxes idOwner and idOwner2 I am a bit confused on the FILTERITEM because I am trying to write the expression to include two fields. USE1_DESC and BLOCK are the two fields that form the query LAYER # Parcels Owner Layer NAME 'Parcels' DATA 'parcels/parcels.shp' STATUS DEFAULT TYPE POLYGON METADATA qstring_validation_pattern '.' END TEMPLATE 'parcels/itemquery_parcels_Owner.html' FILTERITEM 'USE1_DESC' FILTER (* WHERE USE1_DESC = '%idOwner%' and BLOCK = '%idOwner2%') END ___ mapserver-users mailing list mapserver-users@lists.osgeo.orgmailto:mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Ing. Emiliano Castañeda SUR Emprendimientos Tecnológicos Ing. Huergo 1189 (C1007AOL) Ciudad de Buenos Aires, Argentina Tel. +54 (11) 5811-4552 ext. 107 emilianocastan...@suremptec.com.armailto:emilianocastan...@suremptec.com.ar www.suremptec.comhttp://www.suremptec.com ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
RE: [mapserver-users] Expression Syntax
Last thought Now that this is working: FILTER ('[USE1_DESC]'='%idOwnerQueryDESC%' AND '[BLOCK]'='%idOwnerQueryBLOCK%') I am trying to get them to be wild cards...this worked individually: BUT does not work in the full string. FILTER /.*%idOwnerQueryDESC%.*/i Not Working: FILTER ('[USE1_DESC]'=' /.*%idOwnerQueryDESC%.*/i' AND '[BLOCK]'='%idOwnerQueryBLOCK%') FILTER ('[USE1_DESC]'= /.*%idOwnerQueryDESC%.*/i AND '[BLOCK]'='%idOwnerQueryBLOCK%') FILTER ('[USE1_DESC]'=' .*%idOwnerQueryDESC%*.' AND '[BLOCK]'='%idOwnerQueryBLOCK%') From: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Jay Kapalczynski Sent: Thursday, December 10, 2009 3:57 PM To: 'Fawcett, David (MPCA)'; 'Emiliano Castañeda' Cc: mapserver-users@lists.osgeo.org Subject: RE: [mapserver-users] Expression Syntax Thanks all for your thoughts Got it...I had to add ' ' around the textbox id as well when referencing the textbox id names Notice( '%idOwnerQueryDESC%' and '%idOwnerQueryBLOCK%' ) FILTER ('[USE1_DESC]'='%idOwnerQueryDESC%' AND '[BLOCK]'='%idOwnerQueryBLOCK%') Dan thanks for your thoughts...I am going to be moving to 2.x soonbut have to have the time to lean this all over again...moving to open layers that is One step at a time...I have a ton programmed into 1.6 that's going to take me some time to convert... Thanks again allvery appreciated From: Fawcett, David (MPCA) [mailto:david.fawc...@state.mn.us] Sent: Thursday, December 10, 2009 3:26 PM To: Jay Kapalczynski; 'Emiliano Castañeda' Cc: mapserver-users@lists.osgeo.org Subject: RE: [mapserver-users] Expression Syntax At a minimum, I think that you will need to add quotes around the query columns. (just use single quotes, not the fancy Microsofty ones below...) FILTER ('[USE1_DESC]'=%idOwnerQueryDESC% AND '[BLOCK]'=%idOwnerQueryBLOCK%) Try setting a filter with static values from your data to get the filter format working before you add the complexity of passing the values in with variables. FILTER ('[USE1_DESC]'='myUse' AND '[BLOCK]'='myBlock') David. From: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Jay Kapalczynski Sent: Thursday, December 10, 2009 3:21 PM To: 'Emiliano Castañeda' Cc: mapserver-users@lists.osgeo.org Subject: RE: [mapserver-users] Expression Syntax Emiliano thanks for the responseyea I looked at the documentation and it was a bit fuzzy to me... If I do them individually it works: #FILTERITEM 'USE1_DESC' #FILTER /.*%idOwnerQueryDESC%.*/i #FILTERITEM 'BLOCK' #FILTER /.*%idOwnerQueryBLOCK%.*/i FILTER ([USE1_DESC]=%idOwnerQueryDESC% AND [BLOCK]=%idOwnerQueryBLOCK%) ERROR: msEvalExpression: Expression parser error. Failed to parse expression: =Residential AND =006 FILTER (USE1_DESC=%idOwnerQueryDESC% AND BLOCK=%idOwnerQueryBLOCK%) I seemed to get a bunch of returns that were incorrect...seems like it grabbed all of them. Thoughts? From: Emiliano Castañeda [mailto:emilianocastan...@suremptec.com.ar] Sent: Thursday, December 10, 2009 2:13 PM To: Jay Kapalczynski Cc: mapserver-users@lists.osgeo.org Subject: Re: [mapserver-users] Expression Syntax Jay, you must use FILTERITEM only for simple FILTER expressions (string comparison only) for example: FILTER 2005 -fieldvalue FILTERITEM year -fieldname For Logical FILTER expressions you do not define FILTERITEM. In this case you must place the FILTER between parentheses, and fieldnames between brackets for example: FILTER ([field1]4000 AND [field2]==Museum) --observe quotes on both sides on text fields See http://mapserver.org/mapfile/expressions.html#expressions for detail on how to build logical expressions Regards, Emiliano 2009/12/10 Jay Kapalczynski jkapalczyn...@ci.maple-grove.mn.usmailto:jkapalczyn...@ci.maple-grove.mn.us I looked on map server website in the documentation and cant get the synstax correct I have two textboxes idOwner and idOwner2 I am a bit confused on the FILTERITEM because I am trying to write the expression to include two fields. USE1_DESC and BLOCK are the two fields that form the query LAYER # Parcels Owner Layer NAME 'Parcels' DATA 'parcels/parcels.shp' STATUS DEFAULT TYPE POLYGON METADATA qstring_validation_pattern '.' END TEMPLATE 'parcels/itemquery_parcels_Owner.html' FILTERITEM 'USE1_DESC' FILTER (* WHERE USE1_DESC = '%idOwner%' and BLOCK = '%idOwner2%') END ___ mapserver-users mailing list mapserver-users@lists.osgeo.orgmailto:mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Ing. Emiliano Castañeda SUR Emprendimientos Tecnológicos Ing.
Re: [mapserver-users] make error - version 5.6.0-rc1 - /usr/bin/ld: cannot find -lxslt
Sounds like a new library dependency that needs to be documented. yum search libxslt yum install libxslt-devel or something like that. -Steve W Ted Spradley wrote: Hi everybody! Building 5.6.0-rc1 on Linux 2.6.23.15-80.fc7 make exits with the error below after trying to compile shp2img with the message: /usr/bin/ld: cannot find -lxslt What is xslt that ld is looking for? Thanks in advance, Ted S. gcc -c -O2 -fPIC -Wall -DHAVE_VSNPRINTF -DNEED_STRLCAT -DNEED_STRRSTR -DUSE_FASTCGI -DUSE_WMS_LYR -DUSE_WFS_LYR -DUSE_LIBXML2 -DUSE_CURL -DUSE_WCS_SVR -DUSE_WFS_SVR -DUSE_WMS_SVR-DUSE_POSTGIS -DUSE_GDAL -DUSE_OGR -DUSE_THREAD -DUSE_PROJ -DUSE_EPPL -DUSE_AGG -DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_FTEX_XSHOW -DGD_HAS_GDIMAGEGIFPTR -DGD_HAS_GETBITMAPFONTS -DUSE_ICONV -DUSE_ZLIB -I/usr/lib/ -I/usr/include/freetype2-I/usr/local/include -I/usr/local/include -I/usr/include -I/usr/include -I/usr/include/fastcgi -I/usr/include/libxml2 shp2img.c -o shp2img.o g++ -O2 -fPIC -Wall -DHAVE_VSNPRINTF -DNEED_STRLCAT -DNEED_STRRSTR -DUSE_FASTCGI -DUSE_WMS_LYR -DUSE_WFS_LYR -DUSE_LIBXML2 -DUSE_CURL -DUSE_WCS_SVR -DUSE_WFS_SVR -DUSE_WMS_SVR-DUSE_POSTGIS -DUSE_GDAL -DUSE_OGR -DUSE_THREAD -DUSE_PROJ -DUSE_EPPL -DUSE_AGG -DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_FTEX_XSHOW -DGD_HAS_GDIMAGEGIFPTR -DGD_HAS_GETBITMAPFONTS -DUSE_ICONV -DUSE_ZLIB -I/usr/lib/ -I/usr/include/freetype2-I/usr/local/include -I/usr/local/include -I/usr/include -I/usr/include -I/usr/include/fastcgi -I/usr/include/libxml2 shp2img.o -L. -lmapserver -L/usr/lib/ -lgd -ljpeg -lfreetype -lpng -lz -lXpm -lX11 -ljpeg -lfreetype -lpng -lz -lXpm -lX11 -L/usr/local/lib -lproj -ljpeg -lpng -L/usr/local/lib -lgdal -I/usr/include -lsqlite3 -L/usr/lib -lexpat -ljpeg -lpng -lpq -L/usr/lib -lpq -lz -lm -lrt -ldl -lcurl -L/usr/lib -lpq -lpgport -lxslt -lxml2 -lpam -lssl -lcrypto -lkrb5 -lcom_err -lgssapi_krb5 -lz -lreadline -lcrypt -ldl -lm -lcurl -lpthread -L -lc -L/usr/lib -lfcgi -lz -lxml2 -lz -lm -lm -lstdc++-o shp2img /usr/bin/ld: cannot find -lxslt collect2: ld returned 1 exit status make: *** [shp2img] Error 1 ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] make error - version 5.6.0-rc1 - /usr/bin/ld: cannot find -lxslt
Thanks Steve. Got it. Make error again, this time: /usr/bin/ld: cannot find -lpam So, did yum search libpam Excluding Packages from Fedora 7 - i386 Finished Excluding Packages from Fedora 7 - i386 - Updates Finished psa-libpam-plesk.i586 : PAM module to authorize via Plesk Users Database I am not sure what that means: PAM module to authorize via Plesk Users Database. I do have a Plesk Control Panel. yum install psa-libpam-plesk.i586 returns this: Excluding Packages from Fedora 7 - i386 Finished Excluding Packages from Fedora 7 - i386 - Updates Finished Setting up Install Process Parsing package install arguments No package psa-libpam-plesk.i586 available. Nothing to do Ted S - Original Message - From: Stephen Woodbridge [via OSGeo.org] To: Ted Spradley Sent: Thursday, December 10, 2009 4:23 PM Subject: Re: [mapserver-users] make error - version 5.6.0-rc1 - /usr/bin/ld: cannot find -lxslt Sounds like a new library dependency that needs to be documented. yum search libxslt yum install libxslt-devel or something like that. -Steve W Ted Spradley wrote: Hi everybody! Building 5.6.0-rc1 on Linux 2.6.23.15-80.fc7 make exits with the error below after trying to compile shp2img with the message: /usr/bin/ld: cannot find -lxslt What is xslt that ld is looking for? Thanks in advance, Ted S. gcc -c -O2 -fPIC -Wall -DHAVE_VSNPRINTF -DNEED_STRLCAT -DNEED_STRRSTR -DUSE_FASTCGI -DUSE_WMS_LYR -DUSE_WFS_LYR -DUSE_LIBXML2 -DUSE_CURL -DUSE_WCS_SVR -DUSE_WFS_SVR -DUSE_WMS_SVR-DUSE_POSTGIS -DUSE_GDAL -DUSE_OGR -DUSE_THREAD -DUSE_PROJ -DUSE_EPPL -DUSE_AGG -DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_FTEX_XSHOW -DGD_HAS_GDIMAGEGIFPTR -DGD_HAS_GETBITMAPFONTS -DUSE_ICONV -DUSE_ZLIB -I/usr/lib/ -I/usr/include/freetype2-I/usr/local/include -I/usr/local/include -I/usr/include -I/usr/include -I/usr/include/fastcgi -I/usr/include/libxml2 shp2img.c -o shp2img.o g++ -O2 -fPIC -Wall -DHAVE_VSNPRINTF -DNEED_STRLCAT -DNEED_STRRSTR -DUSE_FASTCGI -DUSE_WMS_LYR -DUSE_WFS_LYR -DUSE_LIBXML2 -DUSE_CURL -DUSE_WCS_SVR -DUSE_WFS_SVR -DUSE_WMS_SVR-DUSE_POSTGIS -DUSE_GDAL -DUSE_OGR -DUSE_THREAD -DUSE_PROJ -DUSE_EPPL -DUSE_AGG -DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_FTEX_XSHOW -DGD_HAS_GDIMAGEGIFPTR -DGD_HAS_GETBITMAPFONTS -DUSE_ICONV -DUSE_ZLIB -I/usr/lib/ -I/usr/include/freetype2-I/usr/local/include -I/usr/local/include -I/usr/include -I/usr/include -I/usr/include/fastcgi -I/usr/include/libxml2 shp2img.o -L. -lmapserver -L/usr/lib/ -lgd -ljpeg -lfreetype -lpng -lz -lXpm -lX11 -ljpeg -lfreetype -lpng -lz -lXpm -lX11 -L/usr/local/lib -lproj -ljpeg -lpng -L/usr/local/lib -lgdal -I/usr/include -lsqlite3 -L/usr/lib -lexpat -ljpeg -lpng -lpq -L/usr/lib -lpq -lz -lm -lrt -ldl -lcurl -L/usr/lib -lpq -lpgport -lxslt -lxml2 -lpam -lssl -lcrypto -lkrb5 -lcom_err -lgssapi_krb5 -lz -lreadline -lcrypt -ldl -lm -lcurl -lpthread -L -lc -L/usr/lib -lfcgi -lz -lxml2 -lz -lm -lm -lstdc++-o shp2img /usr/bin/ld: cannot find -lxslt collect2: ld returned 1 exit status make: *** [shp2img] Error 1 ___ mapserver-users mailing list [hidden email] http://lists.osgeo.org/mailman/listinfo/mapserver-users -- View message @ http://n2.nabble.com/make-error-version-5-6-0-rc1-usr-bin-ld-cannot-find-lxslt-tp4148052p4148305.html To unsubscribe from make error - version 5.6.0-rc1 - /usr/bin/ld: cannot find -lxslt, click here. -- View this message in context: http://n2.nabble.com/make-error-version-5-6-0-rc1-usr-bin-ld-cannot-find-lxslt-tp4148052p4148437.html Sent from the Mapserver - User mailing list archive at Nabble.com. ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] make error - version 5.6.0-rc1 - /usr/bin/ld: cannot find -lxslt
http://www.google.com/#hl=ensource=hpq=fedora+7+libpam -Steve Ted Spradley wrote: Thanks Steve. Got it. Make error again, this time: /usr/bin/ld: cannot find -lpam So, did yum search libpam Excluding Packages from Fedora 7 - i386 Finished Excluding Packages from Fedora 7 - i386 - Updates Finished psa-libpam-plesk.i586 : PAM module to authorize via Plesk Users Database I am not sure what that means: PAM module to authorize via Plesk Users Database. I do have a Plesk Control Panel. yum install psa-libpam-plesk.i586 returns this: Excluding Packages from Fedora 7 - i386 Finished Excluding Packages from Fedora 7 - i386 - Updates Finished Setting up Install Process Parsing package install arguments No package psa-libpam-plesk.i586 available. Nothing to do Ted S - Original Message - *From:* [hidden email] http://n2.nabble.com/user/SendEmail.jtp?type=nodenode=4148437i=0 *To:* [hidden email] http://n2.nabble.com/user/SendEmail.jtp?type=nodenode=4148437i=1 *Sent:* Thursday, December 10, 2009 4:23 PM *Subject:* Re: [mapserver-users] make error - version 5.6.0-rc1 - /usr/bin/ld: cannot find -lxslt Sounds like a new library dependency that needs to be documented. yum search libxslt yum install libxslt-devel or something like that. -Steve W Ted Spradley wrote: Hi everybody! Building 5.6.0-rc1 on Linux 2.6.23.15-80.fc7 make exits with the error below after trying to compile shp2img with the message: /usr/bin/ld: cannot find -lxslt What is xslt that ld is looking for? Thanks in advance, Ted S. gcc -c -O2 -fPIC -Wall -DHAVE_VSNPRINTF -DNEED_STRLCAT -DNEED_STRRSTR -DUSE_FASTCGI -DUSE_WMS_LYR -DUSE_WFS_LYR -DUSE_LIBXML2 -DUSE_CURL -DUSE_WCS_SVR -DUSE_WFS_SVR -DUSE_WMS_SVR-DUSE_POSTGIS -DUSE_GDAL -DUSE_OGR -DUSE_THREAD -DUSE_PROJ -DUSE_EPPL -DUSE_AGG -DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_FTEX_XSHOW -DGD_HAS_GDIMAGEGIFPTR -DGD_HAS_GETBITMAPFONTS -DUSE_ICONV -DUSE_ZLIB -I/usr/lib/ -I/usr/include/freetype2-I/usr/local/include -I/usr/local/include -I/usr/include -I/usr/include -I/usr/include/fastcgi -I/usr/include/libxml2 shp2img.c -o shp2img.o g++ -O2 -fPIC -Wall -DHAVE_VSNPRINTF -DNEED_STRLCAT -DNEED_STRRSTR -DUSE_FASTCGI -DUSE_WMS_LYR -DUSE_WFS_LYR -DUSE_LIBXML2 -DUSE_CURL -DUSE_WCS_SVR -DUSE_WFS_SVR -DUSE_WMS_SVR-DUSE_POSTGIS -DUSE_GDAL -DUSE_OGR -DUSE_THREAD -DUSE_PROJ -DUSE_EPPL -DUSE_AGG -DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_FTEX_XSHOW -DGD_HAS_GDIMAGEGIFPTR -DGD_HAS_GETBITMAPFONTS -DUSE_ICONV -DUSE_ZLIB -I/usr/lib/ -I/usr/include/freetype2-I/usr/local/include -I/usr/local/include -I/usr/include -I/usr/include -I/usr/include/fastcgi -I/usr/include/libxml2 shp2img.o -L. -lmapserver -L/usr/lib/ -lgd -ljpeg -lfreetype -lpng -lz -lXpm -lX11 -ljpeg -lfreetype -lpng -lz -lXpm -lX11 -L/usr/local/lib -lproj -ljpeg -lpng -L/usr/local/lib -lgdal -I/usr/include -lsqlite3 -L/usr/lib -lexpat -ljpeg -lpng -lpq -L/usr/lib -lpq -lz -lm -lrt -ldl -lcurl -L/usr/lib -lpq -lpgport -lxslt -lxml2 -lpam -lssl -lcrypto -lkrb5 -lcom_err -lgssapi_krb5 -lz -lreadline -lcrypt -ldl -lm -lcurl -lpthread -L -lc -L/usr/lib -lfcgi -lz -lxml2 -lz -lm -lm -lstdc++-o shp2img /usr/bin/ld: cannot find -lxslt collect2: ld returned 1 exit status make: *** [shp2img] Error 1 ___ mapserver-users mailing list [hidden email] http://n2.nabble.com/user/SendEmail.jtp?type=nodenode=4148305i=0 http://lists.osgeo.org/mailman/listinfo/mapserver-users View this message in context: Re: [mapserver-users] make error - version 5.6.0-rc1 - /usr/bin/ld: cannot find -lxslt http://n2.nabble.com/make-error-version-5-6-0-rc1-usr-bin-ld-cannot-find-lxslt-tp4148052p4148437.html Sent from the Mapserver - User mailing list archive http://n2.nabble.com/Mapserver-User-f1969211.html at Nabble.com. ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users