[mapserver-users] Label problem
Hi all... I want to have the street name labels placed within the width of road, in the proper direction (angle etc) just like how it appears in Google Maps. I am new to MapServer and I am not sure how I could achieve this. This is what I tried: CLASS NAME 'AP Road' MAXSCALE 1 MINSCALE 5000 STYLE COLOR 85 85 85 SYMBOL 'circle' SIZE 4 ANTIALIAS TRUE END STYLE COLOR 255 255 255 SYMBOL 'circle' SIZE 2 ANTIALIAS TRUE END LABEL ANGLE follow COLOR 0 0 0 OUTLINECOLOR 255 255 255 FONT arial TYPE TRUETYPE SIZE 8 POSITION auto BUFFER 10 END END This did not help. I have 19 classes of roads in my road layer. The labels are the same in almost all in the classes. Styles vary according to the scale. What changes do I make..I am very confused. Please kindly advise me on how to proceed. Thank you very much. ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] Web interface
Hi everybody: Do you know a good web frontend for display and manipulate maps that has been produced in mapserver? Thanks a lot in advance Patricio ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] Label problem
hi,this is part of mi map file -- LABELMAXSCALE 9 LABELMINSCALE 8000 METADATA LAYER_ENCODING UTF-8 DESCRIPTION Avenidas RESULT_FIELDS nombre,desde,hasta RESULT_HEADERS Nombre,Desde,Hasta END #METADATA LABELITEM 'nombre' CLASS Name 'Avenidas' LABEL TYPE truetype FONT 'FreeSans' ANGLE auto POSITION auto SIZE 5 END #label STYLE SYMBOL 'Avenidas--0--0' SIZE 3 COLOR 193 62 183 END #STYLE END # Class -- Saludos y espero que te sirva http://blogs.hydras.com.ar/srodriguez/ Atentamente Rolando Sergio Rodriguez ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
AW: [mapserver-users] ArcSDE raster and value difference of 256
See ticket #3230 Regards, Andreas - Dr. Andreas-Alexander Maul B4.2 Geodaten, Geologische Informationen, Stratigraphie Bundesanstalt für Geowissenschaften und Rohstoffe im GEOZENTRUM HANNOVER Stilleweg 2 30655 Hannover Tel.: +49 (0)511 643-3454 Email: andreas-alexander.m...@bgr.de -Ursprüngliche Nachricht- Von: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] Im Auftrag von bart...@osgis.nl Gesendet: Donnerstag, 26. November 2009 11:17 An: mapserver-users@lists.osgeo.org Betreff: [mapserver-users] ArcSDE raster and value difference of 256 Hi list, I am trying to use an ArcSDE raster layer in Mapserver, but the values that Mapserver gives back are different from the values that ArcMap gives back. There is a difference of exactly 256. So NODATA is 256 according to ArcMap, but Mapserver seems to map it to 0, etc. for all other values. Does anyone know how to solve this? TIA. [b...@hades build]$ /opt/arcsde-9.2-tools/bin/sderaster -o list -l HOOGTE.kust_2009_2,RASTER -s geodatabase.ad.rws.nl -i 5151 -D PGPR -u RWS_LEZEN -p -verbose Connecting to server geodatabase.ad.rws.nl, port 5151, as user RWS_LEZEN ArcSDE 9.1 Oracle10g Build 392 Thu Nov 2 15:42:12 PST 2006 Raster ID ...: 1 Raster Dimension : 22000, 15000, 1 Raster Tile Dimension ...: 128, 128 Pixel Type ..: char Compression .: lz77 Image Pyramid ...: 6, false, nearest Extent ..: minx:105002.50 miny:543752.50 maxx:214997.50 maxy:618747.50 Cell Size: x : 5.00 y : 5.00 Statistics ..: NONE 1 raster(s). Complete... Best regards, Bart ___ 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] Black background with palette
Solved. For the record : http://trac.osgeo.org/mapserver/ticket/3217#comment:5 Alexandre Alexandre Dube wrote: Steve Lime wrote: Are you compiling with the experimental png support? No, but I just tried with it and it didn't resolved the issue. I noticed a slight change of the image quality though. Thanks, -- Alexandre Dubé Mapgears www.mapgears.com ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
RE: [mapserver-users] Web interface
Something that would be helpful to know is whether you need something that isn't very technical to setup or not. I just rolled out the use of MapGuide Fusion using MapServer as our backend. I have it serving about 10 transparent MapServer layers in a pretty nice interface. I've begun submitting code fixes specific for the MapServer side of things. Fusion has seemed to be a pretty nice interface. http://trac.osgeo.org/fusion/wiki - Tim Timothy J Nolte - tno...@ilpcs.com Network Planning Engineer Sprint Nextel 4717 Broadmoor Ave, Suite G Kentwood, MI 49512 Office: 616-656-5163 PCS: 616-706-2438 Fax: 616-554-6484 -Original Message- From: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Patricio Gigoux Sent: Friday, December 11, 2009 6:43 AM To: mapserver-users@lists.osgeo.org Subject: [mapserver-users] Web interface Hi everybody: Do you know a good web frontend for display and manipulate maps that has been produced in mapserver? Thanks a lot in advance Patricio ___ 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] Expression Syntax
Thanks for all your help yesterdayvery appreciated...seems I always get botched up with the syntax U...I have tried 20 different ways and I just seem to be missing something.. I guess the question is, Can I use a wild card search in a logical expression? This works (WILD CARD ) FILTER /.*%idOwnerQueryDESC%.*/i This works (NO WILD CARD) FILTER ('[USE1_DESC]'='%idOwnerQueryDESC%' AND '[BLOCK]'='%idOwnerQueryBLOCK%') This DOSENT work (Cant get the wild card into this) FILTER ('[USE1_DESC]'=' /.*%idOwnerQueryDESC%.*/i' AND '[BLOCK]'='%idOwnerQueryBLOCK%') Any thoughts? Thanks 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.
RE: [mapserver-users] Expression Syntax
Try: FILTER (‘[USE1_DESC]’ =~ /.*%idOwnerQueryDESC%.*/i AND ‘[BLOCK]’=’%idOwnerQueryBLOCK%’) I've not tried case insensitive regex in a logical expression though. You might have to remove the i... Steve From: mapserver-users-boun...@lists.osgeo.org [mapserver-users-boun...@lists.osgeo.org] On Behalf Of Jay Kapalczynski [jkapalczyn...@ci.maple-grove.mn.us] Sent: Friday, December 11, 2009 8:37 AM To: Fawcett, David (MPCA); 'Emiliano Castañeda' Cc: mapserver-users@lists.osgeo.org Subject: RE: [mapserver-users] Expression Syntax Thanks for all your help yesterday….very appreciated…seems I always get botched up with the syntax…. U…I have tried 20 different ways and I just seem to be missing something.. I guess the question is, Can I use a wild card search in a logical expression? This works (WILD CARD ) FILTER /.*%idOwnerQueryDESC%.*/i This works (NO WILD CARD) FILTER (‘[USE1_DESC]’=’%idOwnerQueryDESC%’ AND ‘[BLOCK]’=’%idOwnerQueryBLOCK%’) This DOSENT work (Cant get the wild card into this) FILTER (‘[USE1_DESC]’=’ /.*%idOwnerQueryDESC%.*/i’ AND ‘[BLOCK]’=’%idOwnerQueryBLOCK%’) Any thoughts? Thanks 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 soon….but 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 all….very 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 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.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
Re: [mapserver-users] Web interface
Like Bob said, there isn't any creation/management tools. I've been running a general philiosophy that, at some points, users will need to hack mapfiles. In the downloadable demo, we've been trying to give users enough exmaples to make it easy to learn and modify to their specific needs. We also try to provide an example structure on how to make the management, of even large sites, sane. And that sanity can be acheived with basic tools instead of needing to convolute the whole process. I have been considering writing some code that would: a) Provide online editing services with a database short of needing PostGIS, like oh, SpatialLite. Something we could distribute more easily with the project. b) Work with Bob (and the team he has) to generalize some of the tools they have developed, get them working with Spatial/SQLite and try to make them publically available. c) Porting the code to Ruby and/or Python. Ruby is my new favorite language but Python is more practical for a ton of reasons. The PHP works and is fairly accessible to novice users but I find the language ugly and more difficult to maintain than the others. Of course, PHP seems to be the defacto language of MS4W ... which is why we've stayed married to it. I'm probably more likely to develop more user tools if it's in a language other than PHP. Of course, any assistance in either man-hours or funding is greatly appreciated towards any of these ends. - Original Message From: Bob Basques bo...@gritechnologies.com To: Jeff McKenna jmcke...@gatewaygeomatics.com Cc: mapserver-users@lists.osgeo.org Sent: Fri, December 11, 2009 8:20:17 AM Subject: Re: [mapserver-users] Web interface All, I can chime in here on something related. While GeoMoose doesn't (currently) have any Mapfile tools, I'm currently in the middle of a project that has built out some autoconfigure items for MapServer. The project is fairly specific in it's business tasks so the configure aspects are in their infancy, but it's got a real nice framework around it that will be very extensible. We're using GeoMoose, so it also (will) autoconfigure the GeoMoose interface to some degree, and hopefully future versions will be able to more fully control things. BTW, the initial ease of setup of GeoMoose has enabled this type of control structure very nicely. Some of the future items to figure out, is how to best accommodate those folks that also want to get into the MAPFILES and tweak them manually while still maintaining the autoConfigure aspects. Look for something in the next 30-60 days. bobb Jeff McKenna wrote: Dan Little wrote: (shameless plug) GeoMOOSE is very easy to setup and configure as a front-end to MapServer. (end) Hi Dan, I'm curious, does GeoMOOSE have any mapfile creation/management tools? If yes, maybe you can point us all to a demo. thanks. -jeff ___ 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] Expression Syntax
Thanks Steve for you response I have been scouring the documentation on expressions and was getting confused.. This is from Mapserver ( ( ... ) AND ( ... ) ) ( ( ... ) ( ... ) ) ... will become true when both of the two logical expressions in the innermost brackets are true. Although my solution followed (...AND...) NOT ((...) AND (...)) I didn't see the ~ in the documentation...what is that doing is signifying? I had to remove the i so I am not longer case insensitive.thats a drag...guess I have to modify my attributes to LCase to get around that... Any other thoughts about the case sensitive issue...any way around that with the Logical Expression... Thanks again everyone for you help and suggestions. -Original Message- From: Lime, Steve D (DNR) [mailto:steve.l...@state.mn.us] Sent: Friday, December 11, 2009 8:55 AM To: Jay Kapalczynski Cc: mapserver-users@lists.osgeo.org Subject: RE: [mapserver-users] Expression Syntax Try: FILTER ('[USE1_DESC]' =~ /.*%idOwnerQueryDESC%.*/i AND '[BLOCK]'='%idOwnerQueryBLOCK%') I've not tried case insensitive regex in a logical expression though. You might have to remove the i... Steve From: mapserver-users-boun...@lists.osgeo.org [mapserver-users-boun...@lists.osgeo.org] On Behalf Of Jay Kapalczynski [jkapalczyn...@ci.maple-grove.mn.us] Sent: Friday, December 11, 2009 8:37 AM To: Fawcett, David (MPCA); 'Emiliano Castañeda' Cc: mapserver-users@lists.osgeo.org Subject: RE: [mapserver-users] Expression Syntax Thanks for all your help yesterdayvery appreciated...seems I always get botched up with the syntax U...I have tried 20 different ways and I just seem to be missing something.. I guess the question is, Can I use a wild card search in a logical expression? This works (WILD CARD ) FILTER /.*%idOwnerQueryDESC%.*/i This works (NO WILD CARD) FILTER ('[USE1_DESC]'='%idOwnerQueryDESC%' AND '[BLOCK]'='%idOwnerQueryBLOCK%') This DOSENT work (Cant get the wild card into this) FILTER ('[USE1_DESC]'=' /.*%idOwnerQueryDESC%.*/i' AND '[BLOCK]'='%idOwnerQueryBLOCK%') Any thoughts? Thanks 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
RE: [mapserver-users] Expression Syntax
The =~ is the regex operator. It's referenced in a Note just below all the other logical expressions... Probably should just be inlined with the other examples. You can write case insensitive regex's the brute force way, e.g.: /hello/ = /[Hh][Ee][Ll][Ll][Oo]/ Bit of a pain though. Also, if you could isolate the regex somehow and remove your block test then you could do a straight regex expression and use case insensitivity. For example, FILTERITEM 'block' FILTER '%idOwnerQueryBLOCK%’ CLASSITEM 'USE1_DESC' CLASS EXPRESSION /.*%idOwnerQueryDESC%.*/i END Might even see better performance... Steve From: Jay Kapalczynski [jkapalczyn...@ci.maple-grove.mn.us] Sent: Friday, December 11, 2009 9:17 AM To: Lime, Steve D (DNR) Cc: mapserver-users@lists.osgeo.org Subject: RE: [mapserver-users] Expression Syntax Thanks Steve for you response I have been scouring the documentation on expressions and was getting confused.. This is from Mapserver ( ( ... ) AND ( ... ) ) ( ( ... ) ( ... ) ) ... will become true when both of the two logical expressions in the innermost brackets are true. Although my solution followed (...AND...) NOT ((...) AND (...)) I didn’t see the ~ in the documentation...what is that doing is signifying? I had to remove the i so I am not longer case insensitive.thats a drag...guess I have to modify my attributes to LCase to get around that... Any other thoughts about the case sensitive issue...any way around that with the Logical Expression... Thanks again everyone for you help and suggestions. -Original Message- From: Lime, Steve D (DNR) [mailto:steve.l...@state.mn.us] Sent: Friday, December 11, 2009 8:55 AM To: Jay Kapalczynski Cc: mapserver-users@lists.osgeo.org Subject: RE: [mapserver-users] Expression Syntax Try: FILTER (‘[USE1_DESC]’ =~ /.*%idOwnerQueryDESC%.*/i AND ‘[BLOCK]’=’%idOwnerQueryBLOCK%’) I've not tried case insensitive regex in a logical expression though. You might have to remove the i... Steve From: mapserver-users-boun...@lists.osgeo.org [mapserver-users-boun...@lists.osgeo.org] On Behalf Of Jay Kapalczynski [jkapalczyn...@ci.maple-grove.mn.us] Sent: Friday, December 11, 2009 8:37 AM To: Fawcett, David (MPCA); 'Emiliano Castañeda' Cc: mapserver-users@lists.osgeo.org Subject: RE: [mapserver-users] Expression Syntax Thanks for all your help yesterday….very appreciated…seems I always get botched up with the syntax…. U…I have tried 20 different ways and I just seem to be missing something.. I guess the question is, Can I use a wild card search in a logical expression? This works (WILD CARD ) FILTER /.*%idOwnerQueryDESC%.*/i This works (NO WILD CARD) FILTER (‘[USE1_DESC]’=’%idOwnerQueryDESC%’ AND ‘[BLOCK]’=’%idOwnerQueryBLOCK%’) This DOSENT work (Cant get the wild card into this) FILTER (‘[USE1_DESC]’=’ /.*%idOwnerQueryDESC%.*/i’ AND ‘[BLOCK]’=’%idOwnerQueryBLOCK%’) Any thoughts? Thanks 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 soon….but 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 all….very 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 response….yea I looked at the documentation and it was a bit
Re: [mapserver-users] make error - version 5.6.0-rc1 - /usr/bin/ld: cannot find -lxslt
Stephen Woodbridge wrote: http://www.google.com/#hl=ensource=hpq=fedora+7+libpam -Steve Not having libpam doesn't appear to be the issue. It just can't find it. /usr/bin/ld: cannot find -lpam # locate libpam /lib/libpam.so.0 /lib/libpam.so.0.81.6 /lib/libpam_misc.so.0 /lib/libpam_misc.so.0.81.2 /lib/libpamc.so.0 /lib/libpamc.so.0.81.0 /root/psa/PSA_8.4.0/dist-rpm-FedoraCore-7-i386/base/psa-libpam-plesk-8.4.0-fc7.build84080425.19.i586.rpm /root/psa/PSA_9.2.3/dist-rpm-FedoraCore-7-i386/base/psa-libpam-plesk-9.2.3-fc7.build92091015.22.i586.rpm /swsoft/PSA_8.3.0/dist-rpm-FedoraCore-7-i386/base/psa-libpam-plesk-8.3.0-fc7.build83071218.19.i586.rpm Is there any way to feed make the path for this library? Thanks, Ted S. -- View this message in context: http://n2.nabble.com/make-error-version-5-6-0-rc1-usr-bin-ld-cannot-find-lxslt-tp4148052p4152101.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
You could simply add the path to ldconfig. Add a file.conf in /etc/ld.so.conf.d/ which contains only a line with: /lib/ and type ldconfig as root. Alan On December 11, 2009 11:08:59 am Ted Spradley wrote: Stephen Woodbridge wrote: http://www.google.com/#hl=ensource=hpq=fedora+7+libpam -Steve Not having libpam doesn't appear to be the issue. It just can't find it. /usr/bin/ld: cannot find -lpam # locate libpam /lib/libpam.so.0 /lib/libpam.so.0.81.6 /lib/libpam_misc.so.0 /lib/libpam_misc.so.0.81.2 /lib/libpamc.so.0 /lib/libpamc.so.0.81.0 /root/psa/PSA_8.4.0/dist-rpm-FedoraCore-7-i386/base/psa-libpam-plesk-8.4.0- fc7.build84080425.19.i586.rpm /root/psa/PSA_9.2.3/dist-rpm-FedoraCore-7-i386/base/psa-libpam-plesk-9.2.3 -fc7.build92091015.22.i586.rpm /swsoft/PSA_8.3.0/dist-rpm-FedoraCore-7-i386/base/psa-libpam-plesk-8.3.0-f c7.build83071218.19.i586.rpm Is there any way to feed make the path for this library? Thanks, Ted S. -- Alan Boudreault Mapgears http://www.mapgears.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
A couple of ways... as root, rerun /etc/ldconfig which should find libpam.so. In the makefile, add -lpam to the line starting with XTRALIBS= (I think this will work, but trying it won't take you too long...) gerry Ted Spradley wrote: Stephen Woodbridge wrote: http://www.google.com/#hl=ensource=hpq=fedora+7+libpam -Steve Not having libpam doesn't appear to be the issue. It just can't find it. /usr/bin/ld: cannot find -lpam # locate libpam /lib/libpam.so.0 /lib/libpam.so.0.81.6 /lib/libpam_misc.so.0 /lib/libpam_misc.so.0.81.2 /lib/libpamc.so.0 /lib/libpamc.so.0.81.0 /root/psa/PSA_8.4.0/dist-rpm-FedoraCore-7-i386/base/psa-libpam-plesk-8.4.0-fc7.build84080425.19.i586.rpm /root/psa/PSA_9.2.3/dist-rpm-FedoraCore-7-i386/base/psa-libpam-plesk-9.2.3-fc7.build92091015.22.i586.rpm /swsoft/PSA_8.3.0/dist-rpm-FedoraCore-7-i386/base/psa-libpam-plesk-8.3.0-fc7.build83071218.19.i586.rpm Is there any way to feed make the path for this library? Thanks, Ted S. ___ 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 Alan, and others. I realize my server admin skills are lacking. So, file.conf should be named 'lpam.conf' or 'libpam.conf'? (tried both, then ldconfig as root ... still the same error) Ted S. - Original Message - From: Alan Boudreault [via OSGeo.org] To: Ted Spradley Sent: Friday, December 11, 2009 10:27 AM Subject: Re: [mapserver-users] make error - version 5.6.0-rc1 - /usr/bin/ld: cannot find -lxslt You could simply add the path to ldconfig. Add a file.conf in /etc/ld.so.conf.d/ which contains only a line with: /lib/ and type ldconfig as root. Alan On December 11, 2009 11:08:59 am Ted Spradley wrote: Stephen Woodbridge wrote: http://www.google.com/#hl=ensource=hpq=fedora+7+libpam -Steve Not having libpam doesn't appear to be the issue. It just can't find it. /usr/bin/ld: cannot find -lpam # locate libpam /lib/libpam.so.0 /lib/libpam.so.0.81.6 /lib/libpam_misc.so.0 /lib/libpam_misc.so.0.81.2 /lib/libpamc.so.0 /lib/libpamc.so.0.81.0 /root/psa/PSA_8.4.0/dist-rpm-FedoraCore-7-i386/base/psa-libpam-plesk-8.4.0- fc7.build84080425.19.i586.rpm /root/psa/PSA_9.2.3/dist-rpm-FedoraCore-7-i386/base/psa-libpam-plesk-9.2.3 -fc7.build92091015.22.i586.rpm /swsoft/PSA_8.3.0/dist-rpm-FedoraCore-7-i386/base/psa-libpam-plesk-8.3.0-f c7.build83071218.19.i586.rpm Is there any way to feed make the path for this library? Thanks, Ted S. -- Alan Boudreault Mapgears http://www.mapgears.com ___ 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-tp4148052p4152220.html To unsubscribe from Re: 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-tp4148052p4152695.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
The file name is not important. Theorically, ldconfig should read all those files and add it to its lib path. Unfortunately, I don't know much Fedora but it should work that way. Alan On December 11, 2009 12:55:24 pm Ted Spradley wrote: Thanks Alan, and others. I realize my server admin skills are lacking. So, file.conf should be named 'lpam.conf' or 'libpam.conf'? (tried both, then ldconfig as root ... still the same error) Ted S. - Original Message - From: Alan Boudreault [via OSGeo.org] To: Ted Spradley Sent: Friday, December 11, 2009 10:27 AM Subject: Re: [mapserver-users] make error - version 5.6.0-rc1 - /usr/bin/ld: cannot find -lxslt You could simply add the path to ldconfig. Add a file.conf in /etc/ld.so.conf.d/ which contains only a line with: /lib/ and type ldconfig as root. Alan On December 11, 2009 11:08:59 am Ted Spradley wrote: Stephen Woodbridge wrote: http://www.google.com/#hl=ensource=hpq=fedora+7+libpam -Steve Not having libpam doesn't appear to be the issue. It just can't find it. /usr/bin/ld: cannot find -lpam # locate libpam /lib/libpam.so.0 /lib/libpam.so.0.81.6 /lib/libpam_misc.so.0 /lib/libpam_misc.so.0.81.2 /lib/libpamc.so.0 /lib/libpamc.so.0.81.0 /root/psa/PSA_8.4.0/dist-rpm-FedoraCore-7-i386/base/psa-libpam-plesk-8. 4.0- fc7.build84080425.19.i586.rpm /root/psa/PSA_9.2.3/dist-rpm-FedoraCore-7-i386/base/psa-libpam-plesk-9. 2.3 -fc7.build92091015.22.i586.rpm /swsoft/PSA_8.3.0/dist-rpm-FedoraCore-7-i386/base/psa-libpam-plesk-8.3. 0-f c7.build83071218.19.i586.rpm Is there any way to feed make the path for this library? Thanks, Ted S. --- --- View message @ http://n2.nabble.com/make-error-version-5-6-0-rc1-usr-bin-ld-cannot-find-l xslt-tp4148052p4152220.html To unsubscribe from Re: make error - version 5.6.0-rc1 - /usr/bin/ld: cannot find -lxslt, click here. -- Alan Boudreault Mapgears http://www.mapgears.com ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
RE: [mapserver-users] Expression Syntax
My example I am having the user fill the query...so I don't know what they are entering Are you hinting at doing that with the whole alphabet? /idOwnerQueryDESC/ = [Aa][Bb][Cc][Dd] etc etc If I split them apart like you suggested how does the AND statement of the logical expression get referenced? Thanks Steve for your thoughts and comments...apprecaited... Thanks -Original Message- From: Lime, Steve D (DNR) [mailto:steve.l...@state.mn.us] Sent: Friday, December 11, 2009 9:29 AM To: Jay Kapalczynski Cc: mapserver-users@lists.osgeo.org Subject: RE: [mapserver-users] Expression Syntax The =~ is the regex operator. It's referenced in a Note just below all the other logical expressions... Probably should just be inlined with the other examples. You can write case insensitive regex's the brute force way, e.g.: /hello/ = /[Hh][Ee][Ll][Ll][Oo]/ Bit of a pain though. Also, if you could isolate the regex somehow and remove your block test then you could do a straight regex expression and use case insensitivity. For example, FILTERITEM 'block' FILTER '%idOwnerQueryBLOCK%' CLASSITEM 'USE1_DESC' CLASS EXPRESSION /.*%idOwnerQueryDESC%.*/i END Might even see better performance... Steve From: Jay Kapalczynski [jkapalczyn...@ci.maple-grove.mn.us] Sent: Friday, December 11, 2009 9:17 AM To: Lime, Steve D (DNR) Cc: mapserver-users@lists.osgeo.org Subject: RE: [mapserver-users] Expression Syntax Thanks Steve for you response I have been scouring the documentation on expressions and was getting confused.. This is from Mapserver ( ( ... ) AND ( ... ) ) ( ( ... ) ( ... ) ) ... will become true when both of the two logical expressions in the innermost brackets are true. Although my solution followed (...AND...) NOT ((...) AND (...)) I didn't see the ~ in the documentation...what is that doing is signifying? I had to remove the i so I am not longer case insensitive.thats a drag...guess I have to modify my attributes to LCase to get around that... Any other thoughts about the case sensitive issue...any way around that with the Logical Expression... Thanks again everyone for you help and suggestions. -Original Message- From: Lime, Steve D (DNR) [mailto:steve.l...@state.mn.us] Sent: Friday, December 11, 2009 8:55 AM To: Jay Kapalczynski Cc: mapserver-users@lists.osgeo.org Subject: RE: [mapserver-users] Expression Syntax Try: FILTER ('[USE1_DESC]' =~ /.*%idOwnerQueryDESC%.*/i AND '[BLOCK]'='%idOwnerQueryBLOCK%') I've not tried case insensitive regex in a logical expression though. You might have to remove the i... Steve From: mapserver-users-boun...@lists.osgeo.org [mapserver-users-boun...@lists.osgeo.org] On Behalf Of Jay Kapalczynski [jkapalczyn...@ci.maple-grove.mn.us] Sent: Friday, December 11, 2009 8:37 AM To: Fawcett, David (MPCA); 'Emiliano Castañeda' Cc: mapserver-users@lists.osgeo.org Subject: RE: [mapserver-users] Expression Syntax Thanks for all your help yesterday..very appreciated.seems I always get botched up with the syntax.. U.I have tried 20 different ways and I just seem to be missing something.. I guess the question is, Can I use a wild card search in a logical expression? This works (WILD CARD ) FILTER /.*%idOwnerQueryDESC%.*/i This works (NO WILD CARD) FILTER ('[USE1_DESC]'='%idOwnerQueryDESC%' AND '[BLOCK]'='%idOwnerQueryBLOCK%') This DOSENT work (Cant get the wild card into this) FILTER ('[USE1_DESC]'=' /.*%idOwnerQueryDESC%.*/i' AND '[BLOCK]'='%idOwnerQueryBLOCK%') Any thoughts? Thanks 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 soon..but 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 all..very 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
RE: [mapserver-users] Expression Syntax
No, you'd take their input and convert it before submitting. So if they type 'hello' you'd convert it to '[Hh][Ee][Ll][Ll][Oo]' before sending. You could do something like that in javascript I suppose. If you split them apart the filter would get applied first (so you'd see candidate Features with the right block value only) and then the expression would be used. My suggestion/workaround was pretty specific to your message and might not make sense depending on how the whole layer looks. For example, if you've got multiple classes then that approach won't work. Steve -Original Message- From: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Jay Kapalczynski Sent: Friday, December 11, 2009 12:08 PM To: Lime, Steve D (DNR) Cc: mapserver-users@lists.osgeo.org Subject: RE: [mapserver-users] Expression Syntax My example I am having the user fill the query...so I don't know what they are entering Are you hinting at doing that with the whole alphabet? /idOwnerQueryDESC/ = [Aa][Bb][Cc][Dd] etc etc If I split them apart like you suggested how does the AND statement of the logical expression get referenced? Thanks Steve for your thoughts and comments...apprecaited... Thanks -Original Message- From: Lime, Steve D (DNR) [mailto:steve.l...@state.mn.us] Sent: Friday, December 11, 2009 9:29 AM To: Jay Kapalczynski Cc: mapserver-users@lists.osgeo.org Subject: RE: [mapserver-users] Expression Syntax The =~ is the regex operator. It's referenced in a Note just below all the other logical expressions... Probably should just be inlined with the other examples. You can write case insensitive regex's the brute force way, e.g.: /hello/ = /[Hh][Ee][Ll][Ll][Oo]/ Bit of a pain though. Also, if you could isolate the regex somehow and remove your block test then you could do a straight regex expression and use case insensitivity. For example, FILTERITEM 'block' FILTER '%idOwnerQueryBLOCK%' CLASSITEM 'USE1_DESC' CLASS EXPRESSION /.*%idOwnerQueryDESC%.*/i END Might even see better performance... Steve From: Jay Kapalczynski [jkapalczyn...@ci.maple-grove.mn.us] Sent: Friday, December 11, 2009 9:17 AM To: Lime, Steve D (DNR) Cc: mapserver-users@lists.osgeo.org Subject: RE: [mapserver-users] Expression Syntax Thanks Steve for you response I have been scouring the documentation on expressions and was getting confused.. This is from Mapserver ( ( ... ) AND ( ... ) ) ( ( ... ) ( ... ) ) ... will become true when both of the two logical expressions in the innermost brackets are true. Although my solution followed (...AND...) NOT ((...) AND (...)) I didn't see the ~ in the documentation...what is that doing is signifying? I had to remove the i so I am not longer case insensitive.thats a drag...guess I have to modify my attributes to LCase to get around that... Any other thoughts about the case sensitive issue...any way around that with the Logical Expression... Thanks again everyone for you help and suggestions. -Original Message- From: Lime, Steve D (DNR) [mailto:steve.l...@state.mn.us] Sent: Friday, December 11, 2009 8:55 AM To: Jay Kapalczynski Cc: mapserver-users@lists.osgeo.org Subject: RE: [mapserver-users] Expression Syntax Try: FILTER ('[USE1_DESC]' =~ /.*%idOwnerQueryDESC%.*/i AND '[BLOCK]'='%idOwnerQueryBLOCK%') I've not tried case insensitive regex in a logical expression though. You might have to remove the i... Steve From: mapserver-users-boun...@lists.osgeo.org [mapserver-users-boun...@lists.osgeo.org] On Behalf Of Jay Kapalczynski [jkapalczyn...@ci.maple-grove.mn.us] Sent: Friday, December 11, 2009 8:37 AM To: Fawcett, David (MPCA); 'Emiliano Castañeda' Cc: mapserver-users@lists.osgeo.org Subject: RE: [mapserver-users] Expression Syntax Thanks for all your help yesterday..very appreciated.seems I always get botched up with the syntax.. U.I have tried 20 different ways and I just seem to be missing something.. I guess the question is, Can I use a wild card search in a logical expression? This works (WILD CARD ) FILTER /.*%idOwnerQueryDESC%.*/i This works (NO WILD CARD) FILTER ('[USE1_DESC]'='%idOwnerQueryDESC%' AND '[BLOCK]'='%idOwnerQueryBLOCK%') This DOSENT work (Cant get the wild card into this) FILTER ('[USE1_DESC]'=' /.*%idOwnerQueryDESC%.*/i' AND '[BLOCK]'='%idOwnerQueryBLOCK%') Any thoughts? Thanks 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(
[mapserver-users] MapServer CGI + Oracle + Query, msQueryByShape no results
I have a web client that makes calls to the MapServer (5.6.0rc1) CGI. I'm requesting the results of a query. The issue I am having is that if one of the layers specified has no results the whole process fails with: msQueryByShape(): Search returned no results. No matching record(s) found. If I run the same query but only pass a single layer that does have results then it works. Additionally if I run the same query again and have results in both of say 2 layers searched, I only get the layer that is searched first to be highlighted rather than all of the results of all layers. It seems like the logic that is used for querying is flawed. Was the design of using a query file only designed to be used with 1 layer at a time? I really need help as this is breaking the web client and causing users to get unexpected results. Thanks. - Tim Timothy J Nolte - tno...@ilpcs.com Network Planning Engineer Sprint Nextel 4717 Broadmoor Ave, Suite G Kentwood, MI 49512 Office: 616-656-5163 PCS: 616-706-2438 Fax: 616-554-6484 ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] cascading WMS with mapserver
Hi, I'd like to set up a local mapfile which provides a layer from http://wms.jpl.nasa.gov/wms.cgi What I can't find in the mapserver docs is exactly what I put into the CONNECTION string to specify the layer I want from this server. The capabilities doc returned lists several layer, I want to provide just one via a local mapserver implementation. Any suggestions? Thanks, Brent Wood ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
RE: [mapserver-users] MapServer CGI + Oracle + Query, msQueryByShape no results
Does the behavior hold true with shapefiles or is this just Oracle, or can't you test that. The queryfile (foo.qf) caches the query parameters itself, not the results. The pre-5.6 cached the results but it was really expensive to retrieve them with certain types of data providers, primarily databases. Are you using query files? A sample query or two would help. Also, how are you presenting the results (template, querymap or ???) Steve -Original Message- From: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Nolte, Tim Sent: Friday, December 11, 2009 1:12 PM To: mapserver-users@lists.osgeo.org Subject: [mapserver-users] MapServer CGI + Oracle + Query, msQueryByShape no results I have a web client that makes calls to the MapServer (5.6.0rc1) CGI. I'm requesting the results of a query. The issue I am having is that if one of the layers specified has no results the whole process fails with: msQueryByShape(): Search returned no results. No matching record(s) found. If I run the same query but only pass a single layer that does have results then it works. Additionally if I run the same query again and have results in both of say 2 layers searched, I only get the layer that is searched first to be highlighted rather than all of the results of all layers. It seems like the logic that is used for querying is flawed. Was the design of using a query file only designed to be used with 1 layer at a time? I really need help as this is breaking the web client and causing users to get unexpected results. Thanks. - Tim Timothy J Nolte - tno...@ilpcs.com Network Planning Engineer Sprint Nextel 4717 Broadmoor Ave, Suite G Kentwood, MI 49512 Office: 616-656-5163 PCS: 616-706-2438 Fax: 616-554-6484 ___ 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: AW: [mapserver-users] How do I Control QUERY Output?
Steve Lime wrote: The AJAX method will work nicely. This site does just that: http://www.dnr.state.mn.us/waters/csg/index.html If you use the identify tool to click on a point the query output is placed in an Ext window. If you hover over a point very simple query output is stuffed in a div. Steve Your example above is tantalizing. What it shows with the Identify tool is just what I'm trying to learn how to do, but it contains a lot of inter-twingled code from multiple libraries, and I can't seem to open and read all the files, so it's a bit beyond my reach. I know how AJAX works, and I was able to get close by putting an AJAX call in the template file called by my layer and reading the XML file generated in the template file after a click in Query mode, but that approach just doesn't seem right. Too kludgey. In the AJAX method you mention above, where do you intercept the normal mapfile sequence from the mouse-click to the layer's call to the template, to the final map redraw? Do you even use a template file to resolve variables, or do you get those some other way? Is there a simpler demo out there that demonstrates the technique? I'm sure this is simpler than I think, but I just don't see it yet. Any suggestions for the thick-headed? -- - Bill Thoen GISnet - www.gisnet.com 303-786-9961 ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Web interface
I would highly suggest a visit to www.geomoose.org :-) - Original Message From: Patricio Gigoux pgig...@munistgo.cl To: mapserver-users@lists.osgeo.org Sent: Fri, December 11, 2009 9:25:10 AM Subject: Re: [mapserver-users] Web interface Bart: My idea is for client, that they can do zoom as natural as you do it in arcview or jump for example, but in their browser. Similar to google may be. Behind of this frontend we have a phpmascript. Thanks Patricio bart...@osgis.nl escribió: Not sure if you actually mean a web mapping client [1] or an administration tool [2] for Mapserver, but: [1] http://www.openlayers.org [2] http://mapfishblog.blogspot.com/2009/03/studio-beta-for-mapfile-manager.html Best regards, Bart Hi everybody: Do you know a good web frontend for display and manipulate maps that has been produced in mapserver? Thanks a lot in advance Patricio ___ 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
Re: [mapserver-users] Label problem
Hi.. Pelin thanks for your reply. I tried to make some changes but I was unsuccessful. The labels still run haywire on the map. There is no fixed angle or orientation. Only a very few labels are correctly placed within the road and 'follow' the road. Please tell me what more changes I could do to have proper labeling for street names. Thanks. Regards On Fri, Dec 11, 2009 at 4:36 PM, pelin pelin...@gmail.com wrote: hi,this is part of mi map file -- LABELMAXSCALE 9 LABELMINSCALE 8000 METADATA LAYER_ENCODING UTF-8 DESCRIPTION Avenidas RESULT_FIELDS nombre,desde,hasta RESULT_HEADERS Nombre,Desde,Hasta END #METADATA LABELITEM 'nombre' CLASS Name 'Avenidas' LABEL TYPE truetype FONT 'FreeSans' ANGLE auto POSITION auto SIZE 5 END #label STYLE SYMBOL 'Avenidas--0--0' SIZE 3 COLOR 193 62 183 END #STYLE END # Class -- Saludos y espero que te sirva http://blogs.hydras.com.ar/srodriguez/ Atentamente Rolando Sergio Rodriguez ___ 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] Label problem
Hi All.. Is my error due to my label file or due to some error in my layer file? Shall I attach a snapshot of my map..the labeling is terrible. Please advise me on how to proceed. Thanks. On Sat, Dec 12, 2009 at 10:43 AM, Shaz N geo.engineer...@gmail.com wrote: Hi.. Pelin thanks for your reply. I tried to make some changes but I was unsuccessful. The labels still run haywire on the map. There is no fixed angle or orientation. Only a very few labels are correctly placed within the road and 'follow' the road. Please tell me what more changes I could do to have proper labeling for street names. Thanks. Regards On Fri, Dec 11, 2009 at 4:36 PM, pelin pelin...@gmail.com wrote: hi,this is part of mi map file -- LABELMAXSCALE 9 LABELMINSCALE 8000 METADATA LAYER_ENCODING UTF-8 DESCRIPTION Avenidas RESULT_FIELDS nombre,desde,hasta RESULT_HEADERS Nombre,Desde,Hasta END #METADATA LABELITEM 'nombre' CLASS Name 'Avenidas' LABEL TYPE truetype FONT 'FreeSans' ANGLE auto POSITION auto SIZE 5 END #label STYLE SYMBOL 'Avenidas--0--0' SIZE 3 COLOR 193 62 183 END #STYLE END # Class -- Saludos y espero que te sirva http://blogs.hydras.com.ar/srodriguez/ Atentamente Rolando Sergio Rodriguez ___ 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