From dalda at ikt.es Fri Oct 1 04:25:58 2010
From: dalda at ikt.es (David Alda Fernandez de Lezea)
Date: Fri, 1 Oct 2010 13:25:58 +0200
Subject: [mapserver-users] GetFeatureInfo over OGR OCI Layer
Message-ID: <224DBDAF88A6AC47BD22432815351BE0082DD744@nekaposta1>
Hi list,
I'm trying to execute a GetFeatureInfo request over an Oracle layer via OGR. I can view the content of the layer, but when I make the request I don't get any result. I mean, I receive an empty GML. My layer config:
LAYER
STATUS ON
CONNECTION "OCI:admcarto/admcarto at ORA10GEX"
CONNECTIONTYPE OGR
DATA "GV_SIGPAC_REC_ED50" #todo el sigpac
NAME "RecintosSigpacOGR"
PROJECTION
"init=epsg:23030"
END
DUMP TRUE
TYPE POLYGON
METADATA
"wms_title" "Recintos Sigpac 2009"
"wms_srs" "EPSG:23030"
"wms_name" "RecintosSigpacOGR"
"wms_server_version" "1.1.1"
"wms_format" "image/gif"
"wms_transparent" "true"
"wms_extent" "460000 4690000 610000 4820000"
"wms_include_items" "all"
"gml_include_items" "all"
END
MAXSCALE 10000
TEMPLATE "ms_template.html"
PROCESSING "LABEL_NO_CLIP=ON"
PROCESSING "CLOSE_CONNECTION=DEFER"
SYMBOLSCALE 5000
#Simbologia
CLASSGROUP "Simbologia_Recintos"
CLASS
TEXT ([PARCELA]:[RECINTO])
STYLE
OUTLINECOLOR 0 234 0
END
LABEL
COLOR 254 254 255
OUTLINECOLOR 0 0 0
TYPE truetype
FONT "sans"
SIZE 6
POSITION cc
PARTIALS TRUE
END
NAME "RecintosSigPac"
GROUP "Referencia_Sigpac"
END
CLASS
STYLE
OUTLINECOLOR 0 234 0
WIDTH 1
END
NAME "RecintosSigPac"
GROUP "Predeterminado"
END
END
Resultant file
Any ideas? Something wrong configured?
Thanks.
Un saludo,
??????????????????????????????????????????????????????????????????????????????????
David Alda Fern?ndez de Lezea
Lurralde eta Biodibertsitate Saila / Dpto. de Territorio y Biodiversidad
IKT
Granja Modelo s/n ? 01192 ? Arkaute (Araba)
??????????????????????????????????????????????????????????????????????????????????
Tlfnos.: 945-00-32-95 Fax: 945-00.32.90
??????????????????????????????????????????????????????????????????????????????????
email: dalda at ikt.es web: www.ikt.es
??????????????????????????????????????????????????????????????????????????????????
From jcigar at ulb.ac.be Fri Oct 1 06:00:15 2010
From: jcigar at ulb.ac.be (Julien Cigar)
Date: Fri, 01 Oct 2010 15:00:15 +0200
Subject: [mapserver-users] WMS Filters ?
Message-ID: <4CA5DB5F.7020809@ulb.ac.be>
Hello,
I wondered if I can use OGC filters with WMS ? It works well with WFS,
but nothing is indicated in the documentation for WMS, and I tried to
add
"&Filter=infotest10"
to my WMS request but it doesn't work :(
In case it isn't supported, what's the "Mapserver-way" to do it ? Should
I use a FILTER in my LAYER section ?
My final goal is to add layers dynamically in OpenLayers based on an OGC
filter ..
Thanks,
Julien
--
No trees were killed in the creation of this message.
However, many electrons were terribly inconvenienced.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: jcigar.vcf
Type: text/x-vcard
Size: 292 bytes
Desc: not available
URL:
From Jukka.Rahkonen at mmmtike.fi Fri Oct 1 06:06:56 2010
From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka)
Date: Fri, 1 Oct 2010 16:06:56 +0300
Subject: [mapserver-users] WMS Filters ?
In-Reply-To: <4CA5DB5F.7020809@ulb.ac.be>
References: <4CA5DB5F.7020809@ulb.ac.be>
Message-ID:
Hi,
Filters can be buried inside SLD. See http://mapserver.org/ogc/sld.html
There are also a few clickable and working examples.
-Jukka Rahkonen-
> -----Alkuper?inen viesti-----
> L?hett?j?: mapserver-users-bounces at lists.osgeo.org
> [mailto:mapserver-users-bounces at lists.osgeo.org] Puolesta Julien Cigar
> L?hetetty: 1. lokakuuta 2010 16:00
> Vastaanottaja: mapserver-users at lists.osgeo.org
> Aihe: [mapserver-users] WMS Filters ?
>
> Hello,
>
> I wondered if I can use OGC filters with WMS ? It works well
> with WFS,
> but nothing is indicated in the documentation for WMS, and I tried to
> add
> "&Filter=infotest10"
> to my WMS request but it doesn't work :(
>
> In case it isn't supported, what's the "Mapserver-way" to do
> it ? Should
> I use a FILTER in my LAYER section ?
>
> My final goal is to add layers dynamically in OpenLayers
> based on an OGC
> filter ..
>
> Thanks,
> Julien
>
> --
> No trees were killed in the creation of this message.
> However, many electrons were terribly inconvenienced.
>
From dmorissette at mapgears.com Fri Oct 1 06:06:07 2010
From: dmorissette at mapgears.com (Daniel Morissette)
Date: Fri, 01 Oct 2010 09:06:07 -0400
Subject: [mapserver-users] WMS Filters ?
In-Reply-To: <4CA5DB5F.7020809@ulb.ac.be>
References: <4CA5DB5F.7020809@ulb.ac.be>
Message-ID: <4CA5DCBF.7000401@mapgears.com>
Independently of MapServer, I don't think the WMS spec supports a
FILTER=... param the way WFS does. However you can use filters inside
SLD rules, and MapServer does support SLDs, so I suggest that you check
in that direction.
Daniel
Julien Cigar wrote:
> Hello,
>
> I wondered if I can use OGC filters with WMS ? It works well with WFS,
> but nothing is indicated in the documentation for WMS, and I tried to
> add
> "&Filter=infotest10"
> to my WMS request but it doesn't work :(
>
> In case it isn't supported, what's the "Mapserver-way" to do it ? Should
> I use a FILTER in my LAYER section ?
>
> My final goal is to add layers dynamically in OpenLayers based on an OGC
> filter ..
>
> Thanks,
> Julien
>
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
--
Daniel Morissette
http://www.mapgears.com/
From jcigar at ulb.ac.be Fri Oct 1 06:16:22 2010
From: jcigar at ulb.ac.be (Julien Cigar)
Date: Fri, 01 Oct 2010 15:16:22 +0200
Subject: [mapserver-users] WMS Filters ?
In-Reply-To:
References: <4CA5DB5F.7020809@ulb.ac.be>
Message-ID: <4CA5DF26.9040701@ulb.ac.be>
OK, I'll take a look at SLD :)
Thank you for your quick answers!
Julien
On 10/01/2010 15:06, Rahkonen Jukka wrote:
> Hi,
>
> Filters can be buried inside SLD. See http://mapserver.org/ogc/sld.html
> There are also a few clickable and working examples.
>
> -Jukka Rahkonen-
>
>> -----Alkuper?inen viesti-----
>> L?hett?j?: mapserver-users-bounces at lists.osgeo.org
>> [mailto:mapserver-users-bounces at lists.osgeo.org] Puolesta Julien Cigar
>> L?hetetty: 1. lokakuuta 2010 16:00
>> Vastaanottaja: mapserver-users at lists.osgeo.org
>> Aihe: [mapserver-users] WMS Filters ?
>>
>> Hello,
>>
>> I wondered if I can use OGC filters with WMS ? It works well
>> with WFS,
>> but nothing is indicated in the documentation for WMS, and I tried to
>> add
>> "&Filter=info tyName>test10"
>> to my WMS request but it doesn't work :(
>>
>> In case it isn't supported, what's the "Mapserver-way" to do
>> it ? Should
>> I use a FILTER in my LAYER section ?
>>
>> My final goal is to add layers dynamically in OpenLayers
>> based on an OGC
>> filter ..
>>
>> Thanks,
>> Julien
>>
>> --
>> No trees were killed in the creation of this message.
>> However, many electrons were terribly inconvenienced.
>>
--
No trees were killed in the creation of this message.
However, many electrons were terribly inconvenienced.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: jcigar.vcf
Type: text/x-vcard
Size: 292 bytes
Desc: not available
URL:
From zachc1980 at gmail.com Fri Oct 1 12:13:06 2010
From: zachc1980 at gmail.com (zach cruise)
Date: Fri, 1 Oct 2010 15:13:06 -0400
Subject: [mapserver-users] no mapserver in geosuite?
Message-ID:
is mapserver part of opengeo geosuite
http://opengeo.org/products/suite/ ? is there another suite with it
other than ms4w?
From christopher.schmidt at nokia.com Fri Oct 1 12:25:24 2010
From: christopher.schmidt at nokia.com (christopher.schmidt at nokia.com)
Date: Fri, 1 Oct 2010 21:25:24 +0200
Subject: [mapserver-users] no mapserver in geosuite?
In-Reply-To:
References:
Message-ID:
On Oct 1, 2010, at 3:13 PM, ext zach cruise wrote:
> is mapserver part of opengeo geosuite
> http://opengeo.org/products/suite/ ? is there another suite with it
> other than ms4w?
MapServer and GeoServer serve very similar purposes. One of them is
developed primarily by OpenGeo and friends of OpenGeo, and one is not.
I'll let you guess which one they include :)
MS4W and OSGeo4W both include MapServer, and many operating systems
also include a packaged MapServer (Debian, Ubuntu, RedHat, etc.).
Mac builds are available from William Kyngsbourne's KyngChaos binaries.
--
Christopher Schmidt
From frippe12573 at hotmail.com Sun Oct 3 02:26:26 2010
From: frippe12573 at hotmail.com (Eugenio Trumpy)
Date: Sun, 3 Oct 2010 09:26:26 +0000
Subject: [mapserver-users] query to mapserver
Message-ID:
good morning to all,
i have a question: how can i make a query to mapserver by code?
for example, if i give by code a cadastral parcel, i would like to know
the layers contained, or included in that area, or which layers that
cadastral parcel belong.
anyone can halp me?
Regard
Eugenio
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From dalda at ikt.es Mon Oct 4 00:03:04 2010
From: dalda at ikt.es (David Alda Fernandez de Lezea)
Date: Mon, 4 Oct 2010 09:03:04 +0200
Subject: [mapserver-users] Problems labelling using Halo option
Message-ID: <224DBDAF88A6AC47BD22432815351BE0082DD89A@nekaposta1>
Assefa,
Sorry for my late response, I've been working in something else. I've checked the file
C:/ms4w/Apache/htdocs/ogcservices/tmp/4ca47709_100_1._sld.map
LAYER
CONNECTION "user=postgres password=1111 dbname=VITICOLA_IMPRESIONES host=192.168.1.161 port=5432"
CONNECTIONTYPE POSTGIS
DATA "the_geom FROM vinedos using unique gid using SRID=23030"
DUMP TRUE
METADATA
"wms_srs" "EPSG:23030"
"wms_extent" "470000 4700000 610000 4820000"
"wms_transparent" "true"
"wms_name" "vinedos"
"wms_format" "image/gif"
"gml_include_items" "all"
"wms_server_version" "1.1.1"
"wms_title" "vinedos"
END
NAME "vinedos"
PROCESSING "LABEL_NO_CLIP=ON"
PROJECTION
"init=epsg:23030"
END
STATUS ON
TYPE POLYGON
UNITS METERS
CLASS
NAME "Unknown"
EXPRESSION ( ([provincia] = 1) And ( ([municipio] = 43) And ( ([poligono] = 4) And ( ([parcela] = 880) And ([recinto] = 1) ) ) ) )
LABEL
ANGLE AUTO
ANTIALIAS TRUE
FONT "times-bold"
MAXSIZE 256
MINSIZE 4
SIZE 18
TYPE TRUETYPE
BUFFER 0
COLOR 255 255 255
FORCE FALSE
MINDISTANCE -1
MINFEATURESIZE -1
OFFSET 0 0
OUTLINECOLOR 255 255 255
OUTLINEWIDTH 0
PARTIALS TRUE
POSITION CC
END
STYLE
ANGLE 360
OPACITY 100
OUTLINECOLOR 0 0 0
SIZE 2
SYMBOL "sld_line_symbol_dash"
END
TEXT ([poligono]-[parcela]-[recinto])
END
END
OUTLINEWIDTH shouldn't be greater than 0??
What do you think?
By the way, I forgot to mention that I'm working with MS4W 2.3.1 which includes MapServer 5.2.1.
About the font issue, it's like if MapServer, when it doesn't the font I specify in FONSET, it takes a default font and it applies the HALO correctly, but when I try to change the size, it doesn't work, the returned image has the same font size. Maybe is something related with the SLD. It's difficult to explain.
Un saludo,
??????????????????????????????????????????????????????????????????????????????????
David Alda Fern?ndez de Lezea
Lurralde eta Biodibertsitate Saila / Dpto. de Territorio y Biodiversidad
IKT
Granja Modelo s/n ? 01192 ? Arkaute (Araba)
??????????????????????????????????????????????????????????????????????????????????
Tlfnos.: 945-00-32-95 Fax: 945-00.32.90
??????????????????????????????????????????????????????????????????????????????????
email: dalda at ikt.es web: www.ikt.es
??????????????????????????????????????????????????????????????????????????????????
-----Mensaje original-----
De: Yewondwossen Assefa [mailto:yassefa at dmsolutions.ca]
Enviado el: jueves, 30 de septiembre de 2010 14:21
Para: David Alda Fernandez de Lezea
CC: mapserver-users at lists.osgeo.org
Asunto: Re: [mapserver-users] Problems labelling using Halo option
Hi,
Check the file
C:/ms4w/Apache/htdocs/ogcservices/tmp/4ca47709_100_1._sld.map and the layer where the sld is applied, the label object should have the outlinecolor set if it worked properly. Is that the case? I am not sure I understand the font issue, but you can also see what font was set fir that label object.
regards,
On 30/09/2010 7:43 AM, David Alda Fernandez de Lezea wrote:
> Assefa,
>
> Yes, it's valid. It works, but not with desired behaviour. It draws the polygons with the labels but without the Halo effect.
>
> I forgot to put xml headers in the previous email.
>
>
> xmlns:ogc="http://www.opengis.net/ogc"
> xmlns:xlink="http://www.w3.org/1999/xlink"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
>
> I also forgot to mention that if I putVerdana for example, and Verdana does not exist in my fontset, it does the labelling properly (including Halo), but it's like if mapserver gets some default values, because the size has changed and even though I change it in th e SLD, the size keeps the same.
>
>
>
> WMS Log
>
> [Thu Sep 30 13:39:53 2010].513000 CGI Request 1 on process 256 [Thu
> Sep 30 13:39:53 2010].685000 msApplySLD(): Map file after SLD was applied C:/ms4w/Apache/htdocs/ogcservices/tmp/4ca47709_100_1._sld.map[Thu Sep 30 13:39:53 2010].826000 msDrawRasterLayerLow(orto0): entering.
> [Thu Sep 30 13:40:02 2010].216000 msDrawMap(): Layer 4 (orto0), 8.390s
> [Thu Sep 30 13:40:03 2010].606000 msDrawMap(): Layer 0
> (vinedos_sigpac), 1.390s [Thu Sep 30 13:40:04 2010].122000
> msDrawMap(): Layer 3 (vinedos_disolve_bn), 0.516s [Thu Sep 30 13:40:04
> 2010].513000 msDrawMap(): Layer 2 (vinedos_disolve), 0.391s [Thu Sep
> 30 13:40:05 2010].919000 msDrawMap(): Layer 1 (vinedos), 1.406s [Thu
> Sep 30 13:40:07 2010].106000 msDrawMap(): Layer 7 (vinedos_parcelas),
> 1.187s [Thu Sep 30 13:40:07 2010].106000 msDrawLabelCache():
> labelcache_map_edge_buffer = -10 [Thu Sep 30 13:40:07 2010].106000
> msDrawMap(): Drawing Label Cache, 0.000s [Thu Sep 30 13:40:07
> 2010].106000 msDrawMap() total time: 13.343s [Thu Sep 30 13:40:08
> 2010].606000 msSaveImage() total time: 1.500s [Thu Sep 30 13:40:08 2010].606000 mapserv request processing time (msLoadMap not incl.): 15.093s [Thu Sep 30 13:40:08 2010].637000 msFreeMap(): freeing map at 015C6820.
>
> Thanks.
>
> ________________________________
>
> De: Yewondwossen Assefa [mailto:yassefa at dmsolutions.ca] Enviado el:
> jueves, 30 de septiembre de 2010 13:24
> Para: David Alda Fernandez de Lezea
> CC: mapserver-users at lists.osgeo.org
> Asunto: Re: [mapserver-users] Problems labelling using Halo option
>
>
> Hi there,
>
> Is the sld xml you are using valid? Grabbing it from this e-mail, It seems to not validate (several tags). It might just a copy paste but make sure of that.
> You can aslo set your map in debug mode ( DEBUG 5 for example) and
> check your logs to see if the xml was parsed properly and if that is
> the case you should also be able a tmp file of your map file after SLD
> was applied
>
> regards,
>
>
> On 30/09/2010 3:34 AM, David Alda Fernandez de Lezea wrote:
>
> Hi list,
>
> I'm developing a program that generates some images from a WMS with a dynamic generated SLD. The problem is that I'm telling MapServer to generate some labels with Halo, to make them easy to read, using the following code:
>
>
> vinedos
>
>
>
>
>
> provincia1
> municipio43
> poligono4
> parcela880
> recinto1
>
>
>
>
> #000000
> 2
> 5 5 5 5
>
>
>
>
>
> times
> 18
> bold
>
>
>
> 0.50.5
>
>
>
>
>
> 2
>
>
> #FFFFFF
> 0.85
>
>
>
> #000000
> 0.65
>
>
>
>
>
>
>
> But when I receive the image the Halo is not applied (see attached file). My mapfile is as follows:
>
> NAME "WMSSERVER"
>
> STATUS ON
> EXTENT 460000 4710000 610000 4820000 # Euskadi
> SHAPEPATH "extra/shapes/"
> FONTSET "extra/fonts/fonts.txt"
> SYMBOLSET "extra/symbols/symbols.sym"
>
>
> IMAGETYPE "image/png; mode=24bit"
>
> OUTPUTFORMAT
> NAME png
> DRIVER "AGG/PNG"
> MIMETYPE "image/png"
> IMAGEMODE RGBA
> EXTENSION "png"
> FORMATOPTION "TRANSPARENT=ON"
> FORMATOPTION "INTERLACE=OFF"
> END
> OUTPUTFORMAT
> NAME jpeg
> DRIVER "GD/JPEG"
> MIMETYPE "image/jpeg"
> IMAGEMODE RGB
> EXTENSION "jpg"
> END
> IMAGECOLOR 255 255 255
> UNITS METERS
>
> DEBUG ON
> CONFIG "MS_ERRORFILE" "C:/ms4w/Apache/htdocs/ogcservices/logs/wms_impresiones_lotes_log.log"
> DEBUG 5
>
>
> WEB
> IMAGEPATH "C:/ms4w/Apache/htdocs/ogcservices/tmp/"
> IMAGEURL "tmp/"
> METADATA
> "wms_name" "IKT WMS Server"
> "wms_title" "Servidor WMS IKT - Impresiones Lotes"
> "wms_onlineresource" "http://192.168.1.161/cgi-bin/mapserv.exe?map=../htdocs/ogcservices/impresiones_lotes_wms.map&"
> "wms_srs" "EPSG:23030 EPSG:4326"
> "wms_transparent" "true"
> "wms_abstract" "Servicio de mapas WMS de IKT Nekazal Teknologia. Powered by Apache and UMN MapServer. Servicio WMS para las impresiones por lotes."
> "wms_keywordlist" "IKT,Euskadi,Mapas Euskadi"
> "wms_feature_info_mime_type" "application/vnd.ogc.gml"
> "labelcache_map_edge_buffer" "-10"
> END
> END
>
> PROJECTION
> "init=epsg:23030"
> END
>
> LAYER
> STATUS ON
> CONNECTIONTYPE postgis
> CONNECTION "user=postgres password=1111 dbname=VITICOLA_IMPRESIONES host=192.168.1.161 port=5432"
> NAME "vinedos"
>
> PROJECTION
> "init=epsg:23030"
> END
> DUMP TRUE
> TYPE POLYGON
> METADATA
> "wms_title" "vinedos"
> "wms_srs" "EPSG:23030"
> "wms_name" "vinedos"
> "wms_server_version" "1.1.1"
> "wms_format" "image/gif"
> "wms_transparent" "true"
> "wms_extent" "470000 4700000 610000 4820000"
> "gml_include_items" "all"
> END
> #Sentencia SQL para obtener los datos
> DATA "the_geom FROM vinedos using unique gid using SRID=23030"
>
> CLASS
> NAME "Vinedos"
> STYLE
> SYMBOL 'dashed1'
> OUTLINECOLOR 0 0 0
> END
> TEMPLATE "ttt_query.html"
> END
>
> PROCESSING "LABEL_NO_CLIP=ON"
> END
>
> END
>
> And my font file:
>
> sans Vera.ttf
> esri-130 esri_130.ttf
> times times.ttf
> times-bold timesbd.ttf
> arial arial.ttf
>
> No error messages are received.
>
> Any ideas??
>
> Thanks.
>
> Un saludo,
>
>
> ??????????????????????????????????????????????????????????????????????
> ????????????
>
> David Alda Fern?ndez de Lezea
> Lurralde eta Biodibertsitate Saila / Dpto. de Territorio y
> Biodiversidad
>
> IKT
> Granja Modelo s/n ? 01192 ? Arkaute (Araba)
>
> ??????????????????????????????????????????????????????????????????????????????????
> Tlfnos.: 945-00-32-95 Fax: 945-00.32.90
> ??????????????????????????????????????????????????????????????????????????????????
> email: dalda at ikt.es web: www.ikt.es
>
> ??????????????????????????????????????????????????????????????????????
> ????????????
>
>
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>
>
>
>
--
----------------------------------------------------------------
Assefa Yewondwossen
Software Analyst
Email: yassefa at dmsolutions.ca
http://www.dmsolutions.ca/
Phone: (613) 565-5056 (ext 14)
Fax: (613) 565-0925
----------------------------------------------------------------
From jconline at gmail.com Mon Oct 4 06:11:35 2010
From: jconline at gmail.com (joel collins)
Date: Mon, 4 Oct 2010 09:11:35 -0400
Subject: [mapserver-users] Using mapserver on windows in production
Message-ID:
I have gotten my app working using MS4W, but it is coming time to
deploy our application and I'm looking for ideas on whats the best
route to take. I need to stick with windows as thats the platform
thats available at my work.
Is using MS4W acceptable in a production environment? How can I
apply security patches / etc with a prebuilt binary?
From ahmettemiz88 at gmail.com Mon Oct 4 06:26:49 2010
From: ahmettemiz88 at gmail.com (ahmet temiz)
Date: Mon, 4 Oct 2010 16:26:49 +0300
Subject: [mapserver-users] syntax of setConnectionType for postgis
Message-ID:
hello
how should the syntax of setConnectionType for postgis in java-mapscript ?
I have a confusion of this:
jeolayer.setConnectionType(?, MS_POSTGIS);
regards
From sumit321 at hotmail.com Mon Oct 4 07:50:57 2010
From: sumit321 at hotmail.com (Sumit Sharma)
Date: Mon, 4 Oct 2010 07:50:57 -0700 (PDT)
Subject: [mapserver-users] Re: How to get some part extents in polygon
within complete polygon
In-Reply-To:
References:
Message-ID: <1286203857688-5599475.post@n2.nabble.com>
I am not too sure of your requirement.
However you can always iterate through concerned number of points and can
calculate extents of selected points.
--
View this message in context: http://osgeo-org.1803224.n2.nabble.com/How-to-get-some-part-extents-in-polygon-within-complete-polygon-tp5587629p5599475.html
Sent from the Mapserver - User mailing list archive at Nabble.com.
From sumit321 at hotmail.com Mon Oct 4 07:55:52 2010
From: sumit321 at hotmail.com (Sumit Sharma)
Date: Mon, 4 Oct 2010 07:55:52 -0700 (PDT)
Subject: [mapserver-users] Re: Using mapserver on windows in production
In-Reply-To:
References:
Message-ID: <1286204152205-5599492.post@n2.nabble.com>
we are using mapserver to develop desktop and web applications and using them
successfully in various projects.
I would recommend you to put your all mapserver dll's and other dependency
in one single folder. All your application executables should not be part of
this folder. You may use one environment variable which may point towards
mapserver directory. Thus you will be sure to use which version of mapserver
you may want to use.
--
View this message in context: http://osgeo-org.1803224.n2.nabble.com/Using-mapserver-on-windows-in-production-tp5599047p5599492.html
Sent from the Mapserver - User mailing list archive at Nabble.com.
From Sofia.Bryntse at et.slu.se Mon Oct 4 08:13:12 2010
From: Sofia.Bryntse at et.slu.se (Sofia Bryntse)
Date: Mon, 4 Oct 2010 17:13:12 +0200
Subject: [mapserver-users] OpenLayers, WFS, Postgis and SWEREF99 TM
Message-ID: <174756CAB7FFB043BA2A4FEC7E579F68A7F5F17367@exmbx3.ad.slu.se>
Hello all,
We have a number of points (reference system SWEREF99TM/epsg:3006) in a Postgres db with PostGIS, that we want to display as choosable vector features on a web map, with the help of MapServer. E.g., if you hover over or click on a point, you will get a popup window with link to more info read from the database. The problem is that we don't know yet how to create this functionality in the best possible way.
We are trying to use OpenLayers, connected to a WFS generated by MapServer. I've noticed a lack of examples of this combination of software and since we are new to WFS and OpenLayers and no real experts on MapServer either, we don't know if perhaps we're on the wrong track. We are bumping into problem after problem, and I just want to make sure that what we are trying to do is even feasible. Is this the right method to solve our basic problem, or is there a better way (for example not using OpenLayers or not using WFS, but something else)? How many points is the optimal amount to visualise with WFS/OpenLayers ? Can WFS/OpenLayers handle our reference system SWEREF99 TM (epsg:3006)? Are there problems showing PostGIS data through WFS, that we are unaware of?
Kind regards,
Sofia
From jconline at gmail.com Mon Oct 4 10:45:49 2010
From: jconline at gmail.com (joel collins)
Date: Mon, 4 Oct 2010 13:45:49 -0400
Subject: [mapserver-users] Re: Using mapserver on windows in production
In-Reply-To: <1286204152205-5599492.post@n2.nabble.com>
References:
<1286204152205-5599492.post@n2.nabble.com>
Message-ID:
I'm sorry, but I think i'm not even there yet.
I can get ms4w working in the default configuration (older version of
apache and and old version of php), but I want to make it work with
the latest version of IIS / php.
I have been trying unsuccessfully to get IIS7.5 to talk to the older
version of php...It only seems to work when i point a mapping to
C:\ms4w\Apache\cgi-bin\php5isapi.dll. This gets me up to the point
where I try to dl('php_mapscript.dll') but i get a warning about not
being able to do that in IIS.
When i add php_mapscript.dll to the extensions in php.ini, nothing
happens. I think i may be missing a dependency or soemthing?
Running php in cgi mode results in this error:
HTTP Error 502.2 - Bad Gateway
The specified CGI application misbehaved by not returning a complete
set of HTTP headers. The headers it did return are "".
I"m feeling quite frustrated right now. What is the best way to be
able to use php/mapscript in production in windows?
On Mon, Oct 4, 2010 at 10:55 AM, Sumit Sharma wrote:
>
> we are using mapserver to develop desktop and web applications and using them
> successfully in various projects.
> I would recommend you to put your all mapserver dll's and other dependency
> in one single folder. All your application executables should not be part of
> this folder. You may use one environment variable which may point towards
> mapserver directory. Thus you will be sure to use which version of mapserver
> you may want to use.
>
> --
> View this message in context: http://osgeo-org.1803224.n2.nabble.com/Using-mapserver-on-windows-in-production-tp5599047p5599492.html
> Sent from the Mapserver - User mailing list archive at Nabble.com.
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>
From Dan.Bowerman at ec.gc.ca Mon Oct 4 10:56:24 2010
From: Dan.Bowerman at ec.gc.ca (Bowerman,Dan [Burlington])
Date: Mon, 4 Oct 2010 13:56:24 -0400
Subject: [mapserver-users] Re: Using mapserver on windows in production
In-Reply-To:
References: <1286204152205-5599492.post@n2.nabble.com>
Message-ID: <7C760A126D798C4C8D3B1DD4960BCA98011EA59E@ecburexch1.ontario.int.ec.gc.ca>
While I personally had a ton of issues attempting to get MS4W working with IIS7.5 under Windows 7, if you're willing to use IIS6 instead, this guide is terrific for getting that setup:
http://www.geomoose.org/docs/install_ms4w.html
If you do manage to get it working under 7.5, please share the steps! These steps may more or less transfer over, but I had long given up on my 7.5 ambitions by the time I had found this guide. There is more documentation available for MS4W under IIS6 which is what our production systems are currently running anyways.
Hope that helps,
Dan Bowerman
Business Applications Solutions Directorate | Direction?des applications?d'affaires et solutions
Chief Information Officer Branch | Direction du dirigeant principal de l'information
Environment Canada | Environnement Canada
867 Lakeshore Road | 867, rue Lakeshore
Burlington (ON) L7R-4A6 | Burlington (ON) L7R-4A6
dan.bowerman at ec.gc.ca
Telephone | T?l?phone 905-315-5215
Facsimile | T?l?copieur 905-336-4610
Government of Canada | Gouvernement du Canada
-----Original Message-----
From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of joel collins
Sent: Monday, October 04, 2010 1:46 PM
To: Sumit Sharma
Cc: mapserver-users at lists.osgeo.org
Subject: Re: [mapserver-users] Re: Using mapserver on windows in production
I'm sorry, but I think i'm not even there yet.
I can get ms4w working in the default configuration (older version of
apache and and old version of php), but I want to make it work with
the latest version of IIS / php.
I have been trying unsuccessfully to get IIS7.5 to talk to the older
version of php...It only seems to work when i point a mapping to
C:\ms4w\Apache\cgi-bin\php5isapi.dll. This gets me up to the point
where I try to dl('php_mapscript.dll') but i get a warning about not
being able to do that in IIS.
When i add php_mapscript.dll to the extensions in php.ini, nothing
happens. I think i may be missing a dependency or soemthing?
Running php in cgi mode results in this error:
HTTP Error 502.2 - Bad Gateway
The specified CGI application misbehaved by not returning a complete
set of HTTP headers. The headers it did return are "".
I"m feeling quite frustrated right now. What is the best way to be
able to use php/mapscript in production in windows?
On Mon, Oct 4, 2010 at 10:55 AM, Sumit Sharma wrote:
>
> we are using mapserver to develop desktop and web applications and using them
> successfully in various projects.
> I would recommend you to put your all mapserver dll's and other dependency
> in one single folder. All your application executables should not be part of
> this folder. You may use one environment variable which may point towards
> mapserver directory. Thus you will be sure to use which version of mapserver
> you may want to use.
>
> --
> View this message in context: http://osgeo-org.1803224.n2.nabble.com/Using-mapserver-on-windows-in-production-tp5599047p5599492.html
> Sent from the Mapserver - User mailing list archive at Nabble.com.
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>
_______________________________________________
mapserver-users mailing list
mapserver-users at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users
From richard.greenwood at gmail.com Mon Oct 4 12:18:29 2010
From: richard.greenwood at gmail.com (Richard Greenwood)
Date: Mon, 4 Oct 2010 13:18:29 -0600
Subject: [mapserver-users] Re: Using mapserver on windows in production
In-Reply-To:
References:
<1286204152205-5599492.post@n2.nabble.com>
Message-ID:
Joel,
I know your frustration. I've implemented mapserver under IIS 6, IIS 7
and IIS 7.5 with each one being harder and more frustrating than the
previous. And if your Windows web server happens to also be domain
controller heaven help you! Can you use Apache? It's much easier. The
initial learning curve might seem steeper than IIS because Apache
lacks the fancy (confusing) graphical user interface for
configuration, but Apache offers far more flexible access control,
aliases and redirection.
If you have to connect to a Microsoft SQL Server database, I'd
recommend PHP 5.2 over 5.3 as 5.3 doesn't come with SQL Server drivers
(or at least didn't the last time I looked).
Just my $0.02.
Rich
On Mon, Oct 4, 2010 at 11:45 AM, joel collins wrote:
> I'm sorry, but I think i'm not even there yet.
>
> I can get ms4w working in the default configuration (older version of
> apache and and old version of php), but I want to make it work with
> the latest version of IIS / php.
>
> I have been trying unsuccessfully to get IIS7.5 to talk to the older
> version of php...It only seems to work when i point a mapping to
> C:\ms4w\Apache\cgi-bin\php5isapi.dll. ?This gets me up to the point
> where I try to dl('php_mapscript.dll') but i get a warning about not
> being able to do that in IIS.
> When i add php_mapscript.dll to the extensions in php.ini, nothing
> happens. ?I think i may be missing a dependency or soemthing?
>
> Running php in cgi mode results in this error:
> HTTP Error 502.2 - Bad Gateway
> The specified CGI application misbehaved by not returning a complete
> set of HTTP headers. The headers it did return are "".
>
> I"m feeling quite frustrated right now. ?What is the best way to be
> able to use php/mapscript in production in windows?
>
> On Mon, Oct 4, 2010 at 10:55 AM, Sumit Sharma wrote:
>>
>> we are using mapserver to develop desktop and web applications and using them
>> successfully in various projects.
>> I would recommend you to put your all mapserver dll's and other dependency
>> in one single folder. All your application executables should not be part of
>> this folder. You may use one environment variable which may point towards
>> mapserver directory. Thus you will be sure to use which version of mapserver
>> you may want to use.
>>
>> --
>> View this message in context: http://osgeo-org.1803224.n2.nabble.com/Using-mapserver-on-windows-in-production-tp5599047p5599492.html
>> Sent from the Mapserver - User mailing list archive at Nabble.com.
>> _______________________________________________
>> mapserver-users mailing list
>> mapserver-users at lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>>
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>
--
Richard Greenwood
richard.greenwood at gmail.com
www.greenwoodmap.com
From jconline at gmail.com Mon Oct 4 13:01:55 2010
From: jconline at gmail.com (joel collins)
Date: Mon, 4 Oct 2010 16:01:55 -0400
Subject: [mapserver-users] Re: Using mapserver on windows in production
In-Reply-To:
References:
<1286204152205-5599492.post@n2.nabble.com>
Message-ID:
Thank you all for the responses. Perhaps I am overthinking my problem.
Lets say my only requirement was to get mapserver running with the
latest versions of PHP and apache. How would I go about accomplishing
this? Would I download ms4w, apache, and php, and try to get them all
to talk to each other? Or does ms4w have some special configuration
that only the version of apache that comes bundled with it will work
out of the box?
On Mon, Oct 4, 2010 at 3:18 PM, Richard Greenwood
wrote:
> Joel,
>
> I know your frustration. I've implemented mapserver under IIS 6, IIS 7
> and IIS 7.5 with each one being harder and more frustrating than the
> previous. And if your Windows web server happens to also be domain
> controller heaven help you! Can you use Apache? It's much easier. The
> initial learning curve might seem steeper than IIS because Apache
> lacks the fancy (confusing) graphical user interface for
> configuration, but Apache offers far more flexible access control,
> aliases and redirection.
>
> If you have to connect to a Microsoft SQL Server database, I'd
> recommend PHP 5.2 over 5.3 as 5.3 doesn't come with SQL Server drivers
> (or at least didn't the last time I looked).
>
> Just my $0.02.
> Rich
>
>
> On Mon, Oct 4, 2010 at 11:45 AM, joel collins wrote:
>> I'm sorry, but I think i'm not even there yet.
>>
>> I can get ms4w working in the default configuration (older version of
>> apache and and old version of php), but I want to make it work with
>> the latest version of IIS / php.
>>
>> I have been trying unsuccessfully to get IIS7.5 to talk to the older
>> version of php...It only seems to work when i point a mapping to
>> C:\ms4w\Apache\cgi-bin\php5isapi.dll. ?This gets me up to the point
>> where I try to dl('php_mapscript.dll') but i get a warning about not
>> being able to do that in IIS.
>> When i add php_mapscript.dll to the extensions in php.ini, nothing
>> happens. ?I think i may be missing a dependency or soemthing?
>>
>> Running php in cgi mode results in this error:
>> HTTP Error 502.2 - Bad Gateway
>> The specified CGI application misbehaved by not returning a complete
>> set of HTTP headers. The headers it did return are "".
>>
>> I"m feeling quite frustrated right now. ?What is the best way to be
>> able to use php/mapscript in production in windows?
>>
>> On Mon, Oct 4, 2010 at 10:55 AM, Sumit Sharma wrote:
>>>
>>> we are using mapserver to develop desktop and web applications and using them
>>> successfully in various projects.
>>> I would recommend you to put your all mapserver dll's and other dependency
>>> in one single folder. All your application executables should not be part of
>>> this folder. You may use one environment variable which may point towards
>>> mapserver directory. Thus you will be sure to use which version of mapserver
>>> you may want to use.
>>>
>>> --
>>> View this message in context: http://osgeo-org.1803224.n2.nabble.com/Using-mapserver-on-windows-in-production-tp5599047p5599492.html
>>> Sent from the Mapserver - User mailing list archive at Nabble.com.
>>> _______________________________________________
>>> mapserver-users mailing list
>>> mapserver-users at lists.osgeo.org
>>> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>>>
>> _______________________________________________
>> mapserver-users mailing list
>> mapserver-users at lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>>
>
>
>
> --
> Richard Greenwood
> richard.greenwood at gmail.com
> www.greenwoodmap.com
>
From jmckenna at gatewaygeomatics.com Mon Oct 4 13:37:43 2010
From: jmckenna at gatewaygeomatics.com (Jeff McKenna)
Date: Mon, 04 Oct 2010 17:37:43 -0300
Subject: [mapserver-users] Using mapserver on windows in production
In-Reply-To:
References:
Message-ID: <4CAA3B17.8070709@gatewaygeomatics.com>
On 10-10-04 10:11 AM, joel collins wrote:
> I have gotten my app working using MS4W, but it is coming time to
> deploy our application and I'm looking for ideas on whats the best
> route to take. I need to stick with windows as thats the platform
> thats available at my work.
>
> Is using MS4W acceptable in a production environment? How can I
> apply security patches / etc with a prebuilt binary?
Hi Joel,
Yes MS4W is used in thousands of production deployments around the
world. (and at this year's FOSS4G event in Barcelona we found that MS4W
battles with MapServer-Unix for being one of the fastest WMS servers in
many situations:
http://www.slideshare.net/gatewaygeomatics.com/wms-performance-shootout-2010)
If you run into any walls please contact me directly, and my team can
assist your group with your deployment of MS4W.
-jeff
--
Jeff McKenna
MapServer Consulting and Training Services
http://www.gatewaygeomatics.com/
From richard.greenwood at gmail.com Mon Oct 4 13:53:42 2010
From: richard.greenwood at gmail.com (Richard Greenwood)
Date: Mon, 4 Oct 2010 14:53:42 -0600
Subject: [mapserver-users] Re: Using mapserver on windows in production
In-Reply-To:
References:
<1286204152205-5599492.post@n2.nabble.com>
Message-ID:
On Mon, Oct 4, 2010 at 2:01 PM, joel collins wrote:
> Thank you all for the responses. ?Perhaps I am overthinking my problem.
>
> Lets say my only requirement was to get mapserver running with the
> latest versions of PHP and apache. ?How would I go about accomplishing
> this? ?Would I download ms4w, apache, and php, and try to get them all
> to talk to each other? ?Or does ms4w have some special configuration
> that only the version of apache that comes bundled with it will work
> out of the box?
As Jeff noted, you can just use MS4W and that's surely the path of
least resistance. Or you can download and install Apache and PHP
separately and just use the mapserv binaries in cgi-bin from the MS4W
distribution, and maybe the http*.conf files as guidance for your own
setup. Having setup a lot of MapServers over the last 10 years it is
my personal experience that Apache is easier to setup and maintain
than IIS. I'm not sure why MS4W has the warnings that it is primarily
for development and not hardened for production use, but I wouldn't
let those warnings discourage you from using it on a production
server.
Rich
--
Richard Greenwood
richard.greenwood at gmail.com
www.greenwoodmap.com
From jmckenna at gatewaygeomatics.com Mon Oct 4 14:34:13 2010
From: jmckenna at gatewaygeomatics.com (Jeff McKenna)
Date: Mon, 04 Oct 2010 18:34:13 -0300
Subject: [mapserver-users] Re: Using mapserver on windows in production
In-Reply-To:
References: <1286204152205-5599492.post@n2.nabble.com>
Message-ID: <4CAA4855.8010102@gatewaygeomatics.com>
On 10-10-04 5:53 PM, Richard Greenwood wrote:
>
> As Jeff noted, you can just use MS4W and that's surely the path of
> least resistance. Or you can download and install Apache and PHP
> separately and just use the mapserv binaries in cgi-bin from the MS4W
> distribution, and maybe the http*.conf files as guidance for your own
> setup. Having setup a lot of MapServers over the last 10 years it is
> my personal experience that Apache is easier to setup and maintain
> than IIS. I'm not sure why MS4W has the warnings that it is primarily
> for development and not hardened for production use, but I wouldn't
> let those warnings discourage you from using it on a production
> server.
Great points from Rich. Just one additional note: recent versions of
MS4W don't have these 'not for production' warnings.
-jeff
--
Jeff McKenna
MapServer Consulting and Training Services
http://www.gatewaygeomatics.com/
From pjamason at ucsd.edu Mon Oct 4 18:17:31 2010
From: pjamason at ucsd.edu (pjamason2)
Date: Mon, 4 Oct 2010 18:17:31 -0700 (PDT)
Subject: [mapserver-users] msOracleSpatialLayerResultGetShape() could not
fetch specified record
Message-ID: <1286241451086-5601515.post@n2.nabble.com>
Hi,
After migrating to mapserver 5.6.5, one of our two ms oracle spatial queries
no longer works. Here's the query that works:
Using this Sql to retrieve the data: SELECT ID, ID, SITE_ID, SITE_CODE,
CITY, ARRAY_CODE, NAME, SHAPE FROM (select s.id as id,s.site_id as
site_id,upper(s.site_code) as site_code,s.shape,nvl(s.city,'n/a') as
city,sa.array_code as array_code,nvl(s.site_name,'n/a') as name from site s,
site_affiliation sa where s.site_id = sa.site_id and sa.end_date is null and
s.site_type_code = 'CONGPS')
[Fri Oct 1 18:19:50 2010].881984 msOracleSpatialLayerWhichShapes. Bind
values: srid:8307 minx:-11
4.139531 miny:34.485321 maxx:-112.696645 maxy:35.928207
[Fri Oct 1 18:19:50 2010].882013 msOracleSpatialLayerWhichShapes getting
ordinate definition.
[Fri Oct 1 18:19:50 2010].883487 msOracleSpatialLayerWhichShapes converting
to OCIColl.
[Fri Oct 1 18:19:50 2010].883626 msOracleSpatialLayerWhichShapes bind by
name and object.
[Fri Oct 1 18:19:50 2010].883632 msOracleSpatialLayerWhichShapes name and
object now bound.
[Fri Oct 1 18:19:51 2010].26025 msOracleSpatialLayerNextShape on layer
0x13665770, row_num: 0
[Fri Oct 1 18:19:51 2010].732440 msOracleSpatialLayerNextShape on layer
0x13665770, row_num: 8245
[Fri Oct 1 18:19:51 2010].732662 msOracleSpatialLayerNextShape on layer
0x13665770, Fetched 0 more
rows (8250 total)
[Fri Oct 1 18:19:51 2010].733278 msOracleSpatialLayerResultGetShape was
called. Using the record =
5185 of 1. (shape: 0 should equal pkey: 6274)
[Fri Oct 1 18:19:51 2010].733287 msOracleSpatialLayerResultGetShape:
Fetching result from DB start:
8192 end:8191 record: 5185
[Fri Oct 1 18:19:51 2010].794501 mapserv request processing time (loadmap
not incl.): 1.034s
This query does not:
[Fri Oct 1 18:19:38 2010].152059 msOracleSpatialLayerWhichShapes. Using
this Sql to retrieve the data: SELECT ID, ID, SITE_ID, SITE_CODE, CITY,
ARRAY_CODE, NAME, INTERVAL, LAST, SINCE, SHAPE FROM (select s.id as
id,s.site_id as site_id,upper(s.site_code) as
site_code,s.shape,nvl(s.city,'n/a') as city,sa.array_code as
array_code,nvl(s.site_name,'n/a') as name,src.sample_interval_in_seconds as
interval,to_char(round(((SYSDATE - last_updated) * 24 * 60),0),'999999999')
as last, src.start_date as since from site s, realtime_gps_data_src src,
site_affiliation sa where src.end_date is null and src.
site_id = s.site_id and s.site_id = sa.site_id)
[Fri Oct 1 18:19:38 2010].152065 msOracleSpatialLayerWhichShapes. Bind
values: srid:8307
minx:-114.864628 miny:33.584442 maxx:-113.421743 maxy:35.027328
[Fri Oct 1 18:19:38 2010].152107 msOracleSpatialLayerWhichShapes getting
ordinate definition.
[Fri Oct 1 18:19:38 2010].153257 msOracleSpatialLayerWhichShapes converting
to OCIColl.
[Fri Oct 1 18:19:38 2010].153386 msOracleSpatialLayerWhichShapes bind by
name and object.
[Fri Oct 1 18:19:38 2010].153392 msOracleSpatialLayerWhichShapes name and
object now bound.
[Fri Oct 1 18:19:38 2010].222071 msOracleSpatialLayerNextShape on layer
0x18b9bdd0, row_num: 0
[Fri Oct 1 18:19:38 2010].226113 msOracleSpatialLayerNextShape on layer
0x18b9bdd0, row_num: 167
[Fri Oct 1 18:19:38 2010].226464 msOracleSpatialLayerNextShape on layer
0x18b9bdd0, Fetched 0 more
rows (167 total)
[Fri Oct 1 18:19:38 2010].226984 msOracleSpatialLayerResultGetShape was
called. Using the record =
92 of 1. (shape: 415777808 should equal pkey: 2507)
[Fri Oct 1 18:19:38 2010].227002 msOracleSpatialLayerResultGetShape:
Fetching result from DB start:
0 end:-1 record: 92
[Fri Oct 1 18:19:38 2010].883468 msOracleSpatialLayerResultGetShape:
OracleSpatial error. ORA-03113
: end-of-file on communication channel
Process ID: 19745
Session ID: 59 Serial number: 36067
[Fri Oct 1 18:19:38 2010].883478 msOracleSpatialLayerResultGetShape():
OracleSpatial error. msOracleSpatialLayerResultGetShape could not fetch
specified record.
In mapserver 5.2.0, the second query above worked:
[Mon Oct 4 16:58:41 2010].791000 msOracleSpatialLayerFreeItemInfo was
called.
[Mon Oct 4 16:58:41 2010].791007 msOracleSpatialLayerGetItems was called.
[Mon Oct 4 16:58:41 2010].792022 msOracleSpatialLayerInitItemInfo was
called.
[Mon Oct 4 16:58:42 2010].87922 msOracleSpatialLayerGetShape was called.
Using the record = 62392.
[Mon Oct 4 16:58:42 2010].87940 msOracleSpatialLayerGetShape. Sql: SELECT
ID, SITE_ID, SITE_CODE,
CITY, ARRAY_CODE, NAME, INTERVAL, LAST, SINCE, SHAPE FROM (select s.id as
id,s.site_id as site_id,upper(s.site_code) as
site_code,s.shape,nvl(s.city,'n/a') as city,sa.array_code as
array_code,nvl(s.site_name,'n/a') as name,src.sample_interval_in_seconds as
interval,to_char(round(((SYSDATE - last_upda
ted) * 24 * 60),0),'999999999') as last, src.start_date as since from site
s, realtime_gps_data_src
src, site_affiliation sa where src.end_date is null and src.site_id =
s.site_id and s.site_id = sa.site_id) WHERE ID = 62392
I've seen the RFC-52 note regarding msLayerResultsGetShape() in the
mapserver 5.4 to 5.6 migration guide at
http://trac.osgeo.org/mapserver/browser/branches/branch-5-6/mapserver/MIGRATION_GUIDE.TXT
http://trac.osgeo.org/mapserver/browser/branches/branch-5-6/mapserver/MIGRATION_GUIDE.TXT
but we're calling the mapserv cgi, which is transparent to this change
according to this note. We're considering migrating back to ms 5.4, but any
help would be greatly appreciated, thanks.
--
View this message in context: http://osgeo-org.1803224.n2.nabble.com/msOracleSpatialLayerResultGetShape-could-not-fetch-specified-record-tp5601515p5601515.html
Sent from the Mapserver - User mailing list archive at Nabble.com.
From richard.lehaut at gmail.com Tue Oct 5 00:18:43 2010
From: richard.lehaut at gmail.com (Richard LEHAUT)
Date: Tue, 5 Oct 2010 09:18:43 +0200
Subject: [mapserver-users] Problem with wfs.php
Message-ID:
Hi,
This url returns me an error:
*
http://ws.carmen.developpement-durable.gouv.fr/WFS/8/nature?&VERSION=1.0.0&SERVICE=WFS&REQUEST=GetFeature&TYPENAME=ZNIEFF_de_type_1&FILTER=Geometry(526467,6821671
526471,6821675 526480,6821677 526482,6821676 526491,6821679 526490,6821682
526546,6821697 526615,6821701 526616,6821699 526627,6821699 526628,6821702
526708,6821705 526804,6821709 526821,6821701 526886,6821665 526916,6821658
526933,6821616 526961,6821574 526969,6821565 526982,6821513 526833,6821533
526833,6821517 526813,6821513 526801,6821508 526749,6821480 526732,6821469
526718,6821484 526688,6821481 526616,6821481 526620,6821448 526584,6821438
526547,6821401 526545,6821397 526533,6821376 526455,6821381 526453,6821379
526409,6821377 526415,6821415 526429,6821499 526440,6821569 526377,6821567
526362,6821463 526357,6821393 526359,6821371 526360,6821362 526365,6821332
526325,6821292 526315,6821308 526302,6821322 526296,6821325 526277,6821347
526286,6821417 526286,6821447 526295,6821516 526303,6821549 526308,6821569
526314,6821571 526320,6821578 526328,6821580 526340,6821589 526381,6821619
526466,6821673 526467,6821671 526467,6821671) (526489,6821639 526492,6821655
526493,6821655 526489,6821639 526489,6821639) (526467,6821588 526466,6821586
526464,6821585 526467,6821588 526467,6821588) (526479,6821603 526478,6821601
526477,6821599 526479,6821603 526479,6821603) (526489,6821639 526489,6821639
526486,6821627 526489,6821639 526489,6821639)) ((527187,6822859
527158,6822860 527138,6822862 527110,6822871 527104,6822873 527098,6822871
527054,6822879 527003,6822885 526998,6822885 526995,6822885 526972,6822882
526964,6822889 526955,6822894 526935,6822910 526922,6822929 526916,6822946
526910,6822973 526917,6822980 526917,6822987 526915,6823010 526942,6823015
526943,6823045 526945,6823052 526948,6823056 526956,6823059 526969,6823073
526973,6823081 526975,6823094 526970,6823097 526971,6823102 526987,6823123
527004,6823131 527019,6823103 527050,6823109 527134,6823120 527137,6823099
527133,6823084 527134,6823050 527190,6823074 527199,6823016 527220,6823014
527213,6822861 527204,6822860 527187,6822859 527187,6822859) (527114,6823008
527114,6823001 527071,6822980 527059,6822982 527050,6822978 527032,6822968
527024,6823072 527047,6823070 527043,6823034 527049,6822983 527068,6822984
527114,6823008 527114,6823008) (527112,6822930 527115,6822933 527118,6822943
527118,6822947 527119,6822955 527124,6822954 527123,6822945 527119,6822930
527115,6822925 527112,6822930 527112,6822930)) ((526685,6821896
526737,6821974 526766,6822042 526771,6822072 526782,6822030 526808,6821981
526869,6821901 526875,6821889 526909,6821797 526908,6821779 526900,6821771
526832,6821727 526812,6821722 526787,6821720 526785,6821761 526666,6821870
526685,6821896 526685,6821896)) ((527009,6822654 527076,6822645
527077,6822629 527076,6822611 527076,6822608 527079,6822589 527070,6822587
527063,6822589 527038,6822623 527012,6822641 527009,6822649 527007,6822650
527002,6822652 526984,6822657 526953,6822666 526917,6822684 526898,6822697
526901,6822703 526949,6822680 526958,6822701 526927,6822716 526946,6822718
526955,6822714 526961,6822709 526980,6822748 526988,6822809 526997,6822811
527002,6822843 527040,6822877 527052,6822875 527086,6822868 527100,6822860
527104,6822849 527107,6822845 527113,6822839 527120,6822826 527134,6822803
527147,6822771 527160,6822720 527168,6822679 527153,6822679 527132,6822678
527079,6822677 527012,6822671 527009,6822654 527009,6822654))
((527249,6822166 527250,6822157 527257,6822142 527274,6822104 527280,6822079
527265,6822097 527230,6822148 527205,6822195 527179,6822230 527163,6822262
527205,6822288 527251,6822297 527270,6822298 527334,6822298 527376,6822304
527391,6822304 527503,6822328 527554,6822333 527572,6822322 527548,6822299
527542,6822296 527545,6822281 527391,6822246 527282,6822211 527218,6822199
527249,6822166 527249,6822166)) ((526821,6822064 526901,6822093
526939,6822084 526962,6822085 526985,6822075 527018,6822113 527046,6822155
527068,6822140 527064,6822093 527061,6822073 527051,6822041 527024,6821996
526906,6821995 526896,6821998 526889,6822002 526868,6822015 526852,6822029
526821,6822064 526821,6822064)) ((527082,6822584 527086,6822573
527091,6822566 527073,6822564 527065,6822561 527046,6822526 527047,6822455
527052,6822410 527053,6822381 527038,6822382 527036,6822378 526966,6822403
526967,6822435 526972,6822476 526983,6822538 527010,6822639 527032,6822623
527036,6822619 527055,6822594 527060,6822586 527066,6822584 527081,6822585
527082,6822584 527082,6822584)) ((526546,6821979 526549,6822025
526551,6822040 526563,6822075 526684,6822011 526655,6821986 526614,6821947
526680,6821898 526664,6821872 526662,6821873 526546,6821979 526546,6821979))
((527014,6821959 527090,6821938 527116,6821929 527112,6821927 527110,6821928
527103,6821924 527104,6821920 527060,6821893 527019,6821865 527017,6821866
527006,6821858 527008,6821855 526927,6821792 526923,6821792 526922,6821794
526924,6821803 526984,6821906 527006,6821947 527014,6821959 527014,6821959))
((527170,6822232 527134,6822195 527134,6822164 527129,6822155 527102,6822120
527073,6822133 527074,6822170 527083,6822210 527123,6822234 527156,6822262
527170,6822232 527170,6822232)) ((526582,6822099 526581,6822099
526584,6822100 526592,6822098 526600,6822099 526626,6822130 526741,6822056
526740,6822052 526704,6822025 526582,6822099 526582,6822099))
((527461,6822398 527434,6822522 527484,6822557 527504,6822464 527472,6822443
527472,6822435 527489,6822377 527461,6822398 527461,6822398))
((527423,6822716 527345,6822691 527339,6822710 527302,6822693 527289,6822721
527396,6822770 527414,6822736 527423,6822716 527423,6822716))
((527726,6822272 527788,6822255 527792,6822219 527799,6822180 527817,6822133
527792,6822152 527774,6822172 527747,6822196 527727,6822269 527726,6822272
527726,6822272)) ((527835,6823091 527845,6823121 527847,6823122
527871,6823117 527904,6823102 527896,6823091 527911,6823082 527889,6823053
527858,6823079 527835,6823091 527835,6823091)) ((527129,6822598
527125,6822597 527154,6822653 527171,6822677 527210,6822631 527129,6822598
527129,6822598)) ((527184,6822670 527176,6822681 527190,6822695
527236,6822770 527269,6822749 527184,6822670 527184,6822670))
((526719,6821400 526751,6821412 526776,6821372 526747,6821327 526719,6821400
526719,6821400)) ((527143,6822790 527141,6822795 527133,6822810
527128,6822819 527124,6822825 527117,6822840 527110,6822846 527107,6822851
527103,6822862 527106,6822865 527110,6822865 527139,6822859 527135,6822836
527160,6822831 527174,6822853 527177,6822854 527187,6822855 527164,6822818
527143,6822790 527143,6822790)) ((527423,6822716 527420,6822725
527449,6822734 527480,6822692 527430,6822672 527428,6822676 527431,6822697
527423,6822716 527423,6822716)) ((526654,6822160 526675,6822186
526685,6822193 526698,6822175 526692,6822165 526679,6822144 526654,6822160
526654,6822160)
*
The FilterEnconding uses a complex geometry (polygon with hole). With a
simple geometry, it's correct.
The error message is :
*Warning*: file_get_contents(
http://ws.carmen.developpement-durable.gouv.fr/cgi-bin/mapserv?service_idx=8&map=%2Fmnt%2Fdata_carmen%2FBN%2FPublication%2Fwms_nature.map&VERSION=1.0.0&SERVICE=WFS&REQUEST=GetFeature&TYPENAME=ZNIEFF_de_type_1&FILTER=%3CFilter%3E%3CIntersect%3E%3CPropertyName%3EGeometry%3C%2FPropertyName%3E%3Cgml%3APolygon%3E%3Cgml%3AouterBoundaryIs%3E%3Cgml%3ALinearRing%3E%3Cgml%3Acoordinates%3E%28526467%2C6821671%20526471%2C6821675%20526480%2C6821677%20526482%2C6821676%20526491%2C6821679%20526490%2C6821682%20526546%2C6821697%20526615%2C6821701%20526616%2C6821699%20526627%2C6821699%20526628%2C6821702%20526708%2C6821705%20526804%2C6821709%20526821%2C6821701%20526886%2C6821665%20526916%2C6821658%20526933%2C6821616%20526961%2C6821574%20526969%2C6821565%20526982%2C6821513%20526833%2C6821533%20526833%2C6821517%20526813%2C6821513%20526801%2C6821508%20526749%2C6821480%20526732%2C6821469%20526718%2C6821484%20526688%2C6821481%20526616%2C6821481%20526620%2C6821448%20526584%2C6821438%20526547%2Cin
*/applications/www/carmen/WFS/wfs.php* on line *66*
*Warning*: Cannot modify header information - headers already sent by
(output started at /applications/www/carmen/WFS/wfs.php:66) in *
/applications/www/carmen/WFS/wfs.php* on line *91*
Thank you for your help.
Tiolebucheron
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From Jukka.Rahkonen at mmmtike.fi Tue Oct 5 00:22:57 2010
From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka)
Date: Tue, 5 Oct 2010 10:22:57 +0300
Subject: [mapserver-users] Problem with wfs.php
In-Reply-To:
References:
Message-ID:
Hi,
Your request is about 7033 characters long. I would have a try with a much more simple geometry (but still a polygon with hole) for seeing if the real problem is in the length of the request string.
-Jukka Rahkonen-
________________________________
L?hett?j?: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] Puolesta Richard LEHAUT
L?hetetty: 5. lokakuuta 2010 10:19
Vastaanottaja: mapserver-users at lists.osgeo.org
Aihe: [mapserver-users] Problem with wfs.php
Hi,
This url returns me an error:
http://ws.carmen.developpement-durable.gouv.fr/WFS/8/nature?&VERSION=1.0.0&SERVICE=WFS&REQUEST=GetFeature&TYPENAME=ZNIEFF_de_type_1&FILTER=Geometry(526467,6821671 526471,6821675 526480,6821677 526482,6821676 526491,6821679 526490,6821682 526546,6821697 526615,6821701 526616,6821699 526627,6821699 526628,6821702 526708,6821705 526804,6821709 526821,6821701 526886,6821665 526916,6821658 526933,6821616 526961,6821574 526969,6821565 526982,6821513 526833,6821533 526833,6821517 526813,6821513 526801,6821508 526749,6821480 526732,6821469 526718,6821484 526688,6821481 526616,6821481 526620,6821448 526584,6821438 526547,6821401 526545,6821397 526533,6821376 526455,6821381 526453,6821379 526409,6821377 526415,6821415 526429,6821499 526440,6821569 526377,6821567 526362,6821463 526357,6821393 526359,6821371 526360,6821362 526365,6821332 526325,6821292 526315,6821308 526302,6821322 526296,6821325 526277,6821347 526286,6821417 526286,6821447 526295,6821516 526303,6821549 526308,6821569 526314,6821571 526320,6821578 526328,6821580 526340,6821589 526381,6821619 526466,6821673 526467,6821671 526467,6821671) (526489,6821639 526492,6821655 526493,6821655 526489,6821639 526489,6821639) (526467,6821588 526466,6821586 526464,6821585 526467,6821588 526467,6821588) (526479,6821603 526478,6821601 526477,6821599 526479,6821603 526479,6821603) (526489,6821639 526489,6821639 526486,6821627 526489,6821639 526489,6821639)) ((527187,6822859 527158,6822860 527138,6822862 527110,6822871 527104,6822873 527098,6822871 527054,6822879 527003,6822885 526998,6822885 526995,6822885 526972,6822882 526964,6822889 526955,6822894 526935,6822910 526922,6822929 526916,6822946 526910,6822973 526917,6822980 526917,6822987 526915,6823010 526942,6823015 526943,6823045 526945,6823052 526948,6823056 526956,6823059 526969,6823073 526973,6823081 526975,6823094 526970,6823097 526971,6823102 526987,6823123 527004,6823131 527019,6823103 527050,6823109 527134,6823120 527137,6823099 527133,6823084 527134,6823050 527190,6823074 527199,6823016 527220,6823014 527213,6822861 527204,6822860 527187,6822859 527187,6822859) (527114,6823008 527114,6823001 527071,6822980 527059,6822982 527050,6822978 527032,6822968 527024,6823072 527047,6823070 527043,6823034 527049,6822983 527068,6822984 527114,6823008 527114,6823008) (527112,6822930 527115,6822933 527118,6822943 527118,6822947 527119,6822955 527124,6822954 527123,6822945 527119,6822930 527115,6822925 527112,6822930 527112,6822930)) ((526685,6821896 526737,6821974 526766,6822042 526771,6822072 526782,6822030 526808,6821981 526869,6821901 526875,6821889 526909,6821797 526908,6821779 526900,6821771 526832,6821727 526812,6821722 526787,6821720 526785,6821761 526666,6821870 526685,6821896 526685,6821896)) ((527009,6822654 527076,6822645 527077,6822629 527076,6822611 527076,6822608 527079,6822589 527070,6822587 527063,6822589 527038,6822623 527012,6822641 527009,6822649 527007,6822650 527002,6822652 526984,6822657 526953,6822666 526917,6822684 526898,6822697 526901,6822703 526949,6822680 526958,6822701 526927,6822716 526946,6822718 526955,6822714 526961,6822709 526980,6822748 526988,6822809 526997,6822811 527002,6822843 527040,6822877 527052,6822875 527086,6822868 527100,6822860 527104,6822849 527107,6822845 527113,6822839 527120,6822826 527134,6822803 527147,6822771 527160,6822720 527168,6822679 527153,6822679 527132,6822678 527079,6822677 527012,6822671 527009,6822654 527009,6822654)) ((527249,6822166 527250,6822157 527257,6822142 527274,6822104 527280,6822079 527265,6822097 527230,6822148 527205,6822195 527179,6822230 527163,6822262 527205,6822288 527251,6822297 527270,6822298 527334,6822298 527376,6822304 527391,6822304 527503,6822328 527554,6822333 527572,6822322 527548,6822299 527542,6822296 527545,6822281 527391,6822246 527282,6822211 527218,6822199 527249,6822166 527249,6822166)) ((526821,6822064 526901,6822093 526939,6822084 526962,6822085 526985,6822075 527018,6822113 527046,6822155 527068,6822140 527064,6822093 527061,6822073 527051,6822041 527024,6821996 526906,6821995 526896,6821998 526889,6822002 526868,6822015 526852,6822029 526821,6822064 526821,6822064)) ((527082,6822584 527086,6822573 527091,6822566 527073,6822564 527065,6822561 527046,6822526 527047,6822455 527052,6822410 527053,6822381 527038,6822382 527036,6822378 526966,6822403 526967,6822435 526972,6822476 526983,6822538 527010,6822639 527032,6822623 527036,6822619 527055,6822594 527060,6822586 527066,6822584 527081,6822585 527082,6822584 527082,6822584)) ((526546,6821979 526549,6822025 526551,6822040 526563,6822075 526684,6822011 526655,6821986 526614,6821947 526680,6821898 526664,6821872 526662,6821873 526546,6821979 526546,6821979)) ((527014,6821959 527090,6821938 527116,6821929 527112,6821927 527110,6821928 527103,6821924 527104,6821920 527060,6821893 527019,6821865 527017,6821866 527006,6821858 527008,6821855 526927,6821792 526923,6821792 526922,6821794 526924,6821803 526984,6821906 527006,6821947 527014,6821959 527014,6821959)) ((527170,6822232 527134,6822195 527134,6822164 527129,6822155 527102,6822120 527073,6822133 527074,6822170 527083,6822210 527123,6822234 527156,6822262 527170,6822232 527170,6822232)) ((526582,6822099 526581,6822099 526584,6822100 526592,6822098 526600,6822099 526626,6822130 526741,6822056 526740,6822052 526704,6822025 526582,6822099 526582,6822099)) ((527461,6822398 527434,6822522 527484,6822557 527504,6822464 527472,6822443 527472,6822435 527489,6822377 527461,6822398 527461,6822398)) ((527423,6822716 527345,6822691 527339,6822710 527302,6822693 527289,6822721 527396,6822770 527414,6822736 527423,6822716 527423,6822716)) ((527726,6822272 527788,6822255 527792,6822219 527799,6822180 527817,6822133 527792,6822152 527774,6822172 527747,6822196 527727,6822269 527726,6822272 527726,6822272)) ((527835,6823091 527845,6823121 527847,6823122 527871,6823117 527904,6823102 527896,6823091 527911,6823082 527889,6823053 527858,6823079 527835,6823091 527835,6823091)) ((527129,6822598 527125,6822597 527154,6822653 527171,6822677 527210,6822631 527129,6822598 527129,6822598)) ((527184,6822670 527176,6822681 527190,6822695 527236,6822770 527269,6822749 527184,6822670 527184,6822670)) ((526719,6821400 526751,6821412 526776,6821372 526747,6821327 526719,6821400 526719,6821400)) ((527143,6822790 527141,6822795 527133,6822810 527128,6822819 527124,6822825 527117,6822840 527110,6822846 527107,6822851 527103,6822862 527106,6822865 527110,6822865 527139,6822859 527135,6822836 527160,6822831 527174,6822853 527177,6822854 527187,6822855 527164,6822818 527143,6822790 527143,6822790)) ((527423,6822716 527420,6822725 527449,6822734 527480,6822692 527430,6822672 527428,6822676 527431,6822697 527423,6822716 527423,6822716)) ((526654,6822160 526675,6822186 526685,6822193 526698,6822175 526692,6822165 526679,6822144 526654,6822160 526654,6822160)
The FilterEnconding uses a complex geometry (polygon with hole). With a simple geometry, it's correct.
The error message is :
Warning: file_get_contents(http://ws.carmen.developpement-durable.gouv.fr/cgi-bin/mapserv?service_idx=8&map=%2Fmnt%2Fdata_carmen%2FBN%2FPublication%2Fwms_nature.map&VERSION=1.0.0&SERVICE=WFS&REQUEST=GetFeature&TYPENAME=ZNIEFF_de_type_1&FILTER=%3CFilter%3E%3CIntersect%3E%3CPropertyName%3EGeometry%3C%2FPropertyName%3E%3Cgml%3APolygon%3E%3Cgml%3AouterBoundaryIs%3E%3Cgml%3ALinearRing%3E%3Cgml%3Acoordinates%3E%28526467%2C6821671%20526471%2C6821675%20526480%2C6821677%20526482%2C6821676%20526491%2C6821679%20526490%2C6821682%20526546%2C6821697%20526615%2C6821701%20526616%2C6821699%20526627%2C6821699%20526628%2C6821702%20526708%2C6821705%20526804%2C6821709%20526821%2C6821701%20526886%2C6821665%20526916%2C6821658%20526933%2C6821616%20526961%2C6821574%20526969%2C6821565%20526982%2C6821513%20526833%2C6821533%20526833%2C6821517%20526813%2C6821513%20526801%2C6821508%20526749%2C6821480%20526732%2C6821469%20526718%2C6821484%20526688%2C6821481%20526616%2C6821481%20526620%2C6821448%20526584%2C6821438%20526547%2C in /applications/www/carmen/WFS/wfs.php on line 66
Warning: Cannot modify header information - headers already sent by (output started at /applications/www/carmen/WFS/wfs.php:66) in /applications/www/carmen/WFS/wfs.php on line 91
Thank you for your help.
Tiolebucheron
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From astrid.emde at wheregroup.com Tue Oct 5 00:41:07 2010
From: astrid.emde at wheregroup.com (Astrid Emde)
Date: Tue, 5 Oct 2010 07:41:07 -0000 (UTC)
Subject: [mapserver-users] MapServer Resolution - how to set the parameter
dynamically
Message-ID: <31255.87.79.91.105.1286264467.squirrel@troubadix.wheregroup.com>
Hello list,
I tested the new Parameter
RESOLUTION
DEFRESOLUTION
With these Paramter I can produce a nice map for print output [1].
It would be nice to set the Paramter RESOLUTION parameter directly in the
MapRequest like &RESOLUTION=288. If not set here the default from the
Mapfile could be used.
What do you think about this idea? Do you have discussed this already?
Alternatively I tried to set a variable wit MapServer variable
substitution [2] like:
RESOLUTION %resolution%
But this caused a MapServer error.
If someone has already a solution to set the resolution dynamically
(without MapScript) please let me know.
Astrid Emde
[1] http://mapserver.org/development/rfc/ms-rfc-55.html
[2] http://mapserver.org/mapfile/variable_sub.html
From sebastian.ovide at gmail.com Tue Oct 5 04:26:18 2010
From: sebastian.ovide at gmail.com (Sebastian E. Ovide)
Date: Tue, 5 Oct 2010 12:26:18 +0100
Subject: [mapserver-users] lighttpd, TNS:could not resolve...
In-Reply-To:
References:
<89615.44098.qm@web51403.mail.re2.yahoo.com>
<133436.29754.qm@web51404.mail.re2.yahoo.com>
<651666.6260.qm@web51402.mail.re2.yahoo.com>
Message-ID:
I've also add a script that prints the variables and TNS_ADMIN is there...
USERNAME=root
LANG=en_US.UTF-8
SUDO_GID=1001
SHELL=/bin/bash
SUDO_COMMAND=/etc/init.d/lighttpd restart
ORACLE_HOME=/home/gis/libs/instantclient_11_2/
SUDO_UID=1001
TERM=xterm
PHP_FCGI_CHILDREN=1
PATH=/sbin:/bin:/usr/sbin:/usr/bin
PWD=/home/gis/conf
LOGNAME=root
USER=root
HOME=/home/gis
MAIL=/var/mail/gis
SUDO_USER=gis
LS_COLORS=rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.dz=01;31:*.gz=01;31:*.lz=01;31:*.xz=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.rar=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.jpg=01;35:*.jpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.axv=01;35:*.anx=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.axa=00;36:*.oga=00;36:*.spx=00;36:*.xspf=00;36:
LD_LIBRARY_PATH=/home/gis/libs/instantclient_11_2/
TNS_ADMIN=/home/gis/conf/
any other ideas ?
On Thu, Sep 30, 2010 at 3:09 PM, Sebastian E. Ovide <
sebastian.ovide at gmail.com> wrote:
> done. (restarted server etc...)
>
> exactly the same problem...
>
>
>
>
>
> On Thu, Sep 30, 2010 at 2:51 PM, Dan Little wrote:
>
>> I was starting to suspect MapServer is just no seeing the environment
>> variables...
>>
>> Try this... write a wrapper script "mapserv.sh"
>>
>> #!/bin/bash
>>
>> TNS_ADMIN=/home/gis/conf
>>
>> /home/gis/bin/mapserv
>>
>> Then update your script to point to "mapserv.sh".
>>
>>
>>
>>
>> *From:* Sebastian E. Ovide
>> *To:* Dan Little
>> *Cc:* Rahkonen Jukka ;
>> mapserver-users at lists.osgeo.org
>> *Sent:* Thu, September 30, 2010 8:01:22 AM
>>
>> *Subject:* Re: [mapserver-users] lighttpd, TNS:could not resolve...
>>
>> on the same machine, with the same data and same tns file it works fine
>> with APACHE.... the problems is only with LIGHTTPD... it looks like "TNS_ADMIN"
>> => "/home/gis/conf/" is ignored (in apache I've used SetEnv and PassEnv
>>
>> ???
>>
>> On Thu, Sep 30, 2010 at 12:22 PM, Dan Little wrote:
>>
>>> Does shp2img work with your Mapfile?
>>>
>>>
>>> *From:* Sebastian E. Ovide
>>> *To:* Rahkonen Jukka
>>> *Cc:* mapserver-users at lists.osgeo.org
>>> *Sent:* Thu, September 30, 2010 4:47:30 AM
>>> *Subject:* Re: [mapserver-users] lighttpd, TNS:could not resolve...
>>>
>>> the message says:
>>>
>>> ORA-12154: TNS:could not resolve the connect identifier specified in
>>>
>>>
>>> so... does mean that gdal didn't get any name for the
>>> connection ?
>>>
>>>
>>>
>>> On Thu, Sep 30, 2010 at 9:54 AM, Sebastian E. Ovide <
>>> sebastian.ovide at gmail.com> wrote:
>>>
>>>> no luck...
>>>>
>>>> renamed servicename to capital.. so now connection name==service name...
>>>>
>>>> same problem... ogrinfo works, mapserver doesn't....
>>>>
>>>>
>>>> On Thu, Sep 30, 2010 at 9:37 AM, Rahkonen Jukka <
>>>> Jukka.Rahkonen at mmmtike.fi> wrote:
>>>>
>>>>> Hi,
>>>>>
>>>>> For me, sometimes with some Oracle user name from some computers
>>>>> SQL*Plus does not understand if I am using the SERVICE_NAME. It you happen
>>>>> to have the same situation you should be able to connect with the connection
>>>>> name, which seems to be MFUATDB for you.
>>>>>
>>>>> Actually, the error message "TNS:could not resolve the connect
>>>>> identifier specified" may mean that you should not use service name but the
>>>>> connect identifier. Have a try and tell how it went.
>>>>>
>>>>>
>>>>> -Jukka Rahkonen-
>>>>>
>>>>>
>>>>> ------------------------------
>>>>> *L?hett?j?:* mapserver-users-bounces at lists.osgeo.org [mailto:
>>>>> mapserver-users-bounces at lists.osgeo.org] *Puolesta *Sebastian E. Ovide
>>>>> *L?hetetty:* 30. syyskuuta 2010 11:15
>>>>> *Vastaanottaja:* Dan Little
>>>>> *Kopio:* mapserver-users at lists.osgeo.org
>>>>> *Aihe:* Re: [mapserver-users] lighttpd, TNS:could not resolve...
>>>>>
>>>>> yes.
>>>>>
>>>>>
>>>>> gis at mapserver:~$ ls -la /home/gis/conf/tnsnames.ora
>>>>> -rw-r--r-- 1 gis gis 184 2010-09-29 16:19 /home/gis/conf/tnsnames.ora
>>>>> gis at mapserver:~$ sudo su www-data -c 'cat /home/gis/conf/tnsnames.ora'
>>>>> MFUATDB =
>>>>> (DESCRIPTION =
>>>>> (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.60.70)(PORT = 1521))
>>>>> (CONNECT_DATA =
>>>>> (SERVER = DEDICATED)
>>>>> (SERVICE_NAME = mfuatdb)
>>>>> )
>>>>> )
>>>>>
>>>>>
>>>>> On Wed, Sep 29, 2010 at 7:58 PM, Dan Little wrote:
>>>>>
>>>>>> Is tnsnames.ora accessible by the web-server user? (Check the
>>>>>> permissions.)
>>>>>>
>>>>>> Is t
>>>>>> *From:* Sebastian E. Ovide
>>>>>> *To:* mapserver-users at lists.osgeo.org
>>>>>> *Sent:* Wed, September 29, 2010 11:10:09 AM
>>>>>> *Subject:* [mapserver-users] lighttpd, TNS:could not resolve...
>>>>>>
>>>>>> Hi All,
>>>>>>
>>>>>> I have installed MapServer on lighttpd + fastcgi.
>>>>>>
>>>>>> fastcgi.server = (
>>>>>> "/mapserver" =>
>>>>>> ( "localhost" =>
>>>>>> (
>>>>>> "socket" => "/tmp/mapserver-fastcgi.socket",
>>>>>> "bin-path" => "/home/gis/bin/mapserv",
>>>>>> "bin-environment" =>
>>>>>> (
>>>>>> "TNS_ADMIN" => "/home/gis/conf/"
>>>>>> ),
>>>>>> "max-procs" => 2,
>>>>>> "check-local" => "disable"
>>>>>> )
>>>>>> )
>>>>>> )
>>>>>>
>>>>>>
>>>>>> gis at mapserver:~$ cat /home/gis/conf/tnsnames.ora
>>>>>> MFUATDB =
>>>>>> (DESCRIPTION =
>>>>>> (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.60.70)(PORT = 1521))
>>>>>> (CONNECT_DATA =
>>>>>> (SERVER = DEDICATED)
>>>>>> (SERVICE_NAME = mfuatdb)
>>>>>> )
>>>>>> )
>>>>>>
>>>>>> and I'm getting:
>>>>>>
>>>>>> msDrawMap(): Image handling error. Failed to draw layer named
>>>>>> 'TESTII'. msOGRFileOpen(): OGR error. Open failed for OGR connection in
>>>>>> layer `TESTII'. ORA-12154: TNS:could not resolve the connect identifier
>>>>>> specified in
>>>>>>
>>>>>> from the logs:
>>>>>>
>>>>>> [Wed Sep 29 17:00:13 2010].649965 CGI Request 1 on process 1513
>>>>>> [Wed Sep 29 17:00:13 2010].717290 msOGRFileOpen(): OGR error. Open
>>>>>> failed for OGR connection in layer `TESTII'.
>>>>>> ORA-12154: TNS:could not resolve the connect identifier specified
>>>>>> in
>>>>>>
>>>>>> [Wed Sep 29 17:00:13 2010].717319 msDrawMap(): Image handling error.
>>>>>> Failed to draw layer named 'TESTII'.
>>>>>> [Wed Sep 29 17:00:13 2010].717454 msFreeMap(): freeing map at
>>>>>> 0xa00f298.
>>>>>> [Wed Sep 29 17:00:13 2010].717579 freeLayer(): freeing layer at
>>>>>> 0xa0237a0.
>>>>>> [Wed Sep 29 17:00:13 2010].717591 freeLayer(): freeing layer at
>>>>>> 0xa024718.
>>>>>>
>>>>>>
>>>>>> in mapserver:
>>>>>>
>>>>>> LAYER
>>>>>> NAME TESTII
>>>>>> TYPE POLYGON
>>>>>> STATUS ON
>>>>>> CONNECTION "OCI:GEO_US_DATA/GEO_US_DATA at mfuatdb"
>>>>>> CONNECTIONTYPE OGR
>>>>>> DATA "CA_WILDFIRE"
>>>>>> PROJECTION
>>>>>> "init=epsg:3857"
>>>>>> END
>>>>>> CLASS
>>>>>> # NAME "local_shape"
>>>>>> COLOR 0 0 255
>>>>>> OUTLINECOLOR 0 0 255
>>>>>> END
>>>>>> END
>>>>>>
>>>>>>
>>>>>>
>>>>>> The connection string is right as I'm using it from gdal:
>>>>>>
>>>>>> gis at mapserver:~$ ogrinfo OCI:GEO_US_DATA/GEO_US_DATA at mfuatdb
>>>>>> :CA_WILDFIRE
>>>>>> INFO: Open of `OCI:GEO_US_DATA/GEO_US_DATA at mfuatdb:CA_WILDFIRE'
>>>>>> using driver `OCI' successful.
>>>>>> 1: CA_WILDFIRE
>>>>>>
>>>>>>
>>>>>> any ideas ?
>>>>>>
>>>>>>
>>>>>> --
>>>>>> Sebastian E. Ovide
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> Sebastian E. Ovide
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>
>>>>
>>>> --
>>>> Sebastian E. Ovide
>>>>
>>>>
>>>>
>>>>
>>>>
>>>
>>>
>>> --
>>> Sebastian E. Ovide
>>>
>>>
>>>
>>>
>>>
>>
>>
>> --
>> Sebastian E. Ovide
>>
>>
>>
>>
>>
>>
>
>
> --
> Sebastian E. Ovide
>
>
>
>
>
--
Sebastian E. Ovide
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From michael.smith at usace.army.mil Tue Oct 5 04:48:40 2010
From: michael.smith at usace.army.mil (Michael Smith)
Date: Tue, 05 Oct 2010 07:48:40 -0400
Subject: [mapserver-users] lighttpd, TNS:could not resolve...
In-Reply-To:
Message-ID:
Sebastian,
Instead of using TNS, you could try the EZConnect syntax of
@host:port/service_name. That way you bypass even needing a TNS. Also if
your port is 1521, you can just not include it and use
CONNECTION ?user/pass at hostname/service_name?
Mike
--
Michael Smith
US Army Corps of Engineers
Remote Sensing/GIS Center
Hanover, NH
On 10/5/10 7:26 AM, "Sebastian E. Ovide" wrote:
> I've also add a script that prints the variables and?TNS_ADMIN is there...
>
> USERNAME=root
> LANG=en_US.UTF-8
> SUDO_GID=1001
> SHELL=/bin/bash
> SUDO_COMMAND=/etc/init.d/lighttpd restart
> ORACLE_HOME=/home/gis/libs/instantclient_11_2/
> SUDO_UID=1001
> TERM=xterm
> PHP_FCGI_CHILDREN=1
> PATH=/sbin:/bin:/usr/sbin:/usr/bin
> PWD=/home/gis/conf
> LOGNAME=root
> USER=root
> HOME=/home/gis
> MAIL=/var/mail/gis
> SUDO_USER=gis
> LS_COLORS=rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:
> cd=40;33;01:or=40;31;01:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:
> ex=01;32:*.tar=01;31:*.tgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.lzma=01
> ;31:*.tlz=01;31:*.txz=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.dz=01;31:*.gz=01
> ;31:*.lz=01;31:*.xz=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz
> =01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.rar=01;31:*.ace=01;31:*.zoo=01;31
> :*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.jpg=01;35:*.jpeg=01;35:*.gif=01;35:*.bmp
> =01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35
> :*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.p
> cx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.ogm=01
> ;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.
> wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01
> ;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cg
> m=01;35:*.emf=01;35:*.axv=01;35:*.anx=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=00;3
> 6:*.au=00;36:*.flac=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.m
> pc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.axa=00;36:*.oga=00;36:*.spx=00;3
> 6:*.xspf=00;36:
> LD_LIBRARY_PATH=/home/gis/libs/instantclient_11_2/
> TNS_ADMIN=/home/gis/conf/
>
> any other ideas ?
>
> On Thu, Sep 30, 2010 at 3:09 PM, Sebastian E. Ovide
> wrote:
>> done. (restarted server etc...)
>>
>> exactly the same problem...
>>
>>
>>
>>
>>
>> On Thu, Sep 30, 2010 at 2:51 PM, Dan Little wrote:
>>> I was starting to suspect MapServer is just no seeing the environment
>>> variables...
>>>
>>> Try this... write a wrapper script "mapserv.sh"
>>>
>>> #!/bin/bash
>>>
>>> TNS_ADMIN=/home/gis/conf
>>>
>>> /home/gis/bin/mapserv
>>>
>>> Then update your script to point to "mapserv.sh".
>>>
>>>
>>>
>>>>
>>>> From: Sebastian E. Ovide
>>>> To: Dan Little
>>>> Cc: Rahkonen Jukka ;
>>>> mapserver-users at lists.osgeo.org
>>>> Sent: Thu, September 30, 2010 8:01:22 AM
>>>>
>>>> Subject: Re: [mapserver-users] lighttpd, TNS:could not resolve...
>>>>
>>>> on the same machine, with the same data and same tns file it works fine
>>>> with APACHE.... the problems is only with LIGHTTPD... it looks
>>>> like?"TNS_ADMIN" => "/home/gis/conf/" is ignored (in apache I've
>>>> used?SetEnv and?PassEnv
>>>>
>>>> ???
>>>>
>>>> On Thu, Sep 30, 2010 at 12:22 PM, Dan Little wrote:
>>>>> Does shp2img work with your Mapfile?
>>>>>>
>>>>>> From: Sebastian E. Ovide
>>>>>> To: Rahkonen Jukka
>>>>>> Cc: mapserver-users at lists.osgeo.org
>>>>>> Sent: Thu, September 30, 2010 4:47:30 AM
>>>>>> Subject: Re: [mapserver-users] lighttpd, TNS:could not resolve...
>>>>>>
>>>>>> the message says:?
>>>>>>
>>>>>> ORA-12154: TNS:could not resolve the connect identifier specified?in
>>>>>>
>>>>>>
>>>>>> so... does mean that gdal didn't get any name for the
>>>>>> connection ?
>>>>>>
>>>>>>
>>>>>>
>>>>>> On Thu, Sep 30, 2010 at 9:54 AM, Sebastian E. Ovide
>>>>>> wrote:
>>>>>>> no luck...
>>>>>>>
>>>>>>> renamed servicename to capital.. so now connection name==service name...
>>>>>>>
>>>>>>> same problem... ogrinfo works, mapserver doesn't....
>>>>>>>
>>>>>>>
>>>>>>> On Thu, Sep 30, 2010 at 9:37 AM, Rahkonen Jukka
>>>>>>> wrote:
Hi,
?
For me, sometimes with some Oracle user name from some computers SQL*Plus
does not understand if I am using the SERVICE_NAME.? It you happen to have
the same situation you should be able to connect with the connection name,
which seems to be MFUATDB?for you.?
?
Actually, the error message "TNS:could not resolve the connect identifier
specified" may mean that you should not use service name but the connect
identifier.? Have a try and tell how it went.
?
?
-Jukka Rahkonen-?
L?hett?j?: mapserver-users-bounces at lists.osgeo.org
[mailto:mapserver-users-bounces at lists.osgeo.org] Puolesta Sebastian E.
Ovide
L?hetetty: 30. syyskuuta 2010 11:15
Vastaanottaja: Dan Little
Kopio: mapserver-users at lists.osgeo.org
Aihe: Re: [mapserver-users] lighttpd, TNS:could not resolve...
yes.
gis at mapserver:~$ ls -la /home/gis/conf/tnsnames.ora
-rw-r--r-- 1 gis gis 184 2010-09-29 16:19 /home/gis/conf/tnsnames.ora
gis at mapserver:~$ sudo su www-data -c 'cat /home/gis/conf/tnsnames.ora'
MFUATDB =
??(DESCRIPTION =
?? ?(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.60.70)(PORT = 1521))
?? ?(CONNECT_DATA =
?? ? ?(SERVER = DEDICATED)
?? ? ?(SERVICE_NAME = mfuatdb)
?? ?)
??)
On Wed, Sep 29, 2010 at 7:58 PM, Dan Little wrote:
Is tnsnames.ora accessible by the web-server user? (Check the permissions.)
Is t
From: Sebastian E. Ovide
To: mapserver-users at lists.osgeo.org
Sent: Wed, September 29, 2010 11:10:09 AM
Subject: [mapserver-users] lighttpd, TNS:could not resolve...
Hi All,
I have installed MapServer on lighttpd + fastcgi.
fastcgi.server = (
?? ? ? ?"/mapserver" =>
?? ? ? ?( "localhost" =>
?? ? ? ? ? ? ? ?(
?? ? ? ? ? ? ? ? ? ? ? ?"socket" => "/tmp/mapserver-fastcgi.socket",
?? ? ? ? ? ? ? ? ? ? ? ?"bin-path" => "/home/gis/bin/mapserv",
?? ? ? ? ? ? ? ? ? ? ? ?"bin-environment" =>
?? ? ? ? ? ? ? ? ? ? ? ?(
?? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?"TNS_ADMIN" => "/home/gis/conf/"
?? ? ? ? ? ? ? ? ? ? ? ?),
?? ? ? ? ? ? ? ? ? ? ? ?"max-procs" => 2,
?? ? ? ? ? ? ? ? ? ? ? ?"check-local" => "disable"
?? ? ? ? ? ? ? ?)
?? ? ? ?)
)
gis at mapserver:~$ cat /home/gis/conf/tnsnames.ora
MFUATDB =
??(DESCRIPTION =
?? ?(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.60.70)(PORT = 1521))
?? ?(CONNECT_DATA =
?? ? ?(SERVER = DEDICATED)
?? ? ?(SERVICE_NAME = mfuatdb)
?? ?)
??)
and I'm getting:?
msDrawMap(): Image handling error. Failed to draw layer named 'TESTII'.
msOGRFileOpen(): OGR error. Open failed for OGR connection in layer
`TESTII'. ORA-12154: TNS:could not resolve the connect identifier specified
in
from the logs:
[Wed Sep 29 17:00:13 2010].649965 CGI Request 1 on process 1513
[Wed Sep 29 17:00:13 2010].717290 msOGRFileOpen(): OGR error. Open failed
for OGR connection in layer `TESTII'.
ORA-12154: TNS:could not resolve the connect identifier specified
?in
[Wed Sep 29 17:00:13 2010].717319 msDrawMap(): Image handling error. Failed
to draw layer named 'TESTII'.
[Wed Sep 29 17:00:13 2010].717454 msFreeMap(): freeing map at 0xa00f298.
[Wed Sep 29 17:00:13 2010].717579 freeLayer(): freeing layer at 0xa0237a0.
[Wed Sep 29 17:00:13 2010].717591 freeLayer(): freeing layer at 0xa024718.
in mapserver:
??LAYER
?? ?NAME TESTII
?? ?TYPE POLYGON
?? ?STATUS ON
?? ?CONNECTION "OCI:GEO_US_DATA/GEO_US_DATA at mfuatdb"
?? ?CONNECTIONTYPE OGR
?? ?DATA "CA_WILDFIRE"
?? ?PROJECTION
?? ? ?"init=epsg:3857"
?? ?END
?? ?CLASS
# ? ? ?NAME "local_shape"
?? ? ?COLOR 0 0 255
?? ? ?OUTLINECOLOR 0 0 255
?? ?END
??END
The connection string is right as I'm using it from gdal:
gis at mapserver:~$ ogrinfo OCI:GEO_US_DATA/GEO_US_DATA at mfuatdb:CA_WILDFIRE
INFO: Open of `OCI:GEO_US_DATA/GEO_US_DATA at mfuatdb:CA_WILDFIRE'
?? ? ?using driver `OCI' successful.
1: CA_WILDFIRE
any ideas ?
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From sebastian.ovide at gmail.com Tue Oct 5 06:07:08 2010
From: sebastian.ovide at gmail.com (Sebastian E. Ovide)
Date: Tue, 5 Oct 2010 14:07:08 +0100
Subject: [mapserver-users] lighttpd, TNS:could not resolve...
In-Reply-To:
References:
Message-ID:
Bingo !.... yes, that worked...
resuming:
replaced TNS connection string
CONNECTION "OCI:GEO_US_DATA/GEO_US_DATA at MFUATDB:CA_WILDFIRE"
with EZConnect syntax
CONNECTION "OCI:GEO_US_DATA/GEO_US_DATA at 192.168.60.70/MFUATDB:CA_WILDFIRE"
where the tnsnames.ora is
MFUATDB =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.60.70)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = MFUATDB)
)
)
Thanks
On Tue, Oct 5, 2010 at 12:48 PM, Michael Smith wrote:
> Sebastian,
>
> Instead of using TNS, you could try the EZConnect syntax of
> @host:port/service_name. That way you bypass even needing a TNS. Also if
> your port is 1521, you can just not include it and use
>
> CONNECTION ?user/pass at hostname/service_name?
>
> Mike
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From ibrahimsaricicek at gmail.com Tue Oct 5 06:08:15 2010
From: ibrahimsaricicek at gmail.com (Ibrahim Saricicek)
Date: Tue, 5 Oct 2010 06:08:15 -0700 (PDT)
Subject: [mapserver-users] Expressions
Message-ID: <1286284095671-5603053.post@n2.nabble.com>
Hi List;
instead of an sql ,in the connection string including 'LIKE';
(select id, name,the_geom from public.mytable where name like '%xyz%')
I would like to use an expression.
But documents say "The following logical operators are supported:
=,>,<,<=,>=,=,or,and,lt,gt,ge,le,eq,ne"
How can I use something like this?
CLASS
EXPRESSION ([name] like '%xyz%')
Thanks in Advance...
--
View this message in context: http://osgeo-org.1803224.n2.nabble.com/Expressions-tp5603053p5603053.html
Sent from the Mapserver - User mailing list archive at Nabble.com.
From aboudreault at mapgears.com Tue Oct 5 06:08:45 2010
From: aboudreault at mapgears.com (Alan Boudreault)
Date: Tue, 5 Oct 2010 09:08:45 -0400
Subject: [mapserver-users] MapServer Resolution - how to set the parameter
dynamically
In-Reply-To: <31255.87.79.91.105.1286264467.squirrel@troubadix.wheregroup.com>
References: <31255.87.79.91.105.1286264467.squirrel@troubadix.wheregroup.com>
Message-ID: <201010050908.46048.aboudreault@mapgears.com>
You can change the resolution in the url with that parameter:
&map_resolution=x
regards,
Alan
On October 5, 2010 03:41:07 am Astrid Emde wrote:
> Hello list,
>
> I tested the new Parameter
>
> RESOLUTION
> DEFRESOLUTION
>
> With these Paramter I can produce a nice map for print output [1].
>
> It would be nice to set the Paramter RESOLUTION parameter directly in the
> MapRequest like &RESOLUTION=288. If not set here the default from the
> Mapfile could be used.
> What do you think about this idea? Do you have discussed this already?
>
> Alternatively I tried to set a variable wit MapServer variable
> substitution [2] like:
>
> RESOLUTION %resolution%
>
> But this caused a MapServer error.
>
> If someone has already a solution to set the resolution dynamically
> (without MapScript) please let me know.
>
> Astrid Emde
>
> [1] http://mapserver.org/development/rfc/ms-rfc-55.html
> [2] http://mapserver.org/mapfile/variable_sub.html
>
>
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
--
Alan Boudreault
Mapgears
http://www.mapgears.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From Clement.MONIER at v-trafic.com Tue Oct 5 09:23:23 2010
From: Clement.MONIER at v-trafic.com (=?iso-8859-1?Q?Cl=E9ment_MONIER?=)
Date: Tue, 5 Oct 2010 18:23:23 +0200
Subject: [mapserver-users] Transparent background
Message-ID: <0B6D7F516315594DBEFE58178D91BD32017863321925@exchangemm.mm.fr>
Hi,
I'm trying to get a PNG without a transparent background.
Every "transparent" entry is turned to "off" inside my mapfile (attached)
http://localhost/cgi-bin/mapserv.exe?MAP=/ms4w/apps/gmap/htdocs/test_background.map&SERVICE=WMS&REQUEST=GetMap&VERSION=1.3.0&STYLES=&FORMAT=PNG8&CRS=EPSG:4326&BBOX=45,8,50,15&WIDTH=320&HEIGHT=320&LAYERS=test&BGCOLOR=0xFF0000&TRANSPARENT=False
but I'm still getting a map with a transparent background !!
Thanks for your help
Kind regards
Cl?ment
Ps : running MS4W (MS v.6.3)
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
-------------- next part --------------
A non-text attachment was scrubbed...
Name: data.rar
Type: application/octet-stream
Size: 2853 bytes
Desc: data.rar
URL:
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: test_background.map
URL:
From thomas.bonfort at gmail.com Tue Oct 5 09:29:21 2010
From: thomas.bonfort at gmail.com (thomas bonfort)
Date: Tue, 5 Oct 2010 18:29:21 +0200
Subject: [mapserver-users] Transparent background
In-Reply-To: <0B6D7F516315594DBEFE58178D91BD32017863321925@exchangemm.mm.fr>
References: <0B6D7F516315594DBEFE58178D91BD32017863321925@exchangemm.mm.fr>
Message-ID:
try setting your imagemodes to RGB instead of RGBA.
--
thomas
On Tue, Oct 5, 2010 at 18:23, Cl?ment MONIER
wrote:
> Hi,
>
>
>
> I?m trying to get a PNG without a transparent background.
>
>
>
> Every ?transparent? entry is turned to ?off? inside my mapfile (attached)
>
>
>
> http://localhost/cgi-bin/mapserv.exe?MAP=/ms4w/apps/gmap/htdocs/test_background.map&SERVICE=WMS&REQUEST=GetMap&VERSION=1.3.0&STYLES=&FORMAT=PNG8&CRS=EPSG:4326&BBOX=45,8,50,15&WIDTH=320&HEIGHT=320&LAYERS=test&BGCOLOR=0xFF0000&TRANSPARENT=False
>
> but I?m still getting a map with a transparent background !!
>
>
>
> Thanks for your help
>
>
>
> Kind regards
>
>
>
> Cl?ment
>
>
>
> Ps?: running MS4W (MS v.6.3)
>
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>
>
From Clement.MONIER at v-trafic.com Tue Oct 5 09:32:10 2010
From: Clement.MONIER at v-trafic.com (=?utf-8?B?Q2zDqW1lbnQgTU9OSUVS?=)
Date: Tue, 5 Oct 2010 18:32:10 +0200
Subject: [mapserver-users] Transparent background
In-Reply-To:
References: <0B6D7F516315594DBEFE58178D91BD32017863321925@exchangemm.mm.fr>
Message-ID: <0B6D7F516315594DBEFE58178D91BD32017863321928@exchangemm.mm.fr>
Thanks for your help, Thomas !
-----Message d'origine-----
De?: thomas bonfort [mailto:thomas.bonfort at gmail.com]
Envoy??: mardi 5 octobre 2010 18:29
??: Cl?ment MONIER
Cc?: mapserver-users at lists.osgeo.org
Objet?: Re: [mapserver-users] Transparent background
try setting your imagemodes to RGB instead of RGBA.
--
thomas
On Tue, Oct 5, 2010 at 18:23, Cl?ment MONIER
wrote:
> Hi,
>
>
>
> I?m trying to get a PNG without a transparent background.
>
>
>
> Every ?transparent? entry is turned to ?off? inside my mapfile (attached)
>
>
>
> http://localhost/cgi-bin/mapserv.exe?MAP=/ms4w/apps/gmap/htdocs/test_background.map&SERVICE=WMS&REQUEST=GetMap&VERSION=1.3.0&STYLES=&FORMAT=PNG8&CRS=EPSG:4326&BBOX=45,8,50,15&WIDTH=320&HEIGHT=320&LAYERS=test&BGCOLOR=0xFF0000&TRANSPARENT=False
>
> but I?m still getting a map with a transparent background !!
>
>
>
> Thanks for your help
>
>
>
> Kind regards
>
>
>
> Cl?ment
>
>
>
> Ps?: running MS4W (MS v.6.3)
>
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>
>
From Steve.Lime at state.mn.us Tue Oct 5 10:08:21 2010
From: Steve.Lime at state.mn.us (Lime, Steve D (DNR))
Date: Tue, 5 Oct 2010 12:08:21 -0500
Subject: [mapserver-users] Expressions
In-Reply-To: <1286284095671-5603053.post@n2.nabble.com>
References: <1286284095671-5603053.post@n2.nabble.com>
Message-ID:
You can use regular expressions instead. E.g.
Classitem 'name'
Class
Expression /xyz/
End
Steve
________________________________________
From: mapserver-users-bounces at lists.osgeo.org [mapserver-users-bounces at lists.osgeo.org] On Behalf Of Ibrahim Saricicek [ibrahimsaricicek at gmail.com]
Sent: Tuesday, October 05, 2010 8:08 AM
To: mapserver-users at lists.osgeo.org
Subject: [mapserver-users] Expressions
Hi List;
instead of an sql ,in the connection string including 'LIKE';
(select id, name,the_geom from public.mytable where name like '%xyz%')
I would like to use an expression.
But documents say "The following logical operators are supported:
=,>,<,<=,>=,=,or,and,lt,gt,ge,le,eq,ne"
How can I use something like this?
CLASS
EXPRESSION ([name] like '%xyz%')
Thanks in Advance...
--
View this message in context: http://osgeo-org.1803224.n2.nabble.com/Expressions-tp5603053p5603053.html
Sent from the Mapserver - User mailing list archive at Nabble.com.
_______________________________________________
mapserver-users mailing list
mapserver-users at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users
From ibrahimsaricicek at gmail.com Wed Oct 6 01:29:53 2010
From: ibrahimsaricicek at gmail.com (ibrahim saricicek)
Date: Wed, 6 Oct 2010 11:29:53 +0300
Subject: [mapserver-users] Expressions
In-Reply-To:
References: <1286284095671-5603053.post@n2.nabble.com>
Message-ID:
Hi List,
Thanks, that works.
But *this doesn't* and I need something like in the Class definitions below.
What should I do in this condition?
Is it about this; http://trac.osgeo.org/mapserver/ticket/2817
Using ms4w 5.4.0-rc2.
CLASSITEM "name"
CLASS
EXPRESSION ([id] = 5)
MAXSCALEDENOM 4000
MINSCALEDENOM 1000
NAME "1"
STYLE
COLOR [color2]
END
STYLE
OUTLINECOLOR 20 20 20
WIDTH 3
END
END
CLASS
EXPRESSION /xyz/
NAME "2"
STYLE
OUTLINECOLOR 0 0 0
WIDTH 20
END
END
*OR*
#CLASSITEM 'name' # Without CLASSITEM definition
CLASS
EXPRESSION ('[name]' eq /xyz/ AND [id] = 5)
NAME "GID_S"
STYLE
OUTLINECOLOR 0 0 0
WIDTH 20
END
END
On Tue, Oct 5, 2010 at 8:08 PM, Lime, Steve D (DNR)
wrote:
> You can use regular expressions instead. E.g.
>
> Classitem 'name'
> Class
> Expression /xyz/
> End
>
> Steve
>
> ________________________________________
> From: mapserver-users-bounces at lists.osgeo.org [
> mapserver-users-bounces at lists.osgeo.org] On Behalf Of Ibrahim Saricicek [
> ibrahimsaricicek at gmail.com]
> Sent: Tuesday, October 05, 2010 8:08 AM
> To: mapserver-users at lists.osgeo.org
> Subject: [mapserver-users] Expressions
>
> Hi List;
>
> instead of an sql ,in the connection string including 'LIKE';
> (select id, name,the_geom from public.mytable where name like '%xyz%')
> I would like to use an expression.
> But documents say "The following logical operators are supported:
> =,>,<,<=,>=,=,or,and,lt,gt,ge,le,eq,ne"
>
> How can I use something like this?
> CLASS
> EXPRESSION ([name] like '%xyz%')
>
> Thanks in Advance...
> --
> View this message in context:
> http://osgeo-org.1803224.n2.nabble.com/Expressions-tp5603053p5603053.html
> Sent from the Mapserver - User mailing list archive at Nabble.com.
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From dbee_kawai at yahoo.com Wed Oct 6 06:19:59 2010
From: dbee_kawai at yahoo.com (elisabeth theresia)
Date: Wed, 6 Oct 2010 06:19:59 -0700 (PDT)
Subject: [mapserver-users] How to display Labels from 1 table?
Message-ID: <998045.48308.qm@web58008.mail.re3.yahoo.com>
Hello Mapserver experts,
I have question in my mind, How to display Labels from 1 table in my database
(Postgre + Postgis)?
in this table there are fields of : name_region, values_1, values_2, How to
appear them? Could Mapserver make it?
I ask this question, because I want to show the difference values_1 between
values_2 in my Bar Chart :)
if i do this (code in the bottom) then just appear values_2 in the map :) ?
LAYER
STATUS DEFAULT
TYPE ANNOTATION
CONNECTIONTYPE POSTGIS
CONNECTION "user=x password=x dbname=mydb host=host port=5432"
DATA "the_geom FROM tb_region USING UNIQUE code_region"
LABELITEM "name_region"
CLASS
LABEL
COLOR 0 0 0
TYPE Truetype
FONT Arial
SIZE 11
MINSIZE 8
ANGLE Auto
POSITION UC
ANTIALIAS True
END # LABEL
END #CLASS
LABELITEM "values_1"
CLASS
LABEL
COLOR 255 255 255
TYPE Truetype
FONT Arial
SIZE 9
MINSIZE 8
ANGLE Auto
POSITION UC
ANTIALIAS True
END # LABEL
END #CLASS
LABELITEM "values_2"
CLASS
LABEL
COLOR 255 255 255
TYPE Truetype
FONT Arial
SIZE 9
MINSIZE 8
ANGLE Auto
POSITION UC
ANTIALIAS True
END # LABEL
END #CLASS
END #LAYER
Thanks really appreciate yours,
-Theresia :)
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From mschulz at webgis.de Wed Oct 6 06:45:30 2010
From: mschulz at webgis.de (Michael Schulz)
Date: Wed, 6 Oct 2010 15:45:30 +0200
Subject: [mapserver-users] How to display Labels from 1 table?
In-Reply-To: <998045.48308.qm@web58008.mail.re3.yahoo.com>
References: <998045.48308.qm@web58008.mail.re3.yahoo.com>
Message-ID:
Hi Theresia,
you can do it via the TEXT keyword in the CLASS section of a layer:
http://www.mapserver.org/mapfile/class.html
e.g. like this:
? ??? CLASS
??? ??? LABEL
??? ??? COLOR 0 0 0
? ?? ??? TYPE Truetype
??? ??? FONT Arial
??? ??? SIZE 11
??? ? ?? MINSIZE 8
??? ?? ? ANGLE Auto
??? ?? ? POSITION UC
??? ?? ? ANTIALIAS True
WRAP "|"
? ?? ? END # LABEL
TEXT ([name_region]|[values_1] - [values_2])
??? END #CLASS
This will label the features with the values of the tree fields in this form:
name_region
values_1 - values_2
You can request the line break with the WRAP keyword. In recent
mapbender versions there are also keywords to control label alignment.
Cheers, Michael
2010/10/6 elisabeth theresia :
> Hello Mapserver experts,
>
> I have question in my mind, How to display Labels from 1 table in my
> database (Postgre + Postgis)?
> in this table there are fields of : name_region, values_1, values_2, How to
> appear them? Could Mapserver make it?
> I ask this question, because I want to show the difference values_1 between
> values_2 in my Bar Chart :)
>
> if i do this (code in the bottom) then just appear values_2 in the map :) ?
>
> LAYER
> STATUS DEFAULT
> ??? TYPE ANNOTATION
> ??? CONNECTIONTYPE POSTGIS
> ??? CONNECTION "user=x password=x dbname=mydb host=host port=5432"
> ??? DATA "the_geom FROM tb_region USING UNIQUE code_region"
>
> ??? LABELITEM "name_region"
> ??? ??? CLASS
> ??? ??? LABEL
> ??? ??? COLOR 0 0 0
> ??? ??? TYPE Truetype
> ??? ??? FONT Arial
> ??? ??? SIZE 11
> ??? ??? MINSIZE 8
> ??? ??? ANGLE Auto
> ??? ??? POSITION UC
> ??? ??? ANTIALIAS True
> ??? ??? END # LABEL
> ??? END #CLASS
>
> ??? LABELITEM "values_1"
> ??? ??? CLASS
> ??? ??? LABEL
> ??? ??? COLOR 255 255 255
> ??? ??? TYPE Truetype
> ??? ??? FONT Arial
> ??? ??? SIZE 9
> ??? ??? MINSIZE 8
> ??? ??? ANGLE Auto
> ??? ??? POSITION UC
> ??? ??? ANTIALIAS True
> ??? ??? END # LABEL
> ??? END #CLASS
>
> LABELITEM "values_2"
> ??? ??? CLASS
> ??? ??? LABEL
> ??? ??? COLOR 255 255 255
> ??? ??? TYPE Truetype
> ??? ??? FONT Arial
> ??? ??? SIZE 9
> ??? ??? MINSIZE 8
> ??? ??? ANGLE Auto
> ??? ??? POSITION UC
> ??? ??? ANTIALIAS True
> ??? ??? END # LABEL
> ??? END #CLASS
> END #LAYER
>
> Thanks really appreciate yours,
>
> -Theresia :)
>
>
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>
>
--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Treffen Sie uns auf der INTERGEO
05.10. - 07.10.2010
in K?ln Halle: 11.2
Stand-Nr: 2C.121
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-----------------------------------------------------------
Michael Schulz
mschulz at webgis.de
in medias res
Gesellschaft f?r Informationstechnologie mbH
Schwimmbadstra?e 2
D-79100? Freiburg i. Br.
Tel:? +49 (0)761 705798-102
Tel:? +49 (0)761 705798-0
Fax: +49 (0)761 705798-09
http://www.webgis.de / http://www.zopecms.de
--------------------------------------------------------------
Gesch?ftsf?hrer: Stefan Giese, Dr. Christof Lindenbeck
Eingetragen im Handelsregister HRB 5930 beim Amtsgericht Freiburg
From daniel.teske at web.de Wed Oct 6 07:46:05 2010
From: daniel.teske at web.de (teeschke)
Date: Wed, 6 Oct 2010 07:46:05 -0700 (PDT)
Subject: [mapserver-users] mapserver and i18n
Message-ID: <1286376365554-5607348.post@n2.nabble.com>
Hi List,
does anybody managed the internationalization with UMN?
Currently we have the racy idea to provide one mapfile for each language.
The differences are clear:
- title of the map
- title of the layers
- name of the classes.
- every gml_SOMEATTRIBUTE_alias
CartoMap seems to support i18n with complex configuration, but i never tried
this out.
http://www.cartoweb.org/doc/cw3.5/xhtml/user.layers.html
http://www.cartoweb.org/doc/cw3.5/xhtml/intro.archi.html
Thanks a lot and regards,
Daniel
--
View this message in context: http://osgeo-org.1803224.n2.nabble.com/mapserver-and-i18n-tp5607348p5607348.html
Sent from the Mapserver - User mailing list archive at Nabble.com.
From jmckenna at gatewaygeomatics.com Wed Oct 6 07:53:13 2010
From: jmckenna at gatewaygeomatics.com (Jeff McKenna)
Date: Wed, 06 Oct 2010 11:53:13 -0300
Subject: [mapserver-users] mapserver and i18n
In-Reply-To: <1286376365554-5607348.post@n2.nabble.com>
References: <1286376365554-5607348.post@n2.nabble.com>
Message-ID: <4CAC8D59.7010004@gatewaygeomatics.com>
On 10-10-06 11:46 AM, teeschke wrote:
>
> Hi List,
>
> does anybody managed the internationalization with UMN?
> Currently we have the racy idea to provide one mapfile for each language.
> The differences are clear:
> - title of the map
> - title of the layers
> - name of the classes.
> - every gml_SOMEATTRIBUTE_alias
>
> CartoMap seems to support i18n with complex configuration, but i never tried
> this out.
> http://www.cartoweb.org/doc/cw3.5/xhtml/user.layers.html
> http://www.cartoweb.org/doc/cw3.5/xhtml/intro.archi.html
Hello Daniel,
Yes, in fact last month I revived the old documentation for the website
(http://www.mapserver.org/mapfile/labelencoding.html) and successfully
tested MapServer 5.6 with Japanese and Arabic characters - see my
examples in that document.
If you would like additions to that document, please file a new ticket
in the MapServer issue tracker (http://trac.osgeo.org/mapserver/) under
the "MapServer Documentation" component.
Or if you feel like sharing your own examples with everyone, please
create a wiki page at the bottom of http://trac.osgeo.org/mapserver/ and
place your mapfiles and instructions there.
Thanks!
-jeff
--
Jeff McKenna
MapServer Consulting and Training Services
http://www.gatewaygeomatics.com/
From daniel.teske at web.de Wed Oct 6 08:07:08 2010
From: daniel.teske at web.de (teeschke)
Date: Wed, 6 Oct 2010 08:07:08 -0700 (PDT)
Subject: [mapserver-users] Re: mapserver and i18n
In-Reply-To: <4CAC8D59.7010004@gatewaygeomatics.com>
References: <1286376365554-5607348.post@n2.nabble.com>
<4CAC8D59.7010004@gatewaygeomatics.com>
Message-ID: <1286377628379-5607433.post@n2.nabble.com>
Hi Jeff,
Thanks a lot, but I don't mean the support of caracter encoding.
I want to publish the same map in different languages.
I mean the technology to publish the same content in multiple languages.
E.g. an american user would see the layers named "highways" and "railways"
but a user from france will get the layers named "autoroute" and "chemins de
fer" - with using the same shapefile.
regards, Daniel
--
View this message in context: http://osgeo-org.1803224.n2.nabble.com/mapserver-and-i18n-tp5607348p5607433.html
Sent from the Mapserver - User mailing list archive at Nabble.com.
From sebastian.ovide at gmail.com Wed Oct 6 08:06:59 2010
From: sebastian.ovide at gmail.com (Sebastian E. Ovide)
Date: Wed, 6 Oct 2010 16:06:59 +0100
Subject: [mapserver-users] doubt about mapserver URL: coordinate system
Message-ID:
Hi List
I'm using OpenLayers + MapServer. With Firebug I see that OpenLayers calls
MapServer with ULRs like this:
http://mapserver/mapserver?layers=NAFRA_2008_final
map=/home/gis/conf/mapserver/uk.map
mode=map
map_imagetype=png
mapext=-374388.56527373+7296678.7179959+-374312.12824546+7296755.1550241
imgext=-374388.56527373+7296678.7179959+-374312.12824546+7296755.1550241
map_size=256+256
imgx=128
imgy=128
imgxy=256+256
Just trying to understand the coordinate system used by mapext and imgext. (
it is different from than that used to call Google servers:
http://mt0.google.com/vt/lyrs=m at 133&hl=en&src=api&x=257246&y=166679&z=19&s=G
)
Is it possible to use a different coordinate system ? say for example the
same coordinate system specified in the LAYER (in my case epsg:27700)
thanks
--
Sebastian E. Ovide
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From sebastian.ovide at gmail.com Wed Oct 6 08:14:12 2010
From: sebastian.ovide at gmail.com (Sebastian E. Ovide)
Date: Wed, 6 Oct 2010 16:14:12 +0100
Subject: [mapserver-users] GetFeatureInfo over OGR OCI Layer
In-Reply-To: <224DBDAF88A6AC47BD22432815351BE0082DD744@nekaposta1>
References:
<224DBDAF88A6AC47BD22432815351BE0082DD744@nekaposta1>
Message-ID:
does
ogrinfo OCI:admcarto/admcarto at ORA10GEX GV_SIGPAC_REC_ED50
work ?
On Fri, Oct 1, 2010 at 12:25 PM, David Alda Fernandez de Lezea wrote:
> Hi list,
>
> I'm trying to execute a GetFeatureInfo request over an Oracle layer via
> OGR. I can view the content of the layer, but when I make the request I
> don't get any result. I mean, I receive an empty GML. My layer config:
>
> LAYER
> STATUS ON
> CONNECTION "OCI:admcarto/admcarto at ORA10GEX"
> CONNECTIONTYPE OGR
> DATA "GV_SIGPAC_REC_ED50" #todo el sigpac
> NAME "RecintosSigpacOGR"
> PROJECTION
> "init=epsg:23030"
> END
> DUMP TRUE
> TYPE POLYGON
> METADATA
> "wms_title" "Recintos Sigpac
> 2009"
> "wms_srs" "EPSG:23030"
> "wms_name" "RecintosSigpacOGR"
> "wms_server_version" "1.1.1"
> "wms_format" "image/gif"
> "wms_transparent" "true"
> "wms_extent" "460000 4690000 610000
> 4820000"
> "wms_include_items" "all"
> "gml_include_items" "all"
> END
> MAXSCALE 10000
>
> TEMPLATE "ms_template.html"
> PROCESSING "LABEL_NO_CLIP=ON"
> PROCESSING "CLOSE_CONNECTION=DEFER"
> SYMBOLSCALE 5000
>
> #Simbologia
> CLASSGROUP "Simbologia_Recintos"
> CLASS
> TEXT ([PARCELA]:[RECINTO])
> STYLE
> OUTLINECOLOR 0 234 0
> END
> LABEL
> COLOR 254 254 255
> OUTLINECOLOR 0 0 0
> TYPE truetype
> FONT "sans"
> SIZE 6
> POSITION cc
> PARTIALS TRUE
> END
> NAME "RecintosSigPac"
> GROUP "Referencia_Sigpac"
> END
>
> CLASS
> STYLE
> OUTLINECOLOR 0 234 0
> WIDTH 1
> END
> NAME "RecintosSigPac"
> GROUP "Predeterminado"
> END
>
> END
>
> Resultant file
>
>
>
> xmlns:gml="http://www.opengis.net/gml"
> xmlns:xlink="http://www.w3.org/1999/xlink"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
>
>
> Any ideas? Something wrong configured?
>
> Thanks.
>
>
> Un saludo,
>
>
> ??????????????????????????????????????????????????????????????????????????????????
>
> David Alda Fern?ndez de Lezea
> Lurralde eta Biodibertsitate Saila / Dpto. de Territorio y Biodiversidad
>
> IKT
> Granja Modelo s/n ? 01192 ? Arkaute (Araba)
>
>
> ??????????????????????????????????????????????????????????????????????????????????
> Tlfnos.: 945-00-32-95 Fax: 945-00.32.90
>
> ??????????????????????????????????????????????????????????????????????????????????
> email: dalda at ikt.es web: www.ikt.es
>
> ??????????????????????????????????????????????????????????????????????????????????
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>
--
Sebastian E. Ovide
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From richard.greenwood at gmail.com Wed Oct 6 08:19:56 2010
From: richard.greenwood at gmail.com (Richard Greenwood)
Date: Wed, 6 Oct 2010 09:19:56 -0600
Subject: [mapserver-users] mapserv 5.6 faults on Windows Server 2003
Message-ID:
I'm getting a whole bunch of faults on a Windows 2003 server. The
Event Viewer reports:
faulting application mapserv.exe, version 0.0.0.0,
faulting module libmap.dll, version 0.0.0.0,
fault address 0x0002deaa.
I'm running a plain vanilla ms4w_3.0_beta11. Tried both 5.6.3 and
5.6.5. It started when I upgraded the server from MS 5.2 to 5.6.
I can find the CGI request in the Apache log that caused the fault,
but when I paste the same request into a browser and run it again it
doesn't produce the fault. So it's not reproducible.
Any thoughts?
Thanks,
Rich
--
Richard Greenwood
richard.greenwood at gmail.com
www.greenwoodmap.com
From dbee_kawai at yahoo.com Wed Oct 6 08:48:00 2010
From: dbee_kawai at yahoo.com (elisabeth theresia)
Date: Wed, 6 Oct 2010 08:48:00 -0700 (PDT)
Subject: [mapserver-users] How to display Labels from 1 table?
In-Reply-To:
References: <998045.48308.qm@web58008.mail.re3.yahoo.com>
Message-ID: <215307.89339.qm@web58004.mail.re3.yahoo.com>
Hi Mr. Michael,
Thanks for replying, i already did what you suggested to me and i delete my
layer about LABELITEMS (my coding in the bottom), but there's no labels appear
in my map yet, why?
then when i write like this: (coding) there was an error message : getString():
Symbol definition error. Parsing error near ([name_region]|[value_1]-[value_2])
here the coding:
LAYER
NAME "Annotation of Region"
TYPE ANNOTATION
STATUS DEFAULT
FEATURE
TEXT ([name_region]|[value_1]-[value_2])
END #FEATURE
CLASS
LABEL
COLOR 0 0 0
TYPE Truetype
FONT Arial
SIZE 11
MINSIZE 8
ANGLE Auto
POSITION UC
ANTIALIAS True
WRAP "|"
END #LABEL
END #CLASS
END #LAYER
Thanks for the attention :)
-Theresia
________________________________
rFrom: Michael Schulz
To: elisabeth theresia
Cc: mapserv forumlist
Sent: Wed, October 6, 2010 6:45:30 AM
Subject: Re: [mapserver-users] How to display Labels from 1 table?
Hi Theresia,
you can do it via the TEXT keyword in the CLASS section of a layer:
http://www.mapserver.org/mapfile/class.html
e.g. like this:
CLASS
LABEL
COLOR 0 0 0
TYPE Truetype
FONT Arial
SIZE 11
MINSIZE 8
ANGLE Auto
POSITION UC
ANTIALIAS True
WRAP "|"
END # LABEL
TEXT ([name_region]|[values_1] - [values_2])
END #CLASS
This will label the features with the values of the tree fields in this form:
name_region
values_1 - values_2
You can request the line break with the WRAP keyword. In recent
mapbender versions there are also keywords to control label alignment.
Cheers, Michael
2010/10/6 elisabeth theresia :
> Hello Mapserver experts,
>
> I have question in my mind, How to display Labels from 1 table in my
> database (Postgre + Postgis)?
> in this table there are fields of : name_region, values_1, values_2, How to
> appear them? Could Mapserver make it?
> I ask this question, because I want to show the difference values_1 between
> values_2 in my Bar Chart :)
>
> if i do this (code in the bottom) then just appear values_2 in the map :) ?
>
> LAYER
> STATUS DEFAULT
> TYPE ANNOTATION
> CONNECTIONTYPE POSTGIS
> CONNECTION "user=x password=x dbname=mydb host=host port=5432"
> DATA "the_geom FROM tb_region USING UNIQUE code_region"
>
> LABELITEM "name_region"
> CLASS
> LABEL
> COLOR 0 0 0
> TYPE Truetype
> FONT Arial
> SIZE 11
> MINSIZE 8
> ANGLE Auto
> POSITION UC
> ANTIALIAS True
> END # LABEL
> END #CLASS
>
> LABELITEM "values_1"
> CLASS
> LABEL
> COLOR 255 255 255
> TYPE Truetype
> FONT Arial
> SIZE 9
> MINSIZE 8
> ANGLE Auto
> POSITION UC
> ANTIALIAS True
> END # LABEL
> END #CLASS
>
> LABELITEM "values_2"
> CLASS
> LABEL
> COLOR 255 255 255
> TYPE Truetype
> FONT Arial
> SIZE 9
> MINSIZE 8
> ANGLE Auto
> POSITION UC
> ANTIALIAS True
> END # LABEL
> END #CLASS
> END #LAYER
>
> Thanks really appreciate yours,
>
> -Theresia :)
>
>
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>
>
--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Treffen Sie uns auf der INTERGEO
05.10. - 07.10.2010
in K?ln Halle: 11.2
Stand-Nr: 2C.121
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-----------------------------------------------------------
Michael Schulz
mschulz at webgis.de
in medias res
Gesellschaft f?r Informationstechnologie mbH
Schwimmbadstra?e 2
D-79100 Freiburg i. Br.
Tel: +49 (0)761 705798-102
Tel: +49 (0)761 705798-0
Fax: +49 (0)761 705798-09
http://www.webgis.de / http://www.zopecms.de
--------------------------------------------------------------
Gesch?ftsf?hrer: Stefan Giese, Dr. Christof Lindenbeck
Eingetragen im Handelsregister HRB 5930 beim Amtsgericht Freiburg
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From woodbri at swoodbridge.com Wed Oct 6 09:46:22 2010
From: woodbri at swoodbridge.com (Stephen Woodbridge)
Date: Wed, 06 Oct 2010 12:46:22 -0400
Subject: [mapserver-users] Re: mapserver and i18n
In-Reply-To: <1286377628379-5607433.post@n2.nabble.com>
References: <1286376365554-5607348.post@n2.nabble.com> <4CAC8D59.7010004@gatewaygeomatics.com>
<1286377628379-5607433.post@n2.nabble.com>
Message-ID: <4CACA7DE.500@swoodbridge.com>
On 10/6/2010 11:07 AM, teeschke wrote:
>
> Hi Jeff,
>
> Thanks a lot, but I don't mean the support of caracter encoding.
>
> I want to publish the same map in different languages.
> I mean the technology to publish the same content in multiple languages.
> E.g. an american user would see the layers named "highways" and "railways"
> but a user from france will get the layers named "autoroute" and "chemins de
> fer" - with using the same shapefile.
>
> regards, Daniel
Daniel,
I think this has more to do with the client software than directly with
mapserver on the server side. The layer names are not really exposed to
the user except possible in part of the UI that might have a control to
turn on/off a layer. At that point the client side should be doing the
translation of the displayed names to the mapserver layer names.
Along this line of thinking, I think it would be interesting if
mapserver could detect the client language preferences and that could be
made available for selecting which attribute columns are used for
labeling. I have done this with a control in the client to select the
language then made changes in my requests to the server to request a
different mapfile based on language.
Regards,
-Steve W
From bartvde at osgis.nl Wed Oct 6 09:54:50 2010
From: bartvde at osgis.nl (Bart van den Eijnden)
Date: Wed, 6 Oct 2010 18:54:50 +0200
Subject: [mapserver-users] Re: mapserver and i18n
In-Reply-To: <4CACA7DE.500@swoodbridge.com>
References: <1286376365554-5607348.post@n2.nabble.com> <4CAC8D59.7010004@gatewaygeomatics.com>
<1286377628379-5607433.post@n2.nabble.com>
<4CACA7DE.500@swoodbridge.com>
Message-ID: <329C71D0-36A1-4CB7-962E-25B17B46FB42@osgis.nl>
I don't agree with you here Steve.
Also look at the INSPIRE language parameter, it's up to the service (View Service, WMS) to translate, not the client. Think of layer titles in WMS GetCapabilities.
The way I've been doing it is to duplicate my datasets behind Mapserver, but that's not an ideal situation.
Best regards,
Bart
--
Looking for flexible support on OpenLayers or GeoExt? Please check out http://www.osgis.nl/support.html
Bart van den Eijnden
OSGIS
bartvde at osgis.nl
On Oct 6, 2010, at 6:46 PM, Stephen Woodbridge wrote:
> On 10/6/2010 11:07 AM, teeschke wrote:
>>
>> Hi Jeff,
>>
>> Thanks a lot, but I don't mean the support of caracter encoding.
>>
>> I want to publish the same map in different languages.
>> I mean the technology to publish the same content in multiple languages.
>> E.g. an american user would see the layers named "highways" and "railways"
>> but a user from france will get the layers named "autoroute" and "chemins de
>> fer" - with using the same shapefile.
>>
>> regards, Daniel
>
> Daniel,
>
> I think this has more to do with the client software than directly with mapserver on the server side. The layer names are not really exposed to the user except possible in part of the UI that might have a control to turn on/off a layer. At that point the client side should be doing the translation of the displayed names to the mapserver layer names.
>
> Along this line of thinking, I think it would be interesting if mapserver could detect the client language preferences and that could be made available for selecting which attribute columns are used for labeling. I have done this with a control in the client to select the language then made changes in my requests to the server to request a different mapfile based on language.
>
> Regards,
> -Steve W
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>
From Jukka.Rahkonen at mmmtike.fi Wed Oct 6 10:15:34 2010
From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka)
Date: Wed, 6 Oct 2010 20:15:34 +0300
Subject: [mapserver-users] doubt about mapserver URL: coordinate system
References:
Message-ID:
Hi,
It looks like your application is calling Mapserver with native CGI requests and I believe you have defined some special Mapserver layer in your application. Try to change it to standard WMS layer.
-Jukka Rahkonen-
Sebastian E. Ovide wrote:
L?hetetty: ke 6.10.2010 18:06
Vastaanottaja: mapserver-users at lists.osgeo.org
Aihe: [mapserver-users] doubt about mapserver URL: coordinate system
Hi List
I'm using OpenLayers + MapServer. With Firebug I see that OpenLayers calls
MapServer with ULRs like this:
http://mapserver/mapserver?layers=NAFRA_2008_final
map=/home/gis/conf/mapserver/uk.map
mode=map
map_imagetype=png
mapext=-374388.56527373+7296678.7179959+-374312.12824546+7296755.1550241
imgext=-374388.56527373+7296678.7179959+-374312.12824546+7296755.1550241
map_size=256+256
imgx=128
imgy=128
imgxy=256+256
Just trying to understand the coordinate system used by mapext and imgext. (
it is different from than that used to call Google servers:
http://mt0.google.com/vt/lyrs=m at 133&hl=en&src=api&x=257246&y=166679&z=19&s=G
)
Is it possible to use a different coordinate system ? say for example the
same coordinate system specified in the LAYER (in my case epsg:27700)
thanks
--
Sebastian E. Ovide
From woodbri at swoodbridge.com Wed Oct 6 10:56:46 2010
From: woodbri at swoodbridge.com (Stephen Woodbridge)
Date: Wed, 06 Oct 2010 13:56:46 -0400
Subject: [mapserver-users] Re: mapserver and i18n
In-Reply-To: <329C71D0-36A1-4CB7-962E-25B17B46FB42@osgis.nl>
References: <1286376365554-5607348.post@n2.nabble.com> <4CAC8D59.7010004@gatewaygeomatics.com>
<1286377628379-5607433.post@n2.nabble.com>
<4CACA7DE.500@swoodbridge.com>
<329C71D0-36A1-4CB7-962E-25B17B46FB42@osgis.nl>
Message-ID: <4CACB85E.8040809@swoodbridge.com>
On 10/6/2010 12:54 PM, Bart van den Eijnden wrote:
> I don't agree with you here Steve.
>
> Also look at the INSPIRE language parameter, it's up to the service
> (View Service, WMS) to translate, not the client. Think of layer
> titles in WMS GetCapabilities.
>
> The way I've been doing it is to duplicate my datasets behind
> Mapserver, but that's not an ideal situation.
>
> Best regards, Bart
>
Hi Bart,
Thanks for this feedback. I will look into that.
While I have implemented multilingual driving directions, but I'm far
from being very knowledgeable with regards to most of the i18n issues.
So do you have any recommendations or ideas for how mapserver should
deal with this? Would something like creating an additional mapping
table for terms solve this problem? Maybe something like the following
in a mapfile:
TRANSLATIONS
TERM "Highway"
en_US.UTF-8 "Highway"
en_UK.UTF-8 "Autoroute"
...
END
TERM ...
END
END
or something along these lines, with the idea the mapserver use this to
deal with user requests appropriately.
-Steve W
From bartvde at osgis.nl Wed Oct 6 11:06:59 2010
From: bartvde at osgis.nl (Bart van den Eijnden)
Date: Wed, 6 Oct 2010 20:06:59 +0200
Subject: [mapserver-users] Re: mapserver and i18n
In-Reply-To: <4CACB85E.8040809@swoodbridge.com>
References: <1286376365554-5607348.post@n2.nabble.com> <4CAC8D59.7010004@gatewaygeomatics.com>
<1286377628379-5607433.post@n2.nabble.com>
<4CACA7DE.500@swoodbridge.com>
<329C71D0-36A1-4CB7-962E-25B17B46FB42@osgis.nl>
<4CACB85E.8040809@swoodbridge.com>
Message-ID:
Hi Steve,
I have no real ideas towards a solution, like I said I use data duplication right now :-) . Normally a thesaurus would be used in between, but I don't know how viable it is to do this on the fly.
Best regards,
Bart
--
Looking for flexible support on OpenLayers or GeoExt? Please check out http://www.osgis.nl/support.html
Bart van den Eijnden
OSGIS
bartvde at osgis.nl
On Oct 6, 2010, at 7:56 PM, Stephen Woodbridge wrote:
> On 10/6/2010 12:54 PM, Bart van den Eijnden wrote:
>> I don't agree with you here Steve.
>>
>> Also look at the INSPIRE language parameter, it's up to the service
>> (View Service, WMS) to translate, not the client. Think of layer
>> titles in WMS GetCapabilities.
>>
>> The way I've been doing it is to duplicate my datasets behind
>> Mapserver, but that's not an ideal situation.
>>
>> Best regards, Bart
>>
>
> Hi Bart,
>
> Thanks for this feedback. I will look into that.
>
> While I have implemented multilingual driving directions, but I'm far from being very knowledgeable with regards to most of the i18n issues.
>
> So do you have any recommendations or ideas for how mapserver should deal with this? Would something like creating an additional mapping table for terms solve this problem? Maybe something like the following in a mapfile:
>
> TRANSLATIONS
> TERM "Highway"
> en_US.UTF-8 "Highway"
> en_UK.UTF-8 "Autoroute"
> ...
> END
> TERM ...
> END
> END
>
> or something along these lines, with the idea the mapserver use this to deal with user requests appropriately.
>
> -Steve W
>
From Steve.Lime at state.mn.us Wed Oct 6 16:07:27 2010
From: Steve.Lime at state.mn.us (Lime, Steve D (DNR))
Date: Wed, 6 Oct 2010 18:07:27 -0500
Subject: [mapserver-users] How to display Labels from 1 table?
In-Reply-To: <215307.89339.qm@web58004.mail.re3.yahoo.com>
References: <998045.48308.qm@web58008.mail.re3.yahoo.com>
,
<215307.89339.qm@web58004.mail.re3.yahoo.com>
Message-ID:
Michael's post was right on, study his example closely. You TEXT parameter is in the wrong place. There's no need to use a FEATURE object...
Steve
________________________________________
From: mapserver-users-bounces at lists.osgeo.org [mapserver-users-bounces at lists.osgeo.org] On Behalf Of elisabeth theresia [dbee_kawai at yahoo.com]
Sent: Wednesday, October 06, 2010 10:48 AM
To: mapserv forumlist
Subject: Re: [mapserver-users] How to display Labels from 1 table?
Hi Mr. Michael,
Thanks for replying, i already did what you suggested to me and i delete my layer about LABELITEMS (my coding in the bottom), but there's no labels appear in my map yet, why?
then when i write like this: (coding) there was an error message : getString(): Symbol definition error. Parsing error near ([name_region]|[value_1]-[value_2])
here the coding:
LAYER
NAME "Annotation of Region"
TYPE ANNOTATION
STATUS DEFAULT
FEATURE
TEXT ([name_region]|[value_1]-[value_2])
END #FEATURE
CLASS
LABEL
COLOR 0 0 0
TYPE Truetype
FONT Arial
SIZE 11
MINSIZE 8
ANGLE Auto
POSITION UC
ANTIALIAS True
WRAP "|"
END #LABEL
END #CLASS
END #LAYER
Thanks for the attention :)
-Theresia
________________________________
rFrom: Michael Schulz
To: elisabeth theresia
Cc: mapserv forumlist
Sent: Wed, October 6, 2010 6:45:30 AM
Subject: Re: [mapserver-users] How to display Labels from 1 table?
Hi Theresia,
you can do it via the TEXT keyword in the CLASS section of a layer:
http://www.mapserver.org/mapfile/class.html
e.g. like this:
CLASS
LABEL
COLOR 0 0 0
TYPE Truetype
FONT Arial
SIZE 11
MINSIZE 8
ANGLE Auto
POSITION UC
ANTIALIAS True
WRAP "|"
END # LABEL
TEXT ([name_region]|[values_1] - [values_2])
END #CLASS
This will label the features with the values of the tree fields in this form:
name_region
values_1 - values_2
You can request the line break with the WRAP keyword. In recent
mapbender versions there are also keywords to control label alignment.
Cheers, Michael
2010/10/6 elisabeth theresia >:
> Hello Mapserver experts,
>
> I have question in my mind, How to display Labels from 1 table in my
> database (Postgre + Postgis)?
> in this table there are fields of : name_region, values_1, values_2, How to
> appear them? Could Mapserver make it?
> I ask this question, because I want to show the difference values_1 between
> values_2 in my Bar Chart :)
>
> if i do this (code in the bottom) then just appear values_2 in the map :) ?
>
> LAYER
> STATUS DEFAULT
> TYPE ANNOTATION
> CONNECTIONTYPE POSTGIS
> CONNECTION "user=x password=x dbname=mydb host=host port=5432"
> DATA "the_geom FROM tb_region USING UNIQUE code_region"
>
> LABELITEM "name_region"
> CLASS
> LABEL
> COLOR 0 0 0
> TYPE Truetype
> FONT Arial
> SIZE 11
> MINSIZE 8
> ANGLE Auto
> POSITION UC
> ANTIALIAS True
> END # LABEL
> END #CLASS
>
> LABELITEM "values_1"
> CLASS
> LABEL
> COLOR 255 255 255
> TYPE Truetype
> FONT Arial
> SIZE 9
> MINSIZE 8
> ANGLE Auto
> POSITION UC
> ANTIALIAS True
> END # LABEL
> END #CLASS
>
> LABELITEM "values_2"
> CLASS
> LABEL
> COLOR 255 255 255
> TYPE Truetype
> FONT Arial
> SIZE 9
> MINSIZE 8
> ANGLE Auto
> POSITION UC
> ANTIALIAS True
> END # LABEL
> END #CLASS
> END #LAYER
>
> Thanks really appreciate yours,
>
> -Theresia :)
>
>
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>
>
--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Treffen Sie uns auf der INTERGEO
05.10. - 07.10.2010
in K?ln Halle: 11.2
Stand-Nr: 2C.121
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-----------------------------------------------------------
Michael Schulz
mschulz at webgis.de
in medias res
Gesellschaft f?r Informationstechnologie mbH
Schwimmbadstra?e 2
D-79100 Freiburg i. Br.
Tel: +49 (0)761 705798-102
Tel: +49 (0)761 705798-0
Fax: +49 (0)761 705798-09
http://www.webgis.de / http://www.zopecms.de
--------------------------------------------------------------
Gesch?ftsf?hrer: Stefan Giese, Dr. Christof Lindenbeck
Eingetragen im Handelsregister HRB 5930 beim Amtsgericht Freiburg
From michael.smith at usace.army.mil Wed Oct 6 16:23:46 2010
From: michael.smith at usace.army.mil (Michael Smith)
Date: Wed, 06 Oct 2010 19:23:46 -0400
Subject: [mapserver-users] Re: mapserver and i18n
In-Reply-To: <4CACB85E.8040809@swoodbridge.com>
Message-ID:
I would do this on the backend. Pass a language variable to your data query
DATA "geom from data where lang='%lang%'"
LABELITEM "%LANG%HIGHWAY"
And have one mapfile and just have your translations in PostGis/Oracle/etc.
Mike
--
Michael Smith
US Army Corps of Engineers
Remote Sensing/GIS Center
Hanover, NH
On 10/6/10 1:56 PM, "Stephen Woodbridge" wrote:
> On 10/6/2010 12:54 PM, Bart van den Eijnden wrote:
>> I don't agree with you here Steve.
>>
>> Also look at the INSPIRE language parameter, it's up to the service
>> (View Service, WMS) to translate, not the client. Think of layer
>> titles in WMS GetCapabilities.
>>
>> The way I've been doing it is to duplicate my datasets behind
>> Mapserver, but that's not an ideal situation.
>>
>> Best regards, Bart
>>
>
> Hi Bart,
>
> Thanks for this feedback. I will look into that.
>
> While I have implemented multilingual driving directions, but I'm far
> from being very knowledgeable with regards to most of the i18n issues.
>
> So do you have any recommendations or ideas for how mapserver should
> deal with this? Would something like creating an additional mapping
> table for terms solve this problem? Maybe something like the following
> in a mapfile:
>
> TRANSLATIONS
> TERM "Highway"
> en_US.UTF-8 "Highway"
> en_UK.UTF-8 "Autoroute"
> ...
> END
> TERM ...
> END
> END
>
> or something along these lines, with the idea the mapserver use this to
> deal with user requests appropriately.
>
> -Steve W
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
From woodbri at swoodbridge.com Wed Oct 6 17:05:59 2010
From: woodbri at swoodbridge.com (Stephen Woodbridge)
Date: Wed, 06 Oct 2010 20:05:59 -0400
Subject: [mapserver-users] Re: mapserver and i18n
In-Reply-To:
References:
Message-ID: <4CAD0EE7.2090607@swoodbridge.com>
On 10/6/2010 7:23 PM, Michael Smith wrote:
> I would do this on the backend. Pass a language variable to your data
> query
>
> DATA "geom from data where lang='%lang%'" LABELITEM "%LANG%HIGHWAY"
>
> And have one mapfile and just have your translations in
> PostGis/Oracle/etc.
>
> Mike
>
>
Yeah, that is what I have done but that requires the client to handle
the management of the language selection and as Bart is pointing out the
language selection should be handled on the server.
Here is an example where you can select English, Arabic or French for
the language of the Instructions.
http://gis.imaptools.com/routing/leaddog/?zoom=10&lat=33.865&lon=35.52263&layers=B0TTTF&start=35.484217%2033.830394&stop=35.627718%2033.92659&method=STS&lang=arb
It obviously needs more work to translate the whole page but my job was
to just deal with the instructions part of this.
-Steve
From michael.smith at usace.army.mil Wed Oct 6 17:14:09 2010
From: michael.smith at usace.army.mil (Smith, Michael ERDC-CRREL-NH)
Date: Wed, 06 Oct 2010 20:14:09 -0400
Subject: [mapserver-users] Re: mapserver and i18n
In-Reply-To: <4CAD0EE7.2090607@swoodbridge.com>
Message-ID:
Very nice Steve.
This will always have to be driven by the client as its the client that
initiates the connection and has the language info (and often you can not
count on this, from what I've seen of the Swiss use of language discovery
from clients). You just have to encode the lang the server discovers as cgi
environment variables and then pass to MapServer which gets passed to the
database.
On 10/6/10 8:05 PM, "Stephen Woodbridge" wrote:
> On 10/6/2010 7:23 PM, Michael Smith wrote:
>> I would do this on the backend. Pass a language variable to your data
>> query
>>
>> DATA "geom from data where lang='%lang%'" LABELITEM "%LANG%HIGHWAY"
>>
>> And have one mapfile and just have your translations in
>> PostGis/Oracle/etc.
>>
>> Mike
>>
>>
>
> Yeah, that is what I have done but that requires the client to handle
> the management of the language selection and as Bart is pointing out the
> language selection should be handled on the server.
>
> Here is an example where you can select English, Arabic or French for
> the language of the Instructions.
>
> http://gis.imaptools.com/routing/leaddog/?zoom=10&lat=33.865&lon=35.52263&laye
> rs=B0TTTF&start=35.484217%2033.830394&stop=35.627718%2033.92659&method=STS&lan
> g=arb
>
> It obviously needs more work to translate the whole page but my job was
> to just deal with the instructions part of this.
>
> -Steve
From dalda at ikt.es Wed Oct 6 23:15:09 2010
From: dalda at ikt.es (David Alda Fernandez de Lezea)
Date: Thu, 7 Oct 2010 08:15:09 +0200
Subject: [mapserver-users] GetFeatureInfo over OGR OCI Layer
Message-ID: <224DBDAF88A6AC47BD22432815351BE0082DE405@nekaposta1>
Sebastian,
Thanks for your response.
If I execute that line of code I get a confusing response. It seems that recognizes the table but there are som errors that make me think there is something wrong.
C:\ms4w>ogrinfo OCI:admcarto/admcarto at ORA10GEX GV_SIGPAC_REC_ED50
ERROR 1: ORA-04043: object GV_INVFOR_2005_ED50 does not exist
in OCIDescribeAny
ERROR 1: ORA-04043: object GV_SIGPAC_PAR_ED50 does not exist
in OCIDescribeAny
ERROR 1: ORA-04043: object GV_SIGPAC_POL_ED50 does not exist
in OCIDescribeAny
ERROR 1: ORA-04043: object GV_SIGPAC_REC_ED50 does not exist
in OCIDescribeAny
INFO: Open of `OCI:admcarto/admcarto at ORA10GEX'
using driver `OCI' successful.
Layer name: GV_SIGPAC_REC_ED50
Geometry: Unknown (any)
Feature Count: 946359
ERROR 1: ORA-03113: fin de archivo en el canal de comunicaci?n
in SELECT MIN(SDO_GEOM.SDO_MIN_MBR_ORDINATE(t.GEOMETRY,m.DIMINFO,1)) AS MINX,MI
N(SDO_GEOM.SDO_MIN_MBR_ORDINATE(t.GEOMETRY,m.DIMINFO,2)) AS MINY,MAX(SDO_GEOM.SD
O_MAX_MBR_ORDINATE(t.GEOMETRY,m.DIMINFO,1)) AS MAXX,MAX(SDO_GEOM.SDO_MAX_MBR_ORD
INATE(t.GEOMETRY,m.DIMINFO,2)) AS MAXY FROM ALL_SDO_GEOM_METADATA m, GV_SIGPAC_
REC_ED50 t WHERE m.TABLE_NAME = 'GV_SIGPAC_REC_ED50' AND m.COLUMN_NAME='GEOMETRY
'
ERROR 1: ORA-03114: no conectado a ORACLE
in SELECT "GEOMETRY","GID","PROVINCIA","MUNICIPIO","POLIGONO","PARCELA","RECINT
O","DN_SURFACE","DN_PERIMET","PENDIENTE","ELEGIBILIDAD","COEF_REGAD","COEF_PASTO
","USO_SIGPAC","USO_2003","PARCELA_AG","DN_OID","FECHA" FROM GV_SIGPAC_REC_ED50
Layer SRS WKT:
PROJCS["UTM Zone 30 (ED 50)",
GEOGCS["European 1950",
DATUM["European 1950",
SPHEROID["International 1924",6378388,297]],
PRIMEM["Greenwich",0.000000],
UNIT["Decimal Degree",0.01745329251994330]],
PROJECTION["Transverse Mercator"],
PARAMETER["Scale_Factor",0.999600],
PARAMETER["Central_Meridian",-3.000000],
PARAMETER["False_Easting",500000.000000],
UNIT["Meter",1.000000000000],
AUTHORITY["Oracle","82337"]]
Geometry Column = GEOMETRY
GID: Integer (10.0)
PROVINCIA: Integer (2.0)
MUNICIPIO: Integer (3.0)
POLIGONO: Integer (3.0)
PARCELA: Integer (5.0)
RECINTO: Integer (3.0)
DN_SURFACE: Real (15.5)
DN_PERIMET: Real (15.5)
PENDIENTE: Real (4.1)
ELEGIBILIDAD: Integer (3.0)
COEF_REGAD: Integer (3.0)
COEF_PASTO: Integer (3.0)
USO_SIGPAC: String (2.0)
USO_2003: String (2.0)
PARCELA_AG: String (30.0)
DN_OID: Integer (10.0)
FECHA: Date (0.0)
ERROR 1: ORA-03114: no conectado a ORACLE
in SELECT "GEOMETRY","GID","PROVINCIA","MUNICIPIO","POLIGONO","PARCELA","RECINT
O","DN_SURFACE","DN_PERIMET","PENDIENTE","ELEGIBILIDAD","COEF_REGAD","COEF_PASTO
","USO_SIGPAC","USO_2003","PARCELA_AG","DN_OID","FECHA" FROM GV_SIGPAC_REC_ED50
C:\ms4w>
Any idea?
Thanks again.
________________________________
De: sebastianovide at gmail.com [mailto:sebastianovide at gmail.com] En nombre de Sebastian E. Ovide
Enviado el: mi?rcoles, 06 de octubre de 2010 17:14
Para: David Alda Fernandez de Lezea
CC: mapserver-users at lists.osgeo.org
Asunto: Re: [mapserver-users] GetFeatureInfo over OGR OCI Layer
does
ogrinfo OCI:admcarto/admcarto at ORA10GEX GV_SIGPAC_REC_ED50
work ?
On Fri, Oct 1, 2010 at 12:25 PM, David Alda Fernandez de Lezea wrote:
Hi list,
I'm trying to execute a GetFeatureInfo request over an Oracle layer via OGR. I can view the content of the layer, but when I make the request I don't get any result. I mean, I receive an empty GML. My layer config:
LAYER
STATUS ON
CONNECTION "OCI:admcarto/admcarto at ORA10GEX"
CONNECTIONTYPE OGR
DATA "GV_SIGPAC_REC_ED50" #todo el sigpac
NAME "RecintosSigpacOGR"
PROJECTION
"init=epsg:23030"
END
DUMP TRUE
TYPE POLYGON
METADATA
"wms_title" "Recintos Sigpac 2009"
"wms_srs" "EPSG:23030"
"wms_name" "RecintosSigpacOGR"
"wms_server_version" "1.1.1"
"wms_format" "image/gif"
"wms_transparent" "true"
"wms_extent" "460000 4690000 610000 4820000"
"wms_include_items" "all"
"gml_include_items" "all"
END
MAXSCALE 10000
TEMPLATE "ms_template.html"
PROCESSING "LABEL_NO_CLIP=ON"
PROCESSING "CLOSE_CONNECTION=DEFER"
SYMBOLSCALE 5000
#Simbologia
CLASSGROUP "Simbologia_Recintos"
CLASS
TEXT ([PARCELA]:[RECINTO])
STYLE
OUTLINECOLOR 0 234 0
END
LABEL
COLOR 254 254 255
OUTLINECOLOR 0 0 0
TYPE truetype
FONT "sans"
SIZE 6
POSITION cc
PARTIALS TRUE
END
NAME "RecintosSigPac"
GROUP "Referencia_Sigpac"
END
CLASS
STYLE
OUTLINECOLOR 0 234 0
WIDTH 1
END
NAME "RecintosSigPac"
GROUP "Predeterminado"
END
END
Resultant file
Any ideas? Something wrong configured?
Thanks.
Un saludo,
??????????????????????????????????????????????????????????????????????????????????
David Alda Fern?ndez de Lezea
Lurralde eta Biodibertsitate Saila / Dpto. de Territorio y Biodiversidad
IKT
Granja Modelo s/n ? 01192 ? Arkaute (Araba)
??????????????????????????????????????????????????????????????????????????????????
Tlfnos.: 945-00-32-95 Fax: 945-00.32.90
??????????????????????????????????????????????????????????????????????????????????
email: dalda at ikt.es web: www.ikt.es
??????????????????????????????????????????????????????????????????????????????????
_______________________________________________
mapserver-users mailing list
mapserver-users at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users
--
Sebastian E. Ovide
From bartvde at osgis.nl Wed Oct 6 23:30:45 2010
From: bartvde at osgis.nl (Bart van den Eijnden)
Date: Thu, 7 Oct 2010 08:30:45 +0200
Subject: [mapserver-users] Re: mapserver and i18n
In-Reply-To: <4CAD0EE7.2090607@swoodbridge.com>
References:
<4CAD0EE7.2090607@swoodbridge.com>
Message-ID: <6CC60BF7-98FF-400E-A1CC-DA71E81352EA@osgis.nl>
Hi Steve,
I did not (mean to) say the client does not send the correct language parameter to the server. The client (browser) is in control and will request the language needed.
Your e-mail said the client needed to do the actual translation of e.g. layer names, and that's where I disagreed.
Best regards,
Bart
--
Looking for flexible support on OpenLayers or GeoExt? Please check out http://www.osgis.nl/support.html
Bart van den Eijnden
OSGIS
bartvde at osgis.nl
On Oct 7, 2010, at 2:05 AM, Stephen Woodbridge wrote:
> On 10/6/2010 7:23 PM, Michael Smith wrote:
>> I would do this on the backend. Pass a language variable to your data
>> query
>>
>> DATA "geom from data where lang='%lang%'" LABELITEM "%LANG%HIGHWAY"
>>
>> And have one mapfile and just have your translations in
>> PostGis/Oracle/etc.
>>
>> Mike
>>
>>
>
> Yeah, that is what I have done but that requires the client to handle the management of the language selection and as Bart is pointing out the language selection should be handled on the server.
>
> Here is an example where you can select English, Arabic or French for the language of the Instructions.
>
> http://gis.imaptools.com/routing/leaddog/?zoom=10&lat=33.865&lon=35.52263&layers=B0TTTF&start=35.484217%2033.830394&stop=35.627718%2033.92659&method=STS&lang=arb
>
> It obviously needs more work to translate the whole page but my job was to just deal with the instructions part of this.
>
> -Steve
>
From daniel.teske at web.de Thu Oct 7 01:06:43 2010
From: daniel.teske at web.de (teeschke)
Date: Thu, 7 Oct 2010 01:06:43 -0700 (PDT)
Subject: [mapserver-users] Re: mapserver and i18n
In-Reply-To:
References: <1286376365554-5607348.post@n2.nabble.com>
<4CAC8D59.7010004@gatewaygeomatics.com>
<1286377628379-5607433.post@n2.nabble.com>
<4CACA7DE.500@swoodbridge.com>
<329C71D0-36A1-4CB7-962E-25B17B46FB42@osgis.nl>
<4CACB85E.8040809@swoodbridge.com>
Message-ID: <1286438803290-5610385.post@n2.nabble.com>
Hi Michael,
thats a realy good idea for the attributes of the geodata. But what about
LAYER
NAME 'my_highway_layer'
TYPE LINE
DATA "geom from data where lang='%lang%'"
METADATA
"ows_title" "highways" ##### must be i18n
"ows_group_title" "Infrastructure" ##### must be i18n
"wms_feature_info_mime_type" "text/html"
"wms_server_version" "1.1.1"
"wms_format" "image/png"
"wms_exceptions_format" "application/vnd.ogc.se_xml"
"gml_featureid" "ID"
"gml_include_items" "ID,NAME"
"gml_ID_alias" "Number" ##### must be i18n
"gml_NAME_alias" "Name" ##### must be i18n
END #METADATA
CLASS
NAME 'good' ##### must be i18n
COLOR 0 255 0
END # CLASS
CLASS
NAME 'bad' ##### must be i18n
COLOR 255 0 0
END #CLASS
END # LAYER
I think the only solution is to provide one mapfile for each language.
Thanks a lot and regards,
Daniel
--
View this message in context: http://osgeo-org.1803224.n2.nabble.com/mapserver-and-i18n-tp5607348p5610385.html
Sent from the Mapserver - User mailing list archive at Nabble.com.
From sebastian.ovide at gmail.com Thu Oct 7 04:42:44 2010
From: sebastian.ovide at gmail.com (Sebastian E. Ovide)
Date: Thu, 7 Oct 2010 12:42:44 +0100
Subject: [mapserver-users] doubt about mapserver URL: coordinate system
In-Reply-To:
References:
Message-ID:
you are right. Thanks
On Wed, Oct 6, 2010 at 6:15 PM, Rahkonen Jukka wrote:
> Hi,
>
> It looks like your application is calling Mapserver with native CGI
> requests and I believe you have defined some special Mapserver layer in your
> application. Try to change it to standard WMS layer.
>
>
> -Jukka Rahkonen-
>
>
> Sebastian E. Ovide wrote:
>
> L?hetetty: ke 6.10.2010 18:06
> Vastaanottaja: mapserver-users at lists.osgeo.org
> Aihe: [mapserver-users] doubt about mapserver URL: coordinate system
>
> Hi List
>
> I'm using OpenLayers + MapServer. With Firebug I see that OpenLayers calls
> MapServer with ULRs like this:
>
> http://mapserver/mapserver?layers=NAFRA_2008_final
> map=/home/gis/conf/mapserver/uk.map
> mode=map
> map_imagetype=png
> mapext=-374388.56527373+7296678.7179959+-374312.12824546+7296755.1550241
> imgext=-374388.56527373+7296678.7179959+-374312.12824546+7296755.1550241
> map_size=256+256
> imgx=128
> imgy=128
> imgxy=256+256
>
> Just trying to understand the coordinate system used by mapext and imgext.
> (
> it is different from than that used to call Google servers:
>
> http://mt0.google.com/vt/lyrs=m at 133&hl=en&src=api&x=257246&y=166679&z=19&s=G
> )
>
> Is it possible to use a different coordinate system ? say for example the
> same coordinate system specified in the LAYER (in my case epsg:27700)
>
> thanks
>
> --
> Sebastian E. Ovide
>
>
--
Sebastian E. Ovide
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From michael.smith at usace.army.mil Thu Oct 7 04:50:43 2010
From: michael.smith at usace.army.mil (Michael Smith)
Date: Thu, 07 Oct 2010 07:50:43 -0400
Subject: [mapserver-users] doubt about mapserver URL: coordinate system
In-Reply-To:
Message-ID:
Sebastian,
You can use either mapserver or wms syntax with openlayers.
The coordinates you see are in the Google Mercator or Spherical Mercator
projection. The google coordinates are the tile references (z=19) and the x
and y should match the center point of your mapext/imgext.
To use mapserver with google mercator you?d use the projection block at the
mapfile level of
PROJECTION
"proj=merc lon_0=0 k=1 x_0=0 y_0=0 a=6378137 b=6378137
towgs84=0,0,0,0,0,0,0 units=m no_defs"
END
Mike
--
Michael Smith
US Army Corps of Engineers
Remote Sensing/GIS Center
Hanover, NH
On 10/7/10 7:42 AM, "Sebastian E. Ovide" wrote:
> you are right. Thanks
>
> On Wed, Oct 6, 2010 at 6:15 PM, Rahkonen Jukka
> wrote:
>> Hi,
>>
>> It looks like your application is calling Mapserver with native CGI requests
>> and I believe you have defined some special Mapserver layer in your
>> application. Try to change it to standard WMS layer.
>>
>>
>> -Jukka Rahkonen-
>>
>>
>> Sebastian E. Ovide wrote:
>>
>> L?hetetty: ke 6.10.2010 18:06
>> Vastaanottaja: mapserver-users at lists.osgeo.org
>> Aihe: [mapserver-users] doubt about mapserver URL: coordinate system
>>
>> Hi List
>>
>> I'm using OpenLayers + MapServer. With Firebug I see that OpenLayers calls
>> MapServer with ULRs like this:
>>
>> http://mapserver/mapserver?layers=NAFRA_2008_final
>> map=/home/gis/conf/mapserver/uk.map
>> mode=map
>> map_imagetype=png
>> mapext=-374388.56527373+7296678.7179959+-374312.12824546+7296755.1550241
>> imgext=-374388.56527373+7296678.7179959+-374312.12824546+7296755.1550241
>> map_size=256+256
>> imgx=128
>> imgy=128
>> imgxy=256+256
>>
>> Just trying to understand the coordinate system used by mapext and imgext. (
>> it is different from than that used to call Google servers:
>> http://mt0.google.com/vt/lyrs=m at 133&hl=en&src=api&x=257246&y=166679&z=19&s=G
>> )
>>
>> Is it possible to use a different coordinate system ? say for example the
>> same coordinate system specified in the LAYER (in my case epsg:27700)
>>
>> thanks
>>
>> --
>> Sebastian E. Ovide
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From dbee_kawai at yahoo.com Thu Oct 7 05:42:01 2010
From: dbee_kawai at yahoo.com (elisabeth theresia)
Date: Thu, 7 Oct 2010 05:42:01 -0700 (PDT)
Subject: [mapserver-users] How to display Labels from 1 table?
In-Reply-To:
References: <998045.48308.qm@web58008.mail.re3.yahoo.com>
,
<215307.89339.qm@web58004.mail.re3.yahoo.com>
Message-ID: <891052.36105.qm@web58002.mail.re3.yahoo.com>
Horray Mr. Michael and Mr. Lime thanks it works. really appreciate your kindness
:)
best regards,
-Theresia
________________________________
From: "Lime, Steve D (DNR)"
To: elisabeth theresia ; mapserv forumlist
Sent: Wed, October 6, 2010 4:07:27 PM
Subject: RE: [mapserver-users] How to display Labels from 1 table?
Michael's post was right on, study his example closely. You TEXT parameter is in
the wrong place. There's no need to use a FEATURE object...
Steve
________________________________________
From: mapserver-users-bounces at lists.osgeo.org
[mapserver-users-bounces at lists.osgeo.org] On Behalf Of elisabeth theresia
[dbee_kawai at yahoo.com]
Sent: Wednesday, October 06, 2010 10:48 AM
To: mapserv forumlist
Subject: Re: [mapserver-users] How to display Labels from 1 table?
Hi Mr. Michael,
Thanks for replying, i already did what you suggested to me and i delete my
layer about LABELITEMS (my coding in the bottom), but there's no labels appear
in my map yet, why?
then when i write like this: (coding) there was an error message : getString():
Symbol definition error. Parsing error near ([name_region]|[value_1]-[value_2])
here the coding:
LAYER
NAME "Annotation of Region"
TYPE ANNOTATION
STATUS DEFAULT
FEATURE
TEXT ([name_region]|[value_1]-[value_2])
END #FEATURE
CLASS
LABEL
COLOR 0 0 0
TYPE Truetype
FONT Arial
SIZE 11
MINSIZE 8
ANGLE Auto
POSITION UC
ANTIALIAS True
WRAP "|"
END #LABEL
END #CLASS
END #LAYER
Thanks for the attention :)
-Theresia
________________________________
rFrom: Michael Schulz
To: elisabeth theresia
Cc: mapserv forumlist
Sent: Wed, October 6, 2010 6:45:30 AM
Subject: Re: [mapserver-users] How to display Labels from 1 table?
Hi Theresia,
you can do it via the TEXT keyword in the CLASS section of a layer:
http://www.mapserver.org/mapfile/class.html
e.g. like this:
CLASS
LABEL
COLOR 0 0 0
TYPE Truetype
FONT Arial
SIZE 11
MINSIZE 8
ANGLE Auto
POSITION UC
ANTIALIAS True
WRAP "|"
END # LABEL
TEXT ([name_region]|[values_1] - [values_2])
END #CLASS
This will label the features with the values of the tree fields in this form:
name_region
values_1 - values_2
You can request the line break with the WRAP keyword. In recent
mapbender versions there are also keywords to control label alignment.
Cheers, Michael
2010/10/6 elisabeth theresia
>:
> Hello Mapserver experts,
>
> I have question in my mind, How to display Labels from 1 table in my
> database (Postgre + Postgis)?
> in this table there are fields of : name_region, values_1, values_2, How to
> appear them? Could Mapserver make it?
> I ask this question, because I want to show the difference values_1 between
> values_2 in my Bar Chart :)
>
> if i do this (code in the bottom) then just appear values_2 in the map :) ?
>
> LAYER
> STATUS DEFAULT
> TYPE ANNOTATION
> CONNECTIONTYPE POSTGIS
> CONNECTION "user=x password=x dbname=mydb host=host port=5432"
> DATA "the_geom FROM tb_region USING UNIQUE code_region"
>
> LABELITEM "name_region"
> CLASS
> LABEL
> COLOR 0 0 0
> TYPE Truetype
> FONT Arial
> SIZE 11
> MINSIZE 8
> ANGLE Auto
> POSITION UC
> ANTIALIAS True
> END # LABEL
> END #CLASS
>
> LABELITEM "values_1"
> CLASS
> LABEL
> COLOR 255 255 255
> TYPE Truetype
> FONT Arial
> SIZE 9
> MINSIZE 8
> ANGLE Auto
> POSITION UC
> ANTIALIAS True
> END # LABEL
> END #CLASS
>
> LABELITEM "values_2"
> CLASS
> LABEL
> COLOR 255 255 255
> TYPE Truetype
> FONT Arial
> SIZE 9
> MINSIZE 8
> ANGLE Auto
> POSITION UC
> ANTIALIAS True
> END # LABEL
> END #CLASS
> END #LAYER
>
> Thanks really appreciate yours,
>
> -Theresia :)
>
>
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>
>
--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Treffen Sie uns auf der INTERGEO
05.10. - 07.10.2010
in K?ln Halle: 11.2
Stand-Nr: 2C.121
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-----------------------------------------------------------
Michael Schulz
mschulz at webgis.de
in medias res
Gesellschaft f?r Informationstechnologie mbH
Schwimmbadstra?e 2
D-79100 Freiburg i. Br.
Tel: +49 (0)761 705798-102
Tel: +49 (0)761 705798-0
Fax: +49 (0)761 705798-09
http://www.webgis.de / http://www.zopecms.de
--------------------------------------------------------------
Gesch?ftsf?hrer: Stefan Giese, Dr. Christof Lindenbeck
Eingetragen im Handelsregister HRB 5930 beim Amtsgericht Freiburg
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From ven.tammineni at gmail.com Thu Oct 7 05:51:55 2010
From: ven.tammineni at gmail.com (venkat)
Date: Thu, 7 Oct 2010 18:21:55 +0530
Subject: [mapserver-users] How split single polygon into multiple polygons
Message-ID:
Dear All,
I need to split single polygon into multiple polygons using C#.Any one can
guide me.I am waiting for your great response.
Thanks and Regards,
Ven
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From woodbri at swoodbridge.com Thu Oct 7 06:14:15 2010
From: woodbri at swoodbridge.com (Stephen Woodbridge)
Date: Thu, 07 Oct 2010 09:14:15 -0400
Subject: [mapserver-users] Re: mapserver and i18n
In-Reply-To: <1286438803290-5610385.post@n2.nabble.com>
References: <1286376365554-5607348.post@n2.nabble.com> <4CAC8D59.7010004@gatewaygeomatics.com> <1286377628379-5607433.post@n2.nabble.com> <4CACA7DE.500@swoodbridge.com> <329C71D0-36A1-4CB7-962E-25B17B46FB42@osgis.nl> <4CACB85E.8040809@swoodbridge.com>
<1286438803290-5610385.post@n2.nabble.com>
Message-ID: <4CADC7A7.7020908@swoodbridge.com>
I'm not sure that there is any reason that this:
could not be coded like:
"gml_ID_alias" "Number" ##### must be i18n
"gml_NAME_alias" "Name" ##### must be i18n
could not be coded like:
"gml_ID_alias_en_US" "Number" ##### must be i18n
"gml_NAME_alias_en_US" "Name" ##### must be i18n
"gml_ID_alias_fr" "...." ##### must be i18n
"gml_NAME_alias_fr" "...." ##### must be i18n
"gml_ID_alias_es" "...." ##### must be i18n
"gml_NAME_alias_es" "...." ##### must be i18n
if someone wanted to make a change to mapserver to support it. I hate
the idea of having multiple mapfiles for the same map. It is a huge cost
to build and maintain and test them if you have to make changes or
update them.
-Steve W
On 10/7/2010 4:06 AM, teeschke wrote:
>
> Hi Michael,
>
> thats a realy good idea for the attributes of the geodata. But what about
>
> LAYER
> NAME 'my_highway_layer'
> TYPE LINE
> DATA "geom from data where lang='%lang%'"
> METADATA
> "ows_title" "highways" ##### must be i18n
> "ows_group_title" "Infrastructure" ##### must be i18n
> "wms_feature_info_mime_type" "text/html"
> "wms_server_version" "1.1.1"
> "wms_format" "image/png"
> "wms_exceptions_format" "application/vnd.ogc.se_xml"
> "gml_featureid" "ID"
> "gml_include_items" "ID,NAME"
> "gml_ID_alias" "Number" ##### must be i18n
> "gml_NAME_alias" "Name" ##### must be i18n
> END #METADATA
> CLASS
> NAME 'good' ##### must be i18n
> COLOR 0 255 0
> END # CLASS
> CLASS
> NAME 'bad' ##### must be i18n
> COLOR 255 0 0
> END #CLASS
> END # LAYER
>
> I think the only solution is to provide one mapfile for each language.
>
> Thanks a lot and regards,
> Daniel
From woodbri at swoodbridge.com Thu Oct 7 06:21:53 2010
From: woodbri at swoodbridge.com (Stephen Woodbridge)
Date: Thu, 07 Oct 2010 09:21:53 -0400
Subject: [mapserver-users] Re: mapserver and i18n
In-Reply-To: <6CC60BF7-98FF-400E-A1CC-DA71E81352EA@osgis.nl>
References:
<4CAD0EE7.2090607@swoodbridge.com>
<6CC60BF7-98FF-400E-A1CC-DA71E81352EA@osgis.nl>
Message-ID: <4CADC971.6060202@swoodbridge.com>
On 10/7/2010 2:30 AM, Bart van den Eijnden wrote:
> Hi Steve,
>
> I did not (mean to) say the client does not send the correct language
> parameter to the server. The client (browser) is in control and will
> request the language needed.
>
> Your e-mail said the client needed to do the actual translation of
> e.g. layer names, and that's where I disagreed.
Bart,
Thanks for clarifying that, now it make more sense in my mind, and I can
agree with that.
I struggled with an experience in Turkey with a public access PC that I
could not for the life of me get the thing to switch over to English.
When I went to google.com it got redirected to a Turkish version of
google. I'm a big believer that sites should have links on them that
make it easy for a non-native reader to find and change the language.
-Steve
From michael.smith at usace.army.mil Thu Oct 7 06:24:18 2010
From: michael.smith at usace.army.mil (Smith, Michael ERDC-CRREL-NH)
Date: Thu, 07 Oct 2010 09:24:18 -0400
Subject: [mapserver-users] Re: mapserver and i18n
In-Reply-To: <4CADC7A7.7020908@swoodbridge.com>
Message-ID:
Would it be better to make then available for variable substitution?
"gml_ID_alias" "%GML_ID_NO%" ##### must be i18n
"gml_NAME_alias" "%GML_NAME_ALIAS%" ##### must be i18n
Mike
--
Michael Smith
US Army Corps of Engineers
Remote Sensing/GIS Center
Hanover, NH
On 10/7/10 9:14 AM, "Stephen Woodbridge" wrote:
> I'm not sure that there is any reason that this:
> could not be coded like:
>
> "gml_ID_alias" "Number" ##### must be i18n
> "gml_NAME_alias" "Name" ##### must be i18n
>
> could not be coded like:
>
> "gml_ID_alias_en_US" "Number" ##### must be i18n
> "gml_NAME_alias_en_US" "Name" ##### must be i18n
> "gml_ID_alias_fr" "...." ##### must be i18n
> "gml_NAME_alias_fr" "...." ##### must be i18n
> "gml_ID_alias_es" "...." ##### must be i18n
> "gml_NAME_alias_es" "...." ##### must be i18n
>
> if someone wanted to make a change to mapserver to support it. I hate
> the idea of having multiple mapfiles for the same map. It is a huge cost
> to build and maintain and test them if you have to make changes or
> update them.
>
> -Steve W
>
> On 10/7/2010 4:06 AM, teeschke wrote:
>>
>> Hi Michael,
>>
>> thats a realy good idea for the attributes of the geodata. But what about
>>
>> LAYER
>> NAME 'my_highway_layer'
>> TYPE LINE
>> DATA "geom from data where lang='%lang%'"
>> METADATA
>> "ows_title" "highways" ##### must be i18n
>> "ows_group_title" "Infrastructure" ##### must be i18n
>> "wms_feature_info_mime_type" "text/html"
>> "wms_server_version" "1.1.1"
>> "wms_format" "image/png"
>> "wms_exceptions_format" "application/vnd.ogc.se_xml"
>> "gml_featureid" "ID"
>> "gml_include_items" "ID,NAME"
>> "gml_ID_alias" "Number" ##### must be i18n
>> "gml_NAME_alias" "Name" ##### must be i18n
>> END #METADATA
>> CLASS
>> NAME 'good' ##### must be i18n
>> COLOR 0 255 0
>> END # CLASS
>> CLASS
>> NAME 'bad' ##### must be i18n
>> COLOR 255 0 0
>> END #CLASS
>> END # LAYER
>>
>> I think the only solution is to provide one mapfile for each language.
>>
>> Thanks a lot and regards,
>> Daniel
>
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
From woodbri at swoodbridge.com Thu Oct 7 06:26:52 2010
From: woodbri at swoodbridge.com (Stephen Woodbridge)
Date: Thu, 07 Oct 2010 09:26:52 -0400
Subject: [mapserver-users] Re: mapserver and i18n
In-Reply-To:
References:
Message-ID: <4CADCA9C.8050806@swoodbridge.com>
On 10/7/2010 9:24 AM, Smith, Michael ERDC-CRREL-NH wrote:
> Would it be better to make then available for variable substitution?
>
> "gml_ID_alias" "%GML_ID_NO%" ##### must be i18n
> "gml_NAME_alias" "%GML_NAME_ALIAS%" ##### must be i18n
I think that what needs to be passed to mapserver is something like
lang=en_US and that is then used to select the appropriate alias. And if
that does not exist then there are appropriate rules for how to handle
it or error out.
-Steve
From daniel.teske at web.de Thu Oct 7 09:04:57 2010
From: daniel.teske at web.de (teeschke)
Date: Thu, 7 Oct 2010 09:04:57 -0700 (PDT)
Subject: [mapserver-users] Re: mapserver and i18n
In-Reply-To: <4CADCA9C.8050806@swoodbridge.com>
References: <4CAC8D59.7010004@gatewaygeomatics.com>
<1286377628379-5607433.post@n2.nabble.com>
<4CACA7DE.500@swoodbridge.com>
<329C71D0-36A1-4CB7-962E-25B17B46FB42@osgis.nl>
<4CACB85E.8040809@swoodbridge.com>
<1286438803290-5610385.post@n2.nabble.com>
<4CADC7A7.7020908@swoodbridge.com>
<4CADCA9C.8050806@swoodbridge.com>
Message-ID: <1286467497319-5611955.post@n2.nabble.com>
> I think that what needs to be passed to mapserver is something like
> lang=en_US and that is then used to select the appropriate alias. And if
> that does not exist then there are appropriate rules for how to handle
> it or error out.
>
> -Steve
I'm also not a friend of the idea to have multiple copys of our ~50 mapfiles
(~each with 1.000- 5.000 lines of configuration) and modify just all
language effected parts - this is a huge rat tail.
processing the lang-parameter is a nice idea
DATA "geom from data where lang='%lang%'" # this could be a solution, but
doesn't looks good when no
lang parameter is defined
LABELITEM "%LANG%HIGHWAY" # this could be a solution
-----------
"gml_ID_alias" "%GML_ID_NO%" would bring to much informations into the
client and the requests are not ogc confirm anymore. furthermore this could
bring trouble with WFS-GetFeature-Requests.
this is much better:
"ows_title" "highways" # default layer title
"ows_title_fr" "..." # france layer title
"ows_group_title" "Infrastructure" # default group name
"ows_group_title_fr" "..." # france group name
"gml_ID_alias" "Number" # default alias
"gml_NAME_alias_fr" '... # france alias
NAME 'good' # default class name
NAME_fr 'good' # france class name (oups, not looking good)
Thanks a lot and regards,
Daniel
--
View this message in context: http://osgeo-org.1803224.n2.nabble.com/mapserver-and-i18n-tp5607348p5611955.html
Sent from the Mapserver - User mailing list archive at Nabble.com.
From wimvanbelle at gmail.com Thu Oct 7 10:19:58 2010
From: wimvanbelle at gmail.com (Wim Vanbelle)
Date: Thu, 7 Oct 2010 19:19:58 +0200
Subject: [mapserver-users] How split single polygon into multiple polygons
In-Reply-To:
References:
Message-ID:
I think the main question here, is what you are trying to achieve?
Do you just want to split them randomly? Evenly into pieces of certain
sizes? Based on other geometries that may or may not overlap?
Best regards,
Wim
On 7 October 2010 14:51, venkat wrote:
> Dear All,
>
> I need to split single polygon into multiple polygons using C#.Any one can
> guide me.I am waiting for your great response.
>
> Thanks and Regards,
>
> Ven
>
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From Jukka.Rahkonen at mmmtike.fi Fri Oct 8 04:16:44 2010
From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka)
Date: Fri, 8 Oct 2010 14:16:44 +0300
Subject: [mapserver-users] FOSS4G presentations
Message-ID:
Hi,
There is a complete list of presentations and posters with abstracts at
http://2010.foss4g.org/presentations.php
However, I can see only a handful of full presentations at
http://presentations.opengeo.org/2010_FOSS4G/
Because of five parellel sessions + tutorials running at the same time I
missed lots of interesting presentations. Is there any hope of getting
access to more presentations in the future?
-Jukka Rahkonen-
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From jmckenna at gatewaygeomatics.com Fri Oct 8 05:16:36 2010
From: jmckenna at gatewaygeomatics.com (Jeff McKenna)
Date: Fri, 08 Oct 2010 09:16:36 -0300
Subject: [mapserver-users] FOSS4G presentations
In-Reply-To:
References:
Message-ID: <4CAF0BA4.4020601@gatewaygeomatics.com>
On 10-10-08 8:16 AM, Rahkonen Jukka wrote:
> Hi,
> There is a complete list of presentations and posters with abstracts at
> http://2010.foss4g.org/presentations.php
> However, I can see only a handful of full presentations at
> http://presentations.opengeo.org/2010_FOSS4G/
> Because of five parellel sessions + tutorials running at the same time I
> missed lots of interesting presentations. Is there any hope of getting
> access to more presentations in the future?
> -Jukka Rahkonen-
Hi Jukka,
The 2010 local committee is working on posting the presentations.
It's probably best that you ask your FOSS4G2010 questions on the 2010
mailing list (join at
http://lists.osgeo.org/mailman/listinfo/foss4g2010) so the local
committee can read your questions. Thanks.
-jeff
--
Jeff McKenna
MapServer Consulting and Training Services
http://www.gatewaygeomatics.com/
From robhyx at gmail.com Fri Oct 8 08:10:03 2010
From: robhyx at gmail.com (Robert Hicks)
Date: Fri, 8 Oct 2010 11:10:03 -0400
Subject: [mapserver-users] WMS Request for a single point?
Message-ID:
Hello all! Ok, this is probably a long shot but, is there a way to
request an image from Mapserver that is just a point? The idea is I
have another larger (reference) map image and I want to place a push
pin on top of it in a specified point. It has to be a WMS call so that
I can take the image and merge it with the other larger map into one
so that it can be put into a PDF. Any help would be appreciated.
Thanks!
--
web http://www.hyxspace.com
aim hyx1138
From Bob.Basques at ci.stpaul.mn.us Fri Oct 8 08:23:05 2010
From: Bob.Basques at ci.stpaul.mn.us (Bob Basques)
Date: Fri, 08 Oct 2010 10:23:05 -0500
Subject: [mapserver-users] WMS Request for a single point?
In-Reply-To:
References:
Message-ID: <4CAEF109.163B.00A8.0@ci.stpaul.mn.us>
There are a couple of ways of doing this, one is to use a Client that supports layer stacking in the interface, like GeoMoose or Openlayers, and call separate images and then combine them printing. You would need to set up the approriate environment for this approach and this might not be cost effective to you.
Another approach is to apply a symbol via a Mapserver served WMS service. You could make the WMS call to a specific service name that has the PushPin inserted into the center of the image (on top of the background layers you specify) and already composited for output into a single image. You would need to call this as a separate WMS call however.
Going back to the Layered approach, you can also set up a marking system in the client where3 the client decide to add the pushpin, and then print from the client, GeoMoose can accomodate this approach as well, but it's a much higher level of implemnentation.
bobb
>>> Robert Hicks wrote:
Hello all! Ok, this is probably a long shot but, is there a way to
request an image from Mapserver that is just a point? The idea is I
have another larger (reference) map image and I want to place a push
pin on top of it in a specified point. It has to be a WMS call so that
I can take the image and merge it with the other larger map into one
so that it can be put into a PDF. Any help would be appreciated.
Thanks!
--
web http://www.hyxspace.com
aim hyx1138
_______________________________________________
mapserver-users mailing list
mapserver-users at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From robhyx at gmail.com Fri Oct 8 08:49:40 2010
From: robhyx at gmail.com (Robert Hicks)
Date: Fri, 8 Oct 2010 11:49:40 -0400
Subject: [mapserver-users] WMS Request for a single point?
In-Reply-To: <4CAEF109.163B.00A8.0@ci.stpaul.mn.us>
References:
<4CAEF109.163B.00A8.0@ci.stpaul.mn.us>
Message-ID:
Thanks Bob, I think the second idea is more for what I am looking at.
The styling (or adding the push pin icon) is already done, I know how
to do that. The bigger issue is requesting the image with the point in
the right location without a backing datastore (or at least one with
the specific point). I suppose I could have a table which I populate
on the fly, but how do I request just that one point from it and not
other points from past requests?
On Fri, Oct 8, 2010 at 11:23 AM, Bob Basques
wrote:
> There are a couple of ways of doing this, one is to use a Client that
> supports layer stacking in the interface, like GeoMoose or Openlayers, and
> call separate images and then combine them printing. ?You would need to set
> up the approriate environment for this approach and this might not be cost
> effective to you.
>
> Another approach is to apply a symbol via a Mapserver served WMS service.
> ?You could make the WMS call to a specific service name that has the PushPin
> inserted into the center of the image (on top of the background layers you
> specify) and already composited for output into a single image. ?You would
> need to call this as a separate WMS call however.
>
> Going back to the Layered approach, you can also set up a marking system in
> the client where3 the client decide to add the pushpin, and then print from
> the client, GeoMoose can accomodate this approach as well, but it's a much
> higher level of implemnentation.
>
> bobb
>
>
>
>>>> Robert Hicks wrote:
>
> Hello all! Ok, this is probably a long shot but, is there a way to
> request an image from Mapserver that is just a point? The idea is I
> have another larger (reference) map image and I want to place a push
> pin on top of it in a specified point. It has to be a WMS call so that
> I can take the image and merge it with the other larger map into one
> so that it can be put into a PDF. Any help would be appreciated.
>
> Thanks!
>
> --
> web http://www.hyxspace.com
> aim hyx1138
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>
--
web http://www.hyxspace.com
aim hyx1138
From thomas.bonfort at gmail.com Fri Oct 8 09:03:41 2010
From: thomas.bonfort at gmail.com (thomas bonfort)
Date: Fri, 8 Oct 2010 18:03:41 +0200
Subject: [mapserver-users] WMS Request for a single point?
In-Reply-To:
References:
Message-ID:
have a look at http://www.mail-archive.com/mapserver-users at lists.umn.edu/msg05881.html
the syntax for cgi commands has changed since then, you'd have to use
something like
&map.layer[site]=feature+points+582248.23+4841497.11+end+end
or &map.layer[site].feature.points=582248.23+4841497.11
(I cant remember what syntax is correct)
--
regards,
thomas
On Fri, Oct 8, 2010 at 17:10, Robert Hicks wrote:
> Hello all! Ok, this is probably a long shot but, is there a way to
> request an image from Mapserver that is just a point? The idea is I
> have another larger (reference) map image and I want to place a push
> pin on top of it in a specified point. It has to be a WMS call so that
> I can take the image and merge it with the other larger map into one
> so that it can be put into a PDF. Any help would be appreciated.
>
> Thanks!
>
> --
> web http://www.hyxspace.com
> aim hyx1138
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>
From robhyx at gmail.com Fri Oct 8 09:04:26 2010
From: robhyx at gmail.com (Robert Hicks)
Date: Fri, 8 Oct 2010 12:04:26 -0400
Subject: [mapserver-users] WMS Request for a single point?
In-Reply-To: <4CAEF998.163B.00A8.0@ci.stpaul.mn.us>
References:
<4CAEF109.163B.00A8.0@ci.stpaul.mn.us>
<4CAEF998.163B.00A8.0@ci.stpaul.mn.us>
Message-ID:
Ah, ok I see what you are saying. Unfortunately it won't always be in
the center, but yes, that would make things much simpler. For instance
the base map is going to be a county or state outline and the point
will be over a single piece of real estate within the county or state.
So the point could really be anywhere.
On Fri, Oct 8, 2010 at 11:59 AM, Bob Basques
wrote:
> If you know you are only going to display one point every time, then just
> set up a WMS service that has a point (pushpin) displayed in the center
> evertime it's called, then you only need to call a separate service to
> display the pushpin, everything else will be the same in the call, assuming
> you are always centering the point called in the image call.
>
> bobb
>
>
>
>>>> Robert Hicks wrote:
>
> Thanks Bob, I think the second idea is more for what I am looking at.
> The styling (or adding the push pin icon) is already done, I know how
> to do that. The bigger issue is requesting the image with the point in
> the right location without a backing datastore (or at least one with
> the specific point). I suppose I could have a table which I populate
> on the fly, but how do I request just that one point from it and not
> other points from past requests?
>
> On Fri, Oct 8, 2010 at 11:23 AM, Bob Basques
> wrote:
>> There are a couple of ways of doing this, one is to use a Client that
>> supports layer stacking in the interface, like GeoMoose or Openlayers, and
>> call separate images and then combine them printing.??You would need to
>> set
>> up the approriate environment for this approach and this might not be cost
>> effective to you.
>>
>> Another approach is to apply a symbol via a Mapserver served WMS service.
>>??You could make the WMS call to a specific service name that has the
>> PushPin
>> inserted into the center of the image (on top of the background layers you
>> specify) and already composited for output into a single image.??You would
>> need to call this as a separate WMS call however.
>>
>> Going back to the Layered approach, you can also set up a marking system
>> in
>> the client where3 the client decide to add the pushpin, and then print
>> from
>> the client, GeoMoose can accomodate this approach as well, but it's a much
>> higher level of implemnentation.
>>
>> bobb
>>
>>
>>
>>>>> Robert Hicks wrote:
>>
>> Hello all! Ok, this is probably a long shot but, is there a way to
>> request an image from Mapserver that is just a point? The idea is I
>> have another larger (reference) map image and I want to place a push
>> pin on top of it in a specified point. It has to be a WMS call so that
>> I can take the image and merge it with the other larger map into one
>> so that it can be put into a PDF. Any help would be appreciated.
>>
>> Thanks!
>>
>> --
>> web http://www.hyxspace.com
>> aim hyx1138
>> _______________________________________________
>> mapserver-users mailing list
>> mapserver-users at lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>>
>
>
>
> --
> web http://www.hyxspace.com
> aim hyx1138
>
--
web http://www.hyxspace.com
aim hyx1138
From robhyx at gmail.com Fri Oct 8 09:06:40 2010
From: robhyx at gmail.com (Robert Hicks)
Date: Fri, 8 Oct 2010 12:06:40 -0400
Subject: [mapserver-users] WMS Request for a single point?
In-Reply-To:
References:
Message-ID:
Ok, that looks extremely promising. I'm going to go ahead and try it
on my local Mapserver.
On Fri, Oct 8, 2010 at 12:03 PM, thomas bonfort
wrote:
> have a look at http://www.mail-archive.com/mapserver-users at lists.umn.edu/msg05881.html
>
> the syntax for cgi commands has changed since then, you'd have to use
> something like
> &map.layer[site]=feature+points+582248.23+4841497.11+end+end
>
> or &map.layer[site].feature.points=582248.23+4841497.11
>
> (I cant remember what syntax is correct)
>
> --
> regards,
> thomas
>
> On Fri, Oct 8, 2010 at 17:10, Robert Hicks wrote:
>> Hello all! Ok, this is probably a long shot but, is there a way to
>> request an image from Mapserver that is just a point? The idea is I
>> have another larger (reference) map image and I want to place a push
>> pin on top of it in a specified point. It has to be a WMS call so that
>> I can take the image and merge it with the other larger map into one
>> so that it can be put into a PDF. Any help would be appreciated.
>>
>> Thanks!
>>
>> --
>> web http://www.hyxspace.com
>> aim hyx1138
>> _______________________________________________
>> mapserver-users mailing list
>> mapserver-users at lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>>
>
--
web http://www.hyxspace.com
aim hyx1138
From thomas.bonfort at gmail.com Fri Oct 8 09:08:13 2010
From: thomas.bonfort at gmail.com (thomas bonfort)
Date: Fri, 8 Oct 2010 18:08:13 +0200
Subject: [mapserver-users] WMS Request for a single point?
In-Reply-To:
References:
Message-ID:
actually, this is documented here:
http://mapserver.org/cgi/controls.html -> Changing map file parameters
via a form or a URL
--
thomas
On Fri, Oct 8, 2010 at 18:06, Robert Hicks wrote:
> Ok, that looks extremely promising. I'm going to go ahead and try it
> on my local Mapserver.
>
> On Fri, Oct 8, 2010 at 12:03 PM, thomas bonfort
> wrote:
>> have a look at http://www.mail-archive.com/mapserver-users at lists.umn.edu/msg05881.html
>>
>> the syntax for cgi commands has changed since then, you'd have to use
>> something like
>> &map.layer[site]=feature+points+582248.23+4841497.11+end+end
>>
>> or &map.layer[site].feature.points=582248.23+4841497.11
>>
>> (I cant remember what syntax is correct)
>>
>> --
>> regards,
>> thomas
>>
>> On Fri, Oct 8, 2010 at 17:10, Robert Hicks wrote:
>>> Hello all! Ok, this is probably a long shot but, is there a way to
>>> request an image from Mapserver that is just a point? The idea is I
>>> have another larger (reference) map image and I want to place a push
>>> pin on top of it in a specified point. It has to be a WMS call so that
>>> I can take the image and merge it with the other larger map into one
>>> so that it can be put into a PDF. Any help would be appreciated.
>>>
>>> Thanks!
>>>
>>> --
>>> web http://www.hyxspace.com
>>> aim hyx1138
>>> _______________________________________________
>>> mapserver-users mailing list
>>> mapserver-users at lists.osgeo.org
>>> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>>>
>>
>
>
>
> --
> web http://www.hyxspace.com
> aim hyx1138
>
From David.Fawcett at state.mn.us Fri Oct 8 09:14:30 2010
From: David.Fawcett at state.mn.us (Fawcett, David (MPCA))
Date: Fri, 8 Oct 2010 11:14:30 -0500
Subject: [mapserver-users] WMS Request for a single point?
In-Reply-To:
References:
Message-ID:
This example works: http://localhost/cgi-bin/mapserv.exe?map=/ms4w/apps/offset.map&mode=map&map_layer[0]=FEATURE+POINTS+270000+696000+END+END
You can access your layer through the layer name or it's (zero-based) index.
The simple example layer is below with a simple circle symbol defined in the map file.
LAYER
NAME 'singlepoint'
TYPE point
STATUS DEFAULT
CLASS
STYLE
COLOR 255 0 0
SIZE 15
symbol "circle"
END
END
END
SYMBOL
NAME "circle"
TYPE ellipse
FILLED true
POINTS
1 1
END
END
-----Original Message-----
From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Robert Hicks
Sent: Friday, October 08, 2010 11:07 AM
To: thomas bonfort
Cc: mapserver-users at lists.osgeo.org
Subject: Re: [mapserver-users] WMS Request for a single point?
Ok, that looks extremely promising. I'm going to go ahead and try it
on my local Mapserver.
On Fri, Oct 8, 2010 at 12:03 PM, thomas bonfort
wrote:
> have a look at http://www.mail-archive.com/mapserver-users at lists.umn.edu/msg05881.html
>
> the syntax for cgi commands has changed since then, you'd have to use
> something like
> &map.layer[site]=feature+points+582248.23+4841497.11+end+end
>
> or &map.layer[site].feature.points=582248.23+4841497.11
>
> (I cant remember what syntax is correct)
>
> --
> regards,
> thomas
>
> On Fri, Oct 8, 2010 at 17:10, Robert Hicks wrote:
>> Hello all! Ok, this is probably a long shot but, is there a way to
>> request an image from Mapserver that is just a point? The idea is I
>> have another larger (reference) map image and I want to place a push
>> pin on top of it in a specified point. It has to be a WMS call so that
>> I can take the image and merge it with the other larger map into one
>> so that it can be put into a PDF. Any help would be appreciated.
>>
>> Thanks!
>>
>> --
>> web http://www.hyxspace.com
>> aim hyx1138
>> _______________________________________________
>> mapserver-users mailing list
>> mapserver-users at lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>>
>
--
web http://www.hyxspace.com
aim hyx1138
_______________________________________________
mapserver-users mailing list
mapserver-users at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users
From robhyx at gmail.com Fri Oct 8 09:40:19 2010
From: robhyx at gmail.com (Robert Hicks)
Date: Fri, 8 Oct 2010 12:40:19 -0400
Subject: [mapserver-users] WMS Request for a single point?
In-Reply-To:
References: