From jukka.rahkonen at maanmittauslaitos.fi Sun Nov 1 09:06:37 2015 From: jukka.rahkonen at maanmittauslaitos.fi (Rahkonen Jukka (MML)) Date: Sun, 1 Nov 2015 17:06:37 +0000 Subject: [mapserver-users] There is no default symbol for points or is there? Message-ID: <7f3f5116d7714205a2a19fb099333b78@C119S212VM022.msvyvi.vaha.local> Hi, >From document page http://www.mapserver.org/mapfile/symbol.html#symbol: "Symbol 0 is always the degenerate case for a particular class of symbol. For points, symbol 0 is a single pixel, for shading (i.e. filled polygons) symbol 0 is a solid fill, and for lines, symbol 0 is a single pixel wide line." Also, from http://mapserver.org/mapfile/style.html#style I can read: "If SYMBOL is not specified, the behaviour depends on the type of feature. For points, nothing will be rendered." I made a few tests and this CLASS does not render anything: CLASS STYLE SYMBOL 0 COLOR 100 200 100 END #STYLE END #CLASS I can make points to render if I have this in the mapfile: SYMBOL NAME "circlef" TYPE ellipse FILLED true POINTS 1 1 END # POINTS END # SYMBOL ... CLASS STYLE SYMBOL "circlef" SIZE 15 COLOR 100 200 100 END #STYLE END #CLASS Does this mean that "SYMBOL 0" is not supported any more but documentation lags behind, or should "SYMBOL 0" work for point layers but there is a bug? I have been wondering about ten years now why I can give just color in a class and get something to show from lines and polygons, but for points I need to define symbol as well. I guess there is some good reason for that. -Jukka Rahkonen- From pasquale.didonato at gmail.com Tue Nov 3 01:38:58 2015 From: pasquale.didonato at gmail.com (Pasquale Di Donato) Date: Tue, 3 Nov 2015 10:38:58 +0100 Subject: [mapserver-users] ows:ExtendedCapabilities with MapServer Message-ID: Hi all does MapServer support generic "ows:ExtendedCapabilities" except those set for INSPIRE? Pasquale -------------- next part -------------- An HTML attachment was scrubbed... URL: From Tom.Kralidis at ec.gc.ca Tue Nov 3 03:37:57 2015 From: Tom.Kralidis at ec.gc.ca (Kralidis,Tom [Ontario]) Date: Tue, 3 Nov 2015 06:37:57 -0500 Subject: [mapserver-users] ows:ExtendedCapabilities with MapServer In-Reply-To: References: Message-ID: Not that I know of. What is your use case for using ows:ExtendedCapabilities? ..Tom From: mapserver-users [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Pasquale Di Donato Sent: 2015-11-03 04:39 To: mapserver-users Subject: [mapserver-users] ows:ExtendedCapabilities with MapServer Hi all does MapServer support generic "ows:ExtendedCapabilities" except those set for INSPIRE? Pasquale From aperi2007 at gmail.com Tue Nov 3 04:27:29 2015 From: aperi2007 at gmail.com (Andrea Peri) Date: Tue, 3 Nov 2015 13:27:29 +0100 Subject: [mapserver-users] The right character enconding for mapfile Message-ID: Hi, sorry for the question, but I'm not skill on character enconding questions. My dubt is to understand what should be the right character encoding for the mapfile ? The question born from the notice that the response at the getcapabilities request return an xml where is declared: But the containing seem don't be a real utf-8. I don't understand if should be the mapserver to convert into UTF-8 or should be the user to write a regular UTF-8 mapfile. Thx, -- ----------------- Andrea Peri . . . . . . . . . qwerty ????? ----------------- From thomas.bonfort at gmail.com Tue Nov 3 04:28:51 2015 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Tue, 3 Nov 2015 13:28:51 +0100 Subject: [mapserver-users] The right character enconding for mapfile In-Reply-To: References: Message-ID: >From mapserver 7.0 onwards, *always* encode your mapfile as UTF8. For more info read the migration guide and corresponding RFC. -- thomas On 3 November 2015 at 13:27, Andrea Peri wrote: > Hi, > > sorry for the question, but I'm not skill on character enconding questions. > > My dubt is to understand what should be the right character encoding > for the mapfile ? > > The question born from the notice that the response at the > getcapabilities request return an xml where is declared: > > > > But the containing seem don't be a real utf-8. > > I don't understand if should be the mapserver to convert into UTF-8 or > should be the user to write a regular UTF-8 mapfile. > > Thx, > > -- > ----------------- > Andrea Peri > . . . . . . . . . > qwerty ????? > ----------------- > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From jukka.rahkonen at maanmittauslaitos.fi Tue Nov 3 05:06:16 2015 From: jukka.rahkonen at maanmittauslaitos.fi (Rahkonen Jukka (MML)) Date: Tue, 3 Nov 2015 13:06:16 +0000 Subject: [mapserver-users] The right character enconding for mapfile Message-ID: Hi, I have noticed that the encoding must be "UTF-8 without BOM". Notepad++ has en encoding alternative "UTF-8" which seems to write "UTF-8 with BOM" and because of Byte order marker Mapserver does not accept such mapfiles. I am not sure if this is something to mention in the documentation or if it is rather a bug. Similar issue in GDAL was fixed by https://trac.osgeo.org/gdal/changeset/30994 Migration guide is http://mapserver.org/MIGRATION_GUIDE.html Corresponding RCF is http://mapserver.org/development/rfc/ms-rfc-103.html -Jukka Rahkonen- thomas Bonfort wrote: From mapserver 7.0 onwards, *always* encode your mapfile as UTF8. For more info read the migration guide and corresponding RFC. -- thomas On 3 November 2015 at 13:27, Andrea Peri wrote: > Hi, > > sorry for the question, but I'm not skill on character enconding questions. > > My dubt is to understand what should be the right character encoding > for the mapfile ? > > The question born from the notice that the response at the > getcapabilities request return an xml where is declared: > > > > But the containing seem don't be a real utf-8. > > I don't understand if should be the mapserver to convert into UTF-8 or > should be the user to write a regular UTF-8 mapfile. > > Thx, > > -- > ----------------- > Andrea Peri > . . . . . . . . . > qwerty ????? > ----------------- > _______________________________________________ > 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 pasquale.didonato at gmail.com Tue Nov 3 06:19:43 2015 From: pasquale.didonato at gmail.com (Pasquale Di Donato) Date: Tue, 3 Nov 2015 15:19:43 +0100 Subject: [mapserver-users] ows:ExtendedCapabilities with MapServer In-Reply-To: References: Message-ID: Hi Tom Thanks for your answer. I'd like to set something "? la INSPIRE" for multilingual support but with my own namespace and types definition. Pasquale Il marted? 3 novembre 2015, Kralidis,Tom [Ontario] ha scritto: > Not that I know of. What is your use case for using > ows:ExtendedCapabilities? > > ..Tom > > From: mapserver-users [mailto:mapserver-users-bounces at lists.osgeo.org > ] On Behalf Of Pasquale Di Donato > Sent: 2015-11-03 04:39 > To: mapserver-users > Subject: [mapserver-users] ows:ExtendedCapabilities with MapServer > > Hi all > > does MapServer support generic "ows:ExtendedCapabilities" except those set > for INSPIRE? > > Pasquale > -------------- next part -------------- An HTML attachment was scrubbed... URL: From Tom.Kralidis at ec.gc.ca Tue Nov 3 06:53:14 2015 From: Tom.Kralidis at ec.gc.ca (Kralidis,Tom [Ontario]) Date: Tue, 3 Nov 2015 09:53:14 -0500 Subject: [mapserver-users] ows:ExtendedCapabilities with MapServer In-Reply-To: References: Message-ID: Hi Pasquale: any chance you can use the INSPIRE support to fit your use case(s)? Alternatively you can use the MapScript WxS support [1] to provide a custom Capabilities document. [1] http://mapserver.org/ogc/mapscript.html From: Pasquale Di Donato [mailto:pasquale.didonato at gmail.com] Sent: 2015-11-03 09:20 To: Kralidis,Tom [Ontario] Cc: mapserver-users Subject: Re: ows:ExtendedCapabilities with MapServer Hi Tom Thanks for your answer. I'd like to set something "? la INSPIRE" for multilingual support but with my own namespace and?types definition. Pasquale Il marted? 3 novembre 2015, Kralidis,Tom [Ontario] ha scritto: Not that I know of.? What is your use case for using ows:ExtendedCapabilities? ..Tom From: mapserver-users [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Pasquale Di Donato Sent: 2015-11-03 04:39 To: mapserver-users Subject: [mapserver-users] ows:ExtendedCapabilities with MapServer Hi all does MapServer support generic "ows:ExtendedCapabilities" except those set for INSPIRE? Pasquale From pasquale.didonato at gmail.com Tue Nov 3 07:19:09 2015 From: pasquale.didonato at gmail.com (Pasquale Di Donato) Date: Tue, 3 Nov 2015 16:19:09 +0100 Subject: [mapserver-users] ows:ExtendedCapabilities with MapServer In-Reply-To: References: Message-ID: Hi Tom I cannot use the INSPIRE stuff, since INSPIRE does not apply in my case. I will have a look at MapScript Many thanks Pasquale On Tue, Nov 3, 2015 at 3:53 PM, Kralidis,Tom [Ontario] < Tom.Kralidis at ec.gc.ca> wrote: > Hi Pasquale: any chance you can use the INSPIRE support to fit your use > case(s)? > > Alternatively you can use the MapScript WxS support [1] to provide a > custom Capabilities document. > > [1] http://mapserver.org/ogc/mapscript.html > > > From: Pasquale Di Donato [mailto:pasquale.didonato at gmail.com] > Sent: 2015-11-03 09:20 > To: Kralidis,Tom [Ontario] > Cc: mapserver-users > Subject: Re: ows:ExtendedCapabilities with MapServer > > Hi Tom > Thanks for your answer. > I'd like to set something "? la INSPIRE" for multilingual support but with > my own namespace and types definition. > Pasquale > > Il marted? 3 novembre 2015, Kralidis,Tom [Ontario] > ha scritto: > Not that I know of. What is your use case for using > ows:ExtendedCapabilities? > > ..Tom > > From: mapserver-users [mailto:mapserver-users-bounces at lists.osgeo.org] On > Behalf Of Pasquale Di Donato > Sent: 2015-11-03 04:39 > To: mapserver-users > Subject: [mapserver-users] ows:ExtendedCapabilities with MapServer > > Hi all > > does MapServer support generic "ows:ExtendedCapabilities" except those set > for INSPIRE? > > Pasquale > -------------- next part -------------- An HTML attachment was scrubbed... URL: From luca.paganotti at gmail.com Wed Nov 4 02:49:31 2015 From: luca.paganotti at gmail.com (luca paganotti) Date: Wed, 4 Nov 2015 11:49:31 +0100 Subject: [mapserver-users] pmapper setup on centOS 7 Message-ID: Hi list, I'm new to map server and pmapper. I'm requested to setup a centOS 7 box running mapserver and pmapper (v. 4). I followed some info I found on: - http://svn.pmapper.net/trac/wiki/DocQuickinstall - http://www.rigacci.net/wiki/doku.php/formazione/web_programming/pmapper4 but unfortunately I'm not able to view any map/layer. I see the ui but the map loading stucks forever telling me that a loading is in progress ... forever ... I'm asking this list, but if it's not the right place where to ask, please redirect me to the right place. I'm searching for a detailed step by step guide on how to setup at least a pmapper site with the demodata visible. Please forgive my english and thanks for any answer. ---------------------------------------------------------------- -- Luca Paganotti ---------------------------------------------------------------- -- luca.paganotti at gmail.com -- skype name: luca.paganotti [image: http://it.linkedin.com/in/lucapaganotti] ----------------------------------------------------------------- -- Mistakes are portals of discovery - JAAJ ----------------------------------------------------------------- -------------- next part -------------- An HTML attachment was scrubbed... URL: From jmckenna at gatewaygeomatics.com Wed Nov 4 04:57:04 2015 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Wed, 4 Nov 2015 08:57:04 -0400 Subject: [mapserver-users] pmapper setup on centOS 7 In-Reply-To: References: Message-ID: <563A00A0.8010909@gatewaygeomatics.com> Hi Luca, I haven't seen much development happening with pmapper lately; you might instead take a look at GeoMOOSE, if you are looking for an active MapServer framework that includes PHPmapscript - main site http://www.geomoose.org/ - mailing list https://lists.osgeo.org/mailman/listinfo/geomoose-users -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ On 2015-11-04 6:49 AM, luca paganotti wrote: > Hi list, I'm new to map server and pmapper. I'm requested to setup a > centOS 7 box running mapserver and pmapper (v. 4). I followed some info > I found on: > > * http://svn.pmapper.net/trac/wiki/DocQuickinstall > * http://www.rigacci.net/wiki/doku.php/formazione/web_programming/pmapper4 > > but unfortunately I'm not able to view any map/layer. I see the ui but > the map loading stucks forever telling me that a loading is in progress > ... forever ... > > I'm asking this list, but if it's not the right place where to ask, > please redirect me to the right place. > > I'm searching for a detailed step by step guide on how to setup at least > a pmapper site with the demodata visible. > > > Please forgive my english and thanks for any answer. > > ---------------------------------------------------------------- > > -- Luca Paganotti > ---------------------------------------------------------------- > -- luca.paganotti at gmail.com > -- skype name: luca.paganotti > http://it.linkedin.com/in/lucapaganotti > > ----------------------------------------------------------------- > -- Mistakes are portals of discovery - JAAJ > ----------------------------------------------------------------- > > > From jmckenna at gatewaygeomatics.com Wed Nov 4 07:11:22 2015 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Wed, 4 Nov 2015 11:11:22 -0400 Subject: [mapserver-users] pmapper setup on centOS 7 In-Reply-To: References: <563A00A0.8010909@gatewaygeomatics.com> Message-ID: <563A201A.6090109@gatewaygeomatics.com> Hi Luca, You can also try asking the pmappers-users list directly: https://lists.sourceforge.net/lists/listinfo/pmapper-users -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ On 2015-11-04 10:24 AM, luca paganotti wrote: > Hi Jeff, thanks for the quick answer! Unfortunately I'm compelled to > pmapper and centOS as I'm in the middle of the porting process of a very > old machine (ubuntu 9.01 which is no more supported). I have a running > example of pmapper 4 on this old ubuntu box that is on the production > environment. I'm trying to port the same setup on the centOS machine but > surely something is wrong in my new setup. It's been a few weeks that > I've started this process and the last step (pmapper ...) seems to be > very hard. I've now a centOS 7 virtual machine on which I'm trying the > new setup. Thanks again for the two links, I took a look at the first > one and maybe I'll post my request also on Geomoose mailing list. > > Best regards > > ---------------------------------------------------------------- > -- Luca Paganotti > ---------------------------------------------------------------- > -- lucapaganotti at users.sourceforge.net > > -- skype name: luca.paganotti > http://it.linkedin.com/in/lucapaganotti > > ----------------------------------------------------------------- > -- Mistakes are portals of discovery - JAAJ > ----------------------------------------------------------------- > > > > > > On Wed, Nov 4, 2015 at 1:57 PM, Jeff McKenna > > > wrote: > > Hi Luca, > > I haven't seen much development happening with pmapper lately; you > might instead take a look at GeoMOOSE, if you are looking for an > active MapServer framework that includes PHPmapscript > > - main site http://www.geomoose.org/ > - mailing list https://lists.osgeo.org/mailman/listinfo/geomoose-users > > -jeff > > > -- > Jeff McKenna > MapServer Consulting and Training Services > http://www.gatewaygeomatics.com/ > > > > On 2015-11-04 6:49 AM, luca paganotti wrote: > > Hi list, I'm new to map server and pmapper. I'm requested to setup a > centOS 7 box running mapserver and pmapper (v. 4). I followed > some info > I found on: > > * http://svn.pmapper.net/trac/wiki/DocQuickinstall > * > http://www.rigacci.net/wiki/doku.php/formazione/web_programming/pmapper4 > > but unfortunately I'm not able to view any map/layer. I see the > ui but > the map loading stucks forever telling me that a loading is in > progress > ... forever ... > > I'm asking this list, but if it's not the right place where to ask, > please redirect me to the right place. > > I'm searching for a detailed step by step guide on how to setup > at least > a pmapper site with the demodata visible. > > > Please forgive my english and thanks for any answer. > > ---------------------------------------------------------------- > > -- Luca Paganotti > ---------------------------------------------------------------- > -- luca.paganotti at gmail.com > > > -- skype name: luca.paganotti > http://it.linkedin.com/in/lucapaganotti > > ----------------------------------------------------------------- > -- Mistakes are portals of discovery - JAAJ > ----------------------------------------------------------------- > > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > From marcandre_trottier at hotmail.com Wed Nov 4 07:50:25 2015 From: marcandre_trottier at hotmail.com (=?UTF-8?Q?Marc=2DAndr=C3=A9_Trottier?=) Date: Wed, 4 Nov 2015 10:50:25 -0500 Subject: [mapserver-users] Postgis raster in view Message-ID: it seems to be impossible to read a view containing a raster with mapserver 6.4. but i can see my data with QGis 2.8.1. trying with : DATA "PG:host=XXX port=5432 dbname='pgsyst' user='XXX' password='XXX' schema='XXX' table='view_name' mode='2' i miss something ? i guess that "raster_columns" as something to do with the problem because it contains no data about my view. there is a possible workaround as Qgis does ? -------------- next part -------------- An HTML attachment was scrubbed... URL: From its.the.doc at gmail.com Thu Nov 5 14:06:59 2015 From: its.the.doc at gmail.com (kelly elton) Date: Thu, 05 Nov 2015 22:06:59 +0000 Subject: [mapserver-users] Thread Safety Message-ID: Say....if I have two processes using the mapserver dll, are they going to conflict? I'm noticing on the website it says "OGR layers: use unsafe CPL services"...In my map file I have 'CONNECTIONTYPE OGR'....what I do with the map object is project, and then draw to png, and that's about it....this isn't thread safe then? What about if I have multiple map objects, one per thread....is that thread safe? -------------- next part -------------- An HTML attachment was scrubbed... URL: From its.the.doc at gmail.com Thu Nov 5 14:34:56 2015 From: its.the.doc at gmail.com (kelly elton) Date: Thu, 05 Nov 2015 22:34:56 +0000 Subject: [mapserver-users] Thread Safety In-Reply-To: References: Message-ID: To be sure, are you saying I can use a single map object for multiple threads, or will I need to have one map object per thread? What would you suggest? On Thu, Nov 5, 2015 at 5:33 PM Lime, Steve D (MNIT) wrote: > You should be fine. I believe there are locks (mutex) around places where > this is known to be a problem. I?ve never heard user reports of issues in > this regard. > > > > Steve > > > > *From:* mapserver-users [mailto:mapserver-users-bounces at lists.osgeo.org] *On > Behalf Of *kelly elton > *Sent:* Thursday, November 05, 2015 4:07 PM > *To:* mapserver-users at lists.osgeo.org > *Subject:* [mapserver-users] Thread Safety > > > > Say....if I have two processes using the mapserver dll, are they going to > conflict? > > I'm noticing on the website it says "OGR layers: use unsafe CPL > services"...In my map file I have 'CONNECTIONTYPE OGR'....what I do with > the map object is project, and then draw to png, and that's about > it....this isn't thread safe then? What about if I have multiple map > objects, one per thread....is that thread safe? > -------------- next part -------------- An HTML attachment was scrubbed... URL: From its.the.doc at gmail.com Thu Nov 5 14:43:52 2015 From: its.the.doc at gmail.com (kelly elton) Date: Thu, 05 Nov 2015 22:43:52 +0000 Subject: [mapserver-users] Thread Safety In-Reply-To: References: Message-ID: Yeah it's mapscript On Thu, Nov 5, 2015, 5:42 PM Lime, Steve D (MNIT) wrote: > Is this for MapScript? Should really let Tamas chime in. A single mapObj > instance is modified during the course of a request once ingested from the > mapfile. For example, it holds a populated label cache and other changes > made after it is loaded specific to a request. So I guess that means one > mapObj per thread. > > > > *From:* kelly elton [mailto:its.the.doc at gmail.com] > *Sent:* Thursday, November 05, 2015 4:35 PM > *To:* Lime, Steve D (MNIT) ; > mapserver-users at lists.osgeo.org > *Subject:* Re: [mapserver-users] Thread Safety > > > > To be sure, are you saying I can use a single map object for multiple > threads, or will I need to have one map object per thread? What would you > suggest? > > > > On Thu, Nov 5, 2015 at 5:33 PM Lime, Steve D (MNIT) < > Steve.Lime at state.mn.us> wrote: > > You should be fine. I believe there are locks (mutex) around places where > this is known to be a problem. I?ve never heard user reports of issues in > this regard. > > > > Steve > > > > *From:* mapserver-users [mailto:mapserver-users-bounces at lists.osgeo.org] *On > Behalf Of *kelly elton > *Sent:* Thursday, November 05, 2015 4:07 PM > *To:* mapserver-users at lists.osgeo.org > *Subject:* [mapserver-users] Thread Safety > > > > Say....if I have two processes using the mapserver dll, are they going to > conflict? > > I'm noticing on the website it says "OGR layers: use unsafe CPL > services"...In my map file I have 'CONNECTIONTYPE OGR'....what I do with > the map object is project, and then draw to png, and that's about > it....this isn't thread safe then? What about if I have multiple map > objects, one per thread....is that thread safe? > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From Steve.Lime at state.mn.us Thu Nov 5 14:42:00 2015 From: Steve.Lime at state.mn.us (Lime, Steve D (MNIT)) Date: Thu, 5 Nov 2015 22:42:00 +0000 Subject: [mapserver-users] Thread Safety In-Reply-To: References: Message-ID: Is this for MapScript? Should really let Tamas chime in. A single mapObj instance is modified during the course of a request once ingested from the mapfile. For example, it holds a populated label cache and other changes made after it is loaded specific to a request. So I guess that means one mapObj per thread. From: kelly elton [mailto:its.the.doc at gmail.com] Sent: Thursday, November 05, 2015 4:35 PM To: Lime, Steve D (MNIT) ; mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Thread Safety To be sure, are you saying I can use a single map object for multiple threads, or will I need to have one map object per thread? What would you suggest? On Thu, Nov 5, 2015 at 5:33 PM Lime, Steve D (MNIT) > wrote: You should be fine. I believe there are locks (mutex) around places where this is known to be a problem. I?ve never heard user reports of issues in this regard. Steve From: mapserver-users [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of kelly elton Sent: Thursday, November 05, 2015 4:07 PM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] Thread Safety Say....if I have two processes using the mapserver dll, are they going to conflict? I'm noticing on the website it says "OGR layers: use unsafe CPL services"...In my map file I have 'CONNECTIONTYPE OGR'....what I do with the map object is project, and then draw to png, and that's about it....this isn't thread safe then? What about if I have multiple map objects, one per thread....is that thread safe? -------------- next part -------------- An HTML attachment was scrubbed... URL: From Steve.Lime at state.mn.us Thu Nov 5 14:33:43 2015 From: Steve.Lime at state.mn.us (Lime, Steve D (MNIT)) Date: Thu, 5 Nov 2015 22:33:43 +0000 Subject: [mapserver-users] Thread Safety In-Reply-To: References: Message-ID: You should be fine. I believe there are locks (mutex) around places where this is known to be a problem. I?ve never heard user reports of issues in this regard. Steve From: mapserver-users [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of kelly elton Sent: Thursday, November 05, 2015 4:07 PM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] Thread Safety Say....if I have two processes using the mapserver dll, are they going to conflict? I'm noticing on the website it says "OGR layers: use unsafe CPL services"...In my map file I have 'CONNECTIONTYPE OGR'....what I do with the map object is project, and then draw to png, and that's about it....this isn't thread safe then? What about if I have multiple map objects, one per thread....is that thread safe? -------------- next part -------------- An HTML attachment was scrubbed... URL: From aperi2007 at gmail.com Sun Nov 8 23:58:20 2015 From: aperi2007 at gmail.com (Andrea Peri) Date: Mon, 9 Nov 2015 08:58:20 +0100 Subject: [mapserver-users] Unknowed layers in the log file Message-ID: Hi, I notice some time in the log filethe appearing of an unknowed layer named using a numercial code. I report a log sample : The unknowed layer is the "layer 13" named "564049ed_5bb9_13". This is not defined in the mapfle that has only 12 layers defined. Someone know what is it ? [Mon Nov 9 08:23:26 2015].140244 msDrawMap(): Layer 5 (rt_cat.idcatfabbr.rt), 0.035s [Mon Nov 9 08:23:26 2015].152293 msDrawMap(): Layer 12 (rt_cat.idcattopon.rt), 0.012s [Mon Nov 9 08:23:26 2015].191493 msDrawMap(): Layer 13 (564049ed_5bb9_13), 0.039s Thx, A. -- ----------------- Andrea Peri . . . . . . . . . qwerty ????? ----------------- From landa.martin at gmail.com Mon Nov 9 01:42:31 2015 From: landa.martin at gmail.com (Martin Landa) Date: Mon, 9 Nov 2015 10:42:31 +0100 Subject: [mapserver-users] wms error in arcgis 10.3 Message-ID: Hi all, my colleagues who are using ArcGIS have strange problem with WMS service [1]. The problem appears only in ArcGIS 10.3 (interstigly not in 10.2.1) when you add shapefile in EPSG:5514 and then map layer from this WMS server. If you add WMS layer to empty project, it works. The error message: One or more layers failed to draw: Rain WMS server: WMS service exceptions:Service Error Description: msProcessProjection(): Projection library error. proj error Service Error Description: " Service Error Description: no options found in Service Error Description: ' Service Error Description: init Service Error Description: ' Service Error Description: file Service Error Description: " Service Error Description: for Service Error Description: " Service Error Description: init=epsg:102067 Service Error Description: " Service Error Description: msProcessProjection(): Projection library error. proj error Service Error Description: " Service Error Description: no options found in Service Error Description: ' Service Error Description: init Service Error Description: ' Service Error Description: file Service Error Description: " Service Error Description: for Service Error Description: " Service Error Description: init=epsg:102067 Service Error Description: " Do you have any idea what could be wrong? Thanks in advance, Martin [1] http://rain1.fsv.cvut.cz/services/wms?service=wms&request=GetCapabilities&version=1.3.0 -- Martin Landa http://geo.fsv.cvut.cz/gwiki/Landa http://gismentors.cz/mentors/landa From thomas.bonfort at gmail.com Mon Nov 9 01:44:07 2015 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Mon, 9 Nov 2015 10:44:07 +0100 Subject: [mapserver-users] wms error in arcgis 10.3 In-Reply-To: References: Message-ID: http://mapserver.org/errors.html#msprocessprojection-no-options-found-in-init-file On 9 November 2015 at 10:42, Martin Landa wrote: > Hi all, > > my colleagues who are using ArcGIS have strange problem with WMS > service [1]. The problem appears only in ArcGIS 10.3 (interstigly not > in 10.2.1) when you add shapefile in EPSG:5514 and then map layer from > this WMS server. If you add WMS layer to empty project, it works. > > The error message: > > One or more layers failed to draw: Rain WMS server: WMS service > exceptions:Service Error Description: msProcessProjection(): > Projection library error. proj error Service Error Description: " > Service Error Description: no options found in Service Error > Description: ' Service Error Description: init Service Error > Description: ' Service Error Description: file Service Error > Description: " Service Error Description: for Service Error > Description: " Service Error Description: init=epsg:102067 Service > Error Description: " Service Error Description: msProcessProjection(): > Projection library error. proj error Service Error Description: " > Service Error Description: no options found in Service Error > Description: ' Service Error Description: init Service Error > Description: ' Service Error Description: file Service Error > Description: " Service Error Description: for Service Error > Description: " Service Error Description: init=epsg:102067 Service > Error Description: " > > Do you have any idea what could be wrong? Thanks in advance, Martin > > [1] http://rain1.fsv.cvut.cz/services/wms?service=wms&request=GetCapabilities&version=1.3.0 > > -- > Martin Landa > http://geo.fsv.cvut.cz/gwiki/Landa > http://gismentors.cz/mentors/landa > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From ahmettemiz88 at gmail.com Mon Nov 9 01:45:20 2015 From: ahmettemiz88 at gmail.com (Ahmet Temiz) Date: Mon, 9 Nov 2015 11:45:20 +0200 Subject: [mapserver-users] creating dynamic layer with mapscript fails Message-ID: hi, I am struggling with creating dynamic layer with mapscript - java. But following code fails as " msPostGISLayerWhichShapes(): Query error ..." here is the relevant code: ( I am not sure which one is better to use "where clause " rather than setFilter to query. ) ?if ( ! items[i].contains("undefined")) { String f = "yas=" + "'" + yas[jeoId] + "'"; System.out.println("*** f *** "+f); // *** f >>> " yas='Eosen' " layerObj jeoLayer = new layerObj(map_yasSec3857); jeoLayer.setType(MS_LAYER_TYPE.MS_LAYER_POLYGON); jeoLayer.setName(items[i]); jeoLayer.setProjection("init=epsg:3857"); jeoLayer.setStatus(mapscript.MS_ON); jeoLayer.setConnectiontype(MS_CONNECTION_TYPE.MS_POSTGIS); jeoLayer.setConnection("dbname='tr22' host='localhost' port='5432' user='or****' password='******'"); jeoLayer.setData("geom from (select gid,yas,geom " +" from sjeo_yas3857 where " + f +" ) as foo using unique gid using srid=3857"); jeoLayer.setProcessing("CLOSE_CONNECTION=DEFER"); System.out.println( " jeoLayer.getData "+ jeoLayer.getData()); ( it gives: >>> geom from (select gid,yas,geom from sjeo_yas3857 where yas='Eosen' ) as foo using unique gid using srid=3857 I checked it in console and works) classObj cl = new classObj(jeoLayer); styleObj style = new styleObj(cl); style.setSymbol(1); style.setColor( new colorObj(255,0,0,255) ); jeoLayer.setStatus(1); imageObj img = map_yasSec3857.draw(); jeoLayer.close(); img.save("/usr/local/map_yas.png",map_yasSec3857); img.delete(); bytes=img.getBytes(); } ?Can you say what the possible problem is ? kind regards? -- Ahmet Temiz Jeoloji M?h. Afet ve Acil Durum Y?netimi Ba?kanl??? Bilgi ??lem Dairesi Ba?kanl???-CBS Grubu ________________________ Ahmet Temiz Geological Eng. Information Systems - GIS Group Disaster and Emergency Management of Presidency -------------- next part -------------- An HTML attachment was scrubbed... URL: From jukka.rahkonen at maanmittauslaitos.fi Mon Nov 9 01:52:58 2015 From: jukka.rahkonen at maanmittauslaitos.fi (Rahkonen Jukka (MML)) Date: Mon, 9 Nov 2015 09:52:58 +0000 Subject: [mapserver-users] wms error in arcgis 10.3 Message-ID: <29d002196d0c4cc999334e5e14a2cb10@C119S212VM022.msvyvi.vaha.local> Hi, GetCapabilities seem so announce EPSG:102067 as one of the supported projections but based on the error message Mapserver has troubles with it: Description: " Service Error Description: init=epsg:102067 Service Error Description: " Service Error Description: msProcessProjection(): Have you added EPSG:102067 manually into your EPSG file and have you checked that it works with some other client? -Jukka Rahkonen- Martin Landa wrote: Hi all, my colleagues who are using ArcGIS have strange problem with WMS service [1]. The problem appears only in ArcGIS 10.3 (interstigly not in 10.2.1) when you add shapefile in EPSG:5514 and then map layer from this WMS server. If you add WMS layer to empty project, it works. The error message: One or more layers failed to draw: Rain WMS server: WMS service exceptions:Service Error Description: msProcessProjection(): Projection library error. proj error Service Error Description: " Service Error Description: no options found in Service Error Description: ' Service Error Description: init Service Error Description: ' Service Error Description: file Service Error Description: " Service Error Description: for Service Error Description: " Service Error Description: init=epsg:102067 Service Error Description: " Service Error Description: msProcessProjection(): Projection library error. proj error Service Error Description: " Service Error Description: no options found in Service Error Description: ' Service Error Description: init Service Error Description: ' Service Error Description: file Service Error Description: " Service Error Description: for Service Error Description: " Service Error Description: init=epsg:102067 Service Error Description: " Do you have any idea what could be wrong? Thanks in advance, Martin [1] http://rain1.fsv.cvut.cz/services/wms?service=wms&request=GetCapabilities&version=1.3.0 -- Martin Landa http://geo.fsv.cvut.cz/gwiki/Landa http://gismentors.cz/mentors/landa _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From landa.martin at gmail.com Mon Nov 9 01:54:51 2015 From: landa.martin at gmail.com (Martin Landa) Date: Mon, 9 Nov 2015 10:54:51 +0100 Subject: [mapserver-users] wms error in arcgis 10.3 In-Reply-To: <29d002196d0c4cc999334e5e14a2cb10@C119S212VM022.msvyvi.vaha.local> References: <29d002196d0c4cc999334e5e14a2cb10@C119S212VM022.msvyvi.vaha.local> Message-ID: Hi, 2015-11-09 10:52 GMT+01:00 Rahkonen Jukka (MML) : > GetCapabilities seem so announce EPSG:102067 as one of the supported projections but based on the error message Mapserver has troubles with it: > Description: " Service Error Description: init=epsg:102067 Service Error Description: " Service Error Description: msProcessProjection(): > Have you added EPSG:102067 manually into your EPSG file and have you checked that it works with some other client? right, 102067 is not a EPSG code, it's defined in `esri` file. I changed EPSG:102067 to ESRI:102067 and will ask my colleague whether it helped. Thanks for quick feedback! Martin -- Martin Landa http://geo.fsv.cvut.cz/gwiki/Landa http://gismentors.cz/mentors/landa From thomas.bonfort at gmail.com Mon Nov 9 01:56:44 2015 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Mon, 9 Nov 2015 10:56:44 +0100 Subject: [mapserver-users] wms error in arcgis 10.3 In-Reply-To: References: <29d002196d0c4cc999334e5e14a2cb10@C119S212VM022.msvyvi.vaha.local> Message-ID: Unless I'm mistaken, mapserver will only accept SRSs in the EPSG namespace for WMS, so ESRI:xxx won't do it. -- thomas On 9 November 2015 at 10:54, Martin Landa wrote: > Hi, > > 2015-11-09 10:52 GMT+01:00 Rahkonen Jukka (MML) > : >> GetCapabilities seem so announce EPSG:102067 as one of the supported projections but based on the error message Mapserver has troubles with it: >> Description: " Service Error Description: init=epsg:102067 Service Error Description: " Service Error Description: msProcessProjection(): >> Have you added EPSG:102067 manually into your EPSG file and have you checked that it works with some other client? > > right, 102067 is not a EPSG code, it's defined in `esri` file. I > changed EPSG:102067 to ESRI:102067 and will ask my colleague whether > it helped. Thanks for quick feedback! Martin > > -- > Martin Landa > http://geo.fsv.cvut.cz/gwiki/Landa > http://gismentors.cz/mentors/landa > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From landa.martin at gmail.com Mon Nov 9 01:59:40 2015 From: landa.martin at gmail.com (Martin Landa) Date: Mon, 9 Nov 2015 10:59:40 +0100 Subject: [mapserver-users] wms error in arcgis 10.3 In-Reply-To: References: <29d002196d0c4cc999334e5e14a2cb10@C119S212VM022.msvyvi.vaha.local> Message-ID: Hi, 2015-11-09 10:56 GMT+01:00 thomas bonfort : > Unless I'm mistaken, mapserver will only accept SRSs in the EPSG > namespace for WMS, so ESRI:xxx won't do it. right, it didn't help. So I will copy 102067 from esri file to epsg... Martin -- Martin Landa http://geo.fsv.cvut.cz/gwiki/Landa http://gismentors.cz/mentors/landa From landa.martin at gmail.com Mon Nov 9 03:40:52 2015 From: landa.martin at gmail.com (Martin Landa) Date: Mon, 9 Nov 2015 12:40:52 +0100 Subject: [mapserver-users] wms error in arcgis 10.3 In-Reply-To: References: <29d002196d0c4cc999334e5e14a2cb10@C119S212VM022.msvyvi.vaha.local> Message-ID: Hi, 2015-11-09 10:59 GMT+01:00 Martin Landa : > right, it didn't help. So I will copy 102067 from esri file to epsg... Martin it solved the issue. Thanks, Martin -- Martin Landa http://geo.fsv.cvut.cz/gwiki/Landa http://gismentors.cz/mentors/landa From juanma.mr at gmail.com Mon Nov 9 05:12:18 2015 From: juanma.mr at gmail.com (Juanma M. R.) Date: Mon, 9 Nov 2015 14:12:18 +0100 Subject: [mapserver-users] Using value from hstore column for labels Message-ID: Dear list, I am trying to draw milestones from my OSM local database. The issue is that in Nominatim database, the one I am ussing, I am trying to draw the value "name" from a hstore column. How do I indicate this in mapfile in labelitem? I haven't found the format to use a hstore data. "name"->'name' obviously breaks the mapfile format. Regards, Juan Manuel Moreno Rivera. -------------- next part -------------- An HTML attachment was scrubbed... URL: From Steve.Lime at state.mn.us Mon Nov 9 06:22:37 2015 From: Steve.Lime at state.mn.us (Lime, Steve D (MNIT)) Date: Mon, 9 Nov 2015 14:22:37 +0000 Subject: [mapserver-users] Using value from hstore column for labels In-Reply-To: References: Message-ID: Can you give name->name an alias in the SQL? E.g. name->name as labelname? ________________________________ From: mapserver-users [mapserver-users-bounces at lists.osgeo.org] on behalf of Juanma M. R. [juanma.mr at gmail.com] Sent: Monday, November 09, 2015 7:12 AM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] Using value from hstore column for labels Dear list, I am trying to draw milestones from my OSM local database. The issue is that in Nominatim database, the one I am ussing, I am trying to draw the value "name" from a hstore column. How do I indicate this in mapfile in labelitem? I haven't found the format to use a hstore data. "name"->'name' obviously breaks the mapfile format. Regards, Juan Manuel Moreno Rivera. -------------- next part -------------- An HTML attachment was scrubbed... URL: From Steve.Lime at state.mn.us Mon Nov 9 06:26:23 2015 From: Steve.Lime at state.mn.us (Lime, Steve D (MNIT)) Date: Mon, 9 Nov 2015 14:26:23 +0000 Subject: [mapserver-users] Unknowed layers in the log file In-Reply-To: References: Message-ID: Some virtual layers may be created on-the-fly for things like embedded scalebars or legends. ________________________________________ From: mapserver-users [mapserver-users-bounces at lists.osgeo.org] on behalf of Andrea Peri [aperi2007 at gmail.com] Sent: Monday, November 09, 2015 1:58 AM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] Unknowed layers in the log file Hi, I notice some time in the log filethe appearing of an unknowed layer named using a numercial code. I report a log sample : The unknowed layer is the "layer 13" named "564049ed_5bb9_13". This is not defined in the mapfle that has only 12 layers defined. Someone know what is it ? [Mon Nov 9 08:23:26 2015].140244 msDrawMap(): Layer 5 (rt_cat.idcatfabbr.rt), 0.035s [Mon Nov 9 08:23:26 2015].152293 msDrawMap(): Layer 12 (rt_cat.idcattopon.rt), 0.012s [Mon Nov 9 08:23:26 2015].191493 msDrawMap(): Layer 13 (564049ed_5bb9_13), 0.039s Thx, A. -- ----------------- Andrea Peri . . . . . . . . . qwerty ????? ----------------- _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From its.the.doc at gmail.com Mon Nov 9 14:09:28 2015 From: its.the.doc at gmail.com (kelly elton) Date: Mon, 09 Nov 2015 22:09:28 +0000 Subject: [mapserver-users] Thread Safety In-Reply-To: References: Message-ID: Ok so after trying this, I end up getting this error msDrawMap(): Image handling error. Failed to draw layer named 'borders_lines10'.;msOGRFileNextShape(): OGR error. In GetNextRawFeature(): sqlite3_step() : database schema has changed;msOGRFileNextShape(): OGR error. In GetNextRawFeature(): sqlite3_step() : database schema has changed;msOGRFileNextShape(): OGR error. In GetNextRawFeature(): sqlite3_step() : database schema has changed;msOGRFileNextShape(): OGR error. In GetNextRawFeature(): sqlite3_step() : database schema has changed;msOGRFileNextShape(): OGR error. In GetNextRawFeature(): sqlite3_step() : database schema has changed Thing is, we don't write to the database at all, not sure why it would think the schema changed. On Thu, Nov 5, 2015 at 5:43 PM kelly elton wrote: > Yeah it's mapscript > > On Thu, Nov 5, 2015, 5:42 PM Lime, Steve D (MNIT) > wrote: > >> Is this for MapScript? Should really let Tamas chime in. A single mapObj >> instance is modified during the course of a request once ingested from the >> mapfile. For example, it holds a populated label cache and other changes >> made after it is loaded specific to a request. So I guess that means one >> mapObj per thread. >> >> >> >> *From:* kelly elton [mailto:its.the.doc at gmail.com] >> *Sent:* Thursday, November 05, 2015 4:35 PM >> *To:* Lime, Steve D (MNIT) ; >> mapserver-users at lists.osgeo.org >> *Subject:* Re: [mapserver-users] Thread Safety >> >> >> >> To be sure, are you saying I can use a single map object for multiple >> threads, or will I need to have one map object per thread? What would you >> suggest? >> >> >> >> On Thu, Nov 5, 2015 at 5:33 PM Lime, Steve D (MNIT) < >> Steve.Lime at state.mn.us> wrote: >> >> You should be fine. I believe there are locks (mutex) around places where >> this is known to be a problem. I?ve never heard user reports of issues in >> this regard. >> >> >> >> Steve >> >> >> >> *From:* mapserver-users [mailto:mapserver-users-bounces at lists.osgeo.org] *On >> Behalf Of *kelly elton >> *Sent:* Thursday, November 05, 2015 4:07 PM >> *To:* mapserver-users at lists.osgeo.org >> *Subject:* [mapserver-users] Thread Safety >> >> >> >> Say....if I have two processes using the mapserver dll, are they going to >> conflict? >> >> I'm noticing on the website it says "OGR layers: use unsafe CPL >> services"...In my map file I have 'CONNECTIONTYPE OGR'....what I do with >> the map object is project, and then draw to png, and that's about >> it....this isn't thread safe then? What about if I have multiple map >> objects, one per thread....is that thread safe? >> >> -------------- next part -------------- An HTML attachment was scrubbed... URL: From ahmettemiz88 at gmail.com Tue Nov 10 07:30:53 2015 From: ahmettemiz88 at gmail.com (Ahmet Temiz) Date: Tue, 10 Nov 2015 17:30:53 +0200 Subject: [mapserver-users] my mapscript generates blank map Message-ID: with Following code, resulting map looks blank. classObj c1 = new classObj(jeo_layer); styleObj new_style = new styleObj(c1); colorObj color = new colorObj(200,0,0,20); new_style.setColor(color); c1.setName("Eosen"); c1.setExpression(" \"yas=Eosen\" "); c1.insertStyle(new_style, 0); jeo_layer.insertClass(c1, 0); jeo_layer.setStatus(1); imageObj img = map3857.draw(); byte[] bytes=img.getBytes(); --- can you tell me why ? regards -- Ahmet Temiz Jeoloji M?h. Afet ve Acil Durum Y?netimi Ba?kanl??? Bilgi ??lem Dairesi Ba?kanl???-CBS Grubu ________________________ Ahmet Temiz Geological Eng. Information Systems - GIS Group Disaster and Emergency Management of Presidency -------------- next part -------------- An HTML attachment was scrubbed... URL: From lars.schylberg at blixtmail.se Tue Nov 10 08:15:46 2015 From: lars.schylberg at blixtmail.se (Lars Schylberg) Date: Tue, 10 Nov 2015 17:15:46 +0100 Subject: [mapserver-users] my mapscript generates blank map In-Reply-To: References: Message-ID: <56421832.3020401@blixtmail.se> c1.setExpression(" \"yas=Eosen\" "); looks like it should be c1.setExpression(" \"yas=Eosen"\ "); without knowing mapscript Lars Den 2015-11-10 kl. 16:30, skrev Ahmet Temiz: > with Following code, resulting map looks blank. > > classObj c1 = new classObj(jeo_layer); > styleObj new_style = new styleObj(c1); > colorObj color = new colorObj(200,0,0,20); > new_style.setColor(color); > c1.setName("Eosen"); > c1.setExpression(" \"yas=Eosen\" "); > c1.insertStyle(new_style, 0); > jeo_layer.insertClass(c1, 0); > > jeo_layer.setStatus(1); > imageObj img = map3857.draw(); > byte[] bytes=img.getBytes(); > --- > > can you tell me why ? > > regards > > > -- > Ahmet Temiz > Jeoloji M?h. > Afet ve Acil Durum Y?netimi Ba?kanl??? > Bilgi ??lem Dairesi Ba?kanl???-CBS Grubu > > > ________________________ > > Ahmet Temiz > Geological Eng. > Information Systems - GIS Group > Disaster and Emergency Management > of Presidency > > > _______________________________________________ > 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 ahmettemiz88 at gmail.com Wed Nov 11 07:33:51 2015 From: ahmettemiz88 at gmail.com (Ahmet Temiz) Date: Wed, 11 Nov 2015 17:33:51 +0200 Subject: [mapserver-users] two lines form one inside the other Message-ID: ?How can I construct two lines form one inside the other - inner is thin and solid black - outer is thicker tranparentand white I will appreciate if you provide a hint regards ? -- Ahmet Temiz Jeoloji M?h. Afet ve Acil Durum Y?netimi Ba?kanl??? Bilgi ??lem Dairesi Ba?kanl???-CBS Grubu ________________________ Ahmet Temiz Geological Eng. Information Systems - GIS Group Disaster and Emergency Management of Presidency -------------- next part -------------- An HTML attachment was scrubbed... URL: From cnieman at dmsolutions.ca Wed Nov 11 07:37:36 2015 From: cnieman at dmsolutions.ca (Christy Nieman) Date: Wed, 11 Nov 2015 10:37:36 -0500 Subject: [mapserver-users] two lines form one inside the other In-Reply-To: References: Message-ID: <564360C0.7070703@dmsolutions.ca> Hi Ahmet, You can use two styles in your class. Something like: CLASS ... STYLE #bigger white one COLOR "#FFFFFF" OPACITY 0.5 WIDTH 4 END STYLE #smaller black one COLOR "#000000" WIDTH 2 END ... END I think I got the order right - the white one should be drawn first, then the black one on top. Regards, Christy On 11/11/15 10:33 AM, Ahmet Temiz wrote: > > ?How can I construct two lines form one inside the other > - inner is thin and solid black > - outer is thicker tranparentand white > > I will appreciate if you provide a hint > > regards > ? > > -- > Ahmet Temiz > Jeoloji M?h. > Afet ve Acil Durum Y?netimi Ba?kanl??? > Bilgi ??lem Dairesi Ba?kanl???-CBS Grubu > > > ________________________ > > Ahmet Temiz > Geological Eng. > Information Systems - GIS Group > Disaster and Emergency Management > of Presidency > > > _______________________________________________ > 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 piero.campa at gmail.com Wed Nov 11 23:17:40 2015 From: piero.campa at gmail.com (Piero Campa) Date: Wed, 11 Nov 2015 23:17:40 -0800 (PST) Subject: [mapserver-users] WMS server error. Invalid layer(s) given in the LAYERS parameter. In-Reply-To: References: Message-ID: <1447312660260-5235869.post@n6.nabble.com> Three years later... Just wanting to trace that I was having the same "oh-Lord-WHY" problem with WMS layers in MapServer (via MapProxy this time), and it ended up being a miserable white-space in the my list of LAYERS. It would be a tiny little UX improvement if the blaming layer(s) could be printed out in the ogc:ServiceException report, but nothing worrying anyway. hth -Piero -- View this message in context: http://osgeo-org.1560.x6.nabble.com/WMS-server-error-Invalid-layer-s-given-in-the-LAYERS-parameter-tp5011347p5235869.html Sent from the Mapserver - User mailing list archive at Nabble.com. From jmckenna at gatewaygeomatics.com Thu Nov 12 04:46:51 2015 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Thu, 12 Nov 2015 08:46:51 -0400 Subject: [mapserver-users] WMS server error. Invalid layer(s) given in the LAYERS parameter. In-Reply-To: <1447312660260-5235869.post@n6.nabble.com> References: <1447312660260-5235869.post@n6.nabble.com> Message-ID: <56448A3B.5060305@gatewaygeomatics.com> I was going to respond to this now, but I see that I had responded to this thread 3 years ago, ha :) I guess I haven't changed. Thanks for the update. -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ On 2015-11-12 3:17 AM, Piero Campa wrote: > Three years later... > Just wanting to trace that I was having the same "oh-Lord-WHY" problem with > WMS layers in MapServer (via MapProxy this time), and it ended up being a > miserable white-space in the my list of LAYERS. > > It would be a tiny little UX improvement if the blaming layer(s) could be > printed out in the ogc:ServiceException report, but nothing worrying anyway. > > hth > -Piero > > From irineu at rassystem.com.br Fri Nov 13 07:48:00 2015 From: irineu at rassystem.com.br (Irineu Ruiz) Date: Fri, 13 Nov 2015 13:48:00 -0200 Subject: [mapserver-users] Mapserver + Postgresql with SSL and compression Message-ID: Hi everybody, I have a postgresql 9.3 working with SSL mode ON with compression. Now I want to make mapserver connect with postgresql using SSL with compression. What I need to do? I must use some parameter in the CONNECTION to make this happen? If yes, whath parameters? I can't find a list of all the optional parameters for CONNECTION in mapserver docs... Thanks! -- [image: E-mail] *Irineu Ruiz* Rua Helena, 275 - 12? Andar - Vila Ol?mpia 04552-050 - S?o Paulo - SP ? (011) 2667-0708 www.rassystem.com.br ? *irineu at rassystem.com.br * -------------- next part -------------- An HTML attachment was scrubbed... URL: From yves.jacolin at camptocamp.com Fri Nov 13 08:04:26 2015 From: yves.jacolin at camptocamp.com (Yves Jacolin) Date: Fri, 13 Nov 2015 17:04:26 +0100 Subject: [mapserver-users] wms error in arcgis 10.3 In-Reply-To: References: <29d002196d0c4cc999334e5e14a2cb10@C119S212VM022.msvyvi.vaha.local> Message-ID: <2645162.p7M3gqkPAS@tatras> On Monday, November 09, 2015 10:59:40 Martin Landa wrote: > Hi, > > 2015-11-09 10:56 GMT+01:00 thomas bonfort : > > Unless I'm mistaken, mapserver will only accept SRSs in the EPSG > > namespace for WMS, so ESRI:xxx won't do it. > > right, it didn't help. So I will copy 102067 from esri file to epsg... Martin, May be better to add a specific EPSG file with own code to avoid to fill the official epsg file: Just add MAP [..] CONFIG "PROJ_LIB" "/usr/local/share/proj/" [..] END Absolute and relative path are allowed. Y. -- Responsable Formation et Support Camptocamp France SAS Savoie Technolac, BP 352 73377 Le Bourget du Lac, Cedex http://www.camptocamp.com From smercier at mapgears.com Fri Nov 13 12:18:29 2015 From: smercier at mapgears.com (Simon Mercier) Date: Fri, 13 Nov 2015 15:18:29 -0500 Subject: [mapserver-users] Mapserver + Postgresql with SSL and compression In-Reply-To: References: Message-ID: <56464595.1050007@mapgears.com> Hi Irineu, try this CONNECTION : "host=my_server port:5432 user=my_user dbname=my_bd password=my_passwd sslmode=require sslcompression=1" On 11/13/2015 10:48 AM, Irineu Ruiz wrote: > I have a postgresql 9.3 working with SSL mode ON with compression. > Now I want to make mapserver connect with postgresql using SSL with > compression. > > What I need to do? > I must use some parameter in the CONNECTION to make this happen? > If yes, whath parameters? -- Simon Mercier http://www.mapgears.com/ tel: +1 418.476.7139 #101 http://evouala.com/ - Location Intelligence Made Easy From smercier at mapgears.com Fri Nov 13 12:43:32 2015 From: smercier at mapgears.com (Simon Mercier) Date: Fri, 13 Nov 2015 15:43:32 -0500 Subject: [mapserver-users] Mapserver + Postgresql with SSL and compression In-Reply-To: <56464595.1050007@mapgears.com> References: <56464595.1050007@mapgears.com> Message-ID: <56464B74.50609@mapgears.com> I forgot the link ... http://www.postgresql.org/docs/9.3/static/libpq-connect.html On 11/13/2015 3:18 PM, Simon Mercier wrote: > Hi Irineu, > > try this CONNECTION : > "host=my_server port:5432 user=my_user dbname=my_bd password=my_passwd > sslmode=require sslcompression=1" > > > > On 11/13/2015 10:48 AM, Irineu Ruiz wrote: >> I have a postgresql 9.3 working with SSL mode ON with compression. >> Now I want to make mapserver connect with postgresql using SSL with >> compression. >> >> What I need to do? >> I must use some parameter in the CONNECTION to make this happen? >> If yes, whath parameters? > -- Simon Mercier http://www.mapgears.com/ tel: +1 418.476.7139 #101 http://evouala.com/ - Location Intelligence Made Easy From aperi2007 at gmail.com Sun Nov 15 23:51:41 2015 From: aperi2007 at gmail.com (Andrea Peri) Date: Mon, 16 Nov 2015 08:51:41 +0100 Subject: [mapserver-users] How set the extent programmmatically using python mapscript Message-ID: Hi , I try unsuccesfully to programmatically set the extent of a layer using mapscript python. I use this code to set the extent variable: #... "extent1" is a variable storing the extent I like to set. print("Add this extent to the layer: %s\n" % (str(extent1))) clone_map_getlayer_li.extent = extent1 print("The result of add is this: %s\n" % (str(clone_map_getlayer_li.extent))) .... But The result from printf show that the extent is not update. >Add this extent to the layer: { 'minx': 424785 , 'miny': 4662585 , 'maxx': 696015 , 'maxy': 5057415 } >The result of add is this: { 'minx': -1 , 'miny': -1 , 'maxx': -1 , 'maxy': -1 } What I'm wrong ? Many thx for any help. A. -- ----------------- Andrea Peri . . . . . . . . . qwerty ????? ----------------- From edigiacomo at arpa.emr.it Mon Nov 16 01:38:35 2015 From: edigiacomo at arpa.emr.it (Emanuele Di Giacomo) Date: Mon, 16 Nov 2015 10:38:35 +0100 Subject: [mapserver-users] How set the extent programmmatically using python mapscript In-Reply-To: References: Message-ID: Hi Andrea, you could try using the setExtent/getExtent methods: clone_map_getlayer_li.setExtent(extent1.minx, extent1.miny, extent1.maxx, extent1.maxy) print("The result of add is this: %s\n" % (str(clone_map_getlayer_li.getExtent()))) On 16 November 2015 at 08:51, Andrea Peri wrote: > Hi , > I try unsuccesfully to programmatically set the extent of a layer > using mapscript python. > > I use this code to set the extent variable: > > #... "extent1" is a variable storing the extent I like to set. > > print("Add this extent to the layer: %s\n" % (str(extent1))) > clone_map_getlayer_li.extent = extent1 > print("The result of add is this: %s\n" % > (str(clone_map_getlayer_li.extent))) > .... > > But > The result from printf show that the extent is not update. > > > >Add this extent to the layer: { 'minx': 424785 , 'miny': 4662585 , > 'maxx': 696015 , 'maxy': 5057415 } > > >The result of add is this: { 'minx': -1 , 'miny': -1 , 'maxx': -1 , > 'maxy': -1 } > > What I'm wrong ? > > Many thx for any help. > > A. > > > > -- > ----------------- > Andrea Peri > . . . . . . . . . > qwerty ????? > ----------------- > _______________________________________________ > 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 aperi2007 at gmail.com Mon Nov 16 03:43:49 2015 From: aperi2007 at gmail.com (Andrea Peri) Date: Mon, 16 Nov 2015 12:43:49 +0100 Subject: [mapserver-users] How set the extent programmmatically using python mapscript In-Reply-To: References: Message-ID: Hi Emanuele, thx for response. I try the setExtent , but unfortunatelly it seem don not exist. Try-ing clone_map_getlayer_li.setExtent(extent) I have this error: Traceback (most recent call last): .... clone_map_getlayer_li.setExtent(extent) File "/usr/lib/python2.7/dist-packages/mapscript.py", line 1688, in setExtent def setExtent(self, *args): return _mapscript.layerObj_setExtent(self, *args) TypeError: in method 'layerObj_setExtent', argument 2 of type 'double' A. 2015-11-16 10:38 GMT+01:00 Emanuele Di Giacomo : > Hi Andrea, > you could try using the setExtent/getExtent methods: > > clone_map_getlayer_li.setExtent(extent1.minx, extent1.miny, > extent1.maxx, extent1.maxy) > print("The result of add is this: %s\n" % > (str(clone_map_getlayer_li.getExtent()))) > > On 16 November 2015 at 08:51, Andrea Peri wrote: >> >> Hi , >> I try unsuccesfully to programmatically set the extent of a layer >> using mapscript python. >> >> I use this code to set the extent variable: >> >> #... "extent1" is a variable storing the extent I like to set. >> >> print("Add this extent to the layer: %s\n" % (str(extent1))) >> clone_map_getlayer_li.extent = extent1 >> print("The result of add is this: %s\n" % >> (str(clone_map_getlayer_li.extent))) >> .... >> >> But >> The result from printf show that the extent is not update. >> >> >> >Add this extent to the layer: { 'minx': 424785 , 'miny': 4662585 , >> > 'maxx': 696015 , 'maxy': 5057415 } >> >> >The result of add is this: { 'minx': -1 , 'miny': -1 , 'maxx': -1 , >> > 'maxy': -1 } >> >> What I'm wrong ? >> >> Many thx for any help. >> >> A. >> >> >> >> -- >> ----------------- >> Andrea Peri >> . . . . . . . . . >> qwerty ????? >> ----------------- >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -- ----------------- Andrea Peri . . . . . . . . . qwerty ????? ----------------- From aperi2007 at gmail.com Mon Nov 16 03:48:48 2015 From: aperi2007 at gmail.com (Andrea Peri) Date: Mon, 16 Nov 2015 12:48:48 +0100 Subject: [mapserver-users] A getfeatureinfo using a buffer around the query point Message-ID: Hi, Is possible in mapserver to have a GetFeaturenfo using a buffer to locate the features ? I know this is not available in wms specs. Infact it come from an application with geoserver. http://docs.geoserver.org/stable/en/user/services/wms/reference.html buffer: width of search radius around query point. And I need to port it to mapserver. Thx. -- ----------------- Andrea Peri . . . . . . . . . qwerty ????? ----------------- From edigiacomo at arpa.emr.it Mon Nov 16 03:52:42 2015 From: edigiacomo at arpa.emr.it (Emanuele Di Giacomo) Date: Mon, 16 Nov 2015 12:52:42 +0100 Subject: [mapserver-users] How set the extent programmmatically using python mapscript In-Reply-To: References: Message-ID: Hi, it seems to me that the traceback is saying that you are passing wrong arguments to setExtent. Please read carefully the documentation (http://mapserver.org/mapscript/mapscript.html#layerobj): setExtent takes 4 parameter (minx, miny, maxx and maxy of the extent) and not the extent (a rectObj). On 16 November 2015 at 12:43, Andrea Peri wrote: > Hi Emanuele, > thx for response. > > I try the setExtent , but unfortunatelly it seem don not exist. > > Try-ing > > clone_map_getlayer_li.setExtent(extent) > > I have this error: > > Traceback (most recent call last): > .... > clone_map_getlayer_li.setExtent(extent) > File "/usr/lib/python2.7/dist-packages/mapscript.py", line 1688, in setExtent > def setExtent(self, *args): return > _mapscript.layerObj_setExtent(self, *args) > TypeError: in method 'layerObj_setExtent', argument 2 of type 'double' > > > A. > > > 2015-11-16 10:38 GMT+01:00 Emanuele Di Giacomo : >> Hi Andrea, >> you could try using the setExtent/getExtent methods: >> >> clone_map_getlayer_li.setExtent(extent1.minx, extent1.miny, >> extent1.maxx, extent1.maxy) >> print("The result of add is this: %s\n" % >> (str(clone_map_getlayer_li.getExtent()))) >> >> On 16 November 2015 at 08:51, Andrea Peri wrote: >>> >>> Hi , >>> I try unsuccesfully to programmatically set the extent of a layer >>> using mapscript python. >>> >>> I use this code to set the extent variable: >>> >>> #... "extent1" is a variable storing the extent I like to set. >>> >>> print("Add this extent to the layer: %s\n" % (str(extent1))) >>> clone_map_getlayer_li.extent = extent1 >>> print("The result of add is this: %s\n" % >>> (str(clone_map_getlayer_li.extent))) >>> .... >>> >>> But >>> The result from printf show that the extent is not update. >>> >>> >>> >Add this extent to the layer: { 'minx': 424785 , 'miny': 4662585 , >>> > 'maxx': 696015 , 'maxy': 5057415 } >>> >>> >The result of add is this: { 'minx': -1 , 'miny': -1 , 'maxx': -1 , >>> > 'maxy': -1 } >>> >>> What I'm wrong ? >>> >>> Many thx for any help. >>> >>> A. >>> >>> >>> >>> -- >>> ----------------- >>> Andrea Peri >>> . . . . . . . . . >>> qwerty ????? >>> ----------------- >>> _______________________________________________ >>> mapserver-users mailing list >>> mapserver-users at lists.osgeo.org >>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> >> > > > > -- > ----------------- > Andrea Peri > . . . . . . . . . > qwerty ????? > ----------------- From aperi2007 at gmail.com Mon Nov 16 04:02:22 2015 From: aperi2007 at gmail.com (Andrea Peri) Date: Mon, 16 Nov 2015 13:02:22 +0100 Subject: [mapserver-users] How set the extent programmmatically using python mapscript In-Reply-To: References: Message-ID: Hi Emanuele. You are right. My bad. The code clone_map_getlayer_li.setExtent(extent.minx,extent.miny,extent.maxx,extent.maxy) work perfectly. Thx very much. A. 2015-11-16 12:52 GMT+01:00 Emanuele Di Giacomo : > Hi, > it seems to me that the traceback is saying that you are passing wrong > arguments to setExtent. > > Please read carefully the documentation > (http://mapserver.org/mapscript/mapscript.html#layerobj): setExtent > takes 4 parameter (minx, miny, maxx and maxy of the extent) and not > the extent (a rectObj). > > On 16 November 2015 at 12:43, Andrea Peri wrote: >> Hi Emanuele, >> thx for response. >> >> I try the setExtent , but unfortunatelly it seem don not exist. >> >> Try-ing >> >> clone_map_getlayer_li.setExtent(extent) >> >> I have this error: >> >> Traceback (most recent call last): >> .... >> clone_map_getlayer_li.setExtent(extent) >> File "/usr/lib/python2.7/dist-packages/mapscript.py", line 1688, in setExtent >> def setExtent(self, *args): return >> _mapscript.layerObj_setExtent(self, *args) >> TypeError: in method 'layerObj_setExtent', argument 2 of type 'double' >> >> >> A. >> >> >> 2015-11-16 10:38 GMT+01:00 Emanuele Di Giacomo : >>> Hi Andrea, >>> you could try using the setExtent/getExtent methods: >>> >>> clone_map_getlayer_li.setExtent(extent1.minx, extent1.miny, >>> extent1.maxx, extent1.maxy) >>> print("The result of add is this: %s\n" % >>> (str(clone_map_getlayer_li.getExtent()))) >>> >>> On 16 November 2015 at 08:51, Andrea Peri wrote: >>>> >>>> Hi , >>>> I try unsuccesfully to programmatically set the extent of a layer >>>> using mapscript python. >>>> >>>> I use this code to set the extent variable: >>>> >>>> #... "extent1" is a variable storing the extent I like to set. >>>> >>>> print("Add this extent to the layer: %s\n" % (str(extent1))) >>>> clone_map_getlayer_li.extent = extent1 >>>> print("The result of add is this: %s\n" % >>>> (str(clone_map_getlayer_li.extent))) >>>> .... >>>> >>>> But >>>> The result from printf show that the extent is not update. >>>> >>>> >>>> >Add this extent to the layer: { 'minx': 424785 , 'miny': 4662585 , >>>> > 'maxx': 696015 , 'maxy': 5057415 } >>>> >>>> >The result of add is this: { 'minx': -1 , 'miny': -1 , 'maxx': -1 , >>>> > 'maxy': -1 } >>>> >>>> What I'm wrong ? >>>> >>>> Many thx for any help. >>>> >>>> A. >>>> >>>> >>>> >>>> -- >>>> ----------------- >>>> Andrea Peri >>>> . . . . . . . . . >>>> qwerty ????? >>>> ----------------- >>>> _______________________________________________ >>>> mapserver-users mailing list >>>> mapserver-users at lists.osgeo.org >>>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>> >>> >> >> >> >> -- >> ----------------- >> Andrea Peri >> . . . . . . . . . >> qwerty ????? >> ----------------- -- ----------------- Andrea Peri . . . . . . . . . qwerty ????? ----------------- From pasquale.didonato at gmail.com Mon Nov 16 04:59:34 2015 From: pasquale.didonato at gmail.com (Pasquale Di Donato) Date: Mon, 16 Nov 2015 13:59:34 +0100 Subject: [mapserver-users] A getfeatureinfo using a buffer around the query point In-Reply-To: References: Message-ID: You can use TOLERANCE/TOLERANCEUNITS in http://mapserver.org/mapfile/layer.html Pasquale On Mon, Nov 16, 2015 at 12:48 PM, Andrea Peri wrote: > Hi, > > Is possible in mapserver to have a GetFeaturenfo using a buffer to > locate the features ? > > I know this is not available in wms specs. > Infact it come from an application with geoserver. > > http://docs.geoserver.org/stable/en/user/services/wms/reference.html > > buffer: width of search radius around query point. > > And I need to port it to mapserver. > > Thx. > > -- > ----------------- > Andrea Peri > . . . . . . . . . > qwerty ????? > ----------------- > _______________________________________________ > 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 neelesh.iiita at gmail.com Tue Nov 17 02:37:24 2015 From: neelesh.iiita at gmail.com (Neelesh Nirmal) Date: Tue, 17 Nov 2015 16:07:24 +0530 Subject: [mapserver-users] WMS Layer provided by MapSever rendering incorrectly in ol3. Message-ID: I have created a map using OpenLayers3 which contains two layers. First layer is Open Street Map Layer and the second one is WMS layer provided by the Map Server. *Problem-*When i'm rendering first layer it is rendering properly no issue. but when i'm rendering the second layer(provide by map server) it renders incorrectly means it does not fit to its container and it is out of sync with the first layer in terms of location. See this snapshot of the maps for more clarification. In the snapshot top layer is wms layer provided by map server. Also when i'm zooming or moving the map then both layers work correctly but after a delay of few seconds the second layer(wms layer from map server) again switches back to its initial position(Position that is shown in above attached snapshot). This is the code that i'm using to consume wms service. var layer = new ol.layer.Image({ source: new ol.source.ImageWMS({ url: 'http://localhost:19090/rasters/world/wms', params: { 'LAYERS': 'world', 'mode': 'map', }, serverType: 'mapserver' })}); This is my map file. MAP NAME "world" CONFIG "MS_ERRORFILE" "/home/neelesh/Projects/georbis/data/logs/mapservice_errors.log" CONFIG "PROJ_LIB" "/home/neelesh/Projects/georbis/deps/proj.4-master/share/proj" CONFIG "ON_MISSING_DATA" "LOG" DEBUG 5 EXTENT -180.000 -90.000 180.000 90.000 SHAPEPATH "/home/neelesh/Projects/georbis/data/service_data/data/wms" IMAGECOLOR 255 255 255 SIZE 1350 675 WEB METADATA "wms_title" "Georbis WMS Server" "wms_author" "VizExperts" "wms_onlineresource" "http://192.168.1.36:19090/rasters/world/wms?" "wms_enable_request" "*" "wms_srs" "epsg:4326" "wms_feature_info_mime_type" "text/html" "wms_format" "image/jpg" END END PROJECTION "init=epsg:4326" END LAYER NAME world TYPE RASTER DATA "world.tif" METADATA "wms_title" "BlueWorld Map" "wms_srs" "epsg:4326" "wms_server_version" "1.1.1" END PROJECTION "init=epsg:4326" END END END I tried *ol.view.fit* method to fit the layer to its container but the value of *layer.getExtent()* for the layer is undefined. Also layers are rendering perfectly in QGIS and when i'm using the same layer from geoserver instead of mapserver again it is working fine. This is link to my stackoverflow post. Pleas help me to find out what is wrong. is there any problem with wms request format or the map file? -------------- next part -------------- An HTML attachment was scrubbed... URL: From michael.smith.erdc at gmail.com Tue Nov 17 03:36:36 2015 From: michael.smith.erdc at gmail.com (Michael Smith) Date: Tue, 17 Nov 2015 06:36:36 -0500 Subject: [mapserver-users] WMS Layer provided by MapSever rendering incorrectly in ol3. In-Reply-To: References: Message-ID: Neelesh, You need to set your map projection to match your basemap. You need to set it to spherical mercator. PROJECTION "init=epsg:3857" END Mike ---- Michael Smith US Army Corps Remote Sensing GIS/Center michael.smith at usace.army.mil From: mapserver-users on behalf of Neelesh Nirmal Date: Tuesday, November 17, 2015 at 5:37 AM To: Subject: [mapserver-users] WMS Layer provided by MapSever rendering incorrectly in ol3. > I have created a map using OpenLayers3 which contains two layers. First layer > is Open Street Map Layer and the second one is WMS layer provided by the Map > Server. > Problem-When i'm rendering first layer it is rendering properly no issue. but > when i'm rendering the second layer(provide by map server) it renders > incorrectly means it does not fit to its container and it is out of sync with > the first layer in terms of location. See this snapshot > of the maps for more clarification. In > the snapshot top layer is wms layer provided by map server. > > > > > Also when i'm zooming or moving the map then both layers work correctly but > after a delay of few seconds the second layer(wms layer from map server) again > switches back to its initial position(Position that is shown in above attached > snapshot). > > > This is the code that i'm using to consume wms service. > > var layer = new ol.layer.Image({ > source: new ol.source.ImageWMS({ > url: 'http://localhost:19090/rasters/world/wms', > params: { > 'LAYERS': 'world', > 'mode': 'map', > }, > serverType: 'mapserver' > })}); > > > This is my map file. > > MAP > NAME "world" > CONFIG "MS_ERRORFILE" > "/home/neelesh/Projects/georbis/data/logs/mapservice_errors.log" > CONFIG "PROJ_LIB" > "/home/neelesh/Projects/georbis/deps/proj.4-master/share/proj" > CONFIG "ON_MISSING_DATA" "LOG" > DEBUG 5 > EXTENT -180.000 -90.000 180.000 90.000 > SHAPEPATH "/home/neelesh/Projects/georbis/data/service_data/data/wms" > IMAGECOLOR 255 255 255 > SIZE 1350 675 > > WEB > METADATA > "wms_title" "Georbis WMS Server" > "wms_author" "VizExperts" > "wms_onlineresource" "http://192.168.1.36:19090/rasters/world/wms?" > "wms_enable_request" "*" > "wms_srs" "epsg:4326" > "wms_feature_info_mime_type" "text/html" > "wms_format" "image/jpg" > END > END > > PROJECTION > "init=epsg:4326" > END > > LAYER > NAME world > TYPE RASTER > DATA "world.tif" > METADATA > "wms_title" "BlueWorld Map" > "wms_srs" "epsg:4326" > "wms_server_version" "1.1.1" > END > PROJECTION > "init=epsg:4326" > END > END > END > > I tried ol.view.fit method to fit the layer to its container but the value of > layer.getExtent() for the layer is undefined. > Also layers are rendering perfectly in QGIS and when i'm using the same layer > from geoserver instead of mapserver again it is working fine. > This > ndering-incorrectly-in-ol3> is link to my stackoverflow post. > Pleas help me to find out what is wrong. is there any problem with wms request > format or the map file? > _______________________________________________ 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 charlotte.toma at wheregroup.com Tue Nov 17 03:38:05 2015 From: charlotte.toma at wheregroup.com (Charlotte Toma (WhereGroup)) Date: Tue, 17 Nov 2015 12:38:05 +0100 Subject: [mapserver-users] Geomedia as vector data source with Mapserver Message-ID: <564B119D.3010808@wheregroup.com> Hello! I have some problems with the use/ testing with geomedia .mdb-format. I want to create a WMS with Mapserver. Geomedia is listed as a ORG Vector Format at http://www.gdal.org/ogr_formats.html, but not listed as supported format at http://mapserver.org/input/vector/ogr.html. My Question: Can I use Geomedia .mdb as a vector data source with MapServer? Best Wishes, Charlotte Toma -- ******************************************** Where2B Konferenz 2015 10. Dezember 2015 in Bonn www.where2b-conference.com ******************************************** From jukka.rahkonen at maanmittauslaitos.fi Tue Nov 17 05:49:36 2015 From: jukka.rahkonen at maanmittauslaitos.fi (Rahkonen Jukka (MML)) Date: Tue, 17 Nov 2015 13:49:36 +0000 Subject: [mapserver-users] WMS Layer provided by MapSever rendering incorrectly in ol3. Message-ID: <07e3183a7e37497881c97acaf39315f2@C119S212VM022.msvyvi.vaha.local> Hi, Don?t use mode=map because you want to read Mapserver as WMS. Make just a plain WMS layer like in view-source:http://dev.openlayers.org/examples/wms.html. -Jukka Rahkonen- Neelesh Nirmal wrote: I have created a map using OpenLayers3 which contains two layers. First layer is Open Street Map Layer and the second one is WMS layer provided by the Map Server. Problem-When i'm rendering first layer it is rendering properly no issue. but when i'm rendering the second layer(provide by map server) it renders incorrectly means it does not fit to its container and it is out of sync with the first layer in terms of location. See this snapshot of the maps for more clarification. In the snapshot top layer is wms layer provided by map server. [L?hett?j? poisti kuvan.] Also when i'm zooming or moving the map then both layers work correctly but after a delay of few seconds the second layer(wms layer from map server) again switches back to its initial position(Position that is shown in above attached snapshot). This is the code that i'm using to consume wms service. var layer = new ol.layer.Image({ source: new ol.source.ImageWMS({ url: 'http://localhost:19090/rasters/world/wms', params: { 'LAYERS': 'world', 'mode': 'map', }, serverType: 'mapserver' }) }); This is my map file. MAP NAME "world" CONFIG "MS_ERRORFILE" "/home/neelesh/Projects/georbis/data/logs/mapservice_errors.log" CONFIG "PROJ_LIB" "/home/neelesh/Projects/georbis/deps/proj.4-master/share/proj" CONFIG "ON_MISSING_DATA" "LOG" DEBUG 5 EXTENT -180.000 -90.000 180.000 90.000 SHAPEPATH "/home/neelesh/Projects/georbis/data/service_data/data/wms" IMAGECOLOR 255 255 255 SIZE 1350 675 WEB METADATA "wms_title" "Georbis WMS Server" "wms_author" "VizExperts" "wms_onlineresource" "http://192.168.1.36:19090/rasters/world/wms?" "wms_enable_request" "*" "wms_srs" "epsg:4326" "wms_feature_info_mime_type" "text/html" "wms_format" "image/jpg" END END PROJECTION "init=epsg:4326" END LAYER NAME world TYPE RASTER DATA "world.tif" METADATA "wms_title" "BlueWorld Map" "wms_srs" "epsg:4326" "wms_server_version" "1.1.1" END PROJECTION "init=epsg:4326" END END END I tried ol.view.fit method to fit the layer to its container but the value of layer.getExtent() for the layer is undefined. Also layers are rendering perfectly in QGIS and when i'm using the same layer from geoserver instead of mapserver again it is working fine. This is link to my stackoverflow post. Pleas help me to find out what is wrong. is there any problem with wms request format or the map file? -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image001.jpg Type: image/jpeg Size: 1022 bytes Desc: image001.jpg URL: From jukka.rahkonen at maanmittauslaitos.fi Tue Nov 17 06:09:34 2015 From: jukka.rahkonen at maanmittauslaitos.fi (Rahkonen Jukka (MML)) Date: Tue, 17 Nov 2015 14:09:34 +0000 Subject: [mapserver-users] Geomedia as vector data source with Mapserver Message-ID: <9d4d862e038e4a919777ccf0bb473111@C119S212VM022.msvyvi.vaha.local> Hi, The Mapserver document page says: "See http://www.gdal.org/ogr/ogr_formats.html for the latest list of supported formats. At the date this document was written, the following formats were supported:" What really matters is if the GDAL that Mapserver is compiled with the Geomedia driver. By default it is not http://gdal.org/ogr_formats.html You can check which formats your GDAL supports by running "ogrinfo --formats" There seems to be an alternative driver http://gdal.org/drv_mdb.html which is not compiled by default either. -Jukka Rahkonen- -----Alkuper?inen viesti----- L?hett?j?: mapserver-users [mailto:mapserver-users-bounces at lists.osgeo.org] Puolesta Charlotte Toma (WhereGroup) L?hetetty: 17. marraskuuta 2015 13:38 Vastaanottaja: mapserver-users at lists.osgeo.org Aihe: [mapserver-users] Geomedia as vector data source with Mapserver Hello! I have some problems with the use/ testing with geomedia .mdb-format. I want to create a WMS with Mapserver. Geomedia is listed as a ORG Vector Format at http://www.gdal.org/ogr_formats.html, but not listed as supported format at http://mapserver.org/input/vector/ogr.html. My Question: Can I use Geomedia .mdb as a vector data source with MapServer? Best Wishes, Charlotte Toma -- ******************************************** Where2B Konferenz 2015 10. Dezember 2015 in Bonn www.where2b-conference.com ******************************************** _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From robert.daniels at gmx.de Fri Nov 20 03:24:03 2015 From: robert.daniels at gmx.de (red1981) Date: Fri, 20 Nov 2015 03:24:03 -0800 (PST) Subject: [mapserver-users] mapserver on ubuntu 14.04 - error message Message-ID: <1448018643690-5237603.post@n6.nabble.com> Hi, I'm rather new to mapserver and my knowledge of Linux isn't great either. So this maybe a problem which is not directly related to mapserver. But any help is appreciated and the error message isn't easy to google... First I made a local ms4w installation on a windows machine which works fine. Via localhost I can access the WMS I set up in QGIS and ArcGIS. Now I want to do the same on a Linux server (Ubuntu 14.04) so I can access the wms from anywhere. I used several tutorials and installed apache2 and mapserver. When I enter the IP in my browser I see the Apache default page so that works. Then I tried to access mapserver with http://[IP]/cgi-bin/mapserv and expected the "No query information to decode" error but instead I got a long error message. This is the error message (edited down to remove a lot of strange symbols): ELF /lib64/ld-linux-x86-64.so.2    GNU libmapserver.so.1 _Jv_RegisterClasses _ITM_deregisterTMCloneTable __gmon_start__ _ITM_registerTMCloneTable msIO_installHandlers msResetErrorList msFreeMapServObj msDebug loadParams msCGIWriteError msIO_fprintf msGetVersion msCGIWriteLog msSetup msGetGlobalDebugLevel msCGIDispatchRequest msCGILoadMap msAllocMapServObj msCleanup libfcgi.so.0 FCGI_Accept FCGI_fread FCGI_fwrite _fcgi_sF libc.so.6 fflush exit signal puts getpid putenv stdout stderr gettimeofday __libc_start_main _edata __bss_start _end /usr/lib/x86_64-linux-gnu __libc_csu_init _IO_stdin_used __libc_csu_fini __data_start msCleanupOnSignal GLIBC_2.2.5 In msCleanupOnSignal. QUERY_STRING= REQUEST_METHOD=GET fcgi CGI Request %d on process %d mapserv request processing time (msLoadMap not incl.): %.3fs mapserv total execution time: 5680f.debug #? .shstrtab .interp .note.ABI-tag .note.gnu.build-id .gnu.hash .dynsym .dynstr .gnu.version .gnu.version_r .rela.dyn .rela.plt .init .text .fini .rodata .eh_frame_hdr .eh_frame .init_array .fini_array .jcr .dynamic .got .data .bss .gnu_debuglink -- View this message in context: http://osgeo-org.1560.x6.nabble.com/mapserver-on-ubuntu-14-04-error-message-tp5237603.html Sent from the Mapserver - User mailing list archive at Nabble.com. From thomas.bonfort at gmail.com Fri Nov 20 03:45:16 2015 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Fri, 20 Nov 2015 12:45:16 +0100 Subject: [mapserver-users] mapserver on ubuntu 14.04 - error message In-Reply-To: <1448018643690-5237603.post@n6.nabble.com> References: <1448018643690-5237603.post@n6.nabble.com> Message-ID: You haven't enable cgi handling, your apache server is returning the mapserv binary instead of executing it. -- thomas On 20 November 2015 at 12:24, red1981 wrote: > Hi, > > I'm rather new to mapserver and my knowledge of Linux isn't great either. So > this maybe a problem which is not directly related to mapserver. But any > help is appreciated and the error message isn't easy to google... > > First I made a local ms4w installation on a windows machine which works > fine. Via localhost I can access the WMS I set up in QGIS and ArcGIS. > > Now I want to do the same on a Linux server (Ubuntu 14.04) so I can access > the wms from anywhere. I used several tutorials and installed apache2 and > mapserver. When I enter the IP in my browser I see the Apache default page > so that works. Then I tried to access mapserver with > http://[IP]/cgi-bin/mapserv and expected the "No query information to > decode" error but instead I got a long error message. > > This is the error message (edited down to remove a lot of strange symbols): > > ELF /lib64/ld-linux-x86-64.so.2 GNU > libmapserver.so.1 _Jv_RegisterClasses _ITM_deregisterTMCloneTable > __gmon_start__ _ITM_registerTMCloneTable msIO_installHandlers > msResetErrorList msFreeMapServObj msDebug loadParams msCGIWriteError > msIO_fprintf msGetVersion msCGIWriteLog msSetup msGetGlobalDebugLevel > msCGIDispatchRequest msCGILoadMap msAllocMapServObj msCleanup libfcgi.so.0 > FCGI_Accept FCGI_fread FCGI_fwrite _fcgi_sF libc.so.6 fflush exit signal > puts getpid putenv stdout stderr gettimeofday __libc_start_main _edata > __bss_start _end /usr/lib/x86_64-linux-gnu > __libc_csu_init _IO_stdin_used __libc_csu_fini __data_start > msCleanupOnSignal GLIBC_2.2.5 > In msCleanupOnSignal. > QUERY_STRING= REQUEST_METHOD=GET fcgi CGI Request %d on process %d > mapserv request processing time (msLoadMap not incl.): %.3fs > mapserv total execution time: > 5680f.debug #? .shstrtab .interp .note.ABI-tag .note.gnu.build-id > .gnu.hash .dynsym .dynstr .gnu.version .gnu.version_r .rela.dyn .rela.plt > .init .text .fini .rodata .eh_frame_hdr .eh_frame .init_array .fini_array > .jcr .dynamic .got .data .bss .gnu_debuglink > > > > -- > View this message in context: http://osgeo-org.1560.x6.nabble.com/mapserver-on-ubuntu-14-04-error-message-tp5237603.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 jmckenna at gatewaygeomatics.com Fri Nov 20 04:40:24 2015 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Fri, 20 Nov 2015 15:40:24 +0300 Subject: [mapserver-users] mapserver on ubuntu 14.04 - error message In-Reply-To: <1448018643690-5237603.post@n6.nabble.com> References: <1448018643690-5237603.post@n6.nabble.com> Message-ID: <564F14B8.5040000@gatewaygeomatics.com> On 2015-11-20 2:24 PM, red1981 wrote: > Hi, > > I'm rather new to mapserver and my knowledge of Linux isn't great either. So > this maybe a problem which is not directly related to mapserver. But any > help is appreciated and the error message isn't easy to google... > > First I made a local ms4w installation on a windows machine which works > fine. Via localhost I can access the WMS I set up in QGIS and ArcGIS. > Glad to hear positive feedback, thanks for using MS4W :) -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ From rishe28 at gmail.com Mon Nov 23 01:30:17 2015 From: rishe28 at gmail.com (rishi) Date: Mon, 23 Nov 2015 15:00:17 +0530 Subject: [mapserver-users] create wms service with mapserver Message-ID: i am trying to create wms service using postgres data in mapserver my map file(wms.map) is MAP EXTENT 8240841.450745 2400319.900386 9218007.463612 3107183.406947 TRANSPARENT on IMAGETYPE png size 150 500 web metadata "wms_title" "Customer Airports" "wms_onlineresource" " http://localhost:8085/cgi-bin/mapserv.exe?" "wms_enable_request" "*" "wms_srs" "EPSG:4326 EPSG:900913" "wms_feature_info_mime_type" "text/html" "wms_format" "image/png" end end LAYER CONNECTIONTYPE postgis CONNECTION "user=postgres password=abcd dbname=sample port=5432 host=localhost" DATA "geom FROM district_old using unique gid" STATUS Default TYPE polygon PROJECTION "init=epsg:900913" END labelitem 'district' class style #color 55 230 51 outlinecolor 90 90 90 width 2 end LABEL #color 255 255 255 size 2 BACKGROUNDCOLOR 255 201 14 position auto END end END END in the browser when i paste the url " http://localhost/cgi-bin/mapserv.exe?map=c://ms4w/apps/webgis/wms.map&SERVICE=WMS&REQUEST=GetCapabilities " it is not displaying the xml file instead it is downloading the mapserv.exe file please correct my code also tell me the requirements to work with wms -------------- next part -------------- An HTML attachment was scrubbed... URL: From jmckenna at gatewaygeomatics.com Mon Nov 23 01:40:22 2015 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Mon, 23 Nov 2015 12:40:22 +0300 Subject: [mapserver-users] create wms service with mapserver In-Reply-To: References: Message-ID: <5652DF06.6080105@gatewaygeomatics.com> On 2015-11-23 12:30 PM, rishi wrote: > i am trying to create wms service using postgres data in mapserver my > map file(wms.map) is > > MAP EXTENT 8240841.450745 2400319.900386 9218007.463612 3107183.406947 > TRANSPARENT on IMAGETYPE png size 150 500 > > |web metadata | > > "wms_title" "Customer Airports" "wms_onlineresource" > "http://localhost:8085/cgi-bin/mapserv.exe?" "wms_enable_request" "*" > "wms_srs" "EPSG:4326 EPSG:900913" "wms_feature_info_mime_type" > "text/html" "wms_format" "image/png" > > |end end | > > LAYER CONNECTIONTYPE postgis > CONNECTION "user=postgres password=abcd dbname=sample port=5432 > host=localhost" DATA "geom FROM district_old using unique gid" > > |STATUS Default TYPE polygon PROJECTION "init=epsg:900913" END labelitem > 'district' class style #color 55 230 51 outlinecolor 90 90 90 width 2 > end LABEL #color 255 255 255 size 2 BACKGROUNDCOLOR 255 201 14 position > auto END end | > > END > > END > > in the browser when i paste the url > "http://localhost/cgi-bin/mapserv.exe?map=c://ms4w/apps/webgis/wms.map&SERVICE=WMS&REQUEST=GetCapabilities" > > it is not displaying the xml file instead it is downloading the > mapserv.exe file > > please correct my code also tell me the requirements to work with wms > > > Try renaming the returned "mapserv.exe" file as "mapserv.xml" and open it in a text editor. You should be able to then read the GetCapabilities response. -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ From jt at mapmedia.de Mon Nov 23 01:39:34 2015 From: jt at mapmedia.de (=?UTF-8?Q?J=c3=b6rg_Thomsen?=) Date: Mon, 23 Nov 2015 10:39:34 +0100 Subject: [mapserver-users] create wms service with mapserver In-Reply-To: References: Message-ID: <5652DED6.5060502@mapmedia.de> Hi, nothing went wrong. The problem under windows is, that apache(?) names the capabilities-document mapserv.exe. Save it, open it in an editor and see your capabilities! Perhaps anyone reading this can tell us how to configure the windows-instrallation, so that the capabilities-doc is not named .exe? I don't know. J?rg Am 23.11.2015 um 10:30 schrieb rishi: > > i am trying to create wms service using postgres data in mapserver my > map file(wms.map) is > > MAP EXTENT 8240841.450745 2400319.900386 9218007.463612 3107183.406947 > TRANSPARENT on IMAGETYPE png size 150 500 > > |web metadata | > > "wms_title" "Customer Airports" "wms_onlineresource" > "http://localhost:8085/cgi-bin/mapserv.exe?" "wms_enable_request" "*" > "wms_srs" "EPSG:4326 EPSG:900913" "wms_feature_info_mime_type" > "text/html" "wms_format" "image/png" > > |end end | > > LAYER CONNECTIONTYPE postgis > CONNECTION "user=postgres password=abcd dbname=sample port=5432 > host=localhost" DATA "geom FROM district_old using unique gid" > > |STATUS Default TYPE polygon PROJECTION "init=epsg:900913" END > labelitem 'district' class style #color 55 230 51 outlinecolor 90 90 > 90 width 2 end LABEL #color 255 255 255 size 2 BACKGROUNDCOLOR 255 201 > 14 position auto END end | > > END > > END > > in the browser when i paste the url > "http://localhost/cgi-bin/mapserv.exe?map=c://ms4w/apps/webgis/wms.map&SERVICE=WMS&REQUEST=GetCapabilities" > > it is not displaying the xml file instead it is downloading the > mapserv.exe file > > please correct my code also tell me the requirements to work with wms > > > > _______________________________________________ > 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 maanmittauslaitos.fi Mon Nov 23 02:22:01 2015 From: jukka.rahkonen at maanmittauslaitos.fi (Rahkonen Jukka (MML)) Date: Mon, 23 Nov 2015 10:22:01 +0000 Subject: [mapserver-users] create wms service with mapserver Message-ID: <11c8b7504f48421b8e51a87604499b76@C119S212VM022.msvyvi.vaha.local> I guess that something went wrong but saving mapserv.exe into file and reading it with text editor is the right thing to do. J?rg and Jeff should have noticed that the GetCapabilities request was made without &VERSION which means the highest version 1.3.0 for Mapserver and then the normal GetCapabilities document will be sent with mime type that most browsers understand. Try it: http://demo.mapserver.org/cgi-bin/wms?SERVICE=WMS&REQUEST=GetCapabilities I may be wrong but I would rather believe that mapserv.exe contains an error message about unknown projection epsg:900913. Use epsg:3857 instead. And I prefer using an explicit parameter &VERSION= always instead of relying on what version comes from the lottery when version in not defined in the query. -Jukka Rahkonen- J?rg Thomsen wrote: Hi, nothing went wrong. The problem under windows is, that apache(?) names the capabilities-document mapserv.exe. Save it, open it in an editor and see your capabilities! Perhaps anyone reading this can tell us how to configure the windows-instrallation, so that the capabilities-doc is not named .exe? I don't know. J?rg Am 23.11.2015 um 10:30 schrieb rishi: i am trying to create wms service using postgres data in mapserver my map file(wms.map) is MAP EXTENT 8240841.450745 2400319.900386 9218007.463612 3107183.406947 TRANSPARENT on IMAGETYPE png size 150 500 web metadata "wms_title" "Customer Airports" "wms_onlineresource" "http://localhost:8085/cgi-bin/mapserv.exe?" "wms_enable_request" "*" "wms_srs" "EPSG:4326 EPSG:900913" "wms_feature_info_mime_type" "text/html" "wms_format" "image/png" end end LAYER CONNECTIONTYPE postgis CONNECTION "user=postgres password=abcd dbname=sample port=5432 host=localhost" DATA "geom FROM district_old using unique gid" STATUS Default TYPE polygon PROJECTION "init=epsg:900913" END labelitem 'district' class style #color 55 230 51 outlinecolor 90 90 90 width 2 end LABEL #color 255 255 255 size 2 BACKGROUNDCOLOR 255 201 14 position auto END end END END in the browser when i paste the url "http://localhost/cgi-bin/mapserv.exe?map=c://ms4w/apps/webgis/wms.map&SERVICE=WMS&REQUEST=GetCapabilities" it is not displaying the xml file instead it is downloading the mapserv.exe file please correct my code also tell me the requirements to work with wms _______________________________________________ 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 maanmittauslaitos.fi Mon Nov 23 03:04:03 2015 From: jukka.rahkonen at maanmittauslaitos.fi (Rahkonen Jukka (MML)) Date: Mon, 23 Nov 2015 11:04:03 +0000 Subject: [mapserver-users] create wms service with mapserver Message-ID: <126267e66672406580b9ef73a706faea@C119S212VM022.msvyvi.vaha.local> MS4W is ready for WMS but please tell us first what do you see when you opened the mapserv.exe file with a text editor. -Jukka Rahkonen- rishi wrote: do i need to install anything related to wms in ms4w folder? MapServer version 5.2.1 On Mon, Nov 23, 2015 at 3:52 PM, Rahkonen Jukka (MML) > wrote: I guess that something went wrong but saving mapserv.exe into file and reading it with text editor is the right thing to do. J?rg and Jeff should have noticed that the GetCapabilities request was made without &VERSION which means the highest version 1.3.0 for Mapserver and then the normal GetCapabilities document will be sent with mime type that most browsers understand. Try it: http://demo.mapserver.org/cgi-bin/wms?SERVICE=WMS&REQUEST=GetCapabilities I may be wrong but I would rather believe that mapserv.exe contains an error message about unknown projection epsg:900913. Use epsg:3857 instead. And I prefer using an explicit parameter &VERSION= always instead of relying on what version comes from the lottery when version in not defined in the query. -Jukka Rahkonen- J?rg Thomsen wrote: Hi, nothing went wrong. The problem under windows is, that apache(?) names the capabilities-document mapserv.exe. Save it, open it in an editor and see your capabilities! Perhaps anyone reading this can tell us how to configure the windows-instrallation, so that the capabilities-doc is not named .exe? I don't know. J?rg Am 23.11.2015 um 10:30 schrieb rishi: i am trying to create wms service using postgres data in mapserver my map file(wms.map) is MAP EXTENT 8240841.450745 2400319.900386 9218007.463612 3107183.406947 TRANSPARENT on IMAGETYPE png size 150 500 web metadata "wms_title" "Customer Airports" "wms_onlineresource" "http://localhost:8085/cgi-bin/mapserv.exe?" "wms_enable_request" "*" "wms_srs" "EPSG:4326 EPSG:900913" "wms_feature_info_mime_type" "text/html" "wms_format" "image/png" end end LAYER CONNECTIONTYPE postgis CONNECTION "user=postgres password=abcd dbname=sample port=5432 host=localhost" DATA "geom FROM district_old using unique gid" STATUS Default TYPE polygon PROJECTION "init=epsg:900913" END labelitem 'district' class style #color 55 230 51 outlinecolor 90 90 90 width 2 end LABEL #color 255 255 255 size 2 BACKGROUNDCOLOR 255 201 14 position auto END end END END in the browser when i paste the url "http://localhost/cgi-bin/mapserv.exe?map=c://ms4w/apps/webgis/wms.map&SERVICE=WMS&REQUEST=GetCapabilities" it is not displaying the xml file instead it is downloading the mapserv.exe file please correct my code also tell me the requirements to work with wms _______________________________________________ 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 jukka.rahkonen at maanmittauslaitos.fi Mon Nov 23 03:35:22 2015 From: jukka.rahkonen at maanmittauslaitos.fi (Rahkonen Jukka (MML)) Date: Mon, 23 Nov 2015 11:35:22 +0000 Subject: [mapserver-users] create wms service with mapserver Message-ID: <7ee06a8f5d62427bac8dbe39365369a3@C119S212VM022.msvyvi.vaha.local> There is nothing that is obviously wrong in your mapfile. Some suggestions: - Add debug 5 into your layer - Try to get a map with shp2img - Convert data from PostGIS into shapefile and use that as source data. It seems that you have changed something in between because first you wrote ?in the browser when i paste the url "http://localhost/cgi-bin/mapserv.exe?map=c://ms4w/apps/webgis/wms.map&SERVICE=WMS&REQUEST=GetCapabilities" Now you write that this is the URL (http://localhost:8085/cgi-bin/mapserv.exe?mode=map&map=c://ms4w/apps/webgis/mp/wms.map), -Jukka Rahkonen- L?hett?j?: rishi [mailto:rishe28 at gmail.com] L?hetetty: 23. marraskuuta 2015 13:10 Vastaanottaja: Rahkonen Jukka (MML) Aihe: Re: [mapserver-users] create wms service with mapserver When i tried to open that mapserv.exe file it is displaying as "the file or directory is corrupted or unreadable". if i open the same file as mode=map (http://localhost:8085/cgi-bin/mapserv.exe?mode=map&map=c://ms4w/apps/webgis/mp/wms.map), it is displaying the map On Mon, Nov 23, 2015 at 4:34 PM, Rahkonen Jukka (MML) > wrote: MS4W is ready for WMS but please tell us first what do you see when you opened the mapserv.exe file with a text editor. -Jukka Rahkonen- rishi wrote: do i need to install anything related to wms in ms4w folder? MapServer version 5.2.1 On Mon, Nov 23, 2015 at 3:52 PM, Rahkonen Jukka (MML) > wrote: I guess that something went wrong but saving mapserv.exe into file and reading it with text editor is the right thing to do. J?rg and Jeff should have noticed that the GetCapabilities request was made without &VERSION which means the highest version 1.3.0 for Mapserver and then the normal GetCapabilities document will be sent with mime type that most browsers understand. Try it: http://demo.mapserver.org/cgi-bin/wms?SERVICE=WMS&REQUEST=GetCapabilities I may be wrong but I would rather believe that mapserv.exe contains an error message about unknown projection epsg:900913. Use epsg:3857 instead. And I prefer using an explicit parameter &VERSION= always instead of relying on what version comes from the lottery when version in not defined in the query. -Jukka Rahkonen- -------------- next part -------------- An HTML attachment was scrubbed... URL: From robert.daniels at gmx.de Mon Nov 23 05:25:28 2015 From: robert.daniels at gmx.de (red1981) Date: Mon, 23 Nov 2015 05:25:28 -0800 (PST) Subject: [mapserver-users] mapserver on ubuntu 14.04 - error message In-Reply-To: References: <1448018643690-5237603.post@n6.nabble.com> Message-ID: <1448285128283-5238048.post@n6.nabble.com> @tbonfort Yes, after I enabled CGI it worked. Many thanks. -- View this message in context: http://osgeo-org.1560.x6.nabble.com/mapserver-on-ubuntu-14-04-error-message-tp5237603p5238048.html Sent from the Mapserver - User mailing list archive at Nabble.com. From jukka.rahkonen at maanmittauslaitos.fi Mon Nov 23 08:43:14 2015 From: jukka.rahkonen at maanmittauslaitos.fi (Rahkonen Jukka (MML)) Date: Mon, 23 Nov 2015 16:43:14 +0000 Subject: [mapserver-users] create wms service with mapserver Message-ID: <9d938a982bbc4eb682beb4989bcc9001@C119S212VM022.msvyvi.vaha.local> What do you get if you send just this: http://localhost/cgi-bin/mapserv.exe?map=c://ms4w/apps/webgis/wms.map Any chance that it is like this: msProcessProjection(): Projection library error. proj error "no options found in 'init' file" for "init=epsg:900913" -Jukka Rahkonen- L?hett?j?: rishi [mailto:rishe28 at gmail.com] L?hetetty: 23. marraskuuta 2015 18:20 Vastaanottaja: Rahkonen Jukka (MML) Aihe: Re: [mapserver-users] create wms service with mapserver yes i am having 2 mapfiles in 2 different location. Path is not an issue. But in both the cases getcapabilities is not working. please tell me that -------------- next part -------------- An HTML attachment was scrubbed... URL: From rishe28 at gmail.com Mon Nov 23 23:24:18 2015 From: rishe28 at gmail.com (rishi) Date: Tue, 24 Nov 2015 12:54:18 +0530 Subject: [mapserver-users] wms Message-ID: hi all my wms url is http://localhost:8085/cgi-bin/mapserv.exe? map=c://ms4w/apps/webgis/wmssample.map&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetCapabilities when i hit the above url it is downloading the mapserv.exe then i am changing .exe to .txt then i can able to see xml file but when i am trying to add the above url in qgis, map is not displaying also i am getting error as document is in invalid format. if i hit the url http://localhost:8085/cgi-bin/mapserv? map=c://ms4w/apps/webgis/wmssample.map&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetCapabilities without .exe the it is showing error as The requested URL /cgi-bin/mapserv was not found on this server. please tell me how to resolve the issue -------------- next part -------------- An HTML attachment was scrubbed... URL: From jvenegasperu at gmail.com Tue Nov 24 09:11:32 2015 From: jvenegasperu at gmail.com (jvenegasperu .) Date: Tue, 24 Nov 2015 12:11:32 -0500 Subject: [mapserver-users] connect to oracle to information alphanumeric Message-ID: Hi all in ms4w ver 3 i can connect to oracle i use php_oci8_11g.dll all ok in ms4w 3.1 can not connect to oracle. i copy php_oci8_11g.dll to php/ext and activate php_oci8_11g.dll in php.ini but not connect to oracle. please help -- Jos? Mercedes Venegas Acevedo cel Mov RPM #955853768 mails: jvenegasperu at gmail.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From Robert.Sanson at asurequality.com Tue Nov 24 12:03:54 2015 From: Robert.Sanson at asurequality.com (Robert Sanson) Date: Tue, 24 Nov 2015 20:03:54 +0000 Subject: [mapserver-users] wms In-Reply-To: References: Message-ID: <4af47c14223044f2980680b3549817c8@OPASAKLPMBX03.nz01a.opaas.net.nz> Hi Rishi What does the .txt file say? Is the path map=c://ms4w/apps/webgis/wmssample.map correct? Perhaps you should try: map=/ms4w/apps/webgis/wmssample.map regards, Robert From: mapserver-users [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of rishi Sent: Tuesday, 24 November 2015 8:24 p.m. To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] wms hi all my wms url is http://localhost:8085/cgi-bin/mapserv.exe? map=c://ms4w/apps/webgis/wmssample.map&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetCapabilities when i hit the above url it is downloading the mapserv.exe then i am changing .exe to .txt then i can able to see xml file but when i am trying to add the above url in qgis, map is not displaying also i am getting error as document is in invalid format. if i hit the url http://localhost:8085/cgi-bin/mapserv? map=c://ms4w/apps/webgis/wmssample.map&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetCapabilities without .exe the it is showing error as The requested URL /cgi-bin/mapserv was not found on this server. please tell me how to resolve the issue -------------- next part -------------- An HTML attachment was scrubbed... URL: From jea at hbaspecto.com Tue Nov 24 14:43:57 2015 From: jea at hbaspecto.com (John Abraham) Date: Tue, 24 Nov 2015 15:43:57 -0700 Subject: [mapserver-users] wms In-Reply-To: References: Message-ID: <892C7F24-EB03-4BB4-9F5B-161CEA021489@hbaspecto.com> You are not normally supposed to include the other parameters (&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetCapabilities) when you are adding a WMS/WFS URL to QGIS. You specify the service and version in the QGIS dialog box instead. QGIS will append those parameters for you, and query the GetCapabilities for you, and provide you with a list of options. After you select a layer to include, QGIS will query without the GetCapabilities to retrieve the actual map images, based on what it finds when it did the GetCapabilities query. So, try http://localhost:8085/cgi-bin/mapserv.exe?map=c://ms4w/apps/webgis/wmssample.map (In fact when you are working with other GIS packages it is sometimes even a problem to include the ?map= parameter explicitly in the URL. There's some approach with Apache Rewrite rules or mapserver configuration files or something like that to tell mapserver the name of the mapfile without having it as a parameter in the URL. I can't find the documentation on that right now, but I didn't look too hard. It seems the normal use case is to have a public facing URL and then your different feature layers are all defined in the same mapfile that's hidden from the user. Anyway, my use case has hundreds of dynamically generated mapfiles, and QGIS never seems to have a problem with having the ?map= in the URL.) As the other person mentioned, try to avoid putting the drive letter "c://" in the URL. It's just confusing to everyone to have a drive letter in the middle of a url. Also, in your email below I see a space before the word map. Make sure that's not there in reality. " map" might not be recognized as the same parameter name as "map" -- John Abraham jea at hbaspecto.com 403-232-1060 > On Nov 24, 2015, at 12:24 AM, rishi wrote: > > hi all > > my wms url is > http://localhost:8085/cgi-bin/mapserv.exe ? map=c://ms4w/apps/webgis/wmssample.map&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetCapabilities > > when i hit the above url it is downloading the mapserv.exe then i am changing .exe to .txt then i can able to see xml file > > but when i am trying to add the above url in qgis, map is not displaying also i am getting error as document is in invalid format. > > if i hit the url http://localhost:8085/cgi-bin/mapserv ? map=c://ms4w/apps/webgis/wmssample.map&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetCapabilities > > without .exe the it is showing error as The requested URL /cgi-bin/mapserv was not found on this server. > > please tell me how to resolve the issue > > > _______________________________________________ > 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 rishe28 at gmail.com Wed Nov 25 22:30:22 2015 From: rishe28 at gmail.com (rishi) Date: Thu, 26 Nov 2015 12:00:22 +0530 Subject: [mapserver-users] wms In-Reply-To: <892C7F24-EB03-4BB4-9F5B-161CEA021489@hbaspecto.com> References: <892C7F24-EB03-4BB4-9F5B-161CEA021489@hbaspecto.com> Message-ID: hi i have removed the space and "c://" from the url, still map is not displaying in the qgis please check my mapfile whether i am doing any mistake MAP IMAGETYPE svg UNITS METERS EXTENT 8240841.450745 2400319.900386 9218007.463612 3107183.406947 SIZE 1400 1300 SHAPEPATH "/ms4w/apps/webgis/data" IMAGECOLOR 255 255 255 TRANSPARENT on DEBUG ON CONFIG "MS_ERRORFILE" "/ms4w/tmp/ms_error.txt" web metadata "wms_title" "MapServer layer" "wms_onlineresource" " http://localhost:8085/cgi-bin/mapserv.exe? map=/ms4w/apps/webgis/wmssample.map" "wms_enable_request" "*" "wms_srs" "EPSG:4326 EPSG:3857" "wms_feature_info_mime_type" "text/html" end end # Start of LAYER DEFINITIONS --------------------------------------------- LAYER # States polygon layer begins here METADATA "wms_title" "districts" "wms_srs" "EPSG:4326 EPSG:3857" END NAME district_old DATA district_old STATUS Default TYPE POLYGON PROJECTION "init=EPSG:4326" END CLASS style #color 55 230 51 outlinecolor 90 90 90 width 2 end LABEL #color 255 255 255 size 2 BACKGROUNDCOLOR 255 201 14 position auto END END END END imagetype also i tried with png and svg url is http://localhost:8085/cgi-bin/mapserv.exe?map=/ms4w/apps/webgis/wmssample.map&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetCapabilities On Wed, Nov 25, 2015 at 4:13 AM, John Abraham wrote: > You are not normally supposed to include the other parameters > (&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetCapabilities) when you are adding a > WMS/WFS URL to QGIS. You specify the service and version in the QGIS > dialog box instead. QGIS will append those parameters for you, and query > the GetCapabilities for you, and provide you with a list of options. After > you select a layer to include, QGIS will query without the GetCapabilities > to retrieve the actual map images, based on what it finds when it did the > GetCapabilities query. > > So, try http://localhost:8085/cgi-bin/mapserv.exe > ?map=c://ms4w/apps/webgis/wmssample.map > > (In fact when you are working with other GIS packages it is sometimes even > a problem to include the ?map= parameter explicitly in the URL. There's > some approach with Apache Rewrite rules or mapserver configuration files or > something like that to tell mapserver the name of the mapfile without > having it as a parameter in the URL. I can't find the documentation on > that right now, but I didn't look too hard. It seems the normal use case > is to have a public facing URL and then your different feature layers are > all defined in the same mapfile that's hidden from the user. Anyway, my > use case has hundreds of dynamically generated mapfiles, and QGIS never > seems to have a problem with having the ?map= in the URL.) > > As the other person mentioned, try to avoid putting the drive letter > "c://" in the URL. It's just confusing to everyone to have a drive letter > in the middle of a url. > > Also, in your email below I see a space before the word map. Make sure > that's not there in reality. " map" might not be recognized as the same > parameter name as "map" > > -- > John Abraham > jea at hbaspecto.com > 403-232-1060 > > On Nov 24, 2015, at 12:24 AM, rishi wrote: > > hi all > > my wms url is > http://localhost:8085/cgi-bin/mapserv.exe? > map=c://ms4w/apps/webgis/wmssample.map&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetCapabilities > > when i hit the above url it is downloading the mapserv.exe then i am > changing .exe to .txt then i can able to see xml file > > but when i am trying to add the above url in qgis, map is not displaying > also i am getting error as document is in invalid format. > > if i hit the url http://localhost:8085/cgi-bin/mapserv? > map=c://ms4w/apps/webgis/wmssample.map&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetCapabilities > > without .exe the it is showing error as The requested URL > /cgi-bin/mapserv was not found on this server. > > please tell me how to resolve the issue > > > _______________________________________________ > 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 jea at hbaspecto.com Thu Nov 26 06:48:08 2015 From: jea at hbaspecto.com (John Abraham) Date: Thu, 26 Nov 2015 07:48:08 -0700 Subject: [mapserver-users] wms In-Reply-To: References: <892C7F24-EB03-4BB4-9F5B-161CEA021489@hbaspecto.com> Message-ID: <9A37604B-18DF-4F4C-AD7F-1EC32EEE2F19@hbaspecto.com> Don't forget to remove the &SERVICE=WMS&VERSION=1.1.1&REQUEST=GetCapabilities From the url before giving it to qgis -- John Abraham Sent from my iPhone, please excuse any typos. > On Nov 25, 2015, at 11:30 PM, rishi wrote: > > &SERVICE=WMS&VERSION=1.1.1&REQUEST=GetCapabilities From rishe28 at gmail.com Thu Nov 26 22:04:26 2015 From: rishe28 at gmail.com (rishi) Date: Fri, 27 Nov 2015 11:34:26 +0530 Subject: [mapserver-users] wms In-Reply-To: <9A37604B-18DF-4F4C-AD7F-1EC32EEE2F19@hbaspecto.com> References: <892C7F24-EB03-4BB4-9F5B-161CEA021489@hbaspecto.com> <9A37604B-18DF-4F4C-AD7F-1EC32EEE2F19@hbaspecto.com> Message-ID: wms layer is displaying, but it is not displaying properly on openstreetmap. Also zoom and pan functionalities are not working. please tell me why this is not working properly. On Thu, Nov 26, 2015 at 8:18 PM, John Abraham wrote: > Don't forget to remove the > &SERVICE=WMS&VERSION=1.1.1&REQUEST=GetCapabilities > From the url before giving it to qgis > > -- > John Abraham > > Sent from my iPhone, please excuse any typos. > > > On Nov 25, 2015, at 11:30 PM, rishi wrote: > > > > &SERVICE=WMS&VERSION=1.1.1&REQUEST=GetCapabilities > -------------- next part -------------- An HTML attachment was scrubbed... URL: From yves.jacolin at camptocamp.com Fri Nov 27 01:09:22 2015 From: yves.jacolin at camptocamp.com (Yves Jacolin) Date: Fri, 27 Nov 2015 10:09:22 +0100 Subject: [mapserver-users] wms In-Reply-To: <9A37604B-18DF-4F4C-AD7F-1EC32EEE2F19@hbaspecto.com> References: <9A37604B-18DF-4F4C-AD7F-1EC32EEE2F19@hbaspecto.com> Message-ID: <3222770.mlReqRnAVD@tatras> On Thursday, November 26, 2015 7:48:08 John Abraham wrote: > Don't forget to remove the > &SERVICE=WMS&VERSION=1.1.1&REQUEST=GetCapabilities From the url before > giving it to qgis [OFF TOPIC] Not sure if this really triggers any errors in QGIS and wondering if QGIS keeps VERSION=x.x.x parameter to the next getmap request. Y. -- Responsable Formation et Support Camptocamp France SAS Savoie Technolac, BP 352 73377 Le Bourget du Lac, Cedex Tel (France) : +33 4 58 48 20 43 (new !) Tel (Suisse) : +41 21 619 10 43 Mob. : +33 6 18 75 42 21 Fax : 04 79 70 15 81 Mail : yves.jacolin at camptocamp.com http://www.camptocamp.com From tramtara at seznam.cz Fri Nov 27 20:17:20 2015 From: tramtara at seznam.cz (CzendaZdenda) Date: Fri, 27 Nov 2015 20:17:20 -0800 (PST) Subject: [mapserver-users] How setting the legend color from mapscript In-Reply-To: References: Message-ID: <1448684240104-5238920.post@n6.nabble.com> Hi, do you mean legend at a map? Or the separate one legend image (msMap.drawLegend())? If the problem is just in the map legend, then do you use something like this?: msMap.outputformat.transparent = 1 # or mapscript.MS_ON If yes, try to comment it. -- View this message in context: http://osgeo-org.1560.x6.nabble.com/How-setting-the-legend-color-from-mapscript-tp5233737p5238920.html Sent from the Mapserver - User mailing list archive at Nabble.com. From aperi2007 at gmail.com Fri Nov 27 23:37:00 2015 From: aperi2007 at gmail.com (Andrea Peri) Date: Sat, 28 Nov 2015 08:37:00 +0100 Subject: [mapserver-users] How setting the legend color from mapscript In-Reply-To: <1448684240104-5238920.post@n6.nabble.com> References: <1448684240104-5238920.post@n6.nabble.com> Message-ID: Hi, thx for reply. I mean the separate one legend image as callable using a GetLegendGraphics request. My python code is this: msMap.legend.keysizex=15 msMap.legend.keysizey=20 msMap.legend.keyspacingx=3 msMap.legend.keyspacingy=3 legendColor = mapscript.colorObj(255,255,255,0) msMap.legend.imagecolor=legendColor msMap.legend.status = mapscript.MS_OFF msMap.legend.postlabelcache = mapscript.MS_TRUE labelLegend = mapscript.labelObj() labelLegend.type = mapscript.MS_TRUETYPE labelLegend.size = 7 msMap.legend.label = labelLegend A. 2015-11-28 5:17 GMT+01:00 CzendaZdenda : > Hi, > > do you mean legend at a map? Or the separate one legend image > (msMap.drawLegend())? If the problem is just in the map legend, then do you > use something like this?: > > msMap.outputformat.transparent = 1 # or mapscript.MS_ON > > If yes, try to comment it. > > > > -- > View this message in context: http://osgeo-org.1560.x6.nabble.com/How-setting-the-legend-color-from-mapscript-tp5233737p5238920.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 -- ----------------- Andrea Peri . . . . . . . . . qwerty ????? ----------------- From tramtara at seznam.cz Sun Nov 29 21:47:53 2015 From: tramtara at seznam.cz (CzendaZdenda) Date: Sun, 29 Nov 2015 21:47:53 -0800 (PST) Subject: [mapserver-users] How setting the legend color from mapscript In-Reply-To: References: <1448684240104-5238920.post@n6.nabble.com> Message-ID: <1448862473115-5239095.post@n6.nabble.com> I have tried to change the legend imagecolor variable using python mapscript. python: ... mapobj.legend.status = mapscript.MS_OFF mapobj.legend.imagecolor = mapscript.colorObj(255, 100, 0, 0) ... mapfile: ... LEGEND ... IMAGECOLOR 255 100 0 ... ... When I change a legend.imagecolor to mapscript.colorObj(255,255,255), no IMAGECOLOR was in mapfile. Probably it's a default colour? So it seems that imagecolor is supported by python mapscript. I use mapscript v6.4.1 from OSGeo4W. -- View this message in context: http://osgeo-org.1560.x6.nabble.com/How-setting-the-legend-color-from-mapscript-tp5233737p5239095.html Sent from the Mapserver - User mailing list archive at Nabble.com. From wiltoma at gmail.com Mon Nov 30 04:33:48 2015 From: wiltoma at gmail.com (wiltomap) Date: Mon, 30 Nov 2015 04:33:48 -0800 (PST) Subject: [mapserver-users] Mapserver: set symbol on lines according to line features length Message-ID: <1448886828483-5239136.post@n6.nabble.com> I need to display arrows alongside to line features. Lines represent water pipes. The issue I'm facing is that lines are a concatenation of numerous line features of various lengths. Therefore, symbols are attached to every line, whatever its length. This makes symbols either overlaying or touching eachother (as in example below). Inside my mapfile, I define the display rules of my symbols in the STYLE element: STYLE SYMBOL "wp_arrow" GAP -100 COLOR 255 0 0 OFFSET -5 -99 SIZE 6 END I would like these rules to apply only to line features being more than 10 meters long (or x map units). Thanks in advance for help or any advice! Thomas -- View this message in context: http://osgeo-org.1560.x6.nabble.com/Mapserver-set-symbol-on-lines-according-to-line-features-length-tp5239136.html Sent from the Mapserver - User mailing list archive at Nabble.com. From Andreas.Eichner at sid.sachsen.de Mon Nov 30 07:25:01 2015 From: Andreas.Eichner at sid.sachsen.de (Eichner, Andreas - SID) Date: Mon, 30 Nov 2015 15:25:01 +0000 Subject: [mapserver-users] Mapserver: set symbol on lines according to line features length In-Reply-To: <1448886828483-5239136.post@n6.nabble.com> References: <1448886828483-5239136.post@n6.nabble.com> Message-ID: <6F331135492B944D90731CE93743D568200064@FS-EX-DB102.fs.sachsen.de> AFAIK you need to preprocess your data and use CLASSes in your map file. Using OGR or a SQL database you might be able to do this on the fly within your DATA. For example, the command $ ogrinfo -dialect sqlite -sql "select st_length(geometry) > 10 as longenough from water_pipes" water_pipes.shp creates a computed field containing 1 if the line geometry has a length greater than 10. You can then classify on this an apply a symbolization conditionally: LAYER CLASS EXPRESSION "([longenough] != 0)" STYLE SYMBOL "wp_arrow" GAP -100 COLOR 255 0 0 OFFSET -5 -99 SIZE 6 END END CLASS # default style goes here END END I have not tested this but it might give you a hint how to accomplish it. HTH > -----Urspr?ngliche Nachricht----- > Von: mapserver-users [mailto:mapserver-users-bounces at lists.osgeo.org] Im > Auftrag von wiltomap > Gesendet: Montag, 30. November 2015 13:34 > An: mapserver-users at lists.osgeo.org > Betreff: [mapserver-users] Mapserver: set symbol on lines according to > line features length > > I need to display arrows alongside to line features. Lines represent water > pipes. The issue I'm facing is that lines are a concatenation of numerous > line features of various lengths. Therefore, symbols are attached to every > line, whatever its length. This makes symbols either overlaying or > touching > eachother (as in example below). > > > > Inside my mapfile, I define the display rules of my symbols in the STYLE > element: > > STYLE > SYMBOL "wp_arrow" > GAP -100 > COLOR 255 0 0 > OFFSET -5 -99 > SIZE 6 > END > > I would like these rules to apply only to line features being more than 10 > meters long (or x map units). > > Thanks in advance for help or any advice! > > > Thomas > > > > > -- > View this message in context: http://osgeo- > org.1560.x6.nabble.com/Mapserver-set-symbol-on-lines-according-to-line- > features-length-tp5239136.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 miladnidal2604 at gmail.com Mon Nov 30 17:49:14 2015 From: miladnidal2604 at gmail.com (milad nidal) Date: Mon, 30 Nov 2015 20:49:14 -0500 Subject: [mapserver-users] WMS cascading and Mapcache Message-ID: Hi, I have 100 layer for a large area.. I was creating cache (with Mapcache linux) and Mapserver 6.4 (Windows). I?m creating some WMS from layer in Postgis and some from other WMS (cascading from another Mapserver Linux) and everything was correct. Later we started using Mapserver 7 (Linux) and Mapcache Linux. The result is not nice.. We get something like an outline of cascading WMS and this happened only when we do a cache (it is correct when we visualize the cascading WMS for one layer in the browser). I?m using the style "" and "wms_transparent" "true" and "wms_format" "image/png". Thanks for any help -------------- next part -------------- An HTML attachment was scrubbed... URL: From jukka.rahkonen at maanmittauslaitos.fi Mon Nov 23 03:32:51 2015 From: jukka.rahkonen at maanmittauslaitos.fi (Rahkonen Jukka (MML)) Date: Mon, 23 Nov 2015 11:32:51 -0000 Subject: [mapserver-users] create wms service with mapserver Message-ID: There is nothing that is obviously wrong in your mapfile. Some suggestions: - Add debug 5 into your layer - Try to get a map with shp2img - Convert data from PostGIS into shapefile and use that as source data. It seems that you have changed something in between because first you wrote ?in the browser when i paste the url "http://localhost/cgi-bin/mapserv.exe?map=c://ms4w/apps/webgis/wms.map&SERVICE=WMS&REQUEST=GetCapabilities" Now you write that this is the URL (http://localhost:8085/cgi-bin/mapserv.exe?mode=map&map=c://ms4w/apps/webgis/mp/wms.map), -Jukka Rahkonen- L?hett?j?: rishi [mailto:rishe28 at gmail.com] L?hetetty: 23. marraskuuta 2015 13:10 Vastaanottaja: Rahkonen Jukka (MML) Aihe: Re: [mapserver-users] create wms service with mapserver When i tried to open that mapserv.exe file it is displaying as "the file or directory is corrupted or unreadable". if i open the same file as mode=map (http://localhost:8085/cgi-bin/mapserv.exe?mode=map&map=c://ms4w/apps/webgis/mp/wms.map), it is displaying the map On Mon, Nov 23, 2015 at 4:34 PM, Rahkonen Jukka (MML) > wrote: MS4W is ready for WMS but please tell us first what do you see when you opened the mapserv.exe file with a text editor. -Jukka Rahkonen- rishi wrote: do i need to install anything related to wms in ms4w folder? MapServer version 5.2.1 On Mon, Nov 23, 2015 at 3:52 PM, Rahkonen Jukka (MML) > wrote: I guess that something went wrong but saving mapserv.exe into file and reading it with text editor is the right thing to do. J?rg and Jeff should have noticed that the GetCapabilities request was made without &VERSION which means the highest version 1.3.0 for Mapserver and then the normal GetCapabilities document will be sent with mime type that most browsers understand. Try it: http://demo.mapserver.org/cgi-bin/wms?SERVICE=WMS&REQUEST=GetCapabilities I may be wrong but I would rather believe that mapserv.exe contains an error message about unknown projection epsg:900913. Use epsg:3857 instead. And I prefer using an explicit parameter &VERSION= always instead of relying on what version comes from the lottery when version in not defined in the query. -Jukka Rahkonen- J?rg Thomsen wrote: Hi, nothing went wrong. The problem under windows is, that apache(?) names the capabilities-document mapserv.exe. Save it, open it in an editor and see your capabilities! Perhaps anyone reading this can tell us how to configure the windows-instrallation, so that the capabilities-doc is not named .exe? I don't know. J?rg Am 23.11.2015 um 10:30 schrieb rishi: i am trying to create wms service using postgres data in mapserver my map file(wms.map) is MAP EXTENT 8240841.450745 2400319.900386 9218007.463612 3107183.406947 TRANSPARENT on IMAGETYPE png size 150 500 web metadata "wms_title" "Customer Airports" "wms_onlineresource" "http://localhost:8085/cgi-bin/mapserv.exe?" "wms_enable_request" "*" "wms_srs" "EPSG:4326 EPSG:900913" "wms_feature_info_mime_type" "text/html" "wms_format" "image/png" end end LAYER CONNECTIONTYPE postgis CONNECTION "user=postgres password=abcd dbname=sample port=5432 host=localhost" DATA "geom FROM district_old using unique gid" STATUS Default TYPE polygon PROJECTION "init=epsg:900913" END labelitem 'district' class style #color 55 230 51 outlinecolor 90 90 90 width 2 end LABEL #color 255 255 255 size 2 BACKGROUNDCOLOR 255 201 14 position auto END end END END in the browser when i paste the url "http://localhost/cgi-bin/mapserv.exe?map=c://ms4w/apps/webgis/wms.map&SERVICE=WMS&REQUEST=GetCapabilities" it is not displaying the xml file instead it is downloading the mapserv.exe file please correct my code also tell me the requirements to work with wms _______________________________________________ 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 jukka.rahkonen at maanmittauslaitos.fi Mon Nov 23 05:02:29 2015 From: jukka.rahkonen at maanmittauslaitos.fi (Rahkonen Jukka (MML)) Date: Mon, 23 Nov 2015 13:02:29 -0000 Subject: [mapserver-users] create wms service with mapserver Message-ID: Hi, I do understand what you want to do with GetCapabilities. What I tried to ask is why there is different path to the mapfile it the two requests: map=c://ms4w/apps/webgis/wms.map map=c://ms4w/apps/webgis/mp/wms.map Is it just a typo, have you changed the location of the mapfile, do you have two mapfiles in different places? -Jukka- rishi wrote: "http://localhost:8085/cgi-bin/mapserv.exe?map=c://ms4w/apps/webgis/wms.map&SERVICE=WMS&REQUEST=GetCapabilities" i am trying to display xml format using this url http://localhost:8085/cgi-bin/mapserv.exe?mode=map&map=c://ms4w/apps/webgis/mp/wms.map this url displays map On Mon, Nov 23, 2015 at 5:02 PM, Rahkonen Jukka (MML) > wrote: There is nothing that is obviously wrong in your mapfile. Some suggestions: - Add debug 5 into your layer - Try to get a map with shp2img - Convert data from PostGIS into shapefile and use that as source data. It seems that you have changed something in between because first you wrote ?in the browser when i paste the url "http://localhost/cgi-bin/mapserv.exe?map=c://ms4w/apps/webgis/wms.map&SERVICE=WMS&REQUEST=GetCapabilities" Now you write that this is the URL (http://localhost:8085/cgi-bin/mapserv.exe?mode=map&map=c://ms4w/apps/webgis/mp/wms.map), -Jukka Rahkonen- L?hett?j?: rishi [mailto:rishe28 at gmail.com] L?hetetty: 23. marraskuuta 2015 13:10 Vastaanottaja: Rahkonen Jukka (MML) Aihe: Re: [mapserver-users] create wms service with mapserver When i tried to open that mapserv.exe file it is displaying as "the file or directory is corrupted or unreadable". if i open the same file as mode=map (http://localhost:8085/cgi-bin/mapserv.exe?mode=map&map=c://ms4w/apps/webgis/mp/wms.map), it is displaying the map On Mon, Nov 23, 2015 at 4:34 PM, Rahkonen Jukka (MML) > wrote: MS4W is ready for WMS but please tell us first what do you see when you opened the mapserv.exe file with a text editor. -Jukka Rahkonen- rishi wrote: do i need to install anything related to wms in ms4w folder? MapServer version 5.2.1 On Mon, Nov 23, 2015 at 3:52 PM, Rahkonen Jukka (MML) > wrote: I guess that something went wrong but saving mapserv.exe into file and reading it with text editor is the right thing to do. J?rg and Jeff should have noticed that the GetCapabilities request was made without &VERSION which means the highest version 1.3.0 for Mapserver and then the normal GetCapabilities document will be sent with mime type that most browsers understand. Try it: http://demo.mapserver.org/cgi-bin/wms?SERVICE=WMS&REQUEST=GetCapabilities I may be wrong but I would rather believe that mapserv.exe contains an error message about unknown projection epsg:900913. Use epsg:3857 instead. And I prefer using an explicit parameter &VERSION= always instead of relying on what version comes from the lottery when version in not defined in the query. -Jukka Rahkonen- J?rg Thomsen wrote: Hi, nothing went wrong. The problem under windows is, that apache(?) names the capabilities-document mapserv.exe. Save it, open it in an editor and see your capabilities! Perhaps anyone reading this can tell us how to configure the windows-instrallation, so that the capabilities-doc is not named .exe? I don't know. J?rg Am 23.11.2015 um 10:30 schrieb rishi: i am trying to create wms service using postgres data in mapserver my map file(wms.map) is MAP EXTENT 8240841.450745 2400319.900386 9218007.463612 3107183.406947 TRANSPARENT on IMAGETYPE png size 150 500 web metadata "wms_title" "Customer Airports" "wms_onlineresource" "http://localhost:8085/cgi-bin/mapserv.exe?" "wms_enable_request" "*" "wms_srs" "EPSG:4326 EPSG:900913" "wms_feature_info_mime_type" "text/html" "wms_format" "image/png" end end LAYER CONNECTIONTYPE postgis CONNECTION "user=postgres password=abcd dbname=sample port=5432 host=localhost" DATA "geom FROM district_old using unique gid" STATUS Default TYPE polygon PROJECTION "init=epsg:900913" END labelitem 'district' class style #color 55 230 51 outlinecolor 90 90 90 width 2 end LABEL #color 255 255 255 size 2 BACKGROUNDCOLOR 255 201 14 position auto END end END END in the browser when i paste the url "http://localhost/cgi-bin/mapserv.exe?map=c://ms4w/apps/webgis/wms.map&SERVICE=WMS&REQUEST=GetCapabilities" it is not displaying the xml file instead it is downloading the mapserv.exe file please correct my code also tell me the requirements to work with wms _______________________________________________ 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: