Re: [mapserver-users] ArcSDE, Win32 and truncated GetCapabilities
Hello, since there is no reply for some time now I follow up to myself here. Stephan Holl , [20110728 - 10:15:14] > Dear list, > > I have an ArcSDE-Layer-based mapfile. When requesting a > GetCapabilities-doc in Version 1.1.1 and 1.3.0, the output gets > truncated. > > In 1.0.0 the GetCapabilities-Document is finished though, strange. > > I am running MapServer 6.1-dev (r11785) on Windows 7 with Apache > 2.2.19 against ArcSDE 9.3.1. > > I found some quite old issues[1],[2] which seem to have the same > problem, but apparently they are fixed. It seems that mapserver segfaults here (no errors given in any logfile with DEBUG 5 in web and layer-level) or the GetCaps-buffer is to small for the output.. Can anybody provide some debug-hints on windows though? Best Stephan -- Stephan Holl | Tel.: +49 (0)541-33 508 3663 Intevation GmbH, Neuer Graben 17, 49074 OS | AG Osnabrück - HR B 18998 Geschäftsführer: Frank Koormann, Bernhard Reiter, Dr. Jan-Oliver Wagner signature.asc Description: PGP signature ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] expressions in a chart layer
Hello. Do EXPRESSIONS work in a chart layer? I have been trying something like the one below, and the postgis layer only has 2010 and 2011 data and yet the 2012 portion of the chart keeps on appearing. If Expressions do not work, is there any other method of filtering the data before creating the pie char.Thanks! TYPE CHART PROCESSING "CHART_SIZE=20" PROCESSING "CHART_TYPE=PIE" CLASS NAME "2010" EXPRESSION ([obj_]=2010) STYLE SIZE 5 COLOR 234 192 156 OUTLINECOLOR 10 10 10 END END CLASS NAME "2011" EXPRESSION ([obj_]=2011) STYLE SIZE 20 COLOR 112 78 221 OUTLINECOLOR 10 10 10 END END CLASS NAME "2012" EXPRESSION ([obj_]=2012) STYLE SIZE 60 COLOR 133 178 199 OUTLINECOLOR 10 10 10 END END ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] expressions in a chart layer
There is no such functionality for the time being. You can either filter out the data at the DATA level (i.e. postgis query with "where year=xxx") or fund the addition of expressions to the chart type layers. regards, thomas On Mon, Aug 8, 2011 at 11:39, Mario Basa wrote: > Hello. > > Do EXPRESSIONS work in a chart layer? I have been trying something > like the one below, and the postgis layer only has 2010 and 2011 data > and yet the 2012 portion of the chart keeps on appearing. If > Expressions do not work, is there any other method of filtering the > data before creating the pie char. Thanks! > > > TYPE CHART > PROCESSING "CHART_SIZE=20" > PROCESSING "CHART_TYPE=PIE" > > CLASS > NAME "2010" > EXPRESSION ([obj_]=2010) > STYLE > SIZE 5 > COLOR 234 192 156 > OUTLINECOLOR 10 10 10 > END > END > CLASS > NAME "2011" > EXPRESSION ([obj_]=2011) > STYLE > SIZE 20 > COLOR 112 78 221 > OUTLINECOLOR 10 10 10 > END > END > CLASS > NAME "2012" > EXPRESSION ([obj_]=2012) > STYLE > SIZE 60 > COLOR 133 178 199 > OUTLINECOLOR 10 10 10 > END > END > ___ > 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] Variable substitution error with non-ASCII characters
Hi, I have been playing with variable substitution inside the DATA part of my mapfile. I have defined variable %sql% which is tranferred inside a WHERE part of the SQL selecting data for me. The next with &sql=highway='bus_stop' works fine. http://188.64.1.61/cgi-bin/ms_ows?REQUEST=GetMap&SERVICE=WMS&VERSION=1.1.1&WIDTH=563&HEIGHT=437&LAYERS=osm_pisteet&TRANSPARENT=TRUE&FORMAT=image/png&BBOX=-369151.98300283286,6597900.0,1511076.628895184,8057331.444759207&SRS=EPSG:3067&STYLES=&sql=highway='bus_stop' However, if the variable contains non-ASCII characters the queries will fail. For example &sql=highway='ä' gives the following error. http://schemas.opengis.net/wms/1.1.1/exception_1_1_1.dtd";> msDrawMap(): Image handling error. Failed to draw layer named 'osm_pisteet'. msPostGISLayerWhichShapes(): Query error. Error (ERROR: invalid byte sequence for encoding "UTF8": 0xe42729 ) executing query: select encode(ST_AsBinary(ST_Force_2D("way"),'NDR'),'hex') as geom,"osm_id" from (select (way),osm_id,tags from osm_point where highway='ä') as foo where way && GeomFromText('POLYGON((-367482.152974504 6599569.83002833,-367482.152974504 8055661.61473088,1509406.79886686 8055661.61473088,1509406.79886686 6599569.83002833,-367482.152974504 6599569.83002833))',3067) Is there any known way to solve the invalid byte sequence error for example by escaping the none-ASCII characters in some way? -Jukka Rahkonen-___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] Mapserver 64bits for windows
Hi, I'm looking for binaries of MapServer 64bits built for windows. As I couldn't find any, I'm trying to compile a 64bits version of MapServer on windows. Do you know any documentation related to this subject ? Thanks & Regards Clement ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] WFS Spatial Filter Problem
Hi there! These are things that I've tried in the meantime: - Manually sending the request to the server, but without different results compared to using OpenLayers functions. Also trying to force the usage of the proxy.cgi by containing it in the URL, but didn't bring up different results. - Thought about the solution as suggested by the John, but substituting a Polygon with a BBOX only works for rectangular Polygons! I need to be able to specify arbitrary Polygons/Shapes. I am sure the solution proposed by him will work, because it will be just a request just like the one that already works. - Thought about trying a newer version of the MapServer. However, I run is the newest ms4w on my local machone and I remember that I had the same problem a few weeks ago. Furthermore, John had the same problem with MapServer 6.0.0, and since then nothing changed about WFS or filter encoding according to the release announcements. - Thought sending a GET request instead of a POST request could solve the problem! They provided examples in the documentation with links, something they definitely wouldn't have done in case those examples wouldn't work! However, even GET requests didn't work! What is strange: Also got errors with code 500. Shouldn't the mapserver return some error message? I AM CONFUSED! Please hlp! Regards, Bryan On 05/08/2011 15:04, John Callahan wrote: This thread may or may not help: http://osgeo-org.1803224.n2.nabble.com/WFS-intersect-request-td6458533.html I have not tried using AND compound filters. The following format does work for me using the BBOX filter. SHAPE http://www.opengis.net/gml"; srsName="EPSG:26957"> 149081.76574899518 163078.62572595105 205627.85303800018 194899.95291598293 - John *** John Callahan, Research Scientist Delaware Geological Survey University of Delaware URL: http://www.dgs.udel.edu This message and any attachments are intended for the use of the addressee or addressees only. The unauthorised disclosure, use, dissemination or copying (either in whole or in part) of its content is not permitted. If you received this message in error, please notify the sender and delete it from your system. Emails can be altered and their integrity cannot be guaranteed by the sender. Please consider the environment before printing this email. = ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] WFS Spatial Filter Problem
Bryan, Is it possible for you to provide a sample data/map/request that I can try that would reproduce your problems? If that is the case, please send it to me directly and I will test it with the latest MapServer and possibly provide answers. regards, Assefa On 08/08/2011 10:58 AM, Bryan Hempen wrote: Hi there! These are things that I've tried in the meantime: - Manually sending the request to the server, but without different results compared to using OpenLayers functions. Also trying to force the usage of the proxy.cgi by containing it in the URL, but didn't bring up different results. - Thought about the solution as suggested by the John, but substituting a Polygon with a BBOX only works for rectangular Polygons! I need to be able to specify arbitrary Polygons/Shapes. I am sure the solution proposed by him will work, because it will be just a request just like the one that already works. - Thought about trying a newer version of the MapServer. However, I run is the newest ms4w on my local machone and I remember that I had the same problem a few weeks ago. Furthermore, John had the same problem with MapServer 6.0.0, and since then nothing changed about WFS or filter encoding according to the release announcements. - Thought sending a GET request instead of a POST request could solve the problem! They provided examples in the documentation with links, something they definitely wouldn't have done in case those examples wouldn't work! However, even GET requests didn't work! What is strange: Also got errors with code 500. Shouldn't the mapserver return some error message? I AM CONFUSED! Please hlp! Regards, Bryan On 05/08/2011 15:04, John Callahan wrote: This thread may or may not help: http://osgeo-org.1803224.n2.nabble.com/WFS-intersect-request-td6458533.html I have not tried using AND compound filters. The following format does work for me using the BBOX filter. SHAPE http://www.opengis.net/gml"; srsName="EPSG:26957"> 149081.76574899518 163078.62572595105 205627.85303800018 194899.95291598293 - John *** John Callahan, Research Scientist Delaware Geological Survey University of Delaware URL: http://www.dgs.udel.edu This message and any attachments are intended for the use of the addressee or addressees only. The unauthorised disclosure, use, dissemination or copying (either in whole or in part) of its content is not permitted. If you received this message in error, please notify the sender and delete it from your system. Emails can be altered and their integrity cannot be guaranteed by the sender. Please consider the environment before printing this email. = ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Assefa Yewondwossen Software Analyst Email: yass...@dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] WFS Spatial Filter Problem
Hi Bryan, could you show how you send the request manually to the server? Might it be possible to send by mail your geodata and your wfs_file? Best regards, Kai Original-Nachricht > Datum: Mon, 08 Aug 2011 16:58:30 +0200 > Von: Bryan Hempen > An: John Callahan > CC: mapserver-users@lists.osgeo.org > Betreff: Re: [mapserver-users] WFS Spatial Filter Problem > Hi there! > > These are things that I've tried in the meantime: > > > - Manually sending the request to the server, but without different > results compared to using OpenLayers functions. Also trying to force the > usage of the proxy.cgi by containing it in the URL, but didn't bring up > different results. > > - Thought about the solution as suggested by the John, but substituting > a Polygon with a BBOX only works for rectangular Polygons! I need to be > able to specify arbitrary Polygons/Shapes. I am sure the solution > proposed by him will work, > because it will be just a request just like the one that already works. > > - Thought about trying a newer version of the MapServer. However, I run > is the newest ms4w on my local machone and I remember that I had the > same problem a few weeks ago. Furthermore, John had the same problem > with MapServer 6.0.0, > and since then nothing changed about WFS or filter encoding according to > the release announcements. > > - Thought sending a GET request instead of a POST request could solve > the problem! They provided examples in the documentation with links, > something they definitely wouldn't have done in case those examples > wouldn't work! However, even > GET requests didn't work! What is strange: Also got errors with code > 500. Shouldn't the mapserver return some error message? > > I AM CONFUSED! Please hlp! > > Regards, > Bryan > > > On 05/08/2011 15:04, John Callahan wrote: > > This thread may or may not help: > > > http://osgeo-org.1803224.n2.nabble.com/WFS-intersect-request-td6458533.html > > > > > > I have not tried using AND compound filters. The following format > > does work for me using the BBOX filter. > > > > > > SHAPE > > http://www.opengis.net/gml"; > srsName="EPSG:26957"> > > 149081.76574899518 163078.62572595105 > > 205627.85303800018 194899.95291598293 > > > > > > > > - John > > > > *** > > John Callahan, Research Scientist > > Delaware Geological Survey > > University of Delaware > > URL: http://www.dgs.udel.edu > > > > This message and any attachments are intended for the use of the addressee > or addressees only. The unauthorised disclosure, > > use, dissemination or copying (either in whole or in part) of its content > is not permitted. If you received this message in > > error, please notify the sender and delete it from your system. Emails can > be altered and their integrity cannot be guaranteed by > > the sender. > > Please consider the environment before printing this email. > = > -- Empfehlen Sie GMX DSL Ihren Freunden und Bekannten und wir belohnen Sie mit bis zu 50,- Euro! https://freundschaftswerbung.gmx.de ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Variable substitution error with non-ASCII characters
Selon Rahkonen Jukka : Did you check the encoding of your 'ä' character ? I would think that if it is sent in UTF-8 it should work. I'd also warn you that unless you've defined a very strict validation pattern, such use of substitution is potentially dangerous because it leaves the door wide open to SQL injections. > Hi, > > I have been playing with variable substitution inside the DATA part of my > mapfile. I have defined variable %sql% which is tranferred inside a WHERE > part of the SQL selecting data for me. The next with &sql=highway='bus_stop' > works fine. > > http://188.64.1.61/cgi-bin/ms_ows?REQUEST=GetMap&SERVICE=WMS&VERSION=1.1.1&WIDTH=563&HEIGHT=437&LAYERS=osm_pisteet&TRANSPARENT=TRUE&FORMAT=image/png&BBOX=-369151.98300283286,6597900.0,1511076.628895184,8057331.444759207&SRS=EPSG:3067&STYLES=&sql=highway='bus_stop' > > However, if the variable contains non-ASCII characters the queries will fail. > For example &sql=highway='ä' > gives the following error. > > > > "http://schemas.opengis.net/wms/1.1.1/exception_1_1_1.dtd";> > > > msDrawMap(): Image handling error. Failed to draw layer named > 'osm_pisteet'. > msPostGISLayerWhichShapes(): Query error. Error (ERROR: invalid byte > sequence for encoding "UTF8": 0xe42729 > ) executing query: select > encode(ST_AsBinary(ST_Force_2D("way"),'NDR'),'hex') > as geom,"osm_id" from (select (way),osm_id,tags from osm_point > where highway='ä') as foo where way && > GeomFromText('POLYGON((-367482.152974504 > 6599569.83002833,-367482.152974504 8055661.61473088,1509406.79886686 > 8055661.61473088,1509406.79886686 6599569.83002833,-367482.152974504 > 6599569.83002833))',3067) > > > > Is there any known way to solve the invalid byte sequence error for example > by escaping the none-ASCII characters in some way? > > -Jukka Rahkonen-___ > 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] Mapserver 64bits for windows
Le lundi 08 août 2011 15:23:20, Clément MONIER a écrit : > Hi, > > I'm looking for binaries of MapServer 64bits built for windows. > As I couldn't find any, I'm trying to compile a 64bits version of MapServer > on windows. You can find them on http://www.gisinternals.com/sdk/ ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] Problem compiling with Mapserver 6 and GEOS 3.3.0
Hi all, I have the following error while compiling Mapserver 6 and GEOS 3.3.0:undefined reference to `GEOSFree'. The ./configure shows that it is using the geos-config version 3.3.0, so it is taking the GEOS version I was compiled just before. I was looking at http://trac.osgeo.org/mapserver/ticket/3347 to find any help and I did the following: So I have to edit the Makefile file to see what was happening. And then I modified the following line: GEOS_LIB= -L/usr/local/lib -lgeos_c For this one: GEOS_LIB= -L/usr/local/lib -lgeos And then I was able to compile Mapserver. Is there an error with the make file ? Thanks in advance ! IC Carlos Ruiz ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] ArcSDE, Win32 and truncated GetCapabilities
I wonder if this could be related to some general issues we've been experiencing with with SDE and queries. Get capabilities obviously doesn't do a query but it might be getting a list of attributes for presentation. That's where the issue seems to be. Check out ticket #3977. I've applied a fix to branch-6-0 only but it's trivial to fix trunk too if you can compile from source. I was waiting on some testing feedback before applying more broadly. Steve On Mon, Aug 8, 2011 at 4:30 AM, Stephan Holl wrote: > Hello, > > since there is no reply for some time now I follow up to myself here. > > Stephan Holl , [20110728 - 10:15:14] > > > Dear list, > > > > I have an ArcSDE-Layer-based mapfile. When requesting a > > GetCapabilities-doc in Version 1.1.1 and 1.3.0, the output gets > > truncated. > > > > In 1.0.0 the GetCapabilities-Document is finished though, strange. > > > > I am running MapServer 6.1-dev (r11785) on Windows 7 with Apache > > 2.2.19 against ArcSDE 9.3.1. > > > > I found some quite old issues[1],[2] which seem to have the same > > problem, but apparently they are fixed. > > It seems that mapserver segfaults here (no errors given in any logfile > with DEBUG 5 in web and layer-level) or the GetCaps-buffer is to small > for the output.. > > Can anybody provide some debug-hints on windows though? > > Best > Stephan > > -- > Stephan Holl | Tel.: +49 (0)541-33 508 3663 > Intevation GmbH, Neuer Graben 17, 49074 OS | AG Osnabrück - HR B 18998 > Geschäftsführer: Frank Koormann, Bernhard Reiter, Dr. Jan-Oliver Wagner > > ___ > 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] Proposed MapServer project additions...
Greetings MapServer User! This message is to inform you about some project changes being considered by the MapServer project steering committee (PSC). Specifically we are looking to expand the functionality offered by the project by integrating a couple of external projects. The projects under consideration are: -- TinyOWS - http://tinyows.org/ for PostGIS-based WFS-T -- MapCache (currently named mod-geocache) - http://code.google.com/p/mod-geocache/ for tile cache support Both projects have close ties to MapServer and add important capabilities. At this point integration means merging project governance, communications (mailing list/website), change management (SVN) and issue tracking (Trac). As a MapServer user you probably won't notice much of a difference since we'd continue to use MapServer infrastructure. You will start to see questions related to these new components on the mapserver mailing lists (-users, -dev) and we hope folks will take advantage of these new features if the need exists. For more detail on the proposed integration visit: -- http://mapserver.org/development/rfc/ms-rfc-70.html -- http://mapserver.org/development/rfc/ms-rfc-71.html The next significant MapServer release would be dubbed "MapServer Suite" and would contain all project components, that is, MapServer CGI, MapServer MapScript, MapServer TinyOWS and MapServer MapCache. The PSC is excited about the possibilities for the project and our users, and welcome any comments, questions or concerns regarding these proposed changes. Users interested in following or participating in MapServer development are encouraged to join the mapserver-dev mailing list. Steve Chair, MapServer PSC ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] ArcSDE, Win32 and truncated GetCapabilities
Hello Steve, thanks for your answer, Steve Lime , [20110809 - 01:13:43] > I wonder if this could be related to some general issues we've been > experiencing with with SDE and queries. Get capabilities obviously > doesn't do a query but it might be getting a list of attributes for > presentation. That's where the issue seems to be. Check out ticket > #3977. I've applied a fix to branch-6-0 only but it's trivial to fix > trunk too if you can compile from source. I was waiting on some > testing feedback before applying more broadly. Ahh, I see. I will pull out a patch[1] and try to apply on trunk since I have a recent trunk build-env. Reading the ticket seems the exact same problem I am facing. Btw. GetFeatureInfo also returns the famous 500 Premature End of script... error. Probably related. Best Stephan [1] http://trac.osgeo.org/mapserver/changeset/12031 > On Mon, Aug 8, 2011 at 4:30 AM, Stephan Holl > wrote: > > > Hello, > > > > since there is no reply for some time now I follow up to myself > > here. > > > > Stephan Holl , [20110728 - 10:15:14] > > > > > Dear list, > > > > > > I have an ArcSDE-Layer-based mapfile. When requesting a > > > GetCapabilities-doc in Version 1.1.1 and 1.3.0, the output gets > > > truncated. > > > > > > In 1.0.0 the GetCapabilities-Document is finished though, strange. > > > > > > I am running MapServer 6.1-dev (r11785) on Windows 7 with Apache > > > 2.2.19 against ArcSDE 9.3.1. > > > > > > I found some quite old issues[1],[2] which seem to have the same > > > problem, but apparently they are fixed. > > > > It seems that mapserver segfaults here (no errors given in any > > logfile with DEBUG 5 in web and layer-level) or the GetCaps-buffer > > is to small for the output.. > > > > Can anybody provide some debug-hints on windows though? > > > > Best > > Stephan > > > > -- > > Stephan Holl | Tel.: +49 (0)541-33 508 > > 3663 Intevation GmbH, Neuer Graben 17, 49074 OS | AG Osnabrück - > > HR B 18998 Geschäftsführer: Frank Koormann, Bernhard Reiter, Dr. > > Jan-Oliver Wagner > > > > ___ > > mapserver-users mailing list > > mapserver-users@lists.osgeo.org > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > -- Stephan Holl | Tel.: +49 (0)541-33 508 3663 Intevation GmbH, Neuer Graben 17, 49074 OS | AG Osnabrück - HR B 18998 Geschäftsführer: Frank Koormann, Bernhard Reiter, Dr. Jan-Oliver Wagner signature.asc Description: PGP signature ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users