From dalda at ikt.es Fri Oct 1 04:25:58 2010 From: dalda at ikt.es (David Alda Fernandez de Lezea) Date: Fri, 1 Oct 2010 13:25:58 +0200 Subject: [mapserver-users] GetFeatureInfo over OGR OCI Layer Message-ID: <224DBDAF88A6AC47BD22432815351BE0082DD744@nekaposta1> Hi list, I'm trying to execute a GetFeatureInfo request over an Oracle layer via OGR. I can view the content of the layer, but when I make the request I don't get any result. I mean, I receive an empty GML. My layer config: LAYER STATUS ON CONNECTION "OCI:admcarto/admcarto at ORA10GEX" CONNECTIONTYPE OGR DATA "GV_SIGPAC_REC_ED50" #todo el sigpac NAME "RecintosSigpacOGR" PROJECTION "init=epsg:23030" END DUMP TRUE TYPE POLYGON METADATA "wms_title" "Recintos Sigpac 2009" "wms_srs" "EPSG:23030" "wms_name" "RecintosSigpacOGR" "wms_server_version" "1.1.1" "wms_format" "image/gif" "wms_transparent" "true" "wms_extent" "460000 4690000 610000 4820000" "wms_include_items" "all" "gml_include_items" "all" END MAXSCALE 10000 TEMPLATE "ms_template.html" PROCESSING "LABEL_NO_CLIP=ON" PROCESSING "CLOSE_CONNECTION=DEFER" SYMBOLSCALE 5000 #Simbologia CLASSGROUP "Simbologia_Recintos" CLASS TEXT ([PARCELA]:[RECINTO]) STYLE OUTLINECOLOR 0 234 0 END LABEL COLOR 254 254 255 OUTLINECOLOR 0 0 0 TYPE truetype FONT "sans" SIZE 6 POSITION cc PARTIALS TRUE END NAME "RecintosSigPac" GROUP "Referencia_Sigpac" END CLASS STYLE OUTLINECOLOR 0 234 0 WIDTH 1 END NAME "RecintosSigPac" GROUP "Predeterminado" END END Resultant file Any ideas? Something wrong configured? Thanks. Un saludo, ?????????????????????????????????????????????????????????????????????????????????? David Alda Fern?ndez de Lezea Lurralde eta Biodibertsitate Saila / Dpto. de Territorio y Biodiversidad IKT Granja Modelo s/n ? 01192 ? Arkaute (Araba) ?????????????????????????????????????????????????????????????????????????????????? Tlfnos.: 945-00-32-95 Fax: 945-00.32.90 ?????????????????????????????????????????????????????????????????????????????????? email: dalda at ikt.es web: www.ikt.es ?????????????????????????????????????????????????????????????????????????????????? From jcigar at ulb.ac.be Fri Oct 1 06:00:15 2010 From: jcigar at ulb.ac.be (Julien Cigar) Date: Fri, 01 Oct 2010 15:00:15 +0200 Subject: [mapserver-users] WMS Filters ? Message-ID: <4CA5DB5F.7020809@ulb.ac.be> Hello, I wondered if I can use OGC filters with WMS ? It works well with WFS, but nothing is indicated in the documentation for WMS, and I tried to add "&Filter=infotest10" to my WMS request but it doesn't work :( In case it isn't supported, what's the "Mapserver-way" to do it ? Should I use a FILTER in my LAYER section ? My final goal is to add layers dynamically in OpenLayers based on an OGC filter .. Thanks, Julien -- No trees were killed in the creation of this message. However, many electrons were terribly inconvenienced. -------------- next part -------------- A non-text attachment was scrubbed... Name: jcigar.vcf Type: text/x-vcard Size: 292 bytes Desc: not available URL: From Jukka.Rahkonen at mmmtike.fi Fri Oct 1 06:06:56 2010 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Fri, 1 Oct 2010 16:06:56 +0300 Subject: [mapserver-users] WMS Filters ? In-Reply-To: <4CA5DB5F.7020809@ulb.ac.be> References: <4CA5DB5F.7020809@ulb.ac.be> Message-ID: Hi, Filters can be buried inside SLD. See http://mapserver.org/ogc/sld.html There are also a few clickable and working examples. -Jukka Rahkonen- > -----Alkuper?inen viesti----- > L?hett?j?: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] Puolesta Julien Cigar > L?hetetty: 1. lokakuuta 2010 16:00 > Vastaanottaja: mapserver-users at lists.osgeo.org > Aihe: [mapserver-users] WMS Filters ? > > Hello, > > I wondered if I can use OGC filters with WMS ? It works well > with WFS, > but nothing is indicated in the documentation for WMS, and I tried to > add > "&Filter=infotest10" > to my WMS request but it doesn't work :( > > In case it isn't supported, what's the "Mapserver-way" to do > it ? Should > I use a FILTER in my LAYER section ? > > My final goal is to add layers dynamically in OpenLayers > based on an OGC > filter .. > > Thanks, > Julien > > -- > No trees were killed in the creation of this message. > However, many electrons were terribly inconvenienced. > From dmorissette at mapgears.com Fri Oct 1 06:06:07 2010 From: dmorissette at mapgears.com (Daniel Morissette) Date: Fri, 01 Oct 2010 09:06:07 -0400 Subject: [mapserver-users] WMS Filters ? In-Reply-To: <4CA5DB5F.7020809@ulb.ac.be> References: <4CA5DB5F.7020809@ulb.ac.be> Message-ID: <4CA5DCBF.7000401@mapgears.com> Independently of MapServer, I don't think the WMS spec supports a FILTER=... param the way WFS does. However you can use filters inside SLD rules, and MapServer does support SLDs, so I suggest that you check in that direction. Daniel Julien Cigar wrote: > Hello, > > I wondered if I can use OGC filters with WMS ? It works well with WFS, > but nothing is indicated in the documentation for WMS, and I tried to > add > "&Filter=infotest10" > to my WMS request but it doesn't work :( > > In case it isn't supported, what's the "Mapserver-way" to do it ? Should > I use a FILTER in my LAYER section ? > > My final goal is to add layers dynamically in OpenLayers based on an OGC > filter .. > > Thanks, > Julien > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Daniel Morissette http://www.mapgears.com/ From jcigar at ulb.ac.be Fri Oct 1 06:16:22 2010 From: jcigar at ulb.ac.be (Julien Cigar) Date: Fri, 01 Oct 2010 15:16:22 +0200 Subject: [mapserver-users] WMS Filters ? In-Reply-To: References: <4CA5DB5F.7020809@ulb.ac.be> Message-ID: <4CA5DF26.9040701@ulb.ac.be> OK, I'll take a look at SLD :) Thank you for your quick answers! Julien On 10/01/2010 15:06, Rahkonen Jukka wrote: > Hi, > > Filters can be buried inside SLD. See http://mapserver.org/ogc/sld.html > There are also a few clickable and working examples. > > -Jukka Rahkonen- > >> -----Alkuper?inen viesti----- >> L?hett?j?: mapserver-users-bounces at lists.osgeo.org >> [mailto:mapserver-users-bounces at lists.osgeo.org] Puolesta Julien Cigar >> L?hetetty: 1. lokakuuta 2010 16:00 >> Vastaanottaja: mapserver-users at lists.osgeo.org >> Aihe: [mapserver-users] WMS Filters ? >> >> Hello, >> >> I wondered if I can use OGC filters with WMS ? It works well >> with WFS, >> but nothing is indicated in the documentation for WMS, and I tried to >> add >> "&Filter=info tyName>test10" >> to my WMS request but it doesn't work :( >> >> In case it isn't supported, what's the "Mapserver-way" to do >> it ? Should >> I use a FILTER in my LAYER section ? >> >> My final goal is to add layers dynamically in OpenLayers >> based on an OGC >> filter .. >> >> Thanks, >> Julien >> >> -- >> No trees were killed in the creation of this message. >> However, many electrons were terribly inconvenienced. >> -- No trees were killed in the creation of this message. However, many electrons were terribly inconvenienced. -------------- next part -------------- A non-text attachment was scrubbed... Name: jcigar.vcf Type: text/x-vcard Size: 292 bytes Desc: not available URL: From zachc1980 at gmail.com Fri Oct 1 12:13:06 2010 From: zachc1980 at gmail.com (zach cruise) Date: Fri, 1 Oct 2010 15:13:06 -0400 Subject: [mapserver-users] no mapserver in geosuite? Message-ID: is mapserver part of opengeo geosuite http://opengeo.org/products/suite/ ? is there another suite with it other than ms4w? From christopher.schmidt at nokia.com Fri Oct 1 12:25:24 2010 From: christopher.schmidt at nokia.com (christopher.schmidt at nokia.com) Date: Fri, 1 Oct 2010 21:25:24 +0200 Subject: [mapserver-users] no mapserver in geosuite? In-Reply-To: References: Message-ID: On Oct 1, 2010, at 3:13 PM, ext zach cruise wrote: > is mapserver part of opengeo geosuite > http://opengeo.org/products/suite/ ? is there another suite with it > other than ms4w? MapServer and GeoServer serve very similar purposes. One of them is developed primarily by OpenGeo and friends of OpenGeo, and one is not. I'll let you guess which one they include :) MS4W and OSGeo4W both include MapServer, and many operating systems also include a packaged MapServer (Debian, Ubuntu, RedHat, etc.). Mac builds are available from William Kyngsbourne's KyngChaos binaries. -- Christopher Schmidt From frippe12573 at hotmail.com Sun Oct 3 02:26:26 2010 From: frippe12573 at hotmail.com (Eugenio Trumpy) Date: Sun, 3 Oct 2010 09:26:26 +0000 Subject: [mapserver-users] query to mapserver Message-ID: good morning to all, i have a question: how can i make a query to mapserver by code? for example, if i give by code a cadastral parcel, i would like to know the layers contained, or included in that area, or which layers that cadastral parcel belong. anyone can halp me? Regard Eugenio -------------- next part -------------- An HTML attachment was scrubbed... URL: From dalda at ikt.es Mon Oct 4 00:03:04 2010 From: dalda at ikt.es (David Alda Fernandez de Lezea) Date: Mon, 4 Oct 2010 09:03:04 +0200 Subject: [mapserver-users] Problems labelling using Halo option Message-ID: <224DBDAF88A6AC47BD22432815351BE0082DD89A@nekaposta1> Assefa, Sorry for my late response, I've been working in something else. I've checked the file C:/ms4w/Apache/htdocs/ogcservices/tmp/4ca47709_100_1._sld.map LAYER CONNECTION "user=postgres password=1111 dbname=VITICOLA_IMPRESIONES host=192.168.1.161 port=5432" CONNECTIONTYPE POSTGIS DATA "the_geom FROM vinedos using unique gid using SRID=23030" DUMP TRUE METADATA "wms_srs" "EPSG:23030" "wms_extent" "470000 4700000 610000 4820000" "wms_transparent" "true" "wms_name" "vinedos" "wms_format" "image/gif" "gml_include_items" "all" "wms_server_version" "1.1.1" "wms_title" "vinedos" END NAME "vinedos" PROCESSING "LABEL_NO_CLIP=ON" PROJECTION "init=epsg:23030" END STATUS ON TYPE POLYGON UNITS METERS CLASS NAME "Unknown" EXPRESSION ( ([provincia] = 1) And ( ([municipio] = 43) And ( ([poligono] = 4) And ( ([parcela] = 880) And ([recinto] = 1) ) ) ) ) LABEL ANGLE AUTO ANTIALIAS TRUE FONT "times-bold" MAXSIZE 256 MINSIZE 4 SIZE 18 TYPE TRUETYPE BUFFER 0 COLOR 255 255 255 FORCE FALSE MINDISTANCE -1 MINFEATURESIZE -1 OFFSET 0 0 OUTLINECOLOR 255 255 255 OUTLINEWIDTH 0 PARTIALS TRUE POSITION CC END STYLE ANGLE 360 OPACITY 100 OUTLINECOLOR 0 0 0 SIZE 2 SYMBOL "sld_line_symbol_dash" END TEXT ([poligono]-[parcela]-[recinto]) END END OUTLINEWIDTH shouldn't be greater than 0?? What do you think? By the way, I forgot to mention that I'm working with MS4W 2.3.1 which includes MapServer 5.2.1. About the font issue, it's like if MapServer, when it doesn't the font I specify in FONSET, it takes a default font and it applies the HALO correctly, but when I try to change the size, it doesn't work, the returned image has the same font size. Maybe is something related with the SLD. It's difficult to explain. Un saludo, ?????????????????????????????????????????????????????????????????????????????????? David Alda Fern?ndez de Lezea Lurralde eta Biodibertsitate Saila / Dpto. de Territorio y Biodiversidad IKT Granja Modelo s/n ? 01192 ? Arkaute (Araba) ?????????????????????????????????????????????????????????????????????????????????? Tlfnos.: 945-00-32-95 Fax: 945-00.32.90 ?????????????????????????????????????????????????????????????????????????????????? email: dalda at ikt.es web: www.ikt.es ?????????????????????????????????????????????????????????????????????????????????? -----Mensaje original----- De: Yewondwossen Assefa [mailto:yassefa at dmsolutions.ca] Enviado el: jueves, 30 de septiembre de 2010 14:21 Para: David Alda Fernandez de Lezea CC: mapserver-users at lists.osgeo.org Asunto: Re: [mapserver-users] Problems labelling using Halo option Hi, Check the file C:/ms4w/Apache/htdocs/ogcservices/tmp/4ca47709_100_1._sld.map and the layer where the sld is applied, the label object should have the outlinecolor set if it worked properly. Is that the case? I am not sure I understand the font issue, but you can also see what font was set fir that label object. regards, On 30/09/2010 7:43 AM, David Alda Fernandez de Lezea wrote: > Assefa, > > Yes, it's valid. It works, but not with desired behaviour. It draws the polygons with the labels but without the Halo effect. > > I forgot to put xml headers in the previous email. > > > xmlns:ogc="http://www.opengis.net/ogc" > xmlns:xlink="http://www.w3.org/1999/xlink" > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> > > I also forgot to mention that if I putVerdana for example, and Verdana does not exist in my fontset, it does the labelling properly (including Halo), but it's like if mapserver gets some default values, because the size has changed and even though I change it in th e SLD, the size keeps the same. > > > > WMS Log > > [Thu Sep 30 13:39:53 2010].513000 CGI Request 1 on process 256 [Thu > Sep 30 13:39:53 2010].685000 msApplySLD(): Map file after SLD was applied C:/ms4w/Apache/htdocs/ogcservices/tmp/4ca47709_100_1._sld.map[Thu Sep 30 13:39:53 2010].826000 msDrawRasterLayerLow(orto0): entering. > [Thu Sep 30 13:40:02 2010].216000 msDrawMap(): Layer 4 (orto0), 8.390s > [Thu Sep 30 13:40:03 2010].606000 msDrawMap(): Layer 0 > (vinedos_sigpac), 1.390s [Thu Sep 30 13:40:04 2010].122000 > msDrawMap(): Layer 3 (vinedos_disolve_bn), 0.516s [Thu Sep 30 13:40:04 > 2010].513000 msDrawMap(): Layer 2 (vinedos_disolve), 0.391s [Thu Sep > 30 13:40:05 2010].919000 msDrawMap(): Layer 1 (vinedos), 1.406s [Thu > Sep 30 13:40:07 2010].106000 msDrawMap(): Layer 7 (vinedos_parcelas), > 1.187s [Thu Sep 30 13:40:07 2010].106000 msDrawLabelCache(): > labelcache_map_edge_buffer = -10 [Thu Sep 30 13:40:07 2010].106000 > msDrawMap(): Drawing Label Cache, 0.000s [Thu Sep 30 13:40:07 > 2010].106000 msDrawMap() total time: 13.343s [Thu Sep 30 13:40:08 > 2010].606000 msSaveImage() total time: 1.500s [Thu Sep 30 13:40:08 2010].606000 mapserv request processing time (msLoadMap not incl.): 15.093s [Thu Sep 30 13:40:08 2010].637000 msFreeMap(): freeing map at 015C6820. > > Thanks. > > ________________________________ > > De: Yewondwossen Assefa [mailto:yassefa at dmsolutions.ca] Enviado el: > jueves, 30 de septiembre de 2010 13:24 > Para: David Alda Fernandez de Lezea > CC: mapserver-users at lists.osgeo.org > Asunto: Re: [mapserver-users] Problems labelling using Halo option > > > Hi there, > > Is the sld xml you are using valid? Grabbing it from this e-mail, It seems to not validate (several tags). It might just a copy paste but make sure of that. > You can aslo set your map in debug mode ( DEBUG 5 for example) and > check your logs to see if the xml was parsed properly and if that is > the case you should also be able a tmp file of your map file after SLD > was applied > > regards, > > > On 30/09/2010 3:34 AM, David Alda Fernandez de Lezea wrote: > > Hi list, > > I'm developing a program that generates some images from a WMS with a dynamic generated SLD. The problem is that I'm telling MapServer to generate some labels with Halo, to make them easy to read, using the following code: > > > vinedos > > > > > > provincia1 > municipio43 > poligono4 > parcela880 > recinto1 > > > > > #000000 > 2 > 5 5 5 5 > > > > > > times > 18 > bold > > > > 0.50.5 > > > > > > 2 > > > #FFFFFF > 0.85 > > > > #000000 > 0.65 > > > > > > > > But when I receive the image the Halo is not applied (see attached file). My mapfile is as follows: > > NAME "WMSSERVER" > > STATUS ON > EXTENT 460000 4710000 610000 4820000 # Euskadi > SHAPEPATH "extra/shapes/" > FONTSET "extra/fonts/fonts.txt" > SYMBOLSET "extra/symbols/symbols.sym" > > > IMAGETYPE "image/png; mode=24bit" > > OUTPUTFORMAT > NAME png > DRIVER "AGG/PNG" > MIMETYPE "image/png" > IMAGEMODE RGBA > EXTENSION "png" > FORMATOPTION "TRANSPARENT=ON" > FORMATOPTION "INTERLACE=OFF" > END > OUTPUTFORMAT > NAME jpeg > DRIVER "GD/JPEG" > MIMETYPE "image/jpeg" > IMAGEMODE RGB > EXTENSION "jpg" > END > IMAGECOLOR 255 255 255 > UNITS METERS > > DEBUG ON > CONFIG "MS_ERRORFILE" "C:/ms4w/Apache/htdocs/ogcservices/logs/wms_impresiones_lotes_log.log" > DEBUG 5 > > > WEB > IMAGEPATH "C:/ms4w/Apache/htdocs/ogcservices/tmp/" > IMAGEURL "tmp/" > METADATA > "wms_name" "IKT WMS Server" > "wms_title" "Servidor WMS IKT - Impresiones Lotes" > "wms_onlineresource" "http://192.168.1.161/cgi-bin/mapserv.exe?map=../htdocs/ogcservices/impresiones_lotes_wms.map&" > "wms_srs" "EPSG:23030 EPSG:4326" > "wms_transparent" "true" > "wms_abstract" "Servicio de mapas WMS de IKT Nekazal Teknologia. Powered by Apache and UMN MapServer. Servicio WMS para las impresiones por lotes." > "wms_keywordlist" "IKT,Euskadi,Mapas Euskadi" > "wms_feature_info_mime_type" "application/vnd.ogc.gml" > "labelcache_map_edge_buffer" "-10" > END > END > > PROJECTION > "init=epsg:23030" > END > > LAYER > STATUS ON > CONNECTIONTYPE postgis > CONNECTION "user=postgres password=1111 dbname=VITICOLA_IMPRESIONES host=192.168.1.161 port=5432" > NAME "vinedos" > > PROJECTION > "init=epsg:23030" > END > DUMP TRUE > TYPE POLYGON > METADATA > "wms_title" "vinedos" > "wms_srs" "EPSG:23030" > "wms_name" "vinedos" > "wms_server_version" "1.1.1" > "wms_format" "image/gif" > "wms_transparent" "true" > "wms_extent" "470000 4700000 610000 4820000" > "gml_include_items" "all" > END > #Sentencia SQL para obtener los datos > DATA "the_geom FROM vinedos using unique gid using SRID=23030" > > CLASS > NAME "Vinedos" > STYLE > SYMBOL 'dashed1' > OUTLINECOLOR 0 0 0 > END > TEMPLATE "ttt_query.html" > END > > PROCESSING "LABEL_NO_CLIP=ON" > END > > END > > And my font file: > > sans Vera.ttf > esri-130 esri_130.ttf > times times.ttf > times-bold timesbd.ttf > arial arial.ttf > > No error messages are received. > > Any ideas?? > > Thanks. > > Un saludo, > > > ?????????????????????????????????????????????????????????????????????? > ???????????? > > David Alda Fern?ndez de Lezea > Lurralde eta Biodibertsitate Saila / Dpto. de Territorio y > Biodiversidad > > IKT > Granja Modelo s/n ? 01192 ? Arkaute (Araba) > > ?????????????????????????????????????????????????????????????????????????????????? > Tlfnos.: 945-00-32-95 Fax: 945-00.32.90 > ?????????????????????????????????????????????????????????????????????????????????? > email: dalda at ikt.es web: www.ikt.es > > ?????????????????????????????????????????????????????????????????????? > ???????????? > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: yassefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- From jconline at gmail.com Mon Oct 4 06:11:35 2010 From: jconline at gmail.com (joel collins) Date: Mon, 4 Oct 2010 09:11:35 -0400 Subject: [mapserver-users] Using mapserver on windows in production Message-ID: I have gotten my app working using MS4W, but it is coming time to deploy our application and I'm looking for ideas on whats the best route to take. I need to stick with windows as thats the platform thats available at my work. Is using MS4W acceptable in a production environment? How can I apply security patches / etc with a prebuilt binary? From ahmettemiz88 at gmail.com Mon Oct 4 06:26:49 2010 From: ahmettemiz88 at gmail.com (ahmet temiz) Date: Mon, 4 Oct 2010 16:26:49 +0300 Subject: [mapserver-users] syntax of setConnectionType for postgis Message-ID: hello how should the syntax of setConnectionType for postgis in java-mapscript ? I have a confusion of this: jeolayer.setConnectionType(?, MS_POSTGIS); regards From sumit321 at hotmail.com Mon Oct 4 07:50:57 2010 From: sumit321 at hotmail.com (Sumit Sharma) Date: Mon, 4 Oct 2010 07:50:57 -0700 (PDT) Subject: [mapserver-users] Re: How to get some part extents in polygon within complete polygon In-Reply-To: References: Message-ID: <1286203857688-5599475.post@n2.nabble.com> I am not too sure of your requirement. However you can always iterate through concerned number of points and can calculate extents of selected points. -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/How-to-get-some-part-extents-in-polygon-within-complete-polygon-tp5587629p5599475.html Sent from the Mapserver - User mailing list archive at Nabble.com. From sumit321 at hotmail.com Mon Oct 4 07:55:52 2010 From: sumit321 at hotmail.com (Sumit Sharma) Date: Mon, 4 Oct 2010 07:55:52 -0700 (PDT) Subject: [mapserver-users] Re: Using mapserver on windows in production In-Reply-To: References: Message-ID: <1286204152205-5599492.post@n2.nabble.com> we are using mapserver to develop desktop and web applications and using them successfully in various projects. I would recommend you to put your all mapserver dll's and other dependency in one single folder. All your application executables should not be part of this folder. You may use one environment variable which may point towards mapserver directory. Thus you will be sure to use which version of mapserver you may want to use. -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Using-mapserver-on-windows-in-production-tp5599047p5599492.html Sent from the Mapserver - User mailing list archive at Nabble.com. From Sofia.Bryntse at et.slu.se Mon Oct 4 08:13:12 2010 From: Sofia.Bryntse at et.slu.se (Sofia Bryntse) Date: Mon, 4 Oct 2010 17:13:12 +0200 Subject: [mapserver-users] OpenLayers, WFS, Postgis and SWEREF99 TM Message-ID: <174756CAB7FFB043BA2A4FEC7E579F68A7F5F17367@exmbx3.ad.slu.se> Hello all, We have a number of points (reference system SWEREF99TM/epsg:3006) in a Postgres db with PostGIS, that we want to display as choosable vector features on a web map, with the help of MapServer. E.g., if you hover over or click on a point, you will get a popup window with link to more info read from the database. The problem is that we don't know yet how to create this functionality in the best possible way. We are trying to use OpenLayers, connected to a WFS generated by MapServer. I've noticed a lack of examples of this combination of software and since we are new to WFS and OpenLayers and no real experts on MapServer either, we don't know if perhaps we're on the wrong track. We are bumping into problem after problem, and I just want to make sure that what we are trying to do is even feasible. Is this the right method to solve our basic problem, or is there a better way (for example not using OpenLayers or not using WFS, but something else)? How many points is the optimal amount to visualise with WFS/OpenLayers ? Can WFS/OpenLayers handle our reference system SWEREF99 TM (epsg:3006)? Are there problems showing PostGIS data through WFS, that we are unaware of? Kind regards, Sofia From jconline at gmail.com Mon Oct 4 10:45:49 2010 From: jconline at gmail.com (joel collins) Date: Mon, 4 Oct 2010 13:45:49 -0400 Subject: [mapserver-users] Re: Using mapserver on windows in production In-Reply-To: <1286204152205-5599492.post@n2.nabble.com> References: <1286204152205-5599492.post@n2.nabble.com> Message-ID: I'm sorry, but I think i'm not even there yet. I can get ms4w working in the default configuration (older version of apache and and old version of php), but I want to make it work with the latest version of IIS / php. I have been trying unsuccessfully to get IIS7.5 to talk to the older version of php...It only seems to work when i point a mapping to C:\ms4w\Apache\cgi-bin\php5isapi.dll. This gets me up to the point where I try to dl('php_mapscript.dll') but i get a warning about not being able to do that in IIS. When i add php_mapscript.dll to the extensions in php.ini, nothing happens. I think i may be missing a dependency or soemthing? Running php in cgi mode results in this error: HTTP Error 502.2 - Bad Gateway The specified CGI application misbehaved by not returning a complete set of HTTP headers. The headers it did return are "". I"m feeling quite frustrated right now. What is the best way to be able to use php/mapscript in production in windows? On Mon, Oct 4, 2010 at 10:55 AM, Sumit Sharma wrote: > > we are using mapserver to develop desktop and web applications and using them > successfully in various projects. > I would recommend you to put your all mapserver dll's and other dependency > in one single folder. All your application executables should not be part of > this folder. You may use one environment variable which may point towards > mapserver directory. Thus you will be sure to use which version of mapserver > you may want to use. > > -- > View this message in context: http://osgeo-org.1803224.n2.nabble.com/Using-mapserver-on-windows-in-production-tp5599047p5599492.html > Sent from the Mapserver - User mailing list archive at Nabble.com. > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From Dan.Bowerman at ec.gc.ca Mon Oct 4 10:56:24 2010 From: Dan.Bowerman at ec.gc.ca (Bowerman,Dan [Burlington]) Date: Mon, 4 Oct 2010 13:56:24 -0400 Subject: [mapserver-users] Re: Using mapserver on windows in production In-Reply-To: References: <1286204152205-5599492.post@n2.nabble.com> Message-ID: <7C760A126D798C4C8D3B1DD4960BCA98011EA59E@ecburexch1.ontario.int.ec.gc.ca> While I personally had a ton of issues attempting to get MS4W working with IIS7.5 under Windows 7, if you're willing to use IIS6 instead, this guide is terrific for getting that setup: http://www.geomoose.org/docs/install_ms4w.html If you do manage to get it working under 7.5, please share the steps! These steps may more or less transfer over, but I had long given up on my 7.5 ambitions by the time I had found this guide. There is more documentation available for MS4W under IIS6 which is what our production systems are currently running anyways. Hope that helps, Dan Bowerman Business Applications Solutions Directorate | Direction?des applications?d'affaires et solutions Chief Information Officer Branch | Direction du dirigeant principal de l'information Environment Canada | Environnement Canada 867 Lakeshore Road | 867, rue Lakeshore Burlington (ON) L7R-4A6 | Burlington (ON) L7R-4A6 dan.bowerman at ec.gc.ca Telephone | T?l?phone 905-315-5215 Facsimile | T?l?copieur 905-336-4610 Government of Canada | Gouvernement du Canada -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of joel collins Sent: Monday, October 04, 2010 1:46 PM To: Sumit Sharma Cc: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Re: Using mapserver on windows in production I'm sorry, but I think i'm not even there yet. I can get ms4w working in the default configuration (older version of apache and and old version of php), but I want to make it work with the latest version of IIS / php. I have been trying unsuccessfully to get IIS7.5 to talk to the older version of php...It only seems to work when i point a mapping to C:\ms4w\Apache\cgi-bin\php5isapi.dll. This gets me up to the point where I try to dl('php_mapscript.dll') but i get a warning about not being able to do that in IIS. When i add php_mapscript.dll to the extensions in php.ini, nothing happens. I think i may be missing a dependency or soemthing? Running php in cgi mode results in this error: HTTP Error 502.2 - Bad Gateway The specified CGI application misbehaved by not returning a complete set of HTTP headers. The headers it did return are "". I"m feeling quite frustrated right now. What is the best way to be able to use php/mapscript in production in windows? On Mon, Oct 4, 2010 at 10:55 AM, Sumit Sharma wrote: > > we are using mapserver to develop desktop and web applications and using them > successfully in various projects. > I would recommend you to put your all mapserver dll's and other dependency > in one single folder. All your application executables should not be part of > this folder. You may use one environment variable which may point towards > mapserver directory. Thus you will be sure to use which version of mapserver > you may want to use. > > -- > View this message in context: http://osgeo-org.1803224.n2.nabble.com/Using-mapserver-on-windows-in-production-tp5599047p5599492.html > Sent from the Mapserver - User mailing list archive at Nabble.com. > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From richard.greenwood at gmail.com Mon Oct 4 12:18:29 2010 From: richard.greenwood at gmail.com (Richard Greenwood) Date: Mon, 4 Oct 2010 13:18:29 -0600 Subject: [mapserver-users] Re: Using mapserver on windows in production In-Reply-To: References: <1286204152205-5599492.post@n2.nabble.com> Message-ID: Joel, I know your frustration. I've implemented mapserver under IIS 6, IIS 7 and IIS 7.5 with each one being harder and more frustrating than the previous. And if your Windows web server happens to also be domain controller heaven help you! Can you use Apache? It's much easier. The initial learning curve might seem steeper than IIS because Apache lacks the fancy (confusing) graphical user interface for configuration, but Apache offers far more flexible access control, aliases and redirection. If you have to connect to a Microsoft SQL Server database, I'd recommend PHP 5.2 over 5.3 as 5.3 doesn't come with SQL Server drivers (or at least didn't the last time I looked). Just my $0.02. Rich On Mon, Oct 4, 2010 at 11:45 AM, joel collins wrote: > I'm sorry, but I think i'm not even there yet. > > I can get ms4w working in the default configuration (older version of > apache and and old version of php), but I want to make it work with > the latest version of IIS / php. > > I have been trying unsuccessfully to get IIS7.5 to talk to the older > version of php...It only seems to work when i point a mapping to > C:\ms4w\Apache\cgi-bin\php5isapi.dll. ?This gets me up to the point > where I try to dl('php_mapscript.dll') but i get a warning about not > being able to do that in IIS. > When i add php_mapscript.dll to the extensions in php.ini, nothing > happens. ?I think i may be missing a dependency or soemthing? > > Running php in cgi mode results in this error: > HTTP Error 502.2 - Bad Gateway > The specified CGI application misbehaved by not returning a complete > set of HTTP headers. The headers it did return are "". > > I"m feeling quite frustrated right now. ?What is the best way to be > able to use php/mapscript in production in windows? > > On Mon, Oct 4, 2010 at 10:55 AM, Sumit Sharma wrote: >> >> we are using mapserver to develop desktop and web applications and using them >> successfully in various projects. >> I would recommend you to put your all mapserver dll's and other dependency >> in one single folder. All your application executables should not be part of >> this folder. You may use one environment variable which may point towards >> mapserver directory. Thus you will be sure to use which version of mapserver >> you may want to use. >> >> -- >> View this message in context: http://osgeo-org.1803224.n2.nabble.com/Using-mapserver-on-windows-in-production-tp5599047p5599492.html >> Sent from the Mapserver - User mailing list archive at Nabble.com. >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -- Richard Greenwood richard.greenwood at gmail.com www.greenwoodmap.com From jconline at gmail.com Mon Oct 4 13:01:55 2010 From: jconline at gmail.com (joel collins) Date: Mon, 4 Oct 2010 16:01:55 -0400 Subject: [mapserver-users] Re: Using mapserver on windows in production In-Reply-To: References: <1286204152205-5599492.post@n2.nabble.com> Message-ID: Thank you all for the responses. Perhaps I am overthinking my problem. Lets say my only requirement was to get mapserver running with the latest versions of PHP and apache. How would I go about accomplishing this? Would I download ms4w, apache, and php, and try to get them all to talk to each other? Or does ms4w have some special configuration that only the version of apache that comes bundled with it will work out of the box? On Mon, Oct 4, 2010 at 3:18 PM, Richard Greenwood wrote: > Joel, > > I know your frustration. I've implemented mapserver under IIS 6, IIS 7 > and IIS 7.5 with each one being harder and more frustrating than the > previous. And if your Windows web server happens to also be domain > controller heaven help you! Can you use Apache? It's much easier. The > initial learning curve might seem steeper than IIS because Apache > lacks the fancy (confusing) graphical user interface for > configuration, but Apache offers far more flexible access control, > aliases and redirection. > > If you have to connect to a Microsoft SQL Server database, I'd > recommend PHP 5.2 over 5.3 as 5.3 doesn't come with SQL Server drivers > (or at least didn't the last time I looked). > > Just my $0.02. > Rich > > > On Mon, Oct 4, 2010 at 11:45 AM, joel collins wrote: >> I'm sorry, but I think i'm not even there yet. >> >> I can get ms4w working in the default configuration (older version of >> apache and and old version of php), but I want to make it work with >> the latest version of IIS / php. >> >> I have been trying unsuccessfully to get IIS7.5 to talk to the older >> version of php...It only seems to work when i point a mapping to >> C:\ms4w\Apache\cgi-bin\php5isapi.dll. ?This gets me up to the point >> where I try to dl('php_mapscript.dll') but i get a warning about not >> being able to do that in IIS. >> When i add php_mapscript.dll to the extensions in php.ini, nothing >> happens. ?I think i may be missing a dependency or soemthing? >> >> Running php in cgi mode results in this error: >> HTTP Error 502.2 - Bad Gateway >> The specified CGI application misbehaved by not returning a complete >> set of HTTP headers. The headers it did return are "". >> >> I"m feeling quite frustrated right now. ?What is the best way to be >> able to use php/mapscript in production in windows? >> >> On Mon, Oct 4, 2010 at 10:55 AM, Sumit Sharma wrote: >>> >>> we are using mapserver to develop desktop and web applications and using them >>> successfully in various projects. >>> I would recommend you to put your all mapserver dll's and other dependency >>> in one single folder. All your application executables should not be part of >>> this folder. You may use one environment variable which may point towards >>> mapserver directory. Thus you will be sure to use which version of mapserver >>> you may want to use. >>> >>> -- >>> View this message in context: http://osgeo-org.1803224.n2.nabble.com/Using-mapserver-on-windows-in-production-tp5599047p5599492.html >>> Sent from the Mapserver - User mailing list archive at Nabble.com. >>> _______________________________________________ >>> mapserver-users mailing list >>> mapserver-users at lists.osgeo.org >>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> > > > > -- > Richard Greenwood > richard.greenwood at gmail.com > www.greenwoodmap.com > From jmckenna at gatewaygeomatics.com Mon Oct 4 13:37:43 2010 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Mon, 04 Oct 2010 17:37:43 -0300 Subject: [mapserver-users] Using mapserver on windows in production In-Reply-To: References: Message-ID: <4CAA3B17.8070709@gatewaygeomatics.com> On 10-10-04 10:11 AM, joel collins wrote: > I have gotten my app working using MS4W, but it is coming time to > deploy our application and I'm looking for ideas on whats the best > route to take. I need to stick with windows as thats the platform > thats available at my work. > > Is using MS4W acceptable in a production environment? How can I > apply security patches / etc with a prebuilt binary? Hi Joel, Yes MS4W is used in thousands of production deployments around the world. (and at this year's FOSS4G event in Barcelona we found that MS4W battles with MapServer-Unix for being one of the fastest WMS servers in many situations: http://www.slideshare.net/gatewaygeomatics.com/wms-performance-shootout-2010) If you run into any walls please contact me directly, and my team can assist your group with your deployment of MS4W. -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ From richard.greenwood at gmail.com Mon Oct 4 13:53:42 2010 From: richard.greenwood at gmail.com (Richard Greenwood) Date: Mon, 4 Oct 2010 14:53:42 -0600 Subject: [mapserver-users] Re: Using mapserver on windows in production In-Reply-To: References: <1286204152205-5599492.post@n2.nabble.com> Message-ID: On Mon, Oct 4, 2010 at 2:01 PM, joel collins wrote: > Thank you all for the responses. ?Perhaps I am overthinking my problem. > > Lets say my only requirement was to get mapserver running with the > latest versions of PHP and apache. ?How would I go about accomplishing > this? ?Would I download ms4w, apache, and php, and try to get them all > to talk to each other? ?Or does ms4w have some special configuration > that only the version of apache that comes bundled with it will work > out of the box? As Jeff noted, you can just use MS4W and that's surely the path of least resistance. Or you can download and install Apache and PHP separately and just use the mapserv binaries in cgi-bin from the MS4W distribution, and maybe the http*.conf files as guidance for your own setup. Having setup a lot of MapServers over the last 10 years it is my personal experience that Apache is easier to setup and maintain than IIS. I'm not sure why MS4W has the warnings that it is primarily for development and not hardened for production use, but I wouldn't let those warnings discourage you from using it on a production server. Rich -- Richard Greenwood richard.greenwood at gmail.com www.greenwoodmap.com From jmckenna at gatewaygeomatics.com Mon Oct 4 14:34:13 2010 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Mon, 04 Oct 2010 18:34:13 -0300 Subject: [mapserver-users] Re: Using mapserver on windows in production In-Reply-To: References: <1286204152205-5599492.post@n2.nabble.com> Message-ID: <4CAA4855.8010102@gatewaygeomatics.com> On 10-10-04 5:53 PM, Richard Greenwood wrote: > > As Jeff noted, you can just use MS4W and that's surely the path of > least resistance. Or you can download and install Apache and PHP > separately and just use the mapserv binaries in cgi-bin from the MS4W > distribution, and maybe the http*.conf files as guidance for your own > setup. Having setup a lot of MapServers over the last 10 years it is > my personal experience that Apache is easier to setup and maintain > than IIS. I'm not sure why MS4W has the warnings that it is primarily > for development and not hardened for production use, but I wouldn't > let those warnings discourage you from using it on a production > server. Great points from Rich. Just one additional note: recent versions of MS4W don't have these 'not for production' warnings. -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ From pjamason at ucsd.edu Mon Oct 4 18:17:31 2010 From: pjamason at ucsd.edu (pjamason2) Date: Mon, 4 Oct 2010 18:17:31 -0700 (PDT) Subject: [mapserver-users] msOracleSpatialLayerResultGetShape() could not fetch specified record Message-ID: <1286241451086-5601515.post@n2.nabble.com> Hi, After migrating to mapserver 5.6.5, one of our two ms oracle spatial queries no longer works. Here's the query that works: Using this Sql to retrieve the data: SELECT ID, ID, SITE_ID, SITE_CODE, CITY, ARRAY_CODE, NAME, SHAPE FROM (select s.id as id,s.site_id as site_id,upper(s.site_code) as site_code,s.shape,nvl(s.city,'n/a') as city,sa.array_code as array_code,nvl(s.site_name,'n/a') as name from site s, site_affiliation sa where s.site_id = sa.site_id and sa.end_date is null and s.site_type_code = 'CONGPS') [Fri Oct 1 18:19:50 2010].881984 msOracleSpatialLayerWhichShapes. Bind values: srid:8307 minx:-11 4.139531 miny:34.485321 maxx:-112.696645 maxy:35.928207 [Fri Oct 1 18:19:50 2010].882013 msOracleSpatialLayerWhichShapes getting ordinate definition. [Fri Oct 1 18:19:50 2010].883487 msOracleSpatialLayerWhichShapes converting to OCIColl. [Fri Oct 1 18:19:50 2010].883626 msOracleSpatialLayerWhichShapes bind by name and object. [Fri Oct 1 18:19:50 2010].883632 msOracleSpatialLayerWhichShapes name and object now bound. [Fri Oct 1 18:19:51 2010].26025 msOracleSpatialLayerNextShape on layer 0x13665770, row_num: 0 [Fri Oct 1 18:19:51 2010].732440 msOracleSpatialLayerNextShape on layer 0x13665770, row_num: 8245 [Fri Oct 1 18:19:51 2010].732662 msOracleSpatialLayerNextShape on layer 0x13665770, Fetched 0 more rows (8250 total) [Fri Oct 1 18:19:51 2010].733278 msOracleSpatialLayerResultGetShape was called. Using the record = 5185 of 1. (shape: 0 should equal pkey: 6274) [Fri Oct 1 18:19:51 2010].733287 msOracleSpatialLayerResultGetShape: Fetching result from DB start: 8192 end:8191 record: 5185 [Fri Oct 1 18:19:51 2010].794501 mapserv request processing time (loadmap not incl.): 1.034s This query does not: [Fri Oct 1 18:19:38 2010].152059 msOracleSpatialLayerWhichShapes. Using this Sql to retrieve the data: SELECT ID, ID, SITE_ID, SITE_CODE, CITY, ARRAY_CODE, NAME, INTERVAL, LAST, SINCE, SHAPE FROM (select s.id as id,s.site_id as site_id,upper(s.site_code) as site_code,s.shape,nvl(s.city,'n/a') as city,sa.array_code as array_code,nvl(s.site_name,'n/a') as name,src.sample_interval_in_seconds as interval,to_char(round(((SYSDATE - last_updated) * 24 * 60),0),'999999999') as last, src.start_date as since from site s, realtime_gps_data_src src, site_affiliation sa where src.end_date is null and src. site_id = s.site_id and s.site_id = sa.site_id) [Fri Oct 1 18:19:38 2010].152065 msOracleSpatialLayerWhichShapes. Bind values: srid:8307 minx:-114.864628 miny:33.584442 maxx:-113.421743 maxy:35.027328 [Fri Oct 1 18:19:38 2010].152107 msOracleSpatialLayerWhichShapes getting ordinate definition. [Fri Oct 1 18:19:38 2010].153257 msOracleSpatialLayerWhichShapes converting to OCIColl. [Fri Oct 1 18:19:38 2010].153386 msOracleSpatialLayerWhichShapes bind by name and object. [Fri Oct 1 18:19:38 2010].153392 msOracleSpatialLayerWhichShapes name and object now bound. [Fri Oct 1 18:19:38 2010].222071 msOracleSpatialLayerNextShape on layer 0x18b9bdd0, row_num: 0 [Fri Oct 1 18:19:38 2010].226113 msOracleSpatialLayerNextShape on layer 0x18b9bdd0, row_num: 167 [Fri Oct 1 18:19:38 2010].226464 msOracleSpatialLayerNextShape on layer 0x18b9bdd0, Fetched 0 more rows (167 total) [Fri Oct 1 18:19:38 2010].226984 msOracleSpatialLayerResultGetShape was called. Using the record = 92 of 1. (shape: 415777808 should equal pkey: 2507) [Fri Oct 1 18:19:38 2010].227002 msOracleSpatialLayerResultGetShape: Fetching result from DB start: 0 end:-1 record: 92 [Fri Oct 1 18:19:38 2010].883468 msOracleSpatialLayerResultGetShape: OracleSpatial error. ORA-03113 : end-of-file on communication channel Process ID: 19745 Session ID: 59 Serial number: 36067 [Fri Oct 1 18:19:38 2010].883478 msOracleSpatialLayerResultGetShape(): OracleSpatial error. msOracleSpatialLayerResultGetShape could not fetch specified record. In mapserver 5.2.0, the second query above worked: [Mon Oct 4 16:58:41 2010].791000 msOracleSpatialLayerFreeItemInfo was called. [Mon Oct 4 16:58:41 2010].791007 msOracleSpatialLayerGetItems was called. [Mon Oct 4 16:58:41 2010].792022 msOracleSpatialLayerInitItemInfo was called. [Mon Oct 4 16:58:42 2010].87922 msOracleSpatialLayerGetShape was called. Using the record = 62392. [Mon Oct 4 16:58:42 2010].87940 msOracleSpatialLayerGetShape. Sql: SELECT ID, SITE_ID, SITE_CODE, CITY, ARRAY_CODE, NAME, INTERVAL, LAST, SINCE, SHAPE FROM (select s.id as id,s.site_id as site_id,upper(s.site_code) as site_code,s.shape,nvl(s.city,'n/a') as city,sa.array_code as array_code,nvl(s.site_name,'n/a') as name,src.sample_interval_in_seconds as interval,to_char(round(((SYSDATE - last_upda ted) * 24 * 60),0),'999999999') as last, src.start_date as since from site s, realtime_gps_data_src src, site_affiliation sa where src.end_date is null and src.site_id = s.site_id and s.site_id = sa.site_id) WHERE ID = 62392 I've seen the RFC-52 note regarding msLayerResultsGetShape() in the mapserver 5.4 to 5.6 migration guide at http://trac.osgeo.org/mapserver/browser/branches/branch-5-6/mapserver/MIGRATION_GUIDE.TXT http://trac.osgeo.org/mapserver/browser/branches/branch-5-6/mapserver/MIGRATION_GUIDE.TXT but we're calling the mapserv cgi, which is transparent to this change according to this note. We're considering migrating back to ms 5.4, but any help would be greatly appreciated, thanks. -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/msOracleSpatialLayerResultGetShape-could-not-fetch-specified-record-tp5601515p5601515.html Sent from the Mapserver - User mailing list archive at Nabble.com. From richard.lehaut at gmail.com Tue Oct 5 00:18:43 2010 From: richard.lehaut at gmail.com (Richard LEHAUT) Date: Tue, 5 Oct 2010 09:18:43 +0200 Subject: [mapserver-users] Problem with wfs.php Message-ID: Hi, This url returns me an error: * http://ws.carmen.developpement-durable.gouv.fr/WFS/8/nature?&VERSION=1.0.0&SERVICE=WFS&REQUEST=GetFeature&TYPENAME=ZNIEFF_de_type_1&FILTER=Geometry(526467,6821671 526471,6821675 526480,6821677 526482,6821676 526491,6821679 526490,6821682 526546,6821697 526615,6821701 526616,6821699 526627,6821699 526628,6821702 526708,6821705 526804,6821709 526821,6821701 526886,6821665 526916,6821658 526933,6821616 526961,6821574 526969,6821565 526982,6821513 526833,6821533 526833,6821517 526813,6821513 526801,6821508 526749,6821480 526732,6821469 526718,6821484 526688,6821481 526616,6821481 526620,6821448 526584,6821438 526547,6821401 526545,6821397 526533,6821376 526455,6821381 526453,6821379 526409,6821377 526415,6821415 526429,6821499 526440,6821569 526377,6821567 526362,6821463 526357,6821393 526359,6821371 526360,6821362 526365,6821332 526325,6821292 526315,6821308 526302,6821322 526296,6821325 526277,6821347 526286,6821417 526286,6821447 526295,6821516 526303,6821549 526308,6821569 526314,6821571 526320,6821578 526328,6821580 526340,6821589 526381,6821619 526466,6821673 526467,6821671 526467,6821671) (526489,6821639 526492,6821655 526493,6821655 526489,6821639 526489,6821639) (526467,6821588 526466,6821586 526464,6821585 526467,6821588 526467,6821588) (526479,6821603 526478,6821601 526477,6821599 526479,6821603 526479,6821603) (526489,6821639 526489,6821639 526486,6821627 526489,6821639 526489,6821639)) ((527187,6822859 527158,6822860 527138,6822862 527110,6822871 527104,6822873 527098,6822871 527054,6822879 527003,6822885 526998,6822885 526995,6822885 526972,6822882 526964,6822889 526955,6822894 526935,6822910 526922,6822929 526916,6822946 526910,6822973 526917,6822980 526917,6822987 526915,6823010 526942,6823015 526943,6823045 526945,6823052 526948,6823056 526956,6823059 526969,6823073 526973,6823081 526975,6823094 526970,6823097 526971,6823102 526987,6823123 527004,6823131 527019,6823103 527050,6823109 527134,6823120 527137,6823099 527133,6823084 527134,6823050 527190,6823074 527199,6823016 527220,6823014 527213,6822861 527204,6822860 527187,6822859 527187,6822859) (527114,6823008 527114,6823001 527071,6822980 527059,6822982 527050,6822978 527032,6822968 527024,6823072 527047,6823070 527043,6823034 527049,6822983 527068,6822984 527114,6823008 527114,6823008) (527112,6822930 527115,6822933 527118,6822943 527118,6822947 527119,6822955 527124,6822954 527123,6822945 527119,6822930 527115,6822925 527112,6822930 527112,6822930)) ((526685,6821896 526737,6821974 526766,6822042 526771,6822072 526782,6822030 526808,6821981 526869,6821901 526875,6821889 526909,6821797 526908,6821779 526900,6821771 526832,6821727 526812,6821722 526787,6821720 526785,6821761 526666,6821870 526685,6821896 526685,6821896)) ((527009,6822654 527076,6822645 527077,6822629 527076,6822611 527076,6822608 527079,6822589 527070,6822587 527063,6822589 527038,6822623 527012,6822641 527009,6822649 527007,6822650 527002,6822652 526984,6822657 526953,6822666 526917,6822684 526898,6822697 526901,6822703 526949,6822680 526958,6822701 526927,6822716 526946,6822718 526955,6822714 526961,6822709 526980,6822748 526988,6822809 526997,6822811 527002,6822843 527040,6822877 527052,6822875 527086,6822868 527100,6822860 527104,6822849 527107,6822845 527113,6822839 527120,6822826 527134,6822803 527147,6822771 527160,6822720 527168,6822679 527153,6822679 527132,6822678 527079,6822677 527012,6822671 527009,6822654 527009,6822654)) ((527249,6822166 527250,6822157 527257,6822142 527274,6822104 527280,6822079 527265,6822097 527230,6822148 527205,6822195 527179,6822230 527163,6822262 527205,6822288 527251,6822297 527270,6822298 527334,6822298 527376,6822304 527391,6822304 527503,6822328 527554,6822333 527572,6822322 527548,6822299 527542,6822296 527545,6822281 527391,6822246 527282,6822211 527218,6822199 527249,6822166 527249,6822166)) ((526821,6822064 526901,6822093 526939,6822084 526962,6822085 526985,6822075 527018,6822113 527046,6822155 527068,6822140 527064,6822093 527061,6822073 527051,6822041 527024,6821996 526906,6821995 526896,6821998 526889,6822002 526868,6822015 526852,6822029 526821,6822064 526821,6822064)) ((527082,6822584 527086,6822573 527091,6822566 527073,6822564 527065,6822561 527046,6822526 527047,6822455 527052,6822410 527053,6822381 527038,6822382 527036,6822378 526966,6822403 526967,6822435 526972,6822476 526983,6822538 527010,6822639 527032,6822623 527036,6822619 527055,6822594 527060,6822586 527066,6822584 527081,6822585 527082,6822584 527082,6822584)) ((526546,6821979 526549,6822025 526551,6822040 526563,6822075 526684,6822011 526655,6821986 526614,6821947 526680,6821898 526664,6821872 526662,6821873 526546,6821979 526546,6821979)) ((527014,6821959 527090,6821938 527116,6821929 527112,6821927 527110,6821928 527103,6821924 527104,6821920 527060,6821893 527019,6821865 527017,6821866 527006,6821858 527008,6821855 526927,6821792 526923,6821792 526922,6821794 526924,6821803 526984,6821906 527006,6821947 527014,6821959 527014,6821959)) ((527170,6822232 527134,6822195 527134,6822164 527129,6822155 527102,6822120 527073,6822133 527074,6822170 527083,6822210 527123,6822234 527156,6822262 527170,6822232 527170,6822232)) ((526582,6822099 526581,6822099 526584,6822100 526592,6822098 526600,6822099 526626,6822130 526741,6822056 526740,6822052 526704,6822025 526582,6822099 526582,6822099)) ((527461,6822398 527434,6822522 527484,6822557 527504,6822464 527472,6822443 527472,6822435 527489,6822377 527461,6822398 527461,6822398)) ((527423,6822716 527345,6822691 527339,6822710 527302,6822693 527289,6822721 527396,6822770 527414,6822736 527423,6822716 527423,6822716)) ((527726,6822272 527788,6822255 527792,6822219 527799,6822180 527817,6822133 527792,6822152 527774,6822172 527747,6822196 527727,6822269 527726,6822272 527726,6822272)) ((527835,6823091 527845,6823121 527847,6823122 527871,6823117 527904,6823102 527896,6823091 527911,6823082 527889,6823053 527858,6823079 527835,6823091 527835,6823091)) ((527129,6822598 527125,6822597 527154,6822653 527171,6822677 527210,6822631 527129,6822598 527129,6822598)) ((527184,6822670 527176,6822681 527190,6822695 527236,6822770 527269,6822749 527184,6822670 527184,6822670)) ((526719,6821400 526751,6821412 526776,6821372 526747,6821327 526719,6821400 526719,6821400)) ((527143,6822790 527141,6822795 527133,6822810 527128,6822819 527124,6822825 527117,6822840 527110,6822846 527107,6822851 527103,6822862 527106,6822865 527110,6822865 527139,6822859 527135,6822836 527160,6822831 527174,6822853 527177,6822854 527187,6822855 527164,6822818 527143,6822790 527143,6822790)) ((527423,6822716 527420,6822725 527449,6822734 527480,6822692 527430,6822672 527428,6822676 527431,6822697 527423,6822716 527423,6822716)) ((526654,6822160 526675,6822186 526685,6822193 526698,6822175 526692,6822165 526679,6822144 526654,6822160 526654,6822160) * The FilterEnconding uses a complex geometry (polygon with hole). With a simple geometry, it's correct. The error message is : *Warning*: file_get_contents( http://ws.carmen.developpement-durable.gouv.fr/cgi-bin/mapserv?service_idx=8&map=%2Fmnt%2Fdata_carmen%2FBN%2FPublication%2Fwms_nature.map&VERSION=1.0.0&SERVICE=WFS&REQUEST=GetFeature&TYPENAME=ZNIEFF_de_type_1&FILTER=%3CFilter%3E%3CIntersect%3E%3CPropertyName%3EGeometry%3C%2FPropertyName%3E%3Cgml%3APolygon%3E%3Cgml%3AouterBoundaryIs%3E%3Cgml%3ALinearRing%3E%3Cgml%3Acoordinates%3E%28526467%2C6821671%20526471%2C6821675%20526480%2C6821677%20526482%2C6821676%20526491%2C6821679%20526490%2C6821682%20526546%2C6821697%20526615%2C6821701%20526616%2C6821699%20526627%2C6821699%20526628%2C6821702%20526708%2C6821705%20526804%2C6821709%20526821%2C6821701%20526886%2C6821665%20526916%2C6821658%20526933%2C6821616%20526961%2C6821574%20526969%2C6821565%20526982%2C6821513%20526833%2C6821533%20526833%2C6821517%20526813%2C6821513%20526801%2C6821508%20526749%2C6821480%20526732%2C6821469%20526718%2C6821484%20526688%2C6821481%20526616%2C6821481%20526620%2C6821448%20526584%2C6821438%20526547%2Cin */applications/www/carmen/WFS/wfs.php* on line *66* *Warning*: Cannot modify header information - headers already sent by (output started at /applications/www/carmen/WFS/wfs.php:66) in * /applications/www/carmen/WFS/wfs.php* on line *91* Thank you for your help. Tiolebucheron -------------- next part -------------- An HTML attachment was scrubbed... URL: From Jukka.Rahkonen at mmmtike.fi Tue Oct 5 00:22:57 2010 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Tue, 5 Oct 2010 10:22:57 +0300 Subject: [mapserver-users] Problem with wfs.php In-Reply-To: References: Message-ID: Hi, Your request is about 7033 characters long. I would have a try with a much more simple geometry (but still a polygon with hole) for seeing if the real problem is in the length of the request string. -Jukka Rahkonen- ________________________________ L?hett?j?: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] Puolesta Richard LEHAUT L?hetetty: 5. lokakuuta 2010 10:19 Vastaanottaja: mapserver-users at lists.osgeo.org Aihe: [mapserver-users] Problem with wfs.php Hi, This url returns me an error: http://ws.carmen.developpement-durable.gouv.fr/WFS/8/nature?&VERSION=1.0.0&SERVICE=WFS&REQUEST=GetFeature&TYPENAME=ZNIEFF_de_type_1&FILTER=Geometry(526467,6821671 526471,6821675 526480,6821677 526482,6821676 526491,6821679 526490,6821682 526546,6821697 526615,6821701 526616,6821699 526627,6821699 526628,6821702 526708,6821705 526804,6821709 526821,6821701 526886,6821665 526916,6821658 526933,6821616 526961,6821574 526969,6821565 526982,6821513 526833,6821533 526833,6821517 526813,6821513 526801,6821508 526749,6821480 526732,6821469 526718,6821484 526688,6821481 526616,6821481 526620,6821448 526584,6821438 526547,6821401 526545,6821397 526533,6821376 526455,6821381 526453,6821379 526409,6821377 526415,6821415 526429,6821499 526440,6821569 526377,6821567 526362,6821463 526357,6821393 526359,6821371 526360,6821362 526365,6821332 526325,6821292 526315,6821308 526302,6821322 526296,6821325 526277,6821347 526286,6821417 526286,6821447 526295,6821516 526303,6821549 526308,6821569 526314,6821571 526320,6821578 526328,6821580 526340,6821589 526381,6821619 526466,6821673 526467,6821671 526467,6821671) (526489,6821639 526492,6821655 526493,6821655 526489,6821639 526489,6821639) (526467,6821588 526466,6821586 526464,6821585 526467,6821588 526467,6821588) (526479,6821603 526478,6821601 526477,6821599 526479,6821603 526479,6821603) (526489,6821639 526489,6821639 526486,6821627 526489,6821639 526489,6821639)) ((527187,6822859 527158,6822860 527138,6822862 527110,6822871 527104,6822873 527098,6822871 527054,6822879 527003,6822885 526998,6822885 526995,6822885 526972,6822882 526964,6822889 526955,6822894 526935,6822910 526922,6822929 526916,6822946 526910,6822973 526917,6822980 526917,6822987 526915,6823010 526942,6823015 526943,6823045 526945,6823052 526948,6823056 526956,6823059 526969,6823073 526973,6823081 526975,6823094 526970,6823097 526971,6823102 526987,6823123 527004,6823131 527019,6823103 527050,6823109 527134,6823120 527137,6823099 527133,6823084 527134,6823050 527190,6823074 527199,6823016 527220,6823014 527213,6822861 527204,6822860 527187,6822859 527187,6822859) (527114,6823008 527114,6823001 527071,6822980 527059,6822982 527050,6822978 527032,6822968 527024,6823072 527047,6823070 527043,6823034 527049,6822983 527068,6822984 527114,6823008 527114,6823008) (527112,6822930 527115,6822933 527118,6822943 527118,6822947 527119,6822955 527124,6822954 527123,6822945 527119,6822930 527115,6822925 527112,6822930 527112,6822930)) ((526685,6821896 526737,6821974 526766,6822042 526771,6822072 526782,6822030 526808,6821981 526869,6821901 526875,6821889 526909,6821797 526908,6821779 526900,6821771 526832,6821727 526812,6821722 526787,6821720 526785,6821761 526666,6821870 526685,6821896 526685,6821896)) ((527009,6822654 527076,6822645 527077,6822629 527076,6822611 527076,6822608 527079,6822589 527070,6822587 527063,6822589 527038,6822623 527012,6822641 527009,6822649 527007,6822650 527002,6822652 526984,6822657 526953,6822666 526917,6822684 526898,6822697 526901,6822703 526949,6822680 526958,6822701 526927,6822716 526946,6822718 526955,6822714 526961,6822709 526980,6822748 526988,6822809 526997,6822811 527002,6822843 527040,6822877 527052,6822875 527086,6822868 527100,6822860 527104,6822849 527107,6822845 527113,6822839 527120,6822826 527134,6822803 527147,6822771 527160,6822720 527168,6822679 527153,6822679 527132,6822678 527079,6822677 527012,6822671 527009,6822654 527009,6822654)) ((527249,6822166 527250,6822157 527257,6822142 527274,6822104 527280,6822079 527265,6822097 527230,6822148 527205,6822195 527179,6822230 527163,6822262 527205,6822288 527251,6822297 527270,6822298 527334,6822298 527376,6822304 527391,6822304 527503,6822328 527554,6822333 527572,6822322 527548,6822299 527542,6822296 527545,6822281 527391,6822246 527282,6822211 527218,6822199 527249,6822166 527249,6822166)) ((526821,6822064 526901,6822093 526939,6822084 526962,6822085 526985,6822075 527018,6822113 527046,6822155 527068,6822140 527064,6822093 527061,6822073 527051,6822041 527024,6821996 526906,6821995 526896,6821998 526889,6822002 526868,6822015 526852,6822029 526821,6822064 526821,6822064)) ((527082,6822584 527086,6822573 527091,6822566 527073,6822564 527065,6822561 527046,6822526 527047,6822455 527052,6822410 527053,6822381 527038,6822382 527036,6822378 526966,6822403 526967,6822435 526972,6822476 526983,6822538 527010,6822639 527032,6822623 527036,6822619 527055,6822594 527060,6822586 527066,6822584 527081,6822585 527082,6822584 527082,6822584)) ((526546,6821979 526549,6822025 526551,6822040 526563,6822075 526684,6822011 526655,6821986 526614,6821947 526680,6821898 526664,6821872 526662,6821873 526546,6821979 526546,6821979)) ((527014,6821959 527090,6821938 527116,6821929 527112,6821927 527110,6821928 527103,6821924 527104,6821920 527060,6821893 527019,6821865 527017,6821866 527006,6821858 527008,6821855 526927,6821792 526923,6821792 526922,6821794 526924,6821803 526984,6821906 527006,6821947 527014,6821959 527014,6821959)) ((527170,6822232 527134,6822195 527134,6822164 527129,6822155 527102,6822120 527073,6822133 527074,6822170 527083,6822210 527123,6822234 527156,6822262 527170,6822232 527170,6822232)) ((526582,6822099 526581,6822099 526584,6822100 526592,6822098 526600,6822099 526626,6822130 526741,6822056 526740,6822052 526704,6822025 526582,6822099 526582,6822099)) ((527461,6822398 527434,6822522 527484,6822557 527504,6822464 527472,6822443 527472,6822435 527489,6822377 527461,6822398 527461,6822398)) ((527423,6822716 527345,6822691 527339,6822710 527302,6822693 527289,6822721 527396,6822770 527414,6822736 527423,6822716 527423,6822716)) ((527726,6822272 527788,6822255 527792,6822219 527799,6822180 527817,6822133 527792,6822152 527774,6822172 527747,6822196 527727,6822269 527726,6822272 527726,6822272)) ((527835,6823091 527845,6823121 527847,6823122 527871,6823117 527904,6823102 527896,6823091 527911,6823082 527889,6823053 527858,6823079 527835,6823091 527835,6823091)) ((527129,6822598 527125,6822597 527154,6822653 527171,6822677 527210,6822631 527129,6822598 527129,6822598)) ((527184,6822670 527176,6822681 527190,6822695 527236,6822770 527269,6822749 527184,6822670 527184,6822670)) ((526719,6821400 526751,6821412 526776,6821372 526747,6821327 526719,6821400 526719,6821400)) ((527143,6822790 527141,6822795 527133,6822810 527128,6822819 527124,6822825 527117,6822840 527110,6822846 527107,6822851 527103,6822862 527106,6822865 527110,6822865 527139,6822859 527135,6822836 527160,6822831 527174,6822853 527177,6822854 527187,6822855 527164,6822818 527143,6822790 527143,6822790)) ((527423,6822716 527420,6822725 527449,6822734 527480,6822692 527430,6822672 527428,6822676 527431,6822697 527423,6822716 527423,6822716)) ((526654,6822160 526675,6822186 526685,6822193 526698,6822175 526692,6822165 526679,6822144 526654,6822160 526654,6822160) The FilterEnconding uses a complex geometry (polygon with hole). With a simple geometry, it's correct. The error message is : Warning: file_get_contents(http://ws.carmen.developpement-durable.gouv.fr/cgi-bin/mapserv?service_idx=8&map=%2Fmnt%2Fdata_carmen%2FBN%2FPublication%2Fwms_nature.map&VERSION=1.0.0&SERVICE=WFS&REQUEST=GetFeature&TYPENAME=ZNIEFF_de_type_1&FILTER=%3CFilter%3E%3CIntersect%3E%3CPropertyName%3EGeometry%3C%2FPropertyName%3E%3Cgml%3APolygon%3E%3Cgml%3AouterBoundaryIs%3E%3Cgml%3ALinearRing%3E%3Cgml%3Acoordinates%3E%28526467%2C6821671%20526471%2C6821675%20526480%2C6821677%20526482%2C6821676%20526491%2C6821679%20526490%2C6821682%20526546%2C6821697%20526615%2C6821701%20526616%2C6821699%20526627%2C6821699%20526628%2C6821702%20526708%2C6821705%20526804%2C6821709%20526821%2C6821701%20526886%2C6821665%20526916%2C6821658%20526933%2C6821616%20526961%2C6821574%20526969%2C6821565%20526982%2C6821513%20526833%2C6821533%20526833%2C6821517%20526813%2C6821513%20526801%2C6821508%20526749%2C6821480%20526732%2C6821469%20526718%2C6821484%20526688%2C6821481%20526616%2C6821481%20526620%2C6821448%20526584%2C6821438%20526547%2C in /applications/www/carmen/WFS/wfs.php on line 66 Warning: Cannot modify header information - headers already sent by (output started at /applications/www/carmen/WFS/wfs.php:66) in /applications/www/carmen/WFS/wfs.php on line 91 Thank you for your help. Tiolebucheron -------------- next part -------------- An HTML attachment was scrubbed... URL: From astrid.emde at wheregroup.com Tue Oct 5 00:41:07 2010 From: astrid.emde at wheregroup.com (Astrid Emde) Date: Tue, 5 Oct 2010 07:41:07 -0000 (UTC) Subject: [mapserver-users] MapServer Resolution - how to set the parameter dynamically Message-ID: <31255.87.79.91.105.1286264467.squirrel@troubadix.wheregroup.com> Hello list, I tested the new Parameter RESOLUTION DEFRESOLUTION With these Paramter I can produce a nice map for print output [1]. It would be nice to set the Paramter RESOLUTION parameter directly in the MapRequest like &RESOLUTION=288. If not set here the default from the Mapfile could be used. What do you think about this idea? Do you have discussed this already? Alternatively I tried to set a variable wit MapServer variable substitution [2] like: RESOLUTION %resolution% But this caused a MapServer error. If someone has already a solution to set the resolution dynamically (without MapScript) please let me know. Astrid Emde [1] http://mapserver.org/development/rfc/ms-rfc-55.html [2] http://mapserver.org/mapfile/variable_sub.html From sebastian.ovide at gmail.com Tue Oct 5 04:26:18 2010 From: sebastian.ovide at gmail.com (Sebastian E. Ovide) Date: Tue, 5 Oct 2010 12:26:18 +0100 Subject: [mapserver-users] lighttpd, TNS:could not resolve... In-Reply-To: References: <89615.44098.qm@web51403.mail.re2.yahoo.com> <133436.29754.qm@web51404.mail.re2.yahoo.com> <651666.6260.qm@web51402.mail.re2.yahoo.com> Message-ID: I've also add a script that prints the variables and TNS_ADMIN is there... USERNAME=root LANG=en_US.UTF-8 SUDO_GID=1001 SHELL=/bin/bash SUDO_COMMAND=/etc/init.d/lighttpd restart ORACLE_HOME=/home/gis/libs/instantclient_11_2/ SUDO_UID=1001 TERM=xterm PHP_FCGI_CHILDREN=1 PATH=/sbin:/bin:/usr/sbin:/usr/bin PWD=/home/gis/conf LOGNAME=root USER=root HOME=/home/gis MAIL=/var/mail/gis SUDO_USER=gis LS_COLORS=rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.dz=01;31:*.gz=01;31:*.lz=01;31:*.xz=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.rar=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.jpg=01;35:*.jpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.axv=01;35:*.anx=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.axa=00;36:*.oga=00;36:*.spx=00;36:*.xspf=00;36: LD_LIBRARY_PATH=/home/gis/libs/instantclient_11_2/ TNS_ADMIN=/home/gis/conf/ any other ideas ? On Thu, Sep 30, 2010 at 3:09 PM, Sebastian E. Ovide < sebastian.ovide at gmail.com> wrote: > done. (restarted server etc...) > > exactly the same problem... > > > > > > On Thu, Sep 30, 2010 at 2:51 PM, Dan Little wrote: > >> I was starting to suspect MapServer is just no seeing the environment >> variables... >> >> Try this... write a wrapper script "mapserv.sh" >> >> #!/bin/bash >> >> TNS_ADMIN=/home/gis/conf >> >> /home/gis/bin/mapserv >> >> Then update your script to point to "mapserv.sh". >> >> >> >> >> *From:* Sebastian E. Ovide >> *To:* Dan Little >> *Cc:* Rahkonen Jukka ; >> mapserver-users at lists.osgeo.org >> *Sent:* Thu, September 30, 2010 8:01:22 AM >> >> *Subject:* Re: [mapserver-users] lighttpd, TNS:could not resolve... >> >> on the same machine, with the same data and same tns file it works fine >> with APACHE.... the problems is only with LIGHTTPD... it looks like "TNS_ADMIN" >> => "/home/gis/conf/" is ignored (in apache I've used SetEnv and PassEnv >> >> ??? >> >> On Thu, Sep 30, 2010 at 12:22 PM, Dan Little wrote: >> >>> Does shp2img work with your Mapfile? >>> >>> >>> *From:* Sebastian E. Ovide >>> *To:* Rahkonen Jukka >>> *Cc:* mapserver-users at lists.osgeo.org >>> *Sent:* Thu, September 30, 2010 4:47:30 AM >>> *Subject:* Re: [mapserver-users] lighttpd, TNS:could not resolve... >>> >>> the message says: >>> >>> ORA-12154: TNS:could not resolve the connect identifier specified in >>> >>> >>> so... does mean that gdal didn't get any name for the >>> connection ? >>> >>> >>> >>> On Thu, Sep 30, 2010 at 9:54 AM, Sebastian E. Ovide < >>> sebastian.ovide at gmail.com> wrote: >>> >>>> no luck... >>>> >>>> renamed servicename to capital.. so now connection name==service name... >>>> >>>> same problem... ogrinfo works, mapserver doesn't.... >>>> >>>> >>>> On Thu, Sep 30, 2010 at 9:37 AM, Rahkonen Jukka < >>>> Jukka.Rahkonen at mmmtike.fi> wrote: >>>> >>>>> Hi, >>>>> >>>>> For me, sometimes with some Oracle user name from some computers >>>>> SQL*Plus does not understand if I am using the SERVICE_NAME. It you happen >>>>> to have the same situation you should be able to connect with the connection >>>>> name, which seems to be MFUATDB for you. >>>>> >>>>> Actually, the error message "TNS:could not resolve the connect >>>>> identifier specified" may mean that you should not use service name but the >>>>> connect identifier. Have a try and tell how it went. >>>>> >>>>> >>>>> -Jukka Rahkonen- >>>>> >>>>> >>>>> ------------------------------ >>>>> *L?hett?j?:* mapserver-users-bounces at lists.osgeo.org [mailto: >>>>> mapserver-users-bounces at lists.osgeo.org] *Puolesta *Sebastian E. Ovide >>>>> *L?hetetty:* 30. syyskuuta 2010 11:15 >>>>> *Vastaanottaja:* Dan Little >>>>> *Kopio:* mapserver-users at lists.osgeo.org >>>>> *Aihe:* Re: [mapserver-users] lighttpd, TNS:could not resolve... >>>>> >>>>> yes. >>>>> >>>>> >>>>> gis at mapserver:~$ ls -la /home/gis/conf/tnsnames.ora >>>>> -rw-r--r-- 1 gis gis 184 2010-09-29 16:19 /home/gis/conf/tnsnames.ora >>>>> gis at mapserver:~$ sudo su www-data -c 'cat /home/gis/conf/tnsnames.ora' >>>>> MFUATDB = >>>>> (DESCRIPTION = >>>>> (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.60.70)(PORT = 1521)) >>>>> (CONNECT_DATA = >>>>> (SERVER = DEDICATED) >>>>> (SERVICE_NAME = mfuatdb) >>>>> ) >>>>> ) >>>>> >>>>> >>>>> On Wed, Sep 29, 2010 at 7:58 PM, Dan Little wrote: >>>>> >>>>>> Is tnsnames.ora accessible by the web-server user? (Check the >>>>>> permissions.) >>>>>> >>>>>> Is t >>>>>> *From:* Sebastian E. Ovide >>>>>> *To:* mapserver-users at lists.osgeo.org >>>>>> *Sent:* Wed, September 29, 2010 11:10:09 AM >>>>>> *Subject:* [mapserver-users] lighttpd, TNS:could not resolve... >>>>>> >>>>>> Hi All, >>>>>> >>>>>> I have installed MapServer on lighttpd + fastcgi. >>>>>> >>>>>> fastcgi.server = ( >>>>>> "/mapserver" => >>>>>> ( "localhost" => >>>>>> ( >>>>>> "socket" => "/tmp/mapserver-fastcgi.socket", >>>>>> "bin-path" => "/home/gis/bin/mapserv", >>>>>> "bin-environment" => >>>>>> ( >>>>>> "TNS_ADMIN" => "/home/gis/conf/" >>>>>> ), >>>>>> "max-procs" => 2, >>>>>> "check-local" => "disable" >>>>>> ) >>>>>> ) >>>>>> ) >>>>>> >>>>>> >>>>>> gis at mapserver:~$ cat /home/gis/conf/tnsnames.ora >>>>>> MFUATDB = >>>>>> (DESCRIPTION = >>>>>> (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.60.70)(PORT = 1521)) >>>>>> (CONNECT_DATA = >>>>>> (SERVER = DEDICATED) >>>>>> (SERVICE_NAME = mfuatdb) >>>>>> ) >>>>>> ) >>>>>> >>>>>> and I'm getting: >>>>>> >>>>>> msDrawMap(): Image handling error. Failed to draw layer named >>>>>> 'TESTII'. msOGRFileOpen(): OGR error. Open failed for OGR connection in >>>>>> layer `TESTII'. ORA-12154: TNS:could not resolve the connect identifier >>>>>> specified in >>>>>> >>>>>> from the logs: >>>>>> >>>>>> [Wed Sep 29 17:00:13 2010].649965 CGI Request 1 on process 1513 >>>>>> [Wed Sep 29 17:00:13 2010].717290 msOGRFileOpen(): OGR error. Open >>>>>> failed for OGR connection in layer `TESTII'. >>>>>> ORA-12154: TNS:could not resolve the connect identifier specified >>>>>> in >>>>>> >>>>>> [Wed Sep 29 17:00:13 2010].717319 msDrawMap(): Image handling error. >>>>>> Failed to draw layer named 'TESTII'. >>>>>> [Wed Sep 29 17:00:13 2010].717454 msFreeMap(): freeing map at >>>>>> 0xa00f298. >>>>>> [Wed Sep 29 17:00:13 2010].717579 freeLayer(): freeing layer at >>>>>> 0xa0237a0. >>>>>> [Wed Sep 29 17:00:13 2010].717591 freeLayer(): freeing layer at >>>>>> 0xa024718. >>>>>> >>>>>> >>>>>> in mapserver: >>>>>> >>>>>> LAYER >>>>>> NAME TESTII >>>>>> TYPE POLYGON >>>>>> STATUS ON >>>>>> CONNECTION "OCI:GEO_US_DATA/GEO_US_DATA at mfuatdb" >>>>>> CONNECTIONTYPE OGR >>>>>> DATA "CA_WILDFIRE" >>>>>> PROJECTION >>>>>> "init=epsg:3857" >>>>>> END >>>>>> CLASS >>>>>> # NAME "local_shape" >>>>>> COLOR 0 0 255 >>>>>> OUTLINECOLOR 0 0 255 >>>>>> END >>>>>> END >>>>>> >>>>>> >>>>>> >>>>>> The connection string is right as I'm using it from gdal: >>>>>> >>>>>> gis at mapserver:~$ ogrinfo OCI:GEO_US_DATA/GEO_US_DATA at mfuatdb >>>>>> :CA_WILDFIRE >>>>>> INFO: Open of `OCI:GEO_US_DATA/GEO_US_DATA at mfuatdb:CA_WILDFIRE' >>>>>> using driver `OCI' successful. >>>>>> 1: CA_WILDFIRE >>>>>> >>>>>> >>>>>> any ideas ? >>>>>> >>>>>> >>>>>> -- >>>>>> Sebastian E. Ovide >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>> >>>>> >>>>> -- >>>>> Sebastian E. Ovide >>>>> >>>>> >>>>> >>>>> >>>>> >>>> >>>> >>>> -- >>>> Sebastian E. Ovide >>>> >>>> >>>> >>>> >>>> >>> >>> >>> -- >>> Sebastian E. Ovide >>> >>> >>> >>> >>> >> >> >> -- >> Sebastian E. Ovide >> >> >> >> >> >> > > > -- > Sebastian E. Ovide > > > > > -- Sebastian E. Ovide -------------- next part -------------- An HTML attachment was scrubbed... URL: From michael.smith at usace.army.mil Tue Oct 5 04:48:40 2010 From: michael.smith at usace.army.mil (Michael Smith) Date: Tue, 05 Oct 2010 07:48:40 -0400 Subject: [mapserver-users] lighttpd, TNS:could not resolve... In-Reply-To: Message-ID: Sebastian, Instead of using TNS, you could try the EZConnect syntax of @host:port/service_name. That way you bypass even needing a TNS. Also if your port is 1521, you can just not include it and use CONNECTION ?user/pass at hostname/service_name? Mike -- Michael Smith US Army Corps of Engineers Remote Sensing/GIS Center Hanover, NH On 10/5/10 7:26 AM, "Sebastian E. Ovide" wrote: > I've also add a script that prints the variables and?TNS_ADMIN is there... > > USERNAME=root > LANG=en_US.UTF-8 > SUDO_GID=1001 > SHELL=/bin/bash > SUDO_COMMAND=/etc/init.d/lighttpd restart > ORACLE_HOME=/home/gis/libs/instantclient_11_2/ > SUDO_UID=1001 > TERM=xterm > PHP_FCGI_CHILDREN=1 > PATH=/sbin:/bin:/usr/sbin:/usr/bin > PWD=/home/gis/conf > LOGNAME=root > USER=root > HOME=/home/gis > MAIL=/var/mail/gis > SUDO_USER=gis > LS_COLORS=rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01: > cd=40;33;01:or=40;31;01:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44: > ex=01;32:*.tar=01;31:*.tgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.lzma=01 > ;31:*.tlz=01;31:*.txz=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.dz=01;31:*.gz=01 > ;31:*.lz=01;31:*.xz=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz > =01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.rar=01;31:*.ace=01;31:*.zoo=01;31 > :*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.jpg=01;35:*.jpeg=01;35:*.gif=01;35:*.bmp > =01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35 > :*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.p > cx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.ogm=01 > ;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*. > wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01 > ;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cg > m=01;35:*.emf=01;35:*.axv=01;35:*.anx=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=00;3 > 6:*.au=00;36:*.flac=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.m > pc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.axa=00;36:*.oga=00;36:*.spx=00;3 > 6:*.xspf=00;36: > LD_LIBRARY_PATH=/home/gis/libs/instantclient_11_2/ > TNS_ADMIN=/home/gis/conf/ > > any other ideas ? > > On Thu, Sep 30, 2010 at 3:09 PM, Sebastian E. Ovide > wrote: >> done. (restarted server etc...) >> >> exactly the same problem... >> >> >> >> >> >> On Thu, Sep 30, 2010 at 2:51 PM, Dan Little wrote: >>> I was starting to suspect MapServer is just no seeing the environment >>> variables... >>> >>> Try this... write a wrapper script "mapserv.sh" >>> >>> #!/bin/bash >>> >>> TNS_ADMIN=/home/gis/conf >>> >>> /home/gis/bin/mapserv >>> >>> Then update your script to point to "mapserv.sh". >>> >>> >>> >>>> >>>> From: Sebastian E. Ovide >>>> To: Dan Little >>>> Cc: Rahkonen Jukka ; >>>> mapserver-users at lists.osgeo.org >>>> Sent: Thu, September 30, 2010 8:01:22 AM >>>> >>>> Subject: Re: [mapserver-users] lighttpd, TNS:could not resolve... >>>> >>>> on the same machine, with the same data and same tns file it works fine >>>> with APACHE.... the problems is only with LIGHTTPD... it looks >>>> like?"TNS_ADMIN" => "/home/gis/conf/" is ignored (in apache I've >>>> used?SetEnv and?PassEnv >>>> >>>> ??? >>>> >>>> On Thu, Sep 30, 2010 at 12:22 PM, Dan Little wrote: >>>>> Does shp2img work with your Mapfile? >>>>>> >>>>>> From: Sebastian E. Ovide >>>>>> To: Rahkonen Jukka >>>>>> Cc: mapserver-users at lists.osgeo.org >>>>>> Sent: Thu, September 30, 2010 4:47:30 AM >>>>>> Subject: Re: [mapserver-users] lighttpd, TNS:could not resolve... >>>>>> >>>>>> the message says:? >>>>>> >>>>>> ORA-12154: TNS:could not resolve the connect identifier specified?in >>>>>> >>>>>> >>>>>> so... does mean that gdal didn't get any name for the >>>>>> connection ? >>>>>> >>>>>> >>>>>> >>>>>> On Thu, Sep 30, 2010 at 9:54 AM, Sebastian E. Ovide >>>>>> wrote: >>>>>>> no luck... >>>>>>> >>>>>>> renamed servicename to capital.. so now connection name==service name... >>>>>>> >>>>>>> same problem... ogrinfo works, mapserver doesn't.... >>>>>>> >>>>>>> >>>>>>> On Thu, Sep 30, 2010 at 9:37 AM, Rahkonen Jukka >>>>>>> wrote: Hi, ? For me, sometimes with some Oracle user name from some computers SQL*Plus does not understand if I am using the SERVICE_NAME.? It you happen to have the same situation you should be able to connect with the connection name, which seems to be MFUATDB?for you.? ? Actually, the error message "TNS:could not resolve the connect identifier specified" may mean that you should not use service name but the connect identifier.? Have a try and tell how it went. ? ? -Jukka Rahkonen-? L?hett?j?: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] Puolesta Sebastian E. Ovide L?hetetty: 30. syyskuuta 2010 11:15 Vastaanottaja: Dan Little Kopio: mapserver-users at lists.osgeo.org Aihe: Re: [mapserver-users] lighttpd, TNS:could not resolve... yes. gis at mapserver:~$ ls -la /home/gis/conf/tnsnames.ora -rw-r--r-- 1 gis gis 184 2010-09-29 16:19 /home/gis/conf/tnsnames.ora gis at mapserver:~$ sudo su www-data -c 'cat /home/gis/conf/tnsnames.ora' MFUATDB = ??(DESCRIPTION = ?? ?(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.60.70)(PORT = 1521)) ?? ?(CONNECT_DATA = ?? ? ?(SERVER = DEDICATED) ?? ? ?(SERVICE_NAME = mfuatdb) ?? ?) ??) On Wed, Sep 29, 2010 at 7:58 PM, Dan Little wrote: Is tnsnames.ora accessible by the web-server user? (Check the permissions.) Is t From: Sebastian E. Ovide To: mapserver-users at lists.osgeo.org Sent: Wed, September 29, 2010 11:10:09 AM Subject: [mapserver-users] lighttpd, TNS:could not resolve... Hi All, I have installed MapServer on lighttpd + fastcgi. fastcgi.server = ( ?? ? ? ?"/mapserver" => ?? ? ? ?( "localhost" => ?? ? ? ? ? ? ? ?( ?? ? ? ? ? ? ? ? ? ? ? ?"socket" => "/tmp/mapserver-fastcgi.socket", ?? ? ? ? ? ? ? ? ? ? ? ?"bin-path" => "/home/gis/bin/mapserv", ?? ? ? ? ? ? ? ? ? ? ? ?"bin-environment" => ?? ? ? ? ? ? ? ? ? ? ? ?( ?? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?"TNS_ADMIN" => "/home/gis/conf/" ?? ? ? ? ? ? ? ? ? ? ? ?), ?? ? ? ? ? ? ? ? ? ? ? ?"max-procs" => 2, ?? ? ? ? ? ? ? ? ? ? ? ?"check-local" => "disable" ?? ? ? ? ? ? ? ?) ?? ? ? ?) ) gis at mapserver:~$ cat /home/gis/conf/tnsnames.ora MFUATDB = ??(DESCRIPTION = ?? ?(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.60.70)(PORT = 1521)) ?? ?(CONNECT_DATA = ?? ? ?(SERVER = DEDICATED) ?? ? ?(SERVICE_NAME = mfuatdb) ?? ?) ??) and I'm getting:? msDrawMap(): Image handling error. Failed to draw layer named 'TESTII'. msOGRFileOpen(): OGR error. Open failed for OGR connection in layer `TESTII'. ORA-12154: TNS:could not resolve the connect identifier specified in from the logs: [Wed Sep 29 17:00:13 2010].649965 CGI Request 1 on process 1513 [Wed Sep 29 17:00:13 2010].717290 msOGRFileOpen(): OGR error. Open failed for OGR connection in layer `TESTII'. ORA-12154: TNS:could not resolve the connect identifier specified ?in [Wed Sep 29 17:00:13 2010].717319 msDrawMap(): Image handling error. Failed to draw layer named 'TESTII'. [Wed Sep 29 17:00:13 2010].717454 msFreeMap(): freeing map at 0xa00f298. [Wed Sep 29 17:00:13 2010].717579 freeLayer(): freeing layer at 0xa0237a0. [Wed Sep 29 17:00:13 2010].717591 freeLayer(): freeing layer at 0xa024718. in mapserver: ??LAYER ?? ?NAME TESTII ?? ?TYPE POLYGON ?? ?STATUS ON ?? ?CONNECTION "OCI:GEO_US_DATA/GEO_US_DATA at mfuatdb" ?? ?CONNECTIONTYPE OGR ?? ?DATA "CA_WILDFIRE" ?? ?PROJECTION ?? ? ?"init=epsg:3857" ?? ?END ?? ?CLASS # ? ? ?NAME "local_shape" ?? ? ?COLOR 0 0 255 ?? ? ?OUTLINECOLOR 0 0 255 ?? ?END ??END The connection string is right as I'm using it from gdal: gis at mapserver:~$ ogrinfo OCI:GEO_US_DATA/GEO_US_DATA at mfuatdb:CA_WILDFIRE INFO: Open of `OCI:GEO_US_DATA/GEO_US_DATA at mfuatdb:CA_WILDFIRE' ?? ? ?using driver `OCI' successful. 1: CA_WILDFIRE any ideas ? -------------- next part -------------- An HTML attachment was scrubbed... URL: From sebastian.ovide at gmail.com Tue Oct 5 06:07:08 2010 From: sebastian.ovide at gmail.com (Sebastian E. Ovide) Date: Tue, 5 Oct 2010 14:07:08 +0100 Subject: [mapserver-users] lighttpd, TNS:could not resolve... In-Reply-To: References: Message-ID: Bingo !.... yes, that worked... resuming: replaced TNS connection string CONNECTION "OCI:GEO_US_DATA/GEO_US_DATA at MFUATDB:CA_WILDFIRE" with EZConnect syntax CONNECTION "OCI:GEO_US_DATA/GEO_US_DATA at 192.168.60.70/MFUATDB:CA_WILDFIRE" where the tnsnames.ora is MFUATDB = (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.60.70)(PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = MFUATDB) ) ) Thanks On Tue, Oct 5, 2010 at 12:48 PM, Michael Smith wrote: > Sebastian, > > Instead of using TNS, you could try the EZConnect syntax of > @host:port/service_name. That way you bypass even needing a TNS. Also if > your port is 1521, you can just not include it and use > > CONNECTION ?user/pass at hostname/service_name? > > Mike > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ibrahimsaricicek at gmail.com Tue Oct 5 06:08:15 2010 From: ibrahimsaricicek at gmail.com (Ibrahim Saricicek) Date: Tue, 5 Oct 2010 06:08:15 -0700 (PDT) Subject: [mapserver-users] Expressions Message-ID: <1286284095671-5603053.post@n2.nabble.com> Hi List; instead of an sql ,in the connection string including 'LIKE'; (select id, name,the_geom from public.mytable where name like '%xyz%') I would like to use an expression. But documents say "The following logical operators are supported: =,>,<,<=,>=,=,or,and,lt,gt,ge,le,eq,ne" How can I use something like this? CLASS EXPRESSION ([name] like '%xyz%') Thanks in Advance... -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Expressions-tp5603053p5603053.html Sent from the Mapserver - User mailing list archive at Nabble.com. From aboudreault at mapgears.com Tue Oct 5 06:08:45 2010 From: aboudreault at mapgears.com (Alan Boudreault) Date: Tue, 5 Oct 2010 09:08:45 -0400 Subject: [mapserver-users] MapServer Resolution - how to set the parameter dynamically In-Reply-To: <31255.87.79.91.105.1286264467.squirrel@troubadix.wheregroup.com> References: <31255.87.79.91.105.1286264467.squirrel@troubadix.wheregroup.com> Message-ID: <201010050908.46048.aboudreault@mapgears.com> You can change the resolution in the url with that parameter: &map_resolution=x regards, Alan On October 5, 2010 03:41:07 am Astrid Emde wrote: > Hello list, > > I tested the new Parameter > > RESOLUTION > DEFRESOLUTION > > With these Paramter I can produce a nice map for print output [1]. > > It would be nice to set the Paramter RESOLUTION parameter directly in the > MapRequest like &RESOLUTION=288. If not set here the default from the > Mapfile could be used. > What do you think about this idea? Do you have discussed this already? > > Alternatively I tried to set a variable wit MapServer variable > substitution [2] like: > > RESOLUTION %resolution% > > But this caused a MapServer error. > > If someone has already a solution to set the resolution dynamically > (without MapScript) please let me know. > > Astrid Emde > > [1] http://mapserver.org/development/rfc/ms-rfc-55.html > [2] http://mapserver.org/mapfile/variable_sub.html > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Alan Boudreault Mapgears http://www.mapgears.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From Clement.MONIER at v-trafic.com Tue Oct 5 09:23:23 2010 From: Clement.MONIER at v-trafic.com (=?iso-8859-1?Q?Cl=E9ment_MONIER?=) Date: Tue, 5 Oct 2010 18:23:23 +0200 Subject: [mapserver-users] Transparent background Message-ID: <0B6D7F516315594DBEFE58178D91BD32017863321925@exchangemm.mm.fr> Hi, I'm trying to get a PNG without a transparent background. Every "transparent" entry is turned to "off" inside my mapfile (attached) http://localhost/cgi-bin/mapserv.exe?MAP=/ms4w/apps/gmap/htdocs/test_background.map&SERVICE=WMS&REQUEST=GetMap&VERSION=1.3.0&STYLES=&FORMAT=PNG8&CRS=EPSG:4326&BBOX=45,8,50,15&WIDTH=320&HEIGHT=320&LAYERS=test&BGCOLOR=0xFF0000&TRANSPARENT=False but I'm still getting a map with a transparent background !! Thanks for your help Kind regards Cl?ment Ps : running MS4W (MS v.6.3) -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: data.rar Type: application/octet-stream Size: 2853 bytes Desc: data.rar URL: -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: test_background.map URL: From thomas.bonfort at gmail.com Tue Oct 5 09:29:21 2010 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Tue, 5 Oct 2010 18:29:21 +0200 Subject: [mapserver-users] Transparent background In-Reply-To: <0B6D7F516315594DBEFE58178D91BD32017863321925@exchangemm.mm.fr> References: <0B6D7F516315594DBEFE58178D91BD32017863321925@exchangemm.mm.fr> Message-ID: try setting your imagemodes to RGB instead of RGBA. -- thomas On Tue, Oct 5, 2010 at 18:23, Cl?ment MONIER wrote: > Hi, > > > > I?m trying to get a PNG without a transparent background. > > > > Every ?transparent? entry is turned to ?off? inside my mapfile (attached) > > > > http://localhost/cgi-bin/mapserv.exe?MAP=/ms4w/apps/gmap/htdocs/test_background.map&SERVICE=WMS&REQUEST=GetMap&VERSION=1.3.0&STYLES=&FORMAT=PNG8&CRS=EPSG:4326&BBOX=45,8,50,15&WIDTH=320&HEIGHT=320&LAYERS=test&BGCOLOR=0xFF0000&TRANSPARENT=False > > but I?m still getting a map with a transparent background !! > > > > Thanks for your help > > > > Kind regards > > > > Cl?ment > > > > Ps?: running MS4W (MS v.6.3) > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > From Clement.MONIER at v-trafic.com Tue Oct 5 09:32:10 2010 From: Clement.MONIER at v-trafic.com (=?utf-8?B?Q2zDqW1lbnQgTU9OSUVS?=) Date: Tue, 5 Oct 2010 18:32:10 +0200 Subject: [mapserver-users] Transparent background In-Reply-To: References: <0B6D7F516315594DBEFE58178D91BD32017863321925@exchangemm.mm.fr> Message-ID: <0B6D7F516315594DBEFE58178D91BD32017863321928@exchangemm.mm.fr> Thanks for your help, Thomas ! -----Message d'origine----- De?: thomas bonfort [mailto:thomas.bonfort at gmail.com] Envoy??: mardi 5 octobre 2010 18:29 ??: Cl?ment MONIER Cc?: mapserver-users at lists.osgeo.org Objet?: Re: [mapserver-users] Transparent background try setting your imagemodes to RGB instead of RGBA. -- thomas On Tue, Oct 5, 2010 at 18:23, Cl?ment MONIER wrote: > Hi, > > > > I?m trying to get a PNG without a transparent background. > > > > Every ?transparent? entry is turned to ?off? inside my mapfile (attached) > > > > http://localhost/cgi-bin/mapserv.exe?MAP=/ms4w/apps/gmap/htdocs/test_background.map&SERVICE=WMS&REQUEST=GetMap&VERSION=1.3.0&STYLES=&FORMAT=PNG8&CRS=EPSG:4326&BBOX=45,8,50,15&WIDTH=320&HEIGHT=320&LAYERS=test&BGCOLOR=0xFF0000&TRANSPARENT=False > > but I?m still getting a map with a transparent background !! > > > > Thanks for your help > > > > Kind regards > > > > Cl?ment > > > > Ps?: running MS4W (MS v.6.3) > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > From Steve.Lime at state.mn.us Tue Oct 5 10:08:21 2010 From: Steve.Lime at state.mn.us (Lime, Steve D (DNR)) Date: Tue, 5 Oct 2010 12:08:21 -0500 Subject: [mapserver-users] Expressions In-Reply-To: <1286284095671-5603053.post@n2.nabble.com> References: <1286284095671-5603053.post@n2.nabble.com> Message-ID: You can use regular expressions instead. E.g. Classitem 'name' Class Expression /xyz/ End Steve ________________________________________ From: mapserver-users-bounces at lists.osgeo.org [mapserver-users-bounces at lists.osgeo.org] On Behalf Of Ibrahim Saricicek [ibrahimsaricicek at gmail.com] Sent: Tuesday, October 05, 2010 8:08 AM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] Expressions Hi List; instead of an sql ,in the connection string including 'LIKE'; (select id, name,the_geom from public.mytable where name like '%xyz%') I would like to use an expression. But documents say "The following logical operators are supported: =,>,<,<=,>=,=,or,and,lt,gt,ge,le,eq,ne" How can I use something like this? CLASS EXPRESSION ([name] like '%xyz%') Thanks in Advance... -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Expressions-tp5603053p5603053.html Sent from the Mapserver - User mailing list archive at Nabble.com. _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From ibrahimsaricicek at gmail.com Wed Oct 6 01:29:53 2010 From: ibrahimsaricicek at gmail.com (ibrahim saricicek) Date: Wed, 6 Oct 2010 11:29:53 +0300 Subject: [mapserver-users] Expressions In-Reply-To: References: <1286284095671-5603053.post@n2.nabble.com> Message-ID: Hi List, Thanks, that works. But *this doesn't* and I need something like in the Class definitions below. What should I do in this condition? Is it about this; http://trac.osgeo.org/mapserver/ticket/2817 Using ms4w 5.4.0-rc2. CLASSITEM "name" CLASS EXPRESSION ([id] = 5) MAXSCALEDENOM 4000 MINSCALEDENOM 1000 NAME "1" STYLE COLOR [color2] END STYLE OUTLINECOLOR 20 20 20 WIDTH 3 END END CLASS EXPRESSION /xyz/ NAME "2" STYLE OUTLINECOLOR 0 0 0 WIDTH 20 END END *OR* #CLASSITEM 'name' # Without CLASSITEM definition CLASS EXPRESSION ('[name]' eq /xyz/ AND [id] = 5) NAME "GID_S" STYLE OUTLINECOLOR 0 0 0 WIDTH 20 END END On Tue, Oct 5, 2010 at 8:08 PM, Lime, Steve D (DNR) wrote: > You can use regular expressions instead. E.g. > > Classitem 'name' > Class > Expression /xyz/ > End > > Steve > > ________________________________________ > From: mapserver-users-bounces at lists.osgeo.org [ > mapserver-users-bounces at lists.osgeo.org] On Behalf Of Ibrahim Saricicek [ > ibrahimsaricicek at gmail.com] > Sent: Tuesday, October 05, 2010 8:08 AM > To: mapserver-users at lists.osgeo.org > Subject: [mapserver-users] Expressions > > Hi List; > > instead of an sql ,in the connection string including 'LIKE'; > (select id, name,the_geom from public.mytable where name like '%xyz%') > I would like to use an expression. > But documents say "The following logical operators are supported: > =,>,<,<=,>=,=,or,and,lt,gt,ge,le,eq,ne" > > How can I use something like this? > CLASS > EXPRESSION ([name] like '%xyz%') > > Thanks in Advance... > -- > View this message in context: > http://osgeo-org.1803224.n2.nabble.com/Expressions-tp5603053p5603053.html > Sent from the Mapserver - User mailing list archive at Nabble.com. > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From dbee_kawai at yahoo.com Wed Oct 6 06:19:59 2010 From: dbee_kawai at yahoo.com (elisabeth theresia) Date: Wed, 6 Oct 2010 06:19:59 -0700 (PDT) Subject: [mapserver-users] How to display Labels from 1 table? Message-ID: <998045.48308.qm@web58008.mail.re3.yahoo.com> Hello Mapserver experts, I have question in my mind, How to display Labels from 1 table in my database (Postgre + Postgis)? in this table there are fields of : name_region, values_1, values_2, How to appear them? Could Mapserver make it? I ask this question, because I want to show the difference values_1 between values_2 in my Bar Chart :) if i do this (code in the bottom) then just appear values_2 in the map :) ? LAYER STATUS DEFAULT TYPE ANNOTATION CONNECTIONTYPE POSTGIS CONNECTION "user=x password=x dbname=mydb host=host port=5432" DATA "the_geom FROM tb_region USING UNIQUE code_region" LABELITEM "name_region" CLASS LABEL COLOR 0 0 0 TYPE Truetype FONT Arial SIZE 11 MINSIZE 8 ANGLE Auto POSITION UC ANTIALIAS True END # LABEL END #CLASS LABELITEM "values_1" CLASS LABEL COLOR 255 255 255 TYPE Truetype FONT Arial SIZE 9 MINSIZE 8 ANGLE Auto POSITION UC ANTIALIAS True END # LABEL END #CLASS LABELITEM "values_2" CLASS LABEL COLOR 255 255 255 TYPE Truetype FONT Arial SIZE 9 MINSIZE 8 ANGLE Auto POSITION UC ANTIALIAS True END # LABEL END #CLASS END #LAYER Thanks really appreciate yours, -Theresia :) -------------- next part -------------- An HTML attachment was scrubbed... URL: From mschulz at webgis.de Wed Oct 6 06:45:30 2010 From: mschulz at webgis.de (Michael Schulz) Date: Wed, 6 Oct 2010 15:45:30 +0200 Subject: [mapserver-users] How to display Labels from 1 table? In-Reply-To: <998045.48308.qm@web58008.mail.re3.yahoo.com> References: <998045.48308.qm@web58008.mail.re3.yahoo.com> Message-ID: Hi Theresia, you can do it via the TEXT keyword in the CLASS section of a layer: http://www.mapserver.org/mapfile/class.html e.g. like this: ? ??? CLASS ??? ??? LABEL ??? ??? COLOR 0 0 0 ? ?? ??? TYPE Truetype ??? ??? FONT Arial ??? ??? SIZE 11 ??? ? ?? MINSIZE 8 ??? ?? ? ANGLE Auto ??? ?? ? POSITION UC ??? ?? ? ANTIALIAS True WRAP "|" ? ?? ? END # LABEL TEXT ([name_region]|[values_1] - [values_2]) ??? END #CLASS This will label the features with the values of the tree fields in this form: name_region values_1 - values_2 You can request the line break with the WRAP keyword. In recent mapbender versions there are also keywords to control label alignment. Cheers, Michael 2010/10/6 elisabeth theresia : > Hello Mapserver experts, > > I have question in my mind, How to display Labels from 1 table in my > database (Postgre + Postgis)? > in this table there are fields of : name_region, values_1, values_2, How to > appear them? Could Mapserver make it? > I ask this question, because I want to show the difference values_1 between > values_2 in my Bar Chart :) > > if i do this (code in the bottom) then just appear values_2 in the map :) ? > > LAYER > STATUS DEFAULT > ??? TYPE ANNOTATION > ??? CONNECTIONTYPE POSTGIS > ??? CONNECTION "user=x password=x dbname=mydb host=host port=5432" > ??? DATA "the_geom FROM tb_region USING UNIQUE code_region" > > ??? LABELITEM "name_region" > ??? ??? CLASS > ??? ??? LABEL > ??? ??? COLOR 0 0 0 > ??? ??? TYPE Truetype > ??? ??? FONT Arial > ??? ??? SIZE 11 > ??? ??? MINSIZE 8 > ??? ??? ANGLE Auto > ??? ??? POSITION UC > ??? ??? ANTIALIAS True > ??? ??? END # LABEL > ??? END #CLASS > > ??? LABELITEM "values_1" > ??? ??? CLASS > ??? ??? LABEL > ??? ??? COLOR 255 255 255 > ??? ??? TYPE Truetype > ??? ??? FONT Arial > ??? ??? SIZE 9 > ??? ??? MINSIZE 8 > ??? ??? ANGLE Auto > ??? ??? POSITION UC > ??? ??? ANTIALIAS True > ??? ??? END # LABEL > ??? END #CLASS > > LABELITEM "values_2" > ??? ??? CLASS > ??? ??? LABEL > ??? ??? COLOR 255 255 255 > ??? ??? TYPE Truetype > ??? ??? FONT Arial > ??? ??? SIZE 9 > ??? ??? MINSIZE 8 > ??? ??? ANGLE Auto > ??? ??? POSITION UC > ??? ??? ANTIALIAS True > ??? ??? END # LABEL > ??? END #CLASS > END #LAYER > > Thanks really appreciate yours, > > -Theresia :) > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Treffen Sie uns auf der INTERGEO 05.10. - 07.10.2010 in K?ln Halle: 11.2 Stand-Nr: 2C.121 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ----------------------------------------------------------- Michael Schulz mschulz at webgis.de in medias res Gesellschaft f?r Informationstechnologie mbH Schwimmbadstra?e 2 D-79100? Freiburg i. Br. Tel:? +49 (0)761 705798-102 Tel:? +49 (0)761 705798-0 Fax: +49 (0)761 705798-09 http://www.webgis.de / http://www.zopecms.de -------------------------------------------------------------- Gesch?ftsf?hrer: Stefan Giese, Dr. Christof Lindenbeck Eingetragen im Handelsregister HRB 5930 beim Amtsgericht Freiburg From daniel.teske at web.de Wed Oct 6 07:46:05 2010 From: daniel.teske at web.de (teeschke) Date: Wed, 6 Oct 2010 07:46:05 -0700 (PDT) Subject: [mapserver-users] mapserver and i18n Message-ID: <1286376365554-5607348.post@n2.nabble.com> Hi List, does anybody managed the internationalization with UMN? Currently we have the racy idea to provide one mapfile for each language. The differences are clear: - title of the map - title of the layers - name of the classes. - every gml_SOMEATTRIBUTE_alias CartoMap seems to support i18n with complex configuration, but i never tried this out. http://www.cartoweb.org/doc/cw3.5/xhtml/user.layers.html http://www.cartoweb.org/doc/cw3.5/xhtml/intro.archi.html Thanks a lot and regards, Daniel -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/mapserver-and-i18n-tp5607348p5607348.html Sent from the Mapserver - User mailing list archive at Nabble.com. From jmckenna at gatewaygeomatics.com Wed Oct 6 07:53:13 2010 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Wed, 06 Oct 2010 11:53:13 -0300 Subject: [mapserver-users] mapserver and i18n In-Reply-To: <1286376365554-5607348.post@n2.nabble.com> References: <1286376365554-5607348.post@n2.nabble.com> Message-ID: <4CAC8D59.7010004@gatewaygeomatics.com> On 10-10-06 11:46 AM, teeschke wrote: > > Hi List, > > does anybody managed the internationalization with UMN? > Currently we have the racy idea to provide one mapfile for each language. > The differences are clear: > - title of the map > - title of the layers > - name of the classes. > - every gml_SOMEATTRIBUTE_alias > > CartoMap seems to support i18n with complex configuration, but i never tried > this out. > http://www.cartoweb.org/doc/cw3.5/xhtml/user.layers.html > http://www.cartoweb.org/doc/cw3.5/xhtml/intro.archi.html Hello Daniel, Yes, in fact last month I revived the old documentation for the website (http://www.mapserver.org/mapfile/labelencoding.html) and successfully tested MapServer 5.6 with Japanese and Arabic characters - see my examples in that document. If you would like additions to that document, please file a new ticket in the MapServer issue tracker (http://trac.osgeo.org/mapserver/) under the "MapServer Documentation" component. Or if you feel like sharing your own examples with everyone, please create a wiki page at the bottom of http://trac.osgeo.org/mapserver/ and place your mapfiles and instructions there. Thanks! -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ From daniel.teske at web.de Wed Oct 6 08:07:08 2010 From: daniel.teske at web.de (teeschke) Date: Wed, 6 Oct 2010 08:07:08 -0700 (PDT) Subject: [mapserver-users] Re: mapserver and i18n In-Reply-To: <4CAC8D59.7010004@gatewaygeomatics.com> References: <1286376365554-5607348.post@n2.nabble.com> <4CAC8D59.7010004@gatewaygeomatics.com> Message-ID: <1286377628379-5607433.post@n2.nabble.com> Hi Jeff, Thanks a lot, but I don't mean the support of caracter encoding. I want to publish the same map in different languages. I mean the technology to publish the same content in multiple languages. E.g. an american user would see the layers named "highways" and "railways" but a user from france will get the layers named "autoroute" and "chemins de fer" - with using the same shapefile. regards, Daniel -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/mapserver-and-i18n-tp5607348p5607433.html Sent from the Mapserver - User mailing list archive at Nabble.com. From sebastian.ovide at gmail.com Wed Oct 6 08:06:59 2010 From: sebastian.ovide at gmail.com (Sebastian E. Ovide) Date: Wed, 6 Oct 2010 16:06:59 +0100 Subject: [mapserver-users] doubt about mapserver URL: coordinate system Message-ID: Hi List I'm using OpenLayers + MapServer. With Firebug I see that OpenLayers calls MapServer with ULRs like this: http://mapserver/mapserver?layers=NAFRA_2008_final map=/home/gis/conf/mapserver/uk.map mode=map map_imagetype=png mapext=-374388.56527373+7296678.7179959+-374312.12824546+7296755.1550241 imgext=-374388.56527373+7296678.7179959+-374312.12824546+7296755.1550241 map_size=256+256 imgx=128 imgy=128 imgxy=256+256 Just trying to understand the coordinate system used by mapext and imgext. ( it is different from than that used to call Google servers: http://mt0.google.com/vt/lyrs=m at 133&hl=en&src=api&x=257246&y=166679&z=19&s=G ) Is it possible to use a different coordinate system ? say for example the same coordinate system specified in the LAYER (in my case epsg:27700) thanks -- Sebastian E. Ovide -------------- next part -------------- An HTML attachment was scrubbed... URL: From sebastian.ovide at gmail.com Wed Oct 6 08:14:12 2010 From: sebastian.ovide at gmail.com (Sebastian E. Ovide) Date: Wed, 6 Oct 2010 16:14:12 +0100 Subject: [mapserver-users] GetFeatureInfo over OGR OCI Layer In-Reply-To: <224DBDAF88A6AC47BD22432815351BE0082DD744@nekaposta1> References: <224DBDAF88A6AC47BD22432815351BE0082DD744@nekaposta1> Message-ID: does ogrinfo OCI:admcarto/admcarto at ORA10GEX GV_SIGPAC_REC_ED50 work ? On Fri, Oct 1, 2010 at 12:25 PM, David Alda Fernandez de Lezea wrote: > Hi list, > > I'm trying to execute a GetFeatureInfo request over an Oracle layer via > OGR. I can view the content of the layer, but when I make the request I > don't get any result. I mean, I receive an empty GML. My layer config: > > LAYER > STATUS ON > CONNECTION "OCI:admcarto/admcarto at ORA10GEX" > CONNECTIONTYPE OGR > DATA "GV_SIGPAC_REC_ED50" #todo el sigpac > NAME "RecintosSigpacOGR" > PROJECTION > "init=epsg:23030" > END > DUMP TRUE > TYPE POLYGON > METADATA > "wms_title" "Recintos Sigpac > 2009" > "wms_srs" "EPSG:23030" > "wms_name" "RecintosSigpacOGR" > "wms_server_version" "1.1.1" > "wms_format" "image/gif" > "wms_transparent" "true" > "wms_extent" "460000 4690000 610000 > 4820000" > "wms_include_items" "all" > "gml_include_items" "all" > END > MAXSCALE 10000 > > TEMPLATE "ms_template.html" > PROCESSING "LABEL_NO_CLIP=ON" > PROCESSING "CLOSE_CONNECTION=DEFER" > SYMBOLSCALE 5000 > > #Simbologia > CLASSGROUP "Simbologia_Recintos" > CLASS > TEXT ([PARCELA]:[RECINTO]) > STYLE > OUTLINECOLOR 0 234 0 > END > LABEL > COLOR 254 254 255 > OUTLINECOLOR 0 0 0 > TYPE truetype > FONT "sans" > SIZE 6 > POSITION cc > PARTIALS TRUE > END > NAME "RecintosSigPac" > GROUP "Referencia_Sigpac" > END > > CLASS > STYLE > OUTLINECOLOR 0 234 0 > WIDTH 1 > END > NAME "RecintosSigPac" > GROUP "Predeterminado" > END > > END > > Resultant file > > > > xmlns:gml="http://www.opengis.net/gml" > xmlns:xlink="http://www.w3.org/1999/xlink" > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> > > > Any ideas? Something wrong configured? > > Thanks. > > > Un saludo, > > > ?????????????????????????????????????????????????????????????????????????????????? > > David Alda Fern?ndez de Lezea > Lurralde eta Biodibertsitate Saila / Dpto. de Territorio y Biodiversidad > > IKT > Granja Modelo s/n ? 01192 ? Arkaute (Araba) > > > ?????????????????????????????????????????????????????????????????????????????????? > Tlfnos.: 945-00-32-95 Fax: 945-00.32.90 > > ?????????????????????????????????????????????????????????????????????????????????? > email: dalda at ikt.es web: www.ikt.es > > ?????????????????????????????????????????????????????????????????????????????????? > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -- Sebastian E. Ovide -------------- next part -------------- An HTML attachment was scrubbed... URL: From richard.greenwood at gmail.com Wed Oct 6 08:19:56 2010 From: richard.greenwood at gmail.com (Richard Greenwood) Date: Wed, 6 Oct 2010 09:19:56 -0600 Subject: [mapserver-users] mapserv 5.6 faults on Windows Server 2003 Message-ID: I'm getting a whole bunch of faults on a Windows 2003 server. The Event Viewer reports: faulting application mapserv.exe, version 0.0.0.0, faulting module libmap.dll, version 0.0.0.0, fault address 0x0002deaa. I'm running a plain vanilla ms4w_3.0_beta11. Tried both 5.6.3 and 5.6.5. It started when I upgraded the server from MS 5.2 to 5.6. I can find the CGI request in the Apache log that caused the fault, but when I paste the same request into a browser and run it again it doesn't produce the fault. So it's not reproducible. Any thoughts? Thanks, Rich -- Richard Greenwood richard.greenwood at gmail.com www.greenwoodmap.com From dbee_kawai at yahoo.com Wed Oct 6 08:48:00 2010 From: dbee_kawai at yahoo.com (elisabeth theresia) Date: Wed, 6 Oct 2010 08:48:00 -0700 (PDT) Subject: [mapserver-users] How to display Labels from 1 table? In-Reply-To: References: <998045.48308.qm@web58008.mail.re3.yahoo.com> Message-ID: <215307.89339.qm@web58004.mail.re3.yahoo.com> Hi Mr. Michael, Thanks for replying, i already did what you suggested to me and i delete my layer about LABELITEMS (my coding in the bottom), but there's no labels appear in my map yet, why? then when i write like this: (coding) there was an error message : getString(): Symbol definition error. Parsing error near ([name_region]|[value_1]-[value_2]) here the coding: LAYER NAME "Annotation of Region" TYPE ANNOTATION STATUS DEFAULT FEATURE TEXT ([name_region]|[value_1]-[value_2]) END #FEATURE CLASS LABEL COLOR 0 0 0 TYPE Truetype FONT Arial SIZE 11 MINSIZE 8 ANGLE Auto POSITION UC ANTIALIAS True WRAP "|" END #LABEL END #CLASS END #LAYER Thanks for the attention :) -Theresia ________________________________ rFrom: Michael Schulz To: elisabeth theresia Cc: mapserv forumlist Sent: Wed, October 6, 2010 6:45:30 AM Subject: Re: [mapserver-users] How to display Labels from 1 table? Hi Theresia, you can do it via the TEXT keyword in the CLASS section of a layer: http://www.mapserver.org/mapfile/class.html e.g. like this: CLASS LABEL COLOR 0 0 0 TYPE Truetype FONT Arial SIZE 11 MINSIZE 8 ANGLE Auto POSITION UC ANTIALIAS True WRAP "|" END # LABEL TEXT ([name_region]|[values_1] - [values_2]) END #CLASS This will label the features with the values of the tree fields in this form: name_region values_1 - values_2 You can request the line break with the WRAP keyword. In recent mapbender versions there are also keywords to control label alignment. Cheers, Michael 2010/10/6 elisabeth theresia : > Hello Mapserver experts, > > I have question in my mind, How to display Labels from 1 table in my > database (Postgre + Postgis)? > in this table there are fields of : name_region, values_1, values_2, How to > appear them? Could Mapserver make it? > I ask this question, because I want to show the difference values_1 between > values_2 in my Bar Chart :) > > if i do this (code in the bottom) then just appear values_2 in the map :) ? > > LAYER > STATUS DEFAULT > TYPE ANNOTATION > CONNECTIONTYPE POSTGIS > CONNECTION "user=x password=x dbname=mydb host=host port=5432" > DATA "the_geom FROM tb_region USING UNIQUE code_region" > > LABELITEM "name_region" > CLASS > LABEL > COLOR 0 0 0 > TYPE Truetype > FONT Arial > SIZE 11 > MINSIZE 8 > ANGLE Auto > POSITION UC > ANTIALIAS True > END # LABEL > END #CLASS > > LABELITEM "values_1" > CLASS > LABEL > COLOR 255 255 255 > TYPE Truetype > FONT Arial > SIZE 9 > MINSIZE 8 > ANGLE Auto > POSITION UC > ANTIALIAS True > END # LABEL > END #CLASS > > LABELITEM "values_2" > CLASS > LABEL > COLOR 255 255 255 > TYPE Truetype > FONT Arial > SIZE 9 > MINSIZE 8 > ANGLE Auto > POSITION UC > ANTIALIAS True > END # LABEL > END #CLASS > END #LAYER > > Thanks really appreciate yours, > > -Theresia :) > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Treffen Sie uns auf der INTERGEO 05.10. - 07.10.2010 in K?ln Halle: 11.2 Stand-Nr: 2C.121 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ----------------------------------------------------------- Michael Schulz mschulz at webgis.de in medias res Gesellschaft f?r Informationstechnologie mbH Schwimmbadstra?e 2 D-79100 Freiburg i. Br. Tel: +49 (0)761 705798-102 Tel: +49 (0)761 705798-0 Fax: +49 (0)761 705798-09 http://www.webgis.de / http://www.zopecms.de -------------------------------------------------------------- Gesch?ftsf?hrer: Stefan Giese, Dr. Christof Lindenbeck Eingetragen im Handelsregister HRB 5930 beim Amtsgericht Freiburg -------------- next part -------------- An HTML attachment was scrubbed... URL: From woodbri at swoodbridge.com Wed Oct 6 09:46:22 2010 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Wed, 06 Oct 2010 12:46:22 -0400 Subject: [mapserver-users] Re: mapserver and i18n In-Reply-To: <1286377628379-5607433.post@n2.nabble.com> References: <1286376365554-5607348.post@n2.nabble.com> <4CAC8D59.7010004@gatewaygeomatics.com> <1286377628379-5607433.post@n2.nabble.com> Message-ID: <4CACA7DE.500@swoodbridge.com> On 10/6/2010 11:07 AM, teeschke wrote: > > Hi Jeff, > > Thanks a lot, but I don't mean the support of caracter encoding. > > I want to publish the same map in different languages. > I mean the technology to publish the same content in multiple languages. > E.g. an american user would see the layers named "highways" and "railways" > but a user from france will get the layers named "autoroute" and "chemins de > fer" - with using the same shapefile. > > regards, Daniel Daniel, I think this has more to do with the client software than directly with mapserver on the server side. The layer names are not really exposed to the user except possible in part of the UI that might have a control to turn on/off a layer. At that point the client side should be doing the translation of the displayed names to the mapserver layer names. Along this line of thinking, I think it would be interesting if mapserver could detect the client language preferences and that could be made available for selecting which attribute columns are used for labeling. I have done this with a control in the client to select the language then made changes in my requests to the server to request a different mapfile based on language. Regards, -Steve W From bartvde at osgis.nl Wed Oct 6 09:54:50 2010 From: bartvde at osgis.nl (Bart van den Eijnden) Date: Wed, 6 Oct 2010 18:54:50 +0200 Subject: [mapserver-users] Re: mapserver and i18n In-Reply-To: <4CACA7DE.500@swoodbridge.com> References: <1286376365554-5607348.post@n2.nabble.com> <4CAC8D59.7010004@gatewaygeomatics.com> <1286377628379-5607433.post@n2.nabble.com> <4CACA7DE.500@swoodbridge.com> Message-ID: <329C71D0-36A1-4CB7-962E-25B17B46FB42@osgis.nl> I don't agree with you here Steve. Also look at the INSPIRE language parameter, it's up to the service (View Service, WMS) to translate, not the client. Think of layer titles in WMS GetCapabilities. The way I've been doing it is to duplicate my datasets behind Mapserver, but that's not an ideal situation. Best regards, Bart -- Looking for flexible support on OpenLayers or GeoExt? Please check out http://www.osgis.nl/support.html Bart van den Eijnden OSGIS bartvde at osgis.nl On Oct 6, 2010, at 6:46 PM, Stephen Woodbridge wrote: > On 10/6/2010 11:07 AM, teeschke wrote: >> >> Hi Jeff, >> >> Thanks a lot, but I don't mean the support of caracter encoding. >> >> I want to publish the same map in different languages. >> I mean the technology to publish the same content in multiple languages. >> E.g. an american user would see the layers named "highways" and "railways" >> but a user from france will get the layers named "autoroute" and "chemins de >> fer" - with using the same shapefile. >> >> regards, Daniel > > Daniel, > > I think this has more to do with the client software than directly with mapserver on the server side. The layer names are not really exposed to the user except possible in part of the UI that might have a control to turn on/off a layer. At that point the client side should be doing the translation of the displayed names to the mapserver layer names. > > Along this line of thinking, I think it would be interesting if mapserver could detect the client language preferences and that could be made available for selecting which attribute columns are used for labeling. I have done this with a control in the client to select the language then made changes in my requests to the server to request a different mapfile based on language. > > Regards, > -Steve W > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From Jukka.Rahkonen at mmmtike.fi Wed Oct 6 10:15:34 2010 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Wed, 6 Oct 2010 20:15:34 +0300 Subject: [mapserver-users] doubt about mapserver URL: coordinate system References: Message-ID: Hi, It looks like your application is calling Mapserver with native CGI requests and I believe you have defined some special Mapserver layer in your application. Try to change it to standard WMS layer. -Jukka Rahkonen- Sebastian E. Ovide wrote: L?hetetty: ke 6.10.2010 18:06 Vastaanottaja: mapserver-users at lists.osgeo.org Aihe: [mapserver-users] doubt about mapserver URL: coordinate system Hi List I'm using OpenLayers + MapServer. With Firebug I see that OpenLayers calls MapServer with ULRs like this: http://mapserver/mapserver?layers=NAFRA_2008_final map=/home/gis/conf/mapserver/uk.map mode=map map_imagetype=png mapext=-374388.56527373+7296678.7179959+-374312.12824546+7296755.1550241 imgext=-374388.56527373+7296678.7179959+-374312.12824546+7296755.1550241 map_size=256+256 imgx=128 imgy=128 imgxy=256+256 Just trying to understand the coordinate system used by mapext and imgext. ( it is different from than that used to call Google servers: http://mt0.google.com/vt/lyrs=m at 133&hl=en&src=api&x=257246&y=166679&z=19&s=G ) Is it possible to use a different coordinate system ? say for example the same coordinate system specified in the LAYER (in my case epsg:27700) thanks -- Sebastian E. Ovide From woodbri at swoodbridge.com Wed Oct 6 10:56:46 2010 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Wed, 06 Oct 2010 13:56:46 -0400 Subject: [mapserver-users] Re: mapserver and i18n In-Reply-To: <329C71D0-36A1-4CB7-962E-25B17B46FB42@osgis.nl> References: <1286376365554-5607348.post@n2.nabble.com> <4CAC8D59.7010004@gatewaygeomatics.com> <1286377628379-5607433.post@n2.nabble.com> <4CACA7DE.500@swoodbridge.com> <329C71D0-36A1-4CB7-962E-25B17B46FB42@osgis.nl> Message-ID: <4CACB85E.8040809@swoodbridge.com> On 10/6/2010 12:54 PM, Bart van den Eijnden wrote: > I don't agree with you here Steve. > > Also look at the INSPIRE language parameter, it's up to the service > (View Service, WMS) to translate, not the client. Think of layer > titles in WMS GetCapabilities. > > The way I've been doing it is to duplicate my datasets behind > Mapserver, but that's not an ideal situation. > > Best regards, Bart > Hi Bart, Thanks for this feedback. I will look into that. While I have implemented multilingual driving directions, but I'm far from being very knowledgeable with regards to most of the i18n issues. So do you have any recommendations or ideas for how mapserver should deal with this? Would something like creating an additional mapping table for terms solve this problem? Maybe something like the following in a mapfile: TRANSLATIONS TERM "Highway" en_US.UTF-8 "Highway" en_UK.UTF-8 "Autoroute" ... END TERM ... END END or something along these lines, with the idea the mapserver use this to deal with user requests appropriately. -Steve W From bartvde at osgis.nl Wed Oct 6 11:06:59 2010 From: bartvde at osgis.nl (Bart van den Eijnden) Date: Wed, 6 Oct 2010 20:06:59 +0200 Subject: [mapserver-users] Re: mapserver and i18n In-Reply-To: <4CACB85E.8040809@swoodbridge.com> References: <1286376365554-5607348.post@n2.nabble.com> <4CAC8D59.7010004@gatewaygeomatics.com> <1286377628379-5607433.post@n2.nabble.com> <4CACA7DE.500@swoodbridge.com> <329C71D0-36A1-4CB7-962E-25B17B46FB42@osgis.nl> <4CACB85E.8040809@swoodbridge.com> Message-ID: Hi Steve, I have no real ideas towards a solution, like I said I use data duplication right now :-) . Normally a thesaurus would be used in between, but I don't know how viable it is to do this on the fly. Best regards, Bart -- Looking for flexible support on OpenLayers or GeoExt? Please check out http://www.osgis.nl/support.html Bart van den Eijnden OSGIS bartvde at osgis.nl On Oct 6, 2010, at 7:56 PM, Stephen Woodbridge wrote: > On 10/6/2010 12:54 PM, Bart van den Eijnden wrote: >> I don't agree with you here Steve. >> >> Also look at the INSPIRE language parameter, it's up to the service >> (View Service, WMS) to translate, not the client. Think of layer >> titles in WMS GetCapabilities. >> >> The way I've been doing it is to duplicate my datasets behind >> Mapserver, but that's not an ideal situation. >> >> Best regards, Bart >> > > Hi Bart, > > Thanks for this feedback. I will look into that. > > While I have implemented multilingual driving directions, but I'm far from being very knowledgeable with regards to most of the i18n issues. > > So do you have any recommendations or ideas for how mapserver should deal with this? Would something like creating an additional mapping table for terms solve this problem? Maybe something like the following in a mapfile: > > TRANSLATIONS > TERM "Highway" > en_US.UTF-8 "Highway" > en_UK.UTF-8 "Autoroute" > ... > END > TERM ... > END > END > > or something along these lines, with the idea the mapserver use this to deal with user requests appropriately. > > -Steve W > From Steve.Lime at state.mn.us Wed Oct 6 16:07:27 2010 From: Steve.Lime at state.mn.us (Lime, Steve D (DNR)) Date: Wed, 6 Oct 2010 18:07:27 -0500 Subject: [mapserver-users] How to display Labels from 1 table? In-Reply-To: <215307.89339.qm@web58004.mail.re3.yahoo.com> References: <998045.48308.qm@web58008.mail.re3.yahoo.com> , <215307.89339.qm@web58004.mail.re3.yahoo.com> Message-ID: Michael's post was right on, study his example closely. You TEXT parameter is in the wrong place. There's no need to use a FEATURE object... Steve ________________________________________ From: mapserver-users-bounces at lists.osgeo.org [mapserver-users-bounces at lists.osgeo.org] On Behalf Of elisabeth theresia [dbee_kawai at yahoo.com] Sent: Wednesday, October 06, 2010 10:48 AM To: mapserv forumlist Subject: Re: [mapserver-users] How to display Labels from 1 table? Hi Mr. Michael, Thanks for replying, i already did what you suggested to me and i delete my layer about LABELITEMS (my coding in the bottom), but there's no labels appear in my map yet, why? then when i write like this: (coding) there was an error message : getString(): Symbol definition error. Parsing error near ([name_region]|[value_1]-[value_2]) here the coding: LAYER NAME "Annotation of Region" TYPE ANNOTATION STATUS DEFAULT FEATURE TEXT ([name_region]|[value_1]-[value_2]) END #FEATURE CLASS LABEL COLOR 0 0 0 TYPE Truetype FONT Arial SIZE 11 MINSIZE 8 ANGLE Auto POSITION UC ANTIALIAS True WRAP "|" END #LABEL END #CLASS END #LAYER Thanks for the attention :) -Theresia ________________________________ rFrom: Michael Schulz To: elisabeth theresia Cc: mapserv forumlist Sent: Wed, October 6, 2010 6:45:30 AM Subject: Re: [mapserver-users] How to display Labels from 1 table? Hi Theresia, you can do it via the TEXT keyword in the CLASS section of a layer: http://www.mapserver.org/mapfile/class.html e.g. like this: CLASS LABEL COLOR 0 0 0 TYPE Truetype FONT Arial SIZE 11 MINSIZE 8 ANGLE Auto POSITION UC ANTIALIAS True WRAP "|" END # LABEL TEXT ([name_region]|[values_1] - [values_2]) END #CLASS This will label the features with the values of the tree fields in this form: name_region values_1 - values_2 You can request the line break with the WRAP keyword. In recent mapbender versions there are also keywords to control label alignment. Cheers, Michael 2010/10/6 elisabeth theresia >: > Hello Mapserver experts, > > I have question in my mind, How to display Labels from 1 table in my > database (Postgre + Postgis)? > in this table there are fields of : name_region, values_1, values_2, How to > appear them? Could Mapserver make it? > I ask this question, because I want to show the difference values_1 between > values_2 in my Bar Chart :) > > if i do this (code in the bottom) then just appear values_2 in the map :) ? > > LAYER > STATUS DEFAULT > TYPE ANNOTATION > CONNECTIONTYPE POSTGIS > CONNECTION "user=x password=x dbname=mydb host=host port=5432" > DATA "the_geom FROM tb_region USING UNIQUE code_region" > > LABELITEM "name_region" > CLASS > LABEL > COLOR 0 0 0 > TYPE Truetype > FONT Arial > SIZE 11 > MINSIZE 8 > ANGLE Auto > POSITION UC > ANTIALIAS True > END # LABEL > END #CLASS > > LABELITEM "values_1" > CLASS > LABEL > COLOR 255 255 255 > TYPE Truetype > FONT Arial > SIZE 9 > MINSIZE 8 > ANGLE Auto > POSITION UC > ANTIALIAS True > END # LABEL > END #CLASS > > LABELITEM "values_2" > CLASS > LABEL > COLOR 255 255 255 > TYPE Truetype > FONT Arial > SIZE 9 > MINSIZE 8 > ANGLE Auto > POSITION UC > ANTIALIAS True > END # LABEL > END #CLASS > END #LAYER > > Thanks really appreciate yours, > > -Theresia :) > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Treffen Sie uns auf der INTERGEO 05.10. - 07.10.2010 in K?ln Halle: 11.2 Stand-Nr: 2C.121 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ----------------------------------------------------------- Michael Schulz mschulz at webgis.de in medias res Gesellschaft f?r Informationstechnologie mbH Schwimmbadstra?e 2 D-79100 Freiburg i. Br. Tel: +49 (0)761 705798-102 Tel: +49 (0)761 705798-0 Fax: +49 (0)761 705798-09 http://www.webgis.de / http://www.zopecms.de -------------------------------------------------------------- Gesch?ftsf?hrer: Stefan Giese, Dr. Christof Lindenbeck Eingetragen im Handelsregister HRB 5930 beim Amtsgericht Freiburg From michael.smith at usace.army.mil Wed Oct 6 16:23:46 2010 From: michael.smith at usace.army.mil (Michael Smith) Date: Wed, 06 Oct 2010 19:23:46 -0400 Subject: [mapserver-users] Re: mapserver and i18n In-Reply-To: <4CACB85E.8040809@swoodbridge.com> Message-ID: I would do this on the backend. Pass a language variable to your data query DATA "geom from data where lang='%lang%'" LABELITEM "%LANG%HIGHWAY" And have one mapfile and just have your translations in PostGis/Oracle/etc. Mike -- Michael Smith US Army Corps of Engineers Remote Sensing/GIS Center Hanover, NH On 10/6/10 1:56 PM, "Stephen Woodbridge" wrote: > On 10/6/2010 12:54 PM, Bart van den Eijnden wrote: >> I don't agree with you here Steve. >> >> Also look at the INSPIRE language parameter, it's up to the service >> (View Service, WMS) to translate, not the client. Think of layer >> titles in WMS GetCapabilities. >> >> The way I've been doing it is to duplicate my datasets behind >> Mapserver, but that's not an ideal situation. >> >> Best regards, Bart >> > > Hi Bart, > > Thanks for this feedback. I will look into that. > > While I have implemented multilingual driving directions, but I'm far > from being very knowledgeable with regards to most of the i18n issues. > > So do you have any recommendations or ideas for how mapserver should > deal with this? Would something like creating an additional mapping > table for terms solve this problem? Maybe something like the following > in a mapfile: > > TRANSLATIONS > TERM "Highway" > en_US.UTF-8 "Highway" > en_UK.UTF-8 "Autoroute" > ... > END > TERM ... > END > END > > or something along these lines, with the idea the mapserver use this to > deal with user requests appropriately. > > -Steve W > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From woodbri at swoodbridge.com Wed Oct 6 17:05:59 2010 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Wed, 06 Oct 2010 20:05:59 -0400 Subject: [mapserver-users] Re: mapserver and i18n In-Reply-To: References: Message-ID: <4CAD0EE7.2090607@swoodbridge.com> On 10/6/2010 7:23 PM, Michael Smith wrote: > I would do this on the backend. Pass a language variable to your data > query > > DATA "geom from data where lang='%lang%'" LABELITEM "%LANG%HIGHWAY" > > And have one mapfile and just have your translations in > PostGis/Oracle/etc. > > Mike > > Yeah, that is what I have done but that requires the client to handle the management of the language selection and as Bart is pointing out the language selection should be handled on the server. Here is an example where you can select English, Arabic or French for the language of the Instructions. http://gis.imaptools.com/routing/leaddog/?zoom=10&lat=33.865&lon=35.52263&layers=B0TTTF&start=35.484217%2033.830394&stop=35.627718%2033.92659&method=STS&lang=arb It obviously needs more work to translate the whole page but my job was to just deal with the instructions part of this. -Steve From michael.smith at usace.army.mil Wed Oct 6 17:14:09 2010 From: michael.smith at usace.army.mil (Smith, Michael ERDC-CRREL-NH) Date: Wed, 06 Oct 2010 20:14:09 -0400 Subject: [mapserver-users] Re: mapserver and i18n In-Reply-To: <4CAD0EE7.2090607@swoodbridge.com> Message-ID: Very nice Steve. This will always have to be driven by the client as its the client that initiates the connection and has the language info (and often you can not count on this, from what I've seen of the Swiss use of language discovery from clients). You just have to encode the lang the server discovers as cgi environment variables and then pass to MapServer which gets passed to the database. On 10/6/10 8:05 PM, "Stephen Woodbridge" wrote: > On 10/6/2010 7:23 PM, Michael Smith wrote: >> I would do this on the backend. Pass a language variable to your data >> query >> >> DATA "geom from data where lang='%lang%'" LABELITEM "%LANG%HIGHWAY" >> >> And have one mapfile and just have your translations in >> PostGis/Oracle/etc. >> >> Mike >> >> > > Yeah, that is what I have done but that requires the client to handle > the management of the language selection and as Bart is pointing out the > language selection should be handled on the server. > > Here is an example where you can select English, Arabic or French for > the language of the Instructions. > > http://gis.imaptools.com/routing/leaddog/?zoom=10&lat=33.865&lon=35.52263&laye > rs=B0TTTF&start=35.484217%2033.830394&stop=35.627718%2033.92659&method=STS&lan > g=arb > > It obviously needs more work to translate the whole page but my job was > to just deal with the instructions part of this. > > -Steve From dalda at ikt.es Wed Oct 6 23:15:09 2010 From: dalda at ikt.es (David Alda Fernandez de Lezea) Date: Thu, 7 Oct 2010 08:15:09 +0200 Subject: [mapserver-users] GetFeatureInfo over OGR OCI Layer Message-ID: <224DBDAF88A6AC47BD22432815351BE0082DE405@nekaposta1> Sebastian, Thanks for your response. If I execute that line of code I get a confusing response. It seems that recognizes the table but there are som errors that make me think there is something wrong. C:\ms4w>ogrinfo OCI:admcarto/admcarto at ORA10GEX GV_SIGPAC_REC_ED50 ERROR 1: ORA-04043: object GV_INVFOR_2005_ED50 does not exist in OCIDescribeAny ERROR 1: ORA-04043: object GV_SIGPAC_PAR_ED50 does not exist in OCIDescribeAny ERROR 1: ORA-04043: object GV_SIGPAC_POL_ED50 does not exist in OCIDescribeAny ERROR 1: ORA-04043: object GV_SIGPAC_REC_ED50 does not exist in OCIDescribeAny INFO: Open of `OCI:admcarto/admcarto at ORA10GEX' using driver `OCI' successful. Layer name: GV_SIGPAC_REC_ED50 Geometry: Unknown (any) Feature Count: 946359 ERROR 1: ORA-03113: fin de archivo en el canal de comunicaci?n in SELECT MIN(SDO_GEOM.SDO_MIN_MBR_ORDINATE(t.GEOMETRY,m.DIMINFO,1)) AS MINX,MI N(SDO_GEOM.SDO_MIN_MBR_ORDINATE(t.GEOMETRY,m.DIMINFO,2)) AS MINY,MAX(SDO_GEOM.SD O_MAX_MBR_ORDINATE(t.GEOMETRY,m.DIMINFO,1)) AS MAXX,MAX(SDO_GEOM.SDO_MAX_MBR_ORD INATE(t.GEOMETRY,m.DIMINFO,2)) AS MAXY FROM ALL_SDO_GEOM_METADATA m, GV_SIGPAC_ REC_ED50 t WHERE m.TABLE_NAME = 'GV_SIGPAC_REC_ED50' AND m.COLUMN_NAME='GEOMETRY ' ERROR 1: ORA-03114: no conectado a ORACLE in SELECT "GEOMETRY","GID","PROVINCIA","MUNICIPIO","POLIGONO","PARCELA","RECINT O","DN_SURFACE","DN_PERIMET","PENDIENTE","ELEGIBILIDAD","COEF_REGAD","COEF_PASTO ","USO_SIGPAC","USO_2003","PARCELA_AG","DN_OID","FECHA" FROM GV_SIGPAC_REC_ED50 Layer SRS WKT: PROJCS["UTM Zone 30 (ED 50)", GEOGCS["European 1950", DATUM["European 1950", SPHEROID["International 1924",6378388,297]], PRIMEM["Greenwich",0.000000], UNIT["Decimal Degree",0.01745329251994330]], PROJECTION["Transverse Mercator"], PARAMETER["Scale_Factor",0.999600], PARAMETER["Central_Meridian",-3.000000], PARAMETER["False_Easting",500000.000000], UNIT["Meter",1.000000000000], AUTHORITY["Oracle","82337"]] Geometry Column = GEOMETRY GID: Integer (10.0) PROVINCIA: Integer (2.0) MUNICIPIO: Integer (3.0) POLIGONO: Integer (3.0) PARCELA: Integer (5.0) RECINTO: Integer (3.0) DN_SURFACE: Real (15.5) DN_PERIMET: Real (15.5) PENDIENTE: Real (4.1) ELEGIBILIDAD: Integer (3.0) COEF_REGAD: Integer (3.0) COEF_PASTO: Integer (3.0) USO_SIGPAC: String (2.0) USO_2003: String (2.0) PARCELA_AG: String (30.0) DN_OID: Integer (10.0) FECHA: Date (0.0) ERROR 1: ORA-03114: no conectado a ORACLE in SELECT "GEOMETRY","GID","PROVINCIA","MUNICIPIO","POLIGONO","PARCELA","RECINT O","DN_SURFACE","DN_PERIMET","PENDIENTE","ELEGIBILIDAD","COEF_REGAD","COEF_PASTO ","USO_SIGPAC","USO_2003","PARCELA_AG","DN_OID","FECHA" FROM GV_SIGPAC_REC_ED50 C:\ms4w> Any idea? Thanks again. ________________________________ De: sebastianovide at gmail.com [mailto:sebastianovide at gmail.com] En nombre de Sebastian E. Ovide Enviado el: mi?rcoles, 06 de octubre de 2010 17:14 Para: David Alda Fernandez de Lezea CC: mapserver-users at lists.osgeo.org Asunto: Re: [mapserver-users] GetFeatureInfo over OGR OCI Layer does ogrinfo OCI:admcarto/admcarto at ORA10GEX GV_SIGPAC_REC_ED50 work ? On Fri, Oct 1, 2010 at 12:25 PM, David Alda Fernandez de Lezea wrote: Hi list, I'm trying to execute a GetFeatureInfo request over an Oracle layer via OGR. I can view the content of the layer, but when I make the request I don't get any result. I mean, I receive an empty GML. My layer config: LAYER STATUS ON CONNECTION "OCI:admcarto/admcarto at ORA10GEX" CONNECTIONTYPE OGR DATA "GV_SIGPAC_REC_ED50" #todo el sigpac NAME "RecintosSigpacOGR" PROJECTION "init=epsg:23030" END DUMP TRUE TYPE POLYGON METADATA "wms_title" "Recintos Sigpac 2009" "wms_srs" "EPSG:23030" "wms_name" "RecintosSigpacOGR" "wms_server_version" "1.1.1" "wms_format" "image/gif" "wms_transparent" "true" "wms_extent" "460000 4690000 610000 4820000" "wms_include_items" "all" "gml_include_items" "all" END MAXSCALE 10000 TEMPLATE "ms_template.html" PROCESSING "LABEL_NO_CLIP=ON" PROCESSING "CLOSE_CONNECTION=DEFER" SYMBOLSCALE 5000 #Simbologia CLASSGROUP "Simbologia_Recintos" CLASS TEXT ([PARCELA]:[RECINTO]) STYLE OUTLINECOLOR 0 234 0 END LABEL COLOR 254 254 255 OUTLINECOLOR 0 0 0 TYPE truetype FONT "sans" SIZE 6 POSITION cc PARTIALS TRUE END NAME "RecintosSigPac" GROUP "Referencia_Sigpac" END CLASS STYLE OUTLINECOLOR 0 234 0 WIDTH 1 END NAME "RecintosSigPac" GROUP "Predeterminado" END END Resultant file Any ideas? Something wrong configured? Thanks. Un saludo, ?????????????????????????????????????????????????????????????????????????????????? David Alda Fern?ndez de Lezea Lurralde eta Biodibertsitate Saila / Dpto. de Territorio y Biodiversidad IKT Granja Modelo s/n ? 01192 ? Arkaute (Araba) ?????????????????????????????????????????????????????????????????????????????????? Tlfnos.: 945-00-32-95 Fax: 945-00.32.90 ?????????????????????????????????????????????????????????????????????????????????? email: dalda at ikt.es web: www.ikt.es ?????????????????????????????????????????????????????????????????????????????????? _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Sebastian E. Ovide From bartvde at osgis.nl Wed Oct 6 23:30:45 2010 From: bartvde at osgis.nl (Bart van den Eijnden) Date: Thu, 7 Oct 2010 08:30:45 +0200 Subject: [mapserver-users] Re: mapserver and i18n In-Reply-To: <4CAD0EE7.2090607@swoodbridge.com> References: <4CAD0EE7.2090607@swoodbridge.com> Message-ID: <6CC60BF7-98FF-400E-A1CC-DA71E81352EA@osgis.nl> Hi Steve, I did not (mean to) say the client does not send the correct language parameter to the server. The client (browser) is in control and will request the language needed. Your e-mail said the client needed to do the actual translation of e.g. layer names, and that's where I disagreed. Best regards, Bart -- Looking for flexible support on OpenLayers or GeoExt? Please check out http://www.osgis.nl/support.html Bart van den Eijnden OSGIS bartvde at osgis.nl On Oct 7, 2010, at 2:05 AM, Stephen Woodbridge wrote: > On 10/6/2010 7:23 PM, Michael Smith wrote: >> I would do this on the backend. Pass a language variable to your data >> query >> >> DATA "geom from data where lang='%lang%'" LABELITEM "%LANG%HIGHWAY" >> >> And have one mapfile and just have your translations in >> PostGis/Oracle/etc. >> >> Mike >> >> > > Yeah, that is what I have done but that requires the client to handle the management of the language selection and as Bart is pointing out the language selection should be handled on the server. > > Here is an example where you can select English, Arabic or French for the language of the Instructions. > > http://gis.imaptools.com/routing/leaddog/?zoom=10&lat=33.865&lon=35.52263&layers=B0TTTF&start=35.484217%2033.830394&stop=35.627718%2033.92659&method=STS&lang=arb > > It obviously needs more work to translate the whole page but my job was to just deal with the instructions part of this. > > -Steve > From daniel.teske at web.de Thu Oct 7 01:06:43 2010 From: daniel.teske at web.de (teeschke) Date: Thu, 7 Oct 2010 01:06:43 -0700 (PDT) Subject: [mapserver-users] Re: mapserver and i18n In-Reply-To: References: <1286376365554-5607348.post@n2.nabble.com> <4CAC8D59.7010004@gatewaygeomatics.com> <1286377628379-5607433.post@n2.nabble.com> <4CACA7DE.500@swoodbridge.com> <329C71D0-36A1-4CB7-962E-25B17B46FB42@osgis.nl> <4CACB85E.8040809@swoodbridge.com> Message-ID: <1286438803290-5610385.post@n2.nabble.com> Hi Michael, thats a realy good idea for the attributes of the geodata. But what about LAYER NAME 'my_highway_layer' TYPE LINE DATA "geom from data where lang='%lang%'" METADATA "ows_title" "highways" ##### must be i18n "ows_group_title" "Infrastructure" ##### must be i18n "wms_feature_info_mime_type" "text/html" "wms_server_version" "1.1.1" "wms_format" "image/png" "wms_exceptions_format" "application/vnd.ogc.se_xml" "gml_featureid" "ID" "gml_include_items" "ID,NAME" "gml_ID_alias" "Number" ##### must be i18n "gml_NAME_alias" "Name" ##### must be i18n END #METADATA CLASS NAME 'good' ##### must be i18n COLOR 0 255 0 END # CLASS CLASS NAME 'bad' ##### must be i18n COLOR 255 0 0 END #CLASS END # LAYER I think the only solution is to provide one mapfile for each language. Thanks a lot and regards, Daniel -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/mapserver-and-i18n-tp5607348p5610385.html Sent from the Mapserver - User mailing list archive at Nabble.com. From sebastian.ovide at gmail.com Thu Oct 7 04:42:44 2010 From: sebastian.ovide at gmail.com (Sebastian E. Ovide) Date: Thu, 7 Oct 2010 12:42:44 +0100 Subject: [mapserver-users] doubt about mapserver URL: coordinate system In-Reply-To: References: Message-ID: you are right. Thanks On Wed, Oct 6, 2010 at 6:15 PM, Rahkonen Jukka wrote: > Hi, > > It looks like your application is calling Mapserver with native CGI > requests and I believe you have defined some special Mapserver layer in your > application. Try to change it to standard WMS layer. > > > -Jukka Rahkonen- > > > Sebastian E. Ovide wrote: > > L?hetetty: ke 6.10.2010 18:06 > Vastaanottaja: mapserver-users at lists.osgeo.org > Aihe: [mapserver-users] doubt about mapserver URL: coordinate system > > Hi List > > I'm using OpenLayers + MapServer. With Firebug I see that OpenLayers calls > MapServer with ULRs like this: > > http://mapserver/mapserver?layers=NAFRA_2008_final > map=/home/gis/conf/mapserver/uk.map > mode=map > map_imagetype=png > mapext=-374388.56527373+7296678.7179959+-374312.12824546+7296755.1550241 > imgext=-374388.56527373+7296678.7179959+-374312.12824546+7296755.1550241 > map_size=256+256 > imgx=128 > imgy=128 > imgxy=256+256 > > Just trying to understand the coordinate system used by mapext and imgext. > ( > it is different from than that used to call Google servers: > > http://mt0.google.com/vt/lyrs=m at 133&hl=en&src=api&x=257246&y=166679&z=19&s=G > ) > > Is it possible to use a different coordinate system ? say for example the > same coordinate system specified in the LAYER (in my case epsg:27700) > > thanks > > -- > Sebastian E. Ovide > > -- Sebastian E. Ovide -------------- next part -------------- An HTML attachment was scrubbed... URL: From michael.smith at usace.army.mil Thu Oct 7 04:50:43 2010 From: michael.smith at usace.army.mil (Michael Smith) Date: Thu, 07 Oct 2010 07:50:43 -0400 Subject: [mapserver-users] doubt about mapserver URL: coordinate system In-Reply-To: Message-ID: Sebastian, You can use either mapserver or wms syntax with openlayers. The coordinates you see are in the Google Mercator or Spherical Mercator projection. The google coordinates are the tile references (z=19) and the x and y should match the center point of your mapext/imgext. To use mapserver with google mercator you?d use the projection block at the mapfile level of PROJECTION "proj=merc lon_0=0 k=1 x_0=0 y_0=0 a=6378137 b=6378137 towgs84=0,0,0,0,0,0,0 units=m no_defs" END Mike -- Michael Smith US Army Corps of Engineers Remote Sensing/GIS Center Hanover, NH On 10/7/10 7:42 AM, "Sebastian E. Ovide" wrote: > you are right. Thanks > > On Wed, Oct 6, 2010 at 6:15 PM, Rahkonen Jukka > wrote: >> Hi, >> >> It looks like your application is calling Mapserver with native CGI requests >> and I believe you have defined some special Mapserver layer in your >> application. Try to change it to standard WMS layer. >> >> >> -Jukka Rahkonen- >> >> >> Sebastian E. Ovide wrote: >> >> L?hetetty: ke 6.10.2010 18:06 >> Vastaanottaja: mapserver-users at lists.osgeo.org >> Aihe: [mapserver-users] doubt about mapserver URL: coordinate system >> >> Hi List >> >> I'm using OpenLayers + MapServer. With Firebug I see that OpenLayers calls >> MapServer with ULRs like this: >> >> http://mapserver/mapserver?layers=NAFRA_2008_final >> map=/home/gis/conf/mapserver/uk.map >> mode=map >> map_imagetype=png >> mapext=-374388.56527373+7296678.7179959+-374312.12824546+7296755.1550241 >> imgext=-374388.56527373+7296678.7179959+-374312.12824546+7296755.1550241 >> map_size=256+256 >> imgx=128 >> imgy=128 >> imgxy=256+256 >> >> Just trying to understand the coordinate system used by mapext and imgext. ( >> it is different from than that used to call Google servers: >> http://mt0.google.com/vt/lyrs=m at 133&hl=en&src=api&x=257246&y=166679&z=19&s=G >> ) >> >> Is it possible to use a different coordinate system ? say for example the >> same coordinate system specified in the LAYER (in my case epsg:27700) >> >> thanks >> >> -- >> Sebastian E. Ovide >> > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From dbee_kawai at yahoo.com Thu Oct 7 05:42:01 2010 From: dbee_kawai at yahoo.com (elisabeth theresia) Date: Thu, 7 Oct 2010 05:42:01 -0700 (PDT) Subject: [mapserver-users] How to display Labels from 1 table? In-Reply-To: References: <998045.48308.qm@web58008.mail.re3.yahoo.com> , <215307.89339.qm@web58004.mail.re3.yahoo.com> Message-ID: <891052.36105.qm@web58002.mail.re3.yahoo.com> Horray Mr. Michael and Mr. Lime thanks it works. really appreciate your kindness :) best regards, -Theresia ________________________________ From: "Lime, Steve D (DNR)" To: elisabeth theresia ; mapserv forumlist Sent: Wed, October 6, 2010 4:07:27 PM Subject: RE: [mapserver-users] How to display Labels from 1 table? Michael's post was right on, study his example closely. You TEXT parameter is in the wrong place. There's no need to use a FEATURE object... Steve ________________________________________ From: mapserver-users-bounces at lists.osgeo.org [mapserver-users-bounces at lists.osgeo.org] On Behalf Of elisabeth theresia [dbee_kawai at yahoo.com] Sent: Wednesday, October 06, 2010 10:48 AM To: mapserv forumlist Subject: Re: [mapserver-users] How to display Labels from 1 table? Hi Mr. Michael, Thanks for replying, i already did what you suggested to me and i delete my layer about LABELITEMS (my coding in the bottom), but there's no labels appear in my map yet, why? then when i write like this: (coding) there was an error message : getString(): Symbol definition error. Parsing error near ([name_region]|[value_1]-[value_2]) here the coding: LAYER NAME "Annotation of Region" TYPE ANNOTATION STATUS DEFAULT FEATURE TEXT ([name_region]|[value_1]-[value_2]) END #FEATURE CLASS LABEL COLOR 0 0 0 TYPE Truetype FONT Arial SIZE 11 MINSIZE 8 ANGLE Auto POSITION UC ANTIALIAS True WRAP "|" END #LABEL END #CLASS END #LAYER Thanks for the attention :) -Theresia ________________________________ rFrom: Michael Schulz To: elisabeth theresia Cc: mapserv forumlist Sent: Wed, October 6, 2010 6:45:30 AM Subject: Re: [mapserver-users] How to display Labels from 1 table? Hi Theresia, you can do it via the TEXT keyword in the CLASS section of a layer: http://www.mapserver.org/mapfile/class.html e.g. like this: CLASS LABEL COLOR 0 0 0 TYPE Truetype FONT Arial SIZE 11 MINSIZE 8 ANGLE Auto POSITION UC ANTIALIAS True WRAP "|" END # LABEL TEXT ([name_region]|[values_1] - [values_2]) END #CLASS This will label the features with the values of the tree fields in this form: name_region values_1 - values_2 You can request the line break with the WRAP keyword. In recent mapbender versions there are also keywords to control label alignment. Cheers, Michael 2010/10/6 elisabeth theresia >: > Hello Mapserver experts, > > I have question in my mind, How to display Labels from 1 table in my > database (Postgre + Postgis)? > in this table there are fields of : name_region, values_1, values_2, How to > appear them? Could Mapserver make it? > I ask this question, because I want to show the difference values_1 between > values_2 in my Bar Chart :) > > if i do this (code in the bottom) then just appear values_2 in the map :) ? > > LAYER > STATUS DEFAULT > TYPE ANNOTATION > CONNECTIONTYPE POSTGIS > CONNECTION "user=x password=x dbname=mydb host=host port=5432" > DATA "the_geom FROM tb_region USING UNIQUE code_region" > > LABELITEM "name_region" > CLASS > LABEL > COLOR 0 0 0 > TYPE Truetype > FONT Arial > SIZE 11 > MINSIZE 8 > ANGLE Auto > POSITION UC > ANTIALIAS True > END # LABEL > END #CLASS > > LABELITEM "values_1" > CLASS > LABEL > COLOR 255 255 255 > TYPE Truetype > FONT Arial > SIZE 9 > MINSIZE 8 > ANGLE Auto > POSITION UC > ANTIALIAS True > END # LABEL > END #CLASS > > LABELITEM "values_2" > CLASS > LABEL > COLOR 255 255 255 > TYPE Truetype > FONT Arial > SIZE 9 > MINSIZE 8 > ANGLE Auto > POSITION UC > ANTIALIAS True > END # LABEL > END #CLASS > END #LAYER > > Thanks really appreciate yours, > > -Theresia :) > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Treffen Sie uns auf der INTERGEO 05.10. - 07.10.2010 in K?ln Halle: 11.2 Stand-Nr: 2C.121 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ----------------------------------------------------------- Michael Schulz mschulz at webgis.de in medias res Gesellschaft f?r Informationstechnologie mbH Schwimmbadstra?e 2 D-79100 Freiburg i. Br. Tel: +49 (0)761 705798-102 Tel: +49 (0)761 705798-0 Fax: +49 (0)761 705798-09 http://www.webgis.de / http://www.zopecms.de -------------------------------------------------------------- Gesch?ftsf?hrer: Stefan Giese, Dr. Christof Lindenbeck Eingetragen im Handelsregister HRB 5930 beim Amtsgericht Freiburg -------------- next part -------------- An HTML attachment was scrubbed... URL: From ven.tammineni at gmail.com Thu Oct 7 05:51:55 2010 From: ven.tammineni at gmail.com (venkat) Date: Thu, 7 Oct 2010 18:21:55 +0530 Subject: [mapserver-users] How split single polygon into multiple polygons Message-ID: Dear All, I need to split single polygon into multiple polygons using C#.Any one can guide me.I am waiting for your great response. Thanks and Regards, Ven -------------- next part -------------- An HTML attachment was scrubbed... URL: From woodbri at swoodbridge.com Thu Oct 7 06:14:15 2010 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Thu, 07 Oct 2010 09:14:15 -0400 Subject: [mapserver-users] Re: mapserver and i18n In-Reply-To: <1286438803290-5610385.post@n2.nabble.com> References: <1286376365554-5607348.post@n2.nabble.com> <4CAC8D59.7010004@gatewaygeomatics.com> <1286377628379-5607433.post@n2.nabble.com> <4CACA7DE.500@swoodbridge.com> <329C71D0-36A1-4CB7-962E-25B17B46FB42@osgis.nl> <4CACB85E.8040809@swoodbridge.com> <1286438803290-5610385.post@n2.nabble.com> Message-ID: <4CADC7A7.7020908@swoodbridge.com> I'm not sure that there is any reason that this: could not be coded like: "gml_ID_alias" "Number" ##### must be i18n "gml_NAME_alias" "Name" ##### must be i18n could not be coded like: "gml_ID_alias_en_US" "Number" ##### must be i18n "gml_NAME_alias_en_US" "Name" ##### must be i18n "gml_ID_alias_fr" "...." ##### must be i18n "gml_NAME_alias_fr" "...." ##### must be i18n "gml_ID_alias_es" "...." ##### must be i18n "gml_NAME_alias_es" "...." ##### must be i18n if someone wanted to make a change to mapserver to support it. I hate the idea of having multiple mapfiles for the same map. It is a huge cost to build and maintain and test them if you have to make changes or update them. -Steve W On 10/7/2010 4:06 AM, teeschke wrote: > > Hi Michael, > > thats a realy good idea for the attributes of the geodata. But what about > > LAYER > NAME 'my_highway_layer' > TYPE LINE > DATA "geom from data where lang='%lang%'" > METADATA > "ows_title" "highways" ##### must be i18n > "ows_group_title" "Infrastructure" ##### must be i18n > "wms_feature_info_mime_type" "text/html" > "wms_server_version" "1.1.1" > "wms_format" "image/png" > "wms_exceptions_format" "application/vnd.ogc.se_xml" > "gml_featureid" "ID" > "gml_include_items" "ID,NAME" > "gml_ID_alias" "Number" ##### must be i18n > "gml_NAME_alias" "Name" ##### must be i18n > END #METADATA > CLASS > NAME 'good' ##### must be i18n > COLOR 0 255 0 > END # CLASS > CLASS > NAME 'bad' ##### must be i18n > COLOR 255 0 0 > END #CLASS > END # LAYER > > I think the only solution is to provide one mapfile for each language. > > Thanks a lot and regards, > Daniel From woodbri at swoodbridge.com Thu Oct 7 06:21:53 2010 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Thu, 07 Oct 2010 09:21:53 -0400 Subject: [mapserver-users] Re: mapserver and i18n In-Reply-To: <6CC60BF7-98FF-400E-A1CC-DA71E81352EA@osgis.nl> References: <4CAD0EE7.2090607@swoodbridge.com> <6CC60BF7-98FF-400E-A1CC-DA71E81352EA@osgis.nl> Message-ID: <4CADC971.6060202@swoodbridge.com> On 10/7/2010 2:30 AM, Bart van den Eijnden wrote: > Hi Steve, > > I did not (mean to) say the client does not send the correct language > parameter to the server. The client (browser) is in control and will > request the language needed. > > Your e-mail said the client needed to do the actual translation of > e.g. layer names, and that's where I disagreed. Bart, Thanks for clarifying that, now it make more sense in my mind, and I can agree with that. I struggled with an experience in Turkey with a public access PC that I could not for the life of me get the thing to switch over to English. When I went to google.com it got redirected to a Turkish version of google. I'm a big believer that sites should have links on them that make it easy for a non-native reader to find and change the language. -Steve From michael.smith at usace.army.mil Thu Oct 7 06:24:18 2010 From: michael.smith at usace.army.mil (Smith, Michael ERDC-CRREL-NH) Date: Thu, 07 Oct 2010 09:24:18 -0400 Subject: [mapserver-users] Re: mapserver and i18n In-Reply-To: <4CADC7A7.7020908@swoodbridge.com> Message-ID: Would it be better to make then available for variable substitution? "gml_ID_alias" "%GML_ID_NO%" ##### must be i18n "gml_NAME_alias" "%GML_NAME_ALIAS%" ##### must be i18n Mike -- Michael Smith US Army Corps of Engineers Remote Sensing/GIS Center Hanover, NH On 10/7/10 9:14 AM, "Stephen Woodbridge" wrote: > I'm not sure that there is any reason that this: > could not be coded like: > > "gml_ID_alias" "Number" ##### must be i18n > "gml_NAME_alias" "Name" ##### must be i18n > > could not be coded like: > > "gml_ID_alias_en_US" "Number" ##### must be i18n > "gml_NAME_alias_en_US" "Name" ##### must be i18n > "gml_ID_alias_fr" "...." ##### must be i18n > "gml_NAME_alias_fr" "...." ##### must be i18n > "gml_ID_alias_es" "...." ##### must be i18n > "gml_NAME_alias_es" "...." ##### must be i18n > > if someone wanted to make a change to mapserver to support it. I hate > the idea of having multiple mapfiles for the same map. It is a huge cost > to build and maintain and test them if you have to make changes or > update them. > > -Steve W > > On 10/7/2010 4:06 AM, teeschke wrote: >> >> Hi Michael, >> >> thats a realy good idea for the attributes of the geodata. But what about >> >> LAYER >> NAME 'my_highway_layer' >> TYPE LINE >> DATA "geom from data where lang='%lang%'" >> METADATA >> "ows_title" "highways" ##### must be i18n >> "ows_group_title" "Infrastructure" ##### must be i18n >> "wms_feature_info_mime_type" "text/html" >> "wms_server_version" "1.1.1" >> "wms_format" "image/png" >> "wms_exceptions_format" "application/vnd.ogc.se_xml" >> "gml_featureid" "ID" >> "gml_include_items" "ID,NAME" >> "gml_ID_alias" "Number" ##### must be i18n >> "gml_NAME_alias" "Name" ##### must be i18n >> END #METADATA >> CLASS >> NAME 'good' ##### must be i18n >> COLOR 0 255 0 >> END # CLASS >> CLASS >> NAME 'bad' ##### must be i18n >> COLOR 255 0 0 >> END #CLASS >> END # LAYER >> >> I think the only solution is to provide one mapfile for each language. >> >> Thanks a lot and regards, >> Daniel > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From woodbri at swoodbridge.com Thu Oct 7 06:26:52 2010 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Thu, 07 Oct 2010 09:26:52 -0400 Subject: [mapserver-users] Re: mapserver and i18n In-Reply-To: References: Message-ID: <4CADCA9C.8050806@swoodbridge.com> On 10/7/2010 9:24 AM, Smith, Michael ERDC-CRREL-NH wrote: > Would it be better to make then available for variable substitution? > > "gml_ID_alias" "%GML_ID_NO%" ##### must be i18n > "gml_NAME_alias" "%GML_NAME_ALIAS%" ##### must be i18n I think that what needs to be passed to mapserver is something like lang=en_US and that is then used to select the appropriate alias. And if that does not exist then there are appropriate rules for how to handle it or error out. -Steve From daniel.teske at web.de Thu Oct 7 09:04:57 2010 From: daniel.teske at web.de (teeschke) Date: Thu, 7 Oct 2010 09:04:57 -0700 (PDT) Subject: [mapserver-users] Re: mapserver and i18n In-Reply-To: <4CADCA9C.8050806@swoodbridge.com> References: <4CAC8D59.7010004@gatewaygeomatics.com> <1286377628379-5607433.post@n2.nabble.com> <4CACA7DE.500@swoodbridge.com> <329C71D0-36A1-4CB7-962E-25B17B46FB42@osgis.nl> <4CACB85E.8040809@swoodbridge.com> <1286438803290-5610385.post@n2.nabble.com> <4CADC7A7.7020908@swoodbridge.com> <4CADCA9C.8050806@swoodbridge.com> Message-ID: <1286467497319-5611955.post@n2.nabble.com> > I think that what needs to be passed to mapserver is something like > lang=en_US and that is then used to select the appropriate alias. And if > that does not exist then there are appropriate rules for how to handle > it or error out. > > -Steve I'm also not a friend of the idea to have multiple copys of our ~50 mapfiles (~each with 1.000- 5.000 lines of configuration) and modify just all language effected parts - this is a huge rat tail. processing the lang-parameter is a nice idea DATA "geom from data where lang='%lang%'" # this could be a solution, but doesn't looks good when no lang parameter is defined LABELITEM "%LANG%HIGHWAY" # this could be a solution ----------- "gml_ID_alias" "%GML_ID_NO%" would bring to much informations into the client and the requests are not ogc confirm anymore. furthermore this could bring trouble with WFS-GetFeature-Requests. this is much better: "ows_title" "highways" # default layer title "ows_title_fr" "..." # france layer title "ows_group_title" "Infrastructure" # default group name "ows_group_title_fr" "..." # france group name "gml_ID_alias" "Number" # default alias "gml_NAME_alias_fr" '... # france alias NAME 'good' # default class name NAME_fr 'good' # france class name (oups, not looking good) Thanks a lot and regards, Daniel -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/mapserver-and-i18n-tp5607348p5611955.html Sent from the Mapserver - User mailing list archive at Nabble.com. From wimvanbelle at gmail.com Thu Oct 7 10:19:58 2010 From: wimvanbelle at gmail.com (Wim Vanbelle) Date: Thu, 7 Oct 2010 19:19:58 +0200 Subject: [mapserver-users] How split single polygon into multiple polygons In-Reply-To: References: Message-ID: I think the main question here, is what you are trying to achieve? Do you just want to split them randomly? Evenly into pieces of certain sizes? Based on other geometries that may or may not overlap? Best regards, Wim On 7 October 2010 14:51, venkat wrote: > Dear All, > > I need to split single polygon into multiple polygons using C#.Any one can > guide me.I am waiting for your great response. > > Thanks and Regards, > > Ven > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From Jukka.Rahkonen at mmmtike.fi Fri Oct 8 04:16:44 2010 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Fri, 8 Oct 2010 14:16:44 +0300 Subject: [mapserver-users] FOSS4G presentations Message-ID: Hi, There is a complete list of presentations and posters with abstracts at http://2010.foss4g.org/presentations.php However, I can see only a handful of full presentations at http://presentations.opengeo.org/2010_FOSS4G/ Because of five parellel sessions + tutorials running at the same time I missed lots of interesting presentations. Is there any hope of getting access to more presentations in the future? -Jukka Rahkonen- -------------- next part -------------- An HTML attachment was scrubbed... URL: From jmckenna at gatewaygeomatics.com Fri Oct 8 05:16:36 2010 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Fri, 08 Oct 2010 09:16:36 -0300 Subject: [mapserver-users] FOSS4G presentations In-Reply-To: References: Message-ID: <4CAF0BA4.4020601@gatewaygeomatics.com> On 10-10-08 8:16 AM, Rahkonen Jukka wrote: > Hi, > There is a complete list of presentations and posters with abstracts at > http://2010.foss4g.org/presentations.php > However, I can see only a handful of full presentations at > http://presentations.opengeo.org/2010_FOSS4G/ > Because of five parellel sessions + tutorials running at the same time I > missed lots of interesting presentations. Is there any hope of getting > access to more presentations in the future? > -Jukka Rahkonen- Hi Jukka, The 2010 local committee is working on posting the presentations. It's probably best that you ask your FOSS4G2010 questions on the 2010 mailing list (join at http://lists.osgeo.org/mailman/listinfo/foss4g2010) so the local committee can read your questions. Thanks. -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ From robhyx at gmail.com Fri Oct 8 08:10:03 2010 From: robhyx at gmail.com (Robert Hicks) Date: Fri, 8 Oct 2010 11:10:03 -0400 Subject: [mapserver-users] WMS Request for a single point? Message-ID: Hello all! Ok, this is probably a long shot but, is there a way to request an image from Mapserver that is just a point? The idea is I have another larger (reference) map image and I want to place a push pin on top of it in a specified point. It has to be a WMS call so that I can take the image and merge it with the other larger map into one so that it can be put into a PDF. Any help would be appreciated. Thanks! -- web http://www.hyxspace.com aim hyx1138 From Bob.Basques at ci.stpaul.mn.us Fri Oct 8 08:23:05 2010 From: Bob.Basques at ci.stpaul.mn.us (Bob Basques) Date: Fri, 08 Oct 2010 10:23:05 -0500 Subject: [mapserver-users] WMS Request for a single point? In-Reply-To: References: Message-ID: <4CAEF109.163B.00A8.0@ci.stpaul.mn.us> There are a couple of ways of doing this, one is to use a Client that supports layer stacking in the interface, like GeoMoose or Openlayers, and call separate images and then combine them printing. You would need to set up the approriate environment for this approach and this might not be cost effective to you. Another approach is to apply a symbol via a Mapserver served WMS service. You could make the WMS call to a specific service name that has the PushPin inserted into the center of the image (on top of the background layers you specify) and already composited for output into a single image. You would need to call this as a separate WMS call however. Going back to the Layered approach, you can also set up a marking system in the client where3 the client decide to add the pushpin, and then print from the client, GeoMoose can accomodate this approach as well, but it's a much higher level of implemnentation. bobb >>> Robert Hicks wrote: Hello all! Ok, this is probably a long shot but, is there a way to request an image from Mapserver that is just a point? The idea is I have another larger (reference) map image and I want to place a push pin on top of it in a specified point. It has to be a WMS call so that I can take the image and merge it with the other larger map into one so that it can be put into a PDF. Any help would be appreciated. Thanks! -- web http://www.hyxspace.com aim hyx1138 _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From robhyx at gmail.com Fri Oct 8 08:49:40 2010 From: robhyx at gmail.com (Robert Hicks) Date: Fri, 8 Oct 2010 11:49:40 -0400 Subject: [mapserver-users] WMS Request for a single point? In-Reply-To: <4CAEF109.163B.00A8.0@ci.stpaul.mn.us> References: <4CAEF109.163B.00A8.0@ci.stpaul.mn.us> Message-ID: Thanks Bob, I think the second idea is more for what I am looking at. The styling (or adding the push pin icon) is already done, I know how to do that. The bigger issue is requesting the image with the point in the right location without a backing datastore (or at least one with the specific point). I suppose I could have a table which I populate on the fly, but how do I request just that one point from it and not other points from past requests? On Fri, Oct 8, 2010 at 11:23 AM, Bob Basques wrote: > There are a couple of ways of doing this, one is to use a Client that > supports layer stacking in the interface, like GeoMoose or Openlayers, and > call separate images and then combine them printing. ?You would need to set > up the approriate environment for this approach and this might not be cost > effective to you. > > Another approach is to apply a symbol via a Mapserver served WMS service. > ?You could make the WMS call to a specific service name that has the PushPin > inserted into the center of the image (on top of the background layers you > specify) and already composited for output into a single image. ?You would > need to call this as a separate WMS call however. > > Going back to the Layered approach, you can also set up a marking system in > the client where3 the client decide to add the pushpin, and then print from > the client, GeoMoose can accomodate this approach as well, but it's a much > higher level of implemnentation. > > bobb > > > >>>> Robert Hicks wrote: > > Hello all! Ok, this is probably a long shot but, is there a way to > request an image from Mapserver that is just a point? The idea is I > have another larger (reference) map image and I want to place a push > pin on top of it in a specified point. It has to be a WMS call so that > I can take the image and merge it with the other larger map into one > so that it can be put into a PDF. Any help would be appreciated. > > Thanks! > > -- > web http://www.hyxspace.com > aim hyx1138 > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -- web http://www.hyxspace.com aim hyx1138 From thomas.bonfort at gmail.com Fri Oct 8 09:03:41 2010 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Fri, 8 Oct 2010 18:03:41 +0200 Subject: [mapserver-users] WMS Request for a single point? In-Reply-To: References: Message-ID: have a look at http://www.mail-archive.com/mapserver-users at lists.umn.edu/msg05881.html the syntax for cgi commands has changed since then, you'd have to use something like &map.layer[site]=feature+points+582248.23+4841497.11+end+end or &map.layer[site].feature.points=582248.23+4841497.11 (I cant remember what syntax is correct) -- regards, thomas On Fri, Oct 8, 2010 at 17:10, Robert Hicks wrote: > Hello all! Ok, this is probably a long shot but, is there a way to > request an image from Mapserver that is just a point? The idea is I > have another larger (reference) map image and I want to place a push > pin on top of it in a specified point. It has to be a WMS call so that > I can take the image and merge it with the other larger map into one > so that it can be put into a PDF. Any help would be appreciated. > > Thanks! > > -- > web http://www.hyxspace.com > aim hyx1138 > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From robhyx at gmail.com Fri Oct 8 09:04:26 2010 From: robhyx at gmail.com (Robert Hicks) Date: Fri, 8 Oct 2010 12:04:26 -0400 Subject: [mapserver-users] WMS Request for a single point? In-Reply-To: <4CAEF998.163B.00A8.0@ci.stpaul.mn.us> References: <4CAEF109.163B.00A8.0@ci.stpaul.mn.us> <4CAEF998.163B.00A8.0@ci.stpaul.mn.us> Message-ID: Ah, ok I see what you are saying. Unfortunately it won't always be in the center, but yes, that would make things much simpler. For instance the base map is going to be a county or state outline and the point will be over a single piece of real estate within the county or state. So the point could really be anywhere. On Fri, Oct 8, 2010 at 11:59 AM, Bob Basques wrote: > If you know you are only going to display one point every time, then just > set up a WMS service that has a point (pushpin) displayed in the center > evertime it's called, then you only need to call a separate service to > display the pushpin, everything else will be the same in the call, assuming > you are always centering the point called in the image call. > > bobb > > > >>>> Robert Hicks wrote: > > Thanks Bob, I think the second idea is more for what I am looking at. > The styling (or adding the push pin icon) is already done, I know how > to do that. The bigger issue is requesting the image with the point in > the right location without a backing datastore (or at least one with > the specific point). I suppose I could have a table which I populate > on the fly, but how do I request just that one point from it and not > other points from past requests? > > On Fri, Oct 8, 2010 at 11:23 AM, Bob Basques > wrote: >> There are a couple of ways of doing this, one is to use a Client that >> supports layer stacking in the interface, like GeoMoose or Openlayers, and >> call separate images and then combine them printing.??You would need to >> set >> up the approriate environment for this approach and this might not be cost >> effective to you. >> >> Another approach is to apply a symbol via a Mapserver served WMS service. >>??You could make the WMS call to a specific service name that has the >> PushPin >> inserted into the center of the image (on top of the background layers you >> specify) and already composited for output into a single image.??You would >> need to call this as a separate WMS call however. >> >> Going back to the Layered approach, you can also set up a marking system >> in >> the client where3 the client decide to add the pushpin, and then print >> from >> the client, GeoMoose can accomodate this approach as well, but it's a much >> higher level of implemnentation. >> >> bobb >> >> >> >>>>> Robert Hicks wrote: >> >> Hello all! Ok, this is probably a long shot but, is there a way to >> request an image from Mapserver that is just a point? The idea is I >> have another larger (reference) map image and I want to place a push >> pin on top of it in a specified point. It has to be a WMS call so that >> I can take the image and merge it with the other larger map into one >> so that it can be put into a PDF. Any help would be appreciated. >> >> Thanks! >> >> -- >> web http://www.hyxspace.com >> aim hyx1138 >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> > > > > -- > web http://www.hyxspace.com > aim hyx1138 > -- web http://www.hyxspace.com aim hyx1138 From robhyx at gmail.com Fri Oct 8 09:06:40 2010 From: robhyx at gmail.com (Robert Hicks) Date: Fri, 8 Oct 2010 12:06:40 -0400 Subject: [mapserver-users] WMS Request for a single point? In-Reply-To: References: Message-ID: Ok, that looks extremely promising. I'm going to go ahead and try it on my local Mapserver. On Fri, Oct 8, 2010 at 12:03 PM, thomas bonfort wrote: > have a look at http://www.mail-archive.com/mapserver-users at lists.umn.edu/msg05881.html > > the syntax for cgi commands has changed since then, you'd have to use > something like > &map.layer[site]=feature+points+582248.23+4841497.11+end+end > > or &map.layer[site].feature.points=582248.23+4841497.11 > > (I cant remember what syntax is correct) > > -- > regards, > thomas > > On Fri, Oct 8, 2010 at 17:10, Robert Hicks wrote: >> Hello all! Ok, this is probably a long shot but, is there a way to >> request an image from Mapserver that is just a point? The idea is I >> have another larger (reference) map image and I want to place a push >> pin on top of it in a specified point. It has to be a WMS call so that >> I can take the image and merge it with the other larger map into one >> so that it can be put into a PDF. Any help would be appreciated. >> >> Thanks! >> >> -- >> web http://www.hyxspace.com >> aim hyx1138 >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> > -- web http://www.hyxspace.com aim hyx1138 From thomas.bonfort at gmail.com Fri Oct 8 09:08:13 2010 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Fri, 8 Oct 2010 18:08:13 +0200 Subject: [mapserver-users] WMS Request for a single point? In-Reply-To: References: Message-ID: actually, this is documented here: http://mapserver.org/cgi/controls.html -> Changing map file parameters via a form or a URL -- thomas On Fri, Oct 8, 2010 at 18:06, Robert Hicks wrote: > Ok, that looks extremely promising. I'm going to go ahead and try it > on my local Mapserver. > > On Fri, Oct 8, 2010 at 12:03 PM, thomas bonfort > wrote: >> have a look at http://www.mail-archive.com/mapserver-users at lists.umn.edu/msg05881.html >> >> the syntax for cgi commands has changed since then, you'd have to use >> something like >> &map.layer[site]=feature+points+582248.23+4841497.11+end+end >> >> or &map.layer[site].feature.points=582248.23+4841497.11 >> >> (I cant remember what syntax is correct) >> >> -- >> regards, >> thomas >> >> On Fri, Oct 8, 2010 at 17:10, Robert Hicks wrote: >>> Hello all! Ok, this is probably a long shot but, is there a way to >>> request an image from Mapserver that is just a point? The idea is I >>> have another larger (reference) map image and I want to place a push >>> pin on top of it in a specified point. It has to be a WMS call so that >>> I can take the image and merge it with the other larger map into one >>> so that it can be put into a PDF. Any help would be appreciated. >>> >>> Thanks! >>> >>> -- >>> web http://www.hyxspace.com >>> aim hyx1138 >>> _______________________________________________ >>> mapserver-users mailing list >>> mapserver-users at lists.osgeo.org >>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>> >> > > > > -- > web http://www.hyxspace.com > aim hyx1138 > From David.Fawcett at state.mn.us Fri Oct 8 09:14:30 2010 From: David.Fawcett at state.mn.us (Fawcett, David (MPCA)) Date: Fri, 8 Oct 2010 11:14:30 -0500 Subject: [mapserver-users] WMS Request for a single point? In-Reply-To: References: Message-ID: This example works: http://localhost/cgi-bin/mapserv.exe?map=/ms4w/apps/offset.map&mode=map&map_layer[0]=FEATURE+POINTS+270000+696000+END+END You can access your layer through the layer name or it's (zero-based) index. The simple example layer is below with a simple circle symbol defined in the map file. LAYER NAME 'singlepoint' TYPE point STATUS DEFAULT CLASS STYLE COLOR 255 0 0 SIZE 15 symbol "circle" END END END SYMBOL NAME "circle" TYPE ellipse FILLED true POINTS 1 1 END END -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Robert Hicks Sent: Friday, October 08, 2010 11:07 AM To: thomas bonfort Cc: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] WMS Request for a single point? Ok, that looks extremely promising. I'm going to go ahead and try it on my local Mapserver. On Fri, Oct 8, 2010 at 12:03 PM, thomas bonfort wrote: > have a look at http://www.mail-archive.com/mapserver-users at lists.umn.edu/msg05881.html > > the syntax for cgi commands has changed since then, you'd have to use > something like > &map.layer[site]=feature+points+582248.23+4841497.11+end+end > > or &map.layer[site].feature.points=582248.23+4841497.11 > > (I cant remember what syntax is correct) > > -- > regards, > thomas > > On Fri, Oct 8, 2010 at 17:10, Robert Hicks wrote: >> Hello all! Ok, this is probably a long shot but, is there a way to >> request an image from Mapserver that is just a point? The idea is I >> have another larger (reference) map image and I want to place a push >> pin on top of it in a specified point. It has to be a WMS call so that >> I can take the image and merge it with the other larger map into one >> so that it can be put into a PDF. Any help would be appreciated. >> >> Thanks! >> >> -- >> web http://www.hyxspace.com >> aim hyx1138 >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> > -- web http://www.hyxspace.com aim hyx1138 _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From robhyx at gmail.com Fri Oct 8 09:40:19 2010 From: robhyx at gmail.com (Robert Hicks) Date: Fri, 8 Oct 2010 12:40:19 -0400 Subject: [mapserver-users] WMS Request for a single point? In-Reply-To: References: Message-ID: Great, thanks for all the help everyone! I tried that command: http://10.0.11.54:8008/cgi-bin/mapserv.exe?map=/ms4w/apps/ms_ogc_workshop/client/wms/reference.map&mode=map&map_layer[0]=FEATURE+POINTS+270000+696000+END+END&WIDTH=1000&HEIGHT=500 (I had to change a few things), and I get this error: "msDrawMap(): Image handling error. Unable to initialize image. msPrepareImage(): General error message. Image dimensions not specified. msCalculateScale(): General error message. Invalid image width or height. " Any ideas? On Fri, Oct 8, 2010 at 12:14 PM, Fawcett, David (MPCA) wrote: > This example works: ?http://localhost/cgi-bin/mapserv.exe?map=/ms4w/apps/offset.map&mode=map&map_layer[0]=FEATURE+POINTS+270000+696000+END+END > > You can access your layer through the layer name or it's (zero-based) index. > > The simple example layer is below with a simple circle symbol defined in the map file. > > ?LAYER > ? ?NAME 'singlepoint' > ? ?TYPE point > ? ?STATUS DEFAULT > ? ?CLASS > ? ? ? ?STYLE > ? ? ? ? ? ?COLOR 255 0 0 > ? ? ? ? ? ?SIZE 15 > ? ? ? ? ? ?symbol "circle" > ? ? ? ?END > ? ?END > ? END > > SYMBOL > ?NAME "circle" > ?TYPE ellipse > ?FILLED true > ?POINTS > ? ?1 1 > ?END > END > > > -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Robert Hicks > Sent: Friday, October 08, 2010 11:07 AM > To: thomas bonfort > Cc: mapserver-users at lists.osgeo.org > Subject: Re: [mapserver-users] WMS Request for a single point? > > Ok, that looks extremely promising. I'm going to go ahead and try it > on my local Mapserver. > > On Fri, Oct 8, 2010 at 12:03 PM, thomas bonfort > wrote: >> have a look at http://www.mail-archive.com/mapserver-users at lists.umn.edu/msg05881.html >> >> the syntax for cgi commands has changed since then, you'd have to use >> something like >> &map.layer[site]=feature+points+582248.23+4841497.11+end+end >> >> or &map.layer[site].feature.points=582248.23+4841497.11 >> >> (I cant remember what syntax is correct) >> >> -- >> regards, >> thomas >> >> On Fri, Oct 8, 2010 at 17:10, Robert Hicks wrote: >>> Hello all! Ok, this is probably a long shot but, is there a way to >>> request an image from Mapserver that is just a point? The idea is I >>> have another larger (reference) map image and I want to place a push >>> pin on top of it in a specified point. It has to be a WMS call so that >>> I can take the image and merge it with the other larger map into one >>> so that it can be put into a PDF. Any help would be appreciated. >>> >>> Thanks! >>> >>> -- >>> web http://www.hyxspace.com >>> aim hyx1138 >>> _______________________________________________ >>> mapserver-users mailing list >>> mapserver-users at lists.osgeo.org >>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>> >> > > > > -- > web http://www.hyxspace.com > aim hyx1138 > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > -- web http://www.hyxspace.com aim hyx1138 From Steve.Lime at state.mn.us Fri Oct 8 09:41:49 2010 From: Steve.Lime at state.mn.us (Lime, Steve D (DNR)) Date: Fri, 8 Oct 2010 11:41:49 -0500 Subject: [mapserver-users] WMS Request for a single point? In-Reply-To: References: Message-ID: I think you need: &mapsize=1000+500 Or set it in the mapfile and mapserver will use that. Steve -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Robert Hicks Sent: Friday, October 08, 2010 11:40 AM To: Fawcett, David (MPCA) Cc: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] WMS Request for a single point? Great, thanks for all the help everyone! I tried that command: http://10.0.11.54:8008/cgi-bin/mapserv.exe?map=/ms4w/apps/ms_ogc_workshop/client/wms/reference.map&mode=map&map_layer[0]=FEATURE+POINTS+270000+696000+END+END&WIDTH=1000&HEIGHT=500 (I had to change a few things), and I get this error: "msDrawMap(): Image handling error. Unable to initialize image. msPrepareImage(): General error message. Image dimensions not specified. msCalculateScale(): General error message. Invalid image width or height. " Any ideas? On Fri, Oct 8, 2010 at 12:14 PM, Fawcett, David (MPCA) wrote: > This example works: ?http://localhost/cgi-bin/mapserv.exe?map=/ms4w/apps/offset.map&mode=map&map_layer[0]=FEATURE+POINTS+270000+696000+END+END > > You can access your layer through the layer name or it's (zero-based) index. > > The simple example layer is below with a simple circle symbol defined in the map file. > > ?LAYER > ? ?NAME 'singlepoint' > ? ?TYPE point > ? ?STATUS DEFAULT > ? ?CLASS > ? ? ? ?STYLE > ? ? ? ? ? ?COLOR 255 0 0 > ? ? ? ? ? ?SIZE 15 > ? ? ? ? ? ?symbol "circle" > ? ? ? ?END > ? ?END > ? END > > SYMBOL > ?NAME "circle" > ?TYPE ellipse > ?FILLED true > ?POINTS > ? ?1 1 > ?END > END > > > -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Robert Hicks > Sent: Friday, October 08, 2010 11:07 AM > To: thomas bonfort > Cc: mapserver-users at lists.osgeo.org > Subject: Re: [mapserver-users] WMS Request for a single point? > > Ok, that looks extremely promising. I'm going to go ahead and try it > on my local Mapserver. > > On Fri, Oct 8, 2010 at 12:03 PM, thomas bonfort > wrote: >> have a look at http://www.mail-archive.com/mapserver-users at lists.umn.edu/msg05881.html >> >> the syntax for cgi commands has changed since then, you'd have to use >> something like >> &map.layer[site]=feature+points+582248.23+4841497.11+end+end >> >> or &map.layer[site].feature.points=582248.23+4841497.11 >> >> (I cant remember what syntax is correct) >> >> -- >> regards, >> thomas >> >> On Fri, Oct 8, 2010 at 17:10, Robert Hicks wrote: >>> Hello all! Ok, this is probably a long shot but, is there a way to >>> request an image from Mapserver that is just a point? The idea is I >>> have another larger (reference) map image and I want to place a push >>> pin on top of it in a specified point. It has to be a WMS call so that >>> I can take the image and merge it with the other larger map into one >>> so that it can be put into a PDF. Any help would be appreciated. >>> >>> Thanks! >>> >>> -- >>> web http://www.hyxspace.com >>> aim hyx1138 >>> _______________________________________________ >>> mapserver-users mailing list >>> mapserver-users at lists.osgeo.org >>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>> >> > > > > -- > web http://www.hyxspace.com > aim hyx1138 > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > -- web http://www.hyxspace.com aim hyx1138 _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From thomas.bonfort at gmail.com Fri Oct 8 09:44:06 2010 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Fri, 8 Oct 2010 18:44:06 +0200 Subject: [mapserver-users] WMS Request for a single point? In-Reply-To: References: Message-ID: As you said you were wanting to do a wms call, just append &map_layer[0]=FEATURE+POINTS+270000+696000+END+END to a regular GetMap request -- thomas On Fri, Oct 8, 2010 at 18:40, Robert Hicks wrote: > Great, thanks for all the help everyone! I tried that command: > http://10.0.11.54:8008/cgi-bin/mapserv.exe?map=/ms4w/apps/ms_ogc_workshop/client/wms/reference.map&mode=map&map_layer[0]=FEATURE+POINTS+270000+696000+END+END&WIDTH=1000&HEIGHT=500 > (I had to change a few things), and I get this error: > > "msDrawMap(): Image handling error. Unable to initialize image. > msPrepareImage(): General error message. Image dimensions not > specified. msCalculateScale(): General error message. Invalid image > width or height. " > > Any ideas? > > On Fri, Oct 8, 2010 at 12:14 PM, Fawcett, David (MPCA) > wrote: >> This example works: ?http://localhost/cgi-bin/mapserv.exe?map=/ms4w/apps/offset.map&mode=map&map_layer[0]=FEATURE+POINTS+270000+696000+END+END >> >> You can access your layer through the layer name or it's (zero-based) index. >> >> The simple example layer is below with a simple circle symbol defined in the map file. >> >> ?LAYER >> ? ?NAME 'singlepoint' >> ? ?TYPE point >> ? ?STATUS DEFAULT >> ? ?CLASS >> ? ? ? ?STYLE >> ? ? ? ? ? ?COLOR 255 0 0 >> ? ? ? ? ? ?SIZE 15 >> ? ? ? ? ? ?symbol "circle" >> ? ? ? ?END >> ? ?END >> ? END >> >> SYMBOL >> ?NAME "circle" >> ?TYPE ellipse >> ?FILLED true >> ?POINTS >> ? ?1 1 >> ?END >> END >> >> >> -----Original Message----- >> From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Robert Hicks >> Sent: Friday, October 08, 2010 11:07 AM >> To: thomas bonfort >> Cc: mapserver-users at lists.osgeo.org >> Subject: Re: [mapserver-users] WMS Request for a single point? >> >> Ok, that looks extremely promising. I'm going to go ahead and try it >> on my local Mapserver. >> >> On Fri, Oct 8, 2010 at 12:03 PM, thomas bonfort >> wrote: >>> have a look at http://www.mail-archive.com/mapserver-users at lists.umn.edu/msg05881.html >>> >>> the syntax for cgi commands has changed since then, you'd have to use >>> something like >>> &map.layer[site]=feature+points+582248.23+4841497.11+end+end >>> >>> or &map.layer[site].feature.points=582248.23+4841497.11 >>> >>> (I cant remember what syntax is correct) >>> >>> -- >>> regards, >>> thomas >>> >>> On Fri, Oct 8, 2010 at 17:10, Robert Hicks wrote: >>>> Hello all! Ok, this is probably a long shot but, is there a way to >>>> request an image from Mapserver that is just a point? The idea is I >>>> have another larger (reference) map image and I want to place a push >>>> pin on top of it in a specified point. It has to be a WMS call so that >>>> I can take the image and merge it with the other larger map into one >>>> so that it can be put into a PDF. Any help would be appreciated. >>>> >>>> Thanks! >>>> >>>> -- >>>> web http://www.hyxspace.com >>>> aim hyx1138 >>>> _______________________________________________ >>>> mapserver-users mailing list >>>> mapserver-users at lists.osgeo.org >>>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>>> >>> >> >> >> >> -- >> web http://www.hyxspace.com >> aim hyx1138 >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> >> >> > > > > -- > web http://www.hyxspace.com > aim hyx1138 > From robhyx at gmail.com Fri Oct 8 11:30:43 2010 From: robhyx at gmail.com (Robert Hicks) Date: Fri, 8 Oct 2010 14:30:43 -0400 Subject: [mapserver-users] WMS Request for a single point? In-Reply-To: References: Message-ID: Ok great! So that gave me an image with a push pin on it. So here is another question: what is the bounding box of the requested image, and can I specify it? I need to be able to merge this image together with another GeoTiff (preferably using gdalmerge) so that the point lands on the same geographic location in the base image. The original image is in EPSG 4326, and I'm not sure what units of measurement this call is using. I tried requesting the point layer as a tif but I think it just gave me a regular non geotiff, which is fine because I can update the header using gdal_translate but I need to know the bounding box in 4326. On Fri, Oct 8, 2010 at 12:41 PM, Lime, Steve D (DNR) wrote: > I think you need: > > ?&mapsize=1000+500 > > Or set it in the mapfile and mapserver will use that. > > Steve > > -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Robert Hicks > Sent: Friday, October 08, 2010 11:40 AM > To: Fawcett, David (MPCA) > Cc: mapserver-users at lists.osgeo.org > Subject: Re: [mapserver-users] WMS Request for a single point? > > Great, thanks for all the help everyone! I tried that command: > http://10.0.11.54:8008/cgi-bin/mapserv.exe?map=/ms4w/apps/ms_ogc_workshop/client/wms/reference.map&mode=map&map_layer[0]=FEATURE+POINTS+270000+696000+END+END&WIDTH=1000&HEIGHT=500 > (I had to change a few things), and I get this error: > > "msDrawMap(): Image handling error. Unable to initialize image. > msPrepareImage(): General error message. Image dimensions not > specified. msCalculateScale(): General error message. Invalid image > width or height. " > > Any ideas? > > On Fri, Oct 8, 2010 at 12:14 PM, Fawcett, David (MPCA) > wrote: >> This example works: ?http://localhost/cgi-bin/mapserv.exe?map=/ms4w/apps/offset.map&mode=map&map_layer[0]=FEATURE+POINTS+270000+696000+END+END >> >> You can access your layer through the layer name or it's (zero-based) index. >> >> The simple example layer is below with a simple circle symbol defined in the map file. >> >> ?LAYER >> ? ?NAME 'singlepoint' >> ? ?TYPE point >> ? ?STATUS DEFAULT >> ? ?CLASS >> ? ? ? ?STYLE >> ? ? ? ? ? ?COLOR 255 0 0 >> ? ? ? ? ? ?SIZE 15 >> ? ? ? ? ? ?symbol "circle" >> ? ? ? ?END >> ? ?END >> ? END >> >> SYMBOL >> ?NAME "circle" >> ?TYPE ellipse >> ?FILLED true >> ?POINTS >> ? ?1 1 >> ?END >> END >> >> >> -----Original Message----- >> From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Robert Hicks >> Sent: Friday, October 08, 2010 11:07 AM >> To: thomas bonfort >> Cc: mapserver-users at lists.osgeo.org >> Subject: Re: [mapserver-users] WMS Request for a single point? >> >> Ok, that looks extremely promising. I'm going to go ahead and try it >> on my local Mapserver. >> >> On Fri, Oct 8, 2010 at 12:03 PM, thomas bonfort >> wrote: >>> have a look at http://www.mail-archive.com/mapserver-users at lists.umn.edu/msg05881.html >>> >>> the syntax for cgi commands has changed since then, you'd have to use >>> something like >>> &map.layer[site]=feature+points+582248.23+4841497.11+end+end >>> >>> or &map.layer[site].feature.points=582248.23+4841497.11 >>> >>> (I cant remember what syntax is correct) >>> >>> -- >>> regards, >>> thomas >>> >>> On Fri, Oct 8, 2010 at 17:10, Robert Hicks wrote: >>>> Hello all! Ok, this is probably a long shot but, is there a way to >>>> request an image from Mapserver that is just a point? The idea is I >>>> have another larger (reference) map image and I want to place a push >>>> pin on top of it in a specified point. It has to be a WMS call so that >>>> I can take the image and merge it with the other larger map into one >>>> so that it can be put into a PDF. Any help would be appreciated. >>>> >>>> Thanks! >>>> >>>> -- >>>> web http://www.hyxspace.com >>>> aim hyx1138 >>>> _______________________________________________ >>>> mapserver-users mailing list >>>> mapserver-users at lists.osgeo.org >>>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>>> >>> >> >> >> >> -- >> web http://www.hyxspace.com >> aim hyx1138 >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> >> >> > > > > -- > web http://www.hyxspace.com > aim hyx1138 > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > -- web http://www.hyxspace.com aim hyx1138 From j.l.h.hartmann at uva.nl Fri Oct 8 11:56:20 2010 From: j.l.h.hartmann at uva.nl (Jan Hartmann) Date: Fri, 08 Oct 2010 20:56:20 +0200 Subject: [mapserver-users] Shell-script to compile MapServer in a user directory tree Message-ID: <4CAF6954.80301@uva.nl> Hi all, The last few months I have been working in a Cloud environment with lots of virtual machines, all with MapServer, PostGIS and PL/R. I couldn't work with binaries, since different sites needed different configurations. It's not difficult to compile MapServer once you have done it a few times, but it becomes boring if you need to do it dozens of times. So I made a shell-script that on the one hand compiles the whole MapServer-PostGIS-PLR suite with one command, but leaves the possibility to adapt every configuration parameter. Everything is done at the user level: no super user rights are needed, no system files are changed, and the whole installation takes place within a single directory tree. Multiple installations can coexist on the same computer. You can find it, together with instructions, at: http://mapserver.sara.nl/Install I tried out four different configurations on dozens of virtual machines, installed from standard distribution DVD's: Debian, Fedora, Suse and the OSGEO Live CD (Xubuntu) , so I'm reasonably sure it works on fresh, modern installation. Older and much-used systems could give trouble, although I don't expect many problems there either. Let me know if this is useful for you and how it could be ameliorated. Jan -------------- next part -------------- An HTML attachment was scrubbed... URL: From ivan.mincik at gmail.com Fri Oct 8 12:43:20 2010 From: ivan.mincik at gmail.com (Ivan Mincik) Date: Fri, 8 Oct 2010 21:43:20 +0200 Subject: [mapserver-users] Shell-script to compile MapServer in a user directory tree In-Reply-To: <4CAF6954.80301@uva.nl> References: <4CAF6954.80301@uva.nl> Message-ID: On Fri, Oct 8, 2010 at 8:56 PM, Jan Hartmann wrote: > Hi all, > > The last few months I have been working in a Cloud environment with lots of > virtual machines, all with MapServer, PostGIS and PL/R. I couldn't work with > binaries, since different sites needed different configurations. It's not > difficult to compile MapServer once you have done it a few times, but it > becomes boring if you need to do it dozens of times. So I made a > shell-script that on the one hand compiles the whole MapServer-PostGIS-PLR > suite with one command, but leaves the possibility to adapt every > configuration parameter. Everything is done at the user level: no super user > rights are needed, no system files are changed, and the whole installation > takes place within a single directory tree. Multiple installations can > coexist on the same computer.? You can find it, together with instructions, > at: > > http://mapserver.sara.nl/Install > > I tried out four different configurations on dozens of virtual machines, > installed from standard distribution DVD's: Debian, Fedora, Suse and the > OSGEO Live CD (Xubuntu) , so I'm reasonably sure it works on fresh, modern > installation. Older and much-used systems could give trouble, although I > don't expect many problems there either. Let me know if this is useful for > you and how it could be? ameliorated. Jan, thanks for sharing this nice idea. Ivan From yves.jacolin at camptocamp.com Mon Oct 11 00:29:51 2010 From: yves.jacolin at camptocamp.com (Yves Jacolin) Date: Mon, 11 Oct 2010 09:29:51 +0200 Subject: [mapserver-users] Problem with wfs.php In-Reply-To: References: Message-ID: <201010110929.51990.yves.jacolin@camptocamp.com> Le mardi 05 octobre 2010 09:22:57, Rahkonen Jukka a ?crit : > Hi, > > Your request is about 7033 characters long. I would have a try with a much > more simple geometry (but still a polygon with hole) for seeing if the > real problem is in the length of the request string. > > -Jukka Rahkonen- > > > ________________________________ > > L?hett?j?: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] Puolesta Richard LEHAUT > L?hetetty: 5. lokakuuta 2010 10:19 > Vastaanottaja: mapserver-users at lists.osgeo.org > Aihe: [mapserver-users] Problem with wfs.php > > > Hi, > This url returns me an error: > > http://ws.carmen.developpement- durable.gouv.fr/WFS/8/nature?&VERSION=1.0.0 > &SERVICE=WFS&REQUEST=GetFeature&TYPENAME=ZNIEFF_de_type_1&FILTER= ntersect>Geometry ryIs>(526467,6821671 526471,6821675 > 526480,6821677 526482,6821676 526491,6821679 526490,6821682 526546,6821697 > 526615,6821701 526616,6821699 526627,6821699 526628,6821702 526708,6821705 > 526804,6821709 526821,6821701 526886,6821665 526916,6821658 526933,6821616 > 526961,6821574 526969,6821565 526982,6821513 526833,6821533 526833,6821517 > 526813,6821513 526801,6821508 526749,6821480 526732,6821469 526718,6821484 > 526688,6821481 526616,6821481 526620,6821448 526584,6821438 526547,6821401 > 526545,6821397 526533,6821376 526455,6821381 526453,6821379 526409,6821377 > 526415,6821415 526429,6821499 526440,6821569 526377,6821567 526362,6821463 > 526357,6821393 526359,6821371 526360,6821362 526365,6821332 526325,6821292 > 526315,6821308 526302,6821322 526296,6821325 526277,6821347 526286,6821417 > 526286,6821447 526295,6821516 526303,6821549 526308,6821569 526314,6821571 > 526320,6821578 526328,6821580 526340,6821589 526381,6821619 526466,6821673 > 526467,6821671 526467,6821671) (526489,6821639 526492,6821655 > 526493,6821655 526489,6821639 526489,6821639) (526467,6821588 > 526466,6821586 526464,6821585 526467,6821588 526467,6821588) > (526479,6821603 526478,6821601 526477,6821599 526479,6821603 > 526479,6821603) (526489,6821639 526489,6821639 526486,6821627 > 526489,6821639 526489,6821639)) ((527187,6822859 527158,6822860 > 527138,6822862 527110,6822871 527104,6822873 527098,6822871 527054,6822879 > 527003,6822885 526998,6822885 526995,6822885 526972,6822882 526964,6822889 > 526955,6822894 526935,6822910 526922,6822929 526916,6822946 526910,6822973 > 526917,6822980 526917,6822987 526915,6823010 526942,6823015 526943,6823045 > 526945,6823052 526948,6823056 526956,6823059 526969,6823073 526973,6823081 > 526975,6823094 526970,6823097 526971,6823102 526987,6823123 527004,6823131 > 527019,6823103 527050,6823109 527134,6823120 527137,6823099 527133,6823084 > 527134,6823050 527190,6823074 527199,6823016 527220,6823014 527213,6822861 > 527204,6822860 527187,6822859 527187,6822859) (527114,6823008 > 527114,6823001 527071,6822980 527059,6822982 527050,6822978 527032,6822968 > 527024,6823072 527047,6823070 527043,6823034 527049,6822983 527068,6822984 > 527114,6823008 527114,6823008) (527112,6822930 527115,6822933 > 527118,6822943 527118,6822947 527119,6822955 527124,6822954 527123,6822945 > 527119,6822930 527115,6822925 527112,6822930 527112,6822930)) > ((526685,6821896 526737,6821974 526766,6822042 526771,6822072 > 526782,6822030 526808,6821981 526869,6821901 526875,6821889 526909,6821797 > 526908,6821779 526900,6821771 526832,6821727 526812,6821722 526787,6821720 > 526785,6821761 526666,6821870 526685,6821896 526685,6821896)) > ((527009,6822654 527076,6822645 527077,6822629 527076,6822611 > 527076,6822608 527079,6822589 527070,6822587 527063,6822589 527038,6822623 > 527012,6822641 527009,6822649 527007,6822650 527002,6822652 526984,6822657 > 526953,6822666 526917,6822684 526898,6822697 526901,6822703 526949,6822680 > 526958,6822701 526927,6822716 526946,6822718 526955,6822714 526961,6822709 > 526980,6822748 526988,6822809 526997,6822811 527002,6822843 527040,6822877 > 527052,6822875 527086,6822868 527100,6822860 527104,6822849 527107,6822845 > 527113,6822839 527120,6822826 527134,6822803 527147,6822771 527160,6822720 > 527168,6822679 527153,6822679 527132,6822678 527079,6822677 527012,6822671 > 527009,6822654 527009,6822654)) ((527249,6822166 527250,6822157 > 527257,6822142 527274,6822104 527280,6822079 527265,6822097 527230,6822148 > 527205,6822195 527179,6822230 527163,6822262 527205,6822288 527251,6822297 > 527270,6822298 527334,6822298 527376,6822304 527391,6822304 527503,6822328 > 527554,6822333 527572,6822322 527548,6822299 527542,6822296 527545,6822281 > 527391,6822246 527282,6822211 527218,6822199 527249,6822166 > 527249,6822166)) ((526821,6822064 526901,6822093 526939,6822084 > 526962,6822085 526985,6822075 527018,6822113 527046,6822155 527068,6822140 > 527064,6822093 527061,6822073 527051,6822041 527024,6821996 526906,6821995 > 526896,6821998 526889,6822002 526868,6822015 526852,6822029 526821,6822064 > 526821,6822064)) ((527082,6822584 527086,6822573 527091,6822566 > 527073,6822564 527065,6822561 527046,6822526 527047,6822455 527052,6822410 > 527053,6822381 527038,6822382 527036,6822378 526966,6822403 526967,6822435 > 526972,6822476 526983,6822538 527010,6822639 527032,6822623 527036,6822619 > 527055,6822594 527060,6822586 527066,6822584 527081,6822585 527082,6822584 > 527082,6822584)) ((526546,6821979 526549,6822025 526551,6822040 > 526563,6822075 526684,6822011 526655,6821986 526614,6821947 526680,6821898 > 526664,6821872 526662,6821873 526546,6821979 526546,6821979)) > ((527014,6821959 527090,6821938 527116,6821929 527112,6821927 > 527110,6821928 527103,6821924 527104,6821920 527060,6821893 527019,6821865 > 527017,6821866 527006,6821858 527008,6821855 526927,6821792 526923,6821792 > 526922,6821794 526924,6821803 526984,6821906 527006,6821947 527014,6821959 > 527014,6821959)) ((527170,6822232 527134,6822195 527134,6822164 > 527129,6822155 527102,6822120 527073,6822133 527074,6822170 527083,6822210 > 527123,6822234 527156,6822262 527170,6822232 527170,6822232)) > ((526582,6822099 526581,6822099 526584,6822100 526592,6822098 > 526600,6822099 526626,6822130 526741,6822056 526740,6822052 526704,6822025 > 526582,6822099 526582,6822099)) ((527461,6822398 527434,6822522 > 527484,6822557 527504,6822464 527472,6822443 527472,6822435 527489,6822377 > 527461,6822398 527461,6822398)) ((527423,6822716 527345,6822691 > 527339,6822710 527302,6822693 527289,6822721 527396,6822770 527414,6822736 > 527423,6822716 527423,6822716)) ((527726,6822272 527788,6822255 > 527792,6822219 527799,6822180 527817,6822133 527792,6822152 527774,6822172 > 527747,6822196 527727,6822269 527726,6822272 527726,6822272)) > ((527835,6823091 527845,6823121 527847,6823122 527871,6823117 > 527904,6823102 527896,6823091 527911,6823082 527889,6823053 527858,6823079 > 527835,6823091 527835,6823091)) ((527129,6822598 527125,6822597 > 527154,6822653 527171,6822677 527210,6822631 527129,6822598 > 527129,6822598)) ((527184,6822670 527176,6822681 527190,6822695 > 527236,6822770 527269,6822749 527184,6822670 527184,6822670)) > ((526719,6821400 526751,6821412 526776,6821372 526747,6821327 > 526719,6821400 526719,6821400)) ((527143,6822790 527141,6822795 > 527133,6822810 527128,6822819 527124,6822825 527117,6822840 527110,6822846 > 527107,6822851 527103,6822862 527106,6822865 527110,6822865 527139,6822859 > 527135,6822836 527160,6822831 527174,6822853 527177,6822854 527187,6822855 > 527164,6822818 527143,6822790 527143,6822790)) ((527423,6822716 > 527420,6822725 527449,6822734 527480,6822692 527430,6822672 527428,6822676 > 527431,6822697 527423,6822716 527423,6822716)) ((526654,6822160 > 526675,6822186 526685,6822193 526698,6822175 526692,6822165 526679,6822144 > 526654,6822160 > 526654,6822160) gml:Polygon> > > The FilterEnconding uses a complex geometry (polygon with hole). With a > simple geometry, it's correct. The error message is : > > Warning: > file_get_contents(http://ws.carmen.developpement-durable.gouv.fr/cgi-bin/m > apserv?service_idx=8&map=%2Fmnt%2Fdata_carmen%2FBN%2FPublication%2Fwms_natu > re.map&VERSION=1.0.0&SERVICE=WFS&REQUEST=GetFeature&TYPENAME=ZNIEFF_de_type > _1&FILTER=%3CFilter%3E%3CIntersect%3E%3CPropertyName%3EGeometry%3C%2FProper > tyName%3E%3Cgml%3APolygon%3E%3Cgml%3AouterBoundaryIs%3E%3Cgml%3ALinearRing% > 3E%3Cgml%3Acoordinates%3E%28526467%2C6821671%20526471%2C6821675%20526480%2C > 6821677%20526482%2C6821676%20526491%2C6821679%20526490%2C6821682%20526546%2 > C6821697%20526615%2C6821701%20526616%2C6821699%20526627%2C6821699%20526628% > 2C6821702%20526708%2C6821705%20526804%2C6821709%20526821%2C6821701%20526886 > %2C6821665%20526916%2C6821658%20526933%2C6821616%20526961%2C6821574%2052696 > 9%2C6821565%20526982%2C6821513%20526833%2C6821533%20526833%2C6821517%205268 > 13%2C6821513%20526801%2C6821508%20526749%2C6821480%20526732%2C6821469%20526 > 718%2C6821484%20526688%2C6821481%20526616%2C6821481%20526620%2C6821448%2052 > 6584%2C6821438%20526547%2C in /applications/www/carmen/WFS/wfs.php on line > 66 Warning: Cannot modify header information - headers already sent by > (output started at /applications/www/carmen/WFS/wfs.php:66) in > /applications/www/carmen/WFS/wfs.php on line 91 > > Thank you for your help. > > Tiolebucheron Richard, The url length matter as IE or Ffox has a (different) limitation. If you want to use such geometry you have to use a POST method which is not limited. Regards, Y. -- Yves Jacolin Responsable Formation et Support Camptocamp France SAS Savoie Technolac, BP 352 73377 Le Bourget du Lac, Cedex Tel (France) : +33 4 79 26 57 98 Tel (Suisse) : +41 21 619 1031 Mob. : +33 6 18 75 42 21 Fax : 04 79 70 15 81 Mail : yves.jacolin at camptocamp.com http://www.camptocamp.com From richard.lehaut at gmail.com Mon Oct 11 00:39:39 2010 From: richard.lehaut at gmail.com (Richard LEHAUT) Date: Mon, 11 Oct 2010 09:39:39 +0200 Subject: [mapserver-users] Problem with wfs.php In-Reply-To: <201010110929.51990.yves.jacolin@camptocamp.com> References: <201010110929.51990.yves.jacolin@camptocamp.com> Message-ID: Hi, I searched a example without success. I use php to query the server. Thanks for your help Richard LEHAUT / Tiolebucheron 2010/10/11 Yves Jacolin > Le mardi 05 octobre 2010 09:22:57, Rahkonen Jukka a ?crit : > > Hi, > > > > Your request is about 7033 characters long. I would have a try with a > much > > more simple geometry (but still a polygon with hole) for seeing if the > > real problem is in the length of the request string. > > > > -Jukka Rahkonen- > > > > > > ________________________________ > > > > L?hett?j?: mapserver-users-bounces at lists.osgeo.org > > [mailto:mapserver-users-bounces at lists.osgeo.org] Puolesta Richard LEHAUT > > L?hetetty: 5. lokakuuta 2010 10:19 > > Vastaanottaja: mapserver-users at lists.osgeo.org > > Aihe: [mapserver-users] Problem with wfs.php > > > > > > Hi, > > This url returns me an error: > > > > http://ws.carmen.developpement- > durable.gouv.fr/WFS/8/nature?&VERSION=1.0.0 > > > &SERVICE=WFS&REQUEST=GetFeature&TYPENAME=ZNIEFF_de_type_1&FILTER= > > ntersect>Geometry > ryIs>(526467,6821671 526471,6821675 > > 526480,6821677 526482,6821676 526491,6821679 526490,6821682 > 526546,6821697 > > 526615,6821701 526616,6821699 526627,6821699 526628,6821702 > 526708,6821705 > > 526804,6821709 526821,6821701 526886,6821665 526916,6821658 > 526933,6821616 > > 526961,6821574 526969,6821565 526982,6821513 526833,6821533 > 526833,6821517 > > 526813,6821513 526801,6821508 526749,6821480 526732,6821469 > 526718,6821484 > > 526688,6821481 526616,6821481 526620,6821448 526584,6821438 > 526547,6821401 > > 526545,6821397 526533,6821376 526455,6821381 526453,6821379 > 526409,6821377 > > 526415,6821415 526429,6821499 526440,6821569 526377,6821567 > 526362,6821463 > > 526357,6821393 526359,6821371 526360,6821362 526365,6821332 > 526325,6821292 > > 526315,6821308 526302,6821322 526296,6821325 526277,6821347 > 526286,6821417 > > 526286,6821447 526295,6821516 526303,6821549 526308,6821569 > 526314,6821571 > > 526320,6821578 526328,6821580 526340,6821589 526381,6821619 > 526466,6821673 > > 526467,6821671 526467,6821671) (526489,6821639 526492,6821655 > > 526493,6821655 526489,6821639 526489,6821639) (526467,6821588 > > 526466,6821586 526464,6821585 526467,6821588 526467,6821588) > > (526479,6821603 526478,6821601 526477,6821599 526479,6821603 > > 526479,6821603) (526489,6821639 526489,6821639 526486,6821627 > > 526489,6821639 526489,6821639)) ((527187,6822859 527158,6822860 > > 527138,6822862 527110,6822871 527104,6822873 527098,6822871 > 527054,6822879 > > 527003,6822885 526998,6822885 526995,6822885 526972,6822882 > 526964,6822889 > > 526955,6822894 526935,6822910 526922,6822929 526916,6822946 > 526910,6822973 > > 526917,6822980 526917,6822987 526915,6823010 526942,6823015 > 526943,6823045 > > 526945,6823052 526948,6823056 526956,6823059 526969,6823073 > 526973,6823081 > > 526975,6823094 526970,6823097 526971,6823102 526987,6823123 > 527004,6823131 > > 527019,6823103 527050,6823109 527134,6823120 527137,6823099 > 527133,6823084 > > 527134,6823050 527190,6823074 527199,6823016 527220,6823014 > 527213,6822861 > > 527204,6822860 527187,6822859 527187,6822859) (527114,6823008 > > 527114,6823001 527071,6822980 527059,6822982 527050,6822978 > 527032,6822968 > > 527024,6823072 527047,6823070 527043,6823034 527049,6822983 > 527068,6822984 > > 527114,6823008 527114,6823008) (527112,6822930 527115,6822933 > > 527118,6822943 527118,6822947 527119,6822955 527124,6822954 > 527123,6822945 > > 527119,6822930 527115,6822925 527112,6822930 527112,6822930)) > > ((526685,6821896 526737,6821974 526766,6822042 526771,6822072 > > 526782,6822030 526808,6821981 526869,6821901 526875,6821889 > 526909,6821797 > > 526908,6821779 526900,6821771 526832,6821727 526812,6821722 > 526787,6821720 > > 526785,6821761 526666,6821870 526685,6821896 526685,6821896)) > > ((527009,6822654 527076,6822645 527077,6822629 527076,6822611 > > 527076,6822608 527079,6822589 527070,6822587 527063,6822589 > 527038,6822623 > > 527012,6822641 527009,6822649 527007,6822650 527002,6822652 > 526984,6822657 > > 526953,6822666 526917,6822684 526898,6822697 526901,6822703 > 526949,6822680 > > 526958,6822701 526927,6822716 526946,6822718 526955,6822714 > 526961,6822709 > > 526980,6822748 526988,6822809 526997,6822811 527002,6822843 > 527040,6822877 > > 527052,6822875 527086,6822868 527100,6822860 527104,6822849 > 527107,6822845 > > 527113,6822839 527120,6822826 527134,6822803 527147,6822771 > 527160,6822720 > > 527168,6822679 527153,6822679 527132,6822678 527079,6822677 > 527012,6822671 > > 527009,6822654 527009,6822654)) ((527249,6822166 527250,6822157 > > 527257,6822142 527274,6822104 527280,6822079 527265,6822097 > 527230,6822148 > > 527205,6822195 527179,6822230 527163,6822262 527205,6822288 > 527251,6822297 > > 527270,6822298 527334,6822298 527376,6822304 527391,6822304 > 527503,6822328 > > 527554,6822333 527572,6822322 527548,6822299 527542,6822296 > 527545,6822281 > > 527391,6822246 527282,6822211 527218,6822199 527249,6822166 > > 527249,6822166)) ((526821,6822064 526901,6822093 526939,6822084 > > 526962,6822085 526985,6822075 527018,6822113 527046,6822155 > 527068,6822140 > > 527064,6822093 527061,6822073 527051,6822041 527024,6821996 > 526906,6821995 > > 526896,6821998 526889,6822002 526868,6822015 526852,6822029 > 526821,6822064 > > 526821,6822064)) ((527082,6822584 527086,6822573 527091,6822566 > > 527073,6822564 527065,6822561 527046,6822526 527047,6822455 > 527052,6822410 > > 527053,6822381 527038,6822382 527036,6822378 526966,6822403 > 526967,6822435 > > 526972,6822476 526983,6822538 527010,6822639 527032,6822623 > 527036,6822619 > > 527055,6822594 527060,6822586 527066,6822584 527081,6822585 > 527082,6822584 > > 527082,6822584)) ((526546,6821979 526549,6822025 526551,6822040 > > 526563,6822075 526684,6822011 526655,6821986 526614,6821947 > 526680,6821898 > > 526664,6821872 526662,6821873 526546,6821979 526546,6821979)) > > ((527014,6821959 527090,6821938 527116,6821929 527112,6821927 > > 527110,6821928 527103,6821924 527104,6821920 527060,6821893 > 527019,6821865 > > 527017,6821866 527006,6821858 527008,6821855 526927,6821792 > 526923,6821792 > > 526922,6821794 526924,6821803 526984,6821906 527006,6821947 > 527014,6821959 > > 527014,6821959)) ((527170,6822232 527134,6822195 527134,6822164 > > 527129,6822155 527102,6822120 527073,6822133 527074,6822170 > 527083,6822210 > > 527123,6822234 527156,6822262 527170,6822232 527170,6822232)) > > ((526582,6822099 526581,6822099 526584,6822100 526592,6822098 > > 526600,6822099 526626,6822130 526741,6822056 526740,6822052 > 526704,6822025 > > 526582,6822099 526582,6822099)) ((527461,6822398 527434,6822522 > > 527484,6822557 527504,6822464 527472,6822443 527472,6822435 > 527489,6822377 > > 527461,6822398 527461,6822398)) ((527423,6822716 527345,6822691 > > 527339,6822710 527302,6822693 527289,6822721 527396,6822770 > 527414,6822736 > > 527423,6822716 527423,6822716)) ((527726,6822272 527788,6822255 > > 527792,6822219 527799,6822180 527817,6822133 527792,6822152 > 527774,6822172 > > 527747,6822196 527727,6822269 527726,6822272 527726,6822272)) > > ((527835,6823091 527845,6823121 527847,6823122 527871,6823117 > > 527904,6823102 527896,6823091 527911,6823082 527889,6823053 > 527858,6823079 > > 527835,6823091 527835,6823091)) ((527129,6822598 527125,6822597 > > 527154,6822653 527171,6822677 527210,6822631 527129,6822598 > > 527129,6822598)) ((527184,6822670 527176,6822681 527190,6822695 > > 527236,6822770 527269,6822749 527184,6822670 527184,6822670)) > > ((526719,6821400 526751,6821412 526776,6821372 526747,6821327 > > 526719,6821400 526719,6821400)) ((527143,6822790 527141,6822795 > > 527133,6822810 527128,6822819 527124,6822825 527117,6822840 > 527110,6822846 > > 527107,6822851 527103,6822862 527106,6822865 527110,6822865 > 527139,6822859 > > 527135,6822836 527160,6822831 527174,6822853 527177,6822854 > 527187,6822855 > > 527164,6822818 527143,6822790 527143,6822790)) ((527423,6822716 > > 527420,6822725 527449,6822734 527480,6822692 527430,6822672 > 527428,6822676 > > 527431,6822697 527423,6822716 527423,6822716)) ((526654,6822160 > > 526675,6822186 526685,6822193 526698,6822175 526692,6822165 > 526679,6822144 > > 526654,6822160 > > > 526654,6822160) > gml:Polygon> > > > > The FilterEnconding uses a complex geometry (polygon with hole). > With a > > simple geometry, it's correct. The error message is : > > > > Warning: > > file_get_contents( > http://ws.carmen.developpement-durable.gouv.fr/cgi-bin/m > > > apserv?service_idx=8&map=%2Fmnt%2Fdata_carmen%2FBN%2FPublication%2Fwms_natu > > > re.map&VERSION=1.0.0&SERVICE=WFS&REQUEST=GetFeature&TYPENAME=ZNIEFF_de_type > > > _1&FILTER=%3CFilter%3E%3CIntersect%3E%3CPropertyName%3EGeometry%3C%2FProper > > > tyName%3E%3Cgml%3APolygon%3E%3Cgml%3AouterBoundaryIs%3E%3Cgml%3ALinearRing% > > > 3E%3Cgml%3Acoordinates%3E%28526467%2C6821671%20526471%2C6821675%20526480%2C > > > 6821677%20526482%2C6821676%20526491%2C6821679%20526490%2C6821682%20526546%2 > > > C6821697%20526615%2C6821701%20526616%2C6821699%20526627%2C6821699%20526628% > > > 2C6821702%20526708%2C6821705%20526804%2C6821709%20526821%2C6821701%20526886 > > > %2C6821665%20526916%2C6821658%20526933%2C6821616%20526961%2C6821574%2052696 > > > 9%2C6821565%20526982%2C6821513%20526833%2C6821533%20526833%2C6821517%205268 > > > 13%2C6821513%20526801%2C6821508%20526749%2C6821480%20526732%2C6821469%20526 > > > 718%2C6821484%20526688%2C6821481%20526616%2C6821481%20526620%2C6821448%2052 > > 6584%2C6821438%20526547%2C in /applications/www/carmen/WFS/wfs.php on > line > > 66 Warning: Cannot modify header information - headers already sent by > > (output started at /applications/www/carmen/WFS/wfs.php:66) in > > /applications/www/carmen/WFS/wfs.php on line 91 > > > > Thank you for your help. > > > > Tiolebucheron > Richard, > > The url length matter as IE or Ffox has a (different) limitation. If you > want > to use such geometry you have to use a POST method which is not limited. > > Regards, > > Y. > -- > Yves Jacolin > > Responsable Formation et Support > Camptocamp France SAS > Savoie Technolac, BP 352 > 73377 Le Bourget du Lac, Cedex > > Tel (France) : +33 4 79 26 57 98 > Tel (Suisse) : +41 21 619 1031 > Mob. : +33 6 18 75 42 21 > Fax : 04 79 70 15 81 > Mail : yves.jacolin at camptocamp.com > http://www.camptocamp.com > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -------------- next part -------------- An HTML attachment was scrubbed... URL: From yves.jacolin at camptocamp.com Mon Oct 11 00:44:54 2010 From: yves.jacolin at camptocamp.com (Yves Jacolin) Date: Mon, 11 Oct 2010 09:44:54 +0200 Subject: [mapserver-users] Problem with wfs.php In-Reply-To: References: <201010110929.51990.yves.jacolin@camptocamp.com> Message-ID: <201010110944.55247.yves.jacolin@camptocamp.com> Hi, Don't use file_get_contents but cURL rather: http://www.php.net/manual/fr/function.curl-setopt-array.php Regards, Y. Le lundi 11 octobre 2010 09:39:39, Richard LEHAUT a ?crit : > Hi, > I searched a example without success. I use php to query the server. > > Thanks for your help > > Richard LEHAUT / Tiolebucheron > > > 2010/10/11 Yves Jacolin > > > Le mardi 05 octobre 2010 09:22:57, Rahkonen Jukka a ?crit : > > > Hi, > > > > > > Your request is about 7033 characters long. I would have a try with a > > > > much > > > > > more simple geometry (but still a polygon with hole) for seeing if the > > > real problem is in the length of the request string. > > > > > > -Jukka Rahkonen- > > > > > > > > > ________________________________ > > > > > > L?hett?j?: mapserver-users-bounces at lists.osgeo.org > > > > > > [mailto:mapserver-users-bounces at lists.osgeo.org] Puolesta Richard > > > LEHAUT L?hetetty: 5. lokakuuta 2010 10:19 > > > > > > Vastaanottaja: mapserver-users at lists.osgeo.org > > > Aihe: [mapserver-users] Problem with wfs.php > > > > > > > > > Hi, > > > This url returns me an error: > > > > > > http://ws.carmen.developpement- > > > > durable.gouv.fr/WFS/8/nature?&VERSION=1.0.0 > > > > &SERVICE=WFS&REQUEST=GetFeature&TYPENAME=ZNIEFF_de_type_1&FILTER= > > > > > ntersect>Geometry > da > > > > > ryIs>(526467,6821671 526471,6821675 > > > 526480,6821677 526482,6821676 526491,6821679 526490,6821682 > > > > 526546,6821697 > > > > > 526615,6821701 526616,6821699 526627,6821699 526628,6821702 > > > > 526708,6821705 > > > > > 526804,6821709 526821,6821701 526886,6821665 526916,6821658 > > > > 526933,6821616 > > > > > 526961,6821574 526969,6821565 526982,6821513 526833,6821533 > > > > 526833,6821517 > > > > > 526813,6821513 526801,6821508 526749,6821480 526732,6821469 > > > > 526718,6821484 > > > > > 526688,6821481 526616,6821481 526620,6821448 526584,6821438 > > > > 526547,6821401 > > > > > 526545,6821397 526533,6821376 526455,6821381 526453,6821379 > > > > 526409,6821377 > > > > > 526415,6821415 526429,6821499 526440,6821569 526377,6821567 > > > > 526362,6821463 > > > > > 526357,6821393 526359,6821371 526360,6821362 526365,6821332 > > > > 526325,6821292 > > > > > 526315,6821308 526302,6821322 526296,6821325 526277,6821347 > > > > 526286,6821417 > > > > > 526286,6821447 526295,6821516 526303,6821549 526308,6821569 > > > > 526314,6821571 > > > > > 526320,6821578 526328,6821580 526340,6821589 526381,6821619 > > > > 526466,6821673 > > > > > 526467,6821671 526467,6821671) (526489,6821639 526492,6821655 > > > 526493,6821655 526489,6821639 526489,6821639) (526467,6821588 > > > 526466,6821586 526464,6821585 526467,6821588 526467,6821588) > > > (526479,6821603 526478,6821601 526477,6821599 526479,6821603 > > > 526479,6821603) (526489,6821639 526489,6821639 526486,6821627 > > > 526489,6821639 526489,6821639)) ((527187,6822859 527158,6822860 > > > 527138,6822862 527110,6822871 527104,6822873 527098,6822871 > > > > 527054,6822879 > > > > > 527003,6822885 526998,6822885 526995,6822885 526972,6822882 > > > > 526964,6822889 > > > > > 526955,6822894 526935,6822910 526922,6822929 526916,6822946 > > > > 526910,6822973 > > > > > 526917,6822980 526917,6822987 526915,6823010 526942,6823015 > > > > 526943,6823045 > > > > > 526945,6823052 526948,6823056 526956,6823059 526969,6823073 > > > > 526973,6823081 > > > > > 526975,6823094 526970,6823097 526971,6823102 526987,6823123 > > > > 527004,6823131 > > > > > 527019,6823103 527050,6823109 527134,6823120 527137,6823099 > > > > 527133,6823084 > > > > > 527134,6823050 527190,6823074 527199,6823016 527220,6823014 > > > > 527213,6822861 > > > > > 527204,6822860 527187,6822859 527187,6822859) (527114,6823008 > > > 527114,6823001 527071,6822980 527059,6822982 527050,6822978 > > > > 527032,6822968 > > > > > 527024,6823072 527047,6823070 527043,6823034 527049,6822983 > > > > 527068,6822984 > > > > > 527114,6823008 527114,6823008) (527112,6822930 527115,6822933 > > > 527118,6822943 527118,6822947 527119,6822955 527124,6822954 > > > > 527123,6822945 > > > > > 527119,6822930 527115,6822925 527112,6822930 527112,6822930)) > > > ((526685,6821896 526737,6821974 526766,6822042 526771,6822072 > > > 526782,6822030 526808,6821981 526869,6821901 526875,6821889 > > > > 526909,6821797 > > > > > 526908,6821779 526900,6821771 526832,6821727 526812,6821722 > > > > 526787,6821720 > > > > > 526785,6821761 526666,6821870 526685,6821896 526685,6821896)) > > > ((527009,6822654 527076,6822645 527077,6822629 527076,6822611 > > > 527076,6822608 527079,6822589 527070,6822587 527063,6822589 > > > > 527038,6822623 > > > > > 527012,6822641 527009,6822649 527007,6822650 527002,6822652 > > > > 526984,6822657 > > > > > 526953,6822666 526917,6822684 526898,6822697 526901,6822703 > > > > 526949,6822680 > > > > > 526958,6822701 526927,6822716 526946,6822718 526955,6822714 > > > > 526961,6822709 > > > > > 526980,6822748 526988,6822809 526997,6822811 527002,6822843 > > > > 527040,6822877 > > > > > 527052,6822875 527086,6822868 527100,6822860 527104,6822849 > > > > 527107,6822845 > > > > > 527113,6822839 527120,6822826 527134,6822803 527147,6822771 > > > > 527160,6822720 > > > > > 527168,6822679 527153,6822679 527132,6822678 527079,6822677 > > > > 527012,6822671 > > > > > 527009,6822654 527009,6822654)) ((527249,6822166 527250,6822157 > > > 527257,6822142 527274,6822104 527280,6822079 527265,6822097 > > > > 527230,6822148 > > > > > 527205,6822195 527179,6822230 527163,6822262 527205,6822288 > > > > 527251,6822297 > > > > > 527270,6822298 527334,6822298 527376,6822304 527391,6822304 > > > > 527503,6822328 > > > > > 527554,6822333 527572,6822322 527548,6822299 527542,6822296 > > > > 527545,6822281 > > > > > 527391,6822246 527282,6822211 527218,6822199 527249,6822166 > > > 527249,6822166)) ((526821,6822064 526901,6822093 526939,6822084 > > > 526962,6822085 526985,6822075 527018,6822113 527046,6822155 > > > > 527068,6822140 > > > > > 527064,6822093 527061,6822073 527051,6822041 527024,6821996 > > > > 526906,6821995 > > > > > 526896,6821998 526889,6822002 526868,6822015 526852,6822029 > > > > 526821,6822064 > > > > > 526821,6822064)) ((527082,6822584 527086,6822573 527091,6822566 > > > 527073,6822564 527065,6822561 527046,6822526 527047,6822455 > > > > 527052,6822410 > > > > > 527053,6822381 527038,6822382 527036,6822378 526966,6822403 > > > > 526967,6822435 > > > > > 526972,6822476 526983,6822538 527010,6822639 527032,6822623 > > > > 527036,6822619 > > > > > 527055,6822594 527060,6822586 527066,6822584 527081,6822585 > > > > 527082,6822584 > > > > > 527082,6822584)) ((526546,6821979 526549,6822025 526551,6822040 > > > 526563,6822075 526684,6822011 526655,6821986 526614,6821947 > > > > 526680,6821898 > > > > > 526664,6821872 526662,6821873 526546,6821979 526546,6821979)) > > > ((527014,6821959 527090,6821938 527116,6821929 527112,6821927 > > > 527110,6821928 527103,6821924 527104,6821920 527060,6821893 > > > > 527019,6821865 > > > > > 527017,6821866 527006,6821858 527008,6821855 526927,6821792 > > > > 526923,6821792 > > > > > 526922,6821794 526924,6821803 526984,6821906 527006,6821947 > > > > 527014,6821959 > > > > > 527014,6821959)) ((527170,6822232 527134,6822195 527134,6822164 > > > 527129,6822155 527102,6822120 527073,6822133 527074,6822170 > > > > 527083,6822210 > > > > > 527123,6822234 527156,6822262 527170,6822232 527170,6822232)) > > > ((526582,6822099 526581,6822099 526584,6822100 526592,6822098 > > > 526600,6822099 526626,6822130 526741,6822056 526740,6822052 > > > > 526704,6822025 > > > > > 526582,6822099 526582,6822099)) ((527461,6822398 527434,6822522 > > > 527484,6822557 527504,6822464 527472,6822443 527472,6822435 > > > > 527489,6822377 > > > > > 527461,6822398 527461,6822398)) ((527423,6822716 527345,6822691 > > > 527339,6822710 527302,6822693 527289,6822721 527396,6822770 > > > > 527414,6822736 > > > > > 527423,6822716 527423,6822716)) ((527726,6822272 527788,6822255 > > > 527792,6822219 527799,6822180 527817,6822133 527792,6822152 > > > > 527774,6822172 > > > > > 527747,6822196 527727,6822269 527726,6822272 527726,6822272)) > > > ((527835,6823091 527845,6823121 527847,6823122 527871,6823117 > > > 527904,6823102 527896,6823091 527911,6823082 527889,6823053 > > > > 527858,6823079 > > > > > 527835,6823091 527835,6823091)) ((527129,6822598 527125,6822597 > > > 527154,6822653 527171,6822677 527210,6822631 527129,6822598 > > > 527129,6822598)) ((527184,6822670 527176,6822681 527190,6822695 > > > 527236,6822770 527269,6822749 527184,6822670 527184,6822670)) > > > ((526719,6821400 526751,6821412 526776,6821372 526747,6821327 > > > 526719,6821400 526719,6821400)) ((527143,6822790 527141,6822795 > > > 527133,6822810 527128,6822819 527124,6822825 527117,6822840 > > > > 527110,6822846 > > > > > 527107,6822851 527103,6822862 527106,6822865 527110,6822865 > > > > 527139,6822859 > > > > > 527135,6822836 527160,6822831 527174,6822853 527177,6822854 > > > > 527187,6822855 > > > > > 527164,6822818 527143,6822790 527143,6822790)) ((527423,6822716 > > > 527420,6822725 527449,6822734 527480,6822692 527430,6822672 > > > > 527428,6822676 > > > > > 527431,6822697 527423,6822716 527423,6822716)) ((526654,6822160 > > > 526675,6822186 526685,6822193 526698,6822175 526692,6822165 > > > > 526679,6822144 > > > > > 526654,6822160 > > > > 526654,6822160)< > > / > > > > > gml:Polygon> > > > > > > The FilterEnconding uses a complex geometry (polygon with hole). > > > > With a > > > > > simple geometry, it's correct. The error message is : > > > Warning: > > > file_get_contents( > > > > http://ws.carmen.developpement-durable.gouv.fr/cgi-bin/m > > > > apserv?service_idx=8&map=%2Fmnt%2Fdata_carmen%2FBN%2FPublication%2Fwms_na > > tu > > > > re.map&VERSION=1.0.0&SERVICE=WFS&REQUEST=GetFeature&TYPENAME=ZNIEFF_de_ty > > pe > > > > _1&FILTER=%3CFilter%3E%3CIntersect%3E%3CPropertyName%3EGeometry%3C%2FProp > > er > > > > tyName%3E%3Cgml%3APolygon%3E%3Cgml%3AouterBoundaryIs%3E%3Cgml%3ALinearRin > > g% > > > > 3E%3Cgml%3Acoordinates%3E%28526467%2C6821671%20526471%2C6821675%20526480% > > 2C > > > > 6821677%20526482%2C6821676%20526491%2C6821679%20526490%2C6821682%20526546 > > %2 > > > > C6821697%20526615%2C6821701%20526616%2C6821699%20526627%2C6821699%2052662 > > 8% > > > > 2C6821702%20526708%2C6821705%20526804%2C6821709%20526821%2C6821701%205268 > > 86 > > > > %2C6821665%20526916%2C6821658%20526933%2C6821616%20526961%2C6821574%20526 > > 96 > > > > 9%2C6821565%20526982%2C6821513%20526833%2C6821533%20526833%2C6821517%2052 > > 68 > > > > 13%2C6821513%20526801%2C6821508%20526749%2C6821480%20526732%2C6821469%205 > > 26 > > > > 718%2C6821484%20526688%2C6821481%20526616%2C6821481%20526620%2C6821448%20 > > 52 > > > > > 6584%2C6821438%20526547%2C in /applications/www/carmen/WFS/wfs.php on > > > > line > > > > > 66 Warning: Cannot modify header information - headers already sent by > > > (output started at /applications/www/carmen/WFS/wfs.php:66) in > > > /applications/www/carmen/WFS/wfs.php on line 91 > > > > > > Thank you for your help. > > > > > > Tiolebucheron > > > > Richard, > > > > The url length matter as IE or Ffox has a (different) limitation. If you > > want > > to use such geometry you have to use a POST method which is not limited. > > > > Regards, > > > > Y. > > -- > > Yves Jacolin > > > > Responsable Formation et Support > > Camptocamp France SAS > > Savoie Technolac, BP 352 > > 73377 Le Bourget du Lac, Cedex > > > > Tel (France) : +33 4 79 26 57 98 > > Tel (Suisse) : +41 21 619 1031 > > Mob. : +33 6 18 75 42 21 > > Fax : 04 79 70 15 81 > > Mail : yves.jacolin at camptocamp.com > > http://www.camptocamp.com > > _______________________________________________ > > mapserver-users mailing list > > mapserver-users at lists.osgeo.org > > http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Yves Jacolin Responsable Formation et Support Camptocamp France SAS Savoie Technolac, BP 352 73377 Le Bourget du Lac, Cedex Tel (France) : +33 4 79 26 57 98 Tel (Suisse) : +41 21 619 1031 Mob. : +33 6 18 75 42 21 Fax : 04 79 70 15 81 Mail : yves.jacolin at camptocamp.com http://www.camptocamp.com From Thomas.Waberzeck at liag-hannover.de Mon Oct 11 04:56:32 2010 From: Thomas.Waberzeck at liag-hannover.de (Waberzeck, Thomas) Date: Mon, 11 Oct 2010 13:56:32 +0200 Subject: [mapserver-users] wms with String Parameter Message-ID: <08F447350F7FA0408F7BE55D99D3E8610F3D7ED769@ZVMBX01.bgr.local> Hi, I'd like to set up an wms Service which needs some specific Parameters. In the OpenGIS Web Map Service (WMS) Implementation Specification, are some Examples - but only for Dimensions which are described in the UCUM. My need is a String Parameter with 4 allowed Values. How do I declare this Parameter in the xml which GetCapabilities delivers? Regards Thomas Waberzeck Leibniz-Institut f?r Angewandte Geophysik (LIAG) im GEOZENTRUM HANNOVER Stilleweg 2 30655 Hannover Telefon +49 (0)511 643 3352 Telefax +49 (0)511 643 3665 Thomas.Waberzeck at liag-hannover.de -------------- next part -------------- An HTML attachment was scrubbed... URL: From flavio at tydac.ch Mon Oct 11 06:59:27 2010 From: flavio at tydac.ch (Flavio Hendry) Date: Mon, 11 Oct 2010 15:59:27 +0200 Subject: [mapserver-users] Re: [mapserver-dev] PostGIS "curvepolygon" support In-Reply-To: References: <4C5947C8.2080202@tydac.ch> Message-ID: <4CB3183F.2040908@tydac.ch> Hi again My first writing: As far as I see, this is not supported yet (polygons without curves are drawn, the ones with curves not). Any idea if it will be and when. Thanks. Paul Ramsey wrote: > There are no plans for support right now, to my knowledge. Make > someone an offer they can't refuse :) and me again today: figured out that basically this is supported right now with some SQL in the MapFile: DATA 'wkb_geometry from (select g.gid, ST_CurveToLine(g.wkb_geometry) as wkb_geometry from public.mylayer g) as subquery using unique gid using SRID=21781' However, this turns out to be REALLY slow (10 secs for simple map, >20 secs for complex maps, same data, no arcs 2-3 secs) ... My questions: - any idea if this could be somehow speeded up? - as Paul stated: anyone out there with a better idea submitting an offer? Someone might ask why one wants that: we'd need the arcs for other apps accessing the data and we'd like to avoid duplicating the data ... Mit freundlichem Gruss / Best regards Flavio Hendry ---------------------------------------------------------------- TYDAC Inc. - http://www.tydac.ch Web Mapping - http://www.mapserver.ch Swiss Maps - http://www.mapplus.ch ---------------------------------------------------------------- ############ Mit freundlichen Gruessen / Kind Regards ############ Flavio Hendry, CEO - mailto:flavio at tydac.ch ############ TYDAC AG - http://www.tydac.ch #### #### Geographic Information Solutions #### #### Optingenstrasse 27 -- CH-3013 Bern ############ Tel +41 (0)31 368 0180 - Fax +41 (0)31 368 1860 ---------------------------------------------------------------- Location: http://www.mapplus.ch/adr/bern/optingenstrasse/27 ---------------------------------------------------------------- From kodgire.abhijeet at gmail.com Mon Oct 11 12:37:46 2010 From: kodgire.abhijeet at gmail.com (abhijeet kodgire) Date: Tue, 12 Oct 2010 01:07:46 +0530 Subject: [mapserver-users] mapserver and netCDF data format. Message-ID: Hello All, I am investigating mapserver to see if we can use it for our project. I had few doubts after reading the data formats supported by mapserver. Mapserver document says netCDF dataformat is supported with GDAL library. My question here was, Can we upload/publish the netCDF data with WCS protocol and then get spatial/temporal subset of it back as netCDF file with GetCoverage request? If yes, How to publish your netCDF data with WCS ? what is the output of GetCoverage request? (Is it netCDF file or some other format?). I ma asking this because netCDF format is not directly supported in mapserver, one has to install GDAL library. Does GDAL library convert the netCDF data to some other format nd publish it with mapserver? I was wondering how t works. Let me know what you people think, by reading document its not very clear if I can use mapserver for my project. Thanks, Abhijeet -------------- next part -------------- An HTML attachment was scrubbed... URL: From sanjib at mat3impex.com Mon Oct 11 21:50:57 2010 From: sanjib at mat3impex.com (sanjib) Date: Tue, 12 Oct 2010 10:20:57 +0530 Subject: [mapserver-users] regarding layer name,item name Message-ID: <4CB3E931.9030600@mat3impex.com> Hi all, I am beginner of mapserver. I have some shape file in .shp file. I just want to read these file and display it. But How I can get layer name,item name,etc from these shape file? I am using linux ubuntu distribution. Please help me to proceed. With Thanks and best regards Sanjib chatterjee From robhyx at gmail.com Tue Oct 12 06:06:17 2010 From: robhyx at gmail.com (Robert Hicks) Date: Tue, 12 Oct 2010 09:06:17 -0400 Subject: [mapserver-users] WMS Request for a single point? In-Reply-To: References: Message-ID: Ok after some sleuthing, I'm going to assume the bounding box of the image is that specified in the map file. Is there a way to specify it in the call? Also so more immediate questions: What kind of request is this? Is there a spec available? I'm really only used to GetMap requests so this is a little new to me. On Fri, Oct 8, 2010 at 2:30 PM, Robert Hicks wrote: > Ok great! So that gave me an image with a push pin on it. So here is > another question: what is the bounding box of the requested image, and > can I specify it? I need to be able to merge this image together with > another GeoTiff (preferably using gdalmerge) so that the point lands > on the same geographic location in the base image. The original image > is in EPSG 4326, and I'm not sure what units of measurement this call > is using. I tried requesting the point layer as a tif but I think it > just gave me a regular non geotiff, which is fine because I can update > the header using gdal_translate but I need to know the bounding box in > 4326. > > On Fri, Oct 8, 2010 at 12:41 PM, Lime, Steve D (DNR) > wrote: >> I think you need: >> >> ?&mapsize=1000+500 >> >> Or set it in the mapfile and mapserver will use that. >> >> Steve >> >> -----Original Message----- >> From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Robert Hicks >> Sent: Friday, October 08, 2010 11:40 AM >> To: Fawcett, David (MPCA) >> Cc: mapserver-users at lists.osgeo.org >> Subject: Re: [mapserver-users] WMS Request for a single point? >> >> Great, thanks for all the help everyone! I tried that command: >> http://10.0.11.54:8008/cgi-bin/mapserv.exe?map=/ms4w/apps/ms_ogc_workshop/client/wms/reference.map&mode=map&map_layer[0]=FEATURE+POINTS+270000+696000+END+END&WIDTH=1000&HEIGHT=500 >> (I had to change a few things), and I get this error: >> >> "msDrawMap(): Image handling error. Unable to initialize image. >> msPrepareImage(): General error message. Image dimensions not >> specified. msCalculateScale(): General error message. Invalid image >> width or height. " >> >> Any ideas? >> >> On Fri, Oct 8, 2010 at 12:14 PM, Fawcett, David (MPCA) >> wrote: >>> This example works: ?http://localhost/cgi-bin/mapserv.exe?map=/ms4w/apps/offset.map&mode=map&map_layer[0]=FEATURE+POINTS+270000+696000+END+END >>> >>> You can access your layer through the layer name or it's (zero-based) index. >>> >>> The simple example layer is below with a simple circle symbol defined in the map file. >>> >>> ?LAYER >>> ? ?NAME 'singlepoint' >>> ? ?TYPE point >>> ? ?STATUS DEFAULT >>> ? ?CLASS >>> ? ? ? ?STYLE >>> ? ? ? ? ? ?COLOR 255 0 0 >>> ? ? ? ? ? ?SIZE 15 >>> ? ? ? ? ? ?symbol "circle" >>> ? ? ? ?END >>> ? ?END >>> ? END >>> >>> SYMBOL >>> ?NAME "circle" >>> ?TYPE ellipse >>> ?FILLED true >>> ?POINTS >>> ? ?1 1 >>> ?END >>> END >>> >>> >>> -----Original Message----- >>> From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Robert Hicks >>> Sent: Friday, October 08, 2010 11:07 AM >>> To: thomas bonfort >>> Cc: mapserver-users at lists.osgeo.org >>> Subject: Re: [mapserver-users] WMS Request for a single point? >>> >>> Ok, that looks extremely promising. I'm going to go ahead and try it >>> on my local Mapserver. >>> >>> On Fri, Oct 8, 2010 at 12:03 PM, thomas bonfort >>> wrote: >>>> have a look at http://www.mail-archive.com/mapserver-users at lists.umn.edu/msg05881.html >>>> >>>> the syntax for cgi commands has changed since then, you'd have to use >>>> something like >>>> &map.layer[site]=feature+points+582248.23+4841497.11+end+end >>>> >>>> or &map.layer[site].feature.points=582248.23+4841497.11 >>>> >>>> (I cant remember what syntax is correct) >>>> >>>> -- >>>> regards, >>>> thomas >>>> >>>> On Fri, Oct 8, 2010 at 17:10, Robert Hicks wrote: >>>>> Hello all! Ok, this is probably a long shot but, is there a way to >>>>> request an image from Mapserver that is just a point? The idea is I >>>>> have another larger (reference) map image and I want to place a push >>>>> pin on top of it in a specified point. It has to be a WMS call so that >>>>> I can take the image and merge it with the other larger map into one >>>>> so that it can be put into a PDF. Any help would be appreciated. >>>>> >>>>> Thanks! >>>>> >>>>> -- >>>>> web http://www.hyxspace.com >>>>> aim hyx1138 >>>>> _______________________________________________ >>>>> mapserver-users mailing list >>>>> mapserver-users at lists.osgeo.org >>>>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>>>> >>>> >>> >>> >>> >>> -- >>> web http://www.hyxspace.com >>> aim hyx1138 >>> _______________________________________________ >>> mapserver-users mailing list >>> mapserver-users at lists.osgeo.org >>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>> >>> >>> >> >> >> >> -- >> web http://www.hyxspace.com >> aim hyx1138 >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> >> >> > > > > -- > web http://www.hyxspace.com > aim hyx1138 > -- web http://www.hyxspace.com aim hyx1138 From thomas.ellett at statkart.no Tue Oct 12 06:15:49 2010 From: thomas.ellett at statkart.no (tellett) Date: Tue, 12 Oct 2010 06:15:49 -0700 (PDT) Subject: [mapserver-users] Re: mapserver and i18n In-Reply-To: <1286467497319-5611955.post@n2.nabble.com> References: <1286377628379-5607433.post@n2.nabble.com> <4CACA7DE.500@swoodbridge.com> <329C71D0-36A1-4CB7-962E-25B17B46FB42@osgis.nl> <4CACB85E.8040809@swoodbridge.com> <1286438803290-5610385.post@n2.nabble.com> <4CADC7A7.7020908@swoodbridge.com> <4CADCA9C.8050806@swoodbridge.com> <1286467497319-5611955.post@n2.nabble.com> Message-ID: <1286889349846-5626622.post@n2.nabble.com> > I think that what needs to be passed to mapserver is something like > lang=en_US and that is then used to select the appropriate alias. And if > that does not exist then there are appropriate rules for how to handle > it or error out. > > -Steve >this is much better: >"ows_title" "highways" # default layer title >"ows_title_fr" "..." # france layer title >"ows_group_title" "Infrastructure" # default group name >"ows_group_title_fr" "..." # france group name >"gml_ID_alias" "Number" # default alias >"gml_NAME_alias_fr" '... # france alias >NAME 'good' # default class name >NAME_fr 'good' # france class name (oups, not looking good) >Thanks a lot and regards, >-Daniel I'd agree entirely with Steve and Daniel on this. We're currently looking at creating INSPIRE compliant WMS and so we desperately need to solve this problem, like everyone else we're really loath to create duplicate mapfiles. Don't suppose this has been suggested in an RFC or set as a ticket yet?Guess I could just not be lazy and check myself...:) Tom -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/mapserver-and-i18n-tp5607348p5626622.html Sent from the Mapserver - User mailing list archive at Nabble.com. From David.Fawcett at state.mn.us Tue Oct 12 06:16:52 2010 From: David.Fawcett at state.mn.us (Fawcett, David (MPCA)) Date: Tue, 12 Oct 2010 08:16:52 -0500 Subject: [mapserver-users] WMS Request for a single point? In-Reply-To: References: Message-ID: Robert, This is an example of changing mapfile parameters via the request URL. It is documented on this page: http://mapserver.org/cgi/controls.html If Steve's example using 'mapsize' doesn't work, I would try 'map_size'. You are just setting/changing the values for the SIZE and EXTENT properties in the MapFile. See the documentation here: http://mapserver.org/mapfile/map.html Also, I haven't tested it, but you could try specifying the map extent, which it sounds like you want to set to the same extent (bbox) as your image. I would try something like &map_extent=-97+43+-92+49 where the coords in the snippet match the bbox of your image. Note, you will want to make sure that the aspect ratio of your map_size matches the aspect ratio of your extent. If not, MapServer will adjust the extent to fill the image. David. -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Robert Hicks Sent: Tuesday, October 12, 2010 8:06 AM To: Lime, Steve D (DNR) Cc: mapserver-users at lists.osgeo.org; Fawcett, David (MPCA) Subject: Re: [mapserver-users] WMS Request for a single point? Ok after some sleuthing, I'm going to assume the bounding box of the image is that specified in the map file. Is there a way to specify it in the call? Also so more immediate questions: What kind of request is this? Is there a spec available? I'm really only used to GetMap requests so this is a little new to me. On Fri, Oct 8, 2010 at 2:30 PM, Robert Hicks wrote: > Ok great! So that gave me an image with a push pin on it. So here is > another question: what is the bounding box of the requested image, and > can I specify it? I need to be able to merge this image together with > another GeoTiff (preferably using gdalmerge) so that the point lands > on the same geographic location in the base image. The original image > is in EPSG 4326, and I'm not sure what units of measurement this call > is using. I tried requesting the point layer as a tif but I think it > just gave me a regular non geotiff, which is fine because I can update > the header using gdal_translate but I need to know the bounding box in > 4326. > > On Fri, Oct 8, 2010 at 12:41 PM, Lime, Steve D (DNR) > wrote: >> I think you need: >> >> ?&mapsize=1000+500 >> >> Or set it in the mapfile and mapserver will use that. >> >> Steve >> >> -----Original Message----- >> From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Robert Hicks >> Sent: Friday, October 08, 2010 11:40 AM >> To: Fawcett, David (MPCA) >> Cc: mapserver-users at lists.osgeo.org >> Subject: Re: [mapserver-users] WMS Request for a single point? >> >> Great, thanks for all the help everyone! I tried that command: >> http://10.0.11.54:8008/cgi-bin/mapserv.exe?map=/ms4w/apps/ms_ogc_workshop/client/wms/reference.map&mode=map&map_layer[0]=FEATURE+POINTS+270000+696000+END+END&WIDTH=1000&HEIGHT=500 >> (I had to change a few things), and I get this error: >> >> "msDrawMap(): Image handling error. Unable to initialize image. >> msPrepareImage(): General error message. Image dimensions not >> specified. msCalculateScale(): General error message. Invalid image >> width or height. " >> >> Any ideas? >> >> On Fri, Oct 8, 2010 at 12:14 PM, Fawcett, David (MPCA) >> wrote: >>> This example works: ?http://localhost/cgi-bin/mapserv.exe?map=/ms4w/apps/offset.map&mode=map&map_layer[0]=FEATURE+POINTS+270000+696000+END+END >>> >>> You can access your layer through the layer name or it's (zero-based) index. >>> >>> The simple example layer is below with a simple circle symbol defined in the map file. >>> >>> ?LAYER >>> ? ?NAME 'singlepoint' >>> ? ?TYPE point >>> ? ?STATUS DEFAULT >>> ? ?CLASS >>> ? ? ? ?STYLE >>> ? ? ? ? ? ?COLOR 255 0 0 >>> ? ? ? ? ? ?SIZE 15 >>> ? ? ? ? ? ?symbol "circle" >>> ? ? ? ?END >>> ? ?END >>> ? END >>> >>> SYMBOL >>> ?NAME "circle" >>> ?TYPE ellipse >>> ?FILLED true >>> ?POINTS >>> ? ?1 1 >>> ?END >>> END >>> >>> >>> -----Original Message----- >>> From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Robert Hicks >>> Sent: Friday, October 08, 2010 11:07 AM >>> To: thomas bonfort >>> Cc: mapserver-users at lists.osgeo.org >>> Subject: Re: [mapserver-users] WMS Request for a single point? >>> >>> Ok, that looks extremely promising. I'm going to go ahead and try it >>> on my local Mapserver. >>> >>> On Fri, Oct 8, 2010 at 12:03 PM, thomas bonfort >>> wrote: >>>> have a look at http://www.mail-archive.com/mapserver-users at lists.umn.edu/msg05881.html >>>> >>>> the syntax for cgi commands has changed since then, you'd have to use >>>> something like >>>> &map.layer[site]=feature+points+582248.23+4841497.11+end+end >>>> >>>> or &map.layer[site].feature.points=582248.23+4841497.11 >>>> >>>> (I cant remember what syntax is correct) >>>> >>>> -- >>>> regards, >>>> thomas >>>> >>>> On Fri, Oct 8, 2010 at 17:10, Robert Hicks wrote: >>>>> Hello all! Ok, this is probably a long shot but, is there a way to >>>>> request an image from Mapserver that is just a point? The idea is I >>>>> have another larger (reference) map image and I want to place a push >>>>> pin on top of it in a specified point. It has to be a WMS call so that >>>>> I can take the image and merge it with the other larger map into one >>>>> so that it can be put into a PDF. Any help would be appreciated. >>>>> >>>>> Thanks! >>>>> >>>>> -- >>>>> web http://www.hyxspace.com >>>>> aim hyx1138 >>>>> _______________________________________________ >>>>> mapserver-users mailing list >>>>> mapserver-users at lists.osgeo.org >>>>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>>>> >>>> >>> >>> >>> >>> -- >>> web http://www.hyxspace.com >>> aim hyx1138 >>> _______________________________________________ >>> mapserver-users mailing list >>> mapserver-users at lists.osgeo.org >>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>> >>> >>> >> >> >> >> -- >> web http://www.hyxspace.com >> aim hyx1138 >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> >> >> > > > > -- > web http://www.hyxspace.com > aim hyx1138 > -- web http://www.hyxspace.com aim hyx1138 _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From woodbri at swoodbridge.com Tue Oct 12 06:23:23 2010 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Tue, 12 Oct 2010 09:23:23 -0400 Subject: [mapserver-users] Re: mapserver and i18n In-Reply-To: <1286889349846-5626622.post@n2.nabble.com> References: <1286377628379-5607433.post@n2.nabble.com> <4CACA7DE.500@swoodbridge.com> <329C71D0-36A1-4CB7-962E-25B17B46FB42@osgis.nl> <4CACB85E.8040809@swoodbridge.com> <1286438803290-5610385.post@n2.nabble.com> <4CADC7A7.7020908@swoodbridge.com> <4CADCA9C.8050806@swoodbridge.com> <1286467497319-5611955.post@n2.nabble.com> <1286889349846-5626622.post@n2.nabble.com> Message-ID: <4CB4614B.3090802@swoodbridge.com> Hi Thomas, I think it would be good it someone summarized this thread in an enhancement request ticket. Ideally someone that knows what is required by INSPIRE, which is not me :) Posting the ticket number to the list is also a good idea so others with interest can add themselves to the CC list. I'm not aware of any efforts to actually do this at the moment, but from the discussions it seems like something that would be generally useful. -Steve W On 10/12/2010 9:15 AM, tellett wrote: > >> I think that what needs to be passed to mapserver is something like >> lang=en_US and that is then used to select the appropriate alias. And if >> that does not exist then there are appropriate rules for how to handle >> it or error out. >> >> -Steve > >> this is much better: > >> "ows_title" "highways" # default layer title >> "ows_title_fr" "..." # france layer title > >> "ows_group_title" "Infrastructure" # default group name >> "ows_group_title_fr" "..." # france group name > >> "gml_ID_alias" "Number" # default alias >> "gml_NAME_alias_fr" '... # france alias > >> NAME 'good' # default class name >> NAME_fr 'good' # france class name (oups, not looking good) > >> Thanks a lot and regards, >> -Daniel > > > I'd agree entirely with Steve and Daniel on this. We're currently looking at > creating INSPIRE compliant WMS and so we desperately need to solve this > problem, like everyone else we're really loath to create duplicate mapfiles. > Don't suppose this has been suggested in an RFC or set as a ticket yet?Guess > I could just not be lazy and check myself...:) > > Tom From thomas.ellett at statkart.no Tue Oct 12 06:36:41 2010 From: thomas.ellett at statkart.no (tellett) Date: Tue, 12 Oct 2010 06:36:41 -0700 (PDT) Subject: [mapserver-users] Re: mapserver and i18n In-Reply-To: <4CB4614B.3090802@swoodbridge.com> References: <329C71D0-36A1-4CB7-962E-25B17B46FB42@osgis.nl> <4CACB85E.8040809@swoodbridge.com> <1286438803290-5610385.post@n2.nabble.com> <4CADC7A7.7020908@swoodbridge.com> <4CADCA9C.8050806@swoodbridge.com> <1286467497319-5611955.post@n2.nabble.com> <1286889349846-5626622.post@n2.nabble.com> <4CB4614B.3090802@swoodbridge.com> Message-ID: <1286890601807-5626700.post@n2.nabble.com> Hi Stephen, at the moment I'm writing a draft RFC that proposes changes to make mapserver 'INSPIRE compliant', we're proposing a whole package of changes (hopefully not too major!!) and I could add this problem to that. Of course we're creating separate tickets where relevant so I could do this as well. Cheers Tom -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/mapserver-and-i18n-tp5607348p5626700.html Sent from the Mapserver - User mailing list archive at Nabble.com. From yves.moisan at boreal-is.com Tue Oct 12 07:07:53 2010 From: yves.moisan at boreal-is.com (Yves Moisan) Date: Tue, 12 Oct 2010 10:07:53 -0400 Subject: [mapserver-users] Re: mapserver and i18n In-Reply-To: <1286890601807-5626700.post@n2.nabble.com> References: <329C71D0-36A1-4CB7-962E-25B17B46FB42@osgis.nl> <4CACB85E.8040809@swoodbridge.com> <1286438803290-5610385.post@n2.nabble.com> <4CADC7A7.7020908@swoodbridge.com> <4CADCA9C.8050806@swoodbridge.com> <1286467497319-5611955.post@n2.nabble.com> <1286889349846-5626622.post@n2.nabble.com> <4CB4614B.3090802@swoodbridge.com> <1286890601807-5626700.post@n2.nabble.com> Message-ID: <4CB46BB9.3000601@boreal-is.com> Le 2010-10-12 09:36, tellett a ?crit : > Hi Stephen, at the moment I'm writing a draft RFC that proposes changes to > make mapserver 'INSPIRE compliant', we're proposing a whole package of > changes (hopefully not too major!!) and I could add this problem to that. Of > course we're creating separate tickets where relevant so I could do this as > well. > > Cheers > > Tom Hi All, I18N is also of significant interest for us north of the US border. There are close to 7 Million french speaking folks in Qu?bec. Cheers, Yves From wendell at enflight.com Tue Oct 12 07:18:31 2010 From: wendell at enflight.com (Wendell Turner) Date: Tue, 12 Oct 2010 14:18:31 +0000 Subject: [mapserver-users] mode=nquery + tileindex Message-ID: <20101012141830.GA21431@cloud3.rho.net> Does mode=nquery work on layers with a tileindex? I've not been able to get that to work. The query works fine on layers with a single shapefile, but when a layer with multiple shapefiles using a tileindex is referenced, nothing is output and mapserv seems to crash. Do queries work on layers with multiple shapefiles? Wendell From richard.lehaut at gmail.com Tue Oct 12 07:59:49 2010 From: richard.lehaut at gmail.com (Richard LEHAUT) Date: Tue, 12 Oct 2010 16:59:49 +0200 Subject: [mapserver-users] Problem with wfs.php In-Reply-To: <201010110944.55247.yves.jacolin@camptocamp.com> References: <201010110929.51990.yves.jacolin@camptocamp.com> <201010110944.55247.yves.jacolin@camptocamp.com> Message-ID: Hi, *I followed your instructions, I try use "curl-setopt-array" with "curl_multi_init". * *function curl_get_multi_content($list_layer) { $curl_init = array(); foreach($list_layer as $i => $layer) { unset($options); $options = array ( CURLOPT_RETURNTRANSFER => true, CURLOPT_CONNECTTIMEOUT => 120, CURLOPT_TIMEOUT => 120, CURLOPT_POST => 1, CURLOPT_POSTFIELDS => $layer['data'].$layer['filter'], ); $curl_init[$i] = curl_init($layer['url']); curl_setopt_array($curl_init[$i],$options); } $curl_multi = curl_multi_init(); foreach($list_layer as $i => $layer) { curl_multi_add_handle($curl_multi, $curl_init[$i]); } do { curl_multi_exec($curl_multi, $running); } while($running > 0); foreach($list_layer as $i => $layer) { echo curl_multi_getcontent($curl_init[$i]); $list_layer[$i] = $layer+Array('info'=>get_info_xml(curl_multi_getcontent($curl_init[$i]), $layer['name'])); curl_close($curl_init[$i]); } return $list_layer; }* *With my server, result is correct. I've a error with server Carmen :* ZNIEFF_de_type_1=======> Warning: file_get_contents( http://ws.carmen.developpement-durable.gouv.fr/cgi-bin/mapserv?service_idx=8&map=%2Fmnt%2Fdata_carmen%2FBN%2FPublication%2Fwms_nature.map&VERSION=1.0.0&SERVICE=WFS&REQUEST=GetFeature&TYPENAME=ZNIEFF_de_type_1&FILTER=%3CFilter%3E%3CIntersect%3E%3CPropertyName%3EGeometry%3C%2FPropertyName%3E%3Cgml%3APolygon%3E%3Cgml%3AouterBoundaryIs%3E%3Cgml%3ALinearRing%3E%3Cgml%3Acoordinates%3E%28526467%2C6821671%20526471%2C6821675%20526480%2C6821677%20526482%2C6821676%20526491%2C6821679%20526490%2C6821682%20526546%2C6821697%20526615%2C6821701%20526616%2C6821699%20526627%2C6821699%20526628%2C6821702%20526708%2C6821705%20526804%2C6821709%20526821%2C6821701%20526886%2C6821665%20526916%2C6821658%20526933%2C6821616%20526961%2C6821574%20526969%2C6821565%20526982%2C6821513%20526833%2C6821533%20526833%2C6821517%20526813%2C6821513%20526801%2C6821508%20526749%2C6821480%20526732%2C6821469%20526718%2C6821484%20526688%2C6821481%20526616%2C6821481%20526620%2C6821448%20526584%2C6821438%20526547%2Cin /applications/www/carmen/WFS/wfs.php on line 123 Warning: Cannot modify header information - headers already sent by (output started at /applications/www/carmen/WFS/wfs.php:123) in /applications/www/carmen/WFS/wfs.php on line 91. *It's the same message of the first error (number of ligne changed), but the function working properly on my server!!!! Thanks for your help.* Richard LEHAUT/Tiolebucheron 2010/10/11 Yves Jacolin > Hi, > > Don't use file_get_contents but cURL rather: > http://www.php.net/manual/fr/function.curl-setopt-array.php > > Regards, > > Y. > -------------- next part -------------- An HTML attachment was scrubbed... URL: From kodgire.abhijeet at gmail.com Tue Oct 12 09:42:06 2010 From: kodgire.abhijeet at gmail.com (abhijeet kodgire) Date: Tue, 12 Oct 2010 22:12:06 +0530 Subject: [mapserver-users] Re: mapserver and netCDF data format. In-Reply-To: References: Message-ID: Could anyone please reply to my previous email attached here? Thanks, Abhijeet On Tue, Oct 12, 2010 at 1:07 AM, abhijeet kodgire < kodgire.abhijeet at gmail.com> wrote: > > Hello All, > > I am investigating mapserver to see if we can use it for our project. I had > few doubts after reading the data formats supported by mapserver. > > Mapserver document says netCDF dataformat is supported with GDAL library. > > My question here was, Can we upload/publish the netCDF data with WCS > protocol and then get spatial/temporal subset of it back as netCDF file with > GetCoverage request? If yes, How to publish your netCDF data with WCS ? what > is the output of GetCoverage request? (Is it netCDF file or some other > format?). I ma asking this because netCDF format is not directly supported > in mapserver, one has to install GDAL library. > > Does GDAL library convert the netCDF data to some other format nd publish > it with mapserver? I was wondering how t works. > > Let me know what you people think, by reading document its not very clear > if I can use mapserver for my project. > > Thanks, > Abhijeet > -------------- next part -------------- An HTML attachment was scrubbed... URL: From punk.kish at gmail.com Tue Oct 12 11:12:57 2010 From: punk.kish at gmail.com (P Kishor) Date: Tue, 12 Oct 2010 13:12:57 -0500 Subject: [mapserver-users] Re: mapserver and netCDF data format. In-Reply-To: References: Message-ID: I have not used NetCDF with MapServer, so take all of my response with a grain or two of salt. On the other hand, I am using NetCDF and am using MapServer (just not together), so this might help... On Tue, Oct 12, 2010 at 11:42 AM, abhijeet kodgire wrote: > Could anyone please reply to my previous email attached here? > > Thanks, > Abhijeet > > On Tue, Oct 12, 2010 at 1:07 AM, abhijeet kodgire > wrote: >> >> >> Hello All, >> >> I am investigating mapserver?to see if?we can use it for our project. I >> had few doubts after reading the data formats supported by mapserver. >> >> Mapserver document says netCDF dataformat is supported with GDAL library. >> Yes, GDAL can read NetCDF, but remember, NetCDF is a generic data format, not a geographic data format. You can store geographic data in it, but it can be any kind of hierarchical data. It would be your responsibility to read your data using GDAL, and then, use GDAL to convert its relevant portions (the geographic portions) into one of the many formats that MapServer can understand. >> My question here was, Can we upload/publish the netCDF data with WCS >> protocol and then get spatial/temporal subset of it back as netCDF file with >> GetCoverage request? If yes, How to publish your netCDF data with WCS ? what >> is the output of GetCoverage request? (Is it netCDF file or some other >> format?). I ma asking this because netCDF format is not directly supported >> in mapserver, one has to install GDAL library. >> >> Does?GDAL library convert the netCDF data to some other format nd publish >> it with mapserver? I was wondering how t works. You are responsible for reading the NetCDF data using GDAL, extracting the geographic portions, and converting them. GDAL is basically a converter that can read in various formats and write out various formats. >> >> Let me know what you people think, by reading document its not very clear >> if I can use mapserver for my project. >> >> Thanks, >> Abhijeet > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -- Puneet Kishor http://www.punkish.org Carbon Model http://carbonmodel.org Charter Member, Open Source Geospatial Foundation http://www.osgeo.org Science Commons Fellow, http://sciencecommons.org/about/whoweare/kishor Nelson Institute, UW-Madison http://www.nelson.wisc.edu ----------------------------------------------------------------------- Assertions are politics; backing up assertions with evidence is science ======================================================================= From richard.greenwood at gmail.com Tue Oct 12 12:49:09 2010 From: richard.greenwood at gmail.com (Richard Greenwood) Date: Tue, 12 Oct 2010 13:49:09 -0600 Subject: [mapserver-users] issue with the issue tracker Message-ID: When I try to create a new ticket at: http://trac.osgeo.org/mapserver/mapserver/newticket I get: Error: Not Found No handler matched request to /mapserver/newticket I have tried while logged in with my OSGEO account, also when logged out. Thanks, Rich -- Richard Greenwood richard.greenwood at gmail.com www.greenwoodmap.com From aboudreault at mapgears.com Tue Oct 12 12:57:35 2010 From: aboudreault at mapgears.com (Alan Boudreault) Date: Tue, 12 Oct 2010 15:57:35 -0400 Subject: [mapserver-users] issue with the issue tracker In-Reply-To: References: Message-ID: <201010121557.35921.aboudreault@mapgears.com> This URL is effectively invalid. Try this one: http://trac.osgeo.org/mapserver/newticket Alan On October 12, 2010 03:49:09 pm Richard Greenwood wrote: > When I try to create a new ticket at: > http://trac.osgeo.org/mapserver/mapserver/newticket > I get: > Error: Not Found > No handler matched request to /mapserver/newticket > > I have tried while logged in with my OSGEO account, also when logged out. > > Thanks, > Rich -- Alan Boudreault Mapgears http://www.mapgears.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From warmerdam at pobox.com Tue Oct 12 13:34:14 2010 From: warmerdam at pobox.com (Frank Warmerdam) Date: Tue, 12 Oct 2010 16:34:14 -0400 Subject: [mapserver-users] mapserver and netCDF data format. In-Reply-To: References: Message-ID: <4CB4C646.9010006@pobox.com> abhijeet kodgire wrote: > My question here was, Can we upload/publish the netCDF data with WCS > protocol and then get spatial/temporal subset of it back as netCDF file > with GetCoverage request? Abhijeet, In general yes. But I would advise you to start by investigating how well GDAL supports the netcdf data you would like to work with. It will generally try and "unroll" temporal dimensions as raster bands but it sometimes has problems correcting identifying what dimension is what. I have not personally used the temporal support in MapServer WCS so I'm not too sure how well it works. At the least it may be fairly involved to use it. > If yes, How to publish your netCDF data with WCS ? what is the > output of GetCoverage request? (Is it netCDF file or > some other format?). You can configure desired output formats for WCS using the OUTPUTFORMAT block in a map file. It is certainly possible to offer netcdf products from MapServer WCS with the correct configuration. Be aware that MapServer/GDAL netcdf output is relatively simplistic. You will need to investigate it's suitability for your needs. > Does GDAL library convert the netCDF data to some other format nd > publish it with mapserver? I was wondering how t works. GDAL is the raster reading library for MapServer and MapServer can directly consume any raster format supported by GDAL without conversion as long as things are built properly. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From richard.greenwood at gmail.com Tue Oct 12 14:07:17 2010 From: richard.greenwood at gmail.com (Richard Greenwood) Date: Tue, 12 Oct 2010 15:07:17 -0600 Subject: [mapserver-users] issue with the issue tracker In-Reply-To: <201010121557.35921.aboudreault@mapgears.com> References: <201010121557.35921.aboudreault@mapgears.com> Message-ID: Thanks, that works. Any idea who I should contact to get the link fixed? Rich On Tue, Oct 12, 2010 at 1:57 PM, Alan Boudreault wrote: > This URL is effectively invalid. Try this one: > > http://trac.osgeo.org/mapserver/newticket > > Alan > > On October 12, 2010 03:49:09 pm Richard Greenwood wrote: > >> When I try to create a new ticket at: > >> http://trac.osgeo.org/mapserver/mapserver/newticket > >> I get: > >> Error: Not Found > >> No handler matched request to /mapserver/newticket > >> > >> I have tried while logged in with my OSGEO account, also when logged out. > >> > >> Thanks, > >> Rich > > -- > > Alan Boudreault > > Mapgears > > http://www.mapgears.com -- Richard Greenwood richard.greenwood at gmail.com www.greenwoodmap.com From aboudreault at mapgears.com Tue Oct 12 15:56:31 2010 From: aboudreault at mapgears.com (Alan Boudreault) Date: Tue, 12 Oct 2010 18:56:31 -0400 Subject: [mapserver-users] issue with the issue tracker In-Reply-To: References: <201010121557.35921.aboudreault@mapgears.com> Message-ID: <201010121856.31624.aboudreault@mapgears.com> It depends where the link comes from. You can report it here, I'll take care to fix it. Alan On October 12, 2010 05:07:17 pm Richard Greenwood wrote: > Thanks, that works. Any idea who I should contact to get the link fixed? > > Rich > > On Tue, Oct 12, 2010 at 1:57 PM, Alan Boudreault > > wrote: > > This URL is effectively invalid. Try this one: > > > > http://trac.osgeo.org/mapserver/newticket > > > > Alan > > > > On October 12, 2010 03:49:09 pm Richard Greenwood wrote: > >> When I try to create a new ticket at: > >> > >> http://trac.osgeo.org/mapserver/mapserver/newticket > >> > >> I get: > >> > >> Error: Not Found > >> > >> No handler matched request to /mapserver/newticket > >> > >> > >> > >> I have tried while logged in with my OSGEO account, also when logged > >> out. > >> > >> > >> > >> Thanks, > >> > >> Rich > > > > -- > > > > Alan Boudreault > > > > Mapgears > > > > http://www.mapgears.com From o.bedel at alkante.com Wed Oct 13 02:55:09 2010 From: o.bedel at alkante.com (Olivier BEDEL) Date: Wed, 13 Oct 2010 11:55:09 +0200 (CEST) Subject: [mapserver-users] Problem with wfs.php In-Reply-To: <1763291379.36.1286963498334.JavaMail.root@linux12> Message-ID: <1005782596.38.1286963709739.JavaMail.root@linux12> Hi Robert, The file_get_contents error you get doesn't come from your code but is return by the Carmen wfs server. As Jukka said, your filter seems too long to be sent in a GET parameter. But when querying the wfs server in POST, you should send your query in XML and not use Key Value Pair encoding (FILTER=...). In fact, the content of your POST query should look like this : Geometry(526467,6821671 526471,6821675 526480,6821677 526482,6821676 526491,6821679 526490,6821682 526546,6821697 526615,6821701 526616,6821699 526627,6821699 526628,6821702 526708,6821705 526804,6821709 526821,6821701 526886,6821665 526916,6821658 526933,6821616 526961,6821574 526969,6821565 526982,6821513 526833,6821533 526833,6821517 526813,6821513 526801,6821508 526749,6821480 526732,6821469 526718,6821484 526688,6821481 526616,6821481 526620,6821448 526584,6821438 526547,6821401 526545,6821397 526533,6821376 526455,6821381 526453,6821379 526409,6821377 526415,6821415 526429,6821499 526440,6821569 526377,6821567 526362,6821463 526357,6821393 526359,6821371 526360,6821362 526365,6821332 526325,6821292 526315,6821308 526302,6821322 526296,6821325 526277,6821347 526286,6821417 526286,6821447 526295,6821516 526303,6821549 526308,6821569 526314,6821571 526320,6821578 526328,6821580 526340,6821589 526381,6821619 526466,6821673 526467,6821671 526467,6821671) (526489,6821639 526492,6821655 526493,6821655 526489,6821639 526489,6821639) (526467,6821588 526466,6821586 526464,6821585 526467,6821588 526467,6821588) (526479,6821603 526478,6821601 526477,6821599 526479,6821603 526479,6821603) (526489,6821639 526489,6821639 526486,6821627 526489,6821639 526489,6821639)) ((527187,6822859 527158,6822860 527138,6822862 527110,6822871 527104,6822873 527098,6822871 527054,6822879 527003,6822885 526998,6822885 526995,6822885 526972,6822882 526964,6822889 526955,6822894 526935,6822910 526922,6822929 526916,6822946 526910,6822973 526917,6822980 526917,6822987 526915,6823010 526942,6823015 526943,6823045 526945,6823052 526948,6823056 526956,6823059 526969,6823073 526973,6823081 526975,6823094 526970,6823097 526971,6823102 526987,6823123 527004,6823131 527019,6823103 527050,6823109 527134,6823120 527137,6823099 527133,6823084 527134,6823050 527190,6823074 527199,6823016 527220,6823014 527213,6822861 527204,6822860 527187,6822859 527187,6822859) (527114,6823008 527114,6823001 527071,6822980 527059,6822982 527050,6822978 527032,6822968 527024,6823072 527047,6823070 527043,6823034 527049,6822983 527068,6822984 527114,6823008 527114,6823008) (527112,6822930 527115,6822933 527118,6822943 527118,6822947 527119,6822955 527124,6822954 527123,6822945 527119,6822930 527115,6822925 527112,6822930 527112,6822930)) ((526685,6821896 526737,6821974 526766,6822042 526771,6822072 526782,6822030 526808,6821981 526869,6821901 526875,6821889 526909,6821797 526908,6821779 526900,6821771 526832,6821727 526812,6821722 526787,6821720 526785,6821761 526666,6821870 526685,6821896 526685,6821896)) ((527009,6822654 527076,6822645 527077,6822629 527076,6822611 527076,6822608 527079,6822589 527070,6822587 527063,6822589 527038,6822623 527012,6822641 527009,6822649 527007,6822650 527002,6822652 526984,6822657 526953,6822666 526917,6822684 526898,6822697 526901,6822703 526949,6822680 526958,6822701 526927,6822716 526946,6822718 526955,6822714 526961,6822709 526980,6822748 526988,6822809 526997,6822811 527002,6822843 527040,6822877 527052,6822875 527086,6822868 527100,6822860 527104,6822849 527107,6822845 527113,6822839 527120,6822826 527134,6822803 527147,6822771 527160,6822720 527168,6822679 527153,6822679 527132,6822678 527079,6822677 527012,6822671 527009,6822654 527009,6822654)) ((527249,6822166 527250,6822157 527257,6822142 527274,6822104 527280,6822079 527265,6822097 527230,6822148 527205,6822195 527179,6822230 527163,6822262 527205,6822288 527251,6822297 527270,6822298 527334,6822298 527376,6822304 527391,6822304 527503,6822328 527554,6822333 527572,6822322 527548,6822299 527542,6822296 527545,6822281 527391,6822246 527282,6822211 527218,6822199 527249,6822166 527249,6822166)) ((526821,6822064 526901,6822093 526939,6822084 526962,6822085 526985,6822075 527018,6822113 527046,6822155 527068,6822140 527064,6822093 527061,6822073 527051,6822041 527024,6821996 526906,6821995 526896,6821998 526889,6822002 526868,6822015 526852,6822029 526821,6822064 526821,6822064)) ((527082,6822584 527086,6822573 527091,6822566 527073,6822564 527065,6822561 527046,6822526 527047,6822455 527052,6822410 527053,6822381 527038,6822382 527036,6822378 526966,6822403 526967,6822435 526972,6822476 526983,6822538 527010,6822639 527032,6822623 527036,6822619 527055,6822594 527060,6822586 527066,6822584 527081,6822585 527082,6822584 527082,6822584)) ((526546,6821979 526549,6822025 526551,6822040 526563,6822075 526684,6822011 526655,6821986 526614,6821947 526680,6821898 526664,6821872 526662,6821873 526546,6821979 526546,6821979)) ((527014,6821959 527090,6821938 527116,6821929 527112,6821927 527110,6821928 527103,6821924 527104,6821920 527060,6821893 527019,6821865 527017,6821866 527006,6821858 527008,6821855 526927,6821792 526923,6821792 526922,6821794 526924,6821803 526984,6821906 527006,6821947 527014,6821959 527014,6821959)) ((527170,6822232 527134,6822195 527134,6822164 527129,6822155 527102,6822120 527073,6822133 527074,6822170 527083,6822210 527123,6822234 527156,6822262 527170,6822232 527170,6822232)) ((526582,6822099 526581,6822099 526584,6822100 526592,6822098 526600,6822099 526626,6822130 526741,6822056 526740,6822052 526704,6822025 526582,6822099 526582,6822099)) ((527461,6822398 527434,6822522 527484,6822557 527504,6822464 527472,6822443 527472,6822435 527489,6822377 527461,6822398 527461,6822398)) ((527423,6822716 527345,6822691 527339,6822710 527302,6822693 527289,6822721 527396,6822770 527414,6822736 527423,6822716 527423,6822716)) ((527726,6822272 527788,6822255 527792,6822219 527799,6822180 527817,6822133 527792,6822152 527774,6822172 527747,6822196 527727,6822269 527726,6822272 527726,6822272)) ((527835,6823091 527845,6823121 527847,6823122 527871,6823117 527904,6823102 527896,6823091 527911,6823082 527889,6823053 527858,6823079 527835,6823091 527835,6823091)) ((527129,6822598 527125,6822597 527154,6822653 527171,6822677 527210,6822631 527129,6822598 527129,6822598)) ((527184,6822670 527176,6822681 527190,6822695 527236,6822770 527269,6822749 527184,6822670 527184,6822670)) ((526719,6821400 526751,6821412 526776,6821372 526747,6821327 526719,6821400 526719,6821400)) ((527143,6822790 527141,6822795 527133,6822810 527128,6822819 527124,6822825 527117,6822840 527110,6822846 527107,6822851 527103,6822862 527106,6822865 527110,6822865 527139,6822859 527135,6822836 527160,6822831 527174,6822853 527177,6822854 527187,6822855 527164,6822818 527143,6822790 527143,6822790)) ((527423,6822716 527420,6822725 527449,6822734 527480,6822692 527430,6822672 527428,6822676 527431,6822697 527423,6822716 527423,6822716)) ((526654,6822160 526675,6822186 526685,6822193 526698,6822175 526692,6822165 526679,6822144 526654,6822160 526654,6822160) Regards, Olivier. ----- Mail Original ----- De: "Richard LEHAUT" ?: "Yves Jacolin" Cc: "Rahkonen Jukka" , mapserver-users at lists.osgeo.org Envoy?: Mardi 12 Octobre 2010 16:59:49 Objet: Re: [mapserver-users] Problem with wfs.php Hi, I followed your instructions, I try use "curl-setopt-array" with "curl_multi_init". function curl_get_multi_content($list_layer) { $curl_init = array(); foreach($list_layer as $i => $layer) { unset($options); $options = array ( CURLOPT_RETURNTRANSFER => true, CURLOPT_CONNECTTIMEOUT => 120, CURLOPT_TIMEOUT => 120, CURLOPT_POST => 1, CURLOPT_POSTFIELDS => $layer['data'].$layer['filter'], ); $curl_init[$i] = curl_init($layer['url']); curl_setopt_array($curl_init[$i],$options); } $curl_multi = curl_multi_init(); foreach($list_layer as $i => $layer) { curl_multi_add_handle($curl_multi, $curl_init[$i]); } do { curl_multi_exec($curl_multi, $running); } while($running > 0); foreach($list_layer as $i => $layer) { echo curl_multi_getcontent($curl_init[$i]); $list_layer[$i] = $layer+Array('info'=>get_info_xml(curl_multi_getcontent($curl_init[$i]), $layer['name'])); curl_close($curl_init[$i]); } return $list_layer; } With my server, result is correct. I've a error with server Carmen : ZNIEFF_de_type_1=======> Warning: file_get_contents( http://ws.carmen.developpement-durable.gouv.fr/cgi-bin/mapserv?service_idx=8&map=%2Fmnt%2Fdata_carmen%2FBN%2FPublication%2Fwms_nature.map&VERSION=1.0.0&SERVICE=WFS&REQUEST=GetFeature&TYPENAME=ZNIEFF_de_type_1&FILTER=%3CFilter%3E%3CIntersect%3E%3CPropertyName%3EGeometry%3C%2FPropertyName%3E%3Cgml%3APolygon%3E%3Cgml%3AouterBoundaryIs%3E%3Cgml%3ALinearRing%3E%3Cgml%3Acoordinates%3E%28526467%2C6821671%20526471%2C6821675%20526480%2C6821677%20526482%2C6821676%20526491%2C6821679%20526490%2C6821682%20526546%2C6821697%20526615%2C6821701%20526616%2C6821699%20526627%2C6821699%20526628%2C6821702%20526708%2C6821705%20526804%2C6821709%20526821%2C6821701%20526886%2C6821665%20526916%2C6821658%20526933%2C6821616%20526961%2C6821574%20526969%2C6821565%20526982%2C6821513%20526833%2C6821533%20526833%2C6821517%20526813%2C6821513%20526801%2C6821508%20526749%2C6821480%20526732%2C6821469%20526718%2C6821484%20526688%2C6821481%20526616%2C6821481%20526620%2C6821448%20526584%2C6821438%20526547%2C in /applications/www/carmen/WFS/wfs.php on line 123 Warning: Cannot modify header information - headers already sent by (output started at /applications/www/carmen/WFS/wfs.php:123) in /applications/www/carmen/WFS/wfs.php on line 91. It's the same message of the first error (number of ligne changed), but the function working properly on my server!!!! Thanks for your help. Richard LEHAUT/Tiolebucheron 2010/10/11 Yves Jacolin < yves.jacolin at camptocamp.com > Hi, Don't use file_get_contents but cURL rather: http://www.php.net/manual/fr/function.curl-setopt-array.php Regards, Y. _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From Thomas.Waberzeck at liag-hannover.de Wed Oct 13 07:54:26 2010 From: Thomas.Waberzeck at liag-hannover.de (Waberzeck, Thomas) Date: Wed, 13 Oct 2010 16:54:26 +0200 Subject: [mapserver-users] PHP Mapscript - loadparams Message-ID: <08F447350F7FA0408F7BE55D99D3E8611090E51E19@ZVMBX01.bgr.local> Hi, I'm trying to write a wrapper for my wms server. I found, that, if no parameters are given, I'm getting an error "No query information to decode. QUERY_STRING is set, but empty." How do I handle this Error? A quick and dirty way is to check if $_GET is not empty - but is there a better way to do this? Regards Thomas Waberzeck Leibniz-Institut f?r Angewandte Geophysik (LIAG) im GEOZENTRUM HANNOVER Stilleweg 2 30655 Hannover Telefon +49 (0)511 643 3352 Telefax +49 (0)511 643 3665 Thomas.Waberzeck at liag-hannover.de -------------- next part -------------- An HTML attachment was scrubbed... URL: From niccolo at rigacci.org Wed Oct 13 12:48:31 2010 From: niccolo at rigacci.org (Niccolo Rigacci) Date: Wed, 13 Oct 2010 21:48:31 +0200 Subject: [mapserver-users] MapServer as a reprojecting WMS proxy, is it possible? Message-ID: <20101013194831.GA19610@rigacci.org> Hi, There is a WMS server providing EPSG:4326, but I need a WMS server providing EPSG:3003. So I tried to configure MapServer to act as a proxy (both client and server), doing the reprojection. But I failed. I tried something like this: MAP ... PROJECTION 'init=epsg:3003' END WEB METADATA 'ows_srs' 'EPSG:3003' END END LAYER ... PROJECTION 'init=epsg:4326' END METADATA 'wms_srs' 'EPSG:4326 EPSG:3003' END END END As a server, it announces both EPSG:4326 and EPSG:3003, but if I ask for EPSG:3003, it uses the same SRS when acting as a client. If I put just EPSG:4326 into LAYER.METADATA.wms_srs, the server does not announce EPSG:3003. What can I do? Thanks! -- Niccolo Rigacci Firenze - Italy From Jukka.Rahkonen at mmmtike.fi Wed Oct 13 13:44:18 2010 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Wed, 13 Oct 2010 23:44:18 +0300 Subject: Hi: [mapserver-users] MapServer as a reprojecting WMS proxy, is it possible? References: <20101013194831.GA19610@rigacci.org> Message-ID: Hi, I can't test right now but I suppose this should work. Define the LAYER to use the SRS supported by the remote service like in the document http://mapserver.org/ogc/wms_client.html LAYER NAME "country_bounds" TYPE RASTER STATUS ON CONNECTION "http://demo.mapserver.org/cgi-bin/wms?" CONNECTIONTYPE WMS METADATA "wms_srs" "EPSG:4326" "wms_name" "country_bounds" "wms_server_version" "1.1.1" "wms_format" "image/gif" END END Then use the MAP-WEB-METADATA just as you did and your server should advertise only EPSG:3003 out. -Jukka Rahkonen- -----Alkuper?inen viesti----- L?hett?j?: mapserver-users-bounces at lists.osgeo.org puolesta: Niccolo Rigacci L?hetetty: ke 13.10.2010 22:48 Vastaanottaja: mapserver-users at lists.osgeo.org Aihe: [mapserver-users] MapServer as a reprojecting WMS proxy,is it possible? Hi, There is a WMS server providing EPSG:4326, but I need a WMS server providing EPSG:3003. So I tried to configure MapServer to act as a proxy (both client and server), doing the reprojection. But I failed. I tried something like this: MAP ... PROJECTION 'init=epsg:3003' END WEB METADATA 'ows_srs' 'EPSG:3003' END END LAYER ... PROJECTION 'init=epsg:4326' END METADATA 'wms_srs' 'EPSG:4326 EPSG:3003' END END END As a server, it announces both EPSG:4326 and EPSG:3003, but if I ask for EPSG:3003, it uses the same SRS when acting as a client. If I put just EPSG:4326 into LAYER.METADATA.wms_srs, the server does not announce EPSG:3003. What can I do? Thanks! -- Niccolo Rigacci Firenze - Italy _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From diana.buettner at lvg.bayern.de Wed Oct 13 23:33:05 2010 From: diana.buettner at lvg.bayern.de (=?ISO-8859-1?Q?=22B=FCttner=2C_Diana_=28LVG=29=22?=) Date: Thu, 14 Oct 2010 08:33:05 +0200 Subject: [mapserver-users] mapfile annotation underlined text Message-ID: <4CB6A421.1050306@lvg.bayern.de> Hi, for a getMap-response I want underlined text. I haven't found any settings for this problem in the Mapfile Reference. Can I use something like "decoration" or anything else, maybe in the label-obejct, to get my text underlined? Best regards, Diana -------------- next part -------------- An HTML attachment was scrubbed... URL: From thomas.bonfort at gmail.com Thu Oct 14 00:09:20 2010 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Thu, 14 Oct 2010 09:09:20 +0200 Subject: [mapserver-users] mapfile annotation underlined text In-Reply-To: <4CB6A421.1050306@lvg.bayern.de> References: <4CB6A421.1050306@lvg.bayern.de> Message-ID: Hi, Mapserver currently does not support underlining text. regards, thomas On Thu, Oct 14, 2010 at 08:33, "B?ttner, Diana (LVG)" wrote: > Hi, > > for a getMap-response I want underlined text. I haven't found any settings > for this problem in the Mapfile Reference. Can I use something like > "decoration" or anything else, maybe in the label-obejct, to get my text > underlined? > > Best regards, > > Diana > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > From flavio at tydac.ch Thu Oct 14 01:05:43 2010 From: flavio at tydac.ch (Flavio Hendry) Date: Thu, 14 Oct 2010 10:05:43 +0200 Subject: [mapserver-users] mapfile annotation underlined text In-Reply-To: <4CB6A421.1050306@lvg.bayern.de> References: <4CB6A421.1050306@lvg.bayern.de> Message-ID: <4CB6B9D7.2060002@tydac.ch> Hi Diana There is a little trick to do that, if you do not mind the text being "backgrounded". Just put the layer twice in the mapfile, once with a backgroundshadowcolor, once without and with an offset of 1 0. Result see: http://www.tydac.ch/underline.gif LAYER NAME "Grundst?cksnummern" ... STATUS ON LABELITEM "gs_nummer" SIZEUNITS feet CLASS COLOR -1 -1 -1 LABEL ANTIALIAS TRUE TYPE TRUETYPE FONT "cadastra" POSITION ur SIZE 5 COLOR 0 0 0 OFFSET 1 0 BACKGROUNDCOLOR 255 255 255 FORCE true END END PROJECTION "init=epsg:21781" END END LAYER NAME "Grundst?cksnummern" ... STATUS ON LABELITEM "gs_nummer" SIZEUNITS feet CLASS COLOR -1 -1 -1 LABEL ANTIALIAS TRUE TYPE TRUETYPE FONT "cadastra" POSITION ur SIZE 5 COLOR 0 0 0 BACKGROUNDCOLOR 255 255 255 BACKGROUNDSHADOWCOLOR 0 0 0 FORCE true END END PROJECTION "init=epsg:21781" END END -- Mit freundlichem Gruss / Best regards Flavio Hendry ---------------------------------------------------------------- TYDAC Inc. - http://www.tydac.ch Web Mapping - http://www.mapserver.ch Swiss Maps - http://www.mapplus.ch ---------------------------------------------------------------- ############ Mit freundlichen Gruessen / Kind Regards ############ Flavio Hendry, CEO - mailto:flavio at tydac.ch ############ TYDAC AG - http://www.tydac.ch #### #### Geographic Information Solutions #### #### Optingenstrasse 27 -- CH-3013 Bern ############ Tel +41 (0)31 368 0180 - Fax +41 (0)31 368 1860 ---------------------------------------------------------------- Location: http://www.mapplus.ch/adr/bern/optingenstrasse/27 ---------------------------------------------------------------- From kristian_frost7 at hotmail.com Thu Oct 14 05:35:12 2010 From: kristian_frost7 at hotmail.com (Frost89) Date: Thu, 14 Oct 2010 05:35:12 -0700 (PDT) Subject: [mapserver-users] Compiling in Visual Studio 2008 Message-ID: <1287059712495-5634683.post@n2.nabble.com> Hi all Is it possible to make a MapServer source project in VS2008? So that I can compile it within VS2008, along with my other projects? /Kristian Frost -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Compiling-in-Visual-Studio-2008-tp5634683p5634683.html Sent from the Mapserver - User mailing list archive at Nabble.com. From jmckenna at gatewaygeomatics.com Thu Oct 14 06:07:04 2010 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Thu, 14 Oct 2010 10:07:04 -0300 Subject: [mapserver-users] Compiling in Visual Studio 2008 In-Reply-To: <1287059712495-5634683.post@n2.nabble.com> References: <1287059712495-5634683.post@n2.nabble.com> Message-ID: <4CB70078.10607@gatewaygeomatics.com> On 10-10-14 9:35 AM, Frost89 wrote: > > Is it possible to make a MapServer source project in VS2008? So that I can > compile it within VS2008, along with my other projects? > Hello, If you wish to use the 2008 commandline compiler you can use the MapServer buildkit: http://www.gatewaygeomatics.com/dl/buildkit/ -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ From michael.smith at usace.army.mil Thu Oct 14 06:15:26 2010 From: michael.smith at usace.army.mil (Smith, Michael ERDC-CRREL-NH) Date: Thu, 14 Oct 2010 09:15:26 -0400 Subject: [mapserver-users] Compiling in Visual Studio 2008 In-Reply-To: <4CB70078.10607@gatewaygeomatics.com> Message-ID: I can greatly recommend the buildkit. Jeff McKenna of Gateway Geomatics has done the community a great service by providing this to people supporting Windows builds. Thanks Jeff! Mike -- Michael Smith US Army Corps of Engineers Remote Sensing/GIS Center Hanover, NH On 10/14/10 9:07 AM, "Jeff McKenna" wrote: > On 10-10-14 9:35 AM, Frost89 wrote: >> >> Is it possible to make a MapServer source project in VS2008? So that I can >> compile it within VS2008, along with my other projects? >> > > Hello, > > If you wish to use the 2008 commandline compiler you can use the > MapServer buildkit: http://www.gatewaygeomatics.com/dl/buildkit/ > > -jeff From sumit321 at hotmail.com Thu Oct 14 06:26:37 2010 From: sumit321 at hotmail.com (Sumit Sharma) Date: Thu, 14 Oct 2010 06:26:37 -0700 (PDT) Subject: [mapserver-users] Re: Compiling in Visual Studio 2008 In-Reply-To: <1287059712495-5634683.post@n2.nabble.com> References: <1287059712495-5634683.post@n2.nabble.com> Message-ID: <1287062797064-5634748.post@n2.nabble.com> I am using mapserver in same environment. I have created one build script (batch file) for cleaning, compiling (either for debug or release) and installing mapserver. However I would not recommend you to compile mapserver every time you compile your other projects as it will consume lot of time to compile. But if still if you want to compile it you can use prebuild events to call build script batch file. Hope that helps, Sumit -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Compiling-in-Visual-Studio-2008-tp5634683p5634748.html Sent from the Mapserver - User mailing list archive at Nabble.com. From kristian_frost7 at hotmail.com Thu Oct 14 08:30:17 2010 From: kristian_frost7 at hotmail.com (Frost89) Date: Thu, 14 Oct 2010 08:30:17 -0700 (PDT) Subject: [mapserver-users] Re: Compiling in Visual Studio 2008 In-Reply-To: <1287062797064-5634748.post@n2.nabble.com> References: <1287059712495-5634683.post@n2.nabble.com> <1287062797064-5634748.post@n2.nabble.com> Message-ID: <1287070217133-5634893.post@n2.nabble.com> Hi Sumit Thanks for the answer. I'm a newbee at anything thats not .NET, but this solution would really help in a project I'm on. Do you know anywhere I can read more about setting up/creating this project? Or can you post an example if it's not too complicated? /Kristian Frost -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Compiling-in-Visual-Studio-2008-tp5634683p5634893.html Sent from the Mapserver - User mailing list archive at Nabble.com. From Steve.Lime at state.mn.us Thu Oct 14 09:53:52 2010 From: Steve.Lime at state.mn.us (Lime, Steve D (DNR)) Date: Thu, 14 Oct 2010 11:53:52 -0500 Subject: [mapserver-users] mapfile annotation underlined text In-Reply-To: <4CB6B9D7.2060002@tydac.ch> References: <4CB6A421.1050306@lvg.bayern.de> <4CB6B9D7.2060002@tydac.ch> Message-ID: A single layer solution would be ideal but this I a cool workaround, effect is very nice! -Steve -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Flavio Hendry Sent: Thursday, October 14, 2010 3:06 AM To: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] mapfile annotation underlined text Hi Diana There is a little trick to do that, if you do not mind the text being "backgrounded". Just put the layer twice in the mapfile, once with a backgroundshadowcolor, once without and with an offset of 1 0. Result see: http://www.tydac.ch/underline.gif LAYER NAME "Grundst?cksnummern" ... STATUS ON LABELITEM "gs_nummer" SIZEUNITS feet CLASS COLOR -1 -1 -1 LABEL ANTIALIAS TRUE TYPE TRUETYPE FONT "cadastra" POSITION ur SIZE 5 COLOR 0 0 0 OFFSET 1 0 BACKGROUNDCOLOR 255 255 255 FORCE true END END PROJECTION "init=epsg:21781" END END LAYER NAME "Grundst?cksnummern" ... STATUS ON LABELITEM "gs_nummer" SIZEUNITS feet CLASS COLOR -1 -1 -1 LABEL ANTIALIAS TRUE TYPE TRUETYPE FONT "cadastra" POSITION ur SIZE 5 COLOR 0 0 0 BACKGROUNDCOLOR 255 255 255 BACKGROUNDSHADOWCOLOR 0 0 0 FORCE true END END PROJECTION "init=epsg:21781" END END -- Mit freundlichem Gruss / Best regards Flavio Hendry ---------------------------------------------------------------- TYDAC Inc. - http://www.tydac.ch Web Mapping - http://www.mapserver.ch Swiss Maps - http://www.mapplus.ch ---------------------------------------------------------------- ############ Mit freundlichen Gruessen / Kind Regards ############ Flavio Hendry, CEO - mailto:flavio at tydac.ch ############ TYDAC AG - http://www.tydac.ch #### #### Geographic Information Solutions #### #### Optingenstrasse 27 -- CH-3013 Bern ############ Tel +41 (0)31 368 0180 - Fax +41 (0)31 368 1860 ---------------------------------------------------------------- Location: http://www.mapplus.ch/adr/bern/optingenstrasse/27 ---------------------------------------------------------------- _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From szekerest at gmail.com Thu Oct 14 12:22:14 2010 From: szekerest at gmail.com (Tamas Szekeres) Date: Thu, 14 Oct 2010 21:22:14 +0200 Subject: [mapserver-users] Re: Compiling in Visual Studio 2008 In-Reply-To: <1287070217133-5634893.post@n2.nabble.com> References: <1287059712495-5634683.post@n2.nabble.com> <1287062797064-5634748.post@n2.nabble.com> <1287070217133-5634893.post@n2.nabble.com> Message-ID: Hi, You could also use the SDK packages from http://vbkto.dyndns.org/sdk/ These packages provide a Makefile to do a commandline build by using the Visual Studio Command Prompt. In order to integrate this into a solution the easiest thing to do is to create a VC++ makefile project and set up the build command line according to the Makefile provided. You could also create a debug build by adding 'DEBUG=YES' to the build command line. Best regards, Tamas 2010/10/14 Frost89 > > Hi Sumit > > Thanks for the answer. I'm a newbee at anything thats not .NET, but this > solution would really help in a project I'm on. Do you know anywhere I can > read more about setting up/creating this project? Or can you post an > example > if it's not too complicated? > > /Kristian Frost > -- > View this message in context: > http://osgeo-org.1803224.n2.nabble.com/Compiling-in-Visual-Studio-2008-tp5634683p5634893.html > Sent from the Mapserver - User mailing list archive at Nabble.com. > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -------------- next part -------------- An HTML attachment was scrubbed... URL: From richard.lehaut at gmail.com Thu Oct 14 13:18:53 2010 From: richard.lehaut at gmail.com (Richard LEHAUT) Date: Thu, 14 Oct 2010 22:18:53 +0200 Subject: [mapserver-users] Problem with wfs.php In-Reply-To: <1005782596.38.1286963709739.JavaMail.root@linux12> References: <1763291379.36.1286963498334.JavaMail.root@linux12> <1005782596.38.1286963709739.JavaMail.root@linux12> Message-ID: Hi, Thanks for example. I solved problem. Thanks every body. Here, my code test : Richard LEHAUT/Tiolebucheron Geometry((402363.90165238 2464262.4974283,481033.30361535 2524234.6872655,513841.61923219 2464615.2750155,433055.55174556 2416637.5231457,402363.90165238 2464262.4974283))'; foreach($list_layer as $i => $layer) { echo $layer; $curl_init[$i]= curl_init(' http://ws.carmen.developpement-durable.gouv.fr/WFS/8/nature?'); curl_setopt($curl_init[$i], CURLOPT_CONNECTTIMEOUT, 30); curl_setopt($curl_init[$i], CURLOPT_TIMEOUT, 30); curl_setopt($curl_init[$i], CURLOPT_POST,1); curl_setopt($curl_init[$i], CURLOPT_SSL_VERIFYPEER, false); curl_setopt($curl_init[$i], CURLOPT_SSL_VERIFYHOST, false); curl_setopt($curl_init[$i], CURLOPT_HEADER, 0); curl_setopt($curl_init[$i], CURLOPT_HTTPHEADER, array('Content-Type: text/xml')); curl_setopt($curl_init[$i], CURLOPT_POSTFIELDS, $layer); curl_setopt($curl_init[$i], CURLOPT_RETURNTRANSFER, 1); } $curl_multi = curl_multi_init(); foreach($list_layer as $i => $layer) { curl_multi_add_handle($curl_multi, $curl_init[$i]); } do { curl_multi_exec($curl_multi, $running); } while($running > 0); foreach($list_layer as $i => $layer) { echo curl_multi_getcontent($curl_init[$i]); curl_close($curl_init[$i]); } return $list_layer; ?> 2010/10/13 Olivier BEDEL > Hi Robert, > > The file_get_contents error you get doesn't come from your code but is > return by the Carmen wfs server. > As Jukka said, your filter seems too long to be sent in a GET parameter. > But when querying the wfs server in POST, you should send your query in XML > and not use Key Value Pair encoding (FILTER=...). > > In fact, the content of your POST query should look like this : > > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:gml=" > http://www.opengis.net/gml" service="WFS" version="1.0.0" > outputFormat="GML2" maxFeatures="100" handle="" > typeName="ZNIEFF_de_type_1" srsName="EPSG:2154" > >Geometry(526467,6821671 > 526471,6821675 526480,6821677 526482,6821676 526491,6821679 526490,6821682 > 526546,6821697 526615,6821701 526616,6821699 526627,6821699 526628,6821702 > 526708,6821705 526804,6821709 526821,6821701 526886,6821665 526916,6821658 > 526933,6821616 526961,6821574 526969,6821565 526982,6821513 526833,6821533 > 526833,6821517 526813,6821513 526801,6821508 526749,6821480 526732,6821469 > 526718,6821484 526688,6821481 526616,6821481 526620,6821448 526584,6821438 > 526547,6821401 526545,6821397 526533,6821376 526455,6821381 526453,6821379 > 526409,6821377 526415,6821415 526429,6821499 526440,6821569 526377,6821567 > 526362,6821463 526357,6821393 526359,6821371 526360,6821362 526365,6821332 > 526325,6821292 526315,6821308 526302,6821322 526296,6821325 526277,6821347 > 526286,6821417 526286,6821447 526295,6821516 526303,6821549 526308,6821569 > 526314,6821571 526320,6821578 526328,6821580 526340,6821589 526381,6821619 > 526466,6821673 526467,6821671 526467,6821671) (526489,6821639 526492,6821655 > 526493,6821655 526489,6821639 526489,6821639) (526467,6821588 526466,6821586 > 526464,6821585 526467,6821588 526467,6821588) (526479,6821603 526478,6821601 > 526477,6821599 526479,6821603 526479,6821603) (526489,6821639 526489,6821639 > 526486,6821627 526489,6821639 526489,6821639)) ((527187,6822859 > 527158,6822860 527138,6822862 527110,6822871 527104,6822873 527098,6822871 > 527054,6822879 527003,6822885 526998,6822885 526995,6822885 526972,6822882 > 526964,6822889 526955,6822894 526935,6822910 526922,6822929 526916,6822946 > 526910,6822973 526917,6822980 526917,6822987 526915,6823010 526942,6823015 > 526943,6823045 526945,6823052 526948,6823056 526956,6823059 526969,6823073 > 526973,6823081 526975,6823094 526970,6823097 526971,6823102 526987,6823123 > 527004,6823131 527019,6823103 527050,6823109 527134,6823120 527137,6823099 > 527133,6823084 527134,6823050 527190,6823074 527199,6823016 527220,6823014 > 527213,6822861 527204,6822860 527187,6822859 527187,6822859) (527114,6823008 > 527114,6823001 527071,6822980 527059,6822982 527050,6822978 527032,6822968 > 527024,6823072 527047,6823070 527043,6823034 527049,6822983 527068,6822984 > 527114,6823008 527114,6823008) (527112,6822930 527115,6822933 527118,6822943 > 527118,6822947 527119,6822955 527124,6822954 527123,6822945 527119,6822930 > 527115,6822925 527112,6822930 527112,6822930)) ((526685,6821896 > 526737,6821974 526766,6822042 526771,6822072 526782,6822030 526808,6821981 > 526869,6821901 526875,6821889 526909,6821797 526908,6821779 526900,6821771 > 526832,6821727 526812,6821722 526787,6821720 526785,6821761 526666,6821870 > 526685,6821896 526685,6821896)) ((527009,6822654 527076,6822645 > 527077,6822629 527076,6822611 527076,6822608 527079,6822589 527070,6822587 > 527063,6822589 527038,6822623 527012,6822641 527009,6822649 527007,6822650 > 527002,6822652 526984,6822657 526953,6822666 526917,6822684 526898,6822697 > 526901,6822703 526949,6822680 526958,6822701 526927,6822716 526946,6822718 > 526955,6822714 526961,6822709 526980,6822748 526988,6822809 526997,6822811 > 527002,6822843 527040,6822877 527052,6822875 527086,6822868 527100,6822860 > 527104,6822849 527107,6822845 527113,6822839 527120,6822826 527134,6822803 > 527147,6822771 527160,6822720 527168,6822679 527153,6822679 527132,6822678 > 527079,6822677 527012,6822671 527009,6822654 527009,6822654)) > ((527249,6822166 527250,6822157 527257,6822142 527274,6822104 527280,6822079 > 527265,6822097 527230,6822148 527205,6822195 527179,6822230 527163,6822262 > 527205,6822288 527251,6822297 527270,6822298 527334,6822298 527376,6822304 > 527391,6822304 527503,6822328 527554,6822333 527572,6822322 527548,6822299 > 527542,6822296 527545,6822281 527391,6822246 527282,6822211 527218,6822199 > 527249,6822166 527249,6822166)) ((526821,6822064 526901,6822093 > 526939,6822084 526962,6822085 526985,6822075 527018,6822113 527046,6822155 > 527068,6822140 527064,6822093 527061,6822073 527051,6822041 527024,6821996 > 526906,6821995 526896,6821998 526889,6822002 526868,6822015 526852,6822029 > 526821,6822064 526821,6822064)) ((527082,6822584 527086,6822573 > 527091,6822566 527073,6822564 527065,6822561 527046,6822526 527047,6822455 > 527052,6822410 527053,6822381 527038,6822382 527036,6822378 526966,6822403 > 526967,6822435 526972,6822476 526983,6822538 527010,6822639 527032,6822623 > 527036,6822619 527055,6822594 527060,6822586 527066,6822584 527081,6822585 > 527082,6822584 527082,6822584)) ((526546,6821979 526549,6822025 > 526551,6822040 526563,6822075 526684,6822011 526655,6821986 526614,6821947 > 526680,6821898 526664,6821872 526662,6821873 526546,6821979 526546,6821979)) > ((527014,6821959 527090,6821938 527116,6821929 527112,6821927 527110,6821928 > 527103,6821924 527104,6821920 527060,6821893 527019,6821865 527017,6821866 > 527006,6821858 527008,6821855 526927,6821792 526923,6821792 526922,6821794 > 526924,6821803 526984,6821906 527006,6821947 527014,6821959 527014,6821959)) > ((527170,6822232 527134,6822195 527134,6822164 527129,6822155 527102,6822120 > 527073,6822133 527074,6822170 527083,6822210 527123,6822234 527156,6822262 > 527170,6822232 527170,6822232)) ((526582,6822099 526581,6822099 > 526584,6822100 526592,6822098 526600,6822099 526626,6822130 526741,6822056 > 526740,6822052 526704,6822025 526582,6822099 526582,6822099)) > ((527461,6822398 527434,6822522 527484,6822557 527504,6822464 527472,6822443 > 527472,6822435 527489,6822377 527461,6822398 527461,6822398)) > ((527423,6822716 527345,6822691 527339,6822710 527302,6822693 527289,6822721 > 527396,6822770 527414,6822736 527423,6822716 527423,6822716)) > ((527726,6822272 527788,6822255 527792,6822219 527799,6822180 527817,6822133 > 527792,6822152 527774,6822172 527747,6822196 527727,6822269 527726,6822272 > 527726,6822272)) ((527835,6823091 527845,6823121 527847,6823122 > 527871,6823117 527904,6823102 527896,6823091 527911,6823082 527889,6823053 > 527858,6823079 527835,6823091 527835,6823091)) ((527129,6822598 > 527125,6822597 527154,6822653 527171,6822677 527210,6822631 527129,6822598 > 527129,6822598)) ((527184,6822670 527176,6822681 527190,6822695 > 527236,6822770 527269,6822749 527184,6822670 527184,6822670)) > ((526719,6821400 526751,6821412 526776,6821372 526747,6821327 526719,6821400 > 526719,6821400)) ((527143,6822790 527141,6822795 527133,6822810 > 527128,6822819 527124,6822825 527117,6822840 527110,6822846 527107,6822851 > 527103,6822862 527106,6822865 527110,6822865 527139,6822859 527135,6822836 > 527160,6822831 527174,6822853 527177,6822854 527187,6822855 527164,6822818 > 527143,6822790 527143,6822790)) ((527423,6822716 527420,6822725 > 527449,6822734 527480,6822692 527430,6822672 527428,6822676 527431,6822697 > 527423,6822716 527423,6822716)) ((526654,6822160 526675,6822186 > 526685,6822193 526698,6822175 526692,6822165 526679,6822144 526654,6822160 > 526654,6822160) > > Regards, > > Olivier. > > > > > ----- Mail Original ----- > De: "Richard LEHAUT" > ?: "Yves Jacolin" > Cc: "Rahkonen Jukka" , > mapserver-users at lists.osgeo.org > Envoy?: Mardi 12 Octobre 2010 16:59:49 > Objet: Re: [mapserver-users] Problem with wfs.php > > > Hi, > I followed your instructions, I try use "curl-setopt-array" with > "curl_multi_init". > > function curl_get_multi_content($list_layer) { > $curl_init = array(); > > foreach($list_layer as $i => $layer) { > unset($options); > $options = array > ( > CURLOPT_RETURNTRANSFER => true, > CURLOPT_CONNECTTIMEOUT => 120, > CURLOPT_TIMEOUT => 120, > CURLOPT_POST => 1, > CURLOPT_POSTFIELDS => $layer['data'].$layer['filter'], > ); > > $curl_init[$i] = curl_init($layer['url']); > curl_setopt_array($curl_init[$i],$options); > } > > $curl_multi = curl_multi_init(); > > foreach($list_layer as $i => $layer) { > curl_multi_add_handle($curl_multi, $curl_init[$i]); > } > do { > curl_multi_exec($curl_multi, $running); > } while($running > 0); > > foreach($list_layer as $i => $layer) { > echo curl_multi_getcontent($curl_init[$i]); > $list_layer[$i] = > $layer+Array('info'=>get_info_xml(curl_multi_getcontent($curl_init[$i]), > $layer['name'])); > curl_close($curl_init[$i]); > } > return $list_layer; > } > > With my server, result is correct. I've a error with server Carmen : > ZNIEFF_de_type_1=======> > Warning: file_get_contents( > http://ws.carmen.developpement-durable.gouv.fr/cgi-bin/mapserv?service_idx=8&map=%2Fmnt%2Fdata_carmen%2FBN%2FPublication%2Fwms_nature.map&VERSION=1.0.0&SERVICE=WFS&REQUEST=GetFeature&TYPENAME=ZNIEFF_de_type_1&FILTER=%3CFilter%3E%3CIntersect%3E%3CPropertyName%3EGeometry%3C%2FPropertyName%3E%3Cgml%3APolygon%3E%3Cgml%3AouterBoundaryIs%3E%3Cgml%3ALinearRing%3E%3Cgml%3Acoordinates%3E%28526467%2C6821671%20526471%2C6821675%20526480%2C6821677%20526482%2C6821676%20526491%2C6821679%20526490%2C6821682%20526546%2C6821697%20526615%2C6821701%20526616%2C6821699%20526627%2C6821699%20526628%2C6821702%20526708%2C6821705%20526804%2C6821709%20526821%2C6821701%20526886%2C6821665%20526916%2C6821658%20526933%2C6821616%20526961%2C6821574%20526969%2C6821565%20526982%2C6821513%20526833%2C6821533%20526833%2C6821517%20526813%2C6821513%20526801%2C6821508%20526749%2C6821480%20526732%2C6821469%20526718%2C6821484%20526688%2C6821481%20526616%2C6821481%20526620%2C6821448%20526584%2C6821438%20526547%2Cin /applications/www/carmen/WFS/wfs.php on line 123 > > Warning: Cannot modify header information - headers already sent by (output > started at /applications/www/carmen/WFS/wfs.php:123) in > /applications/www/carmen/WFS/wfs.php on line 91. > > It's the same message of the first error (number of ligne changed), but the > function working properly on my server!!!! > > Thanks for your help. > > Richard LEHAUT/Tiolebucheron > > > 2010/10/11 Yves Jacolin < yves.jacolin at camptocamp.com > > > > Hi, > > Don't use file_get_contents but cURL rather: > http://www.php.net/manual/fr/function.curl-setopt-array.php > > Regards, > > Y. > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -------------- next part -------------- An HTML attachment was scrubbed... URL: From randre at gmail.com Thu Oct 14 21:55:30 2010 From: randre at gmail.com (=?UTF-8?B?Um9nZXIgQW5kcsOp?=) Date: Thu, 14 Oct 2010 21:55:30 -0700 Subject: [mapserver-users] Can I layer a 2-part, vector, highway symbol? Message-ID: Hi All, I'm stuck. How do I get US Interstate highway shields to display properly? I got my annotation layer to display road shields, but I cannot figure out how to display a 2-part interstate shield symbol with the parts properly lined up. I have a base outline that displays in blue, and a red top-bar that displays in red. Unfortunately, the bar sits in the middle of the base, rather than at the top. I have a road shields .ttf file that has shields in multiple pieces as well - same problem. How are these supposed to be done? Thanks for the advice, Roger -------------- next part -------------- An HTML attachment was scrubbed... URL: From niccolo at rigacci.org Fri Oct 15 02:13:15 2010 From: niccolo at rigacci.org (Niccolo Rigacci) Date: Fri, 15 Oct 2010 11:13:15 +0200 Subject: Hi: [mapserver-users] MapServer as a reprojecting WMS proxy,is it possible? In-Reply-To: References: <20101013194831.GA19610@rigacci.org> Message-ID: <20101015091315.GB17743@rigacci.org> On Wed, Oct 13, 2010 at 11:44:18PM +0300, Rahkonen Jukka wrote: > > So I tried to configure MapServer to act as a proxy (both > > client and server), doing the reprojection. But I failed. > > ... > > I can't test right now but I suppose this should work. Define > the LAYER to use the SRS supported by the remote service like > in the document http://mapserver.org/ogc/wms_client.html Thanks, it works! The recipe is: * Declare the **target SRS** in MAP.PROJECTION and MAP.METADATA.wms_srs * Declare **only the source SRS** in MAP.LAYER.PROJECTION and MAP.LAYER.PROJECTION.METADATA.wms_srs * Declare the MAP.EXTENT, MAP.LAYER.EXTENT and MAP.LAYER.METADATA.wms_extent using the correct SRS. This is required to generate a GetCapabilities without warnings, compatible with QGIS 1.5.0 too. Here it is the actual mapfile (notes are in Italian only, sorry): https://www.rigacci.org/wiki/doku.php/tecnica/gps_cartografia_gis/mapserver_wms_proxy -- Niccolo Rigacci Firenze - Italy From woodbri at swoodbridge.com Fri Oct 15 06:57:51 2010 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Fri, 15 Oct 2010 09:57:51 -0400 Subject: [mapserver-users] Can I layer a 2-part, vector, highway symbol? In-Reply-To: References: Message-ID: <4CB85DDF.6040609@swoodbridge.com> On 10/15/2010 12:55 AM, Roger Andr? wrote: > Hi All, > > I'm stuck. How do I get US Interstate highway shields to display properly? > > I got my annotation layer to display road shields, but I cannot figure > out how to display a 2-part interstate shield symbol with the parts > properly lined up. I have a base outline that displays in blue, and a > red top-bar that displays in red. Unfortunately, the bar sits in the > middle of the base, rather than at the top. I have a road shields .ttf > file that has shields in multiple pieces as well - same problem. > > How are these supposed to be done? Use the OFFSETX and OFFSETY paramaters to nudge the pieces into place. -Steve W From thomas.bonfort at gmail.com Fri Oct 15 09:35:52 2010 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Fri, 15 Oct 2010 18:35:52 +0200 Subject: [mapserver-users] FW: announcing mod_geocache: an apache tiling module Message-ID: Hi mapserver users, (reposting here as I messed up the mapserver-users email address, you should imagine I should know it has changed by now :) - please respond to tiling at lists.osgeo.org so as not to pollute this list) Having followed the tiling sessions at Barcelona, it seemed to me like a good idea to explore having a tiling backend directly as an apache module (i.e directly implemented in C). I have a preliminary implementation hosted at http://code.google.com/p/mod-geocache/, that currently supports WMS requests (as a client and server), metatiling and dynamic tile merging. The architecture is very much inspired by the tilecache code. the aims of the project are: ?* keep performance in mind at all times ?* simplify server deployment, not having to install and configure python/mod_python/... ?* support wms backends, and offer frontends for wms, wmts and tms ?* enable (by configuration) the proxying or rescaling of requests that cannot be directly served from cache ?* various image optimisations (watermarking, quantization, ...) a preliminary benchmark againt tilecache can be found here: http://code.google.com/p/mod-geocache/wiki/PreliminaryBenchmark I would be happy to discuss on the subject with any folks or organisations willing to contribute or ready to fund ongoing development. Best regards, Thomas Bonfort Terriscope EURL, Toulouse, France From randre at gmail.com Fri Oct 15 15:43:01 2010 From: randre at gmail.com (=?UTF-8?B?Um9nZXIgQW5kcsOp?=) Date: Fri, 15 Oct 2010 15:43:01 -0700 Subject: [mapserver-users] Can I layer a 2-part, vector, highway symbol? In-Reply-To: <4CB85DDF.6040609@swoodbridge.com> References: <4CB85DDF.6040609@swoodbridge.com> Message-ID: Brilliant, thanks. I had to mess with the ratio of sizes a bit, but the following works: # Interstate CLASS EXPRESSION "I1" STYLE SYMBOL "inter_base" SIZE 20 COLOR 0 0 255 OUTLINECOLOR 255 255 255 END STYLE SYMBOL "shield_bar" SIZE 4 COLOR 255 0 0 OFFSET 0 -8 END LABEL TYPE truetype FONT "arial" SIZE 6 COLOR 255 255 255 MINDISTANCE 200 PARTIALS false POSITION CC ANGLE 0 END # end label END #end class On Fri, Oct 15, 2010 at 6:57 AM, Stephen Woodbridge wrote: > On 10/15/2010 12:55 AM, Roger Andr? wrote: > >> Hi All, >> >> I'm stuck. How do I get US Interstate highway shields to display >> properly? >> >> I got my annotation layer to display road shields, but I cannot figure >> out how to display a 2-part interstate shield symbol with the parts >> properly lined up. I have a base outline that displays in blue, and a >> red top-bar that displays in red. Unfortunately, the bar sits in the >> middle of the base, rather than at the top. I have a road shields .ttf >> file that has shields in multiple pieces as well - same problem. >> >> How are these supposed to be done? >> > > Use the OFFSETX and OFFSETY paramaters to nudge the pieces into place. > > -Steve W > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ken at sandnarrows.com Sun Oct 17 07:01:07 2010 From: ken at sandnarrows.com (K) Date: Sun, 17 Oct 2010 11:01:07 -0300 Subject: [mapserver-users] Trouble shooting SLD? Message-ID: <4CBB01A3.7070800@sandnarrows.com> Is there any way to trouble shoot why an SLD layer is being being rejected, or suggestions as to what it might be? Currently Mapserver seems to be ignoring the SLD and not displaying it, which I assume means some kind of parsing error or rejection of the SLD? I look at my getcapabilities and it says: Which I assume means yes SLD is supported. I can browse to my SLD file, no errors opening it: http://www.rockies.ca/coyotes/sld_template2.xml I have tried using an SLD created by QGIS, one using PHP/Mapscript, and a couple from examples in Mapserver documentation that I edited to work for my use. I turned on the error log in my map file and put debug to 5, no mention of any errors or anything, though that isn't surprising as from what I read Mapserver currently catches those errors and displays the WMS layer as is, but provides no feedback as to the errors? I had spaces in my layer name to start, thought that might cause a problem so removed those. I have tried viewing in Openlayers, straight URL request, and via a quick mapscript application, all the same result. Any other suggestions? Thanks, Ken From jmckenna at gatewaygeomatics.com Sun Oct 17 07:57:39 2010 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Sun, 17 Oct 2010 11:57:39 -0300 Subject: [mapserver-users] Trouble shooting SLD? In-Reply-To: <4CBB01A3.7070800@sandnarrows.com> References: <4CBB01A3.7070800@sandnarrows.com> Message-ID: <4CBB0EE3.8060505@gatewaygeomatics.com> On 10-10-17 11:01 AM, K wrote: > Is there any way to trouble shoot why an SLD layer is being being > rejected, or suggestions as to what it might be? Currently Mapserver > seems to be ignoring the SLD and not displaying it, which I assume means > some kind of parsing error or rejection of the SLD? > > I look at my getcapabilities and it says: SupportSLD="1" UserLayer="0" UserStyle="1" RemoteWFS="0"/> > > Which I assume means yes SLD is supported. > > I can browse to my SLD file, no errors opening it: > http://www.rockies.ca/coyotes/sld_template2.xml > > I have tried using an SLD created by QGIS, one using PHP/Mapscript, and > a couple from examples in Mapserver documentation that I edited to work > for my use. > > I turned on the error log in my map file and put debug to 5, no mention > of any errors or anything, though that isn't surprising as from what I > read Mapserver currently catches those errors and displays the WMS layer > as is, but provides no feedback as to the errors? > > I had spaces in my layer name to start, thought that might cause a > problem so removed those. > > I have tried viewing in Openlayers, straight URL request, and via a > quick mapscript application, all the same result. > > Any other suggestions? Note that all SLDs used in the MapServer documentation can be accessed at: http://demo.mapserver.org/ogc-demos/map/sld/ -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ From ken at sandnarrows.com Sun Oct 17 11:09:52 2010 From: ken at sandnarrows.com (K) Date: Sun, 17 Oct 2010 15:09:52 -0300 Subject: [mapserver-users] Trouble shooting SLD? In-Reply-To: <4CBB0EE3.8060505@gatewaygeomatics.com> References: <4CBB01A3.7070800@sandnarrows.com> <4CBB0EE3.8060505@gatewaygeomatics.com> Message-ID: <4CBB3BF0.9090109@sandnarrows.com> Thanks, I tried one of those. Left colors as is, but changed the Name, Title and PropertyName fields to the name of the layer in my map file. Still no luck, just returns the normal map. Thanks again, Ken On 17/10/2010 11:57 AM, Jeff McKenna wrote: > On 10-10-17 11:01 AM, K wrote: >> Is there any way to trouble shoot why an SLD layer is being being >> rejected, or suggestions as to what it might be? Currently Mapserver >> seems to be ignoring the SLD and not displaying it, which I assume means >> some kind of parsing error or rejection of the SLD? >> >> I look at my getcapabilities and it says: > SupportSLD="1" UserLayer="0" UserStyle="1" RemoteWFS="0"/> >> >> Which I assume means yes SLD is supported. >> >> I can browse to my SLD file, no errors opening it: >> http://www.rockies.ca/coyotes/sld_template2.xml >> >> I have tried using an SLD created by QGIS, one using PHP/Mapscript, and >> a couple from examples in Mapserver documentation that I edited to work >> for my use. >> >> I turned on the error log in my map file and put debug to 5, no mention >> of any errors or anything, though that isn't surprising as from what I >> read Mapserver currently catches those errors and displays the WMS layer >> as is, but provides no feedback as to the errors? >> >> I had spaces in my layer name to start, thought that might cause a >> problem so removed those. >> >> I have tried viewing in Openlayers, straight URL request, and via a >> quick mapscript application, all the same result. >> >> Any other suggestions? > > Note that all SLDs used in the MapServer documentation can be accessed > at: http://demo.mapserver.org/ogc-demos/map/sld/ > > -jeff > > From Jukka.Rahkonen at mmmtike.fi Sun Oct 17 11:16:18 2010 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Sun, 17 Oct 2010 21:16:18 +0300 Subject: [mapserver-users] Trouble shooting SLD? References: <4CBB01A3.7070800@sandnarrows.com><4CBB0EE3.8060505@gatewaygeomatics.com> <4CBB3BF0.9090109@sandnarrows.com> Message-ID: Hi, It would be much easier to start thinking about what goes wrong if you could mail also your layer and the failing SLD. -Jukka Rahkonen- -----Alkuper?inen viesti----- L?hett?j?: mapserver-users-bounces at lists.osgeo.org puolesta: K L?hetetty: su 17.10.2010 21:09 Vastaanottaja: Jeff McKenna Kopio: mapserver-users at lists.osgeo.org Aihe: Re: [mapserver-users] Trouble shooting SLD? Thanks, I tried one of those. Left colors as is, but changed the Name, Title and PropertyName fields to the name of the layer in my map file. Still no luck, just returns the normal map. Thanks again, Ken On 17/10/2010 11:57 AM, Jeff McKenna wrote: > On 10-10-17 11:01 AM, K wrote: >> Is there any way to trouble shoot why an SLD layer is being being >> rejected, or suggestions as to what it might be? Currently Mapserver >> seems to be ignoring the SLD and not displaying it, which I assume means >> some kind of parsing error or rejection of the SLD? >> >> I look at my getcapabilities and it says: > SupportSLD="1" UserLayer="0" UserStyle="1" RemoteWFS="0"/> >> >> Which I assume means yes SLD is supported. >> >> I can browse to my SLD file, no errors opening it: >> http://www.rockies.ca/coyotes/sld_template2.xml >> >> I have tried using an SLD created by QGIS, one using PHP/Mapscript, and >> a couple from examples in Mapserver documentation that I edited to work >> for my use. >> >> I turned on the error log in my map file and put debug to 5, no mention >> of any errors or anything, though that isn't surprising as from what I >> read Mapserver currently catches those errors and displays the WMS layer >> as is, but provides no feedback as to the errors? >> >> I had spaces in my layer name to start, thought that might cause a >> problem so removed those. >> >> I have tried viewing in Openlayers, straight URL request, and via a >> quick mapscript application, all the same result. >> >> Any other suggestions? > > Note that all SLDs used in the MapServer documentation can be accessed > at: http://demo.mapserver.org/ogc-demos/map/sld/ > > -jeff > > _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From ken at sandnarrows.com Sun Oct 17 11:37:11 2010 From: ken at sandnarrows.com (K) Date: Sun, 17 Oct 2010 15:37:11 -0300 Subject: [mapserver-users] Trouble shooting SLD? In-Reply-To: References: <4CBB01A3.7070800@sandnarrows.com><4CBB0EE3.8060505@gatewaygeomatics.com> <4CBB3BF0.9090109@sandnarrows.com> Message-ID: <4CBB4257.8010009@sandnarrows.com> Ok, didnt want to spam the the list, here is my map file and the SLD file I am using: MAP NAME "Communities" SIZE 700 500 UNITS meters CONFIG PROJ_LIB "R:\proj\nad\" CONFIG MS_ERRORFILE "mapserver.log" DEBUG 5 EXTENT -12726256 6595213 -12674715 6655243 PROJECTION "init=epsg:900913" END TRANSPARENT ON IMAGECOLOR 255 255 255 IMAGEQUALITY 95 IMAGETYPE png OUTPUTFORMAT NAME png DRIVER 'GD/PNG' MIMETYPE 'image/png' #IMAGEMODE PC256 EXTENSION 'png' END LEGEND IMAGECOLOR 255 255 255 STATUS ON KEYSIZE 18 12 LABEL TYPE BITMAP SIZE MEDIUM COLOR 0 0 89 END END WEB IMAGEPATH 'R:/webtemp/' IMAGEURL '/webtemp/' # WMS server settings METADATA 'wms_title' '"Communities"' 'wms_onlineresource' 'http://someserver.com/cgi-bin/mapserv?map=wms.map&' 'wms_srs' 'EPSG:900913' END END LAYER NAME 'Communities' TYPE POLYGON DATA 'someshapefile.shp' TEMPLATE 'ttt_query.html' DUMP TRUE METADATA 'wms_title' 'Communities' 'wms_include_items' 'ID' END STATUS DEFAULT CLASS NAME 'Communities' STYLE SYMBOL 'circle' SIZE 3 OUTLINECOLOR 255 255 0 END END END SYMBOL NAME 'circle' TYPE ELLIPSE FILLED TRUE POINTS 1 1 END END END And the SLD file: Communities Communities Communities #ff0000 #ff0000 2.0 Thanks for your help, Ken On 17/10/2010 3:16 PM, Rahkonen Jukka wrote: > Hi, > > It would be much easier to start thinking about what goes wrong if you could mail also your layer and the failing SLD. > > -Jukka Rahkonen- > > > -----Alkuper?inen viesti----- > L?hett?j?: mapserver-users-bounces at lists.osgeo.org puolesta: K > L?hetetty: su 17.10.2010 21:09 > Vastaanottaja: Jeff McKenna > Kopio: mapserver-users at lists.osgeo.org > Aihe: Re: [mapserver-users] Trouble shooting SLD? > > Thanks, I tried one of those. Left colors as is, but changed the Name, > Title and PropertyName fields to the name of the layer in my map file. > > Still no luck, just returns the normal map. > > Thanks again, > > Ken > > On 17/10/2010 11:57 AM, Jeff McKenna wrote: >> On 10-10-17 11:01 AM, K wrote: >>> Is there any way to trouble shoot why an SLD layer is being being >>> rejected, or suggestions as to what it might be? Currently Mapserver >>> seems to be ignoring the SLD and not displaying it, which I assume means >>> some kind of parsing error or rejection of the SLD? >>> >>> I look at my getcapabilities and it says:>> SupportSLD="1" UserLayer="0" UserStyle="1" RemoteWFS="0"/> >>> >>> Which I assume means yes SLD is supported. >>> >>> I can browse to my SLD file, no errors opening it: >>> http://www.rockies.ca/coyotes/sld_template2.xml >>> >>> I have tried using an SLD created by QGIS, one using PHP/Mapscript, and >>> a couple from examples in Mapserver documentation that I edited to work >>> for my use. >>> >>> I turned on the error log in my map file and put debug to 5, no mention >>> of any errors or anything, though that isn't surprising as from what I >>> read Mapserver currently catches those errors and displays the WMS layer >>> as is, but provides no feedback as to the errors? >>> >>> I had spaces in my layer name to start, thought that might cause a >>> problem so removed those. >>> >>> I have tried viewing in Openlayers, straight URL request, and via a >>> quick mapscript application, all the same result. >>> >>> Any other suggestions? >> >> Note that all SLDs used in the MapServer documentation can be accessed >> at: http://demo.mapserver.org/ogc-demos/map/sld/ >> >> -jeff >> >> > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > From Jukka.Rahkonen at mmmtike.fi Sun Oct 17 13:03:32 2010 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Sun, 17 Oct 2010 23:03:32 +0300 Subject: [mapserver-users] Trouble shooting SLD? References: <4CBB01A3.7070800@sandnarrows.com><4CBB0EE3.8060505@gatewaygeomatics.com><4CBB3BF0.9090109@sandnarrows.com> <4CBB4257.8010009@sandnarrows.com> Message-ID: Hi, This is a plain guess, but do you have an attribute named "Communities" in your data as it is used in Communities? -Jukka- -----Alkuper?inen viesti----- L?hett?j?: mapserver-users-bounces at lists.osgeo.org puolesta: K L?hetetty: su 17.10.2010 21:37 Vastaanottaja: Rahkonen Jukka Kopio: mapserver-users at lists.osgeo.org Aihe: Re: [mapserver-users] Trouble shooting SLD? Ok, didnt want to spam the the list, here is my map file and the SLD file I am using: MAP NAME "Communities" SIZE 700 500 UNITS meters CONFIG PROJ_LIB "R:\proj\nad\" CONFIG MS_ERRORFILE "mapserver.log" DEBUG 5 EXTENT -12726256 6595213 -12674715 6655243 PROJECTION "init=epsg:900913" END TRANSPARENT ON IMAGECOLOR 255 255 255 IMAGEQUALITY 95 IMAGETYPE png OUTPUTFORMAT NAME png DRIVER 'GD/PNG' MIMETYPE 'image/png' #IMAGEMODE PC256 EXTENSION 'png' END LEGEND IMAGECOLOR 255 255 255 STATUS ON KEYSIZE 18 12 LABEL TYPE BITMAP SIZE MEDIUM COLOR 0 0 89 END END WEB IMAGEPATH 'R:/webtemp/' IMAGEURL '/webtemp/' # WMS server settings METADATA 'wms_title' '"Communities"' 'wms_onlineresource' 'http://someserver.com/cgi-bin/mapserv?map=wms.map&' 'wms_srs' 'EPSG:900913' END END LAYER NAME 'Communities' TYPE POLYGON DATA 'someshapefile.shp' TEMPLATE 'ttt_query.html' DUMP TRUE METADATA 'wms_title' 'Communities' 'wms_include_items' 'ID' END STATUS DEFAULT CLASS NAME 'Communities' STYLE SYMBOL 'circle' SIZE 3 OUTLINECOLOR 255 255 0 END END END SYMBOL NAME 'circle' TYPE ELLIPSE FILLED TRUE POINTS 1 1 END END END And the SLD file: Communities Communities Communities #ff0000 #ff0000 2.0 Thanks for your help, Ken On 17/10/2010 3:16 PM, Rahkonen Jukka wrote: > Hi, > > It would be much easier to start thinking about what goes wrong if you could mail also your layer and the failing SLD. > > -Jukka Rahkonen- > > > -----Alkuper?inen viesti----- > L?hett?j?: mapserver-users-bounces at lists.osgeo.org puolesta: K > L?hetetty: su 17.10.2010 21:09 > Vastaanottaja: Jeff McKenna > Kopio: mapserver-users at lists.osgeo.org > Aihe: Re: [mapserver-users] Trouble shooting SLD? > > Thanks, I tried one of those. Left colors as is, but changed the Name, > Title and PropertyName fields to the name of the layer in my map file. > > Still no luck, just returns the normal map. > > Thanks again, > > Ken > > On 17/10/2010 11:57 AM, Jeff McKenna wrote: >> On 10-10-17 11:01 AM, K wrote: >>> Is there any way to trouble shoot why an SLD layer is being being >>> rejected, or suggestions as to what it might be? Currently Mapserver >>> seems to be ignoring the SLD and not displaying it, which I assume means >>> some kind of parsing error or rejection of the SLD? >>> >>> I look at my getcapabilities and it says:>> SupportSLD="1" UserLayer="0" UserStyle="1" RemoteWFS="0"/> >>> >>> Which I assume means yes SLD is supported. >>> >>> I can browse to my SLD file, no errors opening it: >>> http://www.rockies.ca/coyotes/sld_template2.xml >>> >>> I have tried using an SLD created by QGIS, one using PHP/Mapscript, and >>> a couple from examples in Mapserver documentation that I edited to work >>> for my use. >>> >>> I turned on the error log in my map file and put debug to 5, no mention >>> of any errors or anything, though that isn't surprising as from what I >>> read Mapserver currently catches those errors and displays the WMS layer >>> as is, but provides no feedback as to the errors? >>> >>> I had spaces in my layer name to start, thought that might cause a >>> problem so removed those. >>> >>> I have tried viewing in Openlayers, straight URL request, and via a >>> quick mapscript application, all the same result. >>> >>> Any other suggestions? >> >> Note that all SLDs used in the MapServer documentation can be accessed >> at: http://demo.mapserver.org/ogc-demos/map/sld/ >> >> -jeff >> >> > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From ken at sandnarrows.com Sun Oct 17 14:21:51 2010 From: ken at sandnarrows.com (K) Date: Sun, 17 Oct 2010 18:21:51 -0300 Subject: [mapserver-users] Trouble shooting SLD? In-Reply-To: References: <4CBB01A3.7070800@sandnarrows.com><4CBB0EE3.8060505@gatewaygeomatics.com><4CBB3BF0.9090109@sandnarrows.com> <4CBB4257.8010009@sandnarrows.com> Message-ID: <4CBB68EF.700@sandnarrows.com> Yes I do, in case it was a problem with the field I went and tried SHAPE, FID, ID and the rest of the fields, no change. On the odd case I spelt Communities wrong I also went through and copy and pasted from once source all the times I had put it in my MAP and SLD document. All same result unfortunately, still not using the SLD. Thanks for your time in providing suggestions. Ken On 17/10/2010 5:03 PM, Rahkonen Jukka wrote: > Hi, > > This is a plain guess, but do you have an attribute named "Communities" in your data as it is used in > Communities? > > -Jukka- > > > -----Alkuper?inen viesti----- > L?hett?j?: mapserver-users-bounces at lists.osgeo.org puolesta: K > L?hetetty: su 17.10.2010 21:37 > Vastaanottaja: Rahkonen Jukka > Kopio: mapserver-users at lists.osgeo.org > Aihe: Re: [mapserver-users] Trouble shooting SLD? > > Ok, didnt want to spam the the list, here is my map file and the SLD > file I am using: > > MAP > NAME "Communities" > SIZE 700 500 > UNITS meters > CONFIG PROJ_LIB "R:\proj\nad\" > CONFIG MS_ERRORFILE "mapserver.log" > DEBUG 5 > EXTENT -12726256 6595213 -12674715 6655243 > > PROJECTION > "init=epsg:900913" > END > TRANSPARENT ON > IMAGECOLOR 255 255 255 > IMAGEQUALITY 95 > IMAGETYPE png > OUTPUTFORMAT > NAME png > DRIVER 'GD/PNG' > MIMETYPE 'image/png' > #IMAGEMODE PC256 > EXTENSION 'png' > END > LEGEND > IMAGECOLOR 255 255 255 > STATUS ON > KEYSIZE 18 12 > LABEL > TYPE BITMAP > SIZE MEDIUM > COLOR 0 0 89 > END > END > WEB > IMAGEPATH 'R:/webtemp/' > IMAGEURL '/webtemp/' > > # WMS server settings > METADATA > 'wms_title' '"Communities"' > 'wms_onlineresource' > 'http://someserver.com/cgi-bin/mapserv?map=wms.map&' > 'wms_srs' 'EPSG:900913' > END > END > > LAYER > NAME 'Communities' > TYPE POLYGON > DATA 'someshapefile.shp' > TEMPLATE 'ttt_query.html' > DUMP TRUE > METADATA > 'wms_title' 'Communities' > 'wms_include_items' 'ID' > END > STATUS DEFAULT > CLASS > NAME 'Communities' > STYLE > SYMBOL 'circle' > SIZE 3 > OUTLINECOLOR 255 255 0 > END > END > END > > SYMBOL > NAME 'circle' > TYPE ELLIPSE > FILLED TRUE > POINTS 1 1 END > END > END > > And the SLD file: > > > > Communities > > Communities > > > > > Communities > > > #ff0000 > > > #ff0000 > 2.0 > > > > > > > > > Thanks for your help, > > Ken > > On 17/10/2010 3:16 PM, Rahkonen Jukka wrote: >> Hi, >> >> It would be much easier to start thinking about what goes wrong if you could mail also your layer and the failing SLD. >> >> -Jukka Rahkonen- >> >> >> -----Alkuper?inen viesti----- >> L?hett?j?: mapserver-users-bounces at lists.osgeo.org puolesta: K >> L?hetetty: su 17.10.2010 21:09 >> Vastaanottaja: Jeff McKenna >> Kopio: mapserver-users at lists.osgeo.org >> Aihe: Re: [mapserver-users] Trouble shooting SLD? >> >> Thanks, I tried one of those. Left colors as is, but changed the Name, >> Title and PropertyName fields to the name of the layer in my map file. >> >> Still no luck, just returns the normal map. >> >> Thanks again, >> >> Ken >> >> On 17/10/2010 11:57 AM, Jeff McKenna wrote: >>> On 10-10-17 11:01 AM, K wrote: >>>> Is there any way to trouble shoot why an SLD layer is being being >>>> rejected, or suggestions as to what it might be? Currently Mapserver >>>> seems to be ignoring the SLD and not displaying it, which I assume means >>>> some kind of parsing error or rejection of the SLD? >>>> >>>> I look at my getcapabilities and it says:>>> SupportSLD="1" UserLayer="0" UserStyle="1" RemoteWFS="0"/> >>>> >>>> Which I assume means yes SLD is supported. >>>> >>>> I can browse to my SLD file, no errors opening it: >>>> http://www.rockies.ca/coyotes/sld_template2.xml >>>> >>>> I have tried using an SLD created by QGIS, one using PHP/Mapscript, and >>>> a couple from examples in Mapserver documentation that I edited to work >>>> for my use. >>>> >>>> I turned on the error log in my map file and put debug to 5, no mention >>>> of any errors or anything, though that isn't surprising as from what I >>>> read Mapserver currently catches those errors and displays the WMS layer >>>> as is, but provides no feedback as to the errors? >>>> >>>> I had spaces in my layer name to start, thought that might cause a >>>> problem so removed those. >>>> >>>> I have tried viewing in Openlayers, straight URL request, and via a >>>> quick mapscript application, all the same result. >>>> >>>> Any other suggestions? >>> >>> Note that all SLDs used in the MapServer documentation can be accessed >>> at: http://demo.mapserver.org/ogc-demos/map/sld/ >>> >>> -jeff >>> >>> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> >> >> > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > From pomiarowiec10 at poczta.onet.pl Mon Oct 18 02:15:21 2010 From: pomiarowiec10 at poczta.onet.pl (=?UTF-8?B?QmFydMWCb21pZWogQnVya290?=) Date: Mon, 18 Oct 2010 11:15:21 +0200 Subject: [mapserver-users] Trouble shooting SLD? In-Reply-To: <4CBB68EF.700@sandnarrows.com> References: <4CBB01A3.7070800@sandnarrows.com><4CBB0EE3.8060505@gatewaygeomatics.com><4CBB3BF0.9090109@sandnarrows.com> <4CBB4257.8010009@sandnarrows.com> <4CBB68EF.700@sandnarrows.com> Message-ID: <4CBC1029.4030300@poczta.onet.pl> Hi if you use SLD_BODY in Your url parameter in wms getmap request try to replace all '#' characters to '%23' example: http://yourhost/wms?SERVICE=WMS&VERSION=1.3.0&REQUEST=GetMap&BBOX=6411762.591659,5756575.612084,6416330.414387,5758975.584279&CRS=EPSG:your_epsg&WIDTH=1102&HEIGHT=580&LAYERS=your_layer&FORMAT=image/gif&DPI=96&TRANSPARENT=TRUE&SLD_BODY=your_layer*%23ff00ff*3.00 Bartek -------------- next part -------------- An HTML attachment was scrubbed... URL: From ivan.mincik at gista.sk Mon Oct 18 02:23:33 2010 From: ivan.mincik at gista.sk (Ivan Mincik) Date: Mon, 18 Oct 2010 11:23:33 +0200 Subject: [mapserver-users] mapserver.org down ? Message-ID: <4CBC1215.6090402@gista.sk> Could not get 'http://mapserver.org/'. Is it down ? -- Ivan -------------- next part -------------- An HTML attachment was scrubbed... URL: From christopher.schmidt at nokia.com Mon Oct 18 04:04:41 2010 From: christopher.schmidt at nokia.com (christopher.schmidt at nokia.com) Date: Mon, 18 Oct 2010 13:04:41 +0200 Subject: [mapserver-users] mapserver.org down ? In-Reply-To: <4CBC1215.6090402@gista.sk> References: <4CBC1215.6090402@gista.sk> Message-ID: <224E7005-1B1F-4627-B530-6CA9548986B1@nokia.com> On Oct 18, 2010, at 5:23 AM, ext Ivan Mincik wrote: > Could not get 'http://mapserver.org/'. Is it down ? The MapServer site was temporarily unavailable. I've resolved the situation, and the website appears to be working again. Best Regards, Christopher Schmidt > -- > Ivan > > From ivan.mincik at gista.sk Mon Oct 18 04:08:55 2010 From: ivan.mincik at gista.sk (Ivan Mincik) Date: Mon, 18 Oct 2010 13:08:55 +0200 Subject: [mapserver-users] mapserver.org down ? In-Reply-To: <224E7005-1B1F-4627-B530-6CA9548986B1@nokia.com> References: <4CBC1215.6090402@gista.sk> <224E7005-1B1F-4627-B530-6CA9548986B1@nokia.com> Message-ID: <4CBC2AC7.9070208@gista.sk> On 10/18/2010 01:04 PM, christopher.schmidt at nokia.com wrote: > On Oct 18, 2010, at 5:23 AM, ext Ivan Mincik wrote: > >> Could not get 'http://mapserver.org/'. Is it down ? > The MapServer site was temporarily unavailable. I've > resolved the situation, and the website appears to be > working again. > > Best Regards, > Christopher Schmidt > Thanks. -- Ivan Mincik, Gista s.r.o. From ken at sandnarrows.com Mon Oct 18 06:57:18 2010 From: ken at sandnarrows.com (K) Date: Mon, 18 Oct 2010 10:57:18 -0300 Subject: [mapserver-users] Trouble shooting SLD? In-Reply-To: <4CBC1029.4030300@poczta.onet.pl> References: <4CBB01A3.7070800@sandnarrows.com><4CBB0EE3.8060505@gatewaygeomatics.com><4CBB3BF0.9090109@sandnarrows.com> <4CBB4257.8010009@sandnarrows.com> <4CBB68EF.700@sandnarrows.com> <4CBC1029.4030300@poczta.onet.pl> Message-ID: <4CBC523E.30608@sandnarrows.com> I wasnt using SLD_BODY, just the the URL to the SLD document, using the SLD tag. Would there be a difference in using SLD_BODY and it is something I should try? Thanks, Ken On 18/10/2010 6:15 AM, Bart?omiej Burkot wrote: > Hi > > if you use SLD_BODY in Your url parameter in wms getmap request try to > replace all '#' characters to '%23' > example: > http://yourhost/wms?SERVICE=WMS&VERSION=1.3.0&REQUEST=GetMap&BBOX=6411762.591659,5756575.612084,6416330.414387,5758975.584279&CRS=EPSG:your_epsg&WIDTH=1102&HEIGHT=580&LAYERS=your_layer&FORMAT=image/gif&DPI=96&TRANSPARENT=TRUE&SLD_BODY= version="1.0.0" xmlns=*MailScanner has detected a possible fraud attempt > from "www.opengis.net" claiming to be* "http://www.opengis.net/sld" > xmlns:gml=*MailScanner has detected a possible fraud attempt from > "www.opengis.net" claiming to be* "http://www.opengis.net/gml" > xmlns:ogc=*MailScanner has detected a possible fraud attempt from > "www.opengis.net" claiming to be* "http://www.opengis.net/ogc" > xmlns:xlink=*MailScanner has detected a possible fraud attempt from > "www.w3.org" claiming to be* "http://www.w3.org/1999/xlink" > xmlns:xsi=*MailScanner has detected a possible fraud attempt from > "www.w3.org" claiming to be* "http://www.w3.org/2001/XMLSchema-instance" > xsi:schemaLocation=*MailScanner has detected a possible fraud attempt > from "www.opengis.net" claiming to be* "http://www.opengis.net/sld > http://schemas.opengis.net/sld/1.0.0/StyledLayerDescriptor.xsd">your_layer name="stroke">*%23ff00ff* name="stroke-width">3.00 > > Bartek > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From Jukka.Rahkonen at mmmtike.fi Mon Oct 18 07:16:11 2010 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Mon, 18 Oct 2010 17:16:11 +0300 Subject: [mapserver-users] Trouble shooting SLD? In-Reply-To: <4CBC523E.30608@sandnarrows.com> References: <4CBB01A3.7070800@sandnarrows.com><4CBB0EE3.8060505@gatewaygeomatics.com><4CBB3BF0.9090109@sandnarrows.com> <4CBB4257.8010009@sandnarrows.com> <4CBB68EF.700@sandnarrows.com><4CBC1029.4030300@poczta.onet.pl> <4CBC523E.30608@sandnarrows.com> Message-ID: Hi, SLD takes an URL to a complete SLD document with headers while with SLD_BODY the body part of SLD document is written URL-encoded directly into the GetMap request string. I noticed that none of the full request links in the document http://mapserver.org/ogc/sld.html are working now, for example http://demo.mapserver.org/cgi-bin/wms?http://demo.mapserver.org/cgi-bin/wms?SERVICE=wms&VERSION=1.1.1&REQUEST=GetMap&LAYERS=country_bounds&FORMAT=png&WIDTH=400&HEIGHT=300&SRS=EPSG:4326&STYLES=&BBOX=-180.0,-90.0,180.0,90.0&TRANSPARENT=TRUE&SLD=http://demo.mapserver.org/ogc-demos/map/sld/sld_line_one_filter.xml However, the SLD can be found with browser. I think that it proves that remote SLDs do not always work as supposed. These examples with SLD_BODY worked a minute ago: http://188.64.1.61/cgi-bin/mapserv?map=/usr/map/osm-mapserver_i.map&REQUEST=GetMap&SERVICE=WMS&VERSION=1.1.1&WIDTH=1059&HEIGHT=687&LAYERS=sea,borders,maxspeed_query&TRANSPARENT=TRUE&FORMAT=image%2Fpng&BBOX=-574187,6558020,1615375,7978444&SRS=EPSG:3067&STYLES=&maxspeed=100&SLD_BODY=%3C%3Fxml+version%3D%221.0%22+encoding%3D%22UTF-8%22%3F%3E%3CStyledLayerDescriptor+version%3D%221.0.0%22%3E%3CNamedLayer%3E%3CName%3Emaxspeed_query%3C%2FName%3E%3CUserStyle%3E%3CFeatureTypeStyle%3E%3CRule%3E%3CLineSymbolizer%3E%3CStroke%3E%3CCssParameter+name%3D%22stroke%22%3E%23E6550D%3C%2FCssParameter%3E%3CCssParameter+name%3D%22stroke-opacity%22%3E1.00%3C%2FCssParameter%3E%3CCssParameter+name%3D%22stroke-width%22%3E1.00%3C%2FCssParameter%3E%3C%2FStroke%3E%3C%2FLineSymbolizer%3E%3C%2FRule%3E%3C%2FFeatureTypeStyle%3E%3C%2FUserStyle%3E%3C%2FNamedLayer%3E%3C%2FStyledLayerDescriptor%3E http://188.64.1.61/cgi-bin/mapserv?map=/usr/map/osm-mapserver_i.map&REQUEST=GetMap&SERVICE=WMS&VERSION=1.1.1&WIDTH=1059&HEIGHT=687&LAYERS=sea,borders,maxspeed_query&TRANSPARENT=TRUE&FORMAT=image%2Fpng&BBOX=-574187,6558020,1615375,7978444&SRS=EPSG:3067&STYLES=&maxspeed=100&SLD_BODY=%3C%3Fxml+version%3D%221.0%22+encoding%3D%22UTF-8%22%3F%3E%3CStyledLayerDescriptor+version%3D%221.0.0%22%3E%3CNamedLayer%3E%3CName%3Emaxspeed_query%3C%2FName%3E%3CUserStyle%3E%3CFeatureTypeStyle%3E%3CRule%3E%3CLineSymbolizer%3E%3CStroke%3E%3CCssParameter+name%3D%22stroke%22%3E%2331A354%3C%2FCssParameter%3E%3CCssParameter+name%3D%22stroke-opacity%22%3E1.00%3C%2FCssParameter%3E%3CCssParameter+name%3D%22stroke-width%22%3E2.00%3C%2FCssParameter%3E%3C%2FStroke%3E%3C%2FLineSymbolizer%3E%3C%2FRule%3E%3C%2FFeatureTypeStyle%3E%3C%2FUserStyle%3E%3C%2FNamedLayer%3E%3C%2FStyledLayerDescriptor%3E Get the style with GetStyles: http://188.64.1.61/cgi-bin/mapserv?map=/usr/map/osm-mapserver_i.map&REQUEST=GetStyles&SERVICE=WMS&VERSION=1.1.1&layers=maxspeed_query -Jukka Rahkonen- > -----Alkuper?inen viesti----- > L?hett?j?: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] Puolesta K > L?hetetty: 18. lokakuuta 2010 16:57 > Vastaanottaja: Bart?omiej Burkot > Kopio: mapserver-users at lists.osgeo.org > Aihe: Re: [mapserver-users] Trouble shooting SLD? > > I wasnt using SLD_BODY, just the the URL to the SLD document, > using the > SLD tag. Would there be a difference in using SLD_BODY and it is > something I should try? > > Thanks, > > Ken > > On 18/10/2010 6:15 AM, Bart?omiej Burkot wrote: > > Hi > > > > if you use SLD_BODY in Your url parameter in wms getmap > request try to > > replace all '#' characters to '%23' > > example: > > > http://yourhost/wms?SERVICE=WMS&VERSION=1.3.0&REQUEST=GetMap&B > BOX=6411762.591659,5756575.612084,6416330.414387,5758975.58427 > 9&CRS=EPSG:your_epsg&WIDTH=1102&HEIGHT=580&LAYERS=your_layer&F ORMAT=image/gif&DPI=96> &TRANSPARENT=TRUE&SLD_BODY= > version="1.0.0" xmlns=*MailScanner has detected a possible > fraud attempt > > from "www.opengis.net" claiming to be* "http://www.opengis.net/sld" > > xmlns:gml=*MailScanner has detected a possible fraud attempt from > > "www.opengis.net" claiming to be* "http://www.opengis.net/gml" > > xmlns:ogc=*MailScanner has detected a possible fraud attempt from > > "www.opengis.net" claiming to be* "http://www.opengis.net/ogc" > > xmlns:xlink=*MailScanner has detected a possible fraud attempt from > > "www.w3.org" claiming to be* "http://www.w3.org/1999/xlink" > > xmlns:xsi=*MailScanner has detected a possible fraud attempt from > > "www.w3.org" claiming to be* > "http://www.w3.org/2001/XMLSchema-instance" > > xsi:schemaLocation=*MailScanner has detected a possible > fraud attempt > > from "www.opengis.net" claiming to be* "http://www.opengis.net/sld > > > http://schemas.opengis.net/sld/1.0.0/StyledLayerDescriptor.xsd > ">your_layer> > name="stroke">*%23ff00ff* > > name="stroke-width">3.00 erDescriptor> > > > > Bartek > > > > > > > > _______________________________________________ > > mapserver-users mailing list > > mapserver-users at lists.osgeo.org > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From Steve.Lime at state.mn.us Mon Oct 18 10:54:14 2010 From: Steve.Lime at state.mn.us (Lime, Steve D (DNR)) Date: Mon, 18 Oct 2010 12:54:14 -0500 Subject: [mapserver-users] mapfile annotation underlined text In-Reply-To: References: <4CB6A421.1050306@lvg.bayern.de> Message-ID: Actually I think I can implement this via label styles in 6.0. There's already a bbox style so... Steve -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of thomas bonfort Sent: Thursday, October 14, 2010 2:09 AM To: B?ttner, Diana (LVG) Cc: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] mapfile annotation underlined text Hi, Mapserver currently does not support underlining text. regards, thomas On Thu, Oct 14, 2010 at 08:33, "B?ttner, Diana (LVG)" wrote: > Hi, > > for a getMap-response I want underlined text. I haven't found any settings > for this problem in the Mapfile Reference. Can I use something like > "decoration" or anything else, maybe in the label-obejct, to get my text > underlined? > > Best regards, > > Diana > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From donald.kerr at dkerr.co.uk Mon Oct 18 11:49:58 2010 From: donald.kerr at dkerr.co.uk (DonaldKerr) Date: Mon, 18 Oct 2010 11:49:58 -0700 (PDT) Subject: [mapserver-users] Re: UK Ordnance Survey MasterMap Cartographic Text orientation display problem In-Reply-To: <1279122130160-5293281.post@n2.nabble.com> References: <1279122130160-5293281.post@n2.nabble.com> Message-ID: <1287427798034-5648192.post@n2.nabble.com> Jez, Is the following code of any use? orientation definitely works in this way as does height. I am currently working on getting the color from PostGIS too - I am testing it just now. Will be looking at how to specify to font and the correct position based on the database as well. Regards, Donald DATA "geom FROM (SELECT toid, featurecode, textstring, height*4 AS height, orientation/10 AS orientation, substring(col,0,2)|| ' ' || substring(col,2,2) || ' ' || substring(col,4,2) AS oscolor, fontnumber, anchorposition, textstyle, geom FROM cartographictext) AS foo USING UNIQUE toid" CLASS # Tidal Water EXPRESSION ([featurecode] = 10204) LABEL TYPE truetype FONT arial SIZE [height] MAXSIZE 21 MINSIZE 4 POSITION cc #COLOR 0 153 255 COLOR [oscolor] ANTIALIAS TRUE ANGLE [orientation] FORCE TRUE END # LABEL END # CLASS -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/UK-Ordnance-Survey-MasterMap-Cartographic-Text-orientation-display-problem-tp5293281p5648192.html Sent from the Mapserver - User mailing list archive at Nabble.com. From jmckenna at gatewaygeomatics.com Mon Oct 18 13:31:11 2010 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Mon, 18 Oct 2010 17:31:11 -0300 Subject: [mapserver-users] Trouble shooting SLD? In-Reply-To: References: <4CBB01A3.7070800@sandnarrows.com><4CBB0EE3.8060505@gatewaygeomatics.com><4CBB3BF0.9090109@sandnarrows.com> <4CBB4257.8010009@sandnarrows.com> <4CBB68EF.700@sandnarrows.com><4CBC1029.4030300@poczta.onet.pl> <4CBC523E.30608@sandnarrows.com> Message-ID: <4CBCAE8F.6090605@gatewaygeomatics.com> On 10-10-18 11:16 AM, Rahkonen Jukka wrote: > I noticed that none of the full request links in the document http://mapserver.org/ogc/sld.html are working now Good catch Jukka. The examples should be working again, please re-try. -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ From ian.walberg at airborne.aero Mon Oct 18 14:10:05 2010 From: ian.walberg at airborne.aero (Ian Walberg) Date: Mon, 18 Oct 2010 17:10:05 -0400 Subject: [mapserver-users] Arabic text rendering In-Reply-To: <4CBCAE8F.6090605@gatewaygeomatics.com> References: <4CBB01A3.7070800@sandnarrows.com><4CBB0EE3.8060505@gatewaygeomatics.com><4CBB3BF0.9090109@sandnarrows.com> <4CBB4257.8010009@sandnarrows.com> <4CBB68EF.700@sandnarrows.com><4CBC1029.4030300@poczta.onet.pl> <4CBC523E.30608@sandnarrows.com> <4CBCAE8F.6090605@gatewaygeomatics.com> Message-ID: On Linux we are Arabic words rendered as individual characters and on Windows the characters are joined correctly. Same map file, shapefile and font on each. We have tried both the mapserver and libs we have built from source and the fgs binary install on Linux and both render individual characters. Can anyone point me to what lib or config I need to change? Thanks Ian From ken at sandnarrows.com Mon Oct 18 14:22:11 2010 From: ken at sandnarrows.com (K) Date: Mon, 18 Oct 2010 18:22:11 -0300 Subject: [mapserver-users] Trouble shooting SLD? In-Reply-To: <4CBCAE8F.6090605@gatewaygeomatics.com> References: <4CBB01A3.7070800@sandnarrows.com><4CBB0EE3.8060505@gatewaygeomatics.com><4CBB3BF0.9090109@sandnarrows.com> <4CBB4257.8010009@sandnarrows.com> <4CBB68EF.700@sandnarrows.com><4CBC1029.4030300@poczta.onet.pl> <4CBC523E.30608@sandnarrows.com> <4CBCAE8F.6090605@gatewaygeomatics.com> Message-ID: <4CBCBA83.9030603@sandnarrows.com> As I am still unable to get my SLD to work, I wonder if the shape file (is it a shape file?) and map file for that example is available to download somewhere? This way I can toss it on my server and it would let me see if my problem is software related, rather then something wrong with my files. Thanks, Ken On 18/10/2010 5:31 PM, Jeff McKenna wrote: > On 10-10-18 11:16 AM, Rahkonen Jukka wrote: >> I noticed that none of the full request links in the document >> http://mapserver.org/ogc/sld.html are working now > > Good catch Jukka. The examples should be working again, please re-try. > > -jeff > > From Jukka.Rahkonen at mmmtike.fi Mon Oct 18 23:52:20 2010 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Tue, 19 Oct 2010 09:52:20 +0300 Subject: [mapserver-users] Trouble shooting SLD? In-Reply-To: <4CBCBA83.9030603@sandnarrows.com> References: <4CBB01A3.7070800@sandnarrows.com><4CBB0EE3.8060505@gatewaygeomatics.com><4CBB3BF0.9090109@sandnarrows.com> <4CBB4257.8010009@sandnarrows.com> <4CBB68EF.700@sandnarrows.com><4CBC1029.4030300@poczta.onet.pl> <4CBC523E.30608@sandnarrows.com> <4CBCAE8F.6090605@gatewaygeomatics.com> <4CBCBA83.9030603@sandnarrows.com> Message-ID: Hi, I have never made a single SLD file myself, just edited something working that I have found so unfortunately I fear I cannot give very good advice. I did, however, compare something that works for me and your SLD file and these are the differences: My first line has more elements: You have Title, I don't. Hard to believe this is critical, though Communities Then you are giving the geometry element as Communities I do not have that element at all. Mapserver documentation says that it is not supported and I also believe that now it is wrong in your SLD. I understand that your SLD is trying to telll now that the geometry of your layer is stored in a field named "Communities". By the way, it might be better to use different names in various places instead of "Communities" everywhere at least when testing. Geoserver folks have made a SLD cookbook http://docs.geoserver.org/stable/en/user/styling/sld-cookbook/index.html it is probably worth reading. And here is the SLD that I looked at when doing comparison. I took it out from my working Mapserver layer with GetStyles. Perhaps you could try the same, style your layer to look good by editing the mapfile and take the SLD out with GetStyles and you should have a good template in your hands. maxspeed_query #ff0000 1.00 3.00 -Jukka Rahkonen- K wrote > As I am still unable to get my SLD to work, I wonder if the > shape file > (is it a shape file?) and map file for that example is available to > download somewhere? This way I can toss it on my server and > it would let > me see if my problem is software related, rather then something wrong > with my files. > > Thanks, > > Ken > > On 18/10/2010 5:31 PM, Jeff McKenna wrote: > > On 10-10-18 11:16 AM, Rahkonen Jukka wrote: > >> I noticed that none of the full request links in the document > >> http://mapserver.org/ogc/sld.html are working now > > > > Good catch Jukka. The examples should be working again, > please re-try. > > > > -jeff > > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From mani2604 at gmail.com Tue Oct 19 01:47:08 2010 From: mani2604 at gmail.com (mani2604) Date: Tue, 19 Oct 2010 01:47:08 -0700 (PDT) Subject: [mapserver-users] PHP mapscript: Custom rectangles overlay Message-ID: <1287478028408-5650035.post@n2.nabble.com> Hi there: Well as u cud see in the image below... we wer trying to have a custom rectangles overlay the base map... When we provided the bounding box coordinates directly in the form of multidimensional array; sort of like hard-coded them... everything is well and cool.. Now We r trying to assign check boxes to every array sort of like user can select/deselect his choice of rectangles..So all we did was to change the " GetRect() Function "... Although both the old & new edited functions yield the same output when I var_dump ($qresult); bt somehow this time the rectangles doesnt appear.. I tweaked the code but no success yet.. hoping sumone cud have a look & point out the error...!!@ CheckBox php Code :- getLayerByName('poi'); $i = 0; foreach($qresult as $row) { $poi[$i] = ms_newLineObj(); $shp[$i] = ms_newShapeObj(MS_SHAPE_POLYGON); $poi[$i]->addXY($row[5],$row[4]); $poi[$i]->addXY($row[3],$row[4]); $poi[$i]->addXY($row[3],$row[2]); $poi[$i]->addXY($row[5],$row[2]); $poi[$i]->addXY($row[5],$row[4]); $shp[$i]->add($poi[$i]); $shp[$i]->set(index, $row[0]); $this_layer->addFeature( $shp[$i] ); $i++; } return; } // end AddPoints $map = ms_newMapObj("/ms4w/apache/htdocs/india_roads3.map"); $extent = array(62.786563, 7.392830, 102.765356, 36.151322); $qresult = GetRect(); AddPoints( $map, $qresult ); $image=$map->draw(); $image_url=$image->saveWebImage(); ?> CheckBox Html code
"> $ar) { ?>
Id : , Name :

This is the php code for GetRect() when we stored the arrays in session; which is working fine function GetStoreTable() { $i=0; $allValuesPresent=1; if (isset($_SESSION['table'])) { foreach ($_SESSION['table'] as $arr) { if (! isset($arr[$i])) { $allValuesPresent = 0; break; } // Will get overwritten by query if any are missing $qresult[$i]=$arr; $i++; } return $qresult; } } // end GetStoreTable Image:- http://osgeo-org.1803224.n2.nabble.com/file/n5650035/polygon5.jpg -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/PHP-mapscript-Custom-rectangles-overlay-tp5650035p5650035.html Sent from the Mapserver - User mailing list archive at Nabble.com. From sebastian.ovide at gmail.com Tue Oct 19 04:10:01 2010 From: sebastian.ovide at gmail.com (Sebastian E. Ovide) Date: Tue, 19 Oct 2010 12:10:01 +0100 Subject: [mapserver-users] ESRI binary grids RRD files ? Message-ID: Hi Guys, ESRI Binary grids contains a bunch of adf files and rrd files that I believe contains pyramids. Does MapServer needs those rrd files ? the question is because they are very big ! thanks -- Sebastian E. Ovide -------------- next part -------------- An HTML attachment was scrubbed... URL: From max1000 at gmail.com Tue Oct 19 04:15:28 2010 From: max1000 at gmail.com (rai 8) Date: Tue, 19 Oct 2010 13:15:28 +0200 Subject: [mapserver-users] WMS/WFS multiple output projection or select projection by SRS parameter Message-ID: Hi!, I'm trying to define multiple output projections in a WMS server, but it doesn't work, as doc says if you define "wms_srs" it's possible but mapserver says that SRS "Invalid SRS given", I tried several ways and any works, also in getCapabilities only show the projection section. any ideas? it's possible without mapscript? My mapfile looks like: MAP SHAPEPATH "./images" IMAGECOLOR 255 0 0 CONFIG "MS_ERRORFILE" "/tmp/mapserver.log" WEB IMAGEPATH "/tmp" IMAGEURL "http://localhost/tmp/" METADATA "wfs_title" "Demo" "wfs_onlineresource" "http://localhost/cgi-bin/mapserv?" "wfs_srs" "EPSG:32631 EPSG:900913 EPSG:4326" "ows_schemas_location" "http://ogc.dmsolutions.ca" END END PROJECTION "init=epsg:4326" END LAYER NAME topo DATA cat.png DEBUG 4 PROJECTION "init=epsg:32631" END STATUS ON TYPE RASTER END END when I try to change the projection section with any of the three SRS it works, I tried many combinations and any works. Also I tried with WFS and it doesn't works. thanks! -------------- next part -------------- An HTML attachment was scrubbed... URL: From Jukka.Rahkonen at mmmtike.fi Tue Oct 19 05:05:34 2010 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Tue, 19 Oct 2010 15:05:34 +0300 Subject: [mapserver-users] WMS/WFS multiple output projection or selectprojection by SRS parameter In-Reply-To: References: Message-ID: Hi, I would guess it is because you have the Google projection on your list. Try to take is away and see if it works with the two othet ones on the list. If yes, add these lines to your projection file # Google-projection <900913> +proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgrids=@null +no_defs <> Otherwise you should be able to do it by following the document http://mapserver.org/ogc/wms_server.html Supported output projections for all layers are given under MAP-WEB-METADATA, for example "wms_srs" "EPSG:3067 EPSG:2393 EPSG:4326 EPSG:900913" Layers may have different SRS lists if they have an own "wms_srs" I believe. -Jukka Rahkonen- ________________________________ rai 8 wrote Hi!, I'm trying to define multiple output projections in a WMS server, but it doesn't work, as doc says if you define "wms_srs" it's possible but mapserver says that SRS "Invalid SRS given", I tried several ways and any works, also in getCapabilities only show the projection section. any ideas? it's possible without mapscript? My mapfile looks like: MAP SHAPEPATH "./images" IMAGECOLOR 255 0 0 CONFIG "MS_ERRORFILE" "/tmp/mapserver.log" WEB IMAGEPATH "/tmp" IMAGEURL "http://localhost/tmp/" METADATA "wfs_title" "Demo" "wfs_onlineresource" "http://localhost/cgi-bin/mapserv?" "wfs_srs" "EPSG:32631 EPSG:900913 EPSG:4326" "ows_schemas_location" "http://ogc.dmsolutions.ca" END END PROJECTION "init=epsg:4326" END LAYER NAME topo DATA cat.png DEBUG 4 PROJECTION "init=epsg:32631" END STATUS ON TYPE RASTER END END when I try to change the projection section with any of the three SRS it works, I tried many combinations and any works. Also I tried with WFS and it doesn't works. thanks! -------------- next part -------------- An HTML attachment was scrubbed... URL: From yassefa at dmsolutions.ca Tue Oct 19 05:35:53 2010 From: yassefa at dmsolutions.ca (Yewondwossen Assefa) Date: Tue, 19 Oct 2010 08:35:53 -0400 Subject: [mapserver-users] Trouble shooting SLD? In-Reply-To: <4CBCBA83.9030603@sandnarrows.com> References: <4CBB01A3.7070800@sandnarrows.com><4CBB0EE3.8060505@gatewaygeomatics.com><4CBB3BF0.9090109@sandnarrows.com> <4CBB4257.8010009@sandnarrows.com> <4CBB68EF.700@sandnarrows.com><4CBC1029.4030300@poczta.onet.pl> <4CBC523E.30608@sandnarrows.com> <4CBCAE8F.6090605@gatewaygeomatics.com> <4CBCBA83.9030603@sandnarrows.com> Message-ID: <4CBD90A9.9090107@dmsolutions.ca> Hi there, I do not think there is any thing wrong wit the LSD you posted. I used it locally with MapServer svn and It did apply (after I changed the layer name to my local data set. I see that your map file has the log set and you should be able to see something in the log file starting with msApplySLD() .... Do you see that? Another point is that the sld file is temprarly saved into the tnagepath defined in your mapfile (IMAGEPATH 'R:/webtemp/' ): Would there be any problem for the web user to write files in that directory? You can use also the SLD_BODY to avoid that. Here is your encoded sld [1] that I have used and works (you need to change the name inside it back to reflect your map file): Please also indicate the version of MapServer (sorry if I have missed this info in the thread). I am using the current trunk version. regards [1] : %3CStyledLayerDescriptor+version%3D%221.0.0%22%3E%3CNamedLayer%3E%3CName%3EWorldGen%3C%2FName%3E%3CUserStyle%3E%3CTitle%3ECommunities%3C%2FTitle%3E%3CFeatureTypeStyle%3E%3CRule%3E%3CPolygonSymbolizer%3E%3CFill%3E%3CCssParameter+name%3D%22fill%22%3E%23d2741c%3C%2FCssParameter%3E%3CCssParameter+name%3D%22fill-opacity%22%3E1%3C%2FCssParameter%3E%3C%2FFill%3E%3CStroke%3E%3CCssParameter+name%3D%22stroke%22%3E%23000000%3C%2FCssParameter%3E%3CCssParameter+name%3D%22stroke-width%22%3E0.26%3C%2FCssParameter%3E%3CCssParameter+name%3D%22stroke-opacity%22%3E1%3C%2FCssParameter%3E%3C%2FStroke%3E%3C%2FPolygonSymbolizer%3E%3C%2FRule%3E%3C%2FFeatureTypeStyle%3E%3C%2FUserStyle%3E%3C%2FNamedLayer%3E%3C%2FStyledLayerDescriptor%3E On 18/10/2010 5:22 PM, K wrote: > As I am still unable to get my SLD to work, I wonder if the shape file > (is it a shape file?) and map file for that example is available to > download somewhere? This way I can toss it on my server and it would > let me see if my problem is software related, rather then something > wrong with my files. > > Thanks, > > Ken > > On 18/10/2010 5:31 PM, Jeff McKenna wrote: >> On 10-10-18 11:16 AM, Rahkonen Jukka wrote: >>> I noticed that none of the full request links in the document >>> http://mapserver.org/ogc/sld.html are working now >> >> Good catch Jukka. The examples should be working again, please re-try. >> >> -jeff >> >> > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: yassefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- -------------- next part -------------- An HTML attachment was scrubbed... URL: From warmerdam at pobox.com Tue Oct 19 06:08:22 2010 From: warmerdam at pobox.com (Frank Warmerdam) Date: Tue, 19 Oct 2010 09:08:22 -0400 Subject: [mapserver-users] ESRI binary grids RRD files ? In-Reply-To: References: Message-ID: <4CBD9846.2020200@pobox.com> Sebastian E. Ovide wrote: > Hi Guys, > > ESRI Binary grids contains a bunch of adf files and rrd files that I > believe contains pyramids. > > Does MapServer needs those rrd files ? the question is because they are > very big ! Sebastian, Yes, MapServer will take advantage of .rrd overviews for ESRI binary grids. You can delete them but in some cases performance will suffer. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From Jukka.Rahkonen at mmmtike.fi Tue Oct 19 07:17:47 2010 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Tue, 19 Oct 2010 17:17:47 +0300 Subject: [mapserver-users] Ogrtindex and attribute data Message-ID: Hi, Can somebody affirm that using ogr tileindex is breaking the access to the attribute date of the real datasets, for example shapefiles? Somebody was trying to use WMS GetFeatureInfo with a ogrtindex layer and failed and so did I in the test I made for verification. Now I have been trying myself to classify an orgtindex layer but CLASSITEM/EXPRESSION does not select anything. FILTERITEM/FILTER does not work either. Both systems work if I change a huge combined shapefile in place of the tileindex connection and without EXPRESSION or FILTER Mapserver is drawing all the features OK. If access to attribute data is not implemented, wouldn't it be cool to have it? Multigigabyte shapefiles are tedious to update but I have a reason to use files instead of a database in this case. -Jukka Rahkonen- -------------- next part -------------- An HTML attachment was scrubbed... URL: From ken at sandnarrows.com Tue Oct 19 13:44:54 2010 From: ken at sandnarrows.com (K) Date: Tue, 19 Oct 2010 17:44:54 -0300 Subject: [mapserver-users] Trouble shooting SLD? In-Reply-To: References: <4CBB01A3.7070800@sandnarrows.com><4CBB0EE3.8060505@gatewaygeomatics.com><4CBB3BF0.9090109@sandnarrows.com> <4CBB4257.8010009@sandnarrows.com> <4CBB68EF.700@sandnarrows.com><4CBC1029.4030300@poczta.onet.pl> <4CBC523E.30608@sandnarrows.com> <4CBCAE8F.6090605@gatewaygeomatics.com> <4CBCBA83.9030603@sandnarrows.com> Message-ID: <4CBE0346.9030205@sandnarrows.com> Thanks again for your assistance. The SLD file I was using was from the mapserver repository that Jeff posted earlier in the thread. I went ahead and edited it and removed all the differing bits from yours. No change, still not reading the SLD file. I then decided to create a line file, in case the issue was polygons, and use the SLD file you posted, with the only change being the name, still not working. I went through and changed all the names to be different, then tried matching the SLD name with different parts in the odd hope it would work, again no luck. No matter what I do it seems the SLD is being ignored. Ken On 19/10/2010 3:52 AM, Rahkonen Jukka wrote: > > Hi, > > I have never made a single SLD file myself, just edited something > working that I have found so unfortunately I fear I cannot give very > good advice. I did, however, compare something that works for me and > your SLD file and these are the differences: > > My first line has more elements: > xmlns="http://www.opengis.net/sld" > xmlns:gml="http://www.opengis.net/gml" > xmlns:ogc="http://www.opengis.net/ogc" > xmlns:xlink="http://www.w3.org/1999/xlink" > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > xsi:schemaLocation="http://www.opengis.net/sld > http://schemas.opengis.net/sld/1.0.0/StyledLayerDescriptor.xsd"> > > You have Title, I don't. Hard to believe this is critical, though > Communities > > Then you are giving the geometry element as > > > Communities > > > I do not have that element at all. Mapserver documentation says that it > is not supported and I also believe that now it is wrong in your SLD. I > understand that your SLD is trying to telll now that the geometry of > your layer is stored in a field named "Communities". By the way, it > might be better to use different names in various places instead of > "Communities" everywhere at least when testing. > > Geoserver folks have made a SLD cookbook > http://docs.geoserver.org/stable/en/user/styling/sld-cookbook/index.html > it is probably worth reading. > > And here is the SLD that I looked at when doing comparison. I took it > out from my working Mapserver layer with GetStyles. Perhaps you could > try the same, style your layer to look good by editing the mapfile and > take the SLD out with GetStyles and you should have a good template in > your hands. > > > xmlns="http://www.opengis.net/sld" > xmlns:gml="http://www.opengis.net/gml" > xmlns:ogc="http://www.opengis.net/ogc" > xmlns:xlink="http://www.w3.org/1999/xlink" > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > xsi:schemaLocation="http://www.opengis.net/sld > http://schemas.opengis.net/sld/1.0.0/StyledLayerDescriptor.xsd"> > > maxspeed_query > > > > > > #ff0000 > 1.00 > 3.00 > > > > > > > > > -Jukka Rahkonen- > > > K wrote > >> As I am still unable to get my SLD to work, I wonder if the >> shape file >> (is it a shape file?) and map file for that example is available to >> download somewhere? This way I can toss it on my server and >> it would let >> me see if my problem is software related, rather then something wrong >> with my files. >> >> Thanks, >> >> Ken >> >> On 18/10/2010 5:31 PM, Jeff McKenna wrote: >>> On 10-10-18 11:16 AM, Rahkonen Jukka wrote: >>>> I noticed that none of the full request links in the document >>>> http://mapserver.org/ogc/sld.html are working now >>> >>> Good catch Jukka. The examples should be working again, >> please re-try. >>> >>> -jeff >>> >>> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> > > From jmckenna at gatewaygeomatics.com Tue Oct 19 15:32:51 2010 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Tue, 19 Oct 2010 19:32:51 -0300 Subject: [mapserver-users] Trouble shooting SLD? In-Reply-To: <4CBE0346.9030205@sandnarrows.com> References: <4CBB01A3.7070800@sandnarrows.com><4CBB0EE3.8060505@gatewaygeomatics.com><4CBB3BF0.9090109@sandnarrows.com> <4CBB4257.8010009@sandnarrows.com> <4CBB68EF.700@sandnarrows.com><4CBC1029.4030300@poczta.onet.pl> <4CBC523E.30608@sandnarrows.com> <4CBCAE8F.6090605@gatewaygeomatics.com> <4CBCBA83.9030603@sandnarrows.com> <4CBE0346.9030205@sandnarrows.com> Message-ID: <4CBE1C93.6000405@gatewaygeomatics.com> Hi Ken, See Assefa's last message to you, he made some great points. In fact I hit many of the points that Assefa mentioned when fixing those demo.mapserver.org examples. -jeff On 10-10-19 5:44 PM, K wrote: > Thanks again for your assistance. > > The SLD file I was using was from the mapserver repository that Jeff > posted earlier in the thread. I went ahead and edited it and removed all > the differing bits from yours. No change, still not reading the SLD file. > > I then decided to create a line file, in case the issue was polygons, > and use the SLD file you posted, with the only change being the name, > still not working. > > I went through and changed all the names to be different, then tried > matching the SLD name with different parts in the odd hope it would > work, again no luck. > > No matter what I do it seems the SLD is being ignored. > > Ken > > On 19/10/2010 3:52 AM, Rahkonen Jukka wrote: >> >> Hi, >> >> I have never made a single SLD file myself, just edited something >> working that I have found so unfortunately I fear I cannot give very >> good advice. I did, however, compare something that works for me and >> your SLD file and these are the differences: >> >> My first line has more elements: >> > xmlns="http://www.opengis.net/sld" >> xmlns:gml="http://www.opengis.net/gml" >> xmlns:ogc="http://www.opengis.net/ogc" >> xmlns:xlink="http://www.w3.org/1999/xlink" >> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" >> xsi:schemaLocation="http://www.opengis.net/sld >> http://schemas.opengis.net/sld/1.0.0/StyledLayerDescriptor.xsd"> >> >> You have Title, I don't. Hard to believe this is critical, though >> Communities >> >> Then you are giving the geometry element as >> >> >> Communities >> >> >> I do not have that element at all. Mapserver documentation says that it >> is not supported and I also believe that now it is wrong in your SLD. I >> understand that your SLD is trying to telll now that the geometry of >> your layer is stored in a field named "Communities". By the way, it >> might be better to use different names in various places instead of >> "Communities" everywhere at least when testing. >> >> Geoserver folks have made a SLD cookbook >> http://docs.geoserver.org/stable/en/user/styling/sld-cookbook/index.html >> it is probably worth reading. >> >> And here is the SLD that I looked at when doing comparison. I took it >> out from my working Mapserver layer with GetStyles. Perhaps you could >> try the same, style your layer to look good by editing the mapfile and >> take the SLD out with GetStyles and you should have a good template in >> your hands. >> >> >> > xmlns="http://www.opengis.net/sld" >> xmlns:gml="http://www.opengis.net/gml" >> xmlns:ogc="http://www.opengis.net/ogc" >> xmlns:xlink="http://www.w3.org/1999/xlink" >> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" >> xsi:schemaLocation="http://www.opengis.net/sld >> http://schemas.opengis.net/sld/1.0.0/StyledLayerDescriptor.xsd"> >> >> maxspeed_query >> >> >> >> >> >> #ff0000 >> 1.00 >> 3.00 >> >> >> >> >> >> >> >> >> -Jukka Rahkonen- >> >> >> K wrote >> >>> As I am still unable to get my SLD to work, I wonder if the >>> shape file >>> (is it a shape file?) and map file for that example is available to >>> download somewhere? This way I can toss it on my server and >>> it would let >>> me see if my problem is software related, rather then something wrong >>> with my files. >>> >>> Thanks, >>> >>> Ken >>> >>> On 18/10/2010 5:31 PM, Jeff McKenna wrote: >>>> On 10-10-18 11:16 AM, Rahkonen Jukka wrote: >>>>> I noticed that none of the full request links in the document >>>>> http://mapserver.org/ogc/sld.html are working now >>>> >>>> Good catch Jukka. The examples should be working again, >>> please re-try. >>>> >>>> -jeff >>>> > -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ From jbw2003 at earthlink.net Tue Oct 19 15:51:57 2010 From: jbw2003 at earthlink.net (jim) Date: Tue, 19 Oct 2010 18:51:57 -0400 Subject: [mapserver-users] wms_title display in ESRI Message-ID: <4CBE210D.9020909@earthlink.net> I have a mapfile that has wms_title strings with single quotes. When I open the WMS layer in Arcmap any layers with a single quote are not displayed properly, with the string truncated after where the quote is. How do I properly insert an apostrophe into a wms_title? Jim White From pramsey at opengeo.org Tue Oct 19 16:41:41 2010 From: pramsey at opengeo.org (Paul Ramsey) Date: Tue, 19 Oct 2010 16:41:41 -0700 Subject: [mapserver-users] wms_title display in ESRI In-Reply-To: <4CBE210D.9020909@earthlink.net> References: <4CBE210D.9020909@earthlink.net> Message-ID: Try using ' and see how it goes On Tue, Oct 19, 2010 at 3:51 PM, jim wrote: > I have a mapfile that has wms_title strings with single quotes. When I open > the WMS layer in Arcmap any layers with a single quote are not displayed > properly, with the string truncated after where the quote is. > > How do I properly insert an apostrophe into a wms_title? > > Jim White > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From ken at sandnarrows.com Tue Oct 19 17:27:14 2010 From: ken at sandnarrows.com (K) Date: Tue, 19 Oct 2010 21:27:14 -0300 Subject: [mapserver-users] Trouble shooting SLD? In-Reply-To: <4CBE1C93.6000405@gatewaygeomatics.com> References: <4CBB01A3.7070800@sandnarrows.com><4CBB0EE3.8060505@gatewaygeomatics.com><4CBB3BF0.9090109@sandnarrows.com> <4CBB4257.8010009@sandnarrows.com> <4CBB68EF.700@sandnarrows.com><4CBC1029.4030300@poczta.onet.pl> <4CBC523E.30608@sandnarrows.com> <4CBCAE8F.6090605@gatewaygeomatics.com> <4CBCBA83.9030603@sandnarrows.com> <4CBE0346.9030205@sandnarrows.com> <4CBE1C93.6000405@gatewaygeomatics.com> Message-ID: <4CBE3762.3070200@sandnarrows.com> Do you mean the part about using GetStyles to get a SLD blurb from Mapserver? I did try that originally, well I used PHP Mapscript to do it. On the odd chance that GetStyles does something different I just did a GetStyles request, changed the color and nothing else. Still not working. Ken On 19/10/2010 7:32 PM, Jeff McKenna wrote: > Hi Ken, > > See Assefa's last message to you, he made some great points. In fact I > hit many of the points that Assefa mentioned when fixing those > demo.mapserver.org examples. > > -jeff > > > > On 10-10-19 5:44 PM, K wrote: >> Thanks again for your assistance. >> >> The SLD file I was using was from the mapserver repository that Jeff >> posted earlier in the thread. I went ahead and edited it and removed all >> the differing bits from yours. No change, still not reading the SLD file. >> >> I then decided to create a line file, in case the issue was polygons, >> and use the SLD file you posted, with the only change being the name, >> still not working. >> >> I went through and changed all the names to be different, then tried >> matching the SLD name with different parts in the odd hope it would >> work, again no luck. >> >> No matter what I do it seems the SLD is being ignored. >> >> Ken >> >> On 19/10/2010 3:52 AM, Rahkonen Jukka wrote: >>> >>> Hi, >>> >>> I have never made a single SLD file myself, just edited something >>> working that I have found so unfortunately I fear I cannot give very >>> good advice. I did, however, compare something that works for me and >>> your SLD file and these are the differences: >>> >>> My first line has more elements: >>> >> xmlns="http://www.opengis.net/sld" >>> xmlns:gml="http://www.opengis.net/gml" >>> xmlns:ogc="http://www.opengis.net/ogc" >>> xmlns:xlink="http://www.w3.org/1999/xlink" >>> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" >>> xsi:schemaLocation="http://www.opengis.net/sld >>> http://schemas.opengis.net/sld/1.0.0/StyledLayerDescriptor.xsd"> >>> >>> You have Title, I don't. Hard to believe this is critical, though >>> Communities >>> >>> Then you are giving the geometry element as >>> >>> >>> Communities >>> >>> >>> I do not have that element at all. Mapserver documentation says that it >>> is not supported and I also believe that now it is wrong in your SLD. I >>> understand that your SLD is trying to telll now that the geometry of >>> your layer is stored in a field named "Communities". By the way, it >>> might be better to use different names in various places instead of >>> "Communities" everywhere at least when testing. >>> >>> Geoserver folks have made a SLD cookbook >>> http://docs.geoserver.org/stable/en/user/styling/sld-cookbook/index.html >>> it is probably worth reading. >>> >>> And here is the SLD that I looked at when doing comparison. I took it >>> out from my working Mapserver layer with GetStyles. Perhaps you could >>> try the same, style your layer to look good by editing the mapfile and >>> take the SLD out with GetStyles and you should have a good template in >>> your hands. >>> >>> >>> >> xmlns="http://www.opengis.net/sld" >>> xmlns:gml="http://www.opengis.net/gml" >>> xmlns:ogc="http://www.opengis.net/ogc" >>> xmlns:xlink="http://www.w3.org/1999/xlink" >>> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" >>> xsi:schemaLocation="http://www.opengis.net/sld >>> http://schemas.opengis.net/sld/1.0.0/StyledLayerDescriptor.xsd"> >>> >>> maxspeed_query >>> >>> >>> >>> >>> >>> #ff0000 >>> 1.00 >>> 3.00 >>> >>> >>> >>> >>> >>> >>> >>> >>> -Jukka Rahkonen- >>> >>> >>> K wrote >>> >>>> As I am still unable to get my SLD to work, I wonder if the >>>> shape file >>>> (is it a shape file?) and map file for that example is available to >>>> download somewhere? This way I can toss it on my server and >>>> it would let >>>> me see if my problem is software related, rather then something wrong >>>> with my files. >>>> >>>> Thanks, >>>> >>>> Ken >>>> >>>> On 18/10/2010 5:31 PM, Jeff McKenna wrote: >>>>> On 10-10-18 11:16 AM, Rahkonen Jukka wrote: >>>>>> I noticed that none of the full request links in the document >>>>>> http://mapserver.org/ogc/sld.html are working now >>>>> >>>>> Good catch Jukka. The examples should be working again, >>>> please re-try. >>>>> >>>>> -jeff >>>>> >> > > From kobben at itc.nl Tue Oct 19 23:44:02 2010 From: kobben at itc.nl (=?iso-8859-1?Q?Barend_K=F6bben?=) Date: Wed, 20 Oct 2010 08:44:02 +0200 Subject: [mapserver-users] Trouble shooting SLD? In-Reply-To: <4CBE0346.9030205@sandnarrows.com> Message-ID: HI, I missed the beginning of this thread, just chip in to ask if you did not overlook the basis: Does MS actually read the SLD? I found that to be a problem in earlier work, see below an extract from an old mail to this list. If it's not that, sorry... Barend K?bben (ITC) (..) Almost always I find this kind of problem having not much to do with the SLDs themselves, but with TMP file settings. This is certainly more likely if you say sending the SLD it in SLD-BODY works. Using SLDs is dependent on the correct setting of the two settings IMAGEPATH -- where the mapserver software puts the SLD and other temporary files IMAGEURL -- where the web browser and other http services pick them up. Setting these incorrectly, and more importantly their security setting incorrrectly, will normally give no problems, but when using SLDs (and also in other cases, eg. when chaining Mapserver to external WMS and WFS services), they will make MS malfunction, but SILENTLY (ie. No error messages). Eg. in our set ups of a WMS with external SLD they are set as follows: For a *nix setup ( MacOSX) with Mapserver CGI 'behind' Apache: WEB IMAGEPATH "/Users/kobben/Sites/ms_tmp/" IMAGEURL "http://localhost/~kobben/ms_tmp/" #--------------------------------------------# METADATA [all your web metadata...] END #metadata END #web For a Win box with Mapserver CGI 'behind' IIS: IMAGEPATH "C:/tmp/ms_tmp/" IMAGEURL "http://geoserver.itc.nl/ms_tmp/" The IMAGEPATh is a directory that is reacheable by Mapserver at this real location (in this case expressed as Unix BSD path on my MacOSX or as UNC path on Win) and that has read & write access set for the Mapserver process. Eg. on the Winbox it should have write access for the anonymous system service account under which Mapserver runs (usually something like SERVERNAME\IWAM_SERVERNAME). You can test this by seeing if files with names like) are being created when you request the WMS with external SLD. If they are the IMAGEPATH celarly works. Then test if you can point a browser to the IMAGEURL and pick up the tmp file. If that worsk the IMAGEURL is also OK. Now it should work... Hope this helps. On 19-10-10 22:44, "K" wrote: > Thanks again for your assistance. > > The SLD file I was using was from the mapserver repository that Jeff > posted earlier in the thread. I went ahead and edited it and removed all > the differing bits from yours. No change, still not reading the SLD file. > > I then decided to create a line file, in case the issue was polygons, > and use the SLD file you posted, with the only change being the name, > still not working. > > I went through and changed all the names to be different, then tried > matching the SLD name with different parts in the odd hope it would > work, again no luck. > > No matter what I do it seems the SLD is being ignored. > > Ken > > On 19/10/2010 3:52 AM, Rahkonen Jukka wrote: >> >> Hi, >> >> I have never made a single SLD file myself, just edited something >> working that I have found so unfortunately I fear I cannot give very >> good advice. I did, however, compare something that works for me and >> your SLD file and these are the differences: >> >> My first line has more elements: >> > xmlns="http://www.opengis.net/sld" >> xmlns:gml="http://www.opengis.net/gml" >> xmlns:ogc="http://www.opengis.net/ogc" >> xmlns:xlink="http://www.w3.org/1999/xlink" >> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" >> xsi:schemaLocation="http://www.opengis.net/sld >> http://schemas.opengis.net/sld/1.0.0/StyledLayerDescriptor.xsd"> >> >> You have Title, I don't. Hard to believe this is critical, though >> Communities >> >> Then you are giving the geometry element as >> >> >> Communities >> >> >> I do not have that element at all. Mapserver documentation says that it >> is not supported and I also believe that now it is wrong in your SLD. I >> understand that your SLD is trying to telll now that the geometry of >> your layer is stored in a field named "Communities". By the way, it >> might be better to use different names in various places instead of >> "Communities" everywhere at least when testing. >> >> Geoserver folks have made a SLD cookbook >> http://docs.geoserver.org/stable/en/user/styling/sld-cookbook/index.html >> it is probably worth reading. >> >> And here is the SLD that I looked at when doing comparison. I took it >> out from my working Mapserver layer with GetStyles. Perhaps you could >> try the same, style your layer to look good by editing the mapfile and >> take the SLD out with GetStyles and you should have a good template in >> your hands. >> >> >> > xmlns="http://www.opengis.net/sld" >> xmlns:gml="http://www.opengis.net/gml" >> xmlns:ogc="http://www.opengis.net/ogc" >> xmlns:xlink="http://www.w3.org/1999/xlink" >> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" >> xsi:schemaLocation="http://www.opengis.net/sld >> http://schemas.opengis.net/sld/1.0.0/StyledLayerDescriptor.xsd"> >> >> maxspeed_query >> >> >> >> >> >> #ff0000 >> 1.00 >> 3.00 >> >> >> >> >> >> >> >> >> -Jukka Rahkonen- >> >> >> K wrote >> >>> As I am still unable to get my SLD to work, I wonder if the >>> shape file >>> (is it a shape file?) and map file for that example is available to >>> download somewhere? This way I can toss it on my server and >>> it would let >>> me see if my problem is software related, rather then something wrong >>> with my files. >>> >>> Thanks, >>> >>> Ken >>> >>> On 18/10/2010 5:31 PM, Jeff McKenna wrote: >>>> On 10-10-18 11:16 AM, Rahkonen Jukka wrote: >>>>> I noticed that none of the full request links in the document >>>>> http://mapserver.org/ogc/sld.html are working now >>>> >>>> Good catch Jukka. The examples should be working again, >>> please re-try. >>>> >>>> -jeff >>>> >>>> >>> _______________________________________________ >>> mapserver-users mailing list >>> mapserver-users at lists.osgeo.org >>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>> >> >> > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From sebastian.ovide at gmail.com Wed Oct 20 01:13:45 2010 From: sebastian.ovide at gmail.com (Sebastian E. Ovide) Date: Wed, 20 Oct 2010 09:13:45 +0100 Subject: [mapserver-users] ESRI binary grids RRD files ? In-Reply-To: <4CBD9846.2020200@pobox.com> References: <4CBD9846.2020200@pobox.com> Message-ID: Frank, I've left those RRD and I suspect that for some reason the pyramids are not read... In fact the performance is very good for zoomed in views (street level)... but it is very slow for zoom out views (city level)... and I can see the IO working very hard... is there any way to see if MapServer/gdal is reading the pyramids correctly ? thanks On Tue, Oct 19, 2010 at 2:08 PM, Frank Warmerdam wrote: > Sebastian E. Ovide wrote: > >> Hi Guys, >> >> ESRI Binary grids contains a bunch of adf files and rrd files that I >> believe contains pyramids. >> Does MapServer needs those rrd files ? the question is because they are >> very big ! >> > > Sebastian, > > Yes, MapServer will take advantage of .rrd overviews for ESRI binary grids. > You can delete them but in some cases performance will suffer. > > Best regards, > -- > > ---------------------------------------+-------------------------------------- > I set the clouds in motion - turn up | Frank Warmerdam, > warmerdam at pobox.com > light and sound - activate the windows | http://pobox.com/~warmerdam > and watch the world go round - Rush | Geospatial Programmer for Rent > > -- Sebastian E. Ovide -------------- next part -------------- An HTML attachment was scrubbed... URL: From sebastian.ovide at gmail.com Wed Oct 20 01:33:36 2010 From: sebastian.ovide at gmail.com (Sebastian E. Ovide) Date: Wed, 20 Oct 2010 09:33:36 +0100 Subject: [mapserver-users] ESRI binary grids RRD files ? In-Reply-To: References: <4CBD9846.2020200@pobox.com> Message-ID: ok, using gdalinfo it looks like my rasters have some problems... I'll follow up in gdal mailing list.. thanks gis at mapserver:~$ gdalinfo data/ie/rasters/ie_t02_q200/ Driver: AIG/Arc/Info Binary Grid Files: data/ie/rasters/ie_t02_q200/ data/ie/rasters/ie_t02_q200/z001014x.adf data/ie/rasters/ie_t02_q200/prj.adf data/ie/rasters/ie_t02_q200/z001002.adf data/ie/rasters/ie_t02_q200/z001003.adf data/ie/rasters/ie_t02_q200/z001011x.adf data/ie/rasters/ie_t02_q200/z001008.adf data/ie/rasters/ie_t02_q200/z001004.adf data/ie/rasters/ie_t02_q200/dblbnd.adf data/ie/rasters/ie_t02_q200/w001001x.adf data/ie/rasters/ie_t02_q200/z001009x.adf data/ie/rasters/ie_t02_q200/z001012x.adf data/ie/rasters/ie_t02_q200/w001001.adf data/ie/rasters/ie_t02_q200/z001003x.adf data/ie/rasters/ie_t02_q200/sta.adf data/ie/rasters/ie_t02_q200/z001015.adf data/ie/rasters/ie_t02_q200/z001005.adf data/ie/rasters/ie_t02_q200/z001013x.adf data/ie/rasters/ie_t02_q200/z001010.adf data/ie/rasters/ie_t02_q200/w001000.adf data/ie/rasters/ie_t02_q200/z001006.adf data/ie/rasters/ie_t02_q200/z001014.adf data/ie/rasters/ie_t02_q200/hdr.adf data/ie/rasters/ie_t02_q200/z001001.adf data/ie/rasters/ie_t02_q200/z001005x.adf data/ie/rasters/ie_t02_q200/z001010x.adf data/ie/rasters/ie_t02_q200/z001004x.adf data/ie/rasters/ie_t02_q200/w001000x.adf data/ie/rasters/ie_t02_q200/z001013.adf data/ie/rasters/ie_t02_q200/z001015x.adf data/ie/rasters/ie_t02_q200/z001001x.adf data/ie/rasters/ie_t02_q200/z001007x.adf data/ie/rasters/ie_t02_q200/z001006x.adf data/ie/rasters/ie_t02_q200/z001011.adf data/ie/rasters/ie_t02_q200/z001007.adf data/ie/rasters/ie_t02_q200/z001008x.adf data/ie/rasters/ie_t02_q200/z001002x.adf data/ie/rasters/ie_t02_q200/z001009.adf data/ie/rasters/ie_t02_q200/z001012.adf Size is 64402, 89106 Coordinate System is: PROJCS["unnamed", GEOGCS["WGS 84", DATUM["WGS_1984", SPHEROID["WGS 84",6378137,298.257223563, AUTHORITY["EPSG","7030"]], TOWGS84[0,0,0,0,0,0,0], AUTHORITY["EPSG","6326"]], PRIMEM["Greenwich",0, AUTHORITY["EPSG","8901"]], UNIT["degree",0.0174532925199433, AUTHORITY["EPSG","9108"]], AUTHORITY["EPSG","4326"]], PROJECTION["Transverse_Mercator"], PARAMETER["latitude_of_origin",53.5], PARAMETER["central_meridian",-8], PARAMETER["scale_factor",1.000035], PARAMETER["false_easting",200000], PARAMETER["false_northing",250000], UNIT["METERS",1]] Origin = (15390.000000000000000,461520.000000000000000) Pixel Size = (5.000000000000000,-5.000000000000000) Corner Coordinates: Upper Left ( 15390.000, 461520.000) ( 10d54'41.98"W, 55d21'55.72"N) Lower Left ( 15390.000, 15990.000) ( 10d39'3.41"W, 51d22'1.58"N) Upper Right ( 337400.000, 461520.000) ( 5d49'56.05"W, 55d22'51.38"N) Lower Right ( 337400.000, 15990.000) ( 6d 1'35.29"W, 51d22'49.73"N) Center ( 176395.000, 238755.000) ( 8d21'17.49"W, 53d23'54.38"N) Band 1 Block=512x4 Type=Float32, ColorInterp=Undefined Min=1.000 Max=4.000 NoData Value=-3.4028234663852886e+38 ERROR 3: Attempt to read past EOF in data/ie/rasters/ie_t02_q200//../info/arc.dir. ERROR 4: Failed to open table .VAT On Wed, Oct 20, 2010 at 9:13 AM, Sebastian E. Ovide < sebastian.ovide at gmail.com> wrote: > Frank, > > I've left those RRD and I suspect that for some reason the pyramids are not > read... In fact the performance is very good for zoomed in views (street > level)... but it is very slow for zoom out views (city level)... and I can > see the IO working very hard... > > is there any way to see if MapServer/gdal is reading the pyramids correctly > ? > > thanks > > > On Tue, Oct 19, 2010 at 2:08 PM, Frank Warmerdam wrote: > >> Sebastian E. Ovide wrote: >> >>> Hi Guys, >>> >>> ESRI Binary grids contains a bunch of adf files and rrd files that I >>> believe contains pyramids. >>> Does MapServer needs those rrd files ? the question is because they are >>> very big ! >>> >> >> Sebastian, >> >> Yes, MapServer will take advantage of .rrd overviews for ESRI binary >> grids. >> You can delete them but in some cases performance will suffer. >> >> Best regards, >> -- >> >> ---------------------------------------+-------------------------------------- >> I set the clouds in motion - turn up | Frank Warmerdam, >> warmerdam at pobox.com >> light and sound - activate the windows | http://pobox.com/~warmerdam >> and watch the world go round - Rush | Geospatial Programmer for Rent >> >> > > > -- > Sebastian E. Ovide > > > > > -- Sebastian E. Ovide -------------- next part -------------- An HTML attachment was scrubbed... URL: From cnieman at dmsolutions.ca Wed Oct 20 04:26:23 2010 From: cnieman at dmsolutions.ca (Christy Nieman) Date: Wed, 20 Oct 2010 07:26:23 -0400 Subject: [mapserver-users] Ogrtindex and attribute data In-Reply-To: References: Message-ID: <4CBED1DF.1090108@dmsolutions.ca> Hi, Do you mean that you cannot classify a layer where the data are drawn using a tile index? I use tile indexed shapefiles all the time and have never had any problems using CLASSITEM/EXPRESSION and FILTERITEM/FILTER. Could you provide an example of what's not working? Regards, Christy On 10/19/2010 10:17 AM, Rahkonen Jukka wrote: > Hi, > Can somebody affirm that using ogr tileindex is breaking the access to > the attribute date of the real datasets, for example shapefiles? > Somebody was trying to use WMS GetFeatureInfo with a ogrtindex layer > and failed and so did I in the test I made for verification. Now I > have been trying myself to classify an orgtindex layer but > CLASSITEM/EXPRESSION does not select anything. FILTERITEM/FILTER does > not work either. Both systems work if I change a huge combined > shapefile in place of the tileindex connection and without EXPRESSION > or FILTER Mapserver is drawing all the features OK. > If access to attribute data is not implemented, wouldn't it be cool to > have it? Multigigabyte shapefiles are tedious to update but I have a > reason to use files instead of a database in this case. > -Jukka Rahkonen- > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From Jukka.Rahkonen at mmmtike.fi Wed Oct 20 04:49:56 2010 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Wed, 20 Oct 2010 14:49:56 +0300 Subject: [mapserver-users] Ogrtindex and attribute data In-Reply-To: <4CBED1DF.1090108@dmsolutions.ca> References: <4CBED1DF.1090108@dmsolutions.ca> Message-ID: Hi, If I use a big combined shapefile as input I am getting class 36311 coloured as red. If I am using tileindex I am getting an empty map. Tileindex itself is working and if I comment out the EXPRESSION while using tileindex I do get everything from the background data drawn. Thus it is the classification that does not work for me. My Mapserver is version 5.2.1 and here are some parts of my mapfile: #CONNECTIONTYPE OGR #TILEINDEX "wildwater_tindex.shp,0" #classification does not work with this DATA "combined_wildwaters" #classification works with this CLASSITEM "luokka" ................................ CLASS NAME "wide_wildwater" EXPRESSION "36311" STYLE COLOR 255 0 0 WIDTH 2 END END -Jukka Rahkonen- ________________________________ L?hett?j?: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] Puolesta Christy Nieman L?hetetty: 20. lokakuuta 2010 14:26 Vastaanottaja: mapserver-users at lists.osgeo.org Aihe: Re: [mapserver-users] Ogrtindex and attribute data Hi, Do you mean that you cannot classify a layer where the data are drawn using a tile index? I use tile indexed shapefiles all the time and have never had any problems using CLASSITEM/EXPRESSION and FILTERITEM/FILTER. Could you provide an example of what's not working? Regards, Christy On 10/19/2010 10:17 AM, Rahkonen Jukka wrote: Hi, Can somebody affirm that using ogr tileindex is breaking the access to the attribute date of the real datasets, for example shapefiles? Somebody was trying to use WMS GetFeatureInfo with a ogrtindex layer and failed and so did I in the test I made for verification. Now I have been trying myself to classify an orgtindex layer but CLASSITEM/EXPRESSION does not select anything. FILTERITEM/FILTER does not work either. Both systems work if I change a huge combined shapefile in place of the tileindex connection and without EXPRESSION or FILTER Mapserver is drawing all the features OK. If access to attribute data is not implemented, wouldn't it be cool to have it? Multigigabyte shapefiles are tedious to update but I have a reason to use files instead of a database in this case. -Jukka Rahkonen- _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From Jukka.Rahkonen at mmmtike.fi Wed Oct 20 05:07:45 2010 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Wed, 20 Oct 2010 15:07:45 +0300 Subject: [mapserver-users] Shptree fails with biggish shapefile In-Reply-To: References: <4CBED1DF.1090108@dmsolutions.ca> Message-ID: Hi, I have been trying to create an index with shptree for a rather big shapefile. The size of the .shp part is about 1800 KB. Shptree seems to run OK, it does not throw any errors and Windows task manager shows a steady growing memory usage. Then shptree stops without warnings and memory is freed. Unfortunately no .qix file is written on the disk. I made a test by selecting a part of the big shapefile into a smaller one and for that I could create .qix index normally. Therefore I believe that the data is OK and shptree fails because of the big shapefile size. Have anyone else experienced the same and if this perhaps something worth creating a new ticket on issue tracker? I am still playing with GDAL 1.7.0dev, FWTools 2.4.2, released 2009/06/24. -Jukka Rahkonen- -------------- next part -------------- An HTML attachment was scrubbed... URL: From jmckenna at gatewaygeomatics.com Wed Oct 20 05:21:32 2010 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Wed, 20 Oct 2010 09:21:32 -0300 Subject: [mapserver-users] Shptree fails with biggish shapefile In-Reply-To: References: <4CBED1DF.1090108@dmsolutions.ca> Message-ID: <4CBEDECC.8060405@gatewaygeomatics.com> On 10-10-20 9:07 AM, Rahkonen Jukka wrote: > Hi, > I have been trying to create an index with shptree for a rather big > shapefile. The size of the .shp part is about 1800 KB. Shptree seems to > run OK, it does not throw any errors and Windows task manager shows a > steady growing memory usage. Then shptree stops without warnings and > memory is freed. Unfortunately no .qix file is written on the disk. I > made a test by selecting a part of the big shapefile into a smaller one > and for that I could create .qix index normally. Therefore I believe > that the data is OK and shptree fails because of the big shapefile size. > Have anyone else experienced the same and if this perhaps something > worth creating a new ticket on issue tracker? > I am still playing with GDAL 1.7.0dev, FWTools 2.4.2, released 2009/06/24. > Note that large dbf/shp support was recently tweaked during the recent WMS Benchmarking exercise (http://osgeo-org.1803224.n2.nabble.com/Support-for-large-DBF-SHP-files-td5420444.html#a5420444). In that case shptree would create a qix file (for a 1.3GB shp) but MapServer would not draw it and no errors were thrown; this has since been fixed. -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ From Jukka.Rahkonen at mmmtike.fi Wed Oct 20 05:23:22 2010 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Wed, 20 Oct 2010 15:23:22 +0300 Subject: [mapserver-users] Ogrtindex and attribute data In-Reply-To: <4CBEDBB0.3020203@dmsolutions.ca> References: <4CBED1DF.1090108@dmsolutions.ca> <4CBEDBB0.3020203@dmsolutions.ca> Message-ID: Hi, It just - starts to work. I need to write a hundred more answers on this list before I have paid back this help. And Jeff, do you hear me? I copied my settings from a document http://mapserver.org/input/vector/ogr.html. Obviously it should be updated a bit. I should have read http://mapserver.org/optimization/tileindex.html instead. -Jukka- ________________________________ L?hett?j?: Christy Nieman [mailto:cnieman at dmsolutions.ca] L?hetetty: 20. lokakuuta 2010 15:08 Vastaanottaja: Rahkonen Jukka Aihe: Re: [mapserver-users] Ogrtindex and attribute data What happens if you leave out the CONNECTIONTYPE when you use the tile index? i.e.: LAYER TILEINDEX "wildwater_tindex.shp" TILEITEM "location" # not needed if the attribute with the data paths in your index is called "location" CLASSITEM "luokka" ... CLASS NAME "wide_wildwater" EXPRESSION "36311" STYLE COLOR 255 0 0 WIDTH 2 END END END I'm not certain if leaving the connection type out will help, but it's not necessary assuming your data are all shapefiles. On 10/20/2010 07:49 AM, Rahkonen Jukka wrote: Hi, If I use a big combined shapefile as input I am getting class 36311 coloured as red. If I am using tileindex I am getting an empty map. Tileindex itself is working and if I comment out the EXPRESSION while using tileindex I do get everything from the background data drawn. Thus it is the classification that does not work for me. My Mapserver is version 5.2.1 and here are some parts of my mapfile: #CONNECTIONTYPE OGR #TILEINDEX "wildwater_tindex.shp,0" #classification does not work with this DATA "combined_wildwaters" #classification works with this CLASSITEM "luokka" ................................ CLASS NAME "wide_wildwater" EXPRESSION "36311" STYLE COLOR 255 0 0 WIDTH 2 END END -Jukka Rahkonen- ________________________________ L?hett?j?: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] Puolesta Christy Nieman L?hetetty: 20. lokakuuta 2010 14:26 Vastaanottaja: mapserver-users at lists.osgeo.org Aihe: Re: [mapserver-users] Ogrtindex and attribute data Hi, Do you mean that you cannot classify a layer where the data are drawn using a tile index? I use tile indexed shapefiles all the time and have never had any problems using CLASSITEM/EXPRESSION and FILTERITEM/FILTER. Could you provide an example of what's not working? Regards, Christy On 10/19/2010 10:17 AM, Rahkonen Jukka wrote: Hi, Can somebody affirm that using ogr tileindex is breaking the access to the attribute date of the real datasets, for example shapefiles? Somebody was trying to use WMS GetFeatureInfo with a ogrtindex layer and failed and so did I in the test I made for verification. Now I have been trying myself to classify an orgtindex layer but CLASSITEM/EXPRESSION does not select anything. FILTERITEM/FILTER does not work either. Both systems work if I change a huge combined shapefile in place of the tileindex connection and without EXPRESSION or FILTER Mapserver is drawing all the features OK. If access to attribute data is not implemented, wouldn't it be cool to have it? Multigigabyte shapefiles are tedious to update but I have a reason to use files instead of a database in this case. -Jukka Rahkonen- _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From michael.smith at usace.army.mil Wed Oct 20 05:28:13 2010 From: michael.smith at usace.army.mil (Michael Smith) Date: Wed, 20 Oct 2010 08:28:13 -0400 Subject: [mapserver-users] Shptree fails with biggish shapefile In-Reply-To: <4CBEDECC.8060405@gatewaygeomatics.com> Message-ID: You may also want to limit the depth. In the benchmarking exercise, we saw shptree creating a qix file with excessive depth. Try limiting the depth to 8 or less. Mike -- Michael Smith US Army Corps of Engineers Remote Sensing/GIS Center Hanover, NH On 10/20/10 8:21 AM, "Jeff McKenna" wrote: > On 10-10-20 9:07 AM, Rahkonen Jukka wrote: >> Hi, >> I have been trying to create an index with shptree for a rather big >> shapefile. The size of the .shp part is about 1800 KB. Shptree seems to >> run OK, it does not throw any errors and Windows task manager shows a >> steady growing memory usage. Then shptree stops without warnings and >> memory is freed. Unfortunately no .qix file is written on the disk. I >> made a test by selecting a part of the big shapefile into a smaller one >> and for that I could create .qix index normally. Therefore I believe >> that the data is OK and shptree fails because of the big shapefile size. >> Have anyone else experienced the same and if this perhaps something >> worth creating a new ticket on issue tracker? >> I am still playing with GDAL 1.7.0dev, FWTools 2.4.2, released 2009/06/24. >> > > Note that large dbf/shp support was recently tweaked during the recent > WMS Benchmarking exercise > (http://osgeo-org.1803224.n2.nabble.com/Support-for-large-DBF-SHP-files-td5420 > 444.html#a5420444). > In that case shptree would create a qix file (for a 1.3GB shp) but > MapServer would not draw it and no errors were thrown; this has since > been fixed. > > -jeff > From jmckenna at gatewaygeomatics.com Wed Oct 20 06:39:55 2010 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Wed, 20 Oct 2010 10:39:55 -0300 Subject: [mapserver-users] Ogrtindex and attribute data In-Reply-To: References: <4CBED1DF.1090108@dmsolutions.ca> <4CBEDBB0.3020203@dmsolutions.ca> Message-ID: <4CBEF12B.2040003@gatewaygeomatics.com> On 10-10-20 9:23 AM, Rahkonen Jukka wrote: > And Jeff, do you hear me? I copied my settings from a > document http://mapserver.org/input/vector/ogr.html. Obviously it should > be updated a bit. I should have read > http://mapserver.org/optimization/tileindex.html instead. I can hear you. I had just updated that document. What is wrong with it? Can you file a ticket for the parts that are wrong? Please assign the tickets to the "MapServer Documentation" component, thank you. -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ From Jukka.Rahkonen at mmmtike.fi Wed Oct 20 06:57:01 2010 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Wed, 20 Oct 2010 16:57:01 +0300 Subject: [mapserver-users] Ogrtindex and attribute data In-Reply-To: <4CBEF12B.2040003@gatewaygeomatics.com> References: <4CBED1DF.1090108@dmsolutions.ca> <4CBEDBB0.3020203@dmsolutions.ca> <4CBEF12B.2040003@gatewaygeomatics.com> Message-ID: > -----Alkuper?inen viesti----- > L?hett?j?: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] Puolesta Jeff McKenna > L?hetetty: 20. lokakuuta 2010 16:40 > Vastaanottaja: mapserver-users at lists.osgeo.org > Aihe: Re: [mapserver-users] Ogrtindex and attribute data > > On 10-10-20 9:23 AM, Rahkonen Jukka wrote: > > And Jeff, do you hear me? I copied my settings from a > > document http://mapserver.org/input/vector/ogr.html. > Obviously it should > > be updated a bit. I should have read > > http://mapserver.org/optimization/tileindex.html instead. > > I can hear you. I had just updated that document. What is > wrong with > it? Can you file a ticket for the parts that are wrong? > Please assign > the tickets to the "MapServer Documentation" component, thank you. Hi, Sorry, I can't tell exactly what is wrong. However, I cannot classify my layer with CLASSITEM/EXPRESSION if I am looking at a bunch of shapefiles through this tileindex definition: LAYER TYPE LINE CONNECTIONTYPE OGR #commenting this line out makes classification to work TILEINDEX "wildwater_tindex.shp,0" ... If I take out the CONNECTIONTYPE OGR line the classification works. However, I guess that it is only possible to leave out the line when working with shapefiles and not with other OGR formats. Do you think I should file a ticket and encourage someone to have a look why classification fails with the CONNECTIONTYPE line, and if it happens with most fresh Marserver version (I am still running 5.2.1)? It is probably too early to do anything for the documentation if we do not know what is the real issue. -Jukka- From ian.walberg at airborne.aero Wed Oct 20 07:08:08 2010 From: ian.walberg at airborne.aero (Ian Walberg) Date: Wed, 20 Oct 2010 10:08:08 -0400 Subject: [mapserver-users] Arabic text rendering In-Reply-To: References: <4CBB01A3.7070800@sandnarrows.com><4CBB0EE3.8060505@gatewaygeomatics.com><4CBB3BF0.9090109@sandnarrows.com> <4CBB4257.8010009@sandnarrows.com> <4CBB68EF.700@sandnarrows.com><4CBC1029.4030300@poczta.onet.pl> <4CBC523E.30608@sandnarrows.com><4CBCAE8F.6090605@gatewaygeomatics.com> Message-ID: Does anyone have any experience with Arabic text on a Linux installation? Thanks -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Ian Walberg Sent: Monday, October 18, 2010 2:10 PM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] Arabic text rendering On Linux we are Arabic words rendered as individual characters and on Windows the characters are joined correctly. Same map file, shapefile and font on each. We have tried both the mapserver and libs we have built from source and the fgs binary install on Linux and both render individual characters. Can anyone point me to what lib or config I need to change? Thanks Ian _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From ibrahimsaricicek at gmail.com Wed Oct 20 07:46:31 2010 From: ibrahimsaricicek at gmail.com (Ibrahim Saricicek) Date: Wed, 20 Oct 2010 07:46:31 -0700 (PDT) Subject: [mapserver-users] The order of Classes in A Layer Message-ID: <1287585991044-5655194.post@n2.nabble.com> Hi List, I have several polygons in a postgis table. Some bigger polygons cover the smaller ones. How can I prevent bigger polygons drawn on smaller ones? On this case smaller ones cant be seen only labels are drawn. I don't know the problem is about drawing order but I think so. As you can see on the screenshots, the small polygons can be seen but when I zoom in some of them can't be drawn. The images are purple because a bigger one covers all... Thanks in advance.. http://osgeo-org.1803224.n2.nabble.com/file/n5655194/zoomOut.png http://osgeo-org.1803224.n2.nabble.com/file/n5655194/zoomIn.png And this is my class definition; The bigger and smaller objects are in different visibility ranges and different classes!!! CLASS EXPRESSION ('[visibility_range]' = '1000-5000') MAXSCALEDENOM 5000 MINSCALEDENOM 1000 NAME "GID_S" STYLE COLOR [color] END STYLE OUTLINECOLOR 20 20 20 WIDTH 3 END LABEL COLOR 0 0 0 FONT arial TYPE truetype SIZE 8 POSITION LC PARTIALS FALSE BUFFER 5 OUTLINECOLOR 255 255 255 END END -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/The-order-of-Classes-in-A-Layer-tp5655194p5655194.html Sent from the Mapserver - User mailing list archive at Nabble.com. From David.Fawcett at state.mn.us Wed Oct 20 07:50:42 2010 From: David.Fawcett at state.mn.us (Fawcett, David (MPCA)) Date: Wed, 20 Oct 2010 09:50:42 -0500 Subject: [mapserver-users] The order of Classes in A Layer In-Reply-To: <1287585991044-5655194.post@n2.nabble.com> References: <1287585991044-5655194.post@n2.nabble.com> Message-ID: You could try putting an ORDER BY in your PostGIS layer definition to order it by area descending. David. -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Ibrahim Saricicek Sent: Wednesday, October 20, 2010 9:47 AM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] The order of Classes in A Layer Hi List, I have several polygons in a postgis table. Some bigger polygons cover the smaller ones. How can I prevent bigger polygons drawn on smaller ones? On this case smaller ones cant be seen only labels are drawn. I don't know the problem is about drawing order but I think so. As you can see on the screenshots, the small polygons can be seen but when I zoom in some of them can't be drawn. The images are purple because a bigger one covers all... Thanks in advance.. http://osgeo-org.1803224.n2.nabble.com/file/n5655194/zoomOut.png http://osgeo-org.1803224.n2.nabble.com/file/n5655194/zoomIn.png And this is my class definition; The bigger and smaller objects are in different visibility ranges and different classes!!! CLASS EXPRESSION ('[visibility_range]' = '1000-5000') MAXSCALEDENOM 5000 MINSCALEDENOM 1000 NAME "GID_S" STYLE COLOR [color] END STYLE OUTLINECOLOR 20 20 20 WIDTH 3 END LABEL COLOR 0 0 0 FONT arial TYPE truetype SIZE 8 POSITION LC PARTIALS FALSE BUFFER 5 OUTLINECOLOR 255 255 255 END END -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/The-order-of-Classes-in-A-Layer-tp5655194p5655194.html Sent from the Mapserver - User mailing list archive at Nabble.com. _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From ibrahimsaricicek at gmail.com Wed Oct 20 08:03:28 2010 From: ibrahimsaricicek at gmail.com (ibrahim saricicek) Date: Wed, 20 Oct 2010 18:03:28 +0300 Subject: [mapserver-users] The order of Classes in A Layer In-Reply-To: References: <1287585991044-5655194.post@n2.nabble.com> Message-ID: Hi List, Thanks a lot it works... On Wed, Oct 20, 2010 at 5:50 PM, Fawcett, David (MPCA) < David.Fawcett at state.mn.us> wrote: > You could try putting an ORDER BY in your PostGIS layer definition to order > it by area descending. > > David. > > -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org [mailto: > mapserver-users-bounces at lists.osgeo.org] On Behalf Of Ibrahim Saricicek > Sent: Wednesday, October 20, 2010 9:47 AM > To: mapserver-users at lists.osgeo.org > Subject: [mapserver-users] The order of Classes in A Layer > > > Hi List, > > I have several polygons in a postgis table. Some bigger polygons cover the > smaller ones. > How can I prevent bigger polygons drawn on smaller ones? On this case > smaller ones cant be seen only labels are drawn. > > I don't know the problem is about drawing order but I think so. > As you can see on the screenshots, the small polygons can be seen but when > I > zoom in some of them can't be drawn. > The images are purple because a bigger one covers all... > > Thanks in advance.. > > http://osgeo-org.1803224.n2.nabble.com/file/n5655194/zoomOut.png > http://osgeo-org.1803224.n2.nabble.com/file/n5655194/zoomIn.png > > And this is my class definition; > The bigger and smaller objects are in different visibility ranges and > different classes!!! > > CLASS > EXPRESSION ('[visibility_range]' = '1000-5000') > MAXSCALEDENOM 5000 > MINSCALEDENOM 1000 > NAME "GID_S" > STYLE > COLOR [color] > END > STYLE > OUTLINECOLOR 20 20 20 > WIDTH 3 > END > LABEL > COLOR 0 0 0 > FONT arial > TYPE truetype > SIZE 8 > POSITION LC > PARTIALS FALSE > BUFFER 5 > OUTLINECOLOR 255 255 255 > END > END > -- > View this message in context: > http://osgeo-org.1803224.n2.nabble.com/The-order-of-Classes-in-A-Layer-tp5655194p5655194.html > Sent from the Mapserver - User mailing list archive at Nabble.com. > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From jbw2003 at earthlink.net Wed Oct 20 11:20:04 2010 From: jbw2003 at earthlink.net (jim) Date: Wed, 20 Oct 2010 14:20:04 -0400 Subject: [mapserver-users] Re: wms_title display in ESRI In-Reply-To: References: <4CBE210D.9020909@earthlink.net> Message-ID: <4CBF32D4.5080302@earthlink.net> Paul, I tried ' and it has the same effect as a real "'". Jim On 10/19/2010 07:41 PM, Paul Ramsey wrote: > Try using' and see how it goes > > On Tue, Oct 19, 2010 at 3:51 PM, jim wrote: >> I have a mapfile that has wms_title strings with single quotes. When I open >> the WMS layer in Arcmap any layers with a single quote are not displayed >> properly, with the string truncated after where the quote is. >> >> How do I properly insert an apostrophe into a wms_title? >> >> Jim White >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> From bartvde at osgis.nl Wed Oct 20 11:24:01 2010 From: bartvde at osgis.nl (Bart van den Eijnden) Date: Wed, 20 Oct 2010 20:24:01 +0200 Subject: [mapserver-users] Re: wms_title display in ESRI In-Reply-To: <4CBF32D4.5080302@earthlink.net> References: <4CBE210D.9020909@earthlink.net> <4CBF32D4.5080302@earthlink.net> Message-ID: Try \' or ask ESRI :-) It's not a Mapserver problem. Best regards, Bart -- Looking for flexible support on OpenLayers or GeoExt? Please check out http://www.osgis.nl/support.html Bart van den Eijnden OSGIS bartvde at osgis.nl On Oct 20, 2010, at 8:20 PM, jim wrote: > Paul, > > I tried ' and it has the same effect as a real "'". > > Jim > > > > On 10/19/2010 07:41 PM, Paul Ramsey wrote: >> Try using' and see how it goes >> >> On Tue, Oct 19, 2010 at 3:51 PM, jim wrote: >>> I have a mapfile that has wms_title strings with single quotes. When I open >>> the WMS layer in Arcmap any layers with a single quote are not displayed >>> properly, with the string truncated after where the quote is. >>> >>> How do I properly insert an apostrophe into a wms_title? >>> >>> Jim White >>> _______________________________________________ >>> mapserver-users mailing list >>> mapserver-users at lists.osgeo.org >>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>> > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From pramsey at opengeo.org Wed Oct 20 11:27:12 2010 From: pramsey at opengeo.org (Paul Ramsey) Date: Wed, 20 Oct 2010 11:27:12 -0700 Subject: [mapserver-users] Re: wms_title display in ESRI In-Reply-To: References: <4CBE210D.9020909@earthlink.net> <4CBF32D4.5080302@earthlink.net> Message-ID: Agreed. Well, might want to save out the capabilities document and run it through an XML validator to make sure, but it sounds like we're the Nice Guys here. P On Wed, Oct 20, 2010 at 11:24 AM, Bart van den Eijnden wrote: > Try \' or ask ESRI :-) > > It's not a Mapserver problem. > > Best regards, > Bart > > -- > Looking for flexible support on OpenLayers or GeoExt? Please check out http://www.osgis.nl/support.html > > Bart van den Eijnden > OSGIS > bartvde at osgis.nl > > On Oct 20, 2010, at 8:20 PM, jim wrote: > >> Paul, >> >> I tried ' and it has the same effect as a real "'". >> >> Jim >> >> >> >> On 10/19/2010 07:41 PM, Paul Ramsey wrote: >>> Try using' and see how it goes >>> >>> On Tue, Oct 19, 2010 at 3:51 PM, jim ?wrote: >>>> I have a mapfile that has wms_title strings with single quotes. When I open >>>> the WMS layer in Arcmap any layers with a single quote are not displayed >>>> properly, with the string truncated after where the quote is. >>>> >>>> How do I properly insert an apostrophe into a wms_title? >>>> >>>> Jim White >>>> _______________________________________________ >>>> mapserver-users mailing list >>>> mapserver-users at lists.osgeo.org >>>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>>> >> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From jbw2003 at earthlink.net Wed Oct 20 12:10:00 2010 From: jbw2003 at earthlink.net (jim) Date: Wed, 20 Oct 2010 15:10:00 -0400 Subject: [mapserver-users] Re: wms_title display in ESRI In-Reply-To: References: <4CBE210D.9020909@earthlink.net> <4CBF32D4.5080302@earthlink.net> Message-ID: <4CBF3E88.8030702@earthlink.net> I will work on this as a ESRI problem. I ran the getcapabilities through a validator and it was valid http://schemas.opengis.net/wms/1.1.1/WMS_MS_Capabilities.dtd The "'" was shown as ' Jim On 10/20/2010 02:27 PM, Paul Ramsey wrote: > Agreed. Well, might want to save out the capabilities document and run > it through an XML validator to make sure, but it sounds like we're the > Nice Guys here. > > P > > On Wed, Oct 20, 2010 at 11:24 AM, Bart van den Eijnden wrote: >> Try \' or ask ESRI :-) >> >> It's not a Mapserver problem. >> >> Best regards, >> Bart >> >> -- >> Looking for flexible support on OpenLayers or GeoExt? Please check out http://www.osgis.nl/support.html >> >> Bart van den Eijnden >> OSGIS >> bartvde at osgis.nl >> >> On Oct 20, 2010, at 8:20 PM, jim wrote: >> >>> Paul, >>> >>> I tried' and it has the same effect as a real "'". >>> >>> Jim >>> >>> >>> >>> On 10/19/2010 07:41 PM, Paul Ramsey wrote: >>>> Try using' and see how it goes >>>> >>>> On Tue, Oct 19, 2010 at 3:51 PM, jim wrote: >>>>> I have a mapfile that has wms_title strings with single quotes. When I open >>>>> the WMS layer in Arcmap any layers with a single quote are not displayed >>>>> properly, with the string truncated after where the quote is. >>>>> >>>>> How do I properly insert an apostrophe into a wms_title? >>>>> >>>>> Jim White >>>>> _______________________________________________ >>>>> mapserver-users mailing list >>>>> mapserver-users at lists.osgeo.org >>>>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>>>> >>> _______________________________________________ >>> mapserver-users mailing list >>> mapserver-users at lists.osgeo.org >>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> From sebastian.ovide at gmail.com Thu Oct 21 01:55:20 2010 From: sebastian.ovide at gmail.com (Sebastian E. Ovide) Date: Thu, 21 Oct 2010 09:55:20 +0100 Subject: [mapserver-users] ESRI binary grids RRD files ? In-Reply-To: References: <4CBD9846.2020200@pobox.com> Message-ID: solution: make sure the .rrd and .aux files have exactly the same name as the folders with the adf files. IE: in ext4 are case sensitive. On Wed, Oct 20, 2010 at 9:13 AM, Sebastian E. Ovide < sebastian.ovide at gmail.com> wrote: > Frank, > > I've left those RRD and I suspect that for some reason the pyramids are not > read... In fact the performance is very good for zoomed in views (street > level)... but it is very slow for zoom out views (city level)... and I can > see the IO working very hard... > > is there any way to see if MapServer/gdal is reading the pyramids correctly > ? > > thanks > > > On Tue, Oct 19, 2010 at 2:08 PM, Frank Warmerdam wrote: > >> Sebastian E. Ovide wrote: >> >>> Hi Guys, >>> >>> ESRI Binary grids contains a bunch of adf files and rrd files that I >>> believe contains pyramids. >>> Does MapServer needs those rrd files ? the question is because they are >>> very big ! >>> >> >> Sebastian, >> >> Yes, MapServer will take advantage of .rrd overviews for ESRI binary >> grids. >> You can delete them but in some cases performance will suffer. >> >> Best regards, >> -- >> >> ---------------------------------------+-------------------------------------- >> I set the clouds in motion - turn up | Frank Warmerdam, >> warmerdam at pobox.com >> light and sound - activate the windows | http://pobox.com/~warmerdam >> and watch the world go round - Rush | Geospatial Programmer for Rent >> >> > > > -- > Sebastian E. Ovide > > > > > -- Sebastian E. Ovide -------------- next part -------------- An HTML attachment was scrubbed... URL: From woodbri at swoodbridge.com Thu Oct 21 06:19:37 2010 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Thu, 21 Oct 2010 09:19:37 -0400 Subject: [mapserver-users] Arabic text rendering In-Reply-To: References: <4CBB01A3.7070800@sandnarrows.com><4CBB0EE3.8060505@gatewaygeomatics.com><4CBB3BF0.9090109@sandnarrows.com> <4CBB4257.8010009@sandnarrows.com> <4CBB68EF.700@sandnarrows.com><4CBC1029.4030300@poczta.onet.pl> <4CBC523E.30608@sandnarrows.com><4CBCAE8F.6090605@gatewaygeomatics.com> Message-ID: <4CC03DE9.3030805@swoodbridge.com> Ian, You have to get a truetype font that supports arabic and has all the chaining glyphs in it. Microsoft has an arial font that is about 24MB file size that is pretty good, not that I'm suggesting you violate their EUA. There are also some commercial fonts that you can buy that do the job pretty well. You might ask for font suggestions on fribidi software list. As far as installation, all you need to do for maperver is copy the font to a directory that your webserver can access, can create fontlist.txt that points to that font. Then you can referrence the file via the alias you gave it in the fontlist.txt file. See the documentation for how to do this. -Steve W On 10/20/2010 10:08 AM, Ian Walberg wrote: > Does anyone have any experience with Arabic text on a Linux > installation? > > Thanks > > -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Ian > Walberg > Sent: Monday, October 18, 2010 2:10 PM > To: mapserver-users at lists.osgeo.org > Subject: [mapserver-users] Arabic text rendering > > On Linux we are Arabic words rendered as individual characters and on > Windows the characters are joined correctly. > > Same map file, shapefile and font on each. > > We have tried both the mapserver and libs we have built from source and > the fgs binary install on Linux and both render individual characters. > > Can anyone point me to what lib or config I need to change? > > Thanks > > Ian > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From nikos at maich.gr Thu Oct 21 06:38:31 2010 From: nikos at maich.gr (nikos at maich.gr) Date: Thu, 21 Oct 2010 16:38:31 +0300 (EEST) Subject: [mapserver-users] postgis to spatile-ogr Message-ID: <2925.193.218.36.79.1287668311.squirrel@193.218.36.79> Hello, Was wondering if an application that is currently set up with postgis data sources can work directly by changing only the data source, e.g change the DATA string to "ogr" in the mapfile. Have to setup a demo remotely and don't really want to drag pgsql along only for the demo. If, so, would ogr2ogr be the most direct way to dump the postgis tables into sqlite? regards, nicolas boretos From ian.walberg at airborne.aero Thu Oct 21 08:04:42 2010 From: ian.walberg at airborne.aero (Ian Walberg) Date: Thu, 21 Oct 2010 11:04:42 -0400 Subject: [mapserver-users] Arabic text rendering In-Reply-To: <4CC03DE9.3030805@swoodbridge.com> References: <4CBB01A3.7070800@sandnarrows.com><4CBB0EE3.8060505@gatewaygeomatics.com><4CBB3BF0.9090109@sandnarrows.com> <4CBB4257.8010009@sandnarrows.com> <4CBB68EF.700@sandnarrows.com><4CBC1029.4030300@poczta.onet.pl> <4CBC523E.30608@sandnarrows.com><4CBCAE8F.6090605@gatewaygeomatics.com> <4CC03DE9.3030805@swoodbridge.com> Message-ID: Steve, Thanks for the reply. We have a working setup on Window using ms4w and used the same map, shape and fonts files on the Linux setup which is an fgs install but this shows the characters broken. Is anyone out using a working linux installation which correctly joins Arabic characters? Thanks Ian -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Stephen Woodbridge Sent: Thursday, October 21, 2010 6:20 AM To: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Arabic text rendering Ian, You have to get a truetype font that supports arabic and has all the chaining glyphs in it. Microsoft has an arial font that is about 24MB file size that is pretty good, not that I'm suggesting you violate their EUA. There are also some commercial fonts that you can buy that do the job pretty well. You might ask for font suggestions on fribidi software list. As far as installation, all you need to do for maperver is copy the font to a directory that your webserver can access, can create fontlist.txt that points to that font. Then you can referrence the file via the alias you gave it in the fontlist.txt file. See the documentation for how to do this. -Steve W On 10/20/2010 10:08 AM, Ian Walberg wrote: > Does anyone have any experience with Arabic text on a Linux > installation? > > Thanks > > -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Ian > Walberg > Sent: Monday, October 18, 2010 2:10 PM > To: mapserver-users at lists.osgeo.org > Subject: [mapserver-users] Arabic text rendering > > On Linux we are Arabic words rendered as individual characters and on > Windows the characters are joined correctly. > > Same map file, shapefile and font on each. > > We have tried both the mapserver and libs we have built from source and > the fgs binary install on Linux and both render individual characters. > > Can anyone point me to what lib or config I need to change? > > Thanks > > Ian > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From sebastian.ovide at gmail.com Thu Oct 21 08:26:02 2010 From: sebastian.ovide at gmail.com (Sebastian E. Ovide) Date: Thu, 21 Oct 2010 16:26:02 +0100 Subject: [mapserver-users] process survive after killing apache Message-ID: Hi All, I'm having 2 problems: 1) Mapserver uses 100% for infinite time... (hangs !) for some layers... 2) Mapserver survives after killing Apache (same with lighttpd). It even wont die with a "sudo killall mapserv" at least that I pass the -9 parameter. Any ideas ? (I'm running Mapserver on a VMware... , same problem with fastcgi or simple cgi) -- Sebastian E. Ovide -------------- next part -------------- An HTML attachment was scrubbed... URL: From woodbri at swoodbridge.com Thu Oct 21 09:50:50 2010 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Thu, 21 Oct 2010 12:50:50 -0400 Subject: [mapserver-users] Arabic text rendering In-Reply-To: References: <4CBB01A3.7070800@sandnarrows.com><4CBB0EE3.8060505@gatewaygeomatics.com><4CBB3BF0.9090109@sandnarrows.com> <4CBB4257.8010009@sandnarrows.com> <4CBB68EF.700@sandnarrows.com><4CBC1029.4030300@poczta.onet.pl> <4CBC523E.30608@sandnarrows.com><4CBCAE8F.6090605@gatewaygeomatics.com> <4CC03DE9.3030805@swoodbridge.com> Message-ID: <4CC06F6A.4000601@swoodbridge.com> The key is to make sure you are using fribidi-0.19.2.tar.gz I do not use fgs, so I'm not sure what they are using. I have downloaded the source and compiled and in stalled it under /usr/local/. Make sure you do NOT have the system package for fribidi installed as that is the old one that does not support the joining. Did you copy the font file you used for ms4w to linux to make sure you are using the same file? -Steve W On 10/21/2010 11:04 AM, Ian Walberg wrote: > Steve, > > Thanks for the reply. > > We have a working setup on Window using ms4w and used the same map, > shape and fonts files on the Linux setup which is an fgs install but > this shows the characters broken. > > Is anyone out using a working linux installation which correctly joins > Arabic characters? > > Thanks > > Ian > > -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Stephen > Woodbridge > Sent: Thursday, October 21, 2010 6:20 AM > To: mapserver-users at lists.osgeo.org > Subject: Re: [mapserver-users] Arabic text rendering > > Ian, > > You have to get a truetype font that supports arabic and has all the > chaining glyphs in it. Microsoft has an arial font that is about 24MB > file size that is pretty good, not that I'm suggesting you violate their > > EUA. There are also some commercial fonts that you can buy that do the > job pretty well. > > You might ask for font suggestions on fribidi software list. > > As far as installation, all you need to do for maperver is copy the font > > to a directory that your webserver can access, can create fontlist.txt > that points to that font. Then you can referrence the file via the alias > > you gave it in the fontlist.txt file. See the documentation for how to > do this. > > -Steve W > > On 10/20/2010 10:08 AM, Ian Walberg wrote: >> Does anyone have any experience with Arabic text on a Linux >> installation? >> >> Thanks >> >> -----Original Message----- >> From: mapserver-users-bounces at lists.osgeo.org >> [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Ian >> Walberg >> Sent: Monday, October 18, 2010 2:10 PM >> To: mapserver-users at lists.osgeo.org >> Subject: [mapserver-users] Arabic text rendering >> >> On Linux we are Arabic words rendered as individual characters and on >> Windows the characters are joined correctly. >> >> Same map file, shapefile and font on each. >> >> We have tried both the mapserver and libs we have built from source > and >> the fgs binary install on Linux and both render individual characters. >> >> Can anyone point me to what lib or config I need to change? >> >> Thanks >> >> Ian >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From ian.walberg at airborne.aero Thu Oct 21 13:20:08 2010 From: ian.walberg at airborne.aero (Ian Walberg) Date: Thu, 21 Oct 2010 16:20:08 -0400 Subject: [mapserver-users] Arabic text rendering In-Reply-To: <4CC06F6A.4000601@swoodbridge.com> References: <4CBB01A3.7070800@sandnarrows.com><4CBB0EE3.8060505@gatewaygeomatics.com><4CBB3BF0.9090109@sandnarrows.com> <4CBB4257.8010009@sandnarrows.com> <4CBB68EF.700@sandnarrows.com><4CBC1029.4030300@poczta.onet.pl> <4CBC523E.30608@sandnarrows.com><4CBCAE8F.6090605@gatewaygeomatics.com> <4CC03DE9.3030805@swoodbridge.com> <4CC06F6A.4000601@swoodbridge.com> Message-ID: Steve, Many thanks for you help, we had an old version of fribidi and building 0.19.2 fixed the character join issue. We do appear to have a couple of labels with square boxes (invalid chat I assume) at the end but I need to check the source data as well. Regards Ian -----Original Message----- From: Stephen Woodbridge [mailto:woodbri at swoodbridge.com] Sent: Thursday, October 21, 2010 9:51 AM To: Ian Walberg Cc: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Arabic text rendering The key is to make sure you are using fribidi-0.19.2.tar.gz I do not use fgs, so I'm not sure what they are using. I have downloaded the source and compiled and in stalled it under /usr/local/. Make sure you do NOT have the system package for fribidi installed as that is the old one that does not support the joining. Did you copy the font file you used for ms4w to linux to make sure you are using the same file? -Steve W On 10/21/2010 11:04 AM, Ian Walberg wrote: > Steve, > > Thanks for the reply. > > We have a working setup on Window using ms4w and used the same map, > shape and fonts files on the Linux setup which is an fgs install but > this shows the characters broken. > > Is anyone out using a working linux installation which correctly joins > Arabic characters? > > Thanks > > Ian > > -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Stephen > Woodbridge > Sent: Thursday, October 21, 2010 6:20 AM > To: mapserver-users at lists.osgeo.org > Subject: Re: [mapserver-users] Arabic text rendering > > Ian, > > You have to get a truetype font that supports arabic and has all the > chaining glyphs in it. Microsoft has an arial font that is about 24MB > file size that is pretty good, not that I'm suggesting you violate their > > EUA. There are also some commercial fonts that you can buy that do the > job pretty well. > > You might ask for font suggestions on fribidi software list. > > As far as installation, all you need to do for maperver is copy the font > > to a directory that your webserver can access, can create fontlist.txt > that points to that font. Then you can referrence the file via the alias > > you gave it in the fontlist.txt file. See the documentation for how to > do this. > > -Steve W > > On 10/20/2010 10:08 AM, Ian Walberg wrote: >> Does anyone have any experience with Arabic text on a Linux >> installation? >> >> Thanks >> >> -----Original Message----- >> From: mapserver-users-bounces at lists.osgeo.org >> [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Ian >> Walberg >> Sent: Monday, October 18, 2010 2:10 PM >> To: mapserver-users at lists.osgeo.org >> Subject: [mapserver-users] Arabic text rendering >> >> On Linux we are Arabic words rendered as individual characters and on >> Windows the characters are joined correctly. >> >> Same map file, shapefile and font on each. >> >> We have tried both the mapserver and libs we have built from source > and >> the fgs binary install on Linux and both render individual characters. >> >> Can anyone point me to what lib or config I need to change? >> >> Thanks >> >> Ian >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From woodbri at swoodbridge.com Thu Oct 21 13:39:54 2010 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Thu, 21 Oct 2010 16:39:54 -0400 Subject: [mapserver-users] Arabic text rendering In-Reply-To: References: <4CBB01A3.7070800@sandnarrows.com><4CBB0EE3.8060505@gatewaygeomatics.com><4CBB3BF0.9090109@sandnarrows.com> <4CBB4257.8010009@sandnarrows.com> <4CBB68EF.700@sandnarrows.com><4CBC1029.4030300@poczta.onet.pl> <4CBC523E.30608@sandnarrows.com><4CBCAE8F.6090605@gatewaygeomatics.com> <4CC03DE9.3030805@swoodbridge.com> <4CC06F6A.4000601@swoodbridge.com> Message-ID: <4CC0A51A.8090700@swoodbridge.com> On 10/21/2010 4:20 PM, Ian Walberg wrote: > Steve, > > Many thanks for you help, we had an old version of fribidi and building > 0.19.2 fixed the character join issue. > > We do appear to have a couple of labels with square boxes (invalid chat > I assume) at the end but I need to check the source data as well. This means the the font is missing that particular joining character. I would be interested in knowing if there is a good font that the fribidi team recommends if you contact them or if you find one that is complete. I have clients, that have licensed fonts that are more complete, by still had to go in add a few additional glyphs. I do not remember what font they got or where they got it from. -Steve W > Regards > > Ian > > > -----Original Message----- > From: Stephen Woodbridge [mailto:woodbri at swoodbridge.com] > Sent: Thursday, October 21, 2010 9:51 AM > To: Ian Walberg > Cc: mapserver-users at lists.osgeo.org > Subject: Re: [mapserver-users] Arabic text rendering > > The key is to make sure you are using fribidi-0.19.2.tar.gz I do not use > > fgs, so I'm not sure what they are using. I have downloaded the source > and compiled and in stalled it under /usr/local/. Make sure you do NOT > have the system package for fribidi installed as that is the old one > that does not support the joining. > > Did you copy the font file you used for ms4w to linux to make sure you > are using the same file? > > -Steve W > > On 10/21/2010 11:04 AM, Ian Walberg wrote: >> Steve, >> >> Thanks for the reply. >> >> We have a working setup on Window using ms4w and used the same map, >> shape and fonts files on the Linux setup which is an fgs install but >> this shows the characters broken. >> >> Is anyone out using a working linux installation which correctly joins >> Arabic characters? >> >> Thanks >> >> Ian >> >> -----Original Message----- >> From: mapserver-users-bounces at lists.osgeo.org >> [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Stephen >> Woodbridge >> Sent: Thursday, October 21, 2010 6:20 AM >> To: mapserver-users at lists.osgeo.org >> Subject: Re: [mapserver-users] Arabic text rendering >> >> Ian, >> >> You have to get a truetype font that supports arabic and has all the >> chaining glyphs in it. Microsoft has an arial font that is about 24MB >> file size that is pretty good, not that I'm suggesting you violate > their >> >> EUA. There are also some commercial fonts that you can buy that do the >> job pretty well. >> >> You might ask for font suggestions on fribidi software list. >> >> As far as installation, all you need to do for maperver is copy the > font >> >> to a directory that your webserver can access, can create fontlist.txt >> that points to that font. Then you can referrence the file via the > alias >> >> you gave it in the fontlist.txt file. See the documentation for how to >> do this. >> >> -Steve W >> >> On 10/20/2010 10:08 AM, Ian Walberg wrote: >>> Does anyone have any experience with Arabic text on a Linux >>> installation? >>> >>> Thanks >>> >>> -----Original Message----- >>> From: mapserver-users-bounces at lists.osgeo.org >>> [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Ian >>> Walberg >>> Sent: Monday, October 18, 2010 2:10 PM >>> To: mapserver-users at lists.osgeo.org >>> Subject: [mapserver-users] Arabic text rendering >>> >>> On Linux we are Arabic words rendered as individual characters and on >>> Windows the characters are joined correctly. >>> >>> Same map file, shapefile and font on each. >>> >>> We have tried both the mapserver and libs we have built from source >> and >>> the fgs binary install on Linux and both render individual > characters. >>> >>> Can anyone point me to what lib or config I need to change? >>> >>> Thanks >>> >>> Ian >>> _______________________________________________ >>> mapserver-users mailing list >>> mapserver-users at lists.osgeo.org >>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>> _______________________________________________ >>> mapserver-users mailing list >>> mapserver-users at lists.osgeo.org >>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users > From sebastian.ovide at gmail.com Thu Oct 21 15:35:13 2010 From: sebastian.ovide at gmail.com (Sebastian E. Ovide) Date: Thu, 21 Oct 2010 23:35:13 +0100 Subject: [mapserver-users] postgis to spatile-ogr In-Reply-To: <2925.193.218.36.79.1287668311.squirrel@193.218.36.79> References: <2925.193.218.36.79.1287668311.squirrel@193.218.36.79> Message-ID: if you need only to display geometries with mapserver u can simply use shapes files... anything that can be read by gdal can be read by mapserver On Thu, Oct 21, 2010 at 2:38 PM, wrote: > Hello, > > Was wondering if an application that is currently set up with postgis data > sources can work directly by changing only the data source, e.g change the > DATA string to "ogr" in the mapfile. > > Have to setup a demo remotely and don't really want to drag pgsql along > only for the demo. > > If, so, would ogr2ogr be the most direct way to dump the postgis tables > into sqlite? > > regards, > > nicolas boretos > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -- Sebastian E. Ovide -------------- next part -------------- An HTML attachment was scrubbed... URL: From David.Fawcett at state.mn.us Thu Oct 21 19:10:55 2010 From: David.Fawcett at state.mn.us (Fawcett, David (MPCA)) Date: Thu, 21 Oct 2010 21:10:55 -0500 Subject: [mapserver-users] postgis to spatile-ogr In-Reply-To: References: <2925.193.218.36.79.1287668311.squirrel@193.218.36.79> Message-ID: I looks like with gdal 1.7, spatialite support has improved. If you need to support layers based on queries that link geometry tables with attribute tables, spatialite could still potentially work. I haven't tested out a spatialite layer yet though. http://www.gdal.org/ogr/drv_sqlite.html there is also a new QGIS plugin that allows you to check data out of a PostGIS db and put it into a spatialite db. It looks like it requires the trunk version of QGIS. http://www.sourcepole.com/2010/9/29/offline-editing-plugin-for-qgis David. From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Sebastian E. Ovide Sent: Thursday, October 21, 2010 5:35 PM To: nikos at maich.gr Cc: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] postgis to spatile-ogr if you need only to display geometries with mapserver u can simply use shapes files... anything that can be read by gdal can be read by mapserver On Thu, Oct 21, 2010 at 2:38 PM, > wrote: Hello, Was wondering if an application that is currently set up with postgis data sources can work directly by changing only the data source, e.g change the DATA string to "ogr" in the mapfile. Have to setup a demo remotely and don't really want to drag pgsql along only for the demo. If, so, would ogr2ogr be the most direct way to dump the postgis tables into sqlite? regards, nicolas boretos _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Sebastian E. Ovide -------------- next part -------------- An HTML attachment was scrubbed... URL: From nikos at maich.gr Thu Oct 21 23:41:11 2010 From: nikos at maich.gr (nikos at maich.gr) Date: Fri, 22 Oct 2010 09:41:11 +0300 (EEST) Subject: [mapserver-users] postgis to spatile-ogr In-Reply-To: References: <2925.193.218.36.79.1287668311.squirrel@193.218.36.79> Message-ID: <2282.193.218.36.79.1287729671.squirrel@193.218.36.79> Hi, Thanx for the replies... I need as David says, to support layers and queries where I join geom tables with user generated external attribute tables (postgres). Eons ago I was doing this on shapefiles, using a modified dbflib that would overwrite columns in the dbf... Worked well, but needless to say it was not multi-user and kinda roundabout... OGR seems to join shp/dbf's with external attributes, but is excruciatingly slow.... OGR is much faster when using sqlite db's, prolly because the sql is pumped to the native, sqlite engine... MS supports postgis joins directly in the mapfile, and this is what I'm currently using, but need to go to temporary solution w/ less overhead... will see.... regards, nikos > I looks like with gdal 1.7, spatialite support has improved. If you need > to support layers based on queries that link geometry tables with > attribute tables, spatialite could still potentially work. I haven't > tested out a spatialite layer yet though. > > http://www.gdal.org/ogr/drv_sqlite.html > > there is also a new QGIS plugin that allows you to check data out of a > PostGIS db and put it into a spatialite db. It looks like it requires the > trunk version of QGIS. > http://www.sourcepole.com/2010/9/29/offline-editing-plugin-for-qgis > > David. > > From: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Sebastian E. > Ovide > Sent: Thursday, October 21, 2010 5:35 PM > To: nikos at maich.gr > Cc: mapserver-users at lists.osgeo.org > Subject: Re: [mapserver-users] postgis to spatile-ogr > > if you need only to display geometries with mapserver u can simply use > shapes files... anything that can be read by gdal can be read by mapserver > On Thu, Oct 21, 2010 at 2:38 PM, > > wrote: > Hello, > > Was wondering if an application that is currently set up with postgis data > sources can work directly by changing only the data source, e.g change the > DATA string to "ogr" in the mapfile. > > Have to setup a demo remotely and don't really want to drag pgsql along > only for the demo. > > If, so, would ogr2ogr be the most direct way to dump the postgis tables > into sqlite? > > regards, > > nicolas boretos > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > -- > Sebastian E. Ovide > > > > From greg.luker at scu.edu.au Fri Oct 22 04:25:26 2010 From: greg.luker at scu.edu.au (greg.luker at scu.edu.au) Date: Fri, 22 Oct 2010 22:25:26 +1100 Subject: [mapserver-users] MapServer Windows7 EasyPHP setup Message-ID: Hi MapServers, I have a new computer with Windows 7 Pro (64-bit), on which I'd like to get MapServer running. I have installed EasyPHP-5.3.3 (because I heard it worked on Win7), and so I have Apache, PHP and MySQL running. I downloaded ms4w_3.0_beta11 and copied the entire cgi-bin directory into the EasyPHP home directory. I started MapServer but got a message: msProcessProjection(): Projection library error. major axis or radius = 0 or not given I guess there are quite a few configuration settings that I haven't set yet. Is it worth persevering with EasyPHP, or does ms4w work on Win7, and therefore should I just uninstall EasyPHP (and Apache, PHP and MySQL) and install ms4w? Thanks, Greg. Greg Luker GIS Lab Manager Southern Cross University AUSTRALIA 61 2 66203026 -------------- next part -------------- An HTML attachment was scrubbed... URL: From porath at web.de Fri Oct 22 05:29:47 2010 From: porath at web.de (Holger Porath) Date: Fri, 22 Oct 2010 14:29:47 +0200 Subject: [mapserver-users] wfs 1.1 capabilities breaks when using special characters Message-ID: Hi list, mapserver 5.6 breaks when we perform a getcapabilities request for wfs 1.1. This only happens when the capabilities response contains special characters (like the copyright symbol or umlauts). The response is cut at the position where the special character is returned: test title test abstract OGC WFS 1.1.0test fees copyright The error log shows the following: [Fri Oct 22 13:57:57 2010] [error] [client 10.6.241.71]encoding [Fri Oct 22 13:57:57 2010] [error] [client 10.6.241.71] error : [Fri Oct 22 13:57:57 2010] [error] [client 10.6.241.71] output conversion failed due to conv error, bytes 0xFC 0x6D 0x65 0x72 [Fri Oct 22 13:57:57 2010] [error] [client 10.6.241.71] I/O [Fri Oct 22 13:57:57 2010] [error] [client 10.6.241.71] error : [Fri Oct 22 13:57:57 2010] [error] [client 10.6.241.71] encoder error The strange thing is that for wfs 1.0 the request/response is working fine! It is not cut and returned as usual. The issue is only for wfs 1.1. Does anyone have any idea? Thanks in advance. Holger ------------------------------------------- Dipl. Wirt. Inform. Holger Porath Wangeroogestra?e 63 45665 Recklinghausen holger.porath at porath.de From frodewj at gmail.com Fri Oct 22 05:46:35 2010 From: frodewj at gmail.com (=?ISO-8859-1?Q?Frode_Wiseth_J=F8rgensen?=) Date: Fri, 22 Oct 2010 14:46:35 +0200 Subject: [mapserver-users] MapServer Windows7 EasyPHP setup In-Reply-To: References: Message-ID: MS4W works fine on Win7 64bit Frode On 22 October 2010 13:25, wrote: > Hi MapServers, > > I have a new computer with Windows 7 Pro (64-bit), on which I'd like to get > MapServer running. I have installed EasyPHP-5.3.3 (because I heard it worked > on Win7), and so I have Apache, PHP and MySQL running. I downloaded > ms4w_3.0_beta11 and copied the entire cgi-bin directory into the EasyPHP > home directory. I started MapServer but got a message: > > msProcessProjection(): Projection library error. major axis or radius = 0 > or not given > > I guess there are quite a few configuration settings that I haven't set > yet. Is it worth persevering with EasyPHP, or does ms4w work on Win7, and > therefore should I just uninstall EasyPHP (and Apache, PHP and MySQL) and > install ms4w? > > Thanks, > Greg. > > Greg Luker > GIS Lab Manager > Southern Cross University > AUSTRALIA > 61 2 66203026 > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -- Frode Wiseth J?rgensen +47 99 03 41 42 -------------- next part -------------- An HTML attachment was scrubbed... URL: From yassefa at dmsolutions.ca Fri Oct 22 06:35:35 2010 From: yassefa at dmsolutions.ca (Yewondwossen Assefa) Date: Fri, 22 Oct 2010 09:35:35 -0400 Subject: [mapserver-users] wfs 1.1 capabilities breaks when using special characters In-Reply-To: References: Message-ID: <4CC19327.6030009@dmsolutions.ca> Hi, This is probably related to encoding issues with libxml2 described in http://trac.osgeo.org/mapserver/ticket/3297 Some items are still missing the encoding conversion. If there is no sensitive info in your map, It would be nice to attach it to the bug so It can be tested. regards, On 22/10/2010 8:29 AM, Holger Porath wrote: > Hi list, > > mapserver 5.6 breaks when we perform a getcapabilities request for wfs > 1.1. This only happens when the capabilities response contains special > characters (like the copyright symbol or umlauts). The response is cut > at the position where the special character is returned: > xmlns:wfs="http://www.opengis.net/wfs" > xmlns:ows="http://www.opengis.net/ows" > xmlns:xlink="http://www.w3.org/1999/xlink" > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > xmlns:ogc="http://www.opengis.net/ogc" > xmlns="http://www.opengis.net/wfs" version="1.1.0" > xsi:schemaLocation="http://www.opengis.net/wfs > http://schemas.opengis.net/wfs/1.1.0/wfs.xsd"> > test title > test abstract > OGC WFS > 1.1.0test > fees copyright > > The error log shows the following: > [Fri Oct 22 13:57:57 2010] [error] [client 10.6.241.71]encoding > [Fri Oct 22 13:57:57 2010] [error] [client 10.6.241.71] error : > [Fri Oct 22 13:57:57 2010] [error] [client 10.6.241.71] output > conversion failed due to conv error, bytes 0xFC 0x6D 0x65 0x72 > [Fri Oct 22 13:57:57 2010] [error] [client 10.6.241.71] I/O > [Fri Oct 22 13:57:57 2010] [error] [client 10.6.241.71] error : > [Fri Oct 22 13:57:57 2010] [error] [client 10.6.241.71] encoder error > The strange thing is that for wfs 1.0 the request/response is working > fine! It is not cut and returned as usual. The issue is only for wfs 1.1. > Does anyone have any idea? > Thanks in advance. > Holger > ------------------------------------------- > Dipl. Wirt. Inform. Holger Porath > Wangeroogestra?e 63 > 45665 Recklinghausen > holger.porath at porath.de_______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: yassefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- From geomartino at gmail.com Fri Oct 22 08:49:08 2010 From: geomartino at gmail.com (Martin Ouellet) Date: Fri, 22 Oct 2010 11:49:08 -0400 Subject: [mapserver-users] Best way to store ArcInfo annotations in PostGIS? Message-ID: Hi all, I see 2 ways for doing that: 1) store the centroid (as a point geometry), rotation, text and maybe the size of the annotation in my postgis table 2) using FME transformer (TextStroker), I can convert the annotation as a multi-polygone or polyline directly. Playing with the font and some offset parameter, the result is pretty amazing (when I overlap the annotation and the geometry generated by the transformer) In a WMS map rendering point of view: Q1: I presume that the solution #2 will be much faster than rendering ? label based on a point, rotation and text? Q2: beside the limitation of solution #2 (cannot change font, size or position of the text (geometry), is there others importants limitations that I forgot? Q3: Any recommendations? cheers! MartinOuellet -------------- next part -------------- An HTML attachment was scrubbed... URL: From lholcombe at triple-bypass.net Sat Oct 23 02:16:14 2010 From: lholcombe at triple-bypass.net (Leigh Holcombe) Date: Fri, 22 Oct 2010 23:16:14 -1000 Subject: [mapserver-users] Trouble with MapServer cgi Message-ID: <73182104-D57E-4E7E-B5F5-5D826A46517C@triple-bypass.net> Hello, I've been trying to learn the MapServer software for a few weeks now. Mostly, I've been running some examples from Bill Kropla's book, but I've also been trying out some things on my own. I'm running version 5.6.5 on Fedora 13. My first question is about SELinux context. After yum installation, the mapserv executable found in /usr/sbin has a context of system_u:object_r:bin_t:s0. However, this causes serious problems for SELinux. After trying numerous modifications, I have found that unconfined_u:object_r:httpd_unconfined_script_exec_t:s0 works - however, according to documentation, this is just barely better than turning SELinux off. Can you offer any advice about setting this properly? While SELinux is not crucial to my practice development, I feel it's a good idea to learn it. Secondly, I am having trouble loading map images without forms. I have a properly configured virtual host, whose docroot is /var/www/html/nwss.dev. My cgi directory is /var/www/cgi-bin, and my mapfile is located in /var/www/html/nwss.dev/mapserver_test. According to the documentation, the path passed to the executable should be the path relative to the cgi location. I take this to mean that either the absolute path above or the relative path ../html/nwss.dev/mapserver_test should work. However, it does not. Here is the HTML code I am trying to use (without < >): img src="http://www.nwss.dev/cgi-bin/mapserv?map=../html/nwss.dev/mapserver_test/map_13.map?mode=map" width="800" height="800" border="0" The web section (is it necessary in this example?) of my mapfile is: WEB TEMPLATE "/var/www/html/nwss.dev/mapserver_test/map_13.html" IMAGEPATH "/var/www/html/nwss.dev/mapserver_test/tmp/" IMAGEURL "/mapserver_test/tmp/" END #end web Clearly, I'm doing something wrong. But based on what I've read, it seems right. Help! Thanks for your time. From sebastian.ovide at gmail.com Sat Oct 23 05:46:56 2010 From: sebastian.ovide at gmail.com (Sebastian E. Ovide) Date: Sat, 23 Oct 2010 13:46:56 +0100 Subject: [mapserver-users] Trouble with MapServer cgi In-Reply-To: <73182104-D57E-4E7E-B5F5-5D826A46517C@triple-bypass.net> References: <73182104-D57E-4E7E-B5F5-5D826A46517C@triple-bypass.net> Message-ID: Hi Leigh, I have not idea about Fedora... with Ubuntu it was a simple apt-get install... with GIS repo...that's all... all working fine... In my case I had to build gdal and mapserver as I needed Oracle drivers too.... and the installation was very straight forward... What OS do mapservers developers use ? On Sat, Oct 23, 2010 at 10:16 AM, Leigh Holcombe < lholcombe at triple-bypass.net> wrote: > Hello, > I've been trying to learn the MapServer software for a few weeks now. > Mostly, I've been running some examples from Bill Kropla's book, but I've > also been trying out some things on my own. I'm running version 5.6.5 on > Fedora 13. > > My first question is about SELinux context. After yum installation, the > mapserv executable found in /usr/sbin has a context of > system_u:object_r:bin_t:s0. However, this causes serious problems for > SELinux. After trying numerous modifications, I have found that > unconfined_u:object_r:httpd_unconfined_script_exec_t:s0 works - however, > according to documentation, this is just barely better than turning SELinux > off. Can you offer any advice about setting this properly? While SELinux > is not crucial to my practice development, I feel it's a good idea to learn > it. > > Secondly, I am having trouble loading map images without forms. I have a > properly configured virtual host, whose docroot is /var/www/html/nwss.dev. > My cgi directory is /var/www/cgi-bin, and my mapfile is located in > /var/www/html/nwss.dev/mapserver_test. According to the documentation, the > path passed to the executable should be the path relative to the cgi > location. I take this to mean that either the absolute path above or the > relative path ../html/nwss.dev/mapserver_test should work. However, it does > not. Here is the HTML code I am trying to use (without < >): > > img src=" > http://www.nwss.dev/cgi-bin/mapserv?map=../html/nwss.dev/mapserver_test/map_13.map?mode=map" > width="800" height="800" border="0" > > The web section (is it necessary in this example?) of my mapfile is: > WEB > TEMPLATE "/var/www/html/nwss.dev/mapserver_test/map_13.html" > IMAGEPATH "/var/www/html/nwss.dev/mapserver_test/tmp/" > IMAGEURL "/mapserver_test/tmp/" > END #end web > > Clearly, I'm doing something wrong. But based on what I've read, it seems > right. Help! Thanks for your time. > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -- Sebastian E. Ovide -------------- next part -------------- An HTML attachment was scrubbed... URL: From ecodavid at rci.rutgers.edu Sat Oct 23 11:04:27 2010 From: ecodavid at rci.rutgers.edu (ecodavid at rci.rutgers.edu) Date: Sat, 23 Oct 2010 14:04:27 -0400 (EDT) Subject: [mapserver-users] Problem loading geotifs Message-ID: I am trying to add Landsat7 images to my mapserver project. I have downloaded the images in geotif format from the USGS. These images correspond to a rectangular snapshot over the region. Since multiple geotiffs are needed to cover my region, I am tiling the images using gdal. Here is the problem I am having: The geotiffs render only partially. For example, the top half of the image will render, and the bottom half will not. I have opened the geotiff files in several image editors and can view the entire region, so I am assuming that the problem is somewhere in the Mapserver rendering. Also, I have tried inserting the image directly (i.e. not using tiling) and get the same result. Can anyone help me out? From Jukka.Rahkonen at mmmtike.fi Sat Oct 23 12:38:46 2010 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Sat, 23 Oct 2010 22:38:46 +0300 Subject: [mapserver-users] Problem loading geotifs References: Message-ID: Hi, My guess is that the data area of your Landsat images are not North-South oriented and they have triangular no-data areas in the corners. Adjacent images are overlapping when you view them together and no-data area from one image is covering the real data of the image underneath. The cure is to use OFFSITE in the mapfile to tell what pixel value should be made transparent. No-data value is often stored in the geotiff metadata and you can check it with gdalinfo. Perhaps most often it is all black (0 0 0). But this is just a guess and if I did not hit, please - send a gdalinfo report of one image - send the command you used for tiling - send the LAYER definition you have used in the mapfile -Jukka Rahkonen- -----Alkuper?inen viesti----- L?hett?j?: mapserver-users-bounces at lists.osgeo.org puolesta: ecodavid at rci.rutgers.edu L?hetetty: la 23.10.2010 21:04 Vastaanottaja: mapserver-users at lists.osgeo.org Aihe: [mapserver-users] Problem loading geotifs I am trying to add Landsat7 images to my mapserver project. I have downloaded the images in geotif format from the USGS. These images correspond to a rectangular snapshot over the region. Since multiple geotiffs are needed to cover my region, I am tiling the images using gdal. Here is the problem I am having: The geotiffs render only partially. For example, the top half of the image will render, and the bottom half will not. I have opened the geotiff files in several image editors and can view the entire region, so I am assuming that the problem is somewhere in the Mapserver rendering. Also, I have tried inserting the image directly (i.e. not using tiling) and get the same result. Can anyone help me out? _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From Jukka.Rahkonen at mmmtike.fi Sat Oct 23 14:19:31 2010 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Sun, 24 Oct 2010 00:19:31 +0300 Subject: [mapserver-users] Problem loading geotifs References: <4CC34AB6.7040100@rci.rutgers.edu> Message-ID: Hi, Looks quite normal to me, odd. Two things to test, though - Is the output OK if you use one single image as an input instead of tileindex? - What does the output look like without OFFSITE? Your images have just one band, I do not know if OFFSITE should be given just as "0" in that case. I have used successfully Landsat imagegy covering whole Finland (close to 200 images in 7-band JPEG2000 or GeoTIFF format) through tileindex so I know it is possible but it was a few years ago. Perhaps I can find my old mapfile next week. -Jukka- -----Alkuper?inen viesti----- L?hett?j?: David Hill [mailto:ecodavid at rci.rutgers.edu] L?hetetty: la 23.10.2010 23:51 Vastaanottaja: Rahkonen Jukka; mapserver-users at lists.osgeo.org Aihe: Re: [mapserver-users] Problem loading geotifs I am already using offsite to remove black (0,0,0) from the image. But I don't think the problem is not caused by overlaps in the tiles because it happens if I only use one tile. The gdalinfo is: Driver: GTiff/GeoTIFF Files: p013r032_7p20001020_z18_nn80.tif Size is 17480, 15488 Coordinate System is: PROJCS["WGS 84 / UTM zone 18N", GEOGCS["WGS 84", DATUM["WGS_1984", SPHEROID["WGS 84",6378137,298.257223563, AUTHORITY["EPSG","7030"]], AUTHORITY["EPSG","6326"]], PRIMEM["Greenwich",0], UNIT["degree",0.0174532925199433], AUTHORITY["EPSG","4326"]], PROJECTION["Transverse_Mercator"], PARAMETER["latitude_of_origin",0], PARAMETER["central_meridian",-75], PARAMETER["scale_factor",0.9996], PARAMETER["false_easting",500000], PARAMETER["false_northing",0], UNIT["metre",1, AUTHORITY["EPSG","9001"]], AUTHORITY["EPSG","32618"]] Origin = (514189.875000000000000,4576366.125000000000000) Pixel Size = (14.250000000000000,-14.250000000000000) Metadata: TIFFTAG_XRESOLUTION=72 TIFFTAG_YRESOLUTION=72 TIFFTAG_RESOLUTIONUNIT=2 (pixels/inch) AREA_OR_POINT=Point Image Structure Metadata: INTERLEAVE=BAND Corner Coordinates: Upper Left ( 514189.875, 4576366.125) Lower Left ( 514189.875, 4355662.125) Upper Right ( 763279.875, 4576366.125) Lower Right ( 763279.875, 4355662.125) Center ( 638734.875, 4466014.125) Band 1 Block=17480x1 Type=Byte, ColorInterp=Gray I am tiling by using gdaltindex to create a shapefile of the tiles using a command similar to gdaltindex tile.shp *.tif The layer definition is LAYER NAME "landsat" METADATA "wcs_label" "Landsat 7" "wcs_rangeset_name" "Range 1" "wcs_rangeset_label" "My Label" END STATUS OFF TYPE RASTER TILEINDEX "data/Landsat/ETM/band8/subtiles/tindex.shp" TILEITEM "LOCATION" OFFSITE 0 0 0 PROJECTION # UTM zone 18 "init=epsg:26918" END DUMP TRUE END I thought the problem might be caused by the size of the tif files, so I used gdal_translate to subset the tif files. I tried it for one landsat image. The result was the same. The top half of the image renders and the bottom half of the image does not. I tried multiple subset sizes ranging from 15x15 which reduces the file size to less than 1% to 1x1 which is the original size. The result is that the bottom half of the image won't render in Mapserver. I attached two images of the problem to this email. error_originalresolution.png This file shows a single landsat7 geotif as downloaded from the USGS archive. The pixels it is easy to see that there is a horizontal line running across the pixel which is not in the same coordinate plane as the image. Offsite is turned on, so the bottom half of the pixel renders as transparent. error_with_subtiles.png this files shows data from the same landsat7 image as the prior image. However, these data were rendered in Mapserver by first dividing the original pixel into 15x15 subtiles and plotting them. Only half of each subtile renders. This leads to a banded appearance. I've also noticed that each time I render the data using Mapserver, the affected region is slightly different. Thanks for the Help! On 10/23/2010 3:38 PM, Rahkonen Jukka wrote: > Hi, > > My guess is that the data area of your Landsat images are not North-South oriented and they have triangular no-data areas in the corners. Adjacent images are overlapping when you view them together and no-data area from one image is covering the real data of the image underneath. The cure is to use OFFSITE in the mapfile to tell what pixel value should be made transparent. No-data value is often stored in the geotiff metadata and you can check it with gdalinfo. Perhaps most often it is all black (0 0 0). But this is just a guess and if I did not hit, please > - send a gdalinfo report of one image > - send the command you used for tiling > - send the LAYER definition you have used in the mapfile > > -Jukka Rahkonen- > > > -----Alkuper?inen viesti----- > L?hett?j?: mapserver-users-bounces at lists.osgeo.org puolesta: ecodavid at rci.rutgers.edu > L?hetetty: la 23.10.2010 21:04 > Vastaanottaja: mapserver-users at lists.osgeo.org > Aihe: [mapserver-users] Problem loading geotifs > > I am trying to add Landsat7 images to my mapserver project. I have > downloaded the images in geotif format from the USGS. These images > correspond to a rectangular snapshot over the region. Since multiple > geotiffs are needed to cover my region, I am tiling the images using gdal. > > Here is the problem I am having: The geotiffs render only partially. For > example, the top half of the image will render, and the bottom half will > not. I have opened the geotiff files in several image editors and can > view the entire region, so I am assuming that the problem is somewhere in > the Mapserver rendering. Also, I have tried inserting the image directly > (i.e. not using tiling) and get the same result. > > Can anyone help me out? > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From ecodavid at rci.rutgers.edu Sat Oct 23 17:54:24 2010 From: ecodavid at rci.rutgers.edu (ecodavid at rci.rutgers.edu) Date: Sat, 23 Oct 2010 20:54:24 -0400 (EDT) Subject: [mapserver-users] Problem loading geotifs In-Reply-To: References: <4CC34AB6.7040100@rci.rutgers.edu> Message-ID: Jukka, When I open the image in an image viewer, there is twice as much spatial coverage as is being rendered by Mapserver. So something is definately wrong. The output from mapserver (i.e. rendering only the northern half of the image) is the same whether or not I use tileindex. If I don't use OFFSITE then the area around the image is colored black. This black region covers the areas that are out of range of the satellite granule as well as the parts of the image that are not being rendered properly by Mapserver. These are monochrome images. I'll try using just 0 for offsite and see what happens. David > Hi, > > Looks quite normal to me, odd. Two things to test, though > - Is the output OK if you use one single image as an input instead of > tileindex? > - What does the output look like without OFFSITE? Your images have just > one band, I do not know if OFFSITE should be given just as "0" in that > case. > > I have used successfully Landsat imagegy covering whole Finland (close to > 200 images in 7-band JPEG2000 or GeoTIFF format) through tileindex so I > know it is possible but it was a few years ago. Perhaps I can find my old > mapfile next week. > > -Jukka- > > > -----Alkuper?inen viesti----- > L?hett?j?: David Hill [mailto:ecodavid at rci.rutgers.edu] > L?hetetty: la 23.10.2010 23:51 > Vastaanottaja: Rahkonen Jukka; mapserver-users at lists.osgeo.org > Aihe: Re: [mapserver-users] Problem loading geotifs > > I am already using offsite to remove black (0,0,0) from the image. > But I don't think the problem is not caused by overlaps in the tiles > because it happens if I only use one tile. > > The gdalinfo is: > Driver: GTiff/GeoTIFF > Files: p013r032_7p20001020_z18_nn80.tif > Size is 17480, 15488 > Coordinate System is: > PROJCS["WGS 84 / UTM zone 18N", > GEOGCS["WGS 84", > DATUM["WGS_1984", > SPHEROID["WGS 84",6378137,298.257223563, > AUTHORITY["EPSG","7030"]], > AUTHORITY["EPSG","6326"]], > PRIMEM["Greenwich",0], > UNIT["degree",0.0174532925199433], > AUTHORITY["EPSG","4326"]], > PROJECTION["Transverse_Mercator"], > PARAMETER["latitude_of_origin",0], > PARAMETER["central_meridian",-75], > PARAMETER["scale_factor",0.9996], > PARAMETER["false_easting",500000], > PARAMETER["false_northing",0], > UNIT["metre",1, > AUTHORITY["EPSG","9001"]], > AUTHORITY["EPSG","32618"]] > Origin = (514189.875000000000000,4576366.125000000000000) > Pixel Size = (14.250000000000000,-14.250000000000000) > Metadata: > TIFFTAG_XRESOLUTION=72 > TIFFTAG_YRESOLUTION=72 > TIFFTAG_RESOLUTIONUNIT=2 (pixels/inch) > AREA_OR_POINT=Point > Image Structure Metadata: > INTERLEAVE=BAND > Corner Coordinates: > Upper Left ( 514189.875, 4576366.125) > Lower Left ( 514189.875, 4355662.125) > Upper Right ( 763279.875, 4576366.125) > Lower Right ( 763279.875, 4355662.125) > Center ( 638734.875, 4466014.125) > Band 1 Block=17480x1 Type=Byte, ColorInterp=Gray > > I am tiling by using > gdaltindex to create a shapefile of the tiles using a command similar to > gdaltindex tile.shp *.tif > > The layer definition is > LAYER > NAME "landsat" > METADATA > "wcs_label" "Landsat 7" > "wcs_rangeset_name" "Range 1" > "wcs_rangeset_label" "My Label" > END > STATUS OFF > TYPE RASTER > TILEINDEX "data/Landsat/ETM/band8/subtiles/tindex.shp" > TILEITEM "LOCATION" > OFFSITE 0 0 0 > > PROJECTION > # UTM zone 18 > "init=epsg:26918" > END > > DUMP TRUE > END > > I thought the problem might be caused by the size of the tif files, so I > used gdal_translate to subset the tif files. I tried it for one landsat > image. The result was the same. The top half of the image renders and > the bottom half of the image does not. I tried multiple subset sizes > ranging from 15x15 which reduces the file size to less than 1% to 1x1 > which is the original size. The result is that the bottom half of the > image won't render in Mapserver. > > I attached two images of the problem to this email. > error_originalresolution.png This file shows a single landsat7 geotif > as downloaded from the USGS archive. The pixels it is easy to see that > there is a horizontal line running across the pixel which is not in the > same coordinate plane as the image. Offsite is turned on, so the bottom > half of the pixel renders as transparent. > > error_with_subtiles.png this files shows data from the same landsat7 > image as the prior image. However, these data were rendered in > Mapserver by first dividing the original pixel into 15x15 subtiles and > plotting them. Only half of each subtile renders. This leads to a > banded appearance. > > I've also noticed that each time I render the data using Mapserver, the > affected region is slightly different. > > Thanks for the Help! > > > On 10/23/2010 3:38 PM, Rahkonen Jukka wrote: >> Hi, >> >> My guess is that the data area of your Landsat images are not >> North-South oriented and they have triangular no-data areas in the >> corners. Adjacent images are overlapping when you view them together >> and no-data area from one image is covering the real data of the image >> underneath. The cure is to use OFFSITE in the mapfile to tell what pixel >> value should be made transparent. No-data value is often stored in the >> geotiff metadata and you can check it with gdalinfo. Perhaps most often >> it is all black (0 0 0). But this is just a guess and if I did not hit, >> please >> - send a gdalinfo report of one image >> - send the command you used for tiling >> - send the LAYER definition you have used in the mapfile >> >> -Jukka Rahkonen- >> >> >> -----Alkuper?inen viesti----- >> L?hett?j?: mapserver-users-bounces at lists.osgeo.org puolesta: >> ecodavid at rci.rutgers.edu >> L?hetetty: la 23.10.2010 21:04 >> Vastaanottaja: mapserver-users at lists.osgeo.org >> Aihe: [mapserver-users] Problem loading geotifs >> >> I am trying to add Landsat7 images to my mapserver project. I have >> downloaded the images in geotif format from the USGS. These images >> correspond to a rectangular snapshot over the region. Since multiple >> geotiffs are needed to cover my region, I am tiling the images using >> gdal. >> >> Here is the problem I am having: The geotiffs render only partially. >> For >> example, the top half of the image will render, and the bottom half will >> not. I have opened the geotiff files in several image editors and can >> view the entire region, so I am assuming that the problem is somewhere >> in >> the Mapserver rendering. Also, I have tried inserting the image >> directly >> (i.e. not using tiling) and get the same result. >> >> Can anyone help me out? >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> > > From trood3 at comcast.net Sat Oct 23 21:19:35 2010 From: trood3 at comcast.net (Tim Rood) Date: Sat, 23 Oct 2010 21:19:35 -0700 Subject: [mapserver-users] Really New User Issue Message-ID: <001101cb7332$ab2440f0$016cc2d0$@net> Hello, For context, I assume I have the latest MapServer version, downloaded October 3. Also, I'm pretty familiar with desktop GIS, but unschooled with web and map server use. Installation and first tutorial section went well. Got to Example 2-1: Example 2.1 - Pan and Zoom Controls (teaches click on map to pan, etc.) and pan/zoom page opens with map. OK. But here's the problem: the mapfile, (name: Example2.map. "type: map_auto_file" [new type to me]) from demo.mapfile.org wants to be opened or saved every time I click on the map to pan. I expected the link above to run the local mapfile---and not open it either. I don't understand the behavior I'm seeing. What basic point am I missing? Thanks, Tim -------------- next part -------------- An HTML attachment was scrubbed... URL: From sebastian.ovide at gmail.com Sun Oct 24 12:42:41 2010 From: sebastian.ovide at gmail.com (Sebastian E. Ovide) Date: Sun, 24 Oct 2010 20:42:41 +0100 Subject: [mapserver-users] Really New User Issue In-Reply-To: <001101cb7332$ab2440f0$016cc2d0$@net> References: <001101cb7332$ab2440f0$016cc2d0$@net> Message-ID: what do you get if you go to *http://localhost/cgi-bin/mapserv * ? On Sun, Oct 24, 2010 at 5:19 AM, Tim Rood wrote: > Hello, > > > > For context, I assume I have the latest MapServer version, downloaded > October 3. > > > > Also, I?m pretty familiar with desktop GIS, but unschooled with web and map > server use. > > > > Installation and first tutorial section went well. > > Got to Example 2-1: Example 2.1 - Pan and Zoom Controls(teaches click on map to pan, etc.) and > pan/zoom page opens with map. OK. > > *But here?s the problem:* > > * * > > *the mapfile, (name: Example2.map. ?type: map_auto_file? [new type to me]) > from demo.mapfile.org * > > * * > > *wants to be opened or saved every time I click on the map to pan. * > > * * > > I expected the link above to run the local mapfile---and not open it > either. > > > > I don?t understand the behavior I?m seeing. What basic point am I missing? > > > > Thanks, > > > > Tim > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -- Sebastian E. Ovide -------------- next part -------------- An HTML attachment was scrubbed... URL: From jrguerra at gmv.com Mon Oct 25 02:55:44 2010 From: jrguerra at gmv.com (=?iso-8859-1?Q?Joaqu=EDn_Rodriguez-Guerra_Urcelay?=) Date: Mon, 25 Oct 2010 11:55:44 +0200 Subject: [mapserver-users] Dinamic SLD style Message-ID: <4E70D1E8680D584198DDB55BD65220B36B3FD9AE86@GMVMAIL5.gmv.es> Hello, I am trying to create a dinamic sld style for a shapefile in mapserver. I come from geoserver, and I was wondering if there was any way to use properties of the shapefile in the sld style, as in the example below where points in the shapefile with tipo=3 are represented with a ship3.png rotated COG deegrees. Is this possible in mapserver? Thanks for your help! ship3 Tipo 3 image/png 16 COG Joaqu?n Rodr?guez-Guerra Urcelay ______________________ This message including any attachments may contain confidential information, according to our Information Security Management System, and intended solely for a specific individual to whom they are addressed. Any unauthorised copy, disclosure or distribution of this message is strictly forbidden. If you have received this transmission in error, please notify the sender immediately and delete it. ______________________ Este mensaje, y en su caso, cualquier fichero anexo al mismo, puede contener informacion clasificada por su emisor como confidencial en el marco de su Sistema de Gestion de Seguridad de la Informacion siendo para uso exclusivo del destinatario, quedando prohibida su divulgacion copia o distribucion a terceros sin la autorizacion expresa del remitente. Si Vd. ha recibido este mensaje erroneamente, se ruega lo notifique al remitente y proceda a su borrado. Gracias por su colaboracion. ______________________ From yassefa at dmsolutions.ca Mon Oct 25 06:29:22 2010 From: yassefa at dmsolutions.ca (Yewondwossen Assefa) Date: Mon, 25 Oct 2010 09:29:22 -0400 Subject: [mapserver-users] Dinamic SLD style In-Reply-To: <4E70D1E8680D584198DDB55BD65220B36B3FD9AE86@GMVMAIL5.gmv.es> References: <4E70D1E8680D584198DDB55BD65220B36B3FD9AE86@GMVMAIL5.gmv.es> Message-ID: <4CC58632.4040002@dmsolutions.ca> Hi there, It is possible to do attribute binding on some elements but It was not implemented for the Graphic symbol property name. I have added that support in trunk. It is described in the bug 3586 [1]. You might want to add your name to that bug and comment on it. regards, [1]: http://trac.osgeo.org/mapserver/ticket/3586 On 25/10/2010 5:55 AM, Joaqu?n Rodriguez-Guerra Urcelay wrote: > Hello, I am trying to create a dinamic sld style for a shapefile in mapserver. I come from geoserver, and I was wondering if there was any way to use properties of the shapefile in the sld style, as in the example below where points in the shapefile with tipo=3 are represented with a ship3.png rotated COG deegrees. Is this possible in mapserver? Thanks for your help! > > > ship3 > > > Tipo > 3 > > > > > > xlink:type="simple" > xlink:href="ships/ship3.png" /> > image/png > > 16 > COG > > > > > Joaqu?n Rodr?guez-Guerra Urcelay > > ______________________ > This message including any attachments may contain confidential > information, according to our Information Security Management System, > and intended solely for a specific individual to whom they are addressed. > Any unauthorised copy, disclosure or distribution of this message > is strictly forbidden. If you have received this transmission in error, > please notify the sender immediately and delete it. > > ______________________ > Este mensaje, y en su caso, cualquier fichero anexo al mismo, > puede contener informacion clasificada por su emisor como confidencial > en el marco de su Sistema de Gestion de Seguridad de la > Informacion siendo para uso exclusivo del destinatario, quedando > prohibida su divulgacion copia o distribucion a terceros sin la > autorizacion expresa del remitente. Si Vd. ha recibido este mensaje > erroneamente, se ruega lo notifique al remitente y proceda a su borrado. > Gracias por su colaboracion. > > ______________________ > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: yassefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- From jmckenna at gatewaygeomatics.com Mon Oct 25 06:45:46 2010 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Mon, 25 Oct 2010 10:45:46 -0300 Subject: [mapserver-users] MapServer Windows7 EasyPHP setup In-Reply-To: References: Message-ID: <4CC58A0A.2040401@gatewaygeomatics.com> On 10-10-22 8:25 AM, greg.luker at scu.edu.au wrote: > Hi MapServers, > > I have a new computer with Windows 7 Pro (64-bit), on which I'd like to > get MapServer running. I have installed EasyPHP-5.3.3 (because I heard > it worked on Win7), and so I have Apache, PHP and MySQL running. I > downloaded ms4w_3.0_beta11 and copied the entire cgi-bin directory into > the EasyPHP home directory. I started MapServer but got a message: > > msProcessProjection(): Projection library error. major axis or radius = > 0 or not given > > I guess there are quite a few configuration settings that I haven't set > yet. Is it worth persevering with EasyPHP, or does ms4w work on Win7, > and therefore should I just uninstall EasyPHP (and Apache, PHP and > MySQL) and install ms4w? Hi Greg, MS4W should have no problems running on Windows7. Yes MS4W does configure Apache and PHP for use with MapServer. I recommend that you try the MS4W package, and then if you run into any questions jump on over to the MS4W users mailing list and fire your questions there (subscribe at http://lists.maptools.org/mailman/listinfo/ms4w-users). I don't know the EasyPHP package, but for sure MS4W does not contain MySQL; but MapServer in MS4W is configured to read/write MySQL. Thanks. -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ From jmckenna at gatewaygeomatics.com Mon Oct 25 07:08:32 2010 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Mon, 25 Oct 2010 11:08:32 -0300 Subject: [mapserver-users] Really New User Issue In-Reply-To: <001101cb7332$ab2440f0$016cc2d0$@net> References: <001101cb7332$ab2440f0$016cc2d0$@net> Message-ID: <4CC58F60.2000903@gatewaygeomatics.com> On 10-10-24 1:19 AM, Tim Rood wrote: > Hello, > > For context, I assume I have the latest MapServer version, downloaded > October 3. > > Also, I?m pretty familiar with desktop GIS, but unschooled with web and > map server use. > > Installation and first tutorial section went well. > > Got to Example 2-1: Example 2.1 - Pan and Zoom Controls > > (teaches click on map to pan, etc.) and pan/zoom page opens with map. OK. > > *But here?s the problem:* > > ** > > *the mapfile, (name: Example2.map. ?type: map_auto_file? [new type to > me]) from demo.mapfile.org * > > ** > > *wants to be opened or saved every time I click on the map to pan. * > > ** > > I expected the link above to run the local mapfile---and not open it > either. > > I don?t understand the behavior I?m seeing. What basic point am I missing? > > Thanks, > Hi Tim, Welcome to MapServer! The MapServer tutorial that you downloaded should work out of the box if you are using MS4W on Windows (extract the tutorial contents to the same MS4W drive root and restart Apache). If you are not using MS4W then you would have to configure each tutorial example (in your case example2-1.html, example2-1.map, and example2.1-template.html). For example, if you were using Unix, you will notice that in example2-1_template.html that "/cgi-bin/mapserv.exe" would need updating. -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ From carter.sharon017 at gmail.com Mon Oct 25 10:21:38 2010 From: carter.sharon017 at gmail.com (Sharon Carter) Date: Mon, 25 Oct 2010 11:21:38 -0600 Subject: [mapserver-users] Problems with AGG rendering Message-ID: Hello, We have been working with mapserver for a while and now we are updating our map. We decided to give AGG a try for this new version but we have been having some troubles setting it up to work properly. When we moved from GD to AGG the map starting showing areas with different colors than the ones specified in the map file. Here we have an image with the rendering with GD http://67.23.24.210/mapserver/gd.png And one with AGG http://67.23.24.210/mapserver/agg.png The output format for AGG we are using is OUTPUTFORMAT NAME 'PNG' DRIVER AGG/PNG IMAGEMODE RGBA MIMETYPE "image/png;mode=24bit" FORMATOPTION "FORMAT=image/png" END The street lines are painted using a symbol to create the outline for the streets. Any ideas what could be causing this? Thanks Sharon -------------- next part -------------- An HTML attachment was scrubbed... URL: From ecodavid at rci.rutgers.edu Mon Oct 25 11:28:15 2010 From: ecodavid at rci.rutgers.edu (David Hill) Date: Mon, 25 Oct 2010 14:28:15 -0400 Subject: [mapserver-users] Problem loading geotifs In-Reply-To: References: Message-ID: <4CC5CC3F.3080100@rci.rutgers.edu> I solved the problem by reinstalling all of the required libraries and mapserver itself. On 10/23/2010 2:04 PM, ecodavid at rci.rutgers.edu wrote: > I am trying to add Landsat7 images to my mapserver project. I have > downloaded the images in geotif format from the USGS. These images > correspond to a rectangular snapshot over the region. Since multiple > geotiffs are needed to cover my region, I am tiling the images using gdal. > > Here is the problem I am having: The geotiffs render only partially. For > example, the top half of the image will render, and the bottom half will > not. I have opened the geotiff files in several image editors and can > view the entire region, so I am assuming that the problem is somewhere in > the Mapserver rendering. Also, I have tried inserting the image directly > (i.e. not using tiling) and get the same result. > > Can anyone help me out? > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From gluker at scu.edu.au Mon Oct 25 14:17:03 2010 From: gluker at scu.edu.au (Greg Luker) Date: Tue, 26 Oct 2010 08:17:03 +1100 Subject: [mapserver-users] MapServer Windows7 EasyPHP setup In-Reply-To: <4CC58A0A.2040401@gatewaygeomatics.com> References: <4CC58A0A.2040401@gatewaygeomatics.com> Message-ID: <201010252117.o9PLH41C031013@atom.scu.edu.au> Hi Jeff, At 12:45 AM 26/10/2010, you wrote: >MS4W should have no problems running on Windows7. Yes MS4W does >configure Apache and PHP for use with MapServer. I recommend that >you try the MS4W package, and then if you run into any questions >jump on over to the MS4W users mailing list and fire your questions >there (subscribe at http://lists.maptools.org/mailman/listinfo/ms4w-users). Thanks, I've got it working now. I originally tried EasyPHP because MS4W had problems on a colleagues Win7 system. I successfully installed MS4W and MySQL (both worked separately), but initially had problems with browser access to MySQL (eg with phpmyadmin) that were cured when I fixed a Win7 curiosity - C:\Windows\System32\drivers\etc\hosts requires the 127.0.0.1 localhost line to be un-commented (which used to be the default on older windows versions). Thanks, Greg. Greg Luker GIS Lab Manager Southern Cross University AUSTRALIA 61 2 66203026 From dmorissette at mapgears.com Mon Oct 25 17:48:54 2010 From: dmorissette at mapgears.com (Daniel Morissette) Date: Mon, 25 Oct 2010 20:48:54 -0400 Subject: [mapserver-users] Best way to store ArcInfo annotations in PostGIS? In-Reply-To: References: Message-ID: <4CC62576.80806@mapgears.com> Martin, Only some benchmarks could tell us for sure, but I don't imagine that option 1 would be that much slower than option 2, if it's slower at all. Once the text has been stroked in option 2, you cannot change its style or size any more. OTOH, with #1 you keep all that flexibility. Personally I'd go with #1 unless you can verify with some tests that #2 is really faster, and if that's the case we'd like to hear back from you and find out more. Daniel Martin Ouellet wrote: > Hi all, > > I see 2 ways for doing that: > 1) store the centroid (as a point geometry), rotation, text and maybe > the size of the annotation in my postgis table > > 2) using FME transformer (TextStroker), I can convert the annotation as > a multi-polygone or polyline directly. Playing with the font and some > offset parameter, the result is pretty amazing (when I overlap the > annotation and the geometry generated by the transformer) > > In a WMS map rendering point of view: > Q1: I presume that the solution #2 will be much faster than rendering ? > label based on a point, rotation and text? > > Q2: beside the limitation of solution #2 (cannot change font, size or > position of the text (geometry), is there others importants limitations > that I forgot? > > Q3: Any recommendations? > > cheers! > > MartinOuellet > > > ------------------------------------------------------------------------ > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Daniel Morissette http://www.mapgears.com/ From dbee_kawai at yahoo.com Mon Oct 25 20:29:49 2010 From: dbee_kawai at yahoo.com (elisabeth theresia) Date: Mon, 25 Oct 2010 20:29:49 -0700 (PDT) Subject: [mapserver-users] MapServer Windows7 EasyPHP setup In-Reply-To: <4CC58A0A.2040401@gatewaygeomatics.com> References: <4CC58A0A.2040401@gatewaygeomatics.com> Message-ID: <497615.84135.qm@web58007.mail.re3.yahoo.com> Subject: Re: [mapserver-users] MapServer Windows7 EasyPHP setup On 10-10-22 8:25 AM, greg.luker at scu.edu.au wrote: > Hi MapServers, > > I have a new computer with Windows 7 Pro (64-bit), on which I'd like to > get MapServer running. I have installed EasyPHP-5.3.3 (because I heard > it worked on Win7), and so I have Apache, PHP and MySQL running. I > downloaded ms4w_3.0_beta11 and copied the entire cgi-bin directory into > the EasyPHP home directory. I started MapServer but got a message: > > msProcessProjection(): Projection library error. major axis or radius = > 0 or not given > > I guess there are quite a few configuration settings that I haven't set > yet. Is it worth persevering with EasyPHP, or does ms4w work on Win7, > and therefore should I just uninstall EasyPHP (and Apache, PHP and > MySQL) and install ms4w? ===================================================== Hello Mr. Greg, i ever met that problem too, i thought MS4W current version (i used old version) can't work in Win 7 (64-bit) if (32-bit) maybe it work. Then, i change OS in different laptop (because my laptop 64-bit) to Win XP for save work :D i hope can help :) -Theresia. _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From dbee_kawai at yahoo.com Mon Oct 25 22:31:09 2010 From: dbee_kawai at yahoo.com (elisabeth theresia) Date: Mon, 25 Oct 2010 22:31:09 -0700 (PDT) Subject: [mapserver-users] MapServer Windows7 EasyPHP setup In-Reply-To: <201010260415.o9Q4FFVV014333@atom.scu.edu.au> References: <4CC58A0A.2040401@gatewaygeomatics.com> <497615.84135.qm@web58007.mail.re3.yahoo.com> <201010260415.o9Q4FFVV014333@atom.scu.edu.au> Message-ID: <495147.75207.qm@web58004.mail.re3.yahoo.com> >Thanks for your suggestion. I have installed MS4W on Win7 (64-bit) and found that it works fine. I had another problem with MySQL, that was fixed by editing the file C:\Windows\System32\drivers\etc\hosts to: 127.0.0.1 localhost So MS4W does work on Win7 (64-bit)! --------------------------------------------------------------------- That's sounds good Mr Greg, now i say thanks for you, someday i will try MS4W in Win 7. :D -Theresia -------------- next part -------------- An HTML attachment was scrubbed... URL: From jack.morisson at mail.com Tue Oct 26 00:37:45 2010 From: jack.morisson at mail.com (jack.morisson at mail.com) Date: Tue, 26 Oct 2010 03:37:45 -0400 Subject: [mapserver-users] OGR data connection keeps failing Message-ID: <8CD42F7D0ACE70A-19A8-6001@web-mmc-d04.sysops.aol.com> Hi all, I'm trying to color polygons based on a value in another dbf file. The temp.dbf/shp contains my geometries, while the mine.dbf contains the same polygon_id field, as well as a field 'color'. However, the join itself is already failing. Here's what i'm doing: C:\DEVELOPMENT>shp2img -m train.map -o test.png -all_debug 5 OGR: OGROpen(C:\DEVELOPMENT/.\data/temp.dbf/033B5A88) succeeded as ESRI Shapefile. OGR: OGROpen(data/mine.dbf/03DF3EC0) succeeded as ESRI Shapefile. OGR: ReleaseDataSource(data/mine.dbf/03DF3EC0) dereferenced and now destroying. msDrawMap(): Image handling error. Failed to draw layer named 'MyJoins'.
msOGRFileOpen(): OGR error. ExecuteSQL(SELECT * FROM temp LEFT JOIN 'data/mine.dbf'.mine ON mine.POLYGON_ID = 'temp.POLYGON_ID' ) failed. SQL: Unrecognised primary field mine.POLYGON_ID in JOIN clause..
Here's my OGR section in the mapfile: CONNECTIONTYPE OGR CONNECTION "data/temp.dbf" DATA "SELECT * FROM temp LEFT JOIN 'data/mine.dbf'.mine ON mine.POLYGON_ID = 'temp.POLYGON_ID' " I tried all variants with quotes, and also switching the mine.polygonid with the temp.polygonid, but they keep failing. I've seen examples on this mailing list and on the web, and as far as I can tell, this is all correct and should work. But perhaps I'm in need of glasses :o) As for version information, I'm using the latest version of MS4W. C:\ms4w>ogr2ogr --version GDAL 1.7.1, released 2010/02/08 MapServer version 5.6.3 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=PDF OUTPUT=SWF OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=ICO NV SUPPORTS=FRIBIDI SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=SOS_SERVER SUPPORTS=FASTCGI SUP PORTS=THREADS SUPPORTS=GEOS SUPPORTS=RGBA_PNG SUPPORTS=TILECACHE INPUT=JPEG INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE If i load the shapefiles without the join, everything works ok. So it is safe to assume that the problem does not reside in my shapefiles or my mapfile. dbfdump clearly shows the field POLYGON_ID in both dbf files. Thanks. -------------- next part -------------- An HTML attachment was scrubbed... URL: From thomas.bonfort at gmail.com Tue Oct 26 01:17:05 2010 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Tue, 26 Oct 2010 10:17:05 +0200 Subject: [mapserver-users] Problems with AGG rendering In-Reply-To: References: Message-ID: Rendering thick lines is done without symbols with agg (and GD with recent versions of mapserver to, I believe) for an outlined line, you use: CLASS STYLE COLOR outlinecolor WIDTH 5 END STYLE COLOR fillcolor WIDTH 3 #width of the first style minus 2 times the desired outline width END END regards, thomas On Mon, Oct 25, 2010 at 19:21, Sharon Carter wrote: > Hello, > > We have been working with mapserver for a while and now we are updating our > map. We decided to give AGG a try for this new version but we have been > having some troubles setting it up to work properly. > > When we moved from GD to AGG the map starting showing areas with different > colors than the ones specified in the map file. > > Here we have an image with the rendering with GD > http://67.23.24.210/mapserver/gd.png > > And one with AGG? http://67.23.24.210/mapserver/agg.png > > > The output format for AGG we are using is > > OUTPUTFORMAT > ??? NAME? 'PNG' > ??? DRIVER AGG/PNG > ??? IMAGEMODE RGBA > ??? MIMETYPE "image/png;mode=24bit" > ??? FORMATOPTION "FORMAT=image/png" > END > > > The street lines are painted using a symbol to create the outline for the > streets. > > Any ideas what could be causing this? > > Thanks > > Sharon > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > From jmckenna at gatewaygeomatics.com Tue Oct 26 04:48:42 2010 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Tue, 26 Oct 2010 08:48:42 -0300 Subject: [mapserver-users] MapServer Windows7 EasyPHP setup In-Reply-To: <495147.75207.qm@web58004.mail.re3.yahoo.com> References: <4CC58A0A.2040401@gatewaygeomatics.com> <497615.84135.qm@web58007.mail.re3.yahoo.com> <201010260415.o9Q4FFVV014333@atom.scu.edu.au> <495147.75207.qm@web58004.mail.re3.yahoo.com> Message-ID: <4CC6C01A.3040605@gatewaygeomatics.com> > > That's sounds good Mr Greg, > now i say thanks for you, someday i will try MS4W in Win 7. > :D > > -Theresia > and feel free to send your feedback and questions to the MS4W email list (subscribe at http://lists.maptools.org/mailman/listinfo/ms4w-users). -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ From dbee_kawai at yahoo.com Tue Oct 26 06:02:39 2010 From: dbee_kawai at yahoo.com (elisabeth theresia) Date: Tue, 26 Oct 2010 06:02:39 -0700 (PDT) Subject: [mapserver-users] MapServer Windows7 EasyPHP setup In-Reply-To: <4CC6C01A.3040605@gatewaygeomatics.com> References: <4CC58A0A.2040401@gatewaygeomatics.com> <497615.84135.qm@web58007.mail.re3.yahoo.com> <201010260415.o9Q4FFVV014333@atom.scu.edu.au> <495147.75207.qm@web58004.mail.re3.yahoo.com> <4CC6C01A.3040605@gatewaygeomatics.com> Message-ID: <241261.19348.qm@web58006.mail.re3.yahoo.com> > > That's sounds good Mr Greg, > now i say thanks for you, someday i will try MS4W in Win 7. > :D > > -Theresia > >and feel free to send your feedback and questions to the MS4W email list >(subscribe at http://lists.maptools.org/mailman/listinfo/ms4w-users). -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ ------------------------------------------------------------------------------------------------ of course Mr. Jeff, if i got troubles i always ask in this forum and i always get answers too, Really good peoples in here. Thanks all. -Theresia. _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From geomartino at gmail.com Tue Oct 26 06:54:56 2010 From: geomartino at gmail.com (Martin Ouellet) Date: Tue, 26 Oct 2010 09:54:56 -0400 Subject: [mapserver-users] Best way to store ArcInfo annotations in PostGIS? In-Reply-To: <4CC62576.80806@mapgears.com> References: <4CC62576.80806@mapgears.com> Message-ID: Thanks Daniel for your inputs, The beauty of the solution #2 (stroked text) is that the result is visually exactly the same than the annotation layer in ArcInfo (size, font, position, orientation, etc...). To obtain the same result with the labeling options would require a lot of tuning(adjustment in the mapfile pour each layer), but I may be wrong. I will keep all the info for both solutions (text as polygon, centroid, text, angle) so I may execute some benchmark later this fall cheers MartinO 2010/10/25 Daniel Morissette > Martin, > > Only some benchmarks could tell us for sure, but I don't imagine that > option 1 would be that much slower than option 2, if it's slower at all. > Once the text has been stroked in option 2, you cannot change its style > or size any more. OTOH, with #1 you keep all that flexibility. > Personally I'd go with #1 unless you can verify with some tests that #2 > is really faster, and if that's the case we'd like to hear back from you > and find out more. > > Daniel > > Martin Ouellet wrote: > > Hi all, > > > > I see 2 ways for doing that: > > 1) store the centroid (as a point geometry), rotation, text and maybe > > the size of the annotation in my postgis table > > > > 2) using FME transformer (TextStroker), I can convert the annotation as > > a multi-polygone or polyline directly. Playing with the font and some > > offset parameter, the result is pretty amazing (when I overlap the > > annotation and the geometry generated by the transformer) > > > > In a WMS map rendering point of view: > > Q1: I presume that the solution #2 will be much faster than rendering ? > > label based on a point, rotation and text? > > > > Q2: beside the limitation of solution #2 (cannot change font, size or > > position of the text (geometry), is there others importants limitations > > that I forgot? > > > > Q3: Any recommendations? > > > > cheers! > > > > MartinOuellet > > > > > > ------------------------------------------------------------------------ > > > > _______________________________________________ > > mapserver-users mailing list > > mapserver-users at lists.osgeo.org > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > -- > Daniel Morissette > http://www.mapgears.com/ > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -------------- next part -------------- An HTML attachment was scrubbed... URL: From nikos at maich.gr Tue Oct 26 07:48:07 2010 From: nikos at maich.gr (nikos at maich.gr) Date: Tue, 26 Oct 2010 17:48:07 +0300 (EEST) Subject: [mapserver-users] Layer status on/off In-Reply-To: <20101026074325.7ECB2E01EAA@lists.osgeo.org> References: <20101026074325.7ECB2E01EAA@lists.osgeo.org> Message-ID: <1565.193.218.36.206.1288104487.squirrel@193.218.36.206> Hi, Would like to be able to display a layer, after a join w/ an external table. My definition is below.... Is this the approach? Using cgi and intend to toggle the layer on/off w/ a status parameter. Is this the usual approach, any better way to do this? I also need to display the layer in general (with out the class), along with other layers... If I'm able to toggle a class, I guess I could define define another class, e.g. "gid>0" to display the geom???? would appreciate some help.... regards, nikos pS just saw that there's a status for class objects.... STATUS [on|off] Sets the current display status of the class. Default turns the class on. ##### 2 Layer Energy crop yield LAYER METADATA 'qstring_validation_pattern' '.' END NAME "yield" CONNECTIONTYPE postgis CONNECTION "dbname=IUNG user=postgres host=localhost password=xxxx1 " DATA "the_geom FROM (SELECT landunit_karditsa.gid AS gid, landunit_karditsa.the_geom AS the_geom, perclu.cotton as cotton, perclu.encrop as encrop FROM landunit_karditsa JOIN perclu ON landunit_karditsa.gid = perclu.objectid) AS nikos_join USING UNIQUE gid USING SRID=-1" STATUS OFF TYPE POLYGON CLASSITEM 'cyna' CLASS NAME "cynara_crop" EXPRESSION ('[cyna]' == 0) STYLE backgroundcolor 0 128 128 OUTLINECOLOR 204 153 51 color 255 0 0 WIDTH 3 END END END ####End yield From MarkVolz at co.lyon.mn.us Tue Oct 26 08:28:34 2010 From: MarkVolz at co.lyon.mn.us (Mark Volz) Date: Tue, 26 Oct 2010 10:28:34 -0500 Subject: [mapserver-users] question about joining Message-ID: <3D56274B4A7874468F58FADDBFD0980109DD0793@llmhs02.r8nssis.local> Hello, I have not used the Join shapefile to database function in mapserver before. I just have a couple questions * The description explains that "It is important to understand that JOINs are ONLY available once a query has been processed. You cannot use joins to affect the look of a map." Does that mean that we can only use the joins for templates. If possible, I would like to label using a field in a joined table. * Is the following formatted correctly #CLASSITEM 'PARC_CODE' JOIN #TEST NAME "MyJoin" TABLE "LyonCounty/Parcels/test.dbf" #location of the dbf file FROM "PARCEL_ID" #shapefile field TO "PIN" #dbf field TYPE ONE-TO-ONE END #JOIN ... TEXT ("Name" * [MyJoin_MYNAME]) #label using the joined table Thanks Mark Volz GIS Specialist Lyon County, MN -------------- next part -------------- An HTML attachment was scrubbed... URL: From arnd.wippermann at web.de Tue Oct 26 09:43:22 2010 From: arnd.wippermann at web.de (Arnd Wippermann) Date: Tue, 26 Oct 2010 18:43:22 +0200 Subject: AW: [mapserver-users] OGR data connection keeps failing In-Reply-To: <8CD42F7D0ACE70A-19A8-6001@web-mmc-d04.sysops.aol.com> References: <8CD42F7D0ACE70A-19A8-6001@web-mmc-d04.sysops.aol.com> Message-ID: <3AA052B51BF145A6A5AC40BB925900C0@pcawh2> Hi, below two ways that work for me: CONNECTIONTYPE OGR CONNECTION "M:\BRD\DEU_adm1.shp" DATA "SELECT * FROM DEU_adm1 LEFT JOIN 'M:\BRD\DEU_adm1_EDICHTE.dbf'.DEU_adm1_EDICHTE ON DEU_adm1.HASC_1 = DEU_adm1_EDICHTE.HASC_1" CONNECTIONTYPE OGR CONNECTION "M:\BRD" DATA "SELECT * FROM DEU_adm1 LEFT JOIN DEU_adm1_EDICHTE ON DEU_adm1.HASC_1 = DEU_adm1_EDICHTE.HASC_1" ... CLASS NAME 'ED < 250' EXPRESSION ([ED]>100 AND [ED]<250) STYLE COLOR 254 227 145 OUTLINECOLOR 255 50 50 WIDTH 1 END END ... The layer is colored by the attribute from the dbf/table "DEU_adm1_EDICHTE" field "ED". Arnd ________________________________ Von: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] Im Auftrag von jack.morisson at mail.com Gesendet: Dienstag, 26. Oktober 2010 09:38 An: mapserver-users at lists.osgeo.org Betreff: [mapserver-users] OGR data connection keeps failing Hi all, I'm trying to color polygons based on a value in another dbf file. The temp.dbf/shp contains my geometries, while the mine.dbf contains the same polygon_id field, as well as a field 'color'. However, the join itself is already failing. Here's what i'm doing: C:\DEVELOPMENT>shp2img -m train.map -o test.png -all_debug 5 OGR: OGROpen(C:\DEVELOPMENT/.\data/temp.dbf/033B5A88) succeeded as ESRI Shapefile. OGR: OGROpen(data/mine.dbf/03DF3EC0) succeeded as ESRI Shapefile. OGR: ReleaseDataSource(data/mine.dbf/03DF3EC0) dereferenced and now destroying. msDrawMap(): Image handling error. Failed to draw layer named 'MyJoins'.
msOGRFileOpen(): OGR error. ExecuteSQL(SELECT * FROM temp LEFT JOIN 'data/mine.dbf'.mine ON mine.POLYGON_ID = 'temp.POLYGON_ID' ) failed. SQL: Unrecognised primary field mine.POLYGON_ID in JOIN clause..
Here's my OGR section in the mapfile: CONNECTIONTYPE OGR CONNECTION "data/temp.dbf" DATA "SELECT * FROM temp LEFT JOIN 'data/mine.dbf'.mine ON mine.POLYGON_ID = 'temp.POLYGON_ID' " I tried all variants with quotes, and also switching the mine.polygonid with the temp.polygonid, but they keep failing. I've seen examples on this mailing list and on the web, and as far as I can tell, this is all correct and should work. But perhaps I'm in need of glasses :o) As for version information, I'm using the latest version of MS4W. C:\ms4w>ogr2ogr --version GDAL 1.7.1, released 2010/02/08 MapServer version 5.6.3 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=PDF OUTPUT=SWF OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=ICO NV SUPPORTS=FRIBIDI SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=SOS_SERVER SUPPORTS=FASTCGI SUP PORTS=THREADS SUPPORTS=GEOS SUPPORTS=RGBA_PNG SUPPORTS=TILECACHE INPUT=JPEG INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE If i load the shapefiles without the join, everything works ok. So it is safe to assume that the problem does not reside in my shapefiles or my mapfile. dbfdump clearly shows the field POLYGON_ID in both dbf files. Thanks. From jmckenna at gatewaygeomatics.com Tue Oct 26 09:56:59 2010 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Tue, 26 Oct 2010 13:56:59 -0300 Subject: [mapserver-users] question about joining In-Reply-To: <3D56274B4A7874468F58FADDBFD0980109DD0793@llmhs02.r8nssis.local> References: <3D56274B4A7874468F58FADDBFD0980109DD0793@llmhs02.r8nssis.local> Message-ID: <4CC7085B.1020008@gatewaygeomatics.com> Hi Mark, Your interpretation of the existing JOIN documentation (http://www.mapserver.org/mapfile/join.html) is correct, you can only use the JOIN feature for query templates. -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ On 10-10-26 12:28 PM, Mark Volz wrote: > Hello, > > I have not used the Join shapefile to database function in mapserver > before. I just have a couple questions > > ?The description explains that?It is important to understand that JOINs > are/ONLY/available once a query has been processed. You cannot use joins > to affect the look of a map.?Does that mean that we can only use the > joins for templates. If possible, I would like tolabel using a field in > a joined table. > > ?Is the following formatted correctly > > #CLASSITEM 'PARC_CODE' > > JOIN #TEST > > NAME "MyJoin" > > TABLE "LyonCounty/Parcels/test.dbf"#location of the dbf file > > FROM "PARCEL_ID"#shapefile field > > TO "PIN"#dbf field > > TYPE ONE-TO-ONE > > END #JOIN > > ? > > TEXT (?Name?* [MyJoin_MYNAME]) #labelusing the joined table > > Thanks > > Mark Volz > > GIS Specialist > > Lyon County, MN > From sebastian.ovide at gmail.com Tue Oct 26 09:51:40 2010 From: sebastian.ovide at gmail.com (Sebastian E. Ovide) Date: Tue, 26 Oct 2010 17:51:40 +0100 Subject: [mapserver-users] query for ALL the layers Message-ID: Hi All, I'm using a query from a MapInfo like this: DATA 'select * from sa_merged_01 where ogr_geometry = POLYGON or ogr_geometry = MULTIPOLYGON' Which select polygons and multipolygons from one single layer. My datasource have tens of layers (doing ogrinfo ./mydata/ I can see tens of layers)... How can I select all of them ? Any query that I can use ? thanks -- Sebastian E. Ovide -------------- next part -------------- An HTML attachment was scrubbed... URL: From greenkov at gmail.com Tue Oct 26 10:14:45 2010 From: greenkov at gmail.com (Alexander Petkov) Date: Tue, 26 Oct 2010 11:14:45 -0600 Subject: [mapserver-users] Re: Reading raster data source dynamically In-Reply-To: <9c2015090902121632p55cc56c7o6ac24b3e1a844229@mail.gmail.com> References: <9c2015090902121546t1deaaea4qd6335f4651ea8093@mail.gmail.com> <9c2015090902121632p55cc56c7o6ac24b3e1a844229@mail.gmail.com> Message-ID: Hey Roger: I am interested to find out if you have a solution to the problem you talked about below. Thanks, Alex On Thu, Feb 12, 2009 at 6:32 PM, Roger Andr? wrote: > Or maybe creating a GDAL "In Memory Raster" and then pointing to it as the > data source for the mapscript layer? > -- > > On Thu, Feb 12, 2009 at 3:46 PM, Roger Andr? wrote: >> >> Hi All, >> >> I'm wondering if there is some way I could feed Mapserver a raster data >> source dynamically?? Like maybe constructing a GeoTIFF in memory from a >> numerical array, and then passing that into mapscript along with the rest of >> the layer info.? The goal here is to avoid having to create temporary image >> files for each of the raster layers that I'm mapping. >> >> Any idea here would be welcome. >> >> Thanks, >> >> Roger >> -- > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > From dmorissette at mapgears.com Tue Oct 26 10:31:25 2010 From: dmorissette at mapgears.com (Daniel Morissette) Date: Tue, 26 Oct 2010 13:31:25 -0400 Subject: [mapserver-users] query for ALL the layers In-Reply-To: References: Message-ID: <4CC7106D.3050003@mapgears.com> Do all the files share exactly the same set of attributes? If yes then you could use a TILEINDEX (or create a Seamless Table in MapInfo) to load them all as part of the same layer. If the attributes definitions differ from file to file then I fear you're out of luck. Sebastian E. Ovide wrote: > Hi All, > > I'm using a query from a MapInfo like this: > > DATA 'select * from sa_merged_01 where ogr_geometry = POLYGON or > ogr_geometry = MULTIPOLYGON' > > Which select polygons and multipolygons from one single layer. > > My datasource have tens of layers (doing ogrinfo ./mydata/ I can see > tens of layers)... How can I select all of them ? Any query that I can use ? > > thanks > > > -- > Sebastian E. Ovide > > > > > > ------------------------------------------------------------------------ > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Daniel Morissette http://www.mapgears.com/ From carter.sharon017 at gmail.com Tue Oct 26 14:15:39 2010 From: carter.sharon017 at gmail.com (Sharon Carter) Date: Tue, 26 Oct 2010 15:15:39 -0600 Subject: [mapserver-users] Problems with AGG rendering In-Reply-To: References: Message-ID: Thanks for the answer Thomas. I changed the definition per your suggestion, the map file is much cleaner now. But, we are still getting the same result with the rendering. In GD is working fine but in Agg the same weird colored areas keep showing up. --sharon 2010/10/26 thomas bonfort > Rendering thick lines is done without symbols with agg (and GD with > recent versions of mapserver to, I believe) > > for an outlined line, you use: > > CLASS > STYLE > COLOR outlinecolor > WIDTH 5 > END > STYLE > COLOR fillcolor > WIDTH 3 #width of the first style minus 2 times the desired outline > width > END > END > > regards, > thomas > > On Mon, Oct 25, 2010 at 19:21, Sharon Carter > wrote: > > Hello, > > > > We have been working with mapserver for a while and now we are updating > our > > map. We decided to give AGG a try for this new version but we have been > > having some troubles setting it up to work properly. > > > > When we moved from GD to AGG the map starting showing areas with > different > > colors than the ones specified in the map file. > > > > Here we have an image with the rendering with GD > > http://67.23.24.210/mapserver/gd.png > > > > And one with AGG http://67.23.24.210/mapserver/agg.png > > > > > > The output format for AGG we are using is > > > > OUTPUTFORMAT > > NAME 'PNG' > > DRIVER AGG/PNG > > IMAGEMODE RGBA > > MIMETYPE "image/png;mode=24bit" > > FORMATOPTION "FORMAT=image/png" > > END > > > > > > The street lines are painted using a symbol to create the outline for the > > streets. > > > > Any ideas what could be causing this? > > > > Thanks > > > > Sharon > > > > _______________________________________________ > > mapserver-users mailing list > > mapserver-users at lists.osgeo.org > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From Steve.Lime at state.mn.us Tue Oct 26 15:20:50 2010 From: Steve.Lime at state.mn.us (Lime, Steve D (DNR)) Date: Tue, 26 Oct 2010 17:20:50 -0500 Subject: [mapserver-users] Problems with AGG rendering In-Reply-To: References: Message-ID: Can you post more of your mapfile including the AGG output format? Are your sample images from a single map draw or were they build from a number of tiles? Steve From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Sharon Carter Sent: Tuesday, October 26, 2010 4:16 PM To: thomas bonfort Cc: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Problems with AGG rendering Thanks for the answer Thomas. I changed the definition per your suggestion, the map file is much cleaner now. But, we are still getting the same result with the rendering. In GD is working fine but in Agg the same weird colored areas keep showing up. --sharon 2010/10/26 thomas bonfort > Rendering thick lines is done without symbols with agg (and GD with recent versions of mapserver to, I believe) for an outlined line, you use: CLASS STYLE COLOR outlinecolor WIDTH 5 END STYLE COLOR fillcolor WIDTH 3 #width of the first style minus 2 times the desired outline width END END regards, thomas On Mon, Oct 25, 2010 at 19:21, Sharon Carter > wrote: > Hello, > > We have been working with mapserver for a while and now we are updating our > map. We decided to give AGG a try for this new version but we have been > having some troubles setting it up to work properly. > > When we moved from GD to AGG the map starting showing areas with different > colors than the ones specified in the map file. > > Here we have an image with the rendering with GD > http://67.23.24.210/mapserver/gd.png > > And one with AGG http://67.23.24.210/mapserver/agg.png > > > The output format for AGG we are using is > > OUTPUTFORMAT > NAME 'PNG' > DRIVER AGG/PNG > IMAGEMODE RGBA > MIMETYPE "image/png;mode=24bit" > FORMATOPTION "FORMAT=image/png" > END > > > The street lines are painted using a symbol to create the outline for the > streets. > > Any ideas what could be causing this? > > Thanks > > Sharon > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From sebastian.ovide at gmail.com Wed Oct 27 02:50:12 2010 From: sebastian.ovide at gmail.com (Sebastian E. Ovide) Date: Wed, 27 Oct 2010 10:50:12 +0100 Subject: [mapserver-users] Re: process survive after killing apache In-Reply-To: References: Message-ID: Is there any way of telling to MapServer to kill himself after xx seconds ? It keep running for ever using 100% of CPUs... (Kernel CPU)... it seams to happen with huge polygons... On Thu, Oct 21, 2010 at 4:26 PM, Sebastian E. Ovide < sebastian.ovide at gmail.com> wrote: > Hi All, > > I'm having 2 problems: > > 1) Mapserver uses 100% for infinite time... (hangs !) for some layers... > 2) Mapserver survives after killing Apache (same with lighttpd). It even > wont die with a "sudo killall mapserv" at least that I pass the -9 > parameter. > > Any ideas ? > > (I'm running Mapserver on a VMware... , same problem with fastcgi or simple > cgi) > > > > -- > Sebastian E. Ovide > > > > -- Sebastian E. Ovide -------------- next part -------------- An HTML attachment was scrubbed... URL: From jw at hbt.de Wed Oct 27 02:51:30 2010 From: jw at hbt.de (Julian Wiersbitzki) Date: Wed, 27 Oct 2010 11:51:30 +0200 Subject: [mapserver-users] Best Practices for the Spatial Index with Oracle DB 11gR2 Message-ID: <21A18B8C89289B4FB93CB02ED54D9D12019A3F60@msg01.corp.hbt.de> Hi List! I am new here in this list and with mapserver, so please tell me if my question is already a faq. We have mapserver 5.6.3 in use together with an Oracle DB 11gR2 Standard Edtion. All works well so far and configuring layer with the mapfile is no problem. But we have two layers which use SDO-Function in the SELECT Statement, e.g.: DATA "the_geom from (SELECT SDO_GEOM.SDO_CENTROID(geometrie, 2) AS the_geom, id FROM ereignis) USING SRID 31468" or DATA "the_geom from (SELECT SDO_AGGR_UNION(SDOAGGRTYPE(the_geom, 0.005)) AS the_geom, bezirksinspektion AS label FROM stadtbezirk GROUP BY bezirksinspektion) USING SRID 31468" If I want to fetch one of these layers the mapserver tells me there is no spatial index. Normally we have spatial indexes on all our tables with SDO_GEOMETRY columns, e.g.: INSERT INTO user_sdo_geom_metadata VALUES ( UPPER('ereignis'), UPPER('geometrie'), MDSYS.SDO_DIM_ARRAY( MDSYS.SDO_DIM_ELEMENT('X',4452550.887,4479484.083,0.001), MDSYS.SDO_DIM_ELEMENT('Y',5324953.397000001,5345694.052999999,0.001)), 31468); CREATE INDEX ereignis_geom_idx ON ereignis(geometrie) INDEXTYPE IS MDSYS.SPATIAL_INDEX; But how do I create a spatial index on SDO-functions in the database? Can I even do that? The documentations only describes spatial index on SDO_GEOMETRY columns, but not on spatial functions. What are the best practices for this kind of layers? TIA, Julian ______________________________________________________________ Hamburger Berater Team GmbH Handelsregister: HRB 31629 Stadthausbr?cke 3 (Fleethof) Amtsgericht Hamburg 20355 Hamburg Gesch?ftsf?hrer: Fon: 040/369779-43 Ilse Habermann Fax: 040/369779-99 Hans-Joachim Habermann Mail: mailto:jw at hbt.de Daniel Hoffmann ______________________________________________________________ Internet: http://www.hbt.de http://www.geofox.de http://www.geonetwatch.de ______________________________________________________________ DIN EN ISO 9001:2000: DQS-Zertifikat Nr.5206 QM Diese Email wurde mit st?ndig aktualisierten Virenscannern gepr?ft ______________________________________________________________ Diese Email einschlie?lich eventuell angeh?ngter Dateien enth?lt vertrauliche Informationen und ist ausschlie?lich f?r den bezeichneten Adressaten bestimmt. Wenn Sie nicht der richtige Adressat oder dessen Vertreter sind, verst?ndigen Sie bitte sofort den Absender und l?schen Sie dann diese Email und eventuell angeh?ngte Dateien. Vielen Dank! Beachten Sie: Jede Form der Nutzung, Vervielf?ltigung oder Weitergabe des Inhalts fehlgeleiteter Emails ist unzul?ssig. ______________________________________________________________ This e-mail is intended only for the above addressee. It may contain privileged information. If you are not the addressee you must not copy, distribute, disclose or use any of the information in it. If you have received it in error please delete it and immediately notify the sender. ______________________________________________________________ From stefano.ferri at stesurf.com Wed Oct 27 03:15:45 2010 From: stefano.ferri at stesurf.com (Stefano Ferri) Date: Wed, 27 Oct 2010 12:15:45 +0200 Subject: [mapserver-users] Re: process survive after killing apache In-Reply-To: References: Message-ID: Usually i use a cron to manage this situation, with a little bash script Ciao stefano 2010/10/27 Sebastian E. Ovide > Is there any way of telling to MapServer to kill himself after xx seconds ? > > It keep running for ever using 100% of CPUs... (Kernel CPU)... it seams to > happen with huge polygons... > > > On Thu, Oct 21, 2010 at 4:26 PM, Sebastian E. Ovide < > sebastian.ovide at gmail.com> wrote: > >> Hi All, >> >> I'm having 2 problems: >> >> 1) Mapserver uses 100% for infinite time... (hangs !) for some layers... >> 2) Mapserver survives after killing Apache (same with lighttpd). It even >> wont die with a "sudo killall mapserv" at least that I pass the -9 >> parameter. >> >> Any ideas ? >> >> (I'm running Mapserver on a VMware... , same problem with fastcgi or >> simple cgi) >> >> >> >> -- >> Sebastian E. Ovide >> >> >> >> > > > -- > Sebastian E. Ovide > > > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -- Ing. Stefano Ferri Cartografia GIS, Analisi Ambientali, Rilevamento Dati, Rilevamento Batimetrie. Nota - D.lgs 196/2003 Testo Unico Privacy Le informazioni contenute nella presente e-mail ed in ogni eventuale file allegato sono riservate e comunque destinate esclusivamente alla persona o ente sopra indicati. Non ? dunque consentita la sua diffusione, se non espressamente autorizzata, da persona diversa dal suddetto destinatario. Se doveste ricevere questa e- mail per errore Vi preghiamo di eliminarla dai vostri archivi informatici e di darne gentile comunicazione al mittente. Dati gli attuali standard di sicurezza in Internet non ci ? possibile garantire la totale integrit? del messaggio inviato. Phone +39-328-2923692 Email: stefano.ferri at stesurf.com Web: www.stesurf.com Web: www.portolanonline.it -------------- next part -------------- An HTML attachment was scrubbed... URL: From sebastian.ovide at gmail.com Wed Oct 27 04:57:02 2010 From: sebastian.ovide at gmail.com (Sebastian E. Ovide) Date: Wed, 27 Oct 2010 12:57:02 +0100 Subject: [mapserver-users] Maximum number of points in a poligon Message-ID: Hi All, I have a shape with 2M polygons. The biggest one has 13k points. It works very well, and fast enough. I have another shape with 300k polygons and the biggest one has 800k points... This shape hangs MapServer !... and I have to kill the process by hand using kill -9. (see the other thread: process survive after killing apache). The shape files can be opened with ogrinfo though Is there a maximum number of points for single polygon supported by MapServer ? Thanks -- Sebastian E. Ovide -------------- next part -------------- An HTML attachment was scrubbed... URL: From ecodavid at rci.rutgers.edu Sat Oct 23 13:51:02 2010 From: ecodavid at rci.rutgers.edu (David Hill) Date: Sat, 23 Oct 2010 16:51:02 -0400 Subject: [mapserver-users] Problem loading geotifs In-Reply-To: References: Message-ID: <4CC34AB6.7040100@rci.rutgers.edu> I am already using offsite to remove black (0,0,0) from the image. But I don't think the problem is not caused by overlaps in the tiles because it happens if I only use one tile. The gdalinfo is: Driver: GTiff/GeoTIFF Files: p013r032_7p20001020_z18_nn80.tif Size is 17480, 15488 Coordinate System is: PROJCS["WGS 84 / UTM zone 18N", GEOGCS["WGS 84", DATUM["WGS_1984", SPHEROID["WGS 84",6378137,298.257223563, AUTHORITY["EPSG","7030"]], AUTHORITY["EPSG","6326"]], PRIMEM["Greenwich",0], UNIT["degree",0.0174532925199433], AUTHORITY["EPSG","4326"]], PROJECTION["Transverse_Mercator"], PARAMETER["latitude_of_origin",0], PARAMETER["central_meridian",-75], PARAMETER["scale_factor",0.9996], PARAMETER["false_easting",500000], PARAMETER["false_northing",0], UNIT["metre",1, AUTHORITY["EPSG","9001"]], AUTHORITY["EPSG","32618"]] Origin = (514189.875000000000000,4576366.125000000000000) Pixel Size = (14.250000000000000,-14.250000000000000) Metadata: TIFFTAG_XRESOLUTION=72 TIFFTAG_YRESOLUTION=72 TIFFTAG_RESOLUTIONUNIT=2 (pixels/inch) AREA_OR_POINT=Point Image Structure Metadata: INTERLEAVE=BAND Corner Coordinates: Upper Left ( 514189.875, 4576366.125) Lower Left ( 514189.875, 4355662.125) Upper Right ( 763279.875, 4576366.125) Lower Right ( 763279.875, 4355662.125) Center ( 638734.875, 4466014.125) Band 1 Block=17480x1 Type=Byte, ColorInterp=Gray I am tiling by using gdaltindex to create a shapefile of the tiles using a command similar to gdaltindex tile.shp *.tif The layer definition is LAYER NAME "landsat" METADATA "wcs_label" "Landsat 7" "wcs_rangeset_name" "Range 1" "wcs_rangeset_label" "My Label" END STATUS OFF TYPE RASTER TILEINDEX "data/Landsat/ETM/band8/subtiles/tindex.shp" TILEITEM "LOCATION" OFFSITE 0 0 0 PROJECTION # UTM zone 18 "init=epsg:26918" END DUMP TRUE END I thought the problem might be caused by the size of the tif files, so I used gdal_translate to subset the tif files. I tried it for one landsat image. The result was the same. The top half of the image renders and the bottom half of the image does not. I tried multiple subset sizes ranging from 15x15 which reduces the file size to less than 1% to 1x1 which is the original size. The result is that the bottom half of the image won't render in Mapserver. I attached two images of the problem to this email. error_originalresolution.png This file shows a single landsat7 geotif as downloaded from the USGS archive. The pixels it is easy to see that there is a horizontal line running across the pixel which is not in the same coordinate plane as the image. Offsite is turned on, so the bottom half of the pixel renders as transparent. error_with_subtiles.png this files shows data from the same landsat7 image as the prior image. However, these data were rendered in Mapserver by first dividing the original pixel into 15x15 subtiles and plotting them. Only half of each subtile renders. This leads to a banded appearance. I've also noticed that each time I render the data using Mapserver, the affected region is slightly different. Thanks for the Help! On 10/23/2010 3:38 PM, Rahkonen Jukka wrote: > Hi, > > My guess is that the data area of your Landsat images are not North-South oriented and they have triangular no-data areas in the corners. Adjacent images are overlapping when you view them together and no-data area from one image is covering the real data of the image underneath. The cure is to use OFFSITE in the mapfile to tell what pixel value should be made transparent. No-data value is often stored in the geotiff metadata and you can check it with gdalinfo. Perhaps most often it is all black (0 0 0). But this is just a guess and if I did not hit, please > - send a gdalinfo report of one image > - send the command you used for tiling > - send the LAYER definition you have used in the mapfile > > -Jukka Rahkonen- > > > -----Alkuper?inen viesti----- > L?hett?j?: mapserver-users-bounces at lists.osgeo.org puolesta: ecodavid at rci.rutgers.edu > L?hetetty: la 23.10.2010 21:04 > Vastaanottaja: mapserver-users at lists.osgeo.org > Aihe: [mapserver-users] Problem loading geotifs > > I am trying to add Landsat7 images to my mapserver project. I have > downloaded the images in geotif format from the USGS. These images > correspond to a rectangular snapshot over the region. Since multiple > geotiffs are needed to cover my region, I am tiling the images using gdal. > > Here is the problem I am having: The geotiffs render only partially. For > example, the top half of the image will render, and the bottom half will > not. I have opened the geotiff files in several image editors and can > view the entire region, so I am assuming that the problem is somewhere in > the Mapserver rendering. Also, I have tried inserting the image directly > (i.e. not using tiling) and get the same result. > > Can anyone help me out? > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -------------- next part -------------- A non-text attachment was scrubbed... Name: error_originalresolution.png Type: image/png Size: 48050 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: error_with_subtiles.png Type: image/png Size: 67114 bytes Desc: not available URL: From Jukka.Rahkonen at mmmtike.fi Wed Oct 27 05:14:23 2010 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Wed, 27 Oct 2010 15:14:23 +0300 Subject: [mapserver-users] Best Practices for the Spatial Index with OracleDB 11gR2 In-Reply-To: <21A18B8C89289B4FB93CB02ED54D9D12019A3F60@msg01.corp.hbt.de> References: <21A18B8C89289B4FB93CB02ED54D9D12019A3F60@msg01.corp.hbt.de> Message-ID: Hi, I made a little test and I believe it is just impossible. Oracle cannot do spatial query for the transformed geometries (centroids) returned by the first SELECT. It cannot find where the centroids are because they are not indexed and the index of the primary table does not help. You can for sure use centroids by pushing them into a new table or column and creating spatial index. There may be some SQL/Oracle trick to do it in some other way, PL/SQL people are doing amazing things but I am not aware of any. This is the query I used for testing and Oracle messages. I am not at all sure if this query is OK, but it may be. SQL> select the_geom from (SELECT SDO_GEOM.SDO_CENTROID(tt.geoloc, 2) AS the_geom, id from test_table tt) WHERE SDO_ANYINTERACT(the_geom, SDO_GEOMETRY(2003, 2393, NULL,SDO_ELEM_INFO_ARRAY(1,1003,3),SDO_ORDINATE_ARRAY(3289429,7024458, 3288529,7026558))) = 'TRUE'; select the_geom from (SELECT SDO_GEOM.SDO_CENTROID(gp.geoloc, 2) AS the_geom, id from gis_polygon gp * VIRHE rivill? 1: # error on row 1: ORA-13226: interface not supported without a spatial index ORA-06512: at "MDSYS.MD", line 1723 ORA-06512: at "MDSYS.MDERR", line 8 ORA-06512: at "MDSYS.SDO_3GL", line 70 ORA-06512: at "MDSYS.SDO_3GL", line 221 -Jukka Rahkonen- > -----Alkuper?inen viesti----- > L?hett?j?: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] Puolesta > Julian Wiersbitzki > L?hetetty: 27. lokakuuta 2010 12:52 > Vastaanottaja: mapserver-users at lists.osgeo.org > Aihe: [mapserver-users] Best Practices for the Spatial Index > with OracleDB 11gR2 > > Hi List! > > I am new here in this list and with mapserver, so please tell > me if my question is already a faq. > > We have mapserver 5.6.3 in use together with an Oracle DB > 11gR2 Standard Edtion. All works well so far and configuring > layer with the mapfile is no problem. But we have two layers > which use SDO-Function in the SELECT Statement, e.g.: > > DATA "the_geom from (SELECT > SDO_GEOM.SDO_CENTROID(geometrie, 2) AS the_geom, id FROM > ereignis) USING SRID 31468" > or > DATA "the_geom from (SELECT > SDO_AGGR_UNION(SDOAGGRTYPE(the_geom, 0.005)) AS the_geom, > bezirksinspektion AS label FROM stadtbezirk GROUP BY > bezirksinspektion) USING SRID 31468" > > If I want to fetch one of these layers the mapserver tells me > there is no spatial index. Normally we have spatial indexes > on all our tables with SDO_GEOMETRY columns, e.g.: > > INSERT INTO user_sdo_geom_metadata VALUES ( > UPPER('ereignis'), > UPPER('geometrie'), > MDSYS.SDO_DIM_ARRAY( > MDSYS.SDO_DIM_ELEMENT('X',4452550.887,4479484.083,0.001), > > MDSYS.SDO_DIM_ELEMENT('Y',5324953.397000001,5345694.052999999,0.001)), > 31468); > CREATE INDEX ereignis_geom_idx ON ereignis(geometrie) > INDEXTYPE IS MDSYS.SPATIAL_INDEX; > > But how do I create a spatial index on SDO-functions in the > database? Can I even do that? The documentations only > describes spatial index on SDO_GEOMETRY columns, but not on > spatial functions. > > What are the best practices for this kind of layers? > > TIA, Julian > > ______________________________________________________________ > > Hamburger Berater Team GmbH Handelsregister: HRB 31629 > Stadthausbr?cke 3 (Fleethof) Amtsgericht Hamburg > 20355 Hamburg Gesch?ftsf?hrer: > Fon: 040/369779-43 Ilse Habermann > Fax: 040/369779-99 Hans-Joachim Habermann > Mail: mailto:jw at hbt.de Daniel Hoffmann > ______________________________________________________________ > > Internet: http://www.hbt.de > http://www.geofox.de http://www.geonetwatch.de > ______________________________________________________________ > > DIN EN ISO 9001:2000: DQS-Zertifikat Nr.5206 QM > Diese Email wurde mit st?ndig aktualisierten Virenscannern gepr?ft > ______________________________________________________________ > > Diese Email einschlie?lich eventuell angeh?ngter Dateien > enth?lt vertrauliche Informationen und ist ausschlie?lich > f?r den bezeichneten Adressaten bestimmt. Wenn Sie nicht > der richtige Adressat oder dessen Vertreter sind, verst?ndigen > Sie bitte sofort den Absender und l?schen Sie dann diese Email > und eventuell angeh?ngte Dateien. Vielen Dank! > Beachten Sie: Jede Form der Nutzung, Vervielf?ltigung oder > Weitergabe des Inhalts fehlgeleiteter Emails ist unzul?ssig. > ______________________________________________________________ > > This e-mail is intended only for the above addressee. > It may contain privileged information. If you are not the > addressee you must not copy, distribute, disclose or use any > of the information in it. If you have received it in error > please delete it and immediately notify the sender. > ______________________________________________________________ > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From Jukka.Rahkonen at mmmtike.fi Wed Oct 27 05:36:48 2010 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Wed, 27 Oct 2010 15:36:48 +0300 Subject: [mapserver-users] Maximum number of points in a poligon In-Reply-To: References: Message-ID: Hi, All I can say is that with our data the service went all to slow for the end users long before jamming. We have been splitting the biggest lake polygons into pieces with no more than 45000 vertises because that was the limit of reasonable speed in our environment. But in that case the limiting factor was the database and "contains" queries, not Mapserver. Anyhow, splitting the lakes was good for Mapserver too. For some other layers we have made simplified versions for the far-away zooms. Simplifying is better for WMS use if polygons are drawn with different outline colour but it gives a bit more work with building the scale dependent layers. -Jukka Rahkonen- ________________________________ L?hett?j?: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] Puolesta Sebastian E. Ovide L?hetetty: 27. lokakuuta 2010 14:57 Vastaanottaja: mapserver-users at lists.osgeo.org Aihe: [mapserver-users] Maximum number of points in a poligon Hi All, I have a shape with 2M polygons. The biggest one has 13k points. It works very well, and fast enough. I have another shape with 300k polygons and the biggest one has 800k points... This shape hangs MapServer !... and I have to kill the process by hand using kill -9. (see the other thread: process survive after killing apache). The shape files can be opened with ogrinfo though Is there a maximum number of points for single polygon supported by MapServer ? Thanks -- Sebastian E. Ovide -------------- next part -------------- An HTML attachment was scrubbed... URL: From michael.smith at usace.army.mil Wed Oct 27 05:43:35 2010 From: michael.smith at usace.army.mil (Smith, Michael ERDC-CRREL-NH) Date: Wed, 27 Oct 2010 08:43:35 -0400 Subject: [mapserver-users] Best Practices for the Spatial Index with OracleDB 11gR2 In-Reply-To: Message-ID: You can disable the spatial filtering (which is what requires the spatial index) by using DATA "the_geom from (SELECT SDO_GEOM.SDO_CENTROID(geometrie, 2) AS the_geom, id FROM ereignis) USING SRID 31468 NONE" Mike On 10/27/10 8:14 AM, "Rahkonen Jukka" wrote: > Hi, > > I made a little test and I believe it is just impossible. Oracle cannot do > spatial query for the transformed geometries (centroids) returned by the first > SELECT. It cannot find where the centroids are because they are not indexed > and the index of the primary table does not help. You can for sure use > centroids by pushing them into a new table or column and creating spatial > index. There may be some SQL/Oracle trick to do it in some other way, PL/SQL > people are doing amazing things but I am not aware of any. > > This is the query I used for testing and Oracle messages. I am not at all > sure if this query is OK, but it may be. > > SQL> select the_geom from (SELECT SDO_GEOM.SDO_CENTROID(tt.geoloc, 2) AS > the_geom, id > from test_table tt) > WHERE SDO_ANYINTERACT(the_geom, SDO_GEOMETRY(2003, 2393, > NULL,SDO_ELEM_INFO_ARRAY(1,1003,3),SDO_ORDINATE_ARRAY(3289429,7024458, > 3288529,7026558))) > = 'TRUE'; > > select the_geom from (SELECT SDO_GEOM.SDO_CENTROID(gp.geoloc, 2) AS the_geom, > id from gis_polygon gp > * > VIRHE rivill? 1: # error on row 1: > ORA-13226: interface not supported without a spatial index > ORA-06512: at "MDSYS.MD", line 1723 > ORA-06512: at "MDSYS.MDERR", line 8 > ORA-06512: at "MDSYS.SDO_3GL", line 70 > ORA-06512: at "MDSYS.SDO_3GL", line 221 > > -Jukka Rahkonen- > > >> -----Alkuper?inen viesti----- >> L?hett?j?: mapserver-users-bounces at lists.osgeo.org >> [mailto:mapserver-users-bounces at lists.osgeo.org] Puolesta >> Julian Wiersbitzki >> L?hetetty: 27. lokakuuta 2010 12:52 >> Vastaanottaja: mapserver-users at lists.osgeo.org >> Aihe: [mapserver-users] Best Practices for the Spatial Index >> with OracleDB 11gR2 >> >> Hi List! >> >> I am new here in this list and with mapserver, so please tell >> me if my question is already a faq. >> >> We have mapserver 5.6.3 in use together with an Oracle DB >> 11gR2 Standard Edtion. All works well so far and configuring >> layer with the mapfile is no problem. But we have two layers >> which use SDO-Function in the SELECT Statement, e.g.: >> >> DATA "the_geom from (SELECT >> SDO_GEOM.SDO_CENTROID(geometrie, 2) AS the_geom, id FROM >> ereignis) USING SRID 31468" >> or >> DATA "the_geom from (SELECT >> SDO_AGGR_UNION(SDOAGGRTYPE(the_geom, 0.005)) AS the_geom, >> bezirksinspektion AS label FROM stadtbezirk GROUP BY >> bezirksinspektion) USING SRID 31468" >> >> If I want to fetch one of these layers the mapserver tells me >> there is no spatial index. Normally we have spatial indexes >> on all our tables with SDO_GEOMETRY columns, e.g.: >> >> INSERT INTO user_sdo_geom_metadata VALUES ( >> UPPER('ereignis'), >> UPPER('geometrie'), >> MDSYS.SDO_DIM_ARRAY( >> MDSYS.SDO_DIM_ELEMENT('X',4452550.887,4479484.083,0.001), >> >> MDSYS.SDO_DIM_ELEMENT('Y',5324953.397000001,5345694.052999999,0.001)), >> 31468); >> CREATE INDEX ereignis_geom_idx ON ereignis(geometrie) >> INDEXTYPE IS MDSYS.SPATIAL_INDEX; >> >> But how do I create a spatial index on SDO-functions in the >> database? Can I even do that? The documentations only >> describes spatial index on SDO_GEOMETRY columns, but not on >> spatial functions. >> >> What are the best practices for this kind of layers? >> >> TIA, Julian >> >> ______________________________________________________________ >> >> Hamburger Berater Team GmbH Handelsregister: HRB 31629 >> Stadthausbr?cke 3 (Fleethof) Amtsgericht Hamburg >> 20355 Hamburg Gesch?ftsf?hrer: >> Fon: 040/369779-43 Ilse Habermann >> Fax: 040/369779-99 Hans-Joachim Habermann >> Mail: mailto:jw at hbt.de Daniel Hoffmann >> ______________________________________________________________ >> >> Internet: http://www.hbt.de >> http://www.geofox.de http://www.geonetwatch.de >> ______________________________________________________________ >> >> DIN EN ISO 9001:2000: DQS-Zertifikat Nr.5206 QM >> Diese Email wurde mit st?ndig aktualisierten Virenscannern gepr?ft >> ______________________________________________________________ >> >> Diese Email einschlie?lich eventuell angeh?ngter Dateien >> enth?lt vertrauliche Informationen und ist ausschlie?lich >> f?r den bezeichneten Adressaten bestimmt. Wenn Sie nicht >> der richtige Adressat oder dessen Vertreter sind, verst?ndigen >> Sie bitte sofort den Absender und l?schen Sie dann diese Email >> und eventuell angeh?ngte Dateien. Vielen Dank! >> Beachten Sie: Jede Form der Nutzung, Vervielf?ltigung oder >> Weitergabe des Inhalts fehlgeleiteter Emails ist unzul?ssig. >> ______________________________________________________________ >> >> This e-mail is intended only for the above addressee. >> It may contain privileged information. If you are not the >> addressee you must not copy, distribute, disclose or use any >> of the information in it. If you have received it in error >> please delete it and immediately notify the sender. >> ______________________________________________________________ >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From sebastian.ovide at gmail.com Wed Oct 27 06:20:54 2010 From: sebastian.ovide at gmail.com (Sebastian E. Ovide) Date: Wed, 27 Oct 2010 14:20:54 +0100 Subject: [mapserver-users] Maximum number of points in a poligon In-Reply-To: References: Message-ID: Do you spliited the polygons manually or you have some script ? perhaps using gdal ? On Wed, Oct 27, 2010 at 1:36 PM, Rahkonen Jukka wrote: > Hi, > > All I can say is that with our data the service went all to slow for the > end users long before jamming. We have been splitting the biggest lake > polygons into pieces with no more than 45000 vertises because that was the > limit of reasonable speed in our environment. But in that case the limiting > factor was the database and "contains" queries, not Mapserver. Anyhow, > splitting the lakes was good for Mapserver too. For some other layers we > have made simplified versions for the far-away zooms. Simplifying is better > for WMS use if polygons are drawn with different outline colour but it gives > a bit more work with building the scale dependent layers. > > -Jukka Rahkonen- > > ------------------------------ > *L?hett?j?:* mapserver-users-bounces at lists.osgeo.org [mailto: > mapserver-users-bounces at lists.osgeo.org] *Puolesta *Sebastian E. Ovide > *L?hetetty:* 27. lokakuuta 2010 14:57 > *Vastaanottaja:* mapserver-users at lists.osgeo.org > *Aihe:* [mapserver-users] Maximum number of points in a poligon > > Hi All, > > I have a shape with 2M polygons. The biggest one has 13k points. It works > very well, and fast enough. > > I have another shape with 300k polygons and the biggest one has 800k > points... This shape hangs MapServer !... and I have to kill the process by > hand using kill -9. (see the other thread: process survive after killing > apache). The shape files can be opened with ogrinfo though > > Is there a maximum number of points for single polygon supported by > MapServer ? > > Thanks > -- > Sebastian E. Ovide > > > -- Sebastian E. Ovide -------------- next part -------------- An HTML attachment was scrubbed... URL: From Jukka.Rahkonen at mmmtike.fi Wed Oct 27 06:47:43 2010 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Wed, 27 Oct 2010 16:47:43 +0300 Subject: [mapserver-users] Maximum number of points in a poligon In-Reply-To: References: Message-ID: Hi, The biggest lake has more than 5000 islands and lots of bays and everything so I was thinking that a simple automatic tool would for sure break the topology, and sooner than I could have explained how a good tool should behave I had splitted the ten biggest lakes by hand. I can't even imagine how hard it would to be to code such a tool. It should not make invalid geometries and it should create new vertices so that new polygons could zigzag between the islands without splitting those, and the new pieces should have about same total number of vertices with variable number of islands. It was rather easy to iterate with bare eyes. -Jukka- ________________________________ L?hett?j?: sebastianovide at gmail.com [mailto:sebastianovide at gmail.com] Puolesta Sebastian E. Ovide L?hetetty: 27. lokakuuta 2010 16:21 Vastaanottaja: Rahkonen Jukka Kopio: mapserver-users at lists.osgeo.org Aihe: Re: [mapserver-users] Maximum number of points in a poligon Do you spliited the polygons manually or you have some script ? perhaps using gdal ? On Wed, Oct 27, 2010 at 1:36 PM, Rahkonen Jukka wrote: Hi, All I can say is that with our data the service went all to slow for the end users long before jamming. We have been splitting the biggest lake polygons into pieces with no more than 45000 vertises because that was the limit of reasonable speed in our environment. But in that case the limiting factor was the database and "contains" queries, not Mapserver. Anyhow, splitting the lakes was good for Mapserver too. For some other layers we have made simplified versions for the far-away zooms. Simplifying is better for WMS use if polygons are drawn with different outline colour but it gives a bit more work with building the scale dependent layers. -Jukka Rahkonen- ________________________________ L?hett?j?: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] Puolesta Sebastian E. Ovide L?hetetty: 27. lokakuuta 2010 14:57 Vastaanottaja: mapserver-users at lists.osgeo.org Aihe: [mapserver-users] Maximum number of points in a poligon Hi All, I have a shape with 2M polygons. The biggest one has 13k points. It works very well, and fast enough. I have another shape with 300k polygons and the biggest one has 800k points... This shape hangs MapServer !... and I have to kill the process by hand using kill -9. (see the other thread: process survive after killing apache). The shape files can be opened with ogrinfo though Is there a maximum number of points for single polygon supported by MapServer ? Thanks -- Sebastian E. Ovide -- Sebastian E. Ovide -------------- next part -------------- An HTML attachment was scrubbed... URL: From Jukka.Rahkonen at mmmtike.fi Wed Oct 27 07:08:42 2010 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Wed, 27 Oct 2010 17:08:42 +0300 Subject: [mapserver-users] Best Practices for the Spatial Index with OracleDB 11gR2 In-Reply-To: References: Message-ID: Hi, Does it mean that Mapserver is making then all the Oracle queries without BBOX and just selects everything? -Jukka- Smith, Michael ERDC-CRREL-NH wrote > Aihe: Re: [mapserver-users] Best Practices for the Spatial > Index with OracleDB 11gR2 > > You can disable the spatial filtering (which is what requires > the spatial > index) by using > > DATA "the_geom from (SELECT SDO_GEOM.SDO_CENTROID(geometrie, 2) AS > the_geom, id FROM ereignis) USING SRID 31468 NONE" > > Mike > > > On 10/27/10 8:14 AM, "Rahkonen Jukka" > wrote: > > > Hi, > > > > I made a little test and I believe it is just impossible. > Oracle cannot do > > spatial query for the transformed geometries (centroids) > returned by the first > > SELECT. It cannot find where the centroids are because they > are not indexed > > and the index of the primary table does not help. You can > for sure use > > centroids by pushing them into a new table or column and > creating spatial > > index. There may be some SQL/Oracle trick to do it in some > other way, PL/SQL > > people are doing amazing things but I am not aware of any. > > > > This is the query I used for testing and Oracle messages. > I am not at all > > sure if this query is OK, but it may be. > > > > SQL> select the_geom from (SELECT > SDO_GEOM.SDO_CENTROID(tt.geoloc, 2) AS > > the_geom, id > > from test_table tt) > > WHERE SDO_ANYINTERACT(the_geom, SDO_GEOMETRY(2003, 2393, > > > NULL,SDO_ELEM_INFO_ARRAY(1,1003,3),SDO_ORDINATE_ARRAY(3289429,7024458, > > 3288529,7026558))) > > = 'TRUE'; > > > > select the_geom from (SELECT > SDO_GEOM.SDO_CENTROID(gp.geoloc, 2) AS the_geom, > > id from gis_polygon gp > > * > > VIRHE rivill? 1: # error on row 1: > > ORA-13226: interface not supported without a spatial index > > ORA-06512: at "MDSYS.MD", line 1723 > > ORA-06512: at "MDSYS.MDERR", line 8 > > ORA-06512: at "MDSYS.SDO_3GL", line 70 > > ORA-06512: at "MDSYS.SDO_3GL", line 221 > > > > -Jukka Rahkonen- > > > > > >> -----Alkuper?inen viesti----- > >> L?hett?j?: mapserver-users-bounces at lists.osgeo.org > >> [mailto:mapserver-users-bounces at lists.osgeo.org] Puolesta > >> Julian Wiersbitzki > >> L?hetetty: 27. lokakuuta 2010 12:52 > >> Vastaanottaja: mapserver-users at lists.osgeo.org > >> Aihe: [mapserver-users] Best Practices for the Spatial Index > >> with OracleDB 11gR2 > >> > >> Hi List! > >> > >> I am new here in this list and with mapserver, so please tell > >> me if my question is already a faq. > >> > >> We have mapserver 5.6.3 in use together with an Oracle DB > >> 11gR2 Standard Edtion. All works well so far and configuring > >> layer with the mapfile is no problem. But we have two layers > >> which use SDO-Function in the SELECT Statement, e.g.: > >> > >> DATA "the_geom from (SELECT > >> SDO_GEOM.SDO_CENTROID(geometrie, 2) AS the_geom, id FROM > >> ereignis) USING SRID 31468" > >> or > >> DATA "the_geom from (SELECT > >> SDO_AGGR_UNION(SDOAGGRTYPE(the_geom, 0.005)) AS the_geom, > >> bezirksinspektion AS label FROM stadtbezirk GROUP BY > >> bezirksinspektion) USING SRID 31468" > >> > >> If I want to fetch one of these layers the mapserver tells me > >> there is no spatial index. Normally we have spatial indexes > >> on all our tables with SDO_GEOMETRY columns, e.g.: > >> > >> INSERT INTO user_sdo_geom_metadata VALUES ( > >> UPPER('ereignis'), > >> UPPER('geometrie'), > >> MDSYS.SDO_DIM_ARRAY( > >> MDSYS.SDO_DIM_ELEMENT('X',4452550.887,4479484.083,0.001), > >> > >> > MDSYS.SDO_DIM_ELEMENT('Y',5324953.397000001,5345694.052999999,0.001)), > >> 31468); > >> CREATE INDEX ereignis_geom_idx ON ereignis(geometrie) > >> INDEXTYPE IS MDSYS.SPATIAL_INDEX; > >> > >> But how do I create a spatial index on SDO-functions in the > >> database? Can I even do that? The documentations only > >> describes spatial index on SDO_GEOMETRY columns, but not on > >> spatial functions. > >> > >> What are the best practices for this kind of layers? > >> > >> TIA, Julian > >> > >> ______________________________________________________________ > >> > >> Hamburger Berater Team GmbH Handelsregister: HRB 31629 > >> Stadthausbr?cke 3 (Fleethof) Amtsgericht Hamburg > >> 20355 Hamburg Gesch?ftsf?hrer: > >> Fon: 040/369779-43 Ilse Habermann > >> Fax: 040/369779-99 Hans-Joachim Habermann > >> Mail: mailto:jw at hbt.de Daniel Hoffmann > >> ______________________________________________________________ > >> > >> Internet: http://www.hbt.de > >> http://www.geofox.de http://www.geonetwatch.de > >> ______________________________________________________________ > >> > >> DIN EN ISO 9001:2000: DQS-Zertifikat Nr.5206 QM > >> Diese Email wurde mit st?ndig aktualisierten Virenscannern gepr?ft > >> ______________________________________________________________ > >> > >> Diese Email einschlie?lich eventuell angeh?ngter Dateien > >> enth?lt vertrauliche Informationen und ist ausschlie?lich > >> f?r den bezeichneten Adressaten bestimmt. Wenn Sie nicht > >> der richtige Adressat oder dessen Vertreter sind, verst?ndigen > >> Sie bitte sofort den Absender und l?schen Sie dann diese Email > >> und eventuell angeh?ngte Dateien. Vielen Dank! > >> Beachten Sie: Jede Form der Nutzung, Vervielf?ltigung oder > >> Weitergabe des Inhalts fehlgeleiteter Emails ist unzul?ssig. > >> ______________________________________________________________ > >> > >> This e-mail is intended only for the above addressee. > >> It may contain privileged information. If you are not the > >> addressee you must not copy, distribute, disclose or use any > >> of the information in it. If you have received it in error > >> please delete it and immediately notify the sender. > >> ______________________________________________________________ > >> _______________________________________________ > >> mapserver-users mailing list > >> mapserver-users at lists.osgeo.org > >> http://lists.osgeo.org/mailman/listinfo/mapserver-users > >> > > _______________________________________________ > > mapserver-users mailing list > > mapserver-users at lists.osgeo.org > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > From michael.smith at usace.army.mil Wed Oct 27 07:19:33 2010 From: michael.smith at usace.army.mil (Smith, Michael ERDC-CRREL-NH) Date: Wed, 27 Oct 2010 10:19:33 -0400 Subject: [mapserver-users] Best Practices for the Spatial Index with OracleDB 11gR2 In-Reply-To: Message-ID: When you use NONE, yes. No spatial filtering is taking place. On 10/27/10 10:08 AM, "Rahkonen Jukka" wrote: > Hi, > > Does it mean that Mapserver is making then all the Oracle queries without BBOX > and just selects everything? > > -Jukka- > > Smith, Michael ERDC-CRREL-NH wrote > >> Aihe: Re: [mapserver-users] Best Practices for the Spatial >> Index with OracleDB 11gR2 >> >> You can disable the spatial filtering (which is what requires >> the spatial >> index) by using >> >> DATA "the_geom from (SELECT SDO_GEOM.SDO_CENTROID(geometrie, 2) AS >> the_geom, id FROM ereignis) USING SRID 31468 NONE" >> >> Mike >> >> >> On 10/27/10 8:14 AM, "Rahkonen Jukka" >> wrote: >> >>> Hi, >>> >>> I made a little test and I believe it is just impossible. >> Oracle cannot do >>> spatial query for the transformed geometries (centroids) >> returned by the first >>> SELECT. It cannot find where the centroids are because they >> are not indexed >>> and the index of the primary table does not help. You can >> for sure use >>> centroids by pushing them into a new table or column and >> creating spatial >>> index. There may be some SQL/Oracle trick to do it in some >> other way, PL/SQL >>> people are doing amazing things but I am not aware of any. >>> >>> This is the query I used for testing and Oracle messages. >> I am not at all >>> sure if this query is OK, but it may be. >>> >>> SQL> select the_geom from (SELECT >> SDO_GEOM.SDO_CENTROID(tt.geoloc, 2) AS >>> the_geom, id >>> from test_table tt) >>> WHERE SDO_ANYINTERACT(the_geom, SDO_GEOMETRY(2003, 2393, >>> >> NULL,SDO_ELEM_INFO_ARRAY(1,1003,3),SDO_ORDINATE_ARRAY(3289429,7024458, >>> 3288529,7026558))) >>> = 'TRUE'; >>> >>> select the_geom from (SELECT >> SDO_GEOM.SDO_CENTROID(gp.geoloc, 2) AS the_geom, >>> id from gis_polygon gp >>> * >>> VIRHE rivill? 1: # error on row 1: >>> ORA-13226: interface not supported without a spatial index >>> ORA-06512: at "MDSYS.MD", line 1723 >>> ORA-06512: at "MDSYS.MDERR", line 8 >>> ORA-06512: at "MDSYS.SDO_3GL", line 70 >>> ORA-06512: at "MDSYS.SDO_3GL", line 221 >>> >>> -Jukka Rahkonen- >>> >>> >>>> -----Alkuper?inen viesti----- >>>> L?hett?j?: mapserver-users-bounces at lists.osgeo.org >>>> [mailto:mapserver-users-bounces at lists.osgeo.org] Puolesta >>>> Julian Wiersbitzki >>>> L?hetetty: 27. lokakuuta 2010 12:52 >>>> Vastaanottaja: mapserver-users at lists.osgeo.org >>>> Aihe: [mapserver-users] Best Practices for the Spatial Index >>>> with OracleDB 11gR2 >>>> >>>> Hi List! >>>> >>>> I am new here in this list and with mapserver, so please tell >>>> me if my question is already a faq. >>>> >>>> We have mapserver 5.6.3 in use together with an Oracle DB >>>> 11gR2 Standard Edtion. All works well so far and configuring >>>> layer with the mapfile is no problem. But we have two layers >>>> which use SDO-Function in the SELECT Statement, e.g.: >>>> >>>> DATA "the_geom from (SELECT >>>> SDO_GEOM.SDO_CENTROID(geometrie, 2) AS the_geom, id FROM >>>> ereignis) USING SRID 31468" >>>> or >>>> DATA "the_geom from (SELECT >>>> SDO_AGGR_UNION(SDOAGGRTYPE(the_geom, 0.005)) AS the_geom, >>>> bezirksinspektion AS label FROM stadtbezirk GROUP BY >>>> bezirksinspektion) USING SRID 31468" >>>> >>>> If I want to fetch one of these layers the mapserver tells me >>>> there is no spatial index. Normally we have spatial indexes >>>> on all our tables with SDO_GEOMETRY columns, e.g.: >>>> >>>> INSERT INTO user_sdo_geom_metadata VALUES ( >>>> UPPER('ereignis'), >>>> UPPER('geometrie'), >>>> MDSYS.SDO_DIM_ARRAY( >>>> MDSYS.SDO_DIM_ELEMENT('X',4452550.887,4479484.083,0.001), >>>> >>>> >> MDSYS.SDO_DIM_ELEMENT('Y',5324953.397000001,5345694.052999999,0.001)), >>>> 31468); >>>> CREATE INDEX ereignis_geom_idx ON ereignis(geometrie) >>>> INDEXTYPE IS MDSYS.SPATIAL_INDEX; >>>> >>>> But how do I create a spatial index on SDO-functions in the >>>> database? Can I even do that? The documentations only >>>> describes spatial index on SDO_GEOMETRY columns, but not on >>>> spatial functions. >>>> >>>> What are the best practices for this kind of layers? >>>> >>>> TIA, Julian >>>> >>>> ______________________________________________________________ >>>> >>>> Hamburger Berater Team GmbH Handelsregister: HRB 31629 >>>> Stadthausbr?cke 3 (Fleethof) Amtsgericht Hamburg >>>> 20355 Hamburg Gesch?ftsf?hrer: >>>> Fon: 040/369779-43 Ilse Habermann >>>> Fax: 040/369779-99 Hans-Joachim Habermann >>>> Mail: mailto:jw at hbt.de Daniel Hoffmann >>>> ______________________________________________________________ >>>> >>>> Internet: http://www.hbt.de >>>> http://www.geofox.de http://www.geonetwatch.de >>>> ______________________________________________________________ >>>> >>>> DIN EN ISO 9001:2000: DQS-Zertifikat Nr.5206 QM >>>> Diese Email wurde mit st?ndig aktualisierten Virenscannern gepr?ft >>>> ______________________________________________________________ >>>> >>>> Diese Email einschlie?lich eventuell angeh?ngter Dateien >>>> enth?lt vertrauliche Informationen und ist ausschlie?lich >>>> f?r den bezeichneten Adressaten bestimmt. Wenn Sie nicht >>>> der richtige Adressat oder dessen Vertreter sind, verst?ndigen >>>> Sie bitte sofort den Absender und l?schen Sie dann diese Email >>>> und eventuell angeh?ngte Dateien. Vielen Dank! >>>> Beachten Sie: Jede Form der Nutzung, Vervielf?ltigung oder >>>> Weitergabe des Inhalts fehlgeleiteter Emails ist unzul?ssig. >>>> ______________________________________________________________ >>>> >>>> This e-mail is intended only for the above addressee. >>>> It may contain privileged information. If you are not the >>>> addressee you must not copy, distribute, disclose or use any >>>> of the information in it. If you have received it in error >>>> please delete it and immediately notify the sender. >>>> ______________________________________________________________ >>>> _______________________________________________ >>>> mapserver-users mailing list >>>> mapserver-users at lists.osgeo.org >>>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>>> >>> _______________________________________________ >>> mapserver-users mailing list >>> mapserver-users at lists.osgeo.org >>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> >> > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From simone.frigerio at univie.ac.at Wed Oct 27 07:47:27 2010 From: simone.frigerio at univie.ac.at (Simone Frigerio) Date: Wed, 27 Oct 2010 16:47:27 +0200 Subject: [mapserver-users] IMG floating raster and class Message-ID: <4CC83B7F.3000309@univie.ac.at> Hi folk, I need to publish a floating Erdas Image img file. A stretched scale of red is required. Starting mapfile could be: .... LAYER NAME "test" TYPE RASTER DATA "rd_7790432.img" TEMPLATE "ttt" TRANSPARENCY 60 METADATA "force_imagetype" "jpeg" END .... I need a CLASSITEM setting, but how can I manage a floating raster? 255 classes or less can be fixed: Single class example: CLASSITEM "VALUE" CLASS NAME "0 m - 900 m" EXPRESSION ([pixel] >= 0 AND [pixel] < 900) STYLE COLOR 0 20 0 END END How can I do automatically for all the pixel value? Thanks. Simone -- -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: signature-1.gif Type: image/gif Size: 566 bytes Desc: not available URL: From Steve.Lime at state.mn.us Wed Oct 27 07:39:40 2010 From: Steve.Lime at state.mn.us (Lime, Steve D (DNR)) Date: Wed, 27 Oct 2010 09:39:40 -0500 Subject: [mapserver-users] Maximum number of points in a poligon In-Reply-To: References: Message-ID: There is no maximum per se, certainly nothing hardcoded. Doesn't mean some processing on the shape might bog down for whatever reason. I'd love to get a copy of these sorts of extreme data for testing purposes. Please let me know if that's possible. Steve From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Sebastian E. Ovide Sent: Wednesday, October 27, 2010 6:57 AM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] Maximum number of points in a poligon Hi All, I have a shape with 2M polygons. The biggest one has 13k points. It works very well, and fast enough. I have another shape with 300k polygons and the biggest one has 800k points... This shape hangs MapServer !... and I have to kill the process by hand using kill -9. (see the other thread: process survive after killing apache). The shape files can be opened with ogrinfo though Is there a maximum number of points for single polygon supported by MapServer ? Thanks -- Sebastian E. Ovide -------------- next part -------------- An HTML attachment was scrubbed... URL: From jw at hbt.de Wed Oct 27 07:56:47 2010 From: jw at hbt.de (Julian Wiersbitzki) Date: Wed, 27 Oct 2010 16:56:47 +0200 Subject: [mapserver-users] Best Practices for the Spatial Index withOracleDB 11gR2 Message-ID: <21A18B8C89289B4FB93CB02ED54D9D12019A3F63@msg01.corp.hbt.de> Thanx a lot folks! That solves my problems! Julian > -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of > Smith, Michael ERDC-CRREL-NH > Sent: Wednesday, October 27, 2010 4:20 PM > To: Rahkonen Jukka; mapserver-users at lists.osgeo.org > Subject: Re: [mapserver-users] Best Practices for the Spatial > Index withOracleDB 11gR2 > > > When you use NONE, yes. No spatial filtering is taking place. > > > On 10/27/10 10:08 AM, "Rahkonen Jukka" > wrote: > > > Hi, > > > > Does it mean that Mapserver is making then all the Oracle > queries without BBOX > > and just selects everything? > > > > -Jukka- > > > > Smith, Michael ERDC-CRREL-NH wrote > > > >> Aihe: Re: [mapserver-users] Best Practices for the Spatial > >> Index with OracleDB 11gR2 > >> > >> You can disable the spatial filtering (which is what requires > >> the spatial > >> index) by using > >> > >> DATA "the_geom from (SELECT > SDO_GEOM.SDO_CENTROID(geometrie, 2) AS > >> the_geom, id FROM ereignis) USING SRID 31468 NONE" > >> > >> Mike > >> > >> > >> On 10/27/10 8:14 AM, "Rahkonen Jukka" > >> wrote: > >> > >>> Hi, > >>> > >>> I made a little test and I believe it is just impossible. > >> Oracle cannot do > >>> spatial query for the transformed geometries (centroids) > >> returned by the first > >>> SELECT. It cannot find where the centroids are because they > >> are not indexed > >>> and the index of the primary table does not help. You can > >> for sure use > >>> centroids by pushing them into a new table or column and > >> creating spatial > >>> index. There may be some SQL/Oracle trick to do it in some > >> other way, PL/SQL > >>> people are doing amazing things but I am not aware of any. > >>> > >>> This is the query I used for testing and Oracle messages. > >> I am not at all > >>> sure if this query is OK, but it may be. > >>> > >>> SQL> select the_geom from (SELECT > >> SDO_GEOM.SDO_CENTROID(tt.geoloc, 2) AS > >>> the_geom, id > >>> from test_table tt) > >>> WHERE SDO_ANYINTERACT(the_geom, SDO_GEOMETRY(2003, 2393, > >>> > >> > NULL,SDO_ELEM_INFO_ARRAY(1,1003,3),SDO_ORDINATE_ARRAY(3289429,7024458, > >>> 3288529,7026558))) > >>> = 'TRUE'; > >>> > >>> select the_geom from (SELECT > >> SDO_GEOM.SDO_CENTROID(gp.geoloc, 2) AS the_geom, > >>> id from gis_polygon gp > >>> * > >>> VIRHE rivill? 1: # error on row 1: > >>> ORA-13226: interface not supported without a spatial index > >>> ORA-06512: at "MDSYS.MD", line 1723 > >>> ORA-06512: at "MDSYS.MDERR", line 8 > >>> ORA-06512: at "MDSYS.SDO_3GL", line 70 > >>> ORA-06512: at "MDSYS.SDO_3GL", line 221 > >>> > >>> -Jukka Rahkonen- > >>> > >>> > >>>> -----Alkuper?inen viesti----- > >>>> L?hett?j?: mapserver-users-bounces at lists.osgeo.org > >>>> [mailto:mapserver-users-bounces at lists.osgeo.org] Puolesta > >>>> Julian Wiersbitzki > >>>> L?hetetty: 27. lokakuuta 2010 12:52 > >>>> Vastaanottaja: mapserver-users at lists.osgeo.org > >>>> Aihe: [mapserver-users] Best Practices for the Spatial Index > >>>> with OracleDB 11gR2 > >>>> > >>>> Hi List! > >>>> > >>>> I am new here in this list and with mapserver, so please tell > >>>> me if my question is already a faq. > >>>> > >>>> We have mapserver 5.6.3 in use together with an Oracle DB > >>>> 11gR2 Standard Edtion. All works well so far and configuring > >>>> layer with the mapfile is no problem. But we have two layers > >>>> which use SDO-Function in the SELECT Statement, e.g.: > >>>> > >>>> DATA "the_geom from (SELECT > >>>> SDO_GEOM.SDO_CENTROID(geometrie, 2) AS the_geom, id FROM > >>>> ereignis) USING SRID 31468" > >>>> or > >>>> DATA "the_geom from (SELECT > >>>> SDO_AGGR_UNION(SDOAGGRTYPE(the_geom, 0.005)) AS the_geom, > >>>> bezirksinspektion AS label FROM stadtbezirk GROUP BY > >>>> bezirksinspektion) USING SRID 31468" > >>>> > >>>> If I want to fetch one of these layers the mapserver tells me > >>>> there is no spatial index. Normally we have spatial indexes > >>>> on all our tables with SDO_GEOMETRY columns, e.g.: > >>>> > >>>> INSERT INTO user_sdo_geom_metadata VALUES ( > >>>> UPPER('ereignis'), > >>>> UPPER('geometrie'), > >>>> MDSYS.SDO_DIM_ARRAY( > >>>> MDSYS.SDO_DIM_ELEMENT('X',4452550.887,4479484.083,0.001), > >>>> > >>>> > >> > MDSYS.SDO_DIM_ELEMENT('Y',5324953.397000001,5345694.052999999,0.001)), > >>>> 31468); > >>>> CREATE INDEX ereignis_geom_idx ON ereignis(geometrie) > >>>> INDEXTYPE IS MDSYS.SPATIAL_INDEX; > >>>> > >>>> But how do I create a spatial index on SDO-functions in the > >>>> database? Can I even do that? The documentations only > >>>> describes spatial index on SDO_GEOMETRY columns, but not on > >>>> spatial functions. > >>>> > >>>> What are the best practices for this kind of layers? > >>>> > >>>> TIA, Julian > >>>> > >>>> ______________________________________________________________ > >>>> > >>>> Hamburger Berater Team GmbH Handelsregister: HRB 31629 > >>>> Stadthausbr?cke 3 (Fleethof) Amtsgericht Hamburg > >>>> 20355 Hamburg Gesch?ftsf?hrer: > >>>> Fon: 040/369779-43 Ilse Habermann > >>>> Fax: 040/369779-99 Hans-Joachim Habermann > >>>> Mail: mailto:jw at hbt.de Daniel Hoffmann > >>>> ______________________________________________________________ > >>>> > >>>> Internet: http://www.hbt.de > >>>> http://www.geofox.de http://www.geonetwatch.de > >>>> ______________________________________________________________ > >>>> > >>>> DIN EN ISO 9001:2000: DQS-Zertifikat Nr.5206 QM > >>>> Diese Email wurde mit st?ndig aktualisierten > Virenscannern gepr?ft > >>>> ______________________________________________________________ > >>>> > >>>> Diese Email einschlie?lich eventuell angeh?ngter Dateien > >>>> enth?lt vertrauliche Informationen und ist ausschlie?lich > >>>> f?r den bezeichneten Adressaten bestimmt. Wenn Sie nicht > >>>> der richtige Adressat oder dessen Vertreter sind, verst?ndigen > >>>> Sie bitte sofort den Absender und l?schen Sie dann diese Email > >>>> und eventuell angeh?ngte Dateien. Vielen Dank! > >>>> Beachten Sie: Jede Form der Nutzung, Vervielf?ltigung oder > >>>> Weitergabe des Inhalts fehlgeleiteter Emails ist unzul?ssig. > >>>> ______________________________________________________________ > >>>> > >>>> This e-mail is intended only for the above addressee. > >>>> It may contain privileged information. If you are not the > >>>> addressee you must not copy, distribute, disclose or use any > >>>> of the information in it. If you have received it in error > >>>> please delete it and immediately notify the sender. > >>>> ______________________________________________________________ > >>>> _______________________________________________ > >>>> mapserver-users mailing list > >>>> mapserver-users at lists.osgeo.org > >>>> http://lists.osgeo.org/mailman/listinfo/mapserver-users > >>>> > >>> _______________________________________________ > >>> mapserver-users mailing list > >>> mapserver-users at lists.osgeo.org > >>> http://lists.osgeo.org/mailman/listinfo/mapserver-users > >> > >> > > _______________________________________________ > > mapserver-users mailing list > > mapserver-users at lists.osgeo.org > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From nikos at maich.gr Wed Oct 27 08:07:40 2010 From: nikos at maich.gr (nikos at maich.gr) Date: Wed, 27 Oct 2010 18:07:40 +0300 (EEST) Subject: [mapserver-users] Postgis syntax for qitem and qstring... In-Reply-To: <20101027145252.5FA6FE0202B@lists.osgeo.org> References: <20101027145252.5FA6FE0202B@lists.osgeo.org> Message-ID: <1999.193.218.36.162.1288192060.squirrel@193.218.36.162> Hi, Have searched around and have not really found any answers to this... I know it's kinda beaten to death, but I'm still stuck... My map file is ok, as layers and classes render correctly... Trying to query a postgis layer vi a template here's my query string sent to ms cgi.. queryfile=&img.x=257&img.y=171&zoomdir=1&zoomsize=2&map=/var/www/html/IUNG/IUNG.map&imgext=380423.595142 4328752.268235 396518.970142 4344847.643235&mapext=shape&layer=landunits&map.layer[landunits].class[landunits].style[0]=color 2 176 15&layer=settlements&map.layer[settlements].class[settlements].style[0]=color 255 255 0&layer=greehouses&map.layer[greenhouses].class[greenhouses].style[0]=color 0 0 255&layer=municipalities&map.layer[municipalities].class[municipalities].style[0]=color 255 125 0&layer=factories &query_mode=itemquery &qlayer=landunits &qstring=[cyna>0] &qitem=cyna &tablename=default&w=450&h=450&landunits_color=1&settlements_color=3&greenhouses_color=2&municipalities_color=4&imgxy=225.0 225.0&mode=itemquery&rnd982g=0.5784547519648998&ID=1288191931&fname=/IUNG/tmp/IUNG1288191931.html y&qlayer=landunits&qstring=[cyna > 0]&qitem=cyna prepare_database(): Query error. Error declaring cursor: ERROR: column "cyna" does not exist LINE 1: DECLARE mycursor BINARY CURSOR FOR SELECT "cyna"::text,asbin... ^ With query string: DECLARE mycursor BINARY CURSOR FOR SELECT "cyna"::text,asbinary(force_collection(force_2d(the_geom)),'NDR' ),gid::text from (SELECT landunits.gid AS gid, landunits.the_geom AS the_geom, im_results.cot as cotton, im_results.ble as wheat, im_results.cyna as cynara, im_results.misc as miscanthus FROM landunits JOIN im_results ON landunits.gid = im_results.ide1) AS im_join WHERE (cyna > 0) and (the_geom && setSRID( 'BOX3D(338975.96875 4319199,391293.59375 4383580.5)'::BOX3D,-1) ) here's the relevant part of mapfile... CONNECTION "dbname=IUNG user=postgres host=localhost password=salonica " DATA "the_geom FROM (SELECT landunits.gid AS gid, landunits.the_geom AS the_geom, im_results.cot as cotton, im_results.ble as ble, im_results.cyna as cynara, im_results.misc as miscanthus FROM landunits JOIN im_results ON landunits.gid = im_results.ide1) AS im_join USING UNIQUE gid USING SRID=-1" ##### ## #FILTER "gid > 0" CLASS Name "landunits" OUTLINECOLOR 10 10 10 color 255 125 0 outlinecolor 25 25 255 template "templates/landunits_query.html" END CLASS Name "gid" OUTLINECOLOR 10 10 10 color 255 12 0 outlinecolor 25 25 255 template "templates/landunits_query.html" END Class Name "total" OUTLINECOLOR 10 10 10 color 255 125 0 outlinecolor 25 25 255 template "templates/landunits_query.html" END Class Name "cotton" OUTLINECOLOR 10 10 10 color 255 125 0 outlinecolor 25 25 255 template "templates/landunits_query.html" END Class Name "ble" OUTLINECOLOR 10 10 10 color 255 125 0 outlinecolor 25 25 255 template "templates/landunits_query.html" END Class Name "cynara" OUTLINECOLOR 10 10 10 color 255 125 0 outlinecolor 25 25 255 template "templates/landunits_query.html" END ClaSS Name "miscanthus" OUTLINECOLOR 10 10 10 color 255 125 0 outlinecolor 25 25 255 template "templates/landunits_query.html" END I'm stuck... regards, nikos From sebastian.ovide at gmail.com Wed Oct 27 09:03:47 2010 From: sebastian.ovide at gmail.com (Sebastian E. Ovide) Date: Wed, 27 Oct 2010 17:03:47 +0100 Subject: [mapserver-users] Maximum number of points in a poligon In-Reply-To: References: Message-ID: Hi Lime, I cannot release the shapes (I am sure that you understand) but I can tell you how I've created them. Using gdal_polygonize.py on a raster big as UK with only 2 colors: 0,1. Each pixel is a 5x5 meters squares. The Image displays the UK water surface. The bigger polygons belong to the coast. Regards On Wed, Oct 27, 2010 at 3:39 PM, Lime, Steve D (DNR) wrote: > There is no maximum per se, certainly nothing hardcoded. Doesn?t mean > some processing on the shape might bog down for whatever reason. I?d love to > get a copy of these sorts of extreme data for testing purposes. Please let > me know if that?s possible. > > > > Steve > > > > *From:* mapserver-users-bounces at lists.osgeo.org [mailto: > mapserver-users-bounces at lists.osgeo.org] *On Behalf Of *Sebastian E. Ovide > *Sent:* Wednesday, October 27, 2010 6:57 AM > > *To:* mapserver-users at lists.osgeo.org > *Subject:* [mapserver-users] Maximum number of points in a poligon > > > > Hi All, > > > > I have a shape with 2M polygons. The biggest one has 13k points. It works > very well, and fast enough. > > > > I have another shape with 300k polygons and the biggest one has 800k > points... This shape hangs MapServer !... and I have to kill the process by > hand using kill -9. (see the other thread: process survive after killing > apache). The shape files can be opened with ogrinfo though > > > > Is there a maximum number of points for single polygon supported by > MapServer ? > > > > Thanks > -- > Sebastian E. Ovide > > -- Sebastian E. Ovide -------------- next part -------------- An HTML attachment was scrubbed... URL: From nikos at maich.gr Wed Oct 27 13:15:06 2010 From: nikos at maich.gr (nikos at maich.gr) Date: Wed, 27 Oct 2010 23:15:06 +0300 (EEST) Subject: [mapserver-users] Class status (does it toggle?) In-Reply-To: <20101027160021.27C4EE020AD@lists.osgeo.org> References: <20101027160021.27C4EE020AD@lists.osgeo.org> Message-ID: <10332.94.71.84.39.1288210506.squirrel@94.71.84.39> Hi, More a'do.... Is there anything special I have to do to toggle class names off and on? I added status OFF for some classes in the mapfile, but the classes still render....??? Layer status is ON I'm figuring I repeatedly define the same layer with different class and toggle LYER status, that, but then what's the point of a CLASS status??? snip of mapfile again... DATA "the_geom FROM (SELECT landunits.gid AS gid, landunits.the_geom AS the_geom, im_results.cot as cotton, im_results.ble as wheat, im_results.cyna as cynara, im_results.misc as miscanthus FROM landunits JOIN im_results ON landunits.gid = im_results.ide1) AS im_join USING UNIQUE gid USING SRID=-1" ##### ## #FILTER "gid > 0" CLASS Name "landunits" OUTLINECOLOR 10 10 10 color 255 125 0 outlinecolor 25 25 255 template "templates/landunits_query.html" END CLASS Name "gid" OUTLINECOLOR 10 10 10 color 255 12 0 outlinecolor 25 25 255 template "templates/landunits_query.html" END Class Name "cotton" OUTLINECOLOR 10 10 10 color 255 125 0 outlinecolor 25 25 255 template "templates/landunits_query.html" STATUS OFF regards, nikos From jorn at spacetec.no Thu Oct 28 02:50:29 2010 From: jorn at spacetec.no (=?utf-8?q?J=C3=B8rn_Vegard_R=C3=B8snes?=) Date: Thu, 28 Oct 2010 11:50:29 +0200 Subject: [mapserver-users] Mapserver and projcs in geotiff header Message-ID: <201010281150.30413.jorn@spacetec.no> Hi all, just a feature check of Mapserver. Should Mapserver read the projection information in the geotiff header, if PROJECTION is not set in the LAYER def. of the map file? I'm testing with Mapserv 5.1-dev, and it's not working without PROJECTION, only when PROJECTION is set. I will soon try with a recent version of Mapserver (compiling). Here is my geotiff header (gdalinfo): Coordinate System is: PROJCS["Mercator WGS84", GEOGCS["unnamed", DATUM["WGS_1984", SPHEROID["WGS 84",6378137,0, AUTHORITY["EPSG","7030"]], AUTHORITY["EPSG","6326"]], PRIMEM["Greenwich",0], UNIT[,0.0174532925199433]], PROJECTION["Mercator_1SP"], PARAMETER["central_meridian",0], PARAMETER["scale_factor",1], PARAMETER["false_easting",0], PARAMETER["false_northing",0], UNIT["unknown",1]] Origin = (-143878.103329198609572,7218088.338938739150763) Pixel Size = (75.000000000000000,-75.000000000000000) Metadata: AREA_OR_POINT=Point TIFFTAG_DATETIME=2010:09:21 14:32:57 TIFFTAG_MINSAMPLEVALUE=0 TIFFTAG_MAXSAMPLEVALUE=255 Image Structure Metadata: INTERLEAVE=BAND Corner Coordinates: Upper Left ( -143878.103, 7218088.339) ( 1d17'32.92"W, 54d26'4.08"N) Lower Left ( -143878.103, 6441988.339) ( 1d17'32.92"W, 50d 9'52.31"N) Upper Right ( 660946.897, 7218088.339) ( 5d56'14.59"E, 54d26'4.08"N) Lower Right ( 660946.897, 6441988.339) ( 5d56'14.59"E, 50d 9'52.31"N) Center ( 258534.397, 6830038.339) ( 2d19'20.83"E, 52d21'4.61"N) Band 1 Block=10731x97 Type=Byte, ColorInterp=Gray Mapfile (partly): MAP UNITS DD PROJECTION "init=epsg:4326" END LAYER NAME "mygeotiff" DATA "geo.tiff" TYPE RASTER PROJECTION "proj=merc" "a=6378137" "b=6378137" "lat_ts=0.0" "lon_0=0.0" "x_0=0.0" "y_0=0" "k=1.0" "units=m" "nadgrids=@null" END END END cheers J?rn Vegard R?snes From Larissa.Ausderau at swisstopo.ch Thu Oct 28 03:00:46 2010 From: Larissa.Ausderau at swisstopo.ch (Ausderau Larissa LT) Date: Thu, 28 Oct 2010 12:00:46 +0200 Subject: [mapserver-users] Polygon hatch mismatch at tile borders. Message-ID: <14611197A9EA9E409A62B52BBB1308416715F17B0C@LTEXCH01.lt.admin.ch> Hi, I'm using MapServer 5.4.2 and when I'm working with tiles the hatches of hatch filled polygons are not matching at tile borders. See example hatch_mismatch.jpg How can I solve that? Thanks Larissa -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: hatch_mismatch.jpg Type: image/jpeg Size: 11179 bytes Desc: hatch_mismatch.jpg URL: From strunck at bicc.de Thu Oct 28 03:21:00 2010 From: strunck at bicc.de (Strunck, Alexander) Date: Thu, 28 Oct 2010 12:21:00 +0200 Subject: [mapserver-users] AW: Polygon hatch mismatch at tile borders. In-Reply-To: <14611197A9EA9E409A62B52BBB1308416715F17B0C@LTEXCH01.lt.admin.ch> References: <14611197A9EA9E409A62B52BBB1308416715F17B0C@LTEXCH01.lt.admin.ch> Message-ID: Hello you can use the parameter "gutter". Here an example http://trac.osgeo.org/openlayers/browser/trunk/openlayers/examples/gutter.html Or you can use the parameter onetile. Here another example http://dev.openlayers.org/releases/OpenLayers-2.9/examples/notile.html alex Von: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] Im Auftrag von Ausderau Larissa LT Gesendet: Donnerstag, 28. Oktober 2010 12:01 An: 'mapserver-users at lists.osgeo.org' Betreff: [mapserver-users] Polygon hatch mismatch at tile borders. Hi, I'm using MapServer 5.4.2 and when I'm working with tiles the hatches of hatch filled polygons are not matching at tile borders. See example hatch_mismatch.jpg [cid:image001.png at 01CB769A.94B5BA90] How can I solve that? Thanks Larissa ________________________________ -- Internationales Konversionszentrum Bonn Bonn International Center for Conversion (BICC) GmbH Pfarrer- Byns-Stra?e 1, 53121 Bonn, GERMANY Tel. / Phone: +49-228-911 96 0, Fax: +49-228-911 96 - 22 Internet: www.bicc.de, E-mail: bicc at bicc.de Firmensitz/ Office: Bonn Registergericht/ Registered at: Amtsgericht Bonn, HRB 6717 Gesch?ftsf?hrer/ Director: Peter Johannes Croll Prokurist/ Authorized Signatory: Michael Dedek Vorsitzender des Aufsichtsrates/ Chairman of the Supervisory Board: Staatssekret?r/ Deputy Minister Helmut Dockter -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image001.png Type: image/png Size: 11179 bytes Desc: image001.png URL: From Larissa.Ausderau at swisstopo.ch Thu Oct 28 05:47:54 2010 From: Larissa.Ausderau at swisstopo.ch (Ausderau Larissa LT) Date: Thu, 28 Oct 2010 14:47:54 +0200 Subject: [mapserver-users] Polygon hatch mismatch at tile borders. In-Reply-To: Message-ID: <14611197A9EA9E409A62B52BBB1308416715F17B10@LTEXCH01.lt.admin.ch> Thanks Alex, The "gutter" solution gives something better and the "singleTile" solve the problem. Unfortunately I can't use them, because we are pre-generating tiles in order to have good performances, which means that I need a solution at the level MapServer (Mapfile and / or symbol file). I've found that in The MapServer RFC Documentation http://mapserver.org/development/rfc/ms-rfc-45.html: ----------------------------------------------------- Polygon fill symbols Give hatches and vector fills a stable geographical coordinate origin (0,0) to better support tiling and continuous rendering of neighboring polygons ----------------------------------------------------- Does it mean that the problem is known and have been fixed? Best regards! Larissa -----Message d'origine----- De : Strunck, Alexander [mailto:strunck at bicc.de] Envoy? : jeudi, 28. octobre 2010 12:21 ? : Ausderau Larissa LT; 'mapserver-users at lists.osgeo.org' Objet : AW: Polygon hatch mismatch at tile borders. Hello you can use the parameter "gutter". Here an example http://trac.osgeo.org/openlayers/browser/trunk/openlayers/examples/gutter.html Or you can use the parameter onetile. Here another example http://dev.openlayers.org/releases/OpenLayers-2.9/examples/notile.html alex Von: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] Im Auftrag von Ausderau Larissa LT Gesendet: Donnerstag, 28. Oktober 2010 12:01 An: 'mapserver-users at lists.osgeo.org' Betreff: [mapserver-users] Polygon hatch mismatch at tile borders. Hi, I'm using MapServer 5.4.2 and when I'm working with tiles the hatches of hatch filled polygons are not matching at tile borders. See example hatch_mismatch.jpg [cid:005501312 at 28102010-2087] How can I solve that? Thanks Larissa ________________________________ -- Internationales Konversionszentrum Bonn Bonn International Center for Conversion (BICC) GmbH Pfarrer- Byns-Stra?e 1, 53121 Bonn, GERMANY Tel. / Phone: +49-228-911 96 0, Fax: +49-228-911 96 - 22 Internet: www.bicc.de, E-mail: bicc at bicc.de Firmensitz/ Office: Bonn Registergericht/ Registered at: Amtsgericht Bonn, HRB 6717 Gesch?ftsf?hrer/ Director: Peter Johannes Croll Prokurist/ Authorized Signatory: Michael Dedek Vorsitzender des Aufsichtsrates/ Chairman of the Supervisory Board: Staatssekret?r/ Deputy Minister Helmut Dockter -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image001.png Type: image/png Size: 11179 bytes Desc: image001.png URL: From Larissa.Ausderau at swisstopo.ch Thu Oct 28 06:00:47 2010 From: Larissa.Ausderau at swisstopo.ch (Ausderau Larissa LT) Date: Thu, 28 Oct 2010 15:00:47 +0200 Subject: [mapserver-users] Polygon hatch mismatch at tile borders. Message-ID: <14611197A9EA9E409A62B52BBB1308416715F17B11@LTEXCH01.lt.admin.ch> Thanks Alex, The "gutter" solution gives something better and the "singleTile" solve the problem. Unfortunately I can't use them, because we are pre-generating tiles in order to have good performances, which means that I need a solution at the level MapServer (Mapfile and / or symbol file). I've found that in The MapServer RFC Documentation http://mapserver.org/development/rfc/ms-rfc-45.html: ----------------------------------------------------- Polygon fill symbols Give hatches and vector fills a stable geographical coordinate origin (0,0) to better support tiling and continuous rendering of neighboring polygons ----------------------------------------------------- Does it mean that the problem is known and have been fixed? Best regards! Larissa -----Message d'origine----- De : Strunck, Alexander [mailto:strunck at bicc.de] Envoy? : jeudi, 28. octobre 2010 12:21 ? : Ausderau Larissa LT; 'mapserver-users at lists.osgeo.org' Objet : AW: Polygon hatch mismatch at tile borders. Hello you can use the parameter "gutter". Here an example http://trac.osgeo.org/openlayers/browser/trunk/openlayers/examples/gutter.html Or you can use the parameter onetile. Here another example http://dev.openlayers.org/releases/OpenLayers-2.9/examples/notile.html alex Von: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] Im Auftrag von Ausderau Larissa LT Gesendet: Donnerstag, 28. Oktober 2010 12:01 An: 'mapserver-users at lists.osgeo.org' Betreff: [mapserver-users] Polygon hatch mismatch at tile borders. Hi, I'm using MapServer 5.4.2 and when I'm working with tiles the hatches of hatch filled polygons are not matching at tile borders. See example hatch_mismatch.jpg How can I solve that? Thanks Larissa From woodbri at swoodbridge.com Thu Oct 28 06:19:36 2010 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Thu, 28 Oct 2010 09:19:36 -0400 Subject: [mapserver-users] Polygon hatch mismatch at tile borders. In-Reply-To: <14611197A9EA9E409A62B52BBB1308416715F17B11@LTEXCH01.lt.admin.ch> References: <14611197A9EA9E409A62B52BBB1308416715F17B11@LTEXCH01.lt.admin.ch> Message-ID: <4CC97868.4060708@swoodbridge.com> On 10/28/2010 9:00 AM, Ausderau Larissa LT wrote: > Thanks Alex, > > The "gutter" solution gives something better and the "singleTile" > solve the problem. > > Unfortunately I can't use them, because we are pre-generating tiles > in order to have good performances, which means that I need a > solution at the level MapServer (Mapfile and / or symbol file). > > I've found that in The MapServer RFC Documentation > http://mapserver.org/development/rfc/ms-rfc-45.html: > > ----------------------------------------------------- Polygon fill > symbols > > Give hatches and vector fills a stable geographical coordinate origin > (0,0) to better support tiling and continuous rendering of > neighboring polygons > ----------------------------------------------------- > > Does it mean that the problem is known and have been fixed? Larissa, Have you check to see it there is an open bug for this? The RFC would seem to indicate that the problem is known. And that it was considered in RFC45, but it is not clear from the RFC that it was actually solved as there is no bug number at the bottom that specifically tracks that particular change. This RFC was targeted for Mapserver 5.4. If you are on 5.4 or later then you might want to get a ticket opened asap, and maybe a fix can get put in 6.0 to resolve this. Steve L, Thomas B, - Do you guys know if this was tackled or not? -Steve W > Best regards! > > Larissa > > > -----Message d'origine----- De : Strunck, Alexander > [mailto:strunck at bicc.de] Envoy? : jeudi, 28. octobre 2010 12:21 ? : > Ausderau Larissa LT; 'mapserver-users at lists.osgeo.org' Objet : AW: > Polygon hatch mismatch at tile borders. > > > Hello > > you can use the parameter "gutter". Here an example > http://trac.osgeo.org/openlayers/browser/trunk/openlayers/examples/gutter.html > > Or you can use the parameter onetile. Here another example > http://dev.openlayers.org/releases/OpenLayers-2.9/examples/notile.html > > alex > > Von: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] Im Auftrag von > Ausderau Larissa LT Gesendet: Donnerstag, 28. Oktober 2010 12:01 An: > 'mapserver-users at lists.osgeo.org' Betreff: [mapserver-users] Polygon > hatch mismatch at tile borders. > > Hi, > > I'm using MapServer 5.4.2 and when I'm working with tiles the hatches > of hatch filled polygons are not matching at tile borders. See > example hatch_mismatch.jpg > > How can I solve that? > > Thanks > > Larissa _______________________________________________ > mapserver-users mailing list mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From warmerdam at pobox.com Thu Oct 28 06:35:54 2010 From: warmerdam at pobox.com (Frank Warmerdam) Date: Thu, 28 Oct 2010 09:35:54 -0400 Subject: [mapserver-users] Mapserver and projcs in geotiff header In-Reply-To: <201010281150.30413.jorn@spacetec.no> References: <201010281150.30413.jorn@spacetec.no> Message-ID: <4CC97C3A.9040405@pobox.com> J?rn Vegard R?snes wrote: > Hi all, > > just a feature check of Mapserver. > > Should Mapserver read the projection information in the geotiff header, if > PROJECTION is not set in the LAYER def. of the map file? > > I'm testing with Mapserv 5.1-dev, and it's not working without PROJECTION, > only when PROJECTION is set. > I will soon try with a recent version of Mapserver (compiling). J?rn, MapServer does not ask the underlying data source for coordinate system information by default. However, you can setup a projection block like: PROJECTION "auto" END to automatically read the projection through GDAL. This is a little used feature, so it is possible it is broken now. The normal projection block for your coordinate system would look something like: PROJECTION "+proj=merc +lon_0=0 +k=1 +x_0=0 +y_0=0 +datum=WGS84 +units=m +no_defs" END If it is intended to be "google mercator" then you should use: PROJECTION "+proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgrids=@null +no_defs" END Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From jorn at spacetec.no Thu Oct 28 06:55:46 2010 From: jorn at spacetec.no (=?iso-8859-1?q?J=F8rn_Vegard_R=F8snes?=) Date: Thu, 28 Oct 2010 15:55:46 +0200 Subject: [mapserver-users] Mapserver and projcs in geotiff header In-Reply-To: <4CC97C3A.9040405@pobox.com> References: <201010281150.30413.jorn@spacetec.no> <4CC97C3A.9040405@pobox.com> Message-ID: <201010281555.47768.jorn@spacetec.no> Hi Frank, good timing I just finished compiling mapserver 5.6.5, gd, proj, geos,..... On Thursday 28 October 2010 15:35:54 Frank Warmerdam wrote: > J?rn Vegard R?snes wrote: > > Hi all, > > > > just a feature check of Mapserver. > > > > Should Mapserver read the projection information in the geotiff header, > > if PROJECTION is not set in the LAYER def. of the map file? > > > > I'm testing with Mapserv 5.1-dev, and it's not working without > > PROJECTION, only when PROJECTION is set. > > I will soon try with a recent version of Mapserver (compiling). > > J?rn, > > MapServer does not ask the underlying data source for coordinate system > information by default. However, you can setup a projection block like: > > PROJECTION > "auto" > END > > to automatically read the projection through GDAL. This is a little > used feature, so it is possible it is broken now. "auto" works. Not so accurate as the result with proj4 in PROJECTION enabled (map file), but it is probably due to the geotiff headers. Thank you very much. cheers J?rn Vegard > The normal projection > block for your coordinate system would look something like: > > PROJECTION > "+proj=merc +lon_0=0 +k=1 +x_0=0 +y_0=0 +datum=WGS84 +units=m > +no_defs" END > > If it is intended to be "google mercator" then you should use: > > PROJECTION > "+proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 > +y_0=0 +k=1.0 +units=m +nadgrids=@null +no_defs" > END > > Best regards, From thomas.bonfort at gmail.com Thu Oct 28 08:00:22 2010 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Thu, 28 Oct 2010 17:00:22 +0200 Subject: [mapserver-users] Polygon hatch mismatch at tile borders. In-Reply-To: <4CC97868.4060708@swoodbridge.com> References: <14611197A9EA9E409A62B52BBB1308416715F17B11@LTEXCH01.lt.admin.ch> <4CC97868.4060708@swoodbridge.com> Message-ID: Yes, the problem is known and hasn't been addressed yet. This one would be a candidate for 6.2. cheers, thomas On Thu, Oct 28, 2010 at 15:19, Stephen Woodbridge wrote: > On 10/28/2010 9:00 AM, Ausderau Larissa LT wrote: >> >> Thanks Alex, >> >> The "gutter" solution gives something better and the "singleTile" >> solve the problem. >> >> Unfortunately I can't use them, because we are pre-generating tiles >> in order to have good performances, which means that I need a >> solution at the level MapServer (Mapfile and / or symbol file). >> >> I've found that in The MapServer RFC Documentation >> http://mapserver.org/development/rfc/ms-rfc-45.html: >> >> ----------------------------------------------------- Polygon fill >> symbols >> >> Give hatches and vector fills a stable geographical coordinate origin >> (0,0) to better support tiling and continuous rendering of >> neighboring polygons >> ----------------------------------------------------- >> >> Does it mean that the problem is known and ?have been fixed? > > Larissa, > > Have you check to see it there is an open bug for this? > > The RFC would seem to indicate that the problem is known. And that it was > considered in RFC45, but it is not clear from the RFC that it was actually > solved as there is no bug number at the bottom that specifically tracks that > particular change. This RFC was targeted for Mapserver 5.4. > > If you are on 5.4 or later then you might want to get a ticket opened asap, > and maybe a fix can get put in 6.0 to resolve this. > > Steve L, Thomas B, - Do you guys know if this was tackled or not? > > -Steve W > >> Best regards! >> >> Larissa >> >> >> -----Message d'origine----- De : Strunck, Alexander >> [mailto:strunck at bicc.de] Envoy? : jeudi, 28. octobre 2010 12:21 ? : >> Ausderau Larissa LT; 'mapserver-users at lists.osgeo.org' Objet : AW: >> Polygon hatch mismatch at tile borders. >> >> >> Hello >> >> you can use the parameter "gutter". Here an example >> >> http://trac.osgeo.org/openlayers/browser/trunk/openlayers/examples/gutter.html >> >> ?Or you can use the parameter onetile. Here another example >> http://dev.openlayers.org/releases/OpenLayers-2.9/examples/notile.html >> >> ?alex >> >> Von: mapserver-users-bounces at lists.osgeo.org >> [mailto:mapserver-users-bounces at lists.osgeo.org] Im Auftrag von >> Ausderau Larissa LT Gesendet: Donnerstag, 28. Oktober 2010 12:01 An: >> 'mapserver-users at lists.osgeo.org' Betreff: [mapserver-users] Polygon >> hatch mismatch at tile borders. >> >> Hi, >> >> I'm using MapServer 5.4.2 and when I'm working with tiles the hatches >> of hatch filled polygons are not matching at tile borders. See >> example hatch_mismatch.jpg >> >> How can I solve that? >> >> Thanks >> >> Larissa _______________________________________________ >> mapserver-users mailing list mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From Larissa.Ausderau at swisstopo.ch Thu Oct 28 08:25:10 2010 From: Larissa.Ausderau at swisstopo.ch (Ausderau Larissa LT) Date: Thu, 28 Oct 2010 17:25:10 +0200 Subject: [mapserver-users] Polygon hatch mismatch at tile borders. Message-ID: <14611197A9EA9E409A62B52BBB1308416715F17B12@LTEXCH01.lt.admin.ch> Thanks Steve and Thomas, @Steve: I didn't find an open bug for this problem and I'm on MapServer 5.4.2 @both: Should I do a Bug Submission? Cheers, Larissa Yes, the problem is known and hasn't been addressed yet. This one would be a candidate for 6.2. cheers, thomas On Thu, Oct 28, 2010 at 15:19, Stephen Woodbridge > wrote: > On 10/28/2010 9:00 AM, Ausderau Larissa LT wrote: >> >> Thanks Alex, >> >> The "gutter" solution gives something better and the "singleTile" >> solve the problem. >> >> Unfortunately I can't use them, because we are pre-generating tiles >> in order to have good performances, which means that I need a >> solution at the level MapServer (Mapfile and / or symbol file). >> >> I've found that in The MapServer RFC Documentation >> http://mapserver.org/development/rfc/ms-rfc-45.html: >> >> ----------------------------------------------------- Polygon fill >> symbols >> >> Give hatches and vector fills a stable geographical coordinate origin >> (0,0) to better support tiling and continuous rendering of >> neighboring polygons >> ----------------------------------------------------- >> >> Does it mean that the problem is known and have been fixed? > > Larissa, > > Have you check to see it there is an open bug for this? > > The RFC would seem to indicate that the problem is known. And that it was > considered in RFC45, but it is not clear from the RFC that it was actually > solved as there is no bug number at the bottom that specifically tracks that > particular change. This RFC was targeted for Mapserver 5.4. > > If you are on 5.4 or later then you might want to get a ticket opened asap, > and maybe a fix can get put in 6.0 to resolve this. > > Steve L, Thomas B, - Do you guys know if this was tackled or not? > > -Steve W > >> Best regards! >> >> Larissa >> >> >> -----Message d'origine----- De : Strunck, Alexander >> [mailto:HYPERLINK "http://lists.osgeo.org/mailman/listinfo/mapserver-users"strunck at bicc.de ] Envoy? : jeudi, 28. octobre 2010 12:21 ? : >> Ausderau Larissa LT; 'mapserver-users at lists.osgeo.org ' Objet : AW: >> Polygon hatch mismatch at tile borders. >> >> >> Hello >> >> you can use the parameter "gutter". Here an example >> >> http://trac.osgeo.org/openlayers/browser/trunk/openlayers/examples/gutter.html >> >> Or you can use the parameter onetile. Here another example >> http://dev.openlayers.org/releases/OpenLayers-2.9/examples/notile.html >> >> alex >> >> Von: mapserver-users-bounces at lists.osgeo.org >> [mailto:HYPERLINK "http://lists.osgeo.org/mailman/listinfo/mapserver-users"mapserver-users-bounces at lists.osgeo.org ] Im Auftrag von >> Ausderau Larissa LT Gesendet: Donnerstag, 28. Oktober 2010 12:01 An: >> 'mapserver-users at lists.osgeo.org ' Betreff: [mapserver-users] Polygon >> hatch mismatch at tile borders. >> >> Hi, >> >> I'm using MapServer 5.4.2 and when I'm working with tiles the hatches >> of hatch filled polygons are not matching at tile borders. See >> example hatch_mismatch.jpg >> >> How can I solve that? >> >> Thanks >> >> Larissa From woodbri at swoodbridge.com Thu Oct 28 08:56:03 2010 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Thu, 28 Oct 2010 11:56:03 -0400 Subject: [mapserver-users] Polygon hatch mismatch at tile borders. In-Reply-To: <14611197A9EA9E409A62B52BBB1308416715F17B12@LTEXCH01.lt.admin.ch> References: <14611197A9EA9E409A62B52BBB1308416715F17B12@LTEXCH01.lt.admin.ch> Message-ID: <4CC99D13.10909@swoodbridge.com> On 10/28/2010 11:25 AM, Ausderau Larissa LT wrote: > Thanks Steve and Thomas, > > @Steve: I didn't find an open bug for this problem and I'm on MapServer 5.4.2 > > @both: Should I do a Bug Submission? Yes, please open a bug and post the bug number to the list so people that are interested can get cc'd on it. Regards, -Steve W > Cheers, > > Larissa > > > Yes, the problem is known and hasn't been addressed yet. This one > would be a candidate for 6.2. > > cheers, > thomas > > On Thu, Oct 28, 2010 at 15:19, Stephen Woodbridge > > wrote: >> On 10/28/2010 9:00 AM, Ausderau Larissa LT wrote: >>> >>> Thanks Alex, >>> >>> The "gutter" solution gives something better and the "singleTile" >>> solve the problem. >>> >>> Unfortunately I can't use them, because we are pre-generating tiles >>> in order to have good performances, which means that I need a >>> solution at the level MapServer (Mapfile and / or symbol file). >>> >>> I've found that in The MapServer RFC Documentation >>> http://mapserver.org/development/rfc/ms-rfc-45.html: >>> >>> ----------------------------------------------------- Polygon fill >>> symbols >>> >>> Give hatches and vector fills a stable geographical coordinate origin >>> (0,0) to better support tiling and continuous rendering of >>> neighboring polygons >>> ----------------------------------------------------- >>> >>> Does it mean that the problem is known and have been fixed? >> >> Larissa, >> >> Have you check to see it there is an open bug for this? >> >> The RFC would seem to indicate that the problem is known. And that it was >> considered in RFC45, but it is not clear from the RFC that it was actually >> solved as there is no bug number at the bottom that specifically tracks that >> particular change. This RFC was targeted for Mapserver 5.4. >> >> If you are on 5.4 or later then you might want to get a ticket opened asap, >> and maybe a fix can get put in 6.0 to resolve this. >> >> Steve L, Thomas B, - Do you guys know if this was tackled or not? >> >> -Steve W >> >>> Best regards! >>> >>> Larissa >>> >>> >>> -----Message d'origine----- De : Strunck, Alexander >>> [mailto:HYPERLINK "http://lists.osgeo.org/mailman/listinfo/mapserver-users"strunck at bicc.de ] Envoy? : jeudi, 28. octobre 2010 12:21 ? : >>> Ausderau Larissa LT; 'mapserver-users at lists.osgeo.org ' Objet : AW: >>> Polygon hatch mismatch at tile borders. >>> >>> >>> Hello >>> >>> you can use the parameter "gutter". Here an example >>> >>> http://trac.osgeo.org/openlayers/browser/trunk/openlayers/examples/gutter.html >>> >>> Or you can use the parameter onetile. Here another example >>> http://dev.openlayers.org/releases/OpenLayers-2.9/examples/notile.html >>> >>> alex >>> >>> Von: mapserver-users-bounces at lists.osgeo.org >>> [mailto:HYPERLINK "http://lists.osgeo.org/mailman/listinfo/mapserver-users"mapserver-users-bounces at lists.osgeo.org ] Im Auftrag von >>> Ausderau Larissa LT Gesendet: Donnerstag, 28. Oktober 2010 12:01 An: >>> 'mapserver-users at lists.osgeo.org ' Betreff: [mapserver-users] Polygon >>> hatch mismatch at tile borders. >>> >>> Hi, >>> >>> I'm using MapServer 5.4.2 and when I'm working with tiles the hatches >>> of hatch filled polygons are not matching at tile borders. See >>> example hatch_mismatch.jpg >>> >>> How can I solve that? >>> >>> Thanks >>> >>> Larissa > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From ian.walberg at airborne.aero Thu Oct 28 14:34:54 2010 From: ian.walberg at airborne.aero (Ian Walberg) Date: Thu, 28 Oct 2010 17:34:54 -0400 Subject: [mapserver-users] Which is read first TFW or metadata in Geotiff file? Message-ID: Is it possible to a tfw file to be read rather than the meta data in a geotiff file? The reason is we are soft linking the same image file with a different name and want different tfw files for each. Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: From Jukka.Rahkonen at mmmtike.fi Thu Oct 28 15:42:15 2010 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Fri, 29 Oct 2010 01:42:15 +0300 Subject: [mapserver-users] Which is read first TFW or metadata in Geotifffile? References: Message-ID: Hi, Not exactly with tfw files. However, it works by renaming .tfw files into .wld and adding this line into LAYER: PROCESSING "EXTENT_PRIORITY=WORLDFILE" -Jukka Rahkonen- -----Alkuper?inen viesti----- L?hett?j?: mapserver-users-bounces at lists.osgeo.org puolesta: Ian Walberg L?hetetty: pe 29.10.2010 0:34 Vastaanottaja: mapserver-users at lists.osgeo.org Aihe: [mapserver-users] Which is read first TFW or metadata in Geotifffile? Is it possible to a tfw file to be read rather than the meta data in a geotiff file? The reason is we are soft linking the same image file with a different name and want different tfw files for each. Thanks From ian.walberg at airborne.aero Thu Oct 28 15:52:12 2010 From: ian.walberg at airborne.aero (Ian Walberg) Date: Thu, 28 Oct 2010 18:52:12 -0400 Subject: [mapserver-users] Which is read first TFW or metadata in Geotifffile? In-Reply-To: References: Message-ID: Jukka, Many thanks, let us try this. I knew I had seen something link this somewhere. Ian -----Original Message----- From: Rahkonen Jukka [mailto:Jukka.Rahkonen at mmmtike.fi] Sent: Thursday, October 28, 2010 3:42 PM To: Ian Walberg; mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Which is read first TFW or metadata in Geotifffile? Hi, Not exactly with tfw files. However, it works by renaming .tfw files into .wld and adding this line into LAYER: PROCESSING "EXTENT_PRIORITY=WORLDFILE" -Jukka Rahkonen- -----Alkuper?inen viesti----- L?hett?j?: mapserver-users-bounces at lists.osgeo.org puolesta: Ian Walberg L?hetetty: pe 29.10.2010 0:34 Vastaanottaja: mapserver-users at lists.osgeo.org Aihe: [mapserver-users] Which is read first TFW or metadata in Geotifffile? Is it possible to a tfw file to be read rather than the meta data in a geotiff file? The reason is we are soft linking the same image file with a different name and want different tfw files for each. Thanks From Larissa.Ausderau at swisstopo.ch Fri Oct 29 04:37:51 2010 From: Larissa.Ausderau at swisstopo.ch (Ausderau Larissa LT) Date: Fri, 29 Oct 2010 13:37:51 +0200 Subject: [mapserver-users] Polygon hatch mismatch at tile borders. In-Reply-To: <20101028155706.34242E020BF@lists.osgeo.org> Message-ID: <14611197A9EA9E409A62B52BBB1308416715F17B16@LTEXCH01.lt.admin.ch> Thanks for the help guys! I've open a bug with that problem: http://trac.osgeo.org/mapserver/ticket/3592 ------------------------------ Subject: Polygon hatch mismatch at tiles borders Content: MapServer 5.4.2 The hatches of hatch filled polygons are not matching at tile borders. Example: hatch_mismatch.jpg It looks that the problem was already known, , it's already mentioned in MapServer RFC Documentation http://mapserver.org/development/rfc/ms-rfc-45.html: --- Polygon fill symbols Give hatches and vector fills a stable geographical coordinate origin (0,0) to better support tiling and continuous rendering of neighboring polygons --- ---CODE--- Mapfile: LAYER ... CONNECTIONTYPE POSTGIS NAME "eau_vie_poire" STATUS OFF TEMPLATE "ttt" TYPE POLYGON CLASS NAME "Eau-de-vie de poire du Valais (AOC)" EXPRESSION ([eig_code] = 2) STYLE ANGLE 360 COLOR 0 0 255 OUTLINECOLOR 0 0 255 SIZE 10 SYMBOL "downwarddiagonalfill" WIDTH 1 END END END Symbol file: SYMBOL NAME "downwarddiagonalfill" TYPE vector TRANSPARENT 0 POINTS 0 3 3 0 END END ---CODE--- ------------------------------ Cheers, Larissa From wimvanbelle at gmail.com Fri Oct 29 05:09:43 2010 From: wimvanbelle at gmail.com (Wim Vanbelle) Date: Fri, 29 Oct 2010 14:09:43 +0200 Subject: [mapserver-users] Polygon hatch mismatch at tile borders. In-Reply-To: References: <14611197A9EA9E409A62B52BBB1308416715F17B11@LTEXCH01.lt.admin.ch> <4CC97868.4060708@swoodbridge.com> Message-ID: I mailed this list for an issue regarding lines that have a certain thickness, that get cut off at the tile. Is this related to the same known issue above? So far I've been unable to resolve it using other suggestions. While using openlayers I can effectively use gutter, but that is a client side solution. I'd prefer something at the mapserver level as the client solution wouldn't work on google or bing maps. Steve Lime: this was the problem I reported to you a while ago. Maybe there's an update on the case since then? The original mail can be found at : http://osgeo-org.1803224.n2.nabble.com/Mapserver-tile-generation-google-maps-td5444090.html#a5455480 Using tilecache is not an option, I'm dealing with realtime information. Thanks. On 28 October 2010 17:00, thomas bonfort wrote: > Yes, the problem is known and hasn't been addressed yet. This one > would be a candidate for 6.2. > > cheers, > thomas > > On Thu, Oct 28, 2010 at 15:19, Stephen Woodbridge > wrote: > > On 10/28/2010 9:00 AM, Ausderau Larissa LT wrote: > >> > >> Thanks Alex, > >> > >> The "gutter" solution gives something better and the "singleTile" > >> solve the problem. > >> > >> Unfortunately I can't use them, because we are pre-generating tiles > >> in order to have good performances, which means that I need a > >> solution at the level MapServer (Mapfile and / or symbol file). > >> > >> I've found that in The MapServer RFC Documentation > >> http://mapserver.org/development/rfc/ms-rfc-45.html: > >> > >> ----------------------------------------------------- Polygon fill > >> symbols > >> > >> Give hatches and vector fills a stable geographical coordinate origin > >> (0,0) to better support tiling and continuous rendering of > >> neighboring polygons > >> ----------------------------------------------------- > >> > >> Does it mean that the problem is known and have been fixed? > > > > Larissa, > > > > Have you check to see it there is an open bug for this? > > > > The RFC would seem to indicate that the problem is known. And that it was > > considered in RFC45, but it is not clear from the RFC that it was > actually > > solved as there is no bug number at the bottom that specifically tracks > that > > particular change. This RFC was targeted for Mapserver 5.4. > > > > If you are on 5.4 or later then you might want to get a ticket opened > asap, > > and maybe a fix can get put in 6.0 to resolve this. > > > > Steve L, Thomas B, - Do you guys know if this was tackled or not? > > > > -Steve W > > > >> Best regards! > >> > >> Larissa > >> > >> > >> -----Message d'origine----- De : Strunck, Alexander > >> [mailto:strunck at bicc.de] Envoy? : jeudi, 28. octobre 2010 12:21 ? : > >> Ausderau Larissa LT; 'mapserver-users at lists.osgeo.org' Objet : AW: > >> Polygon hatch mismatch at tile borders. > >> > >> > >> Hello > >> > >> you can use the parameter "gutter". Here an example > >> > >> > http://trac.osgeo.org/openlayers/browser/trunk/openlayers/examples/gutter.html > >> > >> Or you can use the parameter onetile. Here another example > >> http://dev.openlayers.org/releases/OpenLayers-2.9/examples/notile.html > >> > >> alex > >> > >> Von: mapserver-users-bounces at lists.osgeo.org > >> [mailto:mapserver-users-bounces at lists.osgeo.org] Im Auftrag von > >> Ausderau Larissa LT Gesendet: Donnerstag, 28. Oktober 2010 12:01 An: > >> 'mapserver-users at lists.osgeo.org' Betreff: [mapserver-users] Polygon > >> hatch mismatch at tile borders. > >> > >> Hi, > >> > >> I'm using MapServer 5.4.2 and when I'm working with tiles the hatches > >> of hatch filled polygons are not matching at tile borders. See > >> example hatch_mismatch.jpg > >> > >> How can I solve that? > >> > >> Thanks > >> > >> Larissa _______________________________________________ > >> mapserver-users mailing list mapserver-users at lists.osgeo.org > >> http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > _______________________________________________ > > mapserver-users mailing list > > mapserver-users at lists.osgeo.org > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -------------- next part -------------- An HTML attachment was scrubbed... URL: From paul.devries.wpc at gmail.com Fri Oct 29 10:21:25 2010 From: paul.devries.wpc at gmail.com (Paul DeVries) Date: Fri, 29 Oct 2010 19:21:25 +0200 Subject: [mapserver-users] XAMPP, mapscript, PHP API Message-ID: <4CCB0295.4060903@gmail.com> Trying to get Mapserver and PHP Mapscript installed, under already running Apache (XAMPP, W7, Apache 2.2.14 (Win32),PHP 5.3.1) Have followed advice I could find, as best I could: 1. followed steps http://www.maptools.org/ms4w/index.phtml?page=README_INSTALL.html#i-installing-the-ms4w-mapserver-binaries-in-other-environments Using files from ms4w 2.3.1. So listed dlls are in C:\xampp\cgi-bin php_mapscript.dllis in C:\xampp\php\ext Various paths in conf/httpd.conf set Mapserver running, for exampled testing http://localhost/cgi-bin/mapserv.exe?map=/ms4w/apps/tutorial/htdocs/example1-1.map&layer=states&mode=map , OK; commandline tools OK. php.ini has extension=php_mapscript.dll, php.ini is the correct one (have activated/deactivated several other extensions which are then reflected in php_info) 2. now I want the PHP mapscript to work, the goal... testing with quickmap.php (got rid of the dl() call as it's not supported and I have mapscript in php.ini as an extension) "Call to undefined function ms_newMapObj() in*C:\xampp\htdocs\quickmap.php*on line*27" *hmm, ok, and the mapscript extension is not showing up in php_info either running: php.exe ....htdocs/phpinfo_mapscript.php or any *.php using the mapscript dll, getting ... Module compiled with module API=20060613 PHP compiled with module API=20090626 ...they must match ... Suggestions? Do I have to compile php_mapscript.dll to somehow match the PHP compilation? /Paul -------------- next part -------------- An HTML attachment was scrubbed... URL: From carter.sharon017 at gmail.com Fri Oct 29 16:46:24 2010 From: carter.sharon017 at gmail.com (Sharon Carter) Date: Fri, 29 Oct 2010 17:46:24 -0600 Subject: [mapserver-users] Problems with AGG rendering In-Reply-To: References: Message-ID: Hi Steve. After you mentioned the tile aspect in your answer we started double checking the tile creation scripts. After a while we discovered that the problem was not on the metatile creation with mapserver but rather on the tile creation functions we were using to split the metatiles to create the tiles. Thank you guys. Sharon 2010/10/26 Lime, Steve D (DNR) > Can you post more of your mapfile including the AGG output format? Are > your sample images from a single map draw or were they build from a number > of tiles? > > > > Steve > > > > *From:* mapserver-users-bounces at lists.osgeo.org [mailto: > mapserver-users-bounces at lists.osgeo.org] *On Behalf Of *Sharon Carter > *Sent:* Tuesday, October 26, 2010 4:16 PM > *To:* thomas bonfort > *Cc:* mapserver-users at lists.osgeo.org > *Subject:* Re: [mapserver-users] Problems with AGG rendering > > > > Thanks for the answer Thomas. > > I changed the definition per your suggestion, the map file is much cleaner > now. But, we are still getting the same result with the rendering. In GD is > working fine but in Agg the same weird colored areas keep showing up. > > --sharon > > 2010/10/26 thomas bonfort > > Rendering thick lines is done without symbols with agg (and GD with > recent versions of mapserver to, I believe) > > for an outlined line, you use: > > CLASS > STYLE > COLOR outlinecolor > WIDTH 5 > END > STYLE > COLOR fillcolor > WIDTH 3 #width of the first style minus 2 times the desired outline > width > END > END > > regards, > thomas > > > On Mon, Oct 25, 2010 at 19:21, Sharon Carter > wrote: > > Hello, > > > > We have been working with mapserver for a while and now we are updating > our > > map. We decided to give AGG a try for this new version but we have been > > having some troubles setting it up to work properly. > > > > When we moved from GD to AGG the map starting showing areas with > different > > colors than the ones specified in the map file. > > > > Here we have an image with the rendering with GD > > http://67.23.24.210/mapserver/gd.png > > > > And one with AGG http://67.23.24.210/mapserver/agg.png > > > > > > The output format for AGG we are using is > > > > OUTPUTFORMAT > > NAME 'PNG' > > DRIVER AGG/PNG > > IMAGEMODE RGBA > > MIMETYPE "image/png;mode=24bit" > > FORMATOPTION "FORMAT=image/png" > > END > > > > > > The street lines are painted using a symbol to create the outline for the > > streets. > > > > Any ideas what could be causing this? > > > > Thanks > > > > Sharon > > > > > _______________________________________________ > > mapserver-users mailing list > > mapserver-users at lists.osgeo.org > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From benfell at parts-unknown.org Sun Oct 31 18:31:08 2010 From: benfell at parts-unknown.org (David Benfell) Date: Sun, 31 Oct 2010 18:31:08 -0700 Subject: [mapserver-users] Mapserver Demo not available: 404 Not Found Message-ID: <20101101013108.GA480@parts-unknown.org> Hi all, I recently installed Mapserver on my server. I'm trying to download the demo, but I get "404 Not Found" from the URL provided on http://mapserver.org/introduction.html which is http://maps.dnr.state.mn.us/mapserver_demos/workshop-5.0.zip It has been this way for at least a week. Is there a new URL? Thanks! -- David Benfell http://www.parts-unknown.org/ -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 198 bytes Desc: Digital signature URL: From gluker at scu.edu.au Sun Oct 31 18:55:20 2010 From: gluker at scu.edu.au (Greg Luker) Date: Mon, 01 Nov 2010 12:55:20 +1100 Subject: [mapserver-users] Mapserver Demo not available: 404 Not Found In-Reply-To: <20101101013108.GA480@parts-unknown.org> References: <20101101013108.GA480@parts-unknown.org> Message-ID: <201011010155.oA11tMrN002704@atom.scu.edu.au> Hi David, >I recently installed Mapserver on my server. I'm trying to download >the demo, but I get "404 Not Found" from the URL provided on >http://mapserver.org/introduction.html which is >http://maps.dnr.state.mn.us/mapserver_demos/workshop-5.0.zip >It has been this way for at least a week. Is there a new URL? I found the 5.4 version of the demo here: http://mapserver.org/download.html (scroll to the bottom of the page for a link to the MapServer 5.4.x Demo) Thanks, Greg. Greg Luker GIS Lab Manager Southern Cross University AUSTRALIA 61 2 66203026 From benfell at parts-unknown.org Sun Oct 31 19:32:26 2010 From: benfell at parts-unknown.org (David Benfell) Date: Sun, 31 Oct 2010 19:32:26 -0700 Subject: [mapserver-users] Mapserver Demo not available: 404 Not Found In-Reply-To: <201011010155.oA11tMrN002704@atom.scu.edu.au> References: <20101101013108.GA480@parts-unknown.org> <201011010155.oA11tMrN002704@atom.scu.edu.au> Message-ID: <20101101023226.GA29029@parts-unknown.org> On Mon, 01 Nov 2010, Greg Luker wrote: > I found the 5.4 version of the demo here: > > http://mapserver.org/download.html > > (scroll to the bottom of the page for a link to the MapServer 5.4.x Demo) > http://maps.dnr.state.mn.us/mapserver_demos/workshop-5.4.zip Got it, thanks! -- David Benfell http://www.parts-unknown.org/ -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 198 bytes Desc: Digital signature URL: