From beyhan at deprem.gov.tr Thu Mar 1 00:55:34 2012
From: beyhan at deprem.gov.tr (Murat Beyhan)
Date: Thu, 01 Mar 2012 10:55:34 +0200
Subject: [mapserver-users] draw line readinf from mysql
In-Reply-To: <1330079909.24113.13.camel@localhost>
References: <1329745925.9395.5.camel@localhost>
<4F4360C402000037000121EA@gate1.asurequality.com>
<1330079909.24113.13.camel@localhost>
Message-ID: <1330592134.7489.6.camel@localhost>
Dear All,
I have solved to read data from virtual data access using ogr and Mysql
but my mapserver gives an error message, Please let me know What I'm
doing wrong.
the map file layer for drawing line as follows
LAYER
NAME sfault1
connectiontype ogr
CONNECTION '
MYSQL:dynamic,user=root,password=mysql_passwd,host=localhost,port=3306,tables=lineview1
select eq_id, geom from lineview1 where eq_id like "%eq_id%"
wkbLineString
eq_id
'
DATA sfault1
STATUS default
TYPE line
CLASS
name "Kaynak Fay1/Source Fault"
SYMBOL "cline"
SIZE 6
COLOR 0 255 255
END
END
ogr vrt can access succesfully
to mysql as follows
[murat at localhost stations]$ ogrinfo -ro -al test.vrt
INFO: Open of `test.vrt'
using driver `VRT' successful.
Layer name: dynamic
Geometry: Line String
Feature Count: 2
Layer SRS WKT:
(unknown)
eq_id: String (42.0)
geom: Real (23.0)
OGRFeature(dynamic):0
eq_id (String) = 20111023101120
geom (Real) = 164
OGRFeature(dynamic):1
eq_id (String) = 20100308023229
geom (Real) = 163
please give me hint What Shall I do
Regards
Murat
On Fri, 2012-02-24 at 12:38 +0200, Murat Beyhan wrote:
> Dear all,
>
> Still could not achieve to draw line using start and stop point line
> data stored in MySql database.
>
> I have tried Mr. Robert's solution but I have faced an error message.
>
>
> in map file
> I changed Geometrytype from wkbline to wkblinestring.
>
> LAYER
> NAME sfault1
> CONNECTIONTYPE OGR
> CONNECTION '
>
> MYSQL:dynamic,user=root,password=mysqlpasswd,host=localhost,port=3306,tables=lineview
> lineview
> wkbLineString
>
> WGS84
> eq_id
>
> '
> DATA sfault1
> STATUS on
> TYPE line
> CLASS
> NAME "Source Fault"
> SYMBOL "cline"
> SIZE 3
> COLOR 0 0 255
> END
> END
>
> in database
> I have two table
> one is store id lat1 lon1 lat2 lon2
> and another is view
> of this table created by following
>
> create view lineview as select eq_id, "LINESTRING(" + lon1 + " " + lat1
> + "," + lon2 + " " + lat2 + ")" as geom from sfault
>
>
> there is an another issue,
> I have to draw line by considering id
> so in the map When I select one id, line should be belong to this id's
> information
> so I have to make a sql statement as follow instead of draw all line
> stored in database I have to draw just one line considering id
>
> something like this select eq_id, geom from lineview where id like '%id
> %'
>
>
> please help about this subject....
>
>
> Regards....
>
>
>
> Murat
>
>
>
> On Tue, 2012-02-21 at 09:15 +1300, Robert Sanson wrote:
> > Hi Murat
> >
> > Is it possible for you to create a view from the columns that presents the data as a WKT line feature:
> >
> > create view lineview as select id, "LINESTRING(" + lon1 + " " + lat1 + "," + lon2 + " " + lat2 + ")" as geom from mytable
> >
> > Then set up your OGR ovf file representing this view:
> >
> >
> >
> > ODBC:user/passwd at DSN
> > lineview
> > wkbLine
> > EPSG:2193
> >
> > id
> >
> >
> >
> > Best wishes,
> >
> > Robert
> >
> > >>> Murat Beyhan 21/02/2012 2:52 a.m. >>>
> > Dear friend,
> >
> > I'm trying to draw a line using MySql database
> > the table in database as follows,
> >
> > id lat1 lon1 lat2 lon2
> > 20100308023229 40.1113 38.7901 40.0311 38.7428
> >
> > actually using ogr connection I can draw point using ogr and mysql, but
> > How can I draw line using such database table, please help me and give
> > the idea...
> >
> > Thanks
> >
> > Murat
> > --
> > Murat BEYHAN
> > Geophysical Engineer, M.Sc.
> > Prime Ministry
> > Disaster and Emergency Management Presidency
> > Earthquake Department
> > Address: Eskisehir Yolu 12. Km.
> > Lodumlu/ANKARA
> > Tel: 312 2872680-1556
> > email:beyhan at deprem.gov.tr
> >
> >
> >
> > --
> > This message has been scanned for viruses and
> > dangerous content by MailScanner, and is
> > believed to be clean.
> >
> > _______________________________________________
> > mapserver-users mailing list
> > mapserver-users at lists.osgeo.org
> > http://lists.osgeo.org/mailman/listinfo/mapserver-users
> >
> >
> >
> > This email and any attachments are confidential and intended solely for the addressee(s). If you are not the intended recipient, please notify us immediately and then delete this email from your system.
> >
> > This message has been scanned for Malware and Viruses by Websense Hosted Security.
> > www.websense.com
> >
>
>
>
> Murat BEYHAN
>
> Jeofizik Y.M?h.
> T.C. Ba?bakanl?k
> Afet ve Acil Durum Y?netimi Ba?kanl???
> Deprem Dairesi Ba?kanl???
> Eski?ehir Yolu 12. Km.
> Lodumlu/ANKARA
> Tel: 312 2872680-1556
> email:beyhan at deprem.gov.tr
>
>
>
>
Murat BEYHAN
Jeofizik Y.M?h.
T.C. Ba?bakanl?k
Afet ve Acil Durum Y?netimi Ba?kanl???
Deprem Dairesi Ba?kanl???
Eski?ehir Yolu 12. Km.
Lodumlu/ANKARA
Tel: 312 2872680-1556
email:beyhan at deprem.gov.tr
--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
From Michael.Smith at usace.army.mil Thu Mar 1 03:59:43 2012
From: Michael.Smith at usace.army.mil (Smith, Michael ERDC-CRREL-NH)
Date: Thu, 1 Mar 2012 11:59:43 +0000
Subject: [mapserver-users] Re: Oracle Locator support
In-Reply-To: <1330577133665-4533743.post@n6.nabble.com>
Message-ID:
MapServer works fine with Oracle Locator and doesn't use any Oracle
Spatial licensed functions.
Mike
--
Michael Smith
US Army Corps
Remote Sensing GIS/Center
On 2/29/12 10:45 PM, "bteluk at gmail.com" wrote:
>Hi Michael,
>Thanks, but I only want to know at this stage whether MapServer is written
>for Oracle Spatial only, or whether it can support Locator.
>
>I'm guessing from reading Oracle's documentation that since
>SDO.GEOM.INTERSECTS and SDO.GEOM.RELATE aren't supported, that MapServer
>probably doesn't support Locator. However, how do I know that MapServer
>doesn't use the SQL/MM functions instead - which are apparently supported.
>
>Is there no easy way other than to test every possible variant of
>MapServer
>usage against a test Locator installation?
>
>Regards, Bill Teluk.
>
>--
>View this message in context:
>http://osgeo-org.1560.n6.nabble.com/Oracle-Locator-support-tp4519962p45337
>43.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 rhow at i3.com Thu Mar 1 08:55:21 2012
From: rhow at i3.com (Randy How)
Date: Thu, 1 Mar 2012 09:55:21 -0700
Subject: [mapserver-users] WFS version and axis order
Message-ID:
I need a second option so I can respond to a customer regarding their
concerns of using our WFS services. Their concern is mainly confidence and
the ability of moving forward. As you know in the WFS version 1.1 the axis
order switched.
These are their assumptions:
* WFS v 1.0 will serve data in lon, lat order
* WFS v 1.1 can serve data in lon, lat and lat, lon as well
MapServer-Users, Is there way in WFS v1.1 to maintain the lon,lat order for
every projection, client request parameter or server configuration?
* We need a way to clearly define how to build BBOX for request (lat,lon or
lon,lat) and in what order will be the response ? I think that order should
be consistent for request and response.
MapServer-Users, the last bullet refers to the relationship between BBOX
and the WFS versions. Please confirm BBOX will always be of the contruct:
minx,miny,maxx,maxy
Thanks in advance,
Randy
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From Jukka.Rahkonen at mmmtike.fi Thu Mar 1 09:34:37 2012
From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka)
Date: Thu, 1 Mar 2012 17:34:37 +0000
Subject: [mapserver-users] WFS version and axis order
In-Reply-To:
References:
Message-ID: <84446DEF76453C439E9E97E438E13A630826E9@suutari.haapa.mmm.fi>
Hi,
Unfortunately axis order in WFS 1.1.0 (or in GML3) is complicated.
> I need a second option so I can respond to a customer regarding their concerns of using our > WFS services. Their concern is mainly confidence and the ability of moving forward. As you > know in the WFS version 1.1 the axis order switched.
Too genaralised to say so. There are systems which have officially easting-northing axis order, like WGS84 UTM zones, and for them WFS 1.0.0 and 1.1.0 must behave similarly.
> These are their assumptions:
> * WFS v 1.0 will serve data in lon, lat order
> * WFS v 1.1 can serve data in lon, lat and lat, lon as well
The meaning of the standard is "No", each projection has one fixed, official and correct axis order. In real life WFS 1.1.0 servers may behave differently. For example Geoserver, TinyOWS and probably deegree are using the WFS 1.0.0 style axis order if srsName is given in short format EPSG:4326. When using long format srsname=urn:ogc:def:crs:EPSG::4326 servers are trying to use the correct order.
> MapServer-Users, Is there way in WFS v1.1 to maintain the lon,lat order for every projection, client request parameter or server configuration?
I think that if you ask for GML2 outputformat then the response should be lon-lat (easting-northing) always.
> * We need a way to clearly define how to build BBOX for request (lat,lon or lon,lat) and in what order will be the response ? I think that > order should be consistent for request and response.
> MapServer-Users, the last bullet refers to the relationship between BBOX and the WFS versions. > Please confirm BBOX will always be of the contruct: minx,miny,maxx,maxy
Yes, but the meaning of x and y varies :) Order in BBOX axis follows the official definition of the projection. In addition, according to the WFS 1.1.0 standard BBOX=minx,miny,maxx,maxy defaults to EPSG:4326 projection and not to the default output projection. For being unambiguous for all WFS servers with WFS 1.1.0 the BBOX should be given with five parameters where the last one defines the projection of BBOX. However, not all WFS servers honour these rules or even understand the fifth BBOX parameter. It gets a bit more complicated when OGC Filters are used instead of Key-Value pair BBOX because then the BBOX defaults to the default output projection. Better to give the exact srsName always with Filters too.
> Thanks in advance,
I promise you and your clients will get mad with this.
-Jukka Rahkonen-
> Randy
From armin.burger at gmx.net Thu Mar 1 11:25:21 2012
From: armin.burger at gmx.net (Armin Burger)
Date: Thu, 01 Mar 2012 20:25:21 +0100
Subject: [mapserver-users] WFS version and axis order
In-Reply-To: <84446DEF76453C439E9E97E438E13A630826E9@suutari.haapa.mmm.fi>
References:
<84446DEF76453C439E9E97E438E13A630826E9@suutari.haapa.mmm.fi>
Message-ID: <4F4FCD21.2070904@gmx.net>
On 01/03/2012 18:34, Rahkonen Jukka wrote:
> Hi,
>
> Unfortunately axis order in WFS 1.1.0 (or in GML3) is complicated.
>
>
>> I need a second option so I can respond to a customer regarding their concerns of using our> WFS services. Their concern is mainly confidence and the ability of moving forward. As you> know in the WFS version 1.1 the axis order switched.
>
> Too genaralised to say so. There are systems which have officially easting-northing axis order, like WGS84 UTM zones, and for them WFS 1.0.0 and 1.1.0 must behave similarly.
just in case anybody needs a list of EPSG codes with the swapped axis
orders: the Mapserver source code has a file named 'mapaxisorder.csv'
with all codes that are supposed to have x/y axes inverted. I guess this
is the same for WMS 1.3.0 and WFS 1.1.0
You can directly get the single file via
http://trac.osgeo.org/mapserver/export/13191/trunk/mapserver/mapaxisorder.csv
armin
From donald.kerr at dkerr.co.uk Thu Mar 1 14:49:21 2012
From: donald.kerr at dkerr.co.uk (Donald Kerr)
Date: Thu, 1 Mar 2012 22:49:21 -0000
Subject: [mapserver-users] Mapserver WFS - ODBC RDBMS - GEOMETRY_COLUMNS and
SPATIAL_REF_SYS Tables
Message-ID: <0EA5AF7EAFA3400CB2F9A2D37B29DB17@DELLM4500>
Hi List,
I have a point layer set up for WFS requests that connects to a Microsoft
Access database with two tables structured as follows:
Table: GEOMETRY_COLUMNS
Fields:
F_TABLE_NAME
F_GEOMETRY_COLUMN
GEOMETRY_TYPE
SRID
Values:
MyData
geom
POINT
27700
Table: MyData (Contains about 8,000 records)
Fields:
UniqueID
NameStr
Geom
XMIN
YMIN
XMAX
YMAX
Values:
1
Smiths
POINT(265377 665516)
265377
665516
265377
665516
In my layer, I have:
CONNECTIONTYPE OGR
CONNECTION "ODBC:overlays,FullOIs(geom)"
DATA "FullOIs"
A GetFeature request works well and quite speedily so I think that the the
query is run against the database is using the XMIN, YMIN, XMAX and YMAX
columns to restrict the data returned. During debugging, the following query
appeared in the response as recorded by Firebug in Firefox but I can't
replicate that (if anyone can tell me how to confirm that the BBox is being
used as follows that would be appreciated):
SELECT * FROM MyData WHERE XMAX > 176077.07205091 AND XMIN < 340988.92794909
AND YMAX > 583498.46091313 AND YMIN < 748311.53908687
The problem that I have relates to the GEOMETRY_COLUMNS table which I know
is not being used.
If I remove the geometry column from the connection string, i.e. change
CONNECTION "ODBC:overlays,FullOIs(geom)" to CONNECTION
"ODBC:overlays,FullOIs" - remove the word "(geom), it does not find the
geometry column from the GEOMETRY_COLUMNS table. It would appear that this
table is being completely ignored.
I have tried all sorts of combinations and field names and have also created
a SPATIAL_REF_SYS table with values that I use in a working PostGIS database
to no avail.
I previously used an OVF file but I think that may be limited to point
layers whereas, when I get this working as I want to, I would like to extend
this type of connection to line and polygon layers.
Can anyone advise please?
Many thanks.
Regards,
Donald
From bteluk at gmail.com Thu Mar 1 15:31:15 2012
From: bteluk at gmail.com (bteluk at gmail.com)
Date: Thu, 1 Mar 2012 15:31:15 -0800 (PST)
Subject: [mapserver-users] Re: Oracle Locator support
In-Reply-To:
References: <1330408901636-4519962.post@n6.nabble.com>
<1330577133665-4533743.post@n6.nabble.com>
Message-ID: <1330644675264-4537982.post@n6.nabble.com>
Thanks Michael!
--
View this message in context: http://osgeo-org.1560.n6.nabble.com/Oracle-Locator-support-tp4519962p4537982.html
Sent from the Mapserver - User mailing list archive at Nabble.com.
From Robert.Sanson at asurequality.com Thu Mar 1 16:57:54 2012
From: Robert.Sanson at asurequality.com (Robert Sanson)
Date: Fri, 02 Mar 2012 13:57:54 +1300
Subject: [mapserver-users] Mapserver WFS - ODBC RDBMS -
GEOMETRY_COLUMNS and SPATIAL_REF_SYS Tables
Message-ID: <4F50D26902000037000123A2@gate1.asurequality.com>
OVF files can link to point, line and polygon data in WKT format. Just specify wkbPoint, wkbLinestring, wkbPolygon see:
http://www.gdal.org/ogr/drv_vrt.html
Regards,
Robert
>>> "Donald Kerr" 03/02/12 11:54 AM >>>
Hi List,
I have a point layer set up for WFS requests that connects to a Microsoft
Access database with two tables structured as follows:
Table: GEOMETRY_COLUMNS
Fields:
F_TABLE_NAME
F_GEOMETRY_COLUMN
GEOMETRY_TYPE
SRID
Values:
MyData
geom
POINT
27700
Table: MyData (Contains about 8,000 records)
Fields:
UniqueID
NameStr
Geom
XMIN
YMIN
XMAX
YMAX
Values:
1
Smiths
POINT(265377 665516)
265377
665516
265377
665516
In my layer, I have:
CONNECTIONTYPE OGR
CONNECTION "ODBC:overlays,FullOIs(geom)"
DATA "FullOIs"
A GetFeature request works well and quite speedily so I think that the the
query is run against the database is using the XMIN, YMIN, XMAX and YMAX
columns to restrict the data returned. During debugging, the following query
appeared in the response as recorded by Firebug in Firefox but I can't
replicate that (if anyone can tell me how to confirm that the BBox is being
used as follows that would be appreciated):
SELECT * FROM MyData WHERE XMAX > 176077.07205091 AND XMIN < 340988.92794909
AND YMAX > 583498.46091313 AND YMIN < 748311.53908687
The problem that I have relates to the GEOMETRY_COLUMNS table which I know
is not being used.
If I remove the geometry column from the connection string, i.e. change
CONNECTION "ODBC:overlays,FullOIs(geom)" to CONNECTION
"ODBC:overlays,FullOIs" - remove the word "(geom), it does not find the
geometry column from the GEOMETRY_COLUMNS table. It would appear that this
table is being completely ignored.
I have tried all sorts of combinations and field names and have also created
a SPATIAL_REF_SYS table with values that I use in a working PostGIS database
to no avail.
I previously used an OVF file but I think that may be limited to point
layers whereas, when I get this working as I want to, I would like to extend
this type of connection to line and polygon layers.
Can anyone advise please?
Many thanks.
Regards,
Donald
_______________________________________________
mapserver-users mailing list
mapserver-users at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users
This email and any attachments are confidential and intended solely for the addressee(s). If you are not the intended recipient, please notify us immediately and then delete this email from your system.
This message has been scanned for Malware and Viruses by Websense Hosted Security.
www.websense.com
From scolas at gmail.com Thu Mar 1 22:21:37 2012
From: scolas at gmail.com (Dott. Scolavino Alessandro)
Date: Fri, 02 Mar 2012 07:21:37 +0100
Subject: [mapserver-users] dgn layer over map
Message-ID: <4F5066F1.20503@gmail.com>
Hello,
i need to add layer from multiple dgn file (with utm coordinates) to a
map and display on a web site.
Which is the best (and simplest since i have no experience) way to
archive this?
I mean, are there any tools that directly import the dgn (i tryed qgis
but it get wrong coordinates even trying different SR) into a map file
or a shape file or anything usable with openstreetmap or openlayer or so on?
Thanx for any suggestion!
Alessandro
--
- --
Ai sensi del DL 196/2003 si precisa che le informazioni contenute in questo
messaggio sono riservate ed a uso esclusivo del destinatario. Qualora il
messaggio in parola Le fosse pervenuto per errore, la Preghiamo di
eliminarlo senza copiarlo e di non inoltrarlo a terzi, dandocene gentilmente
comunicazione. Grazie.
Cordiali saluti
- ---- Dott. Alessandro Scolavino ----
- ---- http://www.webair.it ----
- ---- http://www.clerk.it ----
From pfreimuth at arcor.de Thu Mar 1 22:30:41 2012
From: pfreimuth at arcor.de (Peter Freimuth)
Date: Fri, 02 Mar 2012 07:30:41 +0100
Subject: [mapserver-users] which jp2000 is the best for rgb images
Message-ID: <4F506911.1050104@arcor.de>
Hi Mapserver Community,
which jp2000 lib is the best (good compression and fast when decoded)
when used by gdal / mapserver to stream rgb satellite data via a WMS. I
have 16TB of satellite data that shall go into a fast WMS. JP2000 seems
to be an interesting format to store the data on the storage system.
Kind regards,
Peter
--
From kai.behncke at fossgis.de Thu Mar 1 22:53:34 2012
From: kai.behncke at fossgis.de (kai.behncke at fossgis.de)
Date: Fri, 02 Mar 2012 07:53:34 +0100
Subject: [mapserver-users] Noch 18 Tage: Die FOSSGIS-Konferenz naht
Message-ID: <3e9aaacaa0ff4a1fe1e947d9b237b6ad@fossgis.de>
Sehr geehrte Damen und Herren,
Neuigkeiten und Hintergr?nde zu Technologien des Geo-Webs /
GIS-Applikationen mit Freier Software und Freien Daten werden dieses
Jahr auf der FOSSGIS 2012 pr?sentiert. Die FOSSGIS und deutschsprachige
Open Street Map Konferenz 2012 ? die gr??te deutschsprachige
Anwenderkonferenz f?r Freie Geo-Informationssysteme und freie Geodaten ?
findet vom 20. bis 22. M?rz 2012 an der Hochschule Anhalt in
Dessau-Ro?lau statt.
Der Themenbogen spannt sich von der Datenaufbereitung in OpenStreetMap
?ber Geodateninfrastrukturen bishin zu Technologien zur Prozessierung
von umfangreichen Geodaten und spiegelt damit den Trend der steigenden
Durchdringung des Internets mit Karten und Geodaten wider.
In mehr als 60 Vortr?gen f?r Einsteiger und Experten, Hands-On
Workshops und Anwendertreffen erhalten die Besucher Einblick in aktuelle
Anwendungsm?glichkeiten und Neuigkeiten von Softwareprojekten, die
derartige Anwendungen erm?glichen. ?ber die gleichzeitig stattfindende
Firmenausstellung ist ein direkter Kontakt zu Dienstleistern, die
professionelle Unterst?tzung bieten, m?glich.
Zus?tzlich zum fachlich orientieren Austausch in Community-Sessions und
Entwicklertreffen findet ein Social-Event statt, um den Austausch aller
Beteiligten - vom Benutzer ?ber Entwickler und Mapper bis zum
Entscheider - zu intensivieren, um gegenseitig von Ideen und
Herausforderungen zu lernen.
Die Konferenzgeb?hr betr?gt f?r die gesamten drei Konferenztage 120,-
?. Auch in diesem Jahr k?nnen wieder zahlreiche Workshops besucht werden
f?r die eine Teilnahmegeb?hr von 100,- ? je Teilnehmer und Workshop
erhoben wird. Workshop-Teilnehmer erhalten eine Teilnahmebest?tigung f?r
die besuchten Workshops. Die Einnahmen gehen wie auch in den Jahren
zuvor vollst?ndig in die Finanzierung der Konferenz ein.
Da mehr als 400 Teilnehmende erwartet werden, ist eine Registrierung
bis zum 16. M?rz 2012 notwendig. Das Anmeldeformular und andere
organisatorische Informationen befinden sich auf der Konferenzseite
http://www.fossgis.de/konferenz/2012/.
Die FOSSGIS Konferenz 2012 wird vom gemeinn?tzigen Verein FOSSGIS e.V,
der deutschen OpenStreetMap Community und der Open Source Geospatial
Foundation (OSGeo) in Zusammenarbeit mit der Hochschule Anhalt in Dessau
durchgef?hrt.
Weitere Informationen:
Zur Konferenz: http://www.fossgis.de/konferenz/2012/
Zu den Veranstaltern:
FOSSGIS e.V. http://www.fossgis.de
OSGeo Foundation
http://www.osgeo.org/switchuilocale/de?destination=home
Deutschsprachige OSM Community http://www.openstreetmap.de
Hochschule Anhalt in Dessau http://www.hs-anhalt.de/
i.A. des FOSSGIS-Teams, Dr. Kai Behncke
From donald.kerr at dkerr.co.uk Thu Mar 1 23:34:08 2012
From: donald.kerr at dkerr.co.uk (Donald Kerr)
Date: Fri, 2 Mar 2012 07:34:08 -0000
Subject: [mapserver-users] Mapserver WFS - ODBC RDBMS - GEOMETRY_COLUMNS
and SPATIAL_REF_SYS Tables
In-Reply-To: <4F50D26902000037000123A2@gate1.asurequality.com>
Message-ID: <26819D5B4C7446ABBBEE2AF97AA36C70@DELLM4500>
Robert,
I wasn't aware of that so thanks for pointing it out - I had read somewhere
that this method was limited to point layers only.
The problem I can see with this method is (from the notes) "When the
GeometryField is "WKT" spatial filtering is applied after extracting all
rows from the source datasource. Essentially that means there is no fast
spatial filtering on WKT derived geometries."
I need the query to use the BBox on the data to limit the records returned
at the data access stage rather than after the whole recordset is returned.
I would prefer the direct access method that uses the BBox values in the
query for that reason. I also want to get the GEOMETRY_COLUMNS table working
as is described in the docs: http://www.gdal.org/ogr/drv_odbc.html.
Many thanks.
Regards,
Donald
-----Original Message-----
From: Robert Sanson [mailto:Robert.Sanson at asurequality.com]
Sent: 02 March 2012 00:58
To: donald.kerr at dkerr.co.uk; mapserver-users at lists.osgeo.org
Subject: Re: [mapserver-users] Mapserver WFS - ODBC RDBMS - GEOMETRY_COLUMNS
and SPATIAL_REF_SYS Tables
OVF files can link to point, line and polygon data in WKT format. Just
specify wkbPoint, wkbLinestring, wkbPolygon see:
http://www.gdal.org/ogr/drv_vrt.html
Regards,
Robert
>>> "Donald Kerr" 03/02/12 11:54 AM >>>
Hi List,
I have a point layer set up for WFS requests that connects to a Microsoft
Access database with two tables structured as follows:
Table: GEOMETRY_COLUMNS
Fields:
F_TABLE_NAME
F_GEOMETRY_COLUMN
GEOMETRY_TYPE
SRID
Values:
MyData
geom
POINT
27700
Table: MyData (Contains about 8,000 records)
Fields:
UniqueID
NameStr
Geom
XMIN
YMIN
XMAX
YMAX
Values:
1
Smiths
POINT(265377 665516)
265377
665516
265377
665516
In my layer, I have:
CONNECTIONTYPE OGR
CONNECTION "ODBC:overlays,FullOIs(geom)"
DATA "FullOIs"
A GetFeature request works well and quite speedily so I think that the the
query is run against the database is using the XMIN, YMIN, XMAX and YMAX
columns to restrict the data returned. During debugging, the following query
appeared in the response as recorded by Firebug in Firefox but I can't
replicate that (if anyone can tell me how to confirm that the BBox is being
used as follows that would be appreciated):
SELECT * FROM MyData WHERE XMAX > 176077.07205091 AND XMIN < 340988.92794909
AND YMAX > 583498.46091313 AND YMIN < 748311.53908687
The problem that I have relates to the GEOMETRY_COLUMNS table which I know
is not being used.
If I remove the geometry column from the connection string, i.e. change
CONNECTION "ODBC:overlays,FullOIs(geom)" to CONNECTION
"ODBC:overlays,FullOIs" - remove the word "(geom), it does not find the
geometry column from the GEOMETRY_COLUMNS table. It would appear that this
table is being completely ignored.
I have tried all sorts of combinations and field names and have also created
a SPATIAL_REF_SYS table with values that I use in a working PostGIS database
to no avail.
I previously used an OVF file but I think that may be limited to point
layers whereas, when I get this working as I want to, I would like to extend
this type of connection to line and polygon layers.
Can anyone advise please?
Many thanks.
Regards,
Donald
From jajalinux at gmail.com Fri Mar 2 01:40:03 2012
From: jajalinux at gmail.com (gabriel munteanu)
Date: Fri, 2 Mar 2012 09:40:03 +0000
Subject: [mapserver-users] street name at the start and end of street
geometry
Message-ID:
Hi,
right now i have this code
LABELITEM gfname
CLASS
TEXT '[gfname]'
LABEL
COLOR 255 3 3
OUTLINECOLOR 255 255 255
FONT "arial"
TYPE truetype
SIZE 8
ANTIALIAS TRUE
POSITION LR
PARTIALS FALSE
ANGLE FOLLOW
END
STYLE
OPACITY 100
COLOR 186 186 186
WIDTH 10
LINECAP round
LINEJOIN round
LINEJOINMAXSIZE 33
END
STYLE
OPACITY 90
COLOR 254 254 254
WIDTH 8
END
END
the problem i have is that the label doesn't stick to the extremities
of the line and for different zoom levels it goes more to the middle
of the line.
is there a setting that forces a label to stick to the begging and to
the end of the line?
thanks in advance,
cheers,
Gabi
From arnd.wippermann at web.de Fri Mar 2 09:08:46 2012
From: arnd.wippermann at web.de (Arnd Wippermann)
Date: Fri, 2 Mar 2012 18:08:46 +0100
Subject: AW: [mapserver-users] Mapserver WFS - ODBC RDBMS - GEOMETRY_COLUMNS
andSPATIAL_REF_SYS Tables
In-Reply-To: <0EA5AF7EAFA3400CB2F9A2D37B29DB17@DELLM4500>
References: <0EA5AF7EAFA3400CB2F9A2D37B29DB17@DELLM4500>
Message-ID: <06A382BFD46C45CBBFECBE50A09ECF23@pcawh2>
Hi,
It seems, that the table GEOMETRY_COLUMNS is not used,
if the geometry column is declared like
CONNECTION 'ODBC:GEO,GEOPOINTS(theGeom)'
Omitting the geometry column
CONNECTION 'ODBC:GEO,GEOPOINTS'
and renaming the table GEOMETRY_COLUMNS in the MDB,
gets a different response for MapServer 5.6.1 and 6.0.1.
MapServer 5.6.1 raises an error
OGR error. Pointer 'hGeom' is NULL in 'OGR_G_GetGeometryType'.
MapServer 6.0.1 loops through all features
Rejecting feature (shapeid = 511, tileid=0) of incompatible type for this
layer
and returns an empty result
To get the MapServer request use DEBUG in the mapfile
CONFIG "MS_ERRORFILE" "GEOPOINTS.log"
DEBUG 5 #on map and layer level
Then you should get a likewise entry
[Fri Mar 02 17:20:31 2012].156000 msOGRFileWhichShapes: Setting spatial
filter to 2577984.190625 5679829.870625 2579058.409375 5680904.089375
Funny thing with MapServer 6.0.x
spatial filter used to request the features in the logfile
is much larger (5843.071787m on every side) than the BBOX
from the request, what results also in a larger feature set.
MapServer 5.6.1 uses a spatial filter the same
as the BBOX from the request and the response shows
only features for this extent.
Arnd
-----Urspr?ngliche Nachricht-----
Von: mapserver-users-bounces at lists.osgeo.org
[mailto:mapserver-users-bounces at lists.osgeo.org] Im Auftrag von Donald Kerr
Gesendet: Donnerstag, 1. M?rz 2012 23:49
An: mapserver-users at lists.osgeo.org
Betreff: [mapserver-users] Mapserver WFS - ODBC RDBMS - GEOMETRY_COLUMNS
andSPATIAL_REF_SYS Tables
Hi List,
I have a point layer set up for WFS requests that connects to a Microsoft
Access database with two tables structured as follows:
Table: GEOMETRY_COLUMNS
Fields:
F_TABLE_NAME
F_GEOMETRY_COLUMN
GEOMETRY_TYPE
SRID
Values:
MyData
geom
POINT
27700
Table: MyData (Contains about 8,000 records)
Fields:
UniqueID
NameStr
Geom
XMIN
YMIN
XMAX
YMAX
Values:
1
Smiths
POINT(265377 665516)
265377
665516
265377
665516
In my layer, I have:
CONNECTIONTYPE OGR
CONNECTION "ODBC:overlays,FullOIs(geom)"
DATA "FullOIs"
A GetFeature request works well and quite speedily so I think that the the
query is run against the database is using the XMIN, YMIN, XMAX and YMAX
columns to restrict the data returned. During debugging, the following query
appeared in the response as recorded by Firebug in Firefox but I can't
replicate that (if anyone can tell me how to confirm that the BBox is being
used as follows that would be appreciated):
SELECT * FROM MyData WHERE XMAX > 176077.07205091 AND XMIN < 340988.92794909
AND YMAX > 583498.46091313 AND YMIN < 748311.53908687
The problem that I have relates to the GEOMETRY_COLUMNS table which I know
is not being used.
If I remove the geometry column from the connection string, i.e. change
CONNECTION "ODBC:overlays,FullOIs(geom)" to CONNECTION
"ODBC:overlays,FullOIs" - remove the word "(geom), it does not find the
geometry column from the GEOMETRY_COLUMNS table. It would appear that this
table is being completely ignored.
I have tried all sorts of combinations and field names and have also created
a SPATIAL_REF_SYS table with values that I use in a working PostGIS database
to no avail.
I previously used an OVF file but I think that may be limited to point
layers whereas, when I get this working as I want to, I would like to extend
this type of connection to line and polygon layers.
Can anyone advise please?
Many thanks.
Regards,
Donald
_______________________________________________
mapserver-users mailing list
mapserver-users at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users
From donald.kerr at dkerr.co.uk Fri Mar 2 10:55:23 2012
From: donald.kerr at dkerr.co.uk (Donald Kerr)
Date: Fri, 2 Mar 2012 18:55:23 -0000
Subject: [mapserver-users] Mapserver WFS - ODBC RDBMS - GEOMETRY_COLUMNS
andSPATIAL_REF_SYS Tables
In-Reply-To: <06A382BFD46C45CBBFECBE50A09ECF23@pcawh2>
Message-ID: <720EE0A964084B7589BC73B52235897A@DELLM4500>
Arnd,
I haven't been testing on 5.6.1 but have finally got around to upgrading to
6.0.2 where I noticed some issues with a point layer WFS using ovf files to
connect to a Microsoft Access database. I too noticed the spatial filter
being much larger than that requested which is the reason why I started
looking at connecting in a different way. No matter what I did, all 8,000
records in my database were returned. I have tested both connection types
again and the logs show that the correct spacial filter is being applied. I
was tearing my hair out with this one but I know how I sorted it: That
particular layer had "TOLERANCE 20". I changed that to "TOLERANCE 0" and the
correct spacial filter was applied:
"TOLERANCE 0" - "Setting spatial filter to 258416.000000 665829.000000
258665.000000 666035.000000"
"TOLERANCE 20" - "Setting spatial filter to 176141.752508 583554.752508
340939.247492 748309.247492"
Changing the "TOLERANCE" affects the spatial filter as expected but ...
I have "TOLERANCEUNITS pixels" so the difference in the two spacial filters
above should be minimal. The actual difference is 82275 metres (51 miles or
44 nautical miles approx) added on both the x and y axis.
TOLERANCE UNITS can be
[pixels|feet|inches|kilometers|meters|miles|nauticalmiles|dd]
"feet" works approximately
"inches" works pretty accurately
"kilometers" accurately
"meters" works accurately
"miles" works accurately
I never checked "nauticalmiles" or "dd" (don't know what that is!)
Could this be a Mapserver bug with "pixels"?
Anyway, back to the subject ...
You wrote:
-------
Omitting the geometry column
CONNECTION 'ODBC:GEO,GEOPOINTS'
and renaming the table GEOMETRY_COLUMNS in the MDB,
-------
I'm not clear on whether or not you had the GEOMETRY_COLUMNS table working
prior to you renaming it. If you have an access database with a working
GEOMETRY_COLUMNS table then I would be very grateful if you could detail the
structure for me. I have never had this working in 6.0.2 and I have never
used this type of connection with previous versions. That's the reason why I
am not sure if it's something I'm doing or maybe a buggy bit of code in
either Mapserver or GDAL ODBC RDBMS.
There's another issue with this type of connection: If I create indexes on
the XMIN, YMIN, XMAX, YMAX columns, as would be reasonable given that
they're being searched, I get an empty response as follows but no error in
the error log other than "Returning MS_DONE (no more shapes)":
missing
Many thanks.
Regards,
Donald
-----Original Message-----
From: Arnd Wippermann [mailto:arnd.wippermann at web.de]
Sent: 02 March 2012 17:09
To: 'Donald Kerr'
Cc: mapserver-users at lists.osgeo.org
Subject: AW: [mapserver-users] Mapserver WFS - ODBC RDBMS - GEOMETRY_COLUMNS
andSPATIAL_REF_SYS Tables
Hi,
It seems, that the table GEOMETRY_COLUMNS is not used,
if the geometry column is declared like
CONNECTION 'ODBC:GEO,GEOPOINTS(theGeom)'
Omitting the geometry column
CONNECTION 'ODBC:GEO,GEOPOINTS'
and renaming the table GEOMETRY_COLUMNS in the MDB,
gets a different response for MapServer 5.6.1 and 6.0.1.
MapServer 5.6.1 raises an error
OGR error. Pointer 'hGeom' is NULL in 'OGR_G_GetGeometryType'.
MapServer 6.0.1 loops through all features
Rejecting feature (shapeid = 511, tileid=0) of incompatible type for this
layer and returns an empty result
To get the MapServer request use DEBUG in the mapfile
CONFIG "MS_ERRORFILE" "GEOPOINTS.log"
DEBUG 5 #on map and layer level
Then you should get a likewise entry
[Fri Mar 02 17:20:31 2012].156000 msOGRFileWhichShapes: Setting spatial
filter to 2577984.190625 5679829.870625 2579058.409375 5680904.089375
Funny thing with MapServer 6.0.x
spatial filter used to request the features in the logfile
is much larger (5843.071787m on every side) than the BBOX
from the request, what results also in a larger feature set.
MapServer 5.6.1 uses a spatial filter the same
as the BBOX from the request and the response shows
only features for this extent.
Arnd
-----Urspr?ngliche Nachricht-----
Von: mapserver-users-bounces at lists.osgeo.org
[mailto:mapserver-users-bounces at lists.osgeo.org] Im Auftrag von Donald Kerr
Gesendet: Donnerstag, 1. M?rz 2012 23:49
An: mapserver-users at lists.osgeo.org
Betreff: [mapserver-users] Mapserver WFS - ODBC RDBMS - GEOMETRY_COLUMNS
andSPATIAL_REF_SYS Tables
Hi List,
I have a point layer set up for WFS requests that connects to a Microsoft
Access database with two tables structured as follows:
Table: GEOMETRY_COLUMNS
Fields:
F_TABLE_NAME
F_GEOMETRY_COLUMN
GEOMETRY_TYPE
SRID
Values:
MyData
geom
POINT
27700
Table: MyData (Contains about 8,000 records)
Fields:
UniqueID
NameStr
Geom
XMIN
YMIN
XMAX
YMAX
Values:
1
Smiths
POINT(265377 665516)
265377
665516
265377
665516
In my layer, I have:
CONNECTIONTYPE OGR
CONNECTION "ODBC:overlays,FullOIs(geom)"
DATA "FullOIs"
A GetFeature request works well and quite speedily so I think that the the
query is run against the database is using the XMIN, YMIN, XMAX and YMAX
columns to restrict the data returned. During debugging, the following query
appeared in the response as recorded by Firebug in Firefox but I can't
replicate that (if anyone can tell me how to confirm that the BBox is being
used as follows that would be appreciated):
SELECT * FROM MyData WHERE XMAX > 176077.07205091 AND XMIN < 340988.92794909
AND YMAX > 583498.46091313 AND YMIN < 748311.53908687
The problem that I have relates to the GEOMETRY_COLUMNS table which I know
is not being used.
If I remove the geometry column from the connection string, i.e. change
CONNECTION "ODBC:overlays,FullOIs(geom)" to CONNECTION
"ODBC:overlays,FullOIs" - remove the word "(geom), it does not find the
geometry column from the GEOMETRY_COLUMNS table. It would appear that this
table is being completely ignored.
I have tried all sorts of combinations and field names and have also created
a SPATIAL_REF_SYS table with values that I use in a working PostGIS database
to no avail.
I previously used an OVF file but I think that may be limited to point
layers whereas, when I get this working as I want to, I would like to extend
this type of connection to line and polygon layers.
Can anyone advise please?
Many thanks.
Regards,
Donald
_______________________________________________
mapserver-users mailing list
mapserver-users at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users
From pcreso at pcreso.com Fri Mar 2 11:10:43 2012
From: pcreso at pcreso.com (pcreso at pcreso.com)
Date: Fri, 2 Mar 2012 11:10:43 -0800 (PST)
Subject: [mapserver-users] Setup advice please?
In-Reply-To:
Message-ID: <1330715443.23039.YahooMailClassic@web160703.mail.bf1.yahoo.com>
Hi,
Hopefully someone here can help.
I have about 50Gb of high resolution aerial photos (geotiffs) to set up as a cached WMS service.
We have a mapserver setup ready to use, with backups, etc. already sorted. The dataset is competely static.
I'd like to set up MapProxy or Tilecache as a tiled WMS service for an OpenLayers front end, and possible other public use.
I'm happy with a dynamically populated cache, rather than a pre-filled one, so the cache is built up as it is used.
Can anyone experienced in this area suggest what sort of time is reasonable to expect a competent team to set this up in a professional way, with reasonable supporting docs, etc? Remembering we have a supported server to work with.
It has been asked for by a small local environmental interest group with zero funds, and I need to get a reasonable commercial cost for such an exercise to start with.
Thanks,
?? Brent Wood
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From fruitwerks at gmail.com Fri Mar 2 11:40:41 2012
From: fruitwerks at gmail.com (Corey Carpenter)
Date: Fri, 2 Mar 2012 13:40:41 -0600
Subject: [mapserver-users] Setup advice please?
In-Reply-To: <1330715443.23039.YahooMailClassic@web160703.mail.bf1.yahoo.com>
References:
<1330715443.23039.YahooMailClassic@web160703.mail.bf1.yahoo.com>
Message-ID:
Unless I read your question incorrectly, this is the main function of
mapcache. You will need to use a fairly new version of mapserver 6.2 /
trunk. You will be able to seed your cache, so the tiles you define are
available on the first request.
I have used tilecache and other methods, but I have no experience with
mapcache.
On Fri, Mar 2, 2012 at 1:10 PM, wrote:
> Hi,
>
> Hopefully someone here can help.
>
> I have about 50Gb of high resolution aerial photos (geotiffs) to set up as
> a cached WMS service.
>
> We have a mapserver setup ready to use, with backups, etc. already sorted.
> The dataset is competely static.
>
> I'd like to set up MapProxy or Tilecache as a tiled WMS service for an
> OpenLayers front end, and possible other public use.
>
> I'm happy with a dynamically populated cache, rather than a pre-filled
> one, so the cache is built up as it is used.
>
> Can anyone experienced in this area suggest what sort of time is
> reasonable to expect a competent team to set this up in a professional way,
> with reasonable supporting docs, etc? Remembering we have a supported
> server to work with.
>
> It has been asked for by a small local environmental interest group with
> zero funds, and I need to get a reasonable commercial cost for such an
> exercise to start with.
>
> Thanks,
>
> Brent Wood
>
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>
>
--
_______________________________________________________________________________
Any use, dissemination, distribution, posting on Internet bulletin boards,
disclosure or copying of this e-mail or any information contained herein by
or to anyone other than the intended recipient(s) is strictly prohibited.
Use of this content for any other purpose is a violation of International
Copyright Laws.
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From pcreso at pcreso.com Fri Mar 2 12:09:46 2012
From: pcreso at pcreso.com (pcreso at pcreso.com)
Date: Fri, 2 Mar 2012 12:09:46 -0800 (PST)
Subject: [mapserver-users] Setup advice please?
In-Reply-To:
Message-ID: <1330718986.80595.YahooMailClassic@web160703.mail.bf1.yahoo.com>
Hi Corey,
Thanks for the suggestion.
At this stage the requirement is for a stable production system. Mapserver 6.2 & mapcache? are not, still being under development.
I realise that this does not preclude the software running robustly, but it will not be an acceptable solution in this case. Mapserver 6.01, as the latest stable release, is the required platform.
Hence my suggestion of Tilecache & MapProxy as suitable applications, which are available as binary packages ready to install.
Thanks,
? Brent Wood
--- On Sat, 3/3/12, Corey Carpenter wrote:
From: Corey Carpenter
Subject: Re: [mapserver-users] Setup advice please?
To: pcreso at pcreso.com
Cc: mapserver-users at lists.osgeo.org
Date: Saturday, March 3, 2012, 8:40 AM
Unless I read your question incorrectly, this is the main function of mapcache. You will need to use a fairly new version of mapserver 6.2 / trunk. You will be able to seed your cache, so the tiles you define are available on the first request.
I have used tilecache and other methods, but I have no experience with mapcache.
On Fri, Mar 2, 2012 at 1:10 PM, wrote:
Hi,
Hopefully someone here can help.
I have about 50Gb of high resolution aerial photos (geotiffs) to set up as a cached WMS service.
We have a mapserver setup ready to use, with backups, etc. already sorted. The dataset is competely static.
I'd like to set up MapProxy or Tilecache as a tiled WMS service for an OpenLayers front end, and possible other public use.
I'm happy with a dynamically populated cache, rather than a pre-filled one, so the cache is built up as it is used.
Can anyone experienced in this area suggest what sort of time is reasonable to expect a competent team to set this up in a professional way, with reasonable supporting docs, etc? Remembering we have a supported server to work with.
It has been asked for by a small local environmental interest group with zero funds, and I need to get a
reasonable commercial cost for such an exercise to start with.
Thanks,
?? Brent Wood
_______________________________________________
mapserver-users mailing list
mapserver-users at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users
--
_______________________________________________________________________________
Any use, dissemination, distribution, posting on Internet bulletin
boards, disclosure or copying of this e-mail or any information
contained herein by or to anyone other than the intended recipient(s) is
strictly prohibited. Use of this content for any other purpose is a violation of International Copyright Laws.
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From arnd.wippermann at web.de Fri Mar 2 12:50:41 2012
From: arnd.wippermann at web.de (Arnd Wippermann)
Date: Fri, 2 Mar 2012 21:50:41 +0100
Subject: AW: [mapserver-users] Mapserver WFS - ODBC RDBMS - GEOMETRY_COLUMNS
andSPATIAL_REF_SYS Tables
In-Reply-To: <720EE0A964084B7589BC73B52235897A@DELLM4500>
References: <06A382BFD46C45CBBFECBE50A09ECF23@pcawh2>
<720EE0A964084B7589BC73B52235897A@DELLM4500>
Message-ID:
Hi,
i can confirm, that TOLERANCE and TOLERANCEUNITS
changes the spatial filter MapServer 6.0.x applies.
MapServer 5.6.1 takes no notice of that.
BBOX and applied spatial filter are the same.
Because I have small datasets (~500-1000 rows),
I haven't noticed the strange behaviour of Version 6.
Below some combinations I have tested to get an idea
how to configure ogr ODBC. 1-3 are OK, 4 fails.
1 #############################################
CONNECTIONTYPE OGR
CONNECTION 'ODBC:GEOOBJEKT,GEOPOINTS(POSITION)'
DATA GEOPOINTS
no table GEOMETRY_COLUMNS in MDB
2 #############################################
CONNECTIONTYPE OGR
CONNECTION 'ODBC:GEOOBJEKT,GEOPOINTS'
#DATA GEOPOINTS
table GEOMETRY_COLUMNS in MDB
3 #############################################
CONNECTIONTYPE OGR
CONNECTION 'ODBC:GEOOBJEKT,GEOPOINTS(POSITION)'
DATA GEOPOINTS
table GEOMETRY_COLUMNS in MDB
1-3 correct results
4 ###############################################
CONNECTIONTYPE OGR
CONNECTION 'ODBC:GEOOBJEKT,GEOPOINTS(POSITION)'
#DATA GEOPOINTS
table GEOMETRY_COLUMNS in MDB
!!! this fails :: OGR error. GetLayer(GEOPOINTS(POSITION)) failed ...
###############################################
To check, if the spatial filter is used to get the data
from the Access MDB, it's possible under Windows to log
the ODBC connection.
That are the interesting parts
SELECT f_table_name, f_geometry_column, geometry_type FROM geometry_columns
SELECT * FROM GEOPOINTS WHERE XMAX > 2571258.49071369 AND XMIN <
2586698.54053631 AND YMAX > 5673184.27196369 AND YMIN < 5687253.22803631
The spatial filter is used, if the fields XMIN, YMIN, XMAX and YMAX in the
queried table exists.
The structure of my access tables are the same as yours.
If your ODBC connection not working, it's possibly an issue
with setting the DNS.
Arnd
-----Urspr?ngliche Nachricht-----
Von: Donald Kerr [mailto:donald.kerr at dkerr.co.uk]
Gesendet: Freitag, 2. M?rz 2012 19:55
An: 'Arnd Wippermann'
Cc: mapserver-users at lists.osgeo.org
Betreff: RE: [mapserver-users] Mapserver WFS - ODBC RDBMS - GEOMETRY_COLUMNS
andSPATIAL_REF_SYS Tables
Arnd,
I haven't been testing on 5.6.1 but have finally got around to upgrading to
6.0.2 where I noticed some issues with a point layer WFS using ovf files to
connect to a Microsoft Access database. I too noticed the spatial filter
being much larger than that requested which is the reason why I started
looking at connecting in a different way. No matter what I did, all 8,000
records in my database were returned. I have tested both connection types
again and the logs show that the correct spacial filter is being applied. I
was tearing my hair out with this one but I know how I sorted it: That
particular layer had "TOLERANCE 20". I changed that to "TOLERANCE 0" and the
correct spacial filter was applied:
"TOLERANCE 0" - "Setting spatial filter to 258416.000000 665829.000000
258665.000000 666035.000000"
"TOLERANCE 20" - "Setting spatial filter to 176141.752508 583554.752508
340939.247492 748309.247492"
Changing the "TOLERANCE" affects the spatial filter as expected but ...
I have "TOLERANCEUNITS pixels" so the difference in the two spacial filters
above should be minimal. The actual difference is 82275 metres (51 miles or
44 nautical miles approx) added on both the x and y axis.
TOLERANCE UNITS can be
[pixels|feet|inches|kilometers|meters|miles|nauticalmiles|dd]
"feet" works approximately
"inches" works pretty accurately
"kilometers" accurately
"meters" works accurately
"miles" works accurately
I never checked "nauticalmiles" or "dd" (don't know what that is!)
Could this be a Mapserver bug with "pixels"?
Anyway, back to the subject ...
You wrote:
-------
Omitting the geometry column
CONNECTION 'ODBC:GEO,GEOPOINTS'
and renaming the table GEOMETRY_COLUMNS in the MDB,
-------
I'm not clear on whether or not you had the GEOMETRY_COLUMNS table working
prior to you renaming it. If you have an access database with a working
GEOMETRY_COLUMNS table then I would be very grateful if you could detail the
structure for me. I have never had this working in 6.0.2 and I have never
used this type of connection with previous versions. That's the reason why I
am not sure if it's something I'm doing or maybe a buggy bit of code in
either Mapserver or GDAL ODBC RDBMS.
There's another issue with this type of connection: If I create indexes on
the XMIN, YMIN, XMAX, YMAX columns, as would be reasonable given that
they're being searched, I get an empty response as follows but no error in
the error log other than "Returning MS_DONE (no more shapes)":
missing
Many thanks.
Regards,
Donald
From donald.kerr at dkerr.co.uk Fri Mar 2 14:06:42 2012
From: donald.kerr at dkerr.co.uk (Donald Kerr)
Date: Fri, 2 Mar 2012 22:06:42 -0000
Subject: [mapserver-users] Mapserver WFS - ODBC RDBMS - GEOMETRY_COLUMNS
andSPATIAL_REF_SYS Tables
In-Reply-To:
Message-ID: <277AE04D44E34279BC4528EE059D9AF3@DELLM4500>
Arnd,
Aha! Combination 2 works for me too and this is exactly what I'm looking
for. :)
CONNECTIONTYPE OGR
CONNECTION 'ODBC:GEOOBJEKT,GEOPOINTS'
#DATA GEOPOINTS
If I comment out the DATA keyword it uses the GEOMETRY_COLUMNS table
correctly. I must have tried 999,999 combinations over the last two days and
the 1,000,000th one worked!
Thank you very much for your help and time.
Regards,
Donald
-----Original Message-----
From: Arnd Wippermann [mailto:arnd.wippermann at web.de]
Sent: 02 March 2012 20:51
To: 'Donald Kerr'
Cc: mapserver-users at lists.osgeo.org
Subject: AW: [mapserver-users] Mapserver WFS - ODBC RDBMS - GEOMETRY_COLUMNS
andSPATIAL_REF_SYS Tables
Hi,
i can confirm, that TOLERANCE and TOLERANCEUNITS
changes the spatial filter MapServer 6.0.x applies.
MapServer 5.6.1 takes no notice of that.
BBOX and applied spatial filter are the same.
Because I have small datasets (~500-1000 rows),
I haven't noticed the strange behaviour of Version 6.
Below some combinations I have tested to get an idea
how to configure ogr ODBC. 1-3 are OK, 4 fails.
1 #############################################
CONNECTIONTYPE OGR
CONNECTION 'ODBC:GEOOBJEKT,GEOPOINTS(POSITION)'
DATA GEOPOINTS
no table GEOMETRY_COLUMNS in MDB
2 #############################################
CONNECTIONTYPE OGR
CONNECTION 'ODBC:GEOOBJEKT,GEOPOINTS'
#DATA GEOPOINTS
table GEOMETRY_COLUMNS in MDB
3 #############################################
CONNECTIONTYPE OGR
CONNECTION 'ODBC:GEOOBJEKT,GEOPOINTS(POSITION)'
DATA GEOPOINTS
table GEOMETRY_COLUMNS in MDB
1-3 correct results
4 ###############################################
CONNECTIONTYPE OGR
CONNECTION 'ODBC:GEOOBJEKT,GEOPOINTS(POSITION)'
#DATA GEOPOINTS
table GEOMETRY_COLUMNS in MDB
!!! this fails :: OGR error. GetLayer(GEOPOINTS(POSITION)) failed ...
###############################################
To check, if the spatial filter is used to get the data
from the Access MDB, it's possible under Windows to log
the ODBC connection.
That are the interesting parts
SELECT f_table_name, f_geometry_column, geometry_type FROM geometry_columns
SELECT * FROM GEOPOINTS WHERE XMAX > 2571258.49071369 AND XMIN <
2586698.54053631 AND YMAX > 5673184.27196369 AND YMIN < 5687253.22803631
The spatial filter is used, if the fields XMIN, YMIN, XMAX and YMAX in the
queried table exists.
The structure of my access tables are the same as yours.
If your ODBC connection not working, it's possibly an issue with setting the
DNS.
Arnd
-----Urspr?ngliche Nachricht-----
Von: Donald Kerr [mailto:donald.kerr at dkerr.co.uk]
Gesendet: Freitag, 2. M?rz 2012 19:55
An: 'Arnd Wippermann'
Cc: mapserver-users at lists.osgeo.org
Betreff: RE: [mapserver-users] Mapserver WFS - ODBC RDBMS - GEOMETRY_COLUMNS
andSPATIAL_REF_SYS Tables
Arnd,
I haven't been testing on 5.6.1 but have finally got around to upgrading to
6.0.2 where I noticed some issues with a point layer WFS using ovf files to
connect to a Microsoft Access database. I too noticed the spatial filter
being much larger than that requested which is the reason why I started
looking at connecting in a different way. No matter what I did, all 8,000
records in my database were returned. I have tested both connection types
again and the logs show that the correct spacial filter is being applied. I
was tearing my hair out with this one but I know how I sorted it: That
particular layer had "TOLERANCE 20". I changed that to "TOLERANCE 0" and the
correct spacial filter was applied:
"TOLERANCE 0" - "Setting spatial filter to 258416.000000 665829.000000
258665.000000 666035.000000" "TOLERANCE 20" - "Setting spatial filter to
176141.752508 583554.752508 340939.247492 748309.247492"
Changing the "TOLERANCE" affects the spatial filter as expected but ...
I have "TOLERANCEUNITS pixels" so the difference in the two spacial filters
above should be minimal. The actual difference is 82275 metres (51 miles or
44 nautical miles approx) added on both the x and y axis.
TOLERANCE UNITS can be
[pixels|feet|inches|kilometers|meters|miles|nauticalmiles|dd]
"feet" works approximately
"inches" works pretty accurately
"kilometers" accurately
"meters" works accurately
"miles" works accurately
I never checked "nauticalmiles" or "dd" (don't know what that is!)
Could this be a Mapserver bug with "pixels"?
Anyway, back to the subject ...
You wrote:
-------
Omitting the geometry column
CONNECTION 'ODBC:GEO,GEOPOINTS'
and renaming the table GEOMETRY_COLUMNS in the MDB,
-------
I'm not clear on whether or not you had the GEOMETRY_COLUMNS table working
prior to you renaming it. If you have an access database with a working
GEOMETRY_COLUMNS table then I would be very grateful if you could detail the
structure for me. I have never had this working in 6.0.2 and I have never
used this type of connection with previous versions. That's the reason why I
am not sure if it's something I'm doing or maybe a buggy bit of code in
either Mapserver or GDAL ODBC RDBMS.
There's another issue with this type of connection: If I create indexes on
the XMIN, YMIN, XMAX, YMAX columns, as would be reasonable given that
they're being searched, I get an empty response as follows but no error in
the error log other than "Returning MS_DONE (no more shapes)":
missing
Many thanks.
Regards,
Donald
-----Original Message-----
From: Arnd Wippermann [mailto:arnd.wippermann at web.de]
Sent: 02 March 2012 20:51
To: 'Donald Kerr'
Cc: mapserver-users at lists.osgeo.org
Subject: AW: [mapserver-users] Mapserver WFS - ODBC RDBMS - GEOMETRY_COLUMNS
andSPATIAL_REF_SYS Tables
Hi,
i can confirm, that TOLERANCE and TOLERANCEUNITS
changes the spatial filter MapServer 6.0.x applies.
MapServer 5.6.1 takes no notice of that.
BBOX and applied spatial filter are the same.
Because I have small datasets (~500-1000 rows),
I haven't noticed the strange behaviour of Version 6.
Below some combinations I have tested to get an idea
how to configure ogr ODBC. 1-3 are OK, 4 fails.
1 #############################################
CONNECTIONTYPE OGR
CONNECTION 'ODBC:GEOOBJEKT,GEOPOINTS(POSITION)'
DATA GEOPOINTS
no table GEOMETRY_COLUMNS in MDB
2 #############################################
CONNECTIONTYPE OGR
CONNECTION 'ODBC:GEOOBJEKT,GEOPOINTS'
#DATA GEOPOINTS
table GEOMETRY_COLUMNS in MDB
3 #############################################
CONNECTIONTYPE OGR
CONNECTION 'ODBC:GEOOBJEKT,GEOPOINTS(POSITION)'
DATA GEOPOINTS
table GEOMETRY_COLUMNS in MDB
1-3 correct results
4 ###############################################
CONNECTIONTYPE OGR
CONNECTION 'ODBC:GEOOBJEKT,GEOPOINTS(POSITION)'
#DATA GEOPOINTS
table GEOMETRY_COLUMNS in MDB
!!! this fails :: OGR error. GetLayer(GEOPOINTS(POSITION)) failed ...
###############################################
To check, if the spatial filter is used to get the data
from the Access MDB, it's possible under Windows to log
the ODBC connection.
That are the interesting parts
SELECT f_table_name, f_geometry_column, geometry_type FROM geometry_columns
SELECT * FROM GEOPOINTS WHERE XMAX > 2571258.49071369 AND XMIN <
2586698.54053631 AND YMAX > 5673184.27196369 AND YMIN < 5687253.22803631
The spatial filter is used, if the fields XMIN, YMIN, XMAX and YMAX in the
queried table exists.
The structure of my access tables are the same as yours.
If your ODBC connection not working, it's possibly an issue with setting the
DNS.
Arnd
-----Urspr?ngliche Nachricht-----
Von: Donald Kerr [mailto:donald.kerr at dkerr.co.uk]
Gesendet: Freitag, 2. M?rz 2012 19:55
An: 'Arnd Wippermann'
Cc: mapserver-users at lists.osgeo.org
Betreff: RE: [mapserver-users] Mapserver WFS - ODBC RDBMS - GEOMETRY_COLUMNS
andSPATIAL_REF_SYS Tables
Arnd,
I haven't been testing on 5.6.1 but have finally got around to upgrading to
6.0.2 where I noticed some issues with a point layer WFS using ovf files to
connect to a Microsoft Access database. I too noticed the spatial filter
being much larger than that requested which is the reason why I started
looking at connecting in a different way. No matter what I did, all 8,000
records in my database were returned. I have tested both connection types
again and the logs show that the correct spacial filter is being applied. I
was tearing my hair out with this one but I know how I sorted it: That
particular layer had "TOLERANCE 20". I changed that to "TOLERANCE 0" and the
correct spacial filter was applied:
"TOLERANCE 0" - "Setting spatial filter to 258416.000000 665829.000000
258665.000000 666035.000000" "TOLERANCE 20" - "Setting spatial filter to
176141.752508 583554.752508 340939.247492 748309.247492"
Changing the "TOLERANCE" affects the spatial filter as expected but ...
I have "TOLERANCEUNITS pixels" so the difference in the two spacial filters
above should be minimal. The actual difference is 82275 metres (51 miles or
44 nautical miles approx) added on both the x and y axis.
TOLERANCE UNITS can be
[pixels|feet|inches|kilometers|meters|miles|nauticalmiles|dd]
"feet" works approximately
"inches" works pretty accurately
"kilometers" accurately
"meters" works accurately
"miles" works accurately
I never checked "nauticalmiles" or "dd" (don't know what that is!)
Could this be a Mapserver bug with "pixels"?
Anyway, back to the subject ...
You wrote:
-------
Omitting the geometry column
CONNECTION 'ODBC:GEO,GEOPOINTS'
and renaming the table GEOMETRY_COLUMNS in the MDB,
-------
I'm not clear on whether or not you had the GEOMETRY_COLUMNS table working
prior to you renaming it. If you have an access database with a working
GEOMETRY_COLUMNS table then I would be very grateful if you could detail the
structure for me. I have never had this working in 6.0.2 and I have never
used this type of connection with previous versions. That's the reason why I
am not sure if it's something I'm doing or maybe a buggy bit of code in
either Mapserver or GDAL ODBC RDBMS.
There's another issue with this type of connection: If I create indexes on
the XMIN, YMIN, XMAX, YMAX columns, as would be reasonable given that
they're being searched, I get an empty response as follows but no error in
the error log other than "Returning MS_DONE (no more shapes)":
missing
Many thanks.
Regards,
Donald
From Steve.Lime at state.mn.us Fri Mar 2 16:15:26 2012
From: Steve.Lime at state.mn.us (Lime, Steve D (DNR))
Date: Sat, 3 Mar 2012 00:15:26 +0000
Subject: [mapserver-users] Setup advice please?
In-Reply-To: <1330718986.80595.YahooMailClassic@web160703.mail.bf1.yahoo.com>
References: ,
<1330718986.80595.YahooMailClassic@web160703.mail.bf1.yahoo.com>
Message-ID:
MapServer 6.2 isn't ready for production use, however, MapCache is. I've been pairing it and 6.0.2 for production use for months... Just another opinion. -Steve
________________________________________
From: mapserver-users-bounces at lists.osgeo.org [mapserver-users-bounces at lists.osgeo.org] on behalf of pcreso at pcreso.com [pcreso at pcreso.com]
Sent: Friday, March 02, 2012 2:09 PM
To: Corey Carpenter
Cc: mapserver-users at lists.osgeo.org
Subject: Re: [mapserver-users] Setup advice please?
Hi Corey,
Thanks for the suggestion.
At this stage the requirement is for a stable production system. Mapserver 6.2 & mapcache are not, still being under development.
I realise that this does not preclude the software running robustly, but it will not be an acceptable solution in this case. Mapserver 6.01, as the latest stable release, is the required platform.
Hence my suggestion of Tilecache & MapProxy as suitable applications, which are available as binary packages ready to install.
Thanks,
Brent Wood
--- On Sat, 3/3/12, Corey Carpenter wrote:
From: Corey Carpenter
Subject: Re: [mapserver-users] Setup advice please?
To: pcreso at pcreso.com
Cc: mapserver-users at lists.osgeo.org
Date: Saturday, March 3, 2012, 8:40 AM
Unless I read your question incorrectly, this is the main function of mapcache. You will need to use a fairly new version of mapserver 6.2 / trunk. You will be able to seed your cache, so the tiles you define are available on the first request.
I have used tilecache and other methods, but I have no experience with mapcache.
On Fri, Mar 2, 2012 at 1:10 PM, > wrote:
Hi,
Hopefully someone here can help.
I have about 50Gb of high resolution aerial photos (geotiffs) to set up as a cached WMS service.
We have a mapserver setup ready to use, with backups, etc. already sorted. The dataset is competely static.
I'd like to set up MapProxy or Tilecache as a tiled WMS service for an OpenLayers front end, and possible other public use.
I'm happy with a dynamically populated cache, rather than a pre-filled one, so the cache is built up as it is used.
Can anyone experienced in this area suggest what sort of time is reasonable to expect a competent team to set this up in a professional way, with reasonable supporting docs, etc? Remembering we have a supported server to work with.
It has been asked for by a small local environmental interest group with zero funds, and I need to get a reasonable commercial cost for such an exercise to start with.
Thanks,
Brent Wood
_______________________________________________
mapserver-users mailing list
mapserver-users at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users
--
_______________________________________________________________________________
Any use, dissemination, distribution, posting on Internet bulletin boards, disclosure or copying of this e-mail or any information contained herein by or to anyone other than the intended recipient(s) is strictly prohibited. Use of this content for any other purpose is a violation of International Copyright Laws.
From pcreso at pcreso.com Fri Mar 2 17:26:21 2012
From: pcreso at pcreso.com (pcreso at pcreso.com)
Date: Fri, 2 Mar 2012 17:26:21 -0800 (PST)
Subject: [mapserver-users] Setup advice please?
In-Reply-To:
Message-ID: <1330737981.98611.YahooMailClassic@web160705.mail.bf1.yahoo.com>
Cheers Steve.
I don't think this changes the answer much... whether mapcache, tilecache or mapproxy is used, the time to set up a working server with 50Gb of geotiffs I would have thought would be pretty similar.
So: can anyone experienced in this area suggest what sort of time is
reasonable to expect a competent team to set this up in a professional
way, with reasonable supporting docs, etc? Remembering we have a
supported server to work with.
Thanks,
?? Brent Wood
--- On Sat, 3/3/12, Lime, Steve D (DNR) wrote:
From: Lime, Steve D (DNR)
Subject: RE: [mapserver-users] Setup advice please?
To: "pcreso at pcreso.com" , "Corey Carpenter"
Cc: "mapserver-users at lists.osgeo.org"
Date: Saturday, March 3, 2012, 1:15 PM
MapServer 6.2 isn't ready for production use, however, MapCache is. I've been pairing it and 6.0.2 for production use for months... Just another opinion. -Steve
________________________________________
From: mapserver-users-bounces at lists.osgeo.org [mapserver-users-bounces at lists.osgeo.org] on behalf of pcreso at pcreso.com [pcreso at pcreso.com]
Sent: Friday, March 02, 2012 2:09 PM
To: Corey Carpenter
Cc: mapserver-users at lists.osgeo.org
Subject: Re: [mapserver-users] Setup advice please?
Hi Corey,
Thanks for the suggestion.
At this stage the requirement is for a stable production system. Mapserver 6.2 & mapcache? are not, still being under development.
I realise that this does not preclude the software running robustly, but it will not be an acceptable solution in this case. Mapserver 6.01, as the latest stable release, is the required platform.
Hence my suggestion of Tilecache & MapProxy as suitable applications, which are available as binary packages ready to install.
Thanks,
? Brent Wood
--- On Sat, 3/3/12, Corey Carpenter wrote:
From: Corey Carpenter
Subject: Re: [mapserver-users] Setup advice please?
To: pcreso at pcreso.com
Cc: mapserver-users at lists.osgeo.org
Date: Saturday, March 3, 2012, 8:40 AM
Unless I read your question incorrectly, this is the main function of mapcache. You will need to use a fairly new version of mapserver 6.2 / trunk. You will be able to seed your cache, so the tiles you define are available on the first request.
I have used tilecache and other methods, but I have no experience with mapcache.
On Fri, Mar 2, 2012 at 1:10 PM, > wrote:
Hi,
Hopefully someone here can help.
I have about 50Gb of high resolution aerial photos (geotiffs) to set up as a cached WMS service.
We have a mapserver setup ready to use, with backups, etc. already sorted. The dataset is competely static.
I'd like to set up MapProxy or Tilecache as a tiled WMS service for an OpenLayers front end, and possible other public use.
I'm happy with a dynamically populated cache, rather than a pre-filled one, so the cache is built up as it is used.
Can anyone experienced in this area suggest what sort of time is reasonable to expect a competent team to set this up in a professional way, with reasonable supporting docs, etc? Remembering we have a supported server to work with.
It has been asked for by a small local environmental interest group with zero funds, and I need to get a reasonable commercial cost for such an exercise to start with.
Thanks,
???Brent Wood
_______________________________________________
mapserver-users mailing list
mapserver-users at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users
--
_______________________________________________________________________________
Any use, dissemination, distribution, posting on Internet bulletin boards, disclosure or copying of this e-mail or any information contained herein by or to anyone other than the intended recipient(s) is strictly prohibited. Use of this content for any other purpose is a violation of International Copyright Laws.
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From punk.kish at gmail.com Fri Mar 2 18:15:14 2012
From: punk.kish at gmail.com (Puneet Kishor)
Date: Fri, 2 Mar 2012 20:15:14 -0600
Subject: [mapserver-users] Setup advice please?
In-Reply-To: <1330737981.98611.YahooMailClassic@web160705.mail.bf1.yahoo.com>
References: <1330737981.98611.YahooMailClassic@web160705.mail.bf1.yahoo.com>
Message-ID: <55FF3742-B6B2-4F58-A250-509DE8DD3905@gmail.com>
Just walked into this conversation so my response may be half-assed, but...
On Mar 2, 2012, at 7:26 PM, pcreso at pcreso.com wrote:
> Cheers Steve.
>
> I don't think this changes the answer much... whether mapcache, tilecache or mapproxy is used, the time to set up a working server with 50Gb of geotiffs I would have thought would be pretty similar.
>
> So: can anyone experienced in this area suggest what sort of time is
> reasonable to expect a competent team to set this up in a professional
> way, with reasonable supporting docs, etc? Remembering we have a
> supported server to work with.
What do you mean by "time... to set up" a server? Fwiw, I downloaded, configured, and had Tilecache working in less than 30 mins. The cache is not pre-seeded. It builds up as it goes.
>
> Thanks,
>
> Brent Wood
>
> --- On Sat, 3/3/12, Lime, Steve D (DNR) wrote:
>
> From: Lime, Steve D (DNR)
> Subject: RE: [mapserver-users] Setup advice please?
> To: "pcreso at pcreso.com" , "Corey Carpenter"
> Cc: "mapserver-users at lists.osgeo.org"
> Date: Saturday, March 3, 2012, 1:15 PM
>
> MapServer 6.2 isn't ready for production use, however, MapCache is. I've been pairing it and 6.0.2 for production use for months... Just another opinion. -Steve
> ________________________________________
> From: mapserver-users-bounces at lists.osgeo.org [mapserver-users-bounces at lists.osgeo.org] on behalf of pcreso at pcreso.com [pcreso at pcreso.com]
> Sent: Friday, March 02, 2012 2:09 PM
> To: Corey Carpenter
> Cc: mapserver-users at lists.osgeo.org
> Subject: Re: [mapserver-users] Setup advice please?
>
> Hi Corey,
>
> Thanks for the suggestion.
>
> At this stage the requirement is for a stable production system. Mapserver 6.2 & mapcache are not, still being under development.
>
> I realise that this does not preclude the software running robustly, but it will not be an acceptable solution in this case. Mapserver 6.01, as the latest stable release, is the required platform.
>
> Hence my suggestion of Tilecache & MapProxy as suitable applications, which are available as binary packages ready to install.
>
>
> Thanks,
>
> Brent Wood
>
> --- On Sat, 3/3/12, Corey Carpenter wrote:
>
> From: Corey Carpenter
> Subject: Re: [mapserver-users] Setup advice please?
> To: pcreso at pcreso.com
> Cc: mapserver-users at lists.osgeo.org
> Date: Saturday, March 3, 2012, 8:40 AM
>
> Unless I read your question incorrectly, this is the main function of mapcache. You will need to use a fairly new version of mapserver 6.2 / trunk. You will be able to seed your cache, so the tiles you define are available on the first request.
>
> I have used tilecache and other methods, but I have no experience with mapcache.
>
> On Fri, Mar 2, 2012 at 1:10 PM, > wrote:
> Hi,
>
> Hopefully someone here can help.
>
> I have about 50Gb of high resolution aerial photos (geotiffs) to set up as a cached WMS service.
>
> We have a mapserver setup ready to use, with backups, etc. already sorted. The dataset is competely static.
>
> I'd like to set up MapProxy or Tilecache as a tiled WMS service for an OpenLayers front end, and possible other public use.
>
> I'm happy with a dynamically populated cache, rather than a pre-filled one, so the cache is built up as it is used.
>
> Can anyone experienced in this area suggest what sort of time is reasonable to expect a competent team to set this up in a professional way, with reasonable supporting docs, etc? Remembering we have a supported server to work with.
>
> It has been asked for by a small local environmental interest group with zero funds, and I need to get a reasonable commercial cost for such an exercise to start with.
>
> Thanks,
>
> Brent Wood
>
> ..
From pcreso at pcreso.com Fri Mar 2 19:22:10 2012
From: pcreso at pcreso.com (pcreso at pcreso.com)
Date: Fri, 2 Mar 2012 19:22:10 -0800 (PST)
Subject: [mapserver-users] Setup advice please?
In-Reply-To: <55FF3742-B6B2-4F58-A250-509DE8DD3905@gmail.com>
Message-ID: <1330744930.46015.YahooMailClassic@web160702.mail.bf1.yahoo.com>
Hi Puneet,
Yep, a simple one off 50Gb image dataset to be configured & then the cache populated dynamically. I'd prefer MapProxy, or Mapcache, over Tilecache, to be able to support GetFeature requests, but in this instance that will not be needed anyway.
That's about my take on it, maybe a couple of hours, but I've just been quoted 3 days by a support team to do this, at NZ$170/hr. (current exch rate is around .77, so maybe $2600US??? for the job)
I'm not a professional at this, but do such things as a prototyping & playing exercise at home... & a formal installation will need documenting, etc, to a production server standard, so perhaps a few more hours, but that cost seems excessive.
Hence my question here, to get an "expert" opinion of what such a setup should cost. Ideally a few such opinions to give me a robust sample size to go back with :-)
I've also asked another provider for a cost. My guess is they will be considerably cheaper.
--- On Sat, 3/3/12, Puneet Kishor wrote:
From: Puneet Kishor
Subject: Re: [mapserver-users] Setup advice please?
To: "mapserver"
Date: Saturday, March 3, 2012, 3:15 PM
Just walked into this conversation so my response may be half-assed, but...
On Mar 2, 2012, at 7:26 PM, pcreso at pcreso.com wrote:
> Cheers Steve.
>
> I don't think this changes the answer much... whether mapcache, tilecache or mapproxy is used, the time to set up a working server with 50Gb of geotiffs I would have thought would be pretty similar.
>
> So: can anyone experienced in this area suggest what sort of time is
> reasonable to expect a competent team to set this up in a professional
> way, with reasonable supporting docs, etc? Remembering we have a
> supported server to work with.
What do you mean by "time... to set up" a server? Fwiw, I downloaded, configured, and had Tilecache working in less than 30 mins. The cache is not pre-seeded. It builds up as it goes.
>
> Thanks,
>
>? ? Brent Wood
>
> --- On Sat, 3/3/12, Lime, Steve D (DNR) wrote:
>
> From: Lime, Steve D (DNR)
> Subject: RE: [mapserver-users] Setup advice please?
> To: "pcreso at pcreso.com" , "Corey Carpenter"
> Cc: "mapserver-users at lists.osgeo.org"
> Date: Saturday, March 3, 2012, 1:15 PM
>
> MapServer 6.2 isn't ready for production use, however, MapCache is. I've been pairing it and 6.0.2 for production use for months... Just another opinion. -Steve
> ________________________________________
> From: mapserver-users-bounces at lists.osgeo.org [mapserver-users-bounces at lists.osgeo.org] on behalf of pcreso at pcreso.com [pcreso at pcreso.com]
> Sent: Friday, March 02, 2012 2:09 PM
> To: Corey Carpenter
> Cc: mapserver-users at lists.osgeo.org
> Subject: Re: [mapserver-users] Setup advice please?
>
> Hi Corey,
>
> Thanks for the suggestion.
>
> At this stage the requirement is for a stable production system. Mapserver 6.2 & mapcache? are not, still being under development.
>
> I realise that this does not preclude the software running robustly, but it will not be an acceptable solution in this case. Mapserver 6.01, as the latest stable release, is the required platform.
>
> Hence my suggestion of Tilecache & MapProxy as suitable applications, which are available as binary packages ready to install.
>
>
> Thanks,
>
>???Brent Wood
>
> --- On Sat, 3/3/12, Corey Carpenter wrote:
>
> From: Corey Carpenter
> Subject: Re: [mapserver-users] Setup advice please?
> To: pcreso at pcreso.com
> Cc: mapserver-users at lists.osgeo.org
> Date: Saturday, March 3, 2012, 8:40 AM
>
> Unless I read your question incorrectly, this is the main function of mapcache. You will need to use a fairly new version of mapserver 6.2 / trunk. You will be able to seed your cache, so the tiles you define are available on the first request.
>
> I have used tilecache and other methods, but I have no experience with mapcache.
>
> On Fri, Mar 2, 2012 at 1:10 PM, > wrote:
> Hi,
>
> Hopefully someone here can help.
>
> I have about 50Gb of high resolution aerial photos (geotiffs) to set up as a cached WMS service.
>
> We have a mapserver setup ready to use, with backups, etc. already sorted. The dataset is competely static.
>
> I'd like to set up MapProxy or Tilecache as a tiled WMS service for an OpenLayers front end, and possible other public use.
>
> I'm happy with a dynamically populated cache, rather than a pre-filled one, so the cache is built up as it is used.
>
> Can anyone experienced in this area suggest what sort of time is reasonable to expect a competent team to set this up in a professional way, with reasonable supporting docs, etc? Remembering we have a supported server to work with.
>
> It has been asked for by a small local environmental interest group with zero funds, and I need to get a reasonable commercial cost for such an exercise to start with.
>
> Thanks,
>
>? ? Brent Wood
>
> ..
_______________________________________________
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 punk.kish at gmail.com Fri Mar 2 19:31:56 2012
From: punk.kish at gmail.com (Puneet Kishor)
Date: Fri, 2 Mar 2012 21:31:56 -0600
Subject: [mapserver-users] Setup advice please?
In-Reply-To: <1330744930.46015.YahooMailClassic@web160702.mail.bf1.yahoo.com>
References: <1330744930.46015.YahooMailClassic@web160702.mail.bf1.yahoo.com>
Message-ID: <762062BA-D91B-4EE8-8C8E-C8F43AC3659C@gmail.com>
It is my "expert" opinion that, with documentation and all, tilecache will take 35 mins. Any more and either the person doesn't know what he is doing, or is hoping to take the client for a ride.
On Mar 2, 2012, at 9:22 PM, pcreso at pcreso.com wrote:
> Hi Puneet,
>
> Yep, a simple one off 50Gb image dataset to be configured & then the cache populated dynamically. I'd prefer MapProxy, or Mapcache, over Tilecache, to be able to support GetFeature requests, but in this instance that will not be needed anyway.
>
> That's about my take on it, maybe a couple of hours, but I've just been quoted 3 days by a support team to do this, at NZ$170/hr. (current exch rate is around .77, so maybe $2600US??? for the job)
>
> I'm not a professional at this, but do such things as a prototyping & playing exercise at home... & a formal installation will need documenting, etc, to a production server standard, so perhaps a few more hours, but that cost seems excessive.
>
> Hence my question here, to get an "expert" opinion of what such a setup should cost. Ideally a few such opinions to give me a robust sample size to go back with :-)
>
> I've also asked another provider for a cost. My guess is they will be considerably cheaper.
>
>
>
> --- On Sat, 3/3/12, Puneet Kishor wrote:
>
> From: Puneet Kishor
> Subject: Re: [mapserver-users] Setup advice please?
> To: "mapserver"
> Date: Saturday, March 3, 2012, 3:15 PM
>
> Just walked into this conversation so my response may be half-assed, but...
>
> On Mar 2, 2012, at 7:26 PM, pcreso at pcreso.com wrote:
>
> > Cheers Steve.
> >
> > I don't think this changes the answer much... whether mapcache, tilecache or mapproxy is used, the time to set up a working server with 50Gb of geotiffs I would have thought would be pretty similar.
> >
> > So: can anyone experienced in this area suggest what sort of time is
> > reasonable to expect a competent team to set this up in a professional
> > way, with reasonable supporting docs, etc? Remembering we have a
> > supported server to work with.
>
>
>
> What do you mean by "time... to set up" a server? Fwiw, I downloaded, configured, and had Tilecache working in less than 30 mins. The cache is not pre-seeded. It builds up as it goes.
>
>
>
>
>
>
> >
> > Thanks,
> >
> > Brent Wood
> >
> > --- On Sat, 3/3/12, Lime, Steve D (DNR) wrote:
> >
> > From: Lime, Steve D (DNR)
> > Subject: RE: [mapserver-users] Setup advice please?
> > To: "pcreso at pcreso.com" , "Corey Carpenter"
> > Cc: "mapserver-users at lists.osgeo.org"
> > Date: Saturday, March 3, 2012, 1:15 PM
> >
> > MapServer 6.2 isn't ready for production use, however, MapCache is. I've been pairing it and 6.0.2 for production use for months... Just another opinion. -Steve
> > ________________________________________
> > From: mapserver-users-bounces at lists.osgeo.org [mapserver-users-bounces at lists.osgeo.org] on behalf of pcreso at pcreso.com [pcreso at pcreso.com]
> > Sent: Friday, March 02, 2012 2:09 PM
> > To: Corey Carpenter
> > Cc: mapserver-users at lists.osgeo.org
> > Subject: Re: [mapserver-users] Setup advice please?
> >
> > Hi Corey,
> >
> > Thanks for the suggestion.
> >
> > At this stage the requirement is for a stable production system. Mapserver 6.2 & mapcache are not, still being under development.
> >
> > I realise that this does not preclude the software running robustly, but it will not be an acceptable solution in this case. Mapserver 6.01, as the latest stable release, is the required platform.
> >
> > Hence my suggestion of Tilecache & MapProxy as suitable applications, which are available as binary packages ready to install.
> >
> >
> > Thanks,
> >
> > Brent Wood
> >
> > --- On Sat, 3/3/12, Corey Carpenter wrote:
> >
> > From: Corey Carpenter
> > Subject: Re: [mapserver-users] Setup advice please?
> > To: pcreso at pcreso.com
> > Cc: mapserver-users at lists.osgeo.org
> > Date: Saturday, March 3, 2012, 8:40 AM
> >
> > Unless I read your question incorrectly, this is the main function of mapcache. You will need to use a fairly new version of mapserver 6.2 / trunk. You will be able to seed your cache, so the tiles you define are available on the first request.
> >
> > I have used tilecache and other methods, but I have no experience with mapcache.
> >
> > On Fri, Mar 2, 2012 at 1:10 PM, > wrote:
> > Hi,
> >
> > Hopefully someone here can help.
> >
> > I have about 50Gb of high resolution aerial photos (geotiffs) to set up as a cached WMS service.
> >
> > We have a mapserver setup ready to use, with backups, etc. already sorted. The dataset is competely static.
> >
> > I'd like to set up MapProxy or Tilecache as a tiled WMS service for an OpenLayers front end, and possible other public use.
> >
> > I'm happy with a dynamically populated cache, rather than a pre-filled one, so the cache is built up as it is used.
> >
> > Can anyone experienced in this area suggest what sort of time is reasonable to expect a competent team to set this up in a professional way, with reasonable supporting docs, etc? Remembering we have a supported server to work with.
> >
> > It has been asked for by a small local environmental interest group with zero funds, and I need to get a reasonable commercial cost for such an exercise to start with.
> >
> > Thanks,
> >
> > Brent Wood
> >
> > ..
>
> _______________________________________________
> 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 Sat Mar 3 02:08:35 2012
From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka)
Date: Sat, 3 Mar 2012 10:08:35 +0000
Subject: [mapserver-users] RGB imagemode creates RGBA tiffs
Message-ID: <84446DEF76453C439E9E97E438E13A63082B4A@suutari.haapa.mmm.fi>
Hi,
I have defined a GeoTIFF outputformat as
OUTPUTFORMAT
NAME GTiff
DRIVER "GDAL/GTiff"
MIMETYPE "image/gtiff"
IMAGEMODE RGB
EXTENSION "gtif"
END
However, the resulting tiff contains also alpha channel:
Band 1 Block=2120x1 Type=Byte, ColorInterp=Red
Mask Flags: PER_DATASET ALPHA
Band 2 Block=2120x1 Type=Byte, ColorInterp=Green
Mask Flags: PER_DATASET ALPHA
Band 3 Block=2120x1 Type=Byte, ColorInterp=Blue
Mask Flags: PER_DATASET ALPHA
Band 4 Block=2120x1 Type=Byte, ColorInterp=Alpha
Is there something wrong in my outputformat? Output comes from Mapserver 6.0 (Ubuntu).
-Jukka Rahkonen-
From teknocreator at gmail.com Sun Mar 4 07:19:41 2012
From: teknocreator at gmail.com (teknocreator)
Date: Sun, 4 Mar 2012 07:19:41 -0800 (PST)
Subject: [mapserver-users] RE: WMS for netcdf [SEC=UNCLASSIFIED]
In-Reply-To:
References:
Message-ID: <1330874381473-4545262.post@n6.nabble.com>
Kathleen,
I've searched through the lists and on the web for an answer to your issue
as I have it too only with GRIB data. The MapServer docs seem to indicate
that variable substitution won't work for the PROCESSING directive.
Therefore I tried several variations "Changing map file parameters via a
form or a URL". What should've worked here considering that part of the
documentation is to add this to the GetMap request string:
map[layer].processing[0]="BANDS=01"
because it was the first PROCESSING directive for my layer and it needs a
string for the directive. But, I received an msloadLayer error. I tried a
few variations but all ended up with the same error. I've seen folks have a
similar issue with this in the MS Users list with no solution at present.
While what Puneet wrote may be a solution for you and possibly our GRIB data
as well, it seems like a much more complicated way just to get at a
particular band in the file. I do see why this has been done as NetCDF does
come in many flavors and there's the possibility of 4 dimensions in the
file. There are many links on using WCS with NetCDF, a good number coming
from UCAR.
Still, this looks like a possible code problem where the ability to change
map file parameter via a URL does not work in this case or else the ability
to change BANDS needs to be added to variable substitution.
Hopefully, someone from MapServer can help here. Looks like I'm going to be
investigating WCS, though. I'll definitely be checking back on this one.
--
View this message in context: http://osgeo-org.1560.n6.nabble.com/WMS-for-netcdf-SEC-UNCLASSIFIED-tp4519496p4545262.html
Sent from the Mapserver - User mailing list archive at Nabble.com.
From pcreso at pcreso.com Sun Mar 4 10:34:10 2012
From: pcreso at pcreso.com (pcreso at pcreso.com)
Date: Sun, 4 Mar 2012 10:34:10 -0800 (PST)
Subject: [mapserver-users] RE: WMS for netcdf [SEC=UNCLASSIFIED]
In-Reply-To: <1330874381473-4545262.post@n6.nabble.com>
Message-ID: <1330886050.37464.YahooMailClassic@web160702.mail.bf1.yahoo.com>
Hi,
One advantage of having mapserver run as a cgi, is it is relatively easy to have a cgi script wrapper to enable such variable substitution by generating a modified mapfile then invoking mapserver to use this.
Not necessarily the most efficient way, but very effective.
A simple example would read the appropriate substring from the URL querystring,
create a new mapfile with something like:
cat | sed 's///' >
& fire off mapserver with the new mapfile
Maybe not ideal for lots of concurrent users, but adequate for some circumstances, & may work for you?
Cheers,
?? Brent Wood
--- On Mon, 3/5/12, teknocreator wrote:
From: teknocreator
Subject: [mapserver-users] RE: WMS for netcdf [SEC=UNCLASSIFIED]
To: mapserver-users at lists.osgeo.org
Date: Monday, March 5, 2012, 4:19 AM
Kathleen,
I've searched through the lists and on the web for an answer to your issue
as I have it too only with GRIB data.? The MapServer docs seem to indicate
that variable substitution won't work for the PROCESSING directive.
Therefore I tried several variations "Changing map file parameters via a
form or a URL".? What should've worked here considering that part of the
documentation is to add this to the GetMap request string:
map[layer].processing[0]="BANDS=01"
because it was the first PROCESSING directive for my layer and it needs a
string for the directive.? But, I received an msloadLayer error.? I tried a
few variations but all ended up with the same error.? I've seen folks have a
similar issue with this in the MS Users list with no solution at present.
While what Puneet wrote may be a solution for you and possibly our GRIB data
as well, it seems like a much more complicated way just to get at a
particular band in the file.? I do see why this has been done as NetCDF does
come in many flavors and there's the possibility of 4 dimensions in the
file.? There are many links on using WCS with NetCDF, a good number coming
from UCAR.
Still, this looks like a possible code problem where the ability to change
map file parameter via a URL does not work in this case or else the ability
to change BANDS needs to be added to variable substitution.?
Hopefully, someone from MapServer can help here.? Looks like I'm going to be
investigating WCS, though.? I'll definitely be checking back on this one.
--
View this message in context: http://osgeo-org.1560.n6.nabble.com/WMS-for-netcdf-SEC-UNCLASSIFIED-tp4519496p4545262.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 rainer at silverstripe.com Sun Mar 4 12:07:19 2012
From: rainer at silverstripe.com (Rainer Spittel)
Date: Mon, 5 Mar 2012 09:07:19 +1300
Subject: [mapserver-users] Setup advice please?
In-Reply-To: <762062BA-D91B-4EE8-8C8E-C8F43AC3659C@gmail.com>
References: <1330744930.46015.YahooMailClassic@web160702.mail.bf1.yahoo.com>
<762062BA-D91B-4EE8-8C8E-C8F43AC3659C@gmail.com>
Message-ID:
Hi Brent,
The setup of the tool and connecting to the data source, i.e. to an UMN
Mapserver layer, does not take long.
I have worked with tileCache and GeoWebCache which is relative straight
forward. But you have to consider the dependencies you introduce within
your environment, i.e. do you want to introduce Tomcat? I don't have
experience with the other tools you refer to, but I assume that getting a
layer ready does not take long. Based on Steve's post, I would tend a
stable release of MapProxy or tileCache which connects to Mapserver.
You introduce a new component to your infrastructure and need to link
existing components to the new data service, I assume besides deployment,
you need to do some integration testing on top of that.
To get a better understanding of your requirements, I would ask you the
following questions:
- What is the spatial extend of the data, what the the scales you need to
support?
When you introduce a map-tile cache, is it important to know if the
filesystem is able to deal with the amount of files you store. It sounds
over-the-top but I really experienced performance problems with ext3
filesystem when I tried to create pre-cached tiles for New Zealand down to
the scale 1:2000, and I also reached filesystem limitations (exceeded
number of i-nodes) when I tried to pre-seed the layers 1:1000 and below.
This can be managed if you don't require the layer to be seeded completely
and by configuring your filesystem to accommodate that amount of files you
need to store.
- For your infrastructure, are you bound to a specific distribution and if
so, are the tile-cache packages available?
- Is the imagery data already made available via an WMS?
- If not, is the imagery data prepared to meet your business and functional
goals, such as performance, desired projection etc. Is the data available
as a tiled base layer or is the imagery data coming from different sources
and you have to merge those into one layer? I usually use gdaladdo for
GeoTiffs a lot to generate overview images to improve the performance for
larger scale maps.
- If this is a base layer, do you need the GetFeature support?
- How often does the basemap get updated? If it is a static layer which
does not get updated, I wonder if a pre-seeded solution would be more
efficient because you don't really have to maintain the components and use
a wrapper to provide the cache tiles.
Cheers,
Rainer
On Sat, Mar 3, 2012 at 4:31 PM, Puneet Kishor wrote:
> It is my "expert" opinion that, with documentation and all, tilecache will
> take 35 mins. Any more and either the person doesn't know what he is doing,
> or is hoping to take the client for a ride.
>
> On Mar 2, 2012, at 9:22 PM, pcreso at pcreso.com wrote:
>
> Hi Puneet,
>
> Yep, a simple one off 50Gb image dataset to be configured & then the cache
> populated dynamically. I'd prefer MapProxy, or Mapcache, over Tilecache, to
> be able to support GetFeature requests, but in this instance that will not
> be needed anyway.
>
> That's about my take on it, maybe a couple of hours, but I've just been
> quoted 3 days by a support team to do this, at NZ$170/hr. (current exch
> rate is around .77, so maybe $2600US??? for the job)
>
> I'm not a professional at this, but do such things as a prototyping &
> playing exercise at home... & a formal installation will need documenting,
> etc, to a production server standard, so perhaps a few more hours, but that
> cost seems excessive.
>
> Hence my question here, to get an "expert" opinion of what such a setup
> should cost. Ideally a few such opinions to give me a robust sample size to
> go back with :-)
>
> I've also asked another provider for a cost. My guess is they will be
> considerably cheaper.
>
>
>
> --- On *Sat, 3/3/12, Puneet Kishor * wrote:
>
>
> From: Puneet Kishor
> Subject: Re: [mapserver-users] Setup advice please?
> To: "mapserver"
> Date: Saturday, March 3, 2012, 3:15 PM
>
> Just walked into this conversation so my response may be half-assed, but...
>
> On Mar 2, 2012, at 7:26 PM, pcreso at pcreso.comwrote:
>
> > Cheers Steve.
> >
> > I don't think this changes the answer much... whether mapcache,
> tilecache or mapproxy is used, the time to set up a working server with
> 50Gb of geotiffs I would have thought would be pretty similar.
> >
> > So: can anyone experienced in this area suggest what sort of time is
> > reasonable to expect a competent team to set this up in a professional
> > way, with reasonable supporting docs, etc? Remembering we have a
> > supported server to work with.
>
>
>
> What do you mean by "time... to set up" a server? Fwiw, I downloaded,
> configured, and had Tilecache working in less than 30 mins. The cache is
> not pre-seeded. It builds up as it goes.
>
>
>
>
>
>
> >
> > Thanks,
> >
> > Brent Wood
> >
> > --- On Sat, 3/3/12, Lime, Steve D (DNR) >
> wrote:
> >
> > From: Lime, Steve D (DNR)
> >
> > Subject: RE: [mapserver-users] Setup advice please?
> > To: "pcreso at pcreso.com " <
> pcreso at pcreso.com >, "Corey
> Carpenter"
> >
> > Cc: "mapserver-users at lists.osgeo.org"
>
> >
> > Date: Saturday, March 3, 2012, 1:15 PM
> >
> > MapServer 6.2 isn't ready for production use, however, MapCache is. I've
> been pairing it and 6.0.2 for production use for months... Just another
> opinion. -Steve
> > ________________________________________
> > From: mapserver-users-bounces at lists.osgeo.org[
> mapserver-users-bounces at lists.osgeo.org]
> on behalf of pcreso at pcreso.com [
> pcreso at pcreso.com ]
> > Sent: Friday, March 02, 2012 2:09 PM
> > To: Corey Carpenter
> > Cc: mapserver-users at lists.osgeo.org
> > Subject: Re: [mapserver-users] Setup advice please?
> >
> > Hi Corey,
> >
> > Thanks for the suggestion.
> >
> > At this stage the requirement is for a stable production system.
> Mapserver 6.2 & mapcache are not, still being under development.
> >
> > I realise that this does not preclude the software running robustly, but
> it will not be an acceptable solution in this case. Mapserver 6.01, as the
> latest stable release, is the required platform.
> >
> > Hence my suggestion of Tilecache & MapProxy as suitable applications,
> which are available as binary packages ready to install.
> >
> >
> > Thanks,
> >
> > Brent Wood
> >
> > --- On Sat, 3/3/12, Corey Carpenter >
> wrote:
> >
> > From: Corey Carpenter
> >
> > Subject: Re: [mapserver-users] Setup advice please?
> > To: pcreso at pcreso.com
> > Cc: mapserver-users at lists.osgeo.org
> > Date: Saturday, March 3, 2012, 8:40 AM
> >
> > Unless I read your question incorrectly, this is the main function of
> mapcache. You will need to use a fairly new version of mapserver 6.2 /
> trunk. You will be able to seed your cache, so the tiles you define are
> available on the first request.
> >
> > I have used tilecache and other methods, but I have no experience with
> mapcache.
> >
> > On Fri, Mar 2, 2012 at 1:10 PM,
> >>
> wrote:
> > Hi,
> >
> > Hopefully someone here can help.
> >
> > I have about 50Gb of high resolution aerial photos (geotiffs) to set up
> as a cached WMS service.
> >
> > We have a mapserver setup ready to use, with backups, etc. already
> sorted. The dataset is competely static.
> >
> > I'd like to set up MapProxy or Tilecache as a tiled WMS service for an
> OpenLayers front end, and possible other public use.
> >
> > I'm happy with a dynamically populated cache, rather than a pre-filled
> one, so the cache is built up as it is used.
> >
> > Can anyone experienced in this area suggest what sort of time is
> reasonable to expect a competent team to set this up in a professional way,
> with reasonable supporting docs, etc? Remembering we have a supported
> server to work with.
> >
> > It has been asked for by a small local environmental interest group with
> zero funds, and I need to get a reasonable commercial cost for such an
> exercise to start with.
> >
> > Thanks,
> >
> > Brent Wood
> >
> > ..
>
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>
>
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From aperi2007 at gmail.com Sun Mar 4 14:42:15 2012
From: aperi2007 at gmail.com (Andrea Peri)
Date: Sun, 4 Mar 2012 23:42:15 +0100
Subject: [mapserver-users] Error: Failed to draw layer
Message-ID:
Hi,
I'm try-ing to set a mapserver as a wms server.
But I'm having this error:
On the getMap request I have this error:
(No error code was reported)
The WMS vendor also reported:
msDrawMap(): Image handling error. Failed to draw layer named 'idprovince2'.
msOGRFileOpen(): OGR error. Error parsing OGR connection information in
layer `idprovince2'
My settings for layer is this:
LAYER
NAME "idprovince2"
STATUS ON
TYPE POLYGON
CONNECTIONTYPE OGR
DATA "/home/..../shapefile_polygon"
PROJECTION
"init=epsg:3003"
END
METADATA
'wms_title' 'Confini Provinciali2'
END
CLASS
NAME 'am_prov_region_am_prov'
STYLE
WIDTH 0.91
OUTLINECOLOR 0 0 0
COLOR 103 132 169
ANTIALIAS true
END
LABEL
POSITION auto
SIZE 8
COLOR 0 0 0
TYPE truetype
FONT arial
END
END
END
I try many settings, but nothing change :(
Any hints is welcome,
thx
--
-----------------
Andrea Peri
. . . . . . . . .
qwerty ?????
-----------------
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From Steve.Lime at state.mn.us Sun Mar 4 15:54:07 2012
From: Steve.Lime at state.mn.us (Lime, Steve D (DNR))
Date: Sun, 4 Mar 2012 23:54:07 +0000
Subject: [mapserver-users] Error: Failed to draw layer
In-Reply-To:
References:
Message-ID:
Why use OGR and not the native shape file driver in MapSever? What happens if you comment out the connection type?
Steve
________________________________________
From: mapserver-users-bounces at lists.osgeo.org [mapserver-users-bounces at lists.osgeo.org] on behalf of Andrea Peri [aperi2007 at gmail.com]
Sent: Sunday, March 04, 2012 4:42 PM
To: mapserver-users at lists.osgeo.org
Subject: [mapserver-users] Error: Failed to draw layer
Hi,
I'm try-ing to set a mapserver as a wms server.
But I'm having this error:
On the getMap request I have this error:
(No error code was reported)
The WMS vendor also reported:
msDrawMap(): Image handling error. Failed to draw layer named 'idprovince2'.
msOGRFileOpen(): OGR error. Error parsing OGR connection information in layer `idprovince2'
My settings for layer is this:
LAYER
NAME "idprovince2"
STATUS ON
TYPE POLYGON
CONNECTIONTYPE OGR
DATA "/home/..../shapefile_polygon"
PROJECTION
"init=epsg:3003"
END
METADATA
'wms_title' 'Confini Provinciali2'
END
CLASS
NAME 'am_prov_region_am_prov'
STYLE
WIDTH 0.91
OUTLINECOLOR 0 0 0
COLOR 103 132 169
ANTIALIAS true
END
LABEL
POSITION auto
SIZE 8
COLOR 0 0 0
TYPE truetype
FONT arial
END
END
END
I try many settings, but nothing change :(
Any hints is welcome,
thx
--
-----------------
Andrea Peri
. . . . . . . . .
qwerty ?????
-----------------
From Jukka.Rahkonen at mmmtike.fi Mon Mar 5 00:07:11 2012
From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka)
Date: Mon, 5 Mar 2012 08:07:11 +0000
Subject: [mapserver-users] RE: WMS for netcdf [SEC=UNCLASSIFIED]
In-Reply-To: <1330874381473-4545262.post@n6.nabble.com>
References:
,
<1330874381473-4545262.post@n6.nabble.com>
Message-ID: <84446DEF76453C439E9E97E438E13A63082C68@suutari.haapa.mmm.fi>
Hi,
It would be nice to be able to change some processing directives through variable substitution. Multichannel satellite images are one obvious use case. I have predefined a few most common settings for 7-channel Landsat images as separate mapfiles but it would more convenient and flexible to let users select the BANDS, SCALE and LUT they want. It would be useful also when some other settings would suit better for printing than those adjusted for on-screen use.
Would others find it reasonable to add PROCESSING to the items which support variable substitution?
-Jukka Rahkonen-
teknocreator wrote:
Kathleen,
I've searched through the lists and on the web for an answer to your issue
as I have it too only with GRIB data. The MapServer docs seem to indicate
that variable substitution won't work for the PROCESSING directive.
Therefore I tried several variations "Changing map file parameters via a
form or a URL". What should've worked here considering that part of the
documentation is to add this to the GetMap request string:
map[layer].processing[0]="BANDS=01"
because it was the first PROCESSING directive for my layer and it needs a
string for the directive. But, I received an msloadLayer error. I tried a
few variations but all ended up with the same error. I've seen folks have a
similar issue with this in the MS Users list with no solution at present.
While what Puneet wrote may be a solution for you and possibly our GRIB data
as well, it seems like a much more complicated way just to get at a
particular band in the file. I do see why this has been done as NetCDF does
come in many flavors and there's the possibility of 4 dimensions in the
file. There are many links on using WCS with NetCDF, a good number coming
from UCAR.
Still, this looks like a possible code problem where the ability to change
map file parameter via a URL does not work in this case or else the ability
to change BANDS needs to be added to variable substitution.
Hopefully, someone from MapServer can help here. Looks like I'm going to be
investigating WCS, though. I'll definitely be checking back on this one.
--
View this message in context: http://osgeo-org.1560.n6.nabble.com/WMS-for-netcdf-SEC-UNCLASSIFIED-tp4519496p4545262.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 aperi2007 at gmail.com Mon Mar 5 02:30:40 2012
From: aperi2007 at gmail.com (Andrea Peri)
Date: Mon, 5 Mar 2012 11:30:40 +0100
Subject: [mapserver-users] Error: Failed to draw layer
In-Reply-To:
References:
Message-ID:
Hi Steve,
thx for reply.
If I comment the connectiontype it work. Great. :)
I tried using "local" instead of "ogr" but it gave a parser-error.
I don't tried before removing the connectiontype.
thanks,
Andrea.
2012/3/5 Lime, Steve D (DNR)
> Why use OGR and not the native shape file driver in MapSever? What happens
> if you comment out the connection type?
>
> Steve
>
> ________________________________________
> From: mapserver-users-bounces at lists.osgeo.org [
> mapserver-users-bounces at lists.osgeo.org] on behalf of Andrea Peri [
> aperi2007 at gmail.com]
> Sent: Sunday, March 04, 2012 4:42 PM
> To: mapserver-users at lists.osgeo.org
> Subject: [mapserver-users] Error: Failed to draw layer
>
> Hi,
>
> I'm try-ing to set a mapserver as a wms server.
> But I'm having this error:
>
> On the getMap request I have this error:
>
> (No error code was reported)
>
> The WMS vendor also reported:
>
> msDrawMap(): Image handling error. Failed to draw layer named
> 'idprovince2'.
>
> msOGRFileOpen(): OGR error. Error parsing OGR connection information in
> layer `idprovince2'
>
>
> My settings for layer is this:
>
> LAYER
> NAME "idprovince2"
> STATUS ON
> TYPE POLYGON
> CONNECTIONTYPE OGR
> DATA "/home/..../shapefile_polygon"
> PROJECTION
> "init=epsg:3003"
> END
> METADATA
> 'wms_title' 'Confini Provinciali2'
> END
> CLASS
> NAME 'am_prov_region_am_prov'
> STYLE
> WIDTH 0.91
> OUTLINECOLOR 0 0 0
> COLOR 103 132 169
> ANTIALIAS true
> END
> LABEL
> POSITION auto
> SIZE 8
> COLOR 0 0 0
> TYPE truetype
> FONT arial
> END
> END
> END
>
> I try many settings, but nothing change :(
>
> Any hints is welcome,
>
> thx
>
> --
> -----------------
> Andrea Peri
> . . . . . . . . .
> qwerty ?????
> -----------------
>
>
>
--
-----------------
Andrea Peri
. . . . . . . . .
qwerty ?????
-----------------
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From beyhan at deprem.gov.tr Mon Mar 5 04:12:44 2012
From: beyhan at deprem.gov.tr (Murat Beyhan)
Date: Mon, 05 Mar 2012 14:12:44 +0200
Subject: [mapserver-users] how can I adjust size of label
Message-ID: <1330949564.5317.25.camel@localhost>
Dear All,
I plot map file which is including villages. Data stored in MySQL and
read via OGR. My question is it possible to adjust size of the label
changing automatically considering the zoom level?
I mean when I zoom in size of the label also will increase, and decrease
when I zoom out.
is STYLEITEM "AUTO" is a way to do? or which doc will be useful to do
this.
regards
Murat
--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
From armin.burger at gmx.net Mon Mar 5 04:24:17 2012
From: armin.burger at gmx.net (Armin Burger)
Date: Mon, 05 Mar 2012 13:24:17 +0100
Subject: [mapserver-users] RE: WMS for netcdf [SEC=UNCLASSIFIED]
In-Reply-To: <84446DEF76453C439E9E97E438E13A63082C68@suutari.haapa.mmm.fi>
References:
,
<1330874381473-4545262.post@n6.nabble.com>
<84446DEF76453C439E9E97E438E13A63082C68@suutari.haapa.mmm.fi>
Message-ID: <20120305122417.209760@gmx.net>
Hello everybody
there is a quite flexible and easy to use solution to achieve all these requirements with additional (non-standard) request parameters: using MapScript bindings for OWS/WxS requests (see e.g. http://mapserver.org/ogc/mapscript.html).
I use both PHP and Python bindings and everything works very well. If PHP or Python are used via an Apache module I also could not measure real differences regarding speed of the responses (max 5% slower than mapserv CGI/FCGI, if at all).
A standard WxS handling script has roughly 10-15 lines of code. The great advantage is that between handling the request parameters and returning the response to the client you have any conceivable possibilities to modify the map or layers via MapScript. This can take into account any key-value pairs from the request, and you can handle more complicated logic than with pure variable substitution.
If there is interest I can provide some more code samples, could also be via the MapServer wiki.
Regards
Armin
-------- Original-Nachricht --------
> Datum: Mon, 5 Mar 2012 08:07:11 +0000
> Von: Rahkonen Jukka
> An: \'teknocreator\' , "\'mapserver-users at lists.osgeo.org\'"
> Betreff: Re: [mapserver-users] RE: WMS for netcdf [SEC=UNCLASSIFIED]
> Hi,
>
> It would be nice to be able to change some processing directives through
> variable substitution. Multichannel satellite images are one obvious use
> case. I have predefined a few most common settings for 7-channel Landsat
> images as separate mapfiles but it would more convenient and flexible to let
> users select the BANDS, SCALE and LUT they want. It would be useful also when
> some other settings would suit better for printing than those adjusted for
> on-screen use.
>
> Would others find it reasonable to add PROCESSING to the items which
> support variable substitution?
>
> -Jukka Rahkonen-
>
> teknocreator wrote:
>
> Kathleen,
>
> I've searched through the lists and on the web for an answer to your issue
> as I have it too only with GRIB data. The MapServer docs seem to indicate
> that variable substitution won't work for the PROCESSING directive.
> Therefore I tried several variations "Changing map file parameters via a
> form or a URL". What should've worked here considering that part of the
> documentation is to add this to the GetMap request string:
>
> map[layer].processing[0]="BANDS=01"
>
> because it was the first PROCESSING directive for my layer and it needs a
> string for the directive. But, I received an msloadLayer error. I tried
> a
> few variations but all ended up with the same error. I've seen folks have
> a
> similar issue with this in the MS Users list with no solution at present.
>
> While what Puneet wrote may be a solution for you and possibly our GRIB
> data
> as well, it seems like a much more complicated way just to get at a
> particular band in the file. I do see why this has been done as NetCDF
> does
> come in many flavors and there's the possibility of 4 dimensions in the
> file. There are many links on using WCS with NetCDF, a good number coming
> from UCAR.
>
> Still, this looks like a possible code problem where the ability to change
> map file parameter via a URL does not work in this case or else the
> ability
> to change BANDS needs to be added to variable substitution.
>
> Hopefully, someone from MapServer can help here. Looks like I'm going to
> be
> investigating WCS, though. I'll definitely be checking back on this one.
>
> --
> View this message in context:
> http://osgeo-org.1560.n6.nabble.com/WMS-for-netcdf-SEC-UNCLASSIFIED-tp4519496p4545262.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
--
NEU: FreePhone 3-fach-Flat mit kostenlosem Smartphone!
Jetzt informieren: http://mobile.1und1.de/?ac=OM.PW.PW003K20328T7073a
From jmckenna at gatewaygeomatics.com Mon Mar 5 04:47:55 2012
From: jmckenna at gatewaygeomatics.com (Jeff McKenna)
Date: Mon, 05 Mar 2012 08:47:55 -0400
Subject: [mapserver-users] Setup advice please?
In-Reply-To: <1330744930.46015.YahooMailClassic@web160702.mail.bf1.yahoo.com>
References: <1330744930.46015.YahooMailClassic@web160702.mail.bf1.yahoo.com>
Message-ID: <4F54B5FB.9040104@gatewaygeomatics.com>
On 12-03-02 11:22 PM, pcreso at pcreso.com wrote:
>
> That's about my take on it, maybe a couple of hours, but I've just been
> quoted 3 days by a support team to do this, at NZ$170/hr. (current exch
> rate is around .77, so maybe $2600US??? for the job)
>
I will give feedback here, as I am one of those possible 'support teams'
out there.
You are talking to several power users here on this list saying 'a few
hours', for their own time. This 'support team' provided you an
accurate estimate of time, as many issues can occur during such a setup
and they must account for that.
I would go with this interested support team and get the job done.
Don't question them publicly on a list, just move forward and they will
do an excellent job for you I am sure (even though I don't know the team
you refer to).
Go for it.
-jeff
--
Jeff McKenna
MapServer Consulting and Training Services
http://www.gatewaygeomatics.com/
From teknocreator at gmail.com Mon Mar 5 12:20:43 2012
From: teknocreator at gmail.com (David Miller)
Date: Mon, 5 Mar 2012 15:20:43 -0500
Subject: [mapserver-users] MapServer 6.0.1 ignoring WMS options?
Message-ID:
Hi list!
We have MapServer 6.0.1 installed on our Linux system (CentOS 5.7) and have
encountered an issue where the WMS options (i.e. BBOX, HEIGHT, WIDTH) seem
to be ignored for a GetMap request. I have checked options for and output
from running the configure script for building the executable. The
--with-proj and --with-wms options are specified (though one shouldn't need
it if --with-proj is there correctly). Output from running the configure
script indicates that the -DUSE_WMS_SVR compiler switch was on when
compiling the mapwms.c code, which is where that becomes important. I
examined that code and it's here that MapServer first uses the extents in
the mapfile as defaults but then adjusts that based on the BBOX, HEIGHT,
and WIDTH options in the GetMap request. Running -v on the resulting
executable also indicates SUPPORTS=WMS_SERVER.
The call to MapServer does produce an image but for the entire EXTENT of
the data that's specified in the mapfile. Doesn't make any difference
whether it's a raster or point layer.
Example REQUEST:
http://(our main site
address)/cgi-bin/mapserv?REQUEST=GetMap&SERVICE=WMS&VERSION=1.1.1&FORMAT=image%2Fpng&MODE=map&MAP=wxmap%2Fglmpvis.map&LAYERS=mosaic&SRS=EPSG%3A3857&TRANSPARENT=TRUE&STYLES=&BBOX=-13807095.590531%203308267.5857033%20-12241665.251469%204482340.3400001&WIDTH=640&HEIGHT=480
First part of the mapfile:
MAP
NAME "testgrib"
IMAGETYPE PNG
EXTENT -14000000 3000000 -7000000 7000000
As you can see, the EXTENT in the mapfile are different than the BBOX
values. When I put the BBOX values in the EXTENT area in the mapfile, the
image lines up with the map background as it should.
So for some reason, it appears that something isn't being set correctly to
allow our MapServer to accept standard WMS options. Perhaps somehow, this
value of USE_WMS_SVR in mapwms.c isn't getting set correctly? But, by all
the output we've checked, it looks like MapServer gets built correctly and
to enable it as a WMS server.
Anyone else with a similar issue or somewhere else we should check for a
problem?
Thanks for any help!
Dave M
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From armin.burger at gmx.net Mon Mar 5 12:49:16 2012
From: armin.burger at gmx.net (Armin Burger)
Date: Mon, 05 Mar 2012 21:49:16 +0100
Subject: [mapserver-users] MapServer 6.0.1 ignoring WMS options?
In-Reply-To:
References:
Message-ID: <4F5526CC.6010108@gmx.net>
David
According to the WMS specs, BBOX parameters for getMap requests are
comma-separated, you are using spaces only (url-encoded as %20). I would
expect MS to return an exception instead of ignoring this.
armin
On 05/03/2012 21:20, David Miller wrote:
> Hi list!
>
> We have MapServer 6.0.1 installed on our Linux system (CentOS 5.7) and
> have encountered an issue where the WMS options (i.e. BBOX, HEIGHT,
> WIDTH) seem to be ignored for a GetMap request. I have checked options
> for and output from running the configure script for building the
> executable. The --with-proj and --with-wms options are specified
> (though one shouldn't need it if --with-proj is there correctly).
> Output from running the configure script indicates that the-DUSE_WMS_SVR
> compiler switch was on when compiling the mapwms.c code, which is where
> that becomes important. I examined that code and it's here that
> MapServer first uses the extents in the mapfile as defaults but then
> adjusts that based on the BBOX, HEIGHT, and WIDTH options in the GetMap
> request. Running -v on the resulting executable also indicates
> SUPPORTS=WMS_SERVER.
>
> The call to MapServer does produce an image but for the entire EXTENT of
> the data that's specified in the mapfile. Doesn't make any difference
> whether it's a raster or point layer.
>
> Example REQUEST:
>
> http://(our main site
> address)/cgi-bin/mapserv?REQUEST=GetMap&SERVICE=WMS&VERSION=1.1.1&FORMAT=image%2Fpng&MODE=map&MAP=wxmap%2Fglmpvis.map&LAYERS=mosaic&SRS=EPSG%3A3857&TRANSPARENT=TRUE&STYLES=&BBOX=-13807095.590531%203308267.5857033%20-12241665.251469%204482340.3400001&WIDTH=640&HEIGHT=480
>
> First part of the mapfile:
>
> MAP
> NAME "testgrib"
> IMAGETYPE PNG
> EXTENT -14000000 3000000 -7000000 7000000
>
> As you can see, the EXTENT in the mapfile are different than the BBOX
> values. When I put the BBOX values in the EXTENT area in the mapfile,
> the image lines up with the map background as it should.
>
> So for some reason, it appears that something isn't being set correctly
> to allow our MapServer to accept standard WMS options. Perhaps somehow,
> this value of USE_WMS_SVR in mapwms.c isn't getting set correctly? But,
> by all the output we've checked, it looks like MapServer gets built
> correctly and to enable it as a WMS server.
>
> Anyone else with a similar issue or somewhere else we should check for a
> problem?
>
> Thanks for any help!
>
> Dave M
>
>
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
From woodbri at swoodbridge.com Mon Mar 5 12:48:01 2012
From: woodbri at swoodbridge.com (Stephen Woodbridge)
Date: Mon, 05 Mar 2012 15:48:01 -0500
Subject: [mapserver-users] tile4ms broken on 6.0.2??
Message-ID: <4F552681.7000301@swoodbridge.com>
Hi all,
I just spent a few hours chasing a problem that turns out to look like a
tile4ms is broken on 6.0.2 as it creates NullShape for each record.
Anybody else run into this problem? Can anyone else verify this? Or is
it specific to my data/system/etc for some reason.
-Steve W
woodbri at mappy:/u/data/tgr2011-maps$ shpdump tidx-PRISECROADS-S | head
Shapefile Type: Polygon # of Shapes: 56
File Bounds: ( -170.834, -14.367,0,0)
to ( 145.815, 70.192,0,0)
Shape:0 (NullShape) nVertices=0, nParts=0
Bounds:( 0.000, 0.000, 0, 0)
to ( 0.000, 0.000, 0, 0)
woodbri at mappy:/u/data/tgr2011-maps$ /u/software/mapserver-5.6.8/tile4ms
tidx-PRISECROADS-S.in tidx-PRISECROADS-S
Processed 56 of 56 files
woodbri at mappy:/u/data/tgr2011-maps$ shpdump tidx-PRISECROADS-S | head
Shapefile Type: Polygon # of Shapes: 56
File Bounds: ( -170.834, -14.367,0,0)
to ( 145.815, 70.192,0,0)
Shape:0 (Polygon) nVertices=5, nParts=1
Bounds:( -88.468, 30.229, 0, 0)
to ( -84.995, 35.006, 0, 0)
( -88.468, 30.229, 0, 0) Ring
( -88.468, 35.006, 0, 0)
From Michael.Smith at usace.army.mil Mon Mar 5 12:53:26 2012
From: Michael.Smith at usace.army.mil (Smith, Michael ERDC-CRREL-NH)
Date: Mon, 5 Mar 2012 20:53:26 +0000
Subject: [mapserver-users] MapServer 6.0.1 ignoring WMS options?
In-Reply-To:
Message-ID:
David,
You aren't making a WMS request. You are making a MapServer request. When making a map server request, you use mapext=minx+miny+maxx+maxy&mode=map
With WMS, you'd request SERVICE=WMS&REQUEST=GETMAP&BBOX=minx,miny,maxx,maxy. Note there is no mode=map
See http://mapserver.org/ogc/wms_server.html for details on a proper WMS request.
Mike
From: David Miller >
Date: Mon, 5 Mar 2012 15:20:43 -0500
To: >
Subject: [mapserver-users] MapServer 6.0.1 ignoring WMS options?
Hi list!
We have MapServer 6.0.1 installed on our Linux system (CentOS 5.7) and have encountered an issue where the WMS options (i.e. BBOX, HEIGHT, WIDTH) seem to be ignored for a GetMap request. I have checked options for and output from running the configure script for building the executable. The --with-proj and --with-wms options are specified (though one shouldn't need it if --with-proj is there correctly). Output from running the configure script indicates that the -DUSE_WMS_SVR compiler switch was on when compiling the mapwms.c code, which is where that becomes important. I examined that code and it's here that MapServer first uses the extents in the mapfile as defaults but then adjusts that based on the BBOX, HEIGHT, and WIDTH options in the GetMap request. Running -v on the resulting executable also indicates SUPPORTS=WMS_SERVER.
The call to MapServer does produce an image but for the entire EXTENT of the data that's specified in the mapfile. Doesn't make any difference whether it's a raster or point layer.
Example REQUEST:
http://(our main site address)/cgi-bin/mapserv?REQUEST=GetMap&SERVICE=WMS&VERSION=1.1.1&FORMAT=image%2Fpng&MODE=map&MAP=wxmap%2Fglmpvis.map&LAYERS=mosaic&SRS=EPSG%3A3857&TRANSPARENT=TRUE&STYLES=&BBOX=-13807095.590531%203308267.5857033%20-12241665.251469%204482340.3400001&WIDTH=640&HEIGHT=480
First part of the mapfile:
MAP
NAME "testgrib"
IMAGETYPE PNG
EXTENT -14000000 3000000 -7000000 7000000
As you can see, the EXTENT in the mapfile are different than the BBOX values. When I put the BBOX values in the EXTENT area in the mapfile, the image lines up with the map background as it should.
So for some reason, it appears that something isn't being set correctly to allow our MapServer to accept standard WMS options. Perhaps somehow, this value of USE_WMS_SVR in mapwms.c isn't getting set correctly? But, by all the output we've checked, it looks like MapServer gets built correctly and to enable it as a WMS server.
Anyone else with a similar issue or somewhere else we should check for a problem?
Thanks for any help!
Dave M
_______________________________________________ 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 jaykayone at gmail.com Mon Mar 5 13:30:40 2012
From: jaykayone at gmail.com (Jeff Konnen)
Date: Mon, 5 Mar 2012 22:30:40 +0100
Subject: [mapserver-users] GDALDatasetRasterIO() failed: IReadBlock failed
Message-ID:
Hi,
I've configured a map - file with GDAL-WMS to reproject WMSC-Files.
It works more or less. I'm using 11 different scales where I calculate new tiles in my SRS and on 7 out of 11 levels, the results are OK.
On the other levels, I keep getting the following error-message:
msDrawMap(): Image handling error. Failed to draw layer named 'ORTHO_IGNF'.
drawGDAL(): Unable to access file. GDALDatasetRasterIO() failed: /home/mapserver/config/IGN/ortho_wms.txt, band 1: IReadBlock failed at X offset 2991, Y offset 2553
Here is my GDAL_WMS - config:
1.1.1
my_url_was_here
IGNF:GEOPORTALFXX
image/jpeg
my_layer_name_was_here
-1048576
6815744
2097152
3670016
6291456
6291456
13
+title=EPSG:310024802 +proj=eqc +nadgrids=null +towgs84=0.0000,0.0000,0.0000 +a=6378137.0000 +rf=298.2572221010000 +lat_0=0.000000000 +lon_0=0.000000000 +lat_ts=46.500000000 +x_0=0.000 +y_0=0.000 +units=m +wktext +no_defs
3
256
256
12
And here my mapfile:
MAP
NAME "LIMADMIN"
PROJECTION
"init=epsg:2169"
END
WEB
METADATA
"wms_srs" "EPSG:2169 EPSG:4326 EPSG:4258"
"wms_extent" "46000 57000 106000 141000"
"ows_enable_request" "*"
END
IMAGEPATH "/tmp"
END
EXTENT 46000 57000 106000 141000
UNITS METERS
OUTPUTFORMAT
NAME "pnga"
MIMETYPE "image/png"
DRIVER "AGG/PNG"
EXTENSION "png"
IMAGEMODE "RGBA"
TRANSPARENT TRUE
FORMATOPTION "INTERLACE=OFF"
END
LAYER
NAME "ORTHO_IGNF"
DATA ortho_wms.txt
TYPE RASTER
STATUS ON
DUMP FALSE
PROCESSING "DITHER=YES"
PROCESSING "RESAMPLE=BILINEAR"
METADATA
"wms_name" "ORTHO_IGNF"
"wms_extent" "46000 57000 106000 141000"
END
PROJECTION
"title=EPSG:310024802" "proj=eqc"
"nadgrids=null"
"towgs84=0.0000,0.0000,0.0000"
"a=6378137.0000"
"rf=298.2572221010000"
"lat_0=0.000000000"
"lon_0=0.000000000"
"lat_ts=46.500000000"
"x_0=0.000"
"y_0=0.000"
"units=m"
"wktext"
"no_defs"
END
END
END
Any idea where this could be going wrong?
Thanks in advance and best regards
Jeff
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From MarkVolz at co.lyon.mn.us Mon Mar 5 13:44:06 2012
From: MarkVolz at co.lyon.mn.us (Mark Volz)
Date: Mon, 5 Mar 2012 21:44:06 +0000
Subject: [mapserver-users] force labels to fit in polygons
Message-ID: <36CA828A36E29F45B7CF0A1766E5DFA30E2F9C@swmail01.r8nssis.local>
Hello,
Is there a way to force labels to fit inside of a polygon, even if a polygon is irregularly shaped? I noticed that with POSITION AUTO labels are falling outside of my soils boundary.
Thanks
Mark Volz
GIS Specialist
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From woodbri at swoodbridge.com Mon Mar 5 13:50:42 2012
From: woodbri at swoodbridge.com (Stephen Woodbridge)
Date: Mon, 05 Mar 2012 16:50:42 -0500
Subject: [mapserver-users] force labels to fit in polygons
In-Reply-To: <36CA828A36E29F45B7CF0A1766E5DFA30E2F9C@swmail01.r8nssis.local>
References: <36CA828A36E29F45B7CF0A1766E5DFA30E2F9C@swmail01.r8nssis.local>
Message-ID: <4F553532.2060708@swoodbridge.com>
On 3/5/2012 4:44 PM, Mark Volz wrote:
> Hello,
> Is there a way to force labels to fit inside of a polygon, even if a
> polygon is irregularly shaped? I noticed that with POSITION AUTO labels
> are falling outside of my soils boundary.
The short answer is no. It is an interesting problem, but it does not
have a guaranteed result as the label might be too big to fit
regardless. I am not even sure of the algorithm should be for something
like this. There are a lot of parameters like:
font
font size
wrapping the text
changing the angle
finding the longest line, arc or smooth polyline that fits withing the
polygon and then have the text follow that line
These are all computationally expensive to do on the fly while
rendering. Ideally these should be worked out in advance then you can
supply the attributes to the label via binding columns in the data.
-SteveW
From K.Hirst at bom.gov.au Mon Mar 5 14:06:57 2012
From: K.Hirst at bom.gov.au (Kathleen Hirst)
Date: Tue, 6 Mar 2012 09:06:57 +1100
Subject: [mapserver-users] RE: WMS for netcdf [SEC=UNCLASSIFIED]
In-Reply-To: <20120305122417.209760@gmx.net>
Message-ID:
Hi Armin,
Thanks for that. I would prefer not to use MapScript, but if that is the only way, I would be interested in some more code samples.
Regards,
Kathleen
-----Original Message-----
From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Armin Burger
Sent: Monday, 5 March 2012 11:24 PM
To: Rahkonen Jukka; mapserver-users at lists.osgeo.org; teknocreator at gmail.com
Subject: Re: [mapserver-users] RE: WMS for netcdf [SEC=UNCLASSIFIED]
Hello everybody
there is a quite flexible and easy to use solution to achieve all these requirements with additional (non-standard) request parameters: using MapScript bindings for OWS/WxS requests (see e.g. http://mapserver.org/ogc/mapscript.html).
I use both PHP and Python bindings and everything works very well. If PHP or Python are used via an Apache module I also could not measure real differences regarding speed of the responses (max 5% slower than mapserv CGI/FCGI, if at all).
A standard WxS handling script has roughly 10-15 lines of code. The great advantage is that between handling the request parameters and returning the response to the client you have any conceivable possibilities to modify the map or layers via MapScript. This can take into account any key-value pairs from the request, and you can handle more complicated logic than with pure variable substitution.
If there is interest I can provide some more code samples, could also be via the MapServer wiki.
Regards
Armin
-------- Original-Nachricht --------
> Datum: Mon, 5 Mar 2012 08:07:11 +0000
> Von: Rahkonen Jukka
> An: \'teknocreator\' ,
> "\'mapserver-users at lists.osgeo.org\'"
>
> Betreff: Re: [mapserver-users] RE: WMS for netcdf [SEC=UNCLASSIFIED]
> Hi,
>
> It would be nice to be able to change some processing directives
> through variable substitution. Multichannel satellite images are one
> obvious use case. I have predefined a few most common settings for
> 7-channel Landsat images as separate mapfiles but it would more
> convenient and flexible to let users select the BANDS, SCALE and LUT
> they want. It would be useful also when some other settings would suit
> better for printing than those adjusted for on-screen use.
>
> Would others find it reasonable to add PROCESSING to the items which
> support variable substitution?
>
> -Jukka Rahkonen-
>
> teknocreator wrote:
>
> Kathleen,
>
> I've searched through the lists and on the web for an answer to your
> issue as I have it too only with GRIB data. The MapServer docs seem
> to indicate that variable substitution won't work for the PROCESSING directive.
> Therefore I tried several variations "Changing map file parameters via
> a form or a URL". What should've worked here considering that part of
> the documentation is to add this to the GetMap request string:
>
> map[layer].processing[0]="BANDS=01"
>
> because it was the first PROCESSING directive for my layer and it
> needs a string for the directive. But, I received an msloadLayer
> error. I tried a few variations but all ended up with the same error.
> I've seen folks have a similar issue with this in the MS Users list
> with no solution at present.
>
> While what Puneet wrote may be a solution for you and possibly our
> GRIB data as well, it seems like a much more complicated way just to
> get at a particular band in the file. I do see why this has been done
> as NetCDF does come in many flavors and there's the possibility of 4
> dimensions in the file. There are many links on using WCS with
> NetCDF, a good number coming from UCAR.
>
> Still, this looks like a possible code problem where the ability to
> change map file parameter via a URL does not work in this case or else
> the ability to change BANDS needs to be added to variable
> substitution.
>
> Hopefully, someone from MapServer can help here. Looks like I'm going
> to be investigating WCS, though. I'll definitely be checking back on
> this one.
>
> --
> View this message in context:
> http://osgeo-org.1560.n6.nabble.com/WMS-for-netcdf-SEC-UNCLASSIFIED-tp
> 4519496p4545262.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
--
NEU: FreePhone 3-fach-Flat mit kostenlosem Smartphone!
Jetzt informieren: http://mobile.1und1.de/?ac=OM.PW.PW003K20328T7073a
_______________________________________________
mapserver-users mailing list
mapserver-users at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users
From kguardado at gmail.com Mon Mar 5 14:24:10 2012
From: kguardado at gmail.com (Karina Guardado)
Date: Mon, 5 Mar 2012 16:24:10 -0600
Subject: [mapserver-users] problems with getinformation
Message-ID:
Hi,
I'm working with Mapserver, openlayers and mapfish on linux Debian. I have
added a option in map application to get information from a map by click
on it.
toolbar.addControl(new OpenLayers.Control.WMSGetFeatureInfo({
isDefault: true,
title: 'Info'
}),
{
iconCls: 'query',
toggleGroup: 'map'
});
toolbar.activate();
But when i click on one point for example it is looking but doesn't shoe
anything and when looking at the fireburg result I found this
msWMSFeatureInfo(): WMS server error. Unsupported INFO_FORMAT value (text/html).
I ask me if this is a problem with mapserver or with openlayers, any
help please.
thanks in advance.
regards,
Karina Guardado
El Salvador
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From teknocreator at gmail.com Mon Mar 5 17:10:17 2012
From: teknocreator at gmail.com (teknocreator)
Date: Mon, 5 Mar 2012 17:10:17 -0800 (PST)
Subject: [mapserver-users] [SOLVED] Re: MapServer 6.0.1 ignoring WMS options?
In-Reply-To:
References:
Message-ID: <1330996217332-4549753.post@n6.nabble.com>
[SOLVED]
Thanks for the replies, but first I apologize to Arman for not including the
commas in the BBOX request line. I was looking at the mapserver C code and
it's actually setup to handle either commas or spaces in the BBOX= option.
So it looks like I cut and pasted by attempt without commas here. My
initial attempts were with the commas and those also failed.
As to the second reply by Mike Smith of not using the "mode=map"...okay, I
see in the doc that it shouldn't be included in a WMS call. I tried that
for one of the point layers we've defined and it worked!! THANKS for
getting me further here!!
But the reason that I had it in there is that I had tried removing
"mode=map" with a raster layer that I'm also attempting to query. When I
tried to remove the "mode=map" there, I received an error:
msWMSLoadGetMapParams(): WMS server error. Invalid SRS given : SRS must be
valid for all requested layers.
which doesn't make sense to me at the moment from what I can see in the doc
because the layer takes on the projection of the map if different.
When I put it back in, the error went away (still had the WMS request
issue). So, I wasn't sure where exactly to look here for the problem. But,
let me end this thread, read back up on working with raster data, and then
post in another topic thread if I'm still having problems. Thanks again!
Getting closer!
--
View this message in context: http://osgeo-org.1560.n6.nabble.com/MapServer-6-0-1-ignoring-WMS-options-tp4549024p4549753.html
Sent from the Mapserver - User mailing list archive at Nabble.com.
From lists at remoteinformation.com.au Mon Mar 5 22:41:14 2012
From: lists at remoteinformation.com.au (Ben Madin)
Date: Tue, 6 Mar 2012 14:41:14 +0800
Subject: [mapserver-users] Setup advice please?
In-Reply-To: <20120302201332.BBC59E00F31@lists.osgeo.org>
References: <20120302201332.BBC59E00F31@lists.osgeo.org>
Message-ID: <9BA860F8-986F-4084-9F91-B6984CFD0053@remoteinformation.com.au>
G'day Brent,
On 03/03/2012, at 4:13 AM, mapserver-users-request at lists.osgeo.org wrote:
> Hopefully someone here can help.
>
> I have about 50Gb of high resolution aerial photos (geotiffs) to set up as a cached WMS service.
>
> We have a mapserver setup ready to use, with backups, etc. already sorted. The dataset is competely static.
>
> I'd like to set up MapProxy or Tilecache as a tiled WMS service for an OpenLayers front end, and possible other public use.
>
> I'm happy with a dynamically populated cache, rather than a pre-filled one, so the cache is built up as it is used.
>
> Can anyone experienced in this area suggest what sort of time is reasonable to expect a competent team to set this up in a professional way, with reasonable supporting docs, etc? Remembering we have a supported server to work with.
>
> It has been asked for by a small local environmental interest group with zero funds, and I need to get a reasonable commercial cost for such an exercise to start with.
We are happy with tilecache - probably several orders of magnitude improvement in speed, but more importantly was the reduced pressure on the cpu for tiled maps.
I suspect others are right - if you want to install tile cache, '''and you know what you are doing''', 35 minutes is about right (I did it yesterday on my laptop with the current .tar.gz for a workshop)
If you want a quick summary of the steps to do this, I suspect another hour should be adequate.
But, if you want a bomb-proof explanation of how to re-install it with troubleshooting guide, maybe three days is reasonable - my experience is that working guides that we are happy with internally are often not acceptable to external organisations, so you can probably specify that you are happy for the dot point form.
I would however quote three days for MapProxy, because I have no experience with it?
cheers
Ben
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From raffaele.morelli at gmail.com Mon Mar 5 23:56:51 2012
From: raffaele.morelli at gmail.com (Raffaele Morelli)
Date: Tue, 6 Mar 2012 08:56:51 +0100
Subject: [mapserver-users] [SOLVED] Re: MapServer 6.0.1 ignoring WMS
options?
In-Reply-To: <1330996217332-4549753.post@n6.nabble.com>
References:
<1330996217332-4549753.post@n6.nabble.com>
Message-ID:
2012/3/6 teknocreator
> [SOLVED]
>
> Thanks for the replies, but first I apologize to Arman for not including
> the
> commas in the BBOX request line. I was looking at the mapserver C code and
> it's actually setup to handle either commas or spaces in the BBOX= option.
> So it looks like I cut and pasted by attempt without commas here. My
> initial attempts were with the commas and those also failed.
>
> As to the second reply by Mike Smith of not using the "mode=map"...okay, I
> see in the doc that it shouldn't be included in a WMS call. I tried that
> for one of the point layers we've defined and it worked!! THANKS for
> getting me further here!!
>
> But the reason that I had it in there is that I had tried removing
> "mode=map" with a raster layer that I'm also attempting to query. When I
> tried to remove the "mode=map" there, I received an error:
>
>
>
> msWMSLoadGetMapParams(): WMS server error. Invalid SRS given : SRS must be
> valid for all requested layers.
>
>
Hi,
I have a similar issue with wms request from QGis, I've removed adding
wms_srs to each layer in the form of
"wms_srs" "EPSG:epsg_code"
However, layers are listed correctly whistl I can't load a single layer but
the raster (Data Elevation Model) and got a similar issue with bbox, QGis
always report that:
msWMSLoadGetMapParams(): WMS server error. Image size out of range, WIDTH
and HEIGHT must be between 1 and 1500000 pixels.
I can load the whole bunch by selecting the top layer but it's not really
the desired result
http://cen.isprambiente.it/cgi-bin/rf_mapserv?SERVICE=WMS&VERSION=1.1.1&REQUEST=GetCapabilities
Regards
-r
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From beyhan at deprem.gov.tr Mon Mar 5 23:56:57 2012
From: beyhan at deprem.gov.tr (Murat Beyhan)
Date: Tue, 06 Mar 2012 09:56:57 +0200
Subject: [mapserver-users] ogr csv layer in mapserver
Message-ID: <1331020617.6428.10.camel@localhost>
Dear all,
I used gdal 1.7.2 and mapserver 5.2.1
I try to draw layer which data csv file as follows
filename : kyh_sta_ogr.csv
"ID","STA_ID","Latitude","Longitude"
1,0104,37.02403,35.80947
2,0118,37.02100,35.19100
.
.
.
then I use ogr for reading data from that file as follows and map file
also here
LAYER
NAME "kyh_vrt_ogr"
CONNECTIONTYPE OGR
CONNECTION '
kyh_sta_ogr.csv
wkbPoint
WGS84
'
DATA kyh_sta_ogr
STATUS default
TYPE POINT
CLASS
NAME "kyh"
SYMBOL "cpoint"
SIZE 1
COLOR 0 0 0
END
END
Please let me inform what is wrong in my code and why always trouble to
draw ogr layer in mapserver.
mapserver gives following error message
msDrawMap(): Image handling error. Failed to draw layer named
'kyh_vrt_ogr'. msOGRFileOpen(): OGR error. Open failed for OGR
connection in layer `kyh_vrt_ogr'. Failed to open datasource
`kyh_sta_ogr.csv'.
but command
ogrinfo -ro -al kyh.vrt
as follows:
ogrinfo -ro -al kyh.vrt
INFO: Open of `kyh.vrt'
using driver `VRT' successful.
Layer name: kyh_sta_ogr
Geometry: Point
Feature Count: 327
Layer SRS WKT:
GEOGCS["WGS 84",
DATUM["WGS_1984",
SPHEROID["WGS 84",6378137,298.257223563,
AUTHORITY["EPSG","7030"]],
TOWGS84[0,0,0,0,0,0,0],
AUTHORITY["EPSG","6326"]],
PRIMEM["Greenwich",0,
AUTHORITY["EPSG","8901"]],
UNIT["degree",0.0174532925199433,
AUTHORITY["EPSG","9108"]],
AUTHORITY["EPSG","4326"]]
ID: String (0.0)
STA_ID: String (0.0)
Latitude: String (0.0)
Longitude: String (0.0)
OGRFeature(kyh_sta_ogr):1
ID (String) = 1
STA_ID (String) = 0104
Latitude (String) = 37.02403
Longitude (String) = 35.80947
POINT (35.809469999999997 37.024030000000003)
OGRFeature(kyh_sta_ogr):2
ID (String) = 2
STA_ID (String) = 0118
Latitude (String) = 37.02100
Longitude (String) = 35.19100
POINT (35.191000000000003 37.021)
Murat BEYHAN
Jeofizik Y.M?h.
T.C. Ba?bakanl?k
Afet ve Acil Durum Y?netimi Ba?kanl???
Deprem Dairesi Ba?kanl???
Eski?ehir Yolu 12. Km.
Lodumlu/ANKARA
Tel: 312 2872680-1556
email:beyhan at deprem.gov.tr
--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
From neelima.emmani at iictechnologies.com Tue Mar 6 00:19:40 2012
From: neelima.emmani at iictechnologies.com (Neelima Emmani)
Date: Tue, 6 Mar 2012 08:19:40 +0000
Subject: [mapserver-users] spatial filter DWITHIN unsucessful
Message-ID:
Hi All,
I am working with openlayers, mapserver and post gis. I am facing problem with spatial filter DWITHIN and not able to discover if it is problem with mapserver or not.
Details::::
Now,
I have google map as a base map and overlayed few point layers. Now, i want to do filtering with respect to the path that's drew on the map. For this path , i am using draw feature with OpenLayers.Handler.Path. Upto here it is working fine. I can draw a line. Now using the line geometry , i am giving a spatial filter DWITHIN with a distance of 2000 and also mentioned distanceUnits as 'm'. After i draw a line , the spatial filter for DWITHIN gets activated and the layer to be filtered is completely disappearing. Now what i found is, it is throwing a WFS exception as below -
msWFSGetFeature(): WFS server error. Invalid or Unsupported FILTER in GetFeature :
(<ogc:Filter xmlns:ogc="http://www.opengis.net/ogc"><ogc:And><ogc:DWithin><ogc:PropertyName>the_geom</ogc:PropertyName><gml:MultiLineString xmlns:gml="http://www.opengis.net/gml" srsName="EPSG:900913"><gml:lineStringMember><gml:LineString><gml:coordinates decimal="." cs="," ts=" ">-79.205932617188,32.309033345029 -79.458618164063,32.267239420261 -79.851379394531,32.144067753448 -78.255615234375,33.130344611623</gml:coordinates></gml:LineString></gml:lineStringMember></gml:MultiLineString><ogc:Distance units="m">200000</ogc:Distance></ogc:DWithin><ogc:BBOX><ogc:PropertyName>the_geom</ogc:PropertyName><gml:Box xmlns:gml="http://www.opengis.net/gml" srsName="EPSG:4326"><gml:coordinates decimal="." cs="," ts=" ">-84.100341796875,29.910254
244941 -73.114013671875,34.556260876457</gml:coordinates></gml:Box></ogc:BBOX></ogc:And></ogc:Filter>
And then I checked with get Capabilities , It is spatial filter DWITHIN capable. After that I checked by copying my WFS layer url along with filter properties as below -
http://localhost/cgi-bin/mapserv.exe?map=C:/ms4w/apps/openlayers-2.10/examples/us1gc09m-addline.map&SERVICE=WFS&VERSION=1.0.0&REQUEST=GetFeature&TYPENAME=us1gc09m&Filter=%3CFilter%3E%3CDWithin%3E%3CPropertyName%3Ethe_geom%3C/PropertyName%3E%3Cgml:Point%3E%3Cgml:coordinates%3E-80.22217%2031.07991%3C/gml:coordinates%3E%3C/gml:Point%3E%3CDistance%20units=%27m%27%3E100%3C/Distance%3E%3C/DWithin%3E%3C/Filter%3E
into a browser. With this, It works well. No exception is thrown and the query is done properly. So, now, i do not understand where is the problem lies.
Can any one tell me how to solve this. How to do Spatial filter DWITHIN. And is my approach right?
Below is my JS code ---
var map;
var spatialfilter;
function init() {
map = new OpenLayers.Map("map");
//GOOGLE MAP
var base = new OpenLayers.Layer.Google("Google Hybrid", {'type': G_HYBRID_MAP});
map.addLayer(base);
//CREATE WMS LAYER
var wms = new OpenLayers.Layer.WMS("wms", "http://localhost/cgi-bin/mapserv.exe?map=C:/ms4w/apps/openlayers-2.10/examples/xyz.map",
{layers: 'xyz'}, {isBaseLayer: false, visibility: false, opacity: 0.5, singleTile: true});
map.addLayer(wms);
//VECTOR LAYER FOR PANEL
var vlayer = new OpenLayers.Layer.Vector("vlayer");
map.addLayer(vlayer);
// CREATE WFSLAYERS
//style map for points
var styleMap = new OpenLayers.StyleMap(OpenLayers.Util.applyDefaults({fillColor: "CYAN", fillOpacity: 1, strokeColor: "black"},
OpenLayers.Feature.Vector.style["default"]));
// mock up a protocol for synchronous and successful commits
var wfs_protocol = new OpenLayers.Protocol.WFS({url:"http://localhost/cgi-bin/mapserv.exe?map=C:/ms4w/apps/openlayers-2.10/examples/xyz.map&SERVICE=WFS&VERSION=1.0.0&REQUEST=GetFeature&TYPENAME=xyz",
featureType: "xyz",
srsName: "EPSG:900913"});
var wfslayer = new OpenLayers.Layer.Vector("WFS", {styleMap: styleMap,
strategies: [new OpenLayers.Strategy.BBOX()],
protocol: wfs_protocol
});
map.addLayer(wfslayer);
map.addControl(new OpenLayers.Control.MousePosition());
map.addControl(new OpenLayers.Control.LayerSwitcher());
//MAP CONTROLS
var defStyle = {strokeColor: "red", strokeOpacity: "0.7", strokeWidth: 1, fillColor: "red", pointRadius: 3, cursor: "pointer"};
var sty = OpenLayers.Util.applyDefaults(defStyle, OpenLayers.Feature.Vector.style["default"]);
var DeleteFeature = OpenLayers.Class(OpenLayers.Control, {
initialize: function(layer, options) {
OpenLayers.Control.prototype.initialize.apply(this, [options]);
this.layer = layer;
this.handler = new OpenLayers.Handler.Feature(
this, layer, {click: this.clickFeature}
);
},
clickFeature: function(feature) {
// if feature doesn't have a fid, destroy it
if(feature.fid == undefined) {
this.layer.destroyFeatures([feature]);
} else {
feature.state = OpenLayers.State.DELETE;
this.layer.events.triggerEvent("afterfeaturemodified", {feature: feature});
feature.renderIntent = "select";
this.layer.drawFeature(feature);
}
},
setMap: function(map) {
this.handler.setMap(map);
OpenLayers.Control.prototype.setMap.apply(this, arguments);
},
CLASS_NAME: "OpenLayers.Control.DeleteFeature"
});
var panel = new OpenLayers.Control.Panel(
{'displayClass': 'customEditingToolbar'}
);
var navigate = new OpenLayers.Control.Navigation({
title: "Pan Map"
});
var drawpath = new OpenLayers.Control.DrawFeature(
vlayer, OpenLayers.Handler.Path,
{
title: "Draw Path",
displayClass: "olControlDrawFeaturePath",
multi: true
}
);
var drawpoint = new OpenLayers.Control.DrawFeature(
vlayer, OpenLayers.Handler.Point,
{
title: "Add Point",
displayClass: "olControlDrawFeaturePoint",
multi: true
}
);
var box = new OpenLayers.Control.DrawFeature(vlayer,
OpenLayers.Handler.RegularPolygon, {
handlerOptions: {
sides: 4,
irregular: true
} ,
title: "Box Feature Select",
displayClass: "olControlDrawFeatureBox"});
var edit = new OpenLayers.Control.ModifyFeature(vlayer, {
title: "Modify Feature",
displayClass: "olControlModifyFeature"
});
var del = new DeleteFeature(vlayer, {title: "Delete Feature"});
panel.addControls([navigate,del, edit, box, drawpoint, drawpath]);
panel.defaultControl = navigate;
map.addControl(panel);
panel.activate();
map.zoomToMaxExtent();
map.setCenter(new OpenLayers.LonLat(-82, 28),5);
vlayer.events.on({
beforefeatureadded: function(event) { //here also tried with featureadded
var geometry = event.feature.geometry;
alert(geometry);
wfslayer.filter = new OpenLayers.Filter.Spatial({
type: OpenLayers.Filter.Spatial.DWITHIN,
property: "the_geom",
value: event.feature.geometry,
distance: 200000,
distanceUnits: 'm'
});
wfslayer.refresh({force: true});
var style_green =
{
strokeColor: "#00FF00",
strokeOpacity: 0.7,
strokeWidth: 4,
graphicName: 'square',
fillColor: '#FF0000',
pointRadius: 5
};
vlayer.drawFeature(event.feature, style_green);
alert(wfslayer.filter.evaluate(event.feature));
return false;
}
});
}
MAPFILE ----
MAP
NAME "QGIS-MAP"
# Map image size
SIZE 600 600
UNITS meters
EXTENT -101.455432 18.242354 -73.740758 33.963395
FONTSET './etc/fonts.txt'
SYMBOLSET './etc/symbols.txt'
PROJECTION
'proj=longlat'
'ellps=WGS84'
'towgs84=0,0,0,0,0,0,0'
'no_defs'
END
# Background color for the map canvas -- change as desired
IMAGECOLOR 255 255 255
IMAGEQUALITY 95
IMAGETYPE agg
OUTPUTFORMAT
NAME agg
DRIVER AGG/PNG
IMAGEMODE RGB
END
# Legend
LEGEND
IMAGECOLOR 255 255 255
STATUS ON
KEYSIZE 18 12
LABEL
TYPE BITMAP
SIZE MEDIUM
COLOR 0 0 89
END
END
# Web interface definition. Only the template parameter
# is required to display a map. See MapServer documentation
WEB
# Set IMAGEPATH to the path where MapServer should
# write its output.
IMAGEPATH '/ms4w/tmp/ms_tmp/'
# Set IMAGEURL to the url that points to IMAGEPATH
# as defined in your web server configuration
IMAGEURL '/ms_tmp/'
# WMS server settings
METADATA
'ows_title' 'QGIS-MAP'
'ows_onlineresource' 'http://localhost/cgi-bin/mapserv.exe?map=C:/ms4w/Apache/htdocs/qgismapserv_org/xyz.map&'
'ows_srs' 'EPSG:4326 EPSG:900913'
'ows_enable_request' 'GetMap GetFeature GetFeatureInfo *' ##necessary
END
#Scale range at which web interface will operate
# Template and header/footer settings
# Only the template parameter is required to display a map. See MapServer documentation
#TEMPLATE 'fooOnlyForWMSGetFeatureInfo'
END
LAYER
NAME 'xyz'
TYPE POINT
DUMP true
#TEMPLATE fooOnlyForWMSGetFeatureInfo
EXTENT -101.455432 18.242354 -73.740758 33.963395
CONNECTIONTYPE postgis
CONNECTION "dbname='postgis' host=localhost port=5432 user='postgres' password='xxx' sslmode=disable"
DATA 'the_geom FROM us1gc09m USING UNIQUE fids'
METADATA
'ows_title' 'xyz'
'wfs_typename' 'xyz'
'wfs_version' '1.0.0'
'wfs_connectiontimeout' '60'
'wfs_maxfeatures' '150'
'wfs_filter' 'GET'
'wfs_featureid' 'the_geom'
END
STATUS OFF
TRANSPARENCY 100
PROJECTION
'proj=longlat'
'ellps=WGS84'
'towgs84=0,0,0,0,0,0,0'
'no_defs'
END
CLASS
NAME 'xyz'
STYLE
SYMBOL "circle"
SIZE 7.0
OUTLINECOLOR 0 0 0
COLOR 123 143 78
END
END
END
END
Awaiting for a solution.
With Regards,
Neelima Emmani
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From raffaele.morelli at gmail.com Tue Mar 6 00:44:04 2012
From: raffaele.morelli at gmail.com (Raffaele Morelli)
Date: Tue, 6 Mar 2012 09:44:04 +0100
Subject: [mapserver-users] WMS server layer trouble
Message-ID:
Hi,
I can't get it working as desired and can't understand why.
Here is my wms online resource:
http://cen.isprambiente.it/cgi-bin/rf_mapserv?SERVICE=WMS&VERSION=1.1.1&REQUEST=GetCapabilities
If you try to load the layer "sostegni" in QGis you should get an image
size error, selecting the "CEN-RF" layer works but loads all the layer in
the mapfile.
The only layer I can import in QGis is the "Data Elevation Model".
I would like my wms server to act like
http://demo.mapserver.org/cgi-bin/wms?SERVICE=WMS&VERSION=1.1.1&REQUEST=GetCapabilities
Any hints?
regards
-r
--
*L'unica speranza di catarsi, ammesso che ne esista una, resta affidata
all'istinto di ribellione, alla rivolta non isterilita in progetti, alla
protesta violenta e viscerale.*
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From beyhan at deprem.gov.tr Tue Mar 6 00:41:26 2012
From: beyhan at deprem.gov.tr (Murat Beyhan)
Date: Tue, 06 Mar 2012 10:41:26 +0200
Subject: [mapserver-users] ogr csv layer in mapserver
In-Reply-To: <1331020617.6428.10.camel@localhost>
References: <1331020617.6428.10.camel@localhost>
Message-ID: <1331023286.6428.15.camel@localhost>
The problem solved by giving full path of csv file in map file as
follows than it works thanks
/var/www/html/dynamic/kyh_sta_ogr.csv
thanks again
Murat
On Tue, 2012-03-06 at 09:56 +0200, Murat Beyhan wrote:
> Dear all,
>
> I used gdal 1.7.2 and mapserver 5.2.1
>
> I try to draw layer which data csv file as follows
>
> filename : kyh_sta_ogr.csv
>
> "ID","STA_ID","Latitude","Longitude"
> 1,0104,37.02403,35.80947
> 2,0118,37.02100,35.19100
> .
> .
> .
>
>
> then I use ogr for reading data from that file as follows and map file
> also here
>
>
>
> LAYER
> NAME "kyh_vrt_ogr"
> CONNECTIONTYPE OGR
> CONNECTION '
>
> kyh_sta_ogr.csv
> wkbPoint
> WGS84
> y="Latitude"/>
>
> '
> DATA kyh_sta_ogr
> STATUS default
> TYPE POINT
> CLASS
> NAME "kyh"
> SYMBOL "cpoint"
> SIZE 1
> COLOR 0 0 0
> END
> END
>
> Please let me inform what is wrong in my code and why always trouble to
> draw ogr layer in mapserver.
> mapserver gives following error message
>
> msDrawMap(): Image handling error. Failed to draw layer named
> 'kyh_vrt_ogr'. msOGRFileOpen(): OGR error. Open failed for OGR
> connection in layer `kyh_vrt_ogr'. Failed to open datasource
> `kyh_sta_ogr.csv'.
>
>
>
> but command
> ogrinfo -ro -al kyh.vrt
> as follows:
>
> ogrinfo -ro -al kyh.vrt
> INFO: Open of `kyh.vrt'
> using driver `VRT' successful.
>
> Layer name: kyh_sta_ogr
> Geometry: Point
> Feature Count: 327
> Layer SRS WKT:
> GEOGCS["WGS 84",
> DATUM["WGS_1984",
> SPHEROID["WGS 84",6378137,298.257223563,
> AUTHORITY["EPSG","7030"]],
> TOWGS84[0,0,0,0,0,0,0],
> AUTHORITY["EPSG","6326"]],
> PRIMEM["Greenwich",0,
> AUTHORITY["EPSG","8901"]],
> UNIT["degree",0.0174532925199433,
> AUTHORITY["EPSG","9108"]],
> AUTHORITY["EPSG","4326"]]
> ID: String (0.0)
> STA_ID: String (0.0)
> Latitude: String (0.0)
> Longitude: String (0.0)
> OGRFeature(kyh_sta_ogr):1
> ID (String) = 1
> STA_ID (String) = 0104
> Latitude (String) = 37.02403
> Longitude (String) = 35.80947
> POINT (35.809469999999997 37.024030000000003)
>
> OGRFeature(kyh_sta_ogr):2
> ID (String) = 2
> STA_ID (String) = 0118
> Latitude (String) = 37.02100
> Longitude (String) = 35.19100
> POINT (35.191000000000003 37.021)
>
>
>
>
> Murat BEYHAN
>
> Jeofizik Y.M?h.
> T.C. Ba?bakanl?k
> Afet ve Acil Durum Y?netimi Ba?kanl???
> Deprem Dairesi Ba?kanl???
> Eski?ehir Yolu 12. Km.
> Lodumlu/ANKARA
> Tel: 312 2872680-1556
> email:beyhan at deprem.gov.tr
>
>
>
>
Murat BEYHAN
Jeofizik Y.M?h.
T.C. Ba?bakanl?k
Afet ve Acil Durum Y?netimi Ba?kanl???
Deprem Dairesi Ba?kanl???
Eski?ehir Yolu 12. Km.
Lodumlu/ANKARA
Tel: 312 2872680-1556
email:beyhan at deprem.gov.tr
--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
From Jukka.Rahkonen at mmmtike.fi Tue Mar 6 01:14:56 2012
From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka)
Date: Tue, 6 Mar 2012 09:14:56 +0000
Subject: [mapserver-users] WMS server layer trouble
In-Reply-To:
References:
Message-ID: <84446DEF76453C439E9E97E438E13A63083040@suutari.haapa.mmm.fi>
Hi,
Look at the GetCapabilities and see if Mapserver is advertising the layer extents in reasonable way. I have a feeling that QGis is trying to zoom automatically to the layer extents by taking the layer extents and some default resolution and calculating WIDTH and HEIGHT by those too. If they are wrong in the GetCapabilities there can be troubles.
For example the layer fiumi_02 shows now quite a large extents,
Fiumi II, III, IV ordine fiumi_02 epsg:32632 -1.47304E7 -9997960.0 500000.0 9997960.0
OpenJUMP shows the layers better because it does not generate oversized WIDTH and HEIGHT.
Consider adding "wms_bbox_extended" "true". It will help clients like OpenJUMP to zoom to layer extents with any supported srsName.
It could be easist and most safe to set the correct layer extenst manually in metadata.
-Jukka Rahkonen-
________________________________
Raffaele Morelli wrote:
Hi,
I can't get it working as desired and can't understand why.
Here is my wms online resource: http://cen.isprambiente.it/cgi-bin/rf_mapserv?SERVICE=WMS&VERSION=1.1.1&REQUEST=GetCapabilities
If you try to load the layer "sostegni" in QGis you should get an image size error, selecting the "CEN-RF" layer works but loads all the layer in the mapfile.
The only layer I can import in QGis is the "Data Elevation Model".
I would like my wms server to act like
http://demo.mapserver.org/cgi-bin/wms?SERVICE=WMS&VERSION=1.1.1&REQUEST=GetCapabilities
Any hints?
regards
-r
--
L'unica speranza di catarsi, ammesso che ne esista una, resta affidata all'istinto di ribellione, alla rivolta non isterilita in progetti, alla protesta violenta e viscerale.
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From raffaele.morelli at gmail.com Tue Mar 6 01:20:49 2012
From: raffaele.morelli at gmail.com (Raffaele Morelli)
Date: Tue, 6 Mar 2012 10:20:49 +0100
Subject: [mapserver-users] WMS server layer trouble
In-Reply-To: <84446DEF76453C439E9E97E438E13A63083040@suutari.haapa.mmm.fi>
References:
<84446DEF76453C439E9E97E438E13A63083040@suutari.haapa.mmm.fi>
Message-ID:
2012/3/6 Rahkonen Jukka
> **
> Hi,
>
> Look at the GetCapabilities and see if Mapserver is advertising the layer
> extents in reasonable way. I have a feeling that QGis is trying to zoom
> automatically to the layer extents by taking the layer extents and some
> default resolution and calculating WIDTH and HEIGHT by those too. If they
> are wrong in the GetCapabilities there can be troubles.
> For example the layer fiumi_02 shows now quite a large extents,
>
> Fiumi II, III, IV
> ordine fiumi_02 epsg:32632 -1.47304E7 -9997960.0 500000.0 9997960.0
>
> OpenJUMP shows the layers better because it does not generate oversized
> WIDTH and HEIGHT.
> Consider adding "wms_bbox_extended" "true". It will help clients like
> OpenJUMP to zoom to layer extents with any supported srsName.
> It could be easist and most safe to set the correct layer extenst manually
> in metadata.
>
>
> -Jukka Rahkonen-
>
Thanks for fast replying, in the meanwhile I've added wms_extent to every
layer metadata (except for "europe") and the error disappeared.
BTW I am going to try wms_bbox_extended too.
Regards
-r
--
*L'unica speranza di catarsi, ammesso che ne esista una, resta affidata
all'istinto di ribellione, alla rivolta non isterilita in progetti, alla
protesta violenta e viscerale.*
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From pgigoux at munistgo.cl Tue Mar 6 03:13:51 2012
From: pgigoux at munistgo.cl (Patricio Gigoux)
Date: Tue, 06 Mar 2012 08:13:51 -0300
Subject: [mapserver-users] force labels to fit in polygons
In-Reply-To: <4F553532.2060708@swoodbridge.com>
References: <36CA828A36E29F45B7CF0A1766E5DFA30E2F9C@swmail01.r8nssis.local>
<4F553532.2060708@swoodbridge.com>
Message-ID: <4F55F16F.6080006@munistgo.cl>
You could generate a center point, there is a function that do it in
irregular shaped, and fit the label in it
Patricio Gigoux
El 05-03-2012 18:50, Stephen Woodbridge escribi?:
> On 3/5/2012 4:44 PM, Mark Volz wrote:
>> Hello,
>> Is there a way to force labels to fit inside of a polygon, even if a
>> polygon is irregularly shaped? I noticed that with POSITION AUTO labels
>> are falling outside of my soils boundary.
>
> The short answer is no. It is an interesting problem, but it does not
> have a guaranteed result as the label might be too big to fit
> regardless. I am not even sure of the algorithm should be for
> something like this. There are a lot of parameters like:
>
> font
> font size
> wrapping the text
> changing the angle
> finding the longest line, arc or smooth polyline that fits withing the
> polygon and then have the text follow that line
>
> These are all computationally expensive to do on the fly while
> rendering. Ideally these should be worked out in advance then you can
> supply the attributes to the label via binding columns in the data.
>
> -SteveW
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>
From teknocreator at gmail.com Tue Mar 6 04:07:07 2012
From: teknocreator at gmail.com (teknocreator)
Date: Tue, 6 Mar 2012 04:07:07 -0800 (PST)
Subject: [mapserver-users] RE: WMS for netcdf [SEC=UNCLASSIFIED]
In-Reply-To:
References:
<1330874381473-4545262.post@n6.nabble.com>
<84446DEF76453C439E9E97E438E13A63082C68@suutari.haapa.mmm.fi>
<20120305122417.209760@gmx.net>
Message-ID: <1331035627148-4551035.post@n6.nabble.com>
I would be interested as well with *Armin*'s code suggestions/examples,
though I agree with Kathleen that this may not be a preferred approach. I'd
like to cast a vote here to *Jukka* for being able to somehow alter the
raster bands with either variable substitution or else with changing the URL
parameters. Most of our data thus far is only 3-dimensional (x, y, t) with
no height dimension. So, it would be a desired feature to be able to easily
move through the time dimension by just being able to change the bands. For
us at present, each band in a GRIB file is a different time period for the
same data.
That being said, better long term solutions and moving towards OGC standards
for our data may be to devote our efforts to creating a WCS for our data or
preprocess the data so that the WMS "time" option can be used.
*Kathleen* - you may be interested in this project (if you haven't seen it
already) that deals directly with NetCDF with a WMS - ncWMS:
http://www.resc.rdg.ac.uk/trac/ncWMS/wiki/FrequentlyAskedQuestions. Another
group I work with is adapting this software for another project which uses
NetCDF.
Thanks for others' replies!
Dave M
--
View this message in context: http://osgeo-org.1560.n6.nabble.com/WMS-for-netcdf-SEC-UNCLASSIFIED-tp4519496p4551035.html
Sent from the Mapserver - User mailing list archive at Nabble.com.
From woodbri at swoodbridge.com Tue Mar 6 05:39:45 2012
From: woodbri at swoodbridge.com (Stephen Woodbridge)
Date: Tue, 06 Mar 2012 08:39:45 -0500
Subject: [mapserver-users] force labels to fit in polygons
In-Reply-To: <4F55F16F.6080006@munistgo.cl>
References: <36CA828A36E29F45B7CF0A1766E5DFA30E2F9C@swmail01.r8nssis.local>
<4F553532.2060708@swoodbridge.com> <4F55F16F.6080006@munistgo.cl>
Message-ID: <4F5613A1.1080308@swoodbridge.com>
Right, the problem has two parts:
1) determine potential candidate label points
2) see if the label fits given the constraints placed on how to draw it
This is NP hard problem because it not just a problem of labeling a
single polygon you also have to deal with all the other labels on the
map that you might collide with.
If you search "automatic label placement" in google you can read up on
the problem and the solutions that are available. Mapserver uses a
different scheme for doing label placement that is much faster because
it does not try to optimize label placement, but rather gives you
controls for how labels should be placed, like POSITION, ANGLE
AUTO|FOLLOW, PROCESSING "LABEL_NO_CLIP=ON", PRIORITY, WRAP,
MINFEATURESIZE, MAXLENGTH, PARTIALS, etc.
By the way, PROCESSING "LABEL_NO_CLIP=ON" will fix the label point at
the polygon center.
-SteveW
On 3/6/2012 6:13 AM, Patricio Gigoux wrote:
> You could generate a center point, there is a function that do it in
> irregular shaped, and fit the label in it
>
> Patricio Gigoux
>
>
>
>
> El 05-03-2012 18:50, Stephen Woodbridge escribi?:
>> On 3/5/2012 4:44 PM, Mark Volz wrote:
>>> Hello,
>>> Is there a way to force labels to fit inside of a polygon, even if a
>>> polygon is irregularly shaped? I noticed that with POSITION AUTO labels
>>> are falling outside of my soils boundary.
>>
>> The short answer is no. It is an interesting problem, but it does not
>> have a guaranteed result as the label might be too big to fit
>> regardless. I am not even sure of the algorithm should be for
>> something like this. There are a lot of parameters like:
>>
>> font
>> font size
>> wrapping the text
>> changing the angle
>> finding the longest line, arc or smooth polyline that fits withing the
>> polygon and then have the text follow that line
>>
>> These are all computationally expensive to do on the fly while
>> rendering. Ideally these should be worked out in advance then you can
>> supply the attributes to the label via binding columns in the data.
>>
>> -SteveW
>> _______________________________________________
>> 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 MarkVolz at co.lyon.mn.us Tue Mar 6 06:42:48 2012
From: MarkVolz at co.lyon.mn.us (Mark Volz)
Date: Tue, 6 Mar 2012 14:42:48 +0000
Subject: [mapserver-users] Re: Re: force labels to fit in polygons
In-Reply-To: <20120306075745.CFA56E00A4B@lists.osgeo.org>
References: <20120306075745.CFA56E00A4B@lists.osgeo.org>
Message-ID: <36CA828A36E29F45B7CF0A1766E5DFA30E2FFA@swmail01.r8nssis.local>
Steve and Patricio,
Thank you for your response. I went with Patricio's idea of labeling off a point. Which should be alright unless a user is zoomed in close and cannot see the center of a polygon.
Mark Volz
GIS Specialist
Message: 2
Date: Mon, 05 Mar 2012 16:50:42 -0500
From: Stephen Woodbridge
Subject: Re: [mapserver-users] force labels to fit in polygons
To: mapserver-users at lists.osgeo.org
Message-ID: <4F553532.2060708 at swoodbridge.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
On 3/5/2012 4:44 PM, Mark Volz wrote:
> Hello,
> Is there a way to force labels to fit inside of a polygon, even if a
> polygon is irregularly shaped? I noticed that with POSITION AUTO
> labels are falling outside of my soils boundary.
The short answer is no. It is an interesting problem, but it does not have a guaranteed result as the label might be too big to fit regardless. I am not even sure of the algorithm should be for something like this. There are a lot of parameters like:
font
font size
wrapping the text
changing the angle
finding the longest line, arc or smooth polyline that fits withing the polygon and then have the text follow that line
These are all computationally expensive to do on the fly while rendering. Ideally these should be worked out in advance then you can supply the attributes to the label via binding columns in the data.
-SteveW
From beyhan at deprem.gov.tr Tue Mar 6 23:45:21 2012
From: beyhan at deprem.gov.tr (Murat Beyhan)
Date: Wed, 07 Mar 2012 09:45:21 +0200
Subject: [mapserver-users] draw line using mysql sahpe file
Message-ID: <1331106321.9432.25.camel@localhost>
Dear All,
For 2 weeks I struggled to draw simple line using mysql database in
order to collect to many lines and draw only desired one on the map I
followed many way but could not solve the problem
at the beginning of my work I stored start and end of the line point on
the database as a table on mysql then I try to draw it using ogr. but I
could not draw it.
Then I firs create shape file of lines than I store it on mysql spatial
database by following
ogr2ogr -f MySQL MySQL:testogr,user=root,password=password123
sfault1.shp -nln sfault -append -overwrite -lco GEOMETRY_NAME=SHAPE2
then structure of the table created by this command as follows:
OGR_FID
int(11)
Yes
NULL
SHAPE2
geometry
Yes
NULL
id
decimal(1,0)
Yes
NULL
lon
double(8,4)
Yes
NULL
lat
double(7,4)
Yes
NULL
eq_id
varchar(14)
Yes
NULL
same database testogr has a two another table which collect
geometry_column and spatial_ref_sys.
then I try to draw it on mapserver
then I succeeded but it draws all of the line stored in this table using
following map layer.
LAYER
NAME "fault"
TYPE line
STATUS default
CONNECTIONTYPE OGR
CONNECTION '
MYSQL:testogr,user=root,password=password123,host=localhost,port=3306,tables=sfault
'
DATA sfault
CLASS
NAME "Kaynak Fay/Source Fault"
SYMBOL "cline"
SIZE 3
COLOR 255 0 0
END
END
But I desire only one of them using eq_id column but when I make sql
statement as follows. I mean when I add sql statement it draws nothing.
But be sure same eq_id comes to map file correctly to draw point of
epicenter. There is no problem for it. Also I use EXPRESSION FOR CLASS
also it doesn't draw line on the map. Previous map draws all, following
draws nothing. How can I pass this handicap. Please let help me.
LAYER
NAME "fault"
TYPE line
STATUS default
CONNECTIONTYPE OGR
CONNECTION '
MYSQL:testogr,user=root,password=password123,host=localhost,port=3306,tables=sfault
SELECT eq_id from sfault where eq_id like "%eq_id%"
'
DATA sfault
# CLASSITEM "eq_id"
CLASS
# EXPRESSION ([eq_id] EQ 'eq_id') !!!!!! this also doesn't work
NAME "Kaynak Fay/Source Fault"
SYMBOL "cline"
SIZE 3
COLOR 255 0 0
END
END
--
Murat BEYHAN
Geophysical Engineer, M.Sc.
Prime Ministry
Disaster and Emergency Management Presidency
Earthquake Department
Address: Eskisehir Yolu 12. Km.
Lodumlu/ANKARA
Tel: 312 2872680-1556
email:beyhan at deprem.gov.tr
--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
From reinoud.bokhorst at bmtargoss.com Wed Mar 7 00:29:18 2012
From: reinoud.bokhorst at bmtargoss.com (Reinoud Bokhorst)
Date: Wed, 07 Mar 2012 09:29:18 +0100
Subject: [mapserver-users] Base map data for WMS
Message-ID: <4F571C5E.8060201@bmtargoss.com>
Dear list,
Until now I have been using the public Demis, Metacarta, Google Maps services as base map providers
in my WMS clients. Since our company creates commercial services, I don't want to be dependent any
longer on those because:
- availability is never guaranteed
- can not use those off-line
- license restrictions a la Google Maps prohibits use for closed services
So I am keen to start hosting our own base map WMS server containing a good resolution world map to
start with. Later local maps for smaller areas can be added. The world map should be something like
Demis with layers coastlines, borders, bathymetry, topography, place names, inland waters, main
roads and place names.
I could buy a WMS server including world map data, e.g. Demis or ArcIMS but I don't really want
that. We already use GeoServer and MapServer and would rather add world map data. So I could:
1. buy world map data
2. create world map myself by assembling freely available data (gshhs, etopo, vmap, srtm, ...).
I am afraid (2) will cost a lot of time. Regarding (1) I already found world data for sale from DM
Solutions and ThinkGeo, are there others? Which is better?
There is surprisingly little information on the net about this issue, I guess most people are either
using public services or using commercial packages.
My question is a general one: I wondered if anybody has encountered the same problem and what
solution has been chosen, what data sources when creating a map yourself, other commercial data,
what data is better than other, etc. All comments welcome!
Reinoud Bokhorst
From emacgillavry at hotmail.com Wed Mar 7 00:43:34 2012
From: emacgillavry at hotmail.com (Edward Mac Gillavry)
Date: Wed, 7 Mar 2012 09:43:34 +0100
Subject: [mapserver-users] Base map data for WMS
In-Reply-To: <4F571C5E.8060201@bmtargoss.com>
References: <4F571C5E.8060201@bmtargoss.com>
Message-ID:
Reinoud,
For this, I'd recommend going with OpenStreetMap data (http://www.openstreetmap.org/). You can either download the whole data set for the world yourself and start building, or you can take mapping services from various suppliers. Check out http://www.switch2osm.org/ for further information. You'll be in good company!
Kind regards,
Edward
------------------------------------------
E. Mac Gillavry (Edward)
------------------------------------------
[t] +31 (0)30-26 72 225
[m] +31 (0)6-45 608 910
------------------------------------------
[e] emacgillavry at hotmail.com
------------------------------------------
> Date: Wed, 7 Mar 2012 09:29:18 +0100
> From: reinoud.bokhorst at bmtargoss.com
> To: mapserver-users at lists.osgeo.org
> Subject: [mapserver-users] Base map data for WMS
>
> Dear list,
>
> Until now I have been using the public Demis, Metacarta, Google Maps services as base map providers
> in my WMS clients. Since our company creates commercial services, I don't want to be dependent any
> longer on those because:
> - availability is never guaranteed
> - can not use those off-line
> - license restrictions a la Google Maps prohibits use for closed services
>
> So I am keen to start hosting our own base map WMS server containing a good resolution world map to
> start with. Later local maps for smaller areas can be added. The world map should be something like
> Demis with layers coastlines, borders, bathymetry, topography, place names, inland waters, main
> roads and place names.
>
> I could buy a WMS server including world map data, e.g. Demis or ArcIMS but I don't really want
> that. We already use GeoServer and MapServer and would rather add world map data. So I could:
> 1. buy world map data
> 2. create world map myself by assembling freely available data (gshhs, etopo, vmap, srtm, ...).
>
> I am afraid (2) will cost a lot of time. Regarding (1) I already found world data for sale from DM
> Solutions and ThinkGeo, are there others? Which is better?
>
> There is surprisingly little information on the net about this issue, I guess most people are either
> using public services or using commercial packages.
>
> My question is a general one: I wondered if anybody has encountered the same problem and what
> solution has been chosen, what data sources when creating a map yourself, other commercial data,
> what data is better than other, etc. All comments welcome!
>
> Reinoud Bokhorst
>
>
>
>
>
> _______________________________________________
> 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 andrea.aime at geo-solutions.it Wed Mar 7 01:02:52 2012
From: andrea.aime at geo-solutions.it (Andrea Aime)
Date: Wed, 7 Mar 2012 10:02:52 +0100
Subject: [mapserver-users] Base map data for WMS
In-Reply-To:
References: <4F571C5E.8060201@bmtargoss.com>
Message-ID:
On Wed, Mar 7, 2012 at 9:43 AM, Edward Mac Gillavry <
emacgillavry at hotmail.com> wrote:
> Reinoud,
>
> For this, I'd recommend going with OpenStreetMap data (
> http://www.openstreetmap.org/). You can either download the whole data
> set for the world yourself and start building, or you can take mapping
> services from various suppliers. Check out http://www.switch2osm.org/ for
> further information. You'll be in good company!
>
I've also seen people download and use OSM data in locations where no
internet connection is available
(closed networks), they just downloaded the full OSM world file, imported
it in postgis using osm in a box,
and then used the osm in a box styles to map it with GeoServer.
If the dataset is too big and you just need to do low scale cartography the
"natural earth" dataset is also
quite good: http://www.naturalearthdata.com/downloads/
Cheers
Andrea
--
-------------------------------------------------------
Ing. Andrea Aime
GeoSolutions S.A.S.
Tech lead
Via Poggio alle Viti 1187
55054 Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 962313
mob: +39 339 8844549
http://www.geo-solutions.it
http://geo-solutions.blogspot.com/
http://www.youtube.com/user/GeoSolutionsIT
http://www.linkedin.com/in/andreaaime
http://twitter.com/geowolf
-------------------------------------------------------
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From thomas.bonfort at gmail.com Wed Mar 7 01:16:25 2012
From: thomas.bonfort at gmail.com (thomas bonfort)
Date: Wed, 7 Mar 2012 10:16:25 +0100
Subject: [mapserver-users] Base map data for WMS
In-Reply-To: <4F571C5E.8060201@bmtargoss.com>
References: <4F571C5E.8060201@bmtargoss.com>
Message-ID:
Here http://trac.osgeo.org/mapserver/wiki/RenderingOsmDataUbuntu you
have detailed instructions for how to setup mapserver as a wms server
for openstreetmap imagery.
As the basemap rendering isn't specially light on server ressources I
would recommend using a tile cache and not expose the wms service
directly. Mapcache can assemble the cached tiles to serve complete wms
getmap requests should some of your clients not support tiled requests
(see http://www2.terriscope.fr/geocache/demo/wms for a possible
rendering style, you can select the "singletile" layer for untiled
getmap requests).
--
thomas
On Wed, Mar 7, 2012 at 09:29, Reinoud Bokhorst
wrote:
> Dear list,
>
> Until now I have been using the public Demis, Metacarta, Google Maps
> services as base map providers in my WMS clients. Since our company creates
> commercial services, I don't want to be dependent any longer on those
> because:
> - availability is never guaranteed
> - can not use those off-line
> - license restrictions a la Google Maps prohibits use for closed services
>
> So I am keen to start hosting our own base map WMS server containing a good
> resolution world map to start with. Later local maps for smaller areas can
> be added. The world map should be something like Demis with layers
> coastlines, borders, bathymetry, topography, place names, inland waters,
> main roads and place names.
>
> I could buy a WMS server including world map data, e.g. Demis or ArcIMS but
> I don't really want that. We already use GeoServer and MapServer and would
> rather add world map data. So I could:
> 1. buy world map data
> 2. create world map myself by assembling freely available data (gshhs,
> etopo, vmap, srtm, ...).
>
> I am afraid (2) will cost a lot of time. Regarding (1) I already found world
> data for sale from DM Solutions and ThinkGeo, are there others? Which is
> better?
>
> There is surprisingly little information on the net about this issue, I
> guess most people are either using public services or using commercial
> packages.
>
> My question is a general one: I wondered if anybody has encountered the same
> problem and what solution has been chosen, what data sources when creating a
> map yourself, other commercial data, what data is better than other, etc.
> All comments welcome!
>
> Reinoud Bokhorst
>
>
>
>
>
> _______________________________________________
> 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 Mar 7 01:29:56 2012
From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka)
Date: Wed, 7 Mar 2012 09:29:56 +0000
Subject: [mapserver-users] Base map data for WMS
In-Reply-To:
References: <4F571C5E.8060201@bmtargoss.com>
Message-ID: <84446DEF76453C439E9E97E438E13A6308337B@suutari.haapa.mmm.fi>
Hi,
A bit outdated but still super easy way for having a try on Windows
http://latuviitta.org/documents/Super_easy_WMS_server.pdf
Package is combined from MS4W and mapfiles by Thomas Bonfort. Package will be much better when everything is ready for updating it to contain super fast Spatialite support (exists already in GDAL trunk and seems to make Spatilite faster that PostGIS), preconfigured MapCache and georeferenced PDF output.
-Jukka Rahkonen-
> -----Alkuper?inen viesti-----
> L?hett?j?: mapserver-users-bounces at lists.osgeo.org
> [mailto:mapserver-users-bounces at lists.osgeo.org] Puolesta
> thomas bonfort
> L?hetetty: 7. maaliskuuta 2012 11:16
> Vastaanottaja: Reinoud Bokhorst
> Kopio: mapserver-users at lists.osgeo.org
> Aihe: Re: [mapserver-users] Base map data for WMS
>
> Here http://trac.osgeo.org/mapserver/wiki/RenderingOsmDataUbuntu you
> have detailed instructions for how to setup mapserver as a wms server
> for openstreetmap imagery.
> As the basemap rendering isn't specially light on server ressources I
> would recommend using a tile cache and not expose the wms service
> directly. Mapcache can assemble the cached tiles to serve complete wms
> getmap requests should some of your clients not support tiled requests
> (see http://www2.terriscope.fr/geocache/demo/wms for a possible
> rendering style, you can select the "singletile" layer for untiled
> getmap requests).
>
> --
> thomas
>
> On Wed, Mar 7, 2012 at 09:29, Reinoud Bokhorst
> wrote:
> > Dear list,
> >
> > Until now I have been using the public Demis, Metacarta, Google Maps
> > services as base map providers in my WMS clients. Since our
> company creates
> > commercial services, I don't want to be dependent any
> longer on those
> > because:
> > - availability is never guaranteed
> > - can not use those off-line
> > - license restrictions a la Google Maps prohibits use for
> closed services
> >
> > So I am keen to start hosting our own base map WMS server
> containing a good
> > resolution world map to start with. Later local maps for
> smaller areas can
> > be added. The world map should be something like Demis with layers
> > coastlines, borders, bathymetry, topography, place names,
> inland waters,
> > main roads and place names.
> >
> > I could buy a WMS server including world map data, e.g.
> Demis or ArcIMS but
> > I don't really want that. We already use GeoServer and
> MapServer and would
> > rather add world map data. So I could:
> > 1. buy world map data
> > 2. create world map myself by assembling freely available
> data (gshhs,
> > etopo, vmap, srtm, ...).
> >
> > I am afraid (2) will cost a lot of time. Regarding (1) I
> already found world
> > data for sale from DM Solutions and ThinkGeo, are there
> others? Which is
> > better?
> >
> > There is surprisingly little information on the net about
> this issue, I
> > guess most people are either using public services or using
> commercial
> > packages.
> >
> > My question is a general one: I wondered if anybody has
> encountered the same
> > problem and what solution has been chosen, what data
> sources when creating a
> > map yourself, other commercial data, what data is better
> than other, etc.
> > All comments welcome!
> >
> > Reinoud Bokhorst
> >
> >
> >
> >
> >
> > _______________________________________________
> > 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 reinoud.bokhorst at bmtargoss.com Wed Mar 7 01:57:53 2012
From: reinoud.bokhorst at bmtargoss.com (Reinoud Bokhorst)
Date: Wed, 07 Mar 2012 10:57:53 +0100
Subject: [mapserver-users] Base map data for WMS
In-Reply-To:
References: <4F571C5E.8060201@bmtargoss.com>
Message-ID: <4F573121.4030001@bmtargoss.com>
Thank you for your answers.
@Edward: Thank you for that link, just what I needed. I have been looking at OSM before but it
always seemed to be mainly about street maps with too many features and I never really found out how
to use it.
In the link you provided I now also see decent topographic maps so I'll certainly give it a try!
@Andrea: Natural Earth indeed seems to be a good alternative to start with, thank you for that link.
On 03/07/2012 10:02 AM, Andrea Aime wrote:
> On Wed, Mar 7, 2012 at 9:43 AM, Edward Mac Gillavry > wrote:
>
> Reinoud,
>
> For this, I'd recommend going with OpenStreetMap data (http://www.openstreetmap.org/). You can
> either download the whole data set for the world yourself and start building, or you can take
> mapping services from various suppliers. Check out http://www.switch2osm.org/ for further
> information. You'll be in good company!
>
>
> I've also seen people download and use OSM data in locations where no internet connection is available
> (closed networks), they just downloaded the full OSM world file, imported it in postgis using osm
> in a box,
> and then used the osm in a box styles to map it with GeoServer.
>
> If the dataset is too big and you just need to do low scale cartography the "natural earth"
> dataset is also
> quite good: http://www.naturalearthdata.com/downloads/
>
> Cheers
> Andrea
>
> --
> -------------------------------------------------------
> Ing. Andrea Aime
> GeoSolutions S.A.S.
> Tech lead
>
> Via Poggio alle Viti 1187
> 55054 Massarosa (LU)
> Italy
>
> phone: +39 0584 962313
> fax: +39 0584 962313
> mob: +39 339 8844549
>
> http://www.geo-solutions.it
> http://geo-solutions.blogspot.com/
> http://www.youtube.com/user/GeoSolutionsIT
> http://www.linkedin.com/in/andreaaime
> http://twitter.com/geowolf
>
> -------------------------------------------------------
--
--
Reinoud Bokhorst
Advisor Oceanography& ICT
Tel: +31 (0)527 242 299
Fax: +31 (0)527 242 016
Website: www.bmtargoss.com
BMT ARGOSS b.v., Voorsterweg 28, 8316 PT, Marknesse, The Netherlands
(Postal address : PO Box 61, 8325 ZH, Vollenhove, The Netherlands)
Registered in The Netherlands, Registered no. 39060160.
Unless otherwise agreed by BMT ARGOSS in writing, all work, services, goods or products supplied by BMT ARGOSS shall be subject to and governed by BMT ARGOSS?s own terms and conditions which are available for inspection from BMT ARGOSS on request.
E-mail confidentiality notice and disclaimer:
The contents of this e-mail and any attachments are intended for the use of the mail addressee(s) shown. If you are not that person, you are not allowed to read it, to take any action based upon it or to copy it, forward, distribute or disclose the contents of it and you should please delete it from your system. BMT ARGOSS does not accept liability for any errors or omissions in the context of this e-mail or its attachments which arise as a result of internet transmission, nor accept liability for statements which are those of the author and clearly not made on behalf of BMT ARGOSS.
Please consider the environmental impacts of printing this email, and only do so if really necessary
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From reinoud.bokhorst at bmtargoss.com Wed Mar 7 02:13:40 2012
From: reinoud.bokhorst at bmtargoss.com (Reinoud Bokhorst)
Date: Wed, 07 Mar 2012 11:13:40 +0100
Subject: [mapserver-users] Base map data for WMS
In-Reply-To:
References: <4F571C5E.8060201@bmtargoss.com>
Message-ID: <4F5734D4.6080402@bmtargoss.com>
Thank you. Yes, I was planning to use a tile cache for this service. I am not new to MapServer but
have never used OSM or tile caching and am not particularly experienced in styling, so I have many
questions now. But I'll first study the documentation in the answers!
On 03/07/2012 10:16 AM, thomas bonfort wrote:
> Here http://trac.osgeo.org/mapserver/wiki/RenderingOsmDataUbuntu you
> have detailed instructions for how to setup mapserver as a wms server
> for openstreetmap imagery.
> As the basemap rendering isn't specially light on server ressources I
> would recommend using a tile cache and not expose the wms service
> directly. Mapcache can assemble the cached tiles to serve complete wms
> getmap requests should some of your clients not support tiled requests
> (see http://www2.terriscope.fr/geocache/demo/wms for a possible
> rendering style, you can select the "singletile" layer for untiled
> getmap requests).
>
> --
> thomas
>
> On Wed, Mar 7, 2012 at 09:29, Reinoud Bokhorst
> wrote:
>> Dear list,
>>
>> Until now I have been using the public Demis, Metacarta, Google Maps
>> services as base map providers in my WMS clients. Since our company creates
>> commercial services, I don't want to be dependent any longer on those
>> because:
>> - availability is never guaranteed
>> - can not use those off-line
>> - license restrictions a la Google Maps prohibits use for closed services
>>
>> So I am keen to start hosting our own base map WMS server containing a good
>> resolution world map to start with. Later local maps for smaller areas can
>> be added. The world map should be something like Demis with layers
>> coastlines, borders, bathymetry, topography, place names, inland waters,
>> main roads and place names.
>>
>> I could buy a WMS server including world map data, e.g. Demis or ArcIMS but
>> I don't really want that. We already use GeoServer and MapServer and would
>> rather add world map data. So I could:
>> 1. buy world map data
>> 2. create world map myself by assembling freely available data (gshhs,
>> etopo, vmap, srtm, ...).
>>
>> I am afraid (2) will cost a lot of time. Regarding (1) I already found world
>> data for sale from DM Solutions and ThinkGeo, are there others? Which is
>> better?
>>
>> There is surprisingly little information on the net about this issue, I
>> guess most people are either using public services or using commercial
>> packages.
>>
>> My question is a general one: I wondered if anybody has encountered the same
>> problem and what solution has been chosen, what data sources when creating a
>> map yourself, other commercial data, what data is better than other, etc.
>> All comments welcome!
>>
>> Reinoud Bokhorst
>>
>>
>>
>>
>>
>> _______________________________________________
>> mapserver-users mailing list
>> mapserver-users at lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/mapserver-users
--
--
Reinoud Bokhorst
Advisor Oceanography& ICT
Tel: +31 (0)527 242 299
Fax: +31 (0)527 242 016
Website: www.bmtargoss.com
BMT ARGOSS b.v., Voorsterweg 28, 8316 PT, Marknesse, The Netherlands
(Postal address : PO Box 61, 8325 ZH, Vollenhove, The Netherlands)
Registered in The Netherlands, Registered no. 39060160.
Unless otherwise agreed by BMT ARGOSS in writing, all work, services, goods or products supplied by BMT ARGOSS shall be subject to and governed by BMT ARGOSS?s own terms and conditions which are available for inspection from BMT ARGOSS on request.
E-mail confidentiality notice and disclaimer:
The contents of this e-mail and any attachments are intended for the use of the mail addressee(s) shown. If you are not that person, you are not allowed to read it, to take any action based upon it or to copy it, forward, distribute or disclose the contents of it and you should please delete it from your system. BMT ARGOSS does not accept liability for any errors or omissions in the context of this e-mail or its attachments which arise as a result of internet transmission, nor accept liability for statements which are those of the author and clearly not made on behalf of BMT ARGOSS.
Please consider the environmental impacts of printing this email, and only do so if really necessary
From pcorti at gmail.com Wed Mar 7 02:36:14 2012
From: pcorti at gmail.com (Paolo Corti)
Date: Wed, 7 Mar 2012 11:36:14 +0100
Subject: [mapserver-users] draw line using mysql sahpe file
In-Reply-To: <1331106321.9432.25.camel@localhost>
References: <1331106321.9432.25.camel@localhost>
Message-ID:
> But I desire only one of them using eq_id column but when I make sql
> statement as follows. I mean when I add sql statement it draws nothing.
> But be sure same eq_id comes to map file correctly to draw point of
> epicenter. There is no problem for it. Also I use EXPRESSION FOR CLASS
> also it doesn't draw line on the map. Previous map draws all, following
> draws nothing. How can I pass this handicap. Please let help me.
> LAYER
> ? ? NAME "fault"
> ? ? TYPE line
> ? ? STATUS default
> ? CONNECTIONTYPE OGR
> ? CONNECTION '
> ?
> MYSQL:testogr,user=root,password=password123,host=localhost,port=3306,tables=sfault
> SELECT eq_id from sfault where eq_id like ?"%eq_id%"
>
> '
>
In your SrcSQL you need to include the geometry field.
You have to include the GeometryField subelement as well.
Always try to use ogrinfo to check if the dataset is returning
expected results (specially for geometry)
best regards
P
--
Paolo Corti
Geospatial software developer
web: http://www.paolocorti.net
twitter: @capooti
skype: capooti
From beyhan at deprem.gov.tr Wed Mar 7 04:08:51 2012
From: beyhan at deprem.gov.tr (Murat Beyhan)
Date: Wed, 07 Mar 2012 14:08:51 +0200
Subject: [mapserver-users] draw line using mysql sahpe file
In-Reply-To:
References: <1331106321.9432.25.camel@localhost>
Message-ID: <1331122131.6718.1.camel@localhost>
Dear Paolo,
Thanks for your advice, as you said just change select * form sfault
then it works fine...
wonderful
it took 2 weeks to see these result
many thanks
murat
On Wed, 2012-03-07 at 11:36 +0100, Paolo Corti wrote:
> SELECT eq_id from sfault where eq_id like "%eq_id%"
Murat BEYHAN
Jeofizik Y.M?h.
T.C. Ba?bakanl?k
Afet ve Acil Durum Y?netimi Ba?kanl???
Deprem Dairesi Ba?kanl???
Eski?ehir Yolu 12. Km.
Lodumlu/ANKARA
Tel: 312 2872680-1556
email:beyhan at deprem.gov.tr
--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
From oliver.christen at camptocamp.com Wed Mar 7 04:26:32 2012
From: oliver.christen at camptocamp.com (Oliver Christen)
Date: Wed, 7 Mar 2012 13:26:32 +0100
Subject: [mapserver-users] GetLegendGraphic legend image generated as line
for polygon without color
Message-ID:
dear all
Im trying to find a way to tell Mapserver to render the legend icon
for a polygon layer with no color (transparent) (only outlinecolor) as
a polygon legend (rectangle) and not as a line legend (zig-zag line)
see below for my layer definition
the currently generated legend image is:
http://dev.camptocamp.com/files/mapserver/legend.png
I have tried to specify a
COLOR -1 -1 -1
to force Mapserver to handle the legend image as a polygon (rectangle)
without success.
any idea if there is a "trick" to force Mapserver to render the legend
as a rectangle and not as a zig-zag line ?
thanks in advance
Oliver
LAYER
NAME "movd_cad_tpr_prf_s"
METADATA
"wms_title" "SitCdParcellaireLineDDPtt2_"
END
TYPE POLYGON
DATA MOVD_CAD/MOVD_CAD_TPR_PRF_S
STATUS ON
MAXSCALE 10001
CLASS
NAME "Prf"
STYLE
OUTLINECOLOR 255 0 0
WIDTH 3
END
END
END
From thomas.bonfort at gmail.com Wed Mar 7 04:35:32 2012
From: thomas.bonfort at gmail.com (thomas bonfort)
Date: Wed, 7 Mar 2012 13:35:32 +0100
Subject: [mapserver-users] GetLegendGraphic legend image generated as line
for polygon without color
In-Reply-To:
References:
Message-ID:
c.f. http://trac.osgeo.org/mapserver/ticket/4104
here's an ugly hack that *should* work (not tested):
CLASS
STYLE
COLOR 0 0 0
OPACITY 0
END
STYLE
OUTLINECOLOR 255 0 0
WIDTH 3
END
END
On Wed, Mar 7, 2012 at 13:26, Oliver Christen
wrote:
> dear all
>
> Im trying to find a way to tell Mapserver to render the legend icon
> for a polygon layer with no color (transparent) (only outlinecolor) as
> a polygon legend (rectangle) and not as a line legend (zig-zag line)
>
> see below for my layer definition
>
> the currently generated legend image is:
> http://dev.camptocamp.com/files/mapserver/legend.png
>
> I have tried to specify a
> COLOR -1 -1 -1
> to force Mapserver to handle the legend image as a polygon (rectangle)
> without success.
>
> any idea if there is a "trick" to force Mapserver to render the legend
> as a rectangle and not as a zig-zag line ?
>
> thanks in advance
> Oliver
>
> ?LAYER
> ? NAME "movd_cad_tpr_prf_s"
> ? METADATA
> ? ? "wms_title" "SitCdParcellaireLineDDPtt2_"
> ? END
> ? TYPE POLYGON
> ? DATA MOVD_CAD/MOVD_CAD_TPR_PRF_S
> ? STATUS ON
>
> ? MAXSCALE 10001
>
> ? CLASS
> ? ? NAME "Prf"
> ? ? STYLE
> ? ? ? OUTLINECOLOR 255 0 0
> ? ? ? WIDTH 3
> ? ? END
> ? END
> ?END
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
From oliver.christen at camptocamp.com Wed Mar 7 04:43:34 2012
From: oliver.christen at camptocamp.com (Oliver Christen)
Date: Wed, 7 Mar 2012 13:43:34 +0100
Subject: [mapserver-users] GetLegendGraphic legend image generated as line
for polygon without color
In-Reply-To:
References:
Message-ID:
excellent!
this works perfectly
thank you very much
On Wed, Mar 7, 2012 at 1:35 PM, thomas bonfort wrote:
> c.f. http://trac.osgeo.org/mapserver/ticket/4104
>
> here's an ugly hack that *should* work (not tested):
>
> CLASS
> ?STYLE
> ? ?COLOR 0 0 0
> ? ?OPACITY 0
> ?END
> ?STYLE
> ? ?OUTLINECOLOR 255 0 0
> ? ?WIDTH 3
> ?END
> END
>
> On Wed, Mar 7, 2012 at 13:26, Oliver Christen
> wrote:
>> dear all
>>
>> Im trying to find a way to tell Mapserver to render the legend icon
>> for a polygon layer with no color (transparent) (only outlinecolor) as
>> a polygon legend (rectangle) and not as a line legend (zig-zag line)
>>
>> see below for my layer definition
>>
>> the currently generated legend image is:
>> http://dev.camptocamp.com/files/mapserver/legend.png
>>
>> I have tried to specify a
>> COLOR -1 -1 -1
>> to force Mapserver to handle the legend image as a polygon (rectangle)
>> without success.
>>
>> any idea if there is a "trick" to force Mapserver to render the legend
>> as a rectangle and not as a zig-zag line ?
>>
>> thanks in advance
>> Oliver
>>
>> ?LAYER
>> ? NAME "movd_cad_tpr_prf_s"
>> ? METADATA
>> ? ? "wms_title" "SitCdParcellaireLineDDPtt2_"
>> ? END
>> ? TYPE POLYGON
>> ? DATA MOVD_CAD/MOVD_CAD_TPR_PRF_S
>> ? STATUS ON
>>
>> ? MAXSCALE 10001
>>
>> ? CLASS
>> ? ? NAME "Prf"
>> ? ? STYLE
>> ? ? ? OUTLINECOLOR 255 0 0
>> ? ? ? WIDTH 3
>> ? ? END
>> ? END
>> ?END
>> _______________________________________________
>> mapserver-users mailing list
>> mapserver-users at lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/mapserver-users
From pcorti at gmail.com Wed Mar 7 07:00:33 2012
From: pcorti at gmail.com (Paolo Corti)
Date: Wed, 7 Mar 2012 16:00:33 +0100
Subject: [mapserver-users] Base map data for WMS
In-Reply-To:
References: <4F571C5E.8060201@bmtargoss.com>
Message-ID:
On Wed, Mar 7, 2012 at 10:16 AM, thomas bonfort
wrote:
> Here http://trac.osgeo.org/mapserver/wiki/RenderingOsmDataUbuntu you
> have detailed instructions for how to setup mapserver as a wms server
> for openstreetmap imagery.
> As the basemap rendering isn't specially light on server ressources I
> would recommend using a tile cache and not expose the wms service
> directly. Mapcache can assemble the cached tiles to serve complete wms
> getmap requests should some of your clients not support tiled requests
> (see http://www2.terriscope.fr/geocache/demo/wms for a possible
> rendering style, you can select the "singletile" layer for untiled
> getmap requests).
for keeping things even much easier, and without the need to create a
dedicated GIS infrastructure, I think Reinoud could just start caching
the OSM service (for example with MapProxy, MapCache, GeoWebCache,
TileCache, there is a wide choice).
This should be compatible with the OSM license AFAIK.
P
--
Paolo Corti
Geospatial software developer
web: http://www.paolocorti.net
twitter: @capooti
skype: capooti
From thomas.bonfort at gmail.com Wed Mar 7 07:11:08 2012
From: thomas.bonfort at gmail.com (thomas bonfort)
Date: Wed, 7 Mar 2012 16:11:08 +0100
Subject: [mapserver-users] Base map data for WMS
In-Reply-To:
References: <4F571C5E.8060201@bmtargoss.com>
Message-ID:
On Wed, Mar 7, 2012 at 16:00, Paolo Corti wrote:
> On Wed, Mar 7, 2012 at 10:16 AM, thomas bonfort
> wrote:
>> Here http://trac.osgeo.org/mapserver/wiki/RenderingOsmDataUbuntu you
>> have detailed instructions for how to setup mapserver as a wms server
>> for openstreetmap imagery.
>> As the basemap rendering isn't specially light on server ressources I
>> would recommend using a tile cache and not expose the wms service
>> directly. Mapcache can assemble the cached tiles to serve complete wms
>> getmap requests should some of your clients not support tiled requests
>> (see http://www2.terriscope.fr/geocache/demo/wms for a possible
>> rendering style, you can select the "singletile" layer for untiled
>> getmap requests).
>
> for keeping things even much easier, and without the need to create a
> dedicated GIS infrastructure, I think Reinoud could just start caching
> the OSM service (for example with MapProxy, MapCache, GeoWebCache,
> TileCache, there is a wide choice).
> This should be compatible with the OSM license AFAIK.
One of the mentioned constraints was offline usage...
>
> P
>
> --
> Paolo Corti
> Geospatial software developer
> web: http://www.paolocorti.net
> twitter: @capooti
> skype: capooti
From pcorti at gmail.com Wed Mar 7 07:23:38 2012
From: pcorti at gmail.com (Paolo Corti)
Date: Wed, 7 Mar 2012 16:23:38 +0100
Subject: [mapserver-users] Base map data for WMS
In-Reply-To:
References: <4F571C5E.8060201@bmtargoss.com>
Message-ID:
>
> One of the mentioned constraints was offline usage...
>
yes, but it is possible to pre-generate the tiles, though not sure if
this is feasible on just one server for the whole OSM dataset, but
maybe for much simpler datasets would be the way to go
P
--
Paolo Corti
Geospatial software developer
web: http://www.paolocorti.net
twitter: @capooti
skype: capooti
From thomas.bonfort at gmail.com Wed Mar 7 07:43:13 2012
From: thomas.bonfort at gmail.com (thomas bonfort)
Date: Wed, 7 Mar 2012 16:43:13 +0100
Subject: [mapserver-users] Base map data for WMS
In-Reply-To:
References: <4F571C5E.8060201@bmtargoss.com>
Message-ID:
On Wed, Mar 7, 2012 at 16:23, Paolo Corti wrote:
>>
>> One of the mentioned constraints was offline usage...
>>
>
> yes, but it is possible to pre-generate the tiles, though not sure if
> this is feasible on just one server for the whole OSM dataset, but
> maybe for much simpler datasets would be the way to go
> P
By "pregenerate" I suppose you mean pre-download from the osm servers?
This in the general case is prohibited by osm's TOS :
http://wiki.openstreetmap.org/wiki/Tile_usage_policy
>
> --
> Paolo Corti
> Geospatial software developer
> web: http://www.paolocorti.net
> twitter: @capooti
> skype: capooti
From pcorti at gmail.com Wed Mar 7 08:41:01 2012
From: pcorti at gmail.com (Paolo Corti)
Date: Wed, 7 Mar 2012 17:41:01 +0100
Subject: [mapserver-users] Base map data for WMS
In-Reply-To:
References: <4F571C5E.8060201@bmtargoss.com>
Message-ID:
> By "pregenerate" I suppose you mean pre-download from the osm servers?
> This in the general case is prohibited by osm's TOS :
> http://wiki.openstreetmap.org/wiki/Tile_usage_policy
Yes, I am referring to the possibility to do the "seeding" of the
tiles, for example, referring to MapProxy, look at the mapproxy-seed
command [1].
Looking at the link you sent, the sentence "Bulk downloading is
strongly discouraged. Do not download tiles unnecessarily." seems to
prohibit this use case, so you are definitely right. Thought, this
would be seem prohibited just for zoom levels >= 17:
"In particular, downloading significant areas of tiles at zoom levels
17 and higher for offline or later usage is forbidden without prior
consultation with a System Administrator. These tiles are generally
not available (cached) on the server in advance, and have to be
rendered specifically for those requests, putting an unjustified
burden on the available resources.
To avoid having your access blocked, please discuss your requirement
with system administrators either via their wiki pages or on the IRC
channel prior to starting."
In any case, as supposed in my previous email, it is not feasible to
seed the whole OSM on common cases normal sized hardware (unless you
want just to display maps to low zoom levels): on the OSM own servers
they are not caching it for zoom levels >= 17 and I guess they have a
very large infrastructure.
But, could still be a viable approach for smaller datasets coming from
existing WMS that do not prohibit this kind of use.
thanks for pointing this out ;)
P
[1] http://mapproxy.org/docs/1.3.0/seed.html
--
Paolo Corti
Geospatial software developer
web: http://www.paolocorti.net
twitter: @capooti
skype: capooti
From scott159 at free.fr Wed Mar 7 11:33:47 2012
From: scott159 at free.fr (scott159 at free.fr)
Date: Wed, 7 Mar 2012 20:33:47 +0100 (CET)
Subject: [mapserver-users] RasterLite
In-Reply-To: <1715343082.15558184.1331148774385.JavaMail.root@zimbra34-e6.priv.proxad.net>
Message-ID: <763886423.15559265.1331148827863.JavaMail.root@zimbra34-e6.priv.proxad.net>
Hi,
I would like to use rasterlite database (test.db) with mapserver. The rasterlite (test-WGS84.db) is generated with mapcache.
How to configure mapserver to visualize these this database ? OGR connection ? What are parameters to add in mapfile ?
thanks
scott
From thomas.bonfort at gmail.com Wed Mar 7 11:56:38 2012
From: thomas.bonfort at gmail.com (thomas bonfort)
Date: Wed, 7 Mar 2012 20:56:38 +0100
Subject: [mapserver-users] RasterLite
In-Reply-To: <763886423.15559265.1331148827863.JavaMail.root@zimbra34-e6.priv.proxad.net>
References: <1715343082.15558184.1331148774385.JavaMail.root@zimbra34-e6.priv.proxad.net>
<763886423.15559265.1331148827863.JavaMail.root@zimbra34-e6.priv.proxad.net>
Message-ID:
the sqlite database generated by mapcache is not a rasterlite
database, it's a "proprietary" schema that allows access to individual
tiles.
--
thomas
On Wed, Mar 7, 2012 at 20:33, wrote:
> Hi,
>
> I would like to use rasterlite database (test.db) with mapserver. The rasterlite (test-WGS84.db) is generated with mapcache.
> How to configure mapserver to visualize these this database ? OGR connection ? What are parameters to add in mapfile ?
>
> thanks
>
> scott
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
From woodbri at swoodbridge.com Wed Mar 7 12:23:57 2012
From: woodbri at swoodbridge.com (Stephen Woodbridge)
Date: Wed, 07 Mar 2012 15:23:57 -0500
Subject: [mapserver-users] RasterLite
In-Reply-To:
References: <1715343082.15558184.1331148774385.JavaMail.root@zimbra34-e6.priv.proxad.net>
<763886423.15559265.1331148827863.JavaMail.root@zimbra34-e6.priv.proxad.net>
Message-ID: <4F57C3DD.1080303@swoodbridge.com>
Thomas,
That said, it might be an interesting idea to provide a mapserver layer
provider that can consume tiles directly from this as an idea.
-Steve
It's 61F here and sunny, feels like spring, maybe I'm just a little manic :)
On 3/7/2012 2:56 PM, thomas bonfort wrote:
> the sqlite database generated by mapcache is not a rasterlite
> database, it's a "proprietary" schema that allows access to individual
> tiles.
>
> --
> thomas
>
> On Wed, Mar 7, 2012 at 20:33, wrote:
>> Hi,
>>
>> I would like to use rasterlite database (test.db) with mapserver. The rasterlite (test-WGS84.db) is generated with mapcache.
>> How to configure mapserver to visualize these this database ? OGR connection ? What are parameters to add in mapfile ?
>>
>> thanks
>>
>> scott
>> _______________________________________________
>> 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 y.lybliamay at naomis.fr Thu Mar 8 02:20:50 2012
From: y.lybliamay at naomis.fr (Yenkong LYBLIAMAY)
Date: Thu, 8 Mar 2012 11:20:50 +0100
Subject: [mapserver-users] PHPMapScript and OSM
Message-ID: <000501ccfd15$26b0c000$74124000$@naomis.fr>
Hello,
Is it possible throught PHPMapScript to get an image from a mapfile which
have two layers ?
The first layer should call a WMS (or WFS ?) from OpenStreetMap in order to
get the bottom of plan and the second layer in order to add POI.
If you have some example, it will be great.
Thank you
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From ricardo.garcia.silva at gmail.com Thu Mar 8 02:31:31 2012
From: ricardo.garcia.silva at gmail.com (Ricardo Filipe Soares Garcia da)
Date: Thu, 8 Mar 2012 10:31:31 +0000
Subject: [mapserver-users] WMS GetFeatureInfo with spatialite datasource not
working
Message-ID:
Hello list
I am setting up a WMS service based on a spatialite database. I can't
seem to make GetFeatureInfo requests. I've searched this list's
archives and found this [1] but there was no follow-up. My problem
seems to be exactly the same as the one describe in the link. I'm also
using OGR as the connection type. GetFeatureInfo always returns
'Search returned no results' but GetMap works fine. Is this a known
issue? Or maybe there is something wrong with the mapfile (included in
the end of this message)?
If I use a shapefile instead of the spatialite database everything
works fine, but I don't want to do that because I'm developing a
geodjango application based on the same database.
Thanks
[1] - http://lists.osgeo.org/pipermail/mapserver-users/2011-November/070759.html
#Mapfile
MAP
SHAPEPATH '/home/ricardo/dev/fliavisitors/fliavisitors'
NAME 'testing'
PROJECTION
'init=epsg:4326'
END
WEB
METADATA
'wms_title' 'CAOP continente (local)'
'wms_onlineresource' 'http://localhost/cgi-bin/g2?'
'wms_srs' 'EPSG:4326'
'wms_enable_request' '*'
END
END
IMAGETYPE PNG
EXTENT -9.517029 36.961710 -6.189159 42.154311
SIZE 800 600
IMAGECOLOR 0 0 0
LAYER
NAME 'continente'
STATUS OFF
TEMPLATE 'template/blank.html'
DUMP TRUE
PROJECTION
'init=epsg:4326'
END
METADATA
'wms_title' 'continente'
'wms_srs' 'EPSG:4326'
'wms_enable_request' '*'
'wms_include_items' 'all'
'gml_include_items' 'all'
END
CONNECTIONTYPE OGR
CONNECTION 'geodjango.db'
DATA 'collectvisitors_caopcontinente'
#DATA 'collectvisitors/data/caop_continente'
TYPE POLYGON
CLASS
NAME 'freguesias'
STYLE
COLOR 255 255 120
END
END
END
END
--
___________________________ ___ __
Ricardo Garcia Silva
From kguardado at gmail.com Thu Mar 8 07:57:58 2012
From: kguardado at gmail.com (Karina Guardado)
Date: Thu, 8 Mar 2012 09:57:58 -0600
Subject: [mapserver-users] WMSGetFeatureInfo problem
Message-ID:
From: Karina Guardado
Date: Mon, Mar 5, 2012 at 4:24 PM
Subject: problems with getinformation
To: "mapserver-users at lists.osgeo.org"
Hi,
I'm working with Mapserver, openlayers and mapfish on linux Debian. I have
added a option in map application to get information from a map by click
on it.
toolbar.addControl(new OpenLayers.Control.WMSGetFeatureInfo({
isDefault: true,
title: 'Info'
}),
{
iconCls: 'query',
toggleGroup: 'map'
});
toolbar.activate();
But when i click on one point for example it is looking but doesn't shoe
anything and when looking at the fireburg result I found this
msWMSFeatureInfo(): WMS server error. Unsupported INFO_FORMAT value (text/html).
I ask me if this is a problem with mapserver or with openlayers, any
help please.
thanks in advance.
regards,
Karina Guardado
El Salvador
--
==========================================================
M.Sc. Karina Guardado
Unidad de Inform?tica
Facultad de Ciencias Naturales y Matem?tica
Universidad de El Salvador
Final 25 Av. Nte.
San Salvador, El Salvador
Tel. (503) 2511 2000 x. 5013
Celular: (503) 7115 2898
13?43'7.58" N
89?12'18.31"W
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From pcorti at gmail.com Thu Mar 8 08:27:34 2012
From: pcorti at gmail.com (Paolo Corti)
Date: Thu, 8 Mar 2012 17:27:34 +0100
Subject: [mapserver-users] WMSGetFeatureInfo problem
In-Reply-To:
References:
Message-ID:
> But when i click on one point for example it is looking but doesn't shoe
> anything and when looking at the fireburg result I found this
>
> msWMSFeatureInfo(): WMS server error. Unsupported INFO_FORMAT value
> (text/html).
>
>
>
> I ask me if this is a problem with mapserver or with openlayers, any help
> please.
most likely you are missing the the wms_feature_info_mime_type
metadata item [1]:
add "wms_feature_info_mime_type" "text/html" in the WEB/METADATA
section of mapfile
best regards
P
[1] http://mapserver.org/ogc/wms_server.html
--
Paolo Corti
Geospatial software developer
web: http://www.paolocorti.net
twitter: @capooti
skype: capooti
From ian.walberg at airborne.aero Thu Mar 8 08:48:21 2012
From: ian.walberg at airborne.aero (Ian Walberg)
Date: Thu, 8 Mar 2012 11:48:21 -0500
Subject: [mapserver-users] Image resample options
Message-ID: