Re: [mapserver-users] Projection

2012-06-14 Thread Arnd Wippermann
Your map extent should something like this

EXTENT 3186000 521 4006000 6156000

PROJECTION
  init=epsg:2166
  #or init=epsg:31467
END
 
then your layer should show.

Instead of Gauss-Krüger i would take EPSG:25832 (UTM32).
It's the new official used projection for Germany .

The layer will look the same as GK3.

Arnd


In Deutschland hat die Arbeitsgemeinschaft der Vermessungsverwaltungen der
Länder der Bundesrepublik Deutschland (AdV) im Jahre 1991 die Einführung des
ETRS89 als einheitliches amtliches Lagebezugssystem für ganz Deutschland
beschlossen.
(Quelle:http://de.wikipedia.org/wiki/Europ%C3%A4isches_Terrestrisches_Refere
nzsystem_1989)


-Ursprüngliche Nachricht-
Von: mapserver-users-boun...@lists.osgeo.org
[mailto:mapserver-users-boun...@lists.osgeo.org] Im Auftrag von Thomas
Hofmann
Gesendet: Donnerstag, 14. Juni 2012 16:39
An: mapserver-users@lists.osgeo.org
Betreff: [mapserver-users] Projection

Hello,

currently I am working on a map displaying the distiribution of a name
(surname/forename/location name) in Germany. For that purpose mapserver (v.
5.6.5) and php-mapscript is used.

The underlying geographic information is from a public domain shapefile
containing postcode (PLZ) regions of germany:
http://www.metaspatial.net/download/plz.tar.gz

Details on that data in german:
http://arnulf.us/PLZ

There the data is described as originally been in Gauß Krüger 3-Streifen,
but the shapefile's data as beeing converted to EPSG:4326 (WGS84).

The map should be rendered so that the width and height of germany are more
or less like here:
http://de.wikipedia.org/wiki/Datei:Deutschland_politisch_2010.png

Without configured projections it looks like:
https://www.dropbox.com/s/n1uobhd12xhsf4u/1ee63112dc71c15f1247994883aebc42.p
ng

So some projection is needed.

One question is, what projection would be appropriate, I suppose something
like Alber's equal area or Gauß-Krüger zone 3 could do the trick. But
before that I would be glad if an arbitrary projection would work at all...

The map-file as generated via mapscript looks like (cut to the relevant
part, as far as I understand it):
MAP
  EXTENT 5.05686874304783 47.2 15.5931312569522 55.1
  IMAGECOLOR 255 255 255
  IMAGETYPE gif
  SIZE 1200 900
  STATUS ON
  CONFIG PROJ_LIB /usr/share/proj/
  NAME Germany

  PROJECTION
init=epsg:2166
  END

  LAYER
NAME 0
PROJECTION
  init=epsg:4326
END
STATUS DEFAULT
TYPE POLYGON
UNITS METERS
CLASS
  NAME PLZ
  STYLE
ANGLE 360
COLOR 99 99 99
OUTLINECOLOR 0 0 0
SYMBOL 0
WIDTH 1
  END
END
  END

END

With this map-file the PLZ layer is not displayed. If omitting the
PROJECTION-section within the LAYER it is displayed.
For reference: the whole zipped mapfile, containing the data:
https://www.dropbox.com/s/sd65gc7dch7swh3/projection.complete.map.zip

So:
- What to do, to get projections working?
- What kind of projection would be appropriate?

Hints are most welcome.

Kind regards,
Thomas Hofmann
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users

___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] Circles around points in miles

2012-06-11 Thread Arnd Wippermann
Hello,

Most likely the radius of your circles is to small for the extent you choose

Arnd

-Ursprüngliche Nachricht-
Von: mapserver-users-boun...@lists.osgeo.org
[mailto:mapserver-users-boun...@lists.osgeo.org] Im Auftrag von Ian Walberg
Gesendet: Montag, 11. Juni 2012 18:37
An: Lime, Steve D (DNR); mapserver-users@lists.osgeo.org
Betreff: Re: [mapserver-users] Circles around points in miles

Steve,

Below is a map file with the settings we are using.

The Extent and projection are commented out for the test.

With the projection set to init=epsg:4326 the circles appear the size we
expect.

With projection set to proj=orth and the extent changed to EXTENT -20
-20 20 20 all the other data (removed form this map file for
simplicity) appears ok and the circles disappear.

Thanks

Ian



MAP
  NAME 'Simple'
  STATUS ON
  SIZE 1280 768

EXTENT -121 34 -115 41
#   EXTENT -20 -20 20 20

  UNITS DD
  SHAPEPATH shp
  IMAGECOLOR 120 120 120

  SYMBOL
NAME 'circle2'
TYPE ELLIPSE
POINTS 1 1 END
FILLED FALSE
  END

  LAYER
DEBUG 5
NAME range_circles
TYPE point
STATUS DEFAULT
UNITS miles
SIZEUNITS miles

FEATURE
POINTS 
 -118 38
END
END
  
CLASS
  STYLE 
  MAXWIDTH 1
SYMBOL 'circle2'
SIZE 50
COLOR 255 0 0
  END
  STYLE 
  MAXWIDTH 1
SYMBOL 'circle2'
SIZE 100
COLOR 255 0 0
  END
  STYLE 
  MAXWIDTH 1
SYMBOL 'circle2'
SIZE 150
COLOR 255 0 0
  END

END
  PROJECTION
proj=latlong
ellps=WGS84
datum=WGS84
END
  END

  PROJECTION
init=epsg:4326

#   proj=ortho
lat_0=38.0
lon_0=-118
ellps=WGS84
  END
END


-Original Message-
From: Lime, Steve D (DNR) [mailto:steve.l...@state.mn.us]
Sent: Monday, June 11, 2012 7:45 AM
To: Ian Walberg; mapserver-users@lists.osgeo.org
Subject: RE: [mapserver-users] RE: Circles around points in miles

What are the UNITs set to with proj=ortho?

-Original Message-
From: Ian Walberg [mailto:ian.walb...@airborne.aero]
Sent: Friday, June 08, 2012 7:19 PM
To: mapserver-users@lists.osgeo.org
Cc: Lime, Steve D (DNR)
Subject: RE: [mapserver-users] RE: Circles around points in miles

This question from earlier in the year has finally got to the top of our to
do list.

The issue is how to draw a circle at a given size (ideally in miles) when
using proj=ortho.

Everything works well when using proj=latlong and SIZEUNITS miles.

Is this the expected behaviour and we do not understand something or is this
a problem?

Many thanks

Ian

-Original Message-
From: mapserver-users-boun...@lists.osgeo.org
[mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Ian Walberg
Sent: Thursday, February 16, 2012 1:57 PM
To: mapserver-users@lists.osgeo.org
Cc: Lime, Steve D (DNR)
Subject: RE: [mapserver-users] RE: Circles around points in miles

This does not work in all cases as we hoped,  or we may not  understand how
to use the overall ma projection correctly.

All the layers have the projection set to proj=latlong,ellps=WGS84.

However if we set the overall map projection from this to proj=ortho
the layer with the sizeunits set disappears.

Is this an issue related to the projection or that the map units are now
different.

If we remove the sizeunits from the layer with the circles they reappear but
of course are not the correct size (in miles).

Many thanks

Ian

-Original Message-
From: Ian Walberg
Sent: Wednesday, February 15, 2012 11:40 AM
To: Stephen Woodbridge; mapserver-users@lists.osgeo.org
Subject: RE: [mapserver-users] RE: Circles around points in miles

Stephen,

That appears to do the trick.

Many thanks

Ian

-Original Message-
From: mapserver-users-boun...@lists.osgeo.org
[mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Stephen
Woodbridge
Sent: Wednesday, February 15, 2012 10:36 AM
To: mapserver-users@lists.osgeo.org
Subject: Re: [mapserver-users] RE: Circles around points in miles

On 2/15/2012 1:23 PM, Ian Walberg wrote:
 Steve,

 Thanks again for the info so far.

 Testing this today we realise (not surprisingly) that both the size 
 and width of the symbol are now in miles.

 Ideally we would like to set the radius of the circle in miles and the

 width in pixels.

 Is there any way of doing this?

Yes, add minwidth 1 and maxwidth 1 to force the width to 1 pixel.

-Steve W

 Regards

 Ian

 -Original Message-
 From: Lime, Steve D (DNR) [mailto:steve.l...@state.mn.us]
 Sent: Monday, February 13, 2012 2:57 PM
 To: Ian Walberg; mapserver-users@lists.osgeo.org
 Subject: RE: Circles around points in miles

 I jumped 

AW: [mapserver-users] Open Layers Problem

2012-04-28 Thread Arnd Wippermann
your server
http://173.236.45.118/cgi-bin/mapserv?map=/home/bicimapas/mapdata/BiciMapasM
S.map
works also well with OpenLayers.
 
This should show your server with OpenLayers:
 
http://gis.ibbeck.de/olclient/OLClient.asp?WMC=./data/WMC/BiciMapasMS.wmc.xm
l
 
Perhaps you use not the right zoomlevel in OpenLayers to see anything. I
have to use zoomlevel 16 to see something.
 
by the way also you have corrected it, the mapfile path have to be a
filesystem path and not an url.
 
Arnd

  _  

Von: mapserver-users-boun...@lists.osgeo.org
[mailto:mapserver-users-boun...@lists.osgeo.org] Im Auftrag von Alberto
Najera
Gesendet: Samstag, 28. April 2012 05:17
An: mapserver-users@lists.osgeo.org
Betreff: RE: [mapserver-users] Open Layers Problem


Brent,
 
Thanks for testing it. The  home/bicimapas/  path is the webserver
directory tree. As a fact this same  test map works well using the Mapserver
templates as you can test with this link
 
http://173.236.45.118/bcmpms_i.html  which is the initialization page. Press
Acceder and you will be taken to the map. The question here is why can the
Mapserver template can access the file while OpenLayers does not.
 
Is there a reference document or tutorial on how to properly set up
OpenLayers to work with Mapserver? 
 
Alberto Najera
 
De: pcr...@pcreso.com [mailto:pcr...@pcreso.com] 
Enviado el: viernes, 27 de abril de 2012 07:26 p.m.
Para: mapserver-users@lists.osgeo.org; Alberto Najera
Asunto: RE: [mapserver-users] Open Layers Problem
 

Hi Alberto, 

I can get the capabilities document,  a list of available layers, using the
WMS facility in Quantum GIS, but when I try to access/load the layers as a
map the request fails:

Response: HTML 
HEADTITLEMapServer Message/TITLE/HEAD
!-- MapServer version 6.0.1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG SUPPORTS=PROJ
SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=ICONV SUPPORTS=WMS_SERVER
SUPPORTS=WMS_CLIENT SUPPORTS=GEOS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE --
BODY BGCOLOR=#FF
msLoadMap(): Unable to access file.
(http://173.236.45.118/home/bicimapas/mapdata/BiciMapasMS.map)
/BODY/HTML
 
I suggest that having your mapfile in your home directory tree rather than
your webserver's directory tree might be the problem.
 
You might also try tools like uDIG or QGIS to access the WMS service  debug
it before you try to get it working with OpenLayers.
 
Cheers,
 
   Brent Wood



 
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


AW: [mapserver-users] Mapserver WFS - ODBC RDBMS - GEOMETRY_COLUMNS andSPATIAL_REF_SYS Tables

2012-03-02 Thread Arnd Wippermann
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-boun...@lists.osgeo.org
[mailto:mapserver-users-boun...@lists.osgeo.org] Im Auftrag von Donald Kerr
Gesendet: Donnerstag, 1. März 2012 23:49
An: mapserver-users@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@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users

___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


AW: [mapserver-users] Mapserver WFS - ODBC RDBMS - GEOMETRY_COLUMNS andSPATIAL_REF_SYS Tables

2012-03-02 Thread Arnd Wippermann
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.k...@dkerr.co.uk] 
Gesendet: Freitag, 2. März 2012 19:55
An: 'Arnd Wippermann'
Cc: mapserver-users@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.00 665829.00
258665.00 666035.00
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):

gml:boundedBy
gml:Nullmissing/gml:Null
/gml:boundedBy

Many thanks.

Regards,

Donald


___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


AW: [mapserver-users] Style a polygon with Horizontal, Vertical, or Diagonal Lines using SLD?

2012-02-01 Thread Arnd Wippermann
you can define a symbol for the hatch in your mapfile
 
  SYMBOL
NAME schraffur
TYPE HATCH
  END

and use this in your sld
 
An example how it works:
http://gis.ibbeck.de/ginfo/apps/OLExamples/OL210/MapServer_SLD_World/MapServ
er_SLD_World.asp?mapservLayers=0
http://gis.ibbeck.de/ginfo/apps/OLExamples/OL210/MapServer_SLD_World/MapSer
ver_SLD_World.asp?mapservLayers=0SLDsrcIdx=42 SLDsrcIdx=42
 
Arnd

  _  

Von: mapserver-users-boun...@lists.osgeo.org
[mailto:mapserver-users-boun...@lists.osgeo.org] Im Auftrag von Paul Edwards
Gesendet: Dienstag, 31. Januar 2012 20:37
An: mapserver-users@lists.osgeo.org
Betreff: [mapserver-users] Style a polygon with Horizontal, Vertical,or
Diagonal Lines using SLD?


Hi All!

I'm wondering if anyone has experience styling maps with horizontal,
vertical, or diagonal lines when using MapServer WMS and a custom provided
SLD? The documentation states: 

http://mapserver.org/ogc/sld.html#named-styles-support

A Fill can be a solid fill or be a Graphic Fill, which is either a
well-known Mark symbol (e.g., square, circle, triangle, star, cross, x) or
an ExternalGraphic element (e.g., gif, png) available through a URL




This pretty clearly states that the way to accomplish my goal is by tiling
an externally referenced image that has the line oriented the way I want,
but then we lose the coloring options. GeoServer has some cool SLD
extensions that are outside the spec (see link below) and I was wondering if
MapServer had anything similar?


http://docs.geoserver.org/stable/en/user/styling/sld-extensions/pointsymbols
.html#the-shape-symbols


Thanks!
Paul


___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


AW: [mapserver-users] Smuggling vendor parameters into WMSOnlineResource

2011-10-31 Thread Arnd Wippermann
Hi,

You can build your own template.

In your mapfile insert
TEMPLATE 'path\templates\openlayers_lh.html'

And request the map
http://[version6]/mapserv.exe?map=brd.mapmode=browsetemplate=openlayers_lh
layers=Kreise
 
You have to take an other name than openlayers.html, to get your template.

Arnd

-Ursprüngliche Nachricht-
Von: mapserver-users-boun...@lists.osgeo.org
[mailto:mapserver-users-boun...@lists.osgeo.org] Im Auftrag von Rahkonen
Jukka
Gesendet: Montag, 31. Oktober 2011 22:12
An: mapserver-users@lists.osgeo.org
Betreff: [mapserver-users] Smuggling vendor parameters into
WMSOnlineResource

Hi,

I have been playing with vendor parameters with some WMS services for making
layers more dynamic.  For example
http://188.64.1.61/cgi-bin/ms_ows?REQUEST=GetMapSERVICE=WMSVERSION=1.1.1W
IDTH=563HEIGHT=437LAYERS=default,osm_pisteetTRANSPARENT=TRUEFORMAT=image
/pngBBOX=-369151.98300283286,6597900.0,1511076.628895184,8057331.444759207
SRS=EPSG:3067STYLES=sql=highway='bus_stop'

Problem is that properly behaving WMS clients are taking the GetMap URL from
the GetgCapabilities document and that is fixed by the wms_onliresource
metadata in a mapfile. Some WMS clients (at least OpenJUMP, QGis and Kosmo)
can be configured to add the extra parameters also into GetMaps but some
others don't.  The OpenLayers demo client that comes with Mapserver 6.0.1 is
one of those. It creates the demo layer with this code:
var mslayer = new OpenLayers.Layer.MapServer( MapServer Layer,
[mapserv_onlineresource],
 {layers: '[layers]'},
 {singleTile: true, ratio:1} );

Does anybody know a simple way for transferring the same vendor parameters
which are used in the GetCapabilities request into the GetMap OnlineResource
element of the response?

-Jukka Rahkonen-___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users

___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


AW: [mapserver-users] default values if not provided in the URL

2011-10-27 Thread Arnd Wippermann
Hi,

You can use a wrapper for the mapserver request instead of a url with the
mapfile parameter. 

Inside the wrapper you can decide which mapfile to use.

Simple example wrapper in asp:
http://trac.osgeo.org/mapserver/ticket/1254

Arnd



-Ursprüngliche Nachricht-
Von: mapserver-users-boun...@lists.osgeo.org
[mailto:mapserver-users-boun...@lists.osgeo.org] Im Auftrag von Puneet
Kishor
Gesendet: Donnerstag, 27. Oktober 2011 18:51
An: Fawcett, David (MPCA)
Cc: mapserver-users@lists.osgeo.org
Betreff: Re: [mapserver-users] default values if not provided in the URL

David,

On Oct 27, 2011, at 11:19 AM, Fawcett, David (MPCA) wrote:

 Two hackish thoughts:
 
 1.  Utilize a pair of mapfiles.  The first one has all of the classes on
by default.  The second one has all of the class with STATUS OFF.  
 
 On the client side, you determine if you have any class args and route 
 the request to the appropriate mapfile. If the client has a request 
 with class args, you append one of these for each class  
 'map.layer[0].class[3]=status on' (specifying the correct layer and 
 class index values)
 


The mapserver request is being made in a number of ways. If there is control
on the client side, then, yes, different map files can be requested.

http://server/mapall returns all the classes, and
http://server/mapfew?class=Foo,Bar returns only Foo and Bar

However, the same URI is to be reused in other client apps as well (such as
OL), so the ability to choose which map file to request is limited. In any
case, for a number of external reasons, the URI is supposed to be unique,
so http://server/mapall and http://server/mapfew violate that principle,
however, http://server/mapthem (defaulting to 'class=All') and
http://server/mapthem?class=Foo,Bar do not violate that uniqueness
principle.

Alright, moving on ...

 If you only had a few classes, you could easily manage this with one 
 mapfile (without running up against the character limits on GET 
 requests)
 

I said earlier that I have 100s of classes. I was wrong. Turns out I have 49
classes in this map file. However, in another map file I do have almost 700
classes. The use case is either the user gets all, or is able to specify one
or two to filter and show only those.


 2.  What are you really trying to do?  It seem like classes are for
selecting and symbolizing/formatting data for output.  Do you really want to
filter out the data using a filter at the layer level.  If you can avoid
running all of your data through the expressions for each class, it should
perform better too.
 


Dunno how else to explain but with the following text -- the table (aka a
layer) has a column called classes and these classes map to specific
colors stored in another column.

I want to be able to return a map as per the URI rules above.


 David.
 
 -Original Message-
 From: mapserver-users-boun...@lists.osgeo.org 
 [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Puneet 
 Kishor
 Sent: Thursday, October 27, 2011 10:50 AM
 To: mapserver-users@lists.osgeo.org
 Subject: [mapserver-users] default values if not provided in the URL
 
 the fine manual says http://mapserver.org/cgi/runsub.html
 
 Since version 5.6, you can provide a default value for any 
 substitution parameter, that will be applied if the parameter was not
found in the url.
 You do this by providing special entries inside the layer metadata :
 
  METADATA
  'default_sound' 'yes'
  'default_nseats' '5'
  'default_multimedia' 'yes'
  END
 
 In this example, the mapfile will be created as if the url contained 
 sound=yesnseats=5multimedia=yes
 
 
 Right then. Except, I want *all* my classes to be drawn if no class 
 has been provided. And, if one or more classes have been provided, 
 then I want only those to be drawn. So,
 
   http://server/mapfile?mode=map
 
 should return a map with all the 100+ classes in a layer. And
 
   http://server/mapfile?mode=mapclasses=Foo,Bar
 
 (or some other variation of the above) should return a map with only the
requested classes in the layer. I can't think of anyway of doing the above
without resorting to scripting, and I still have had no luck with WMS
returned from Perl MapScripting.
 
 Suggestions.
 
 --
 Puneet Kishor___
 mapserver-users mailing list
 mapserver-users@lists.osgeo.org
 http://lists.osgeo.org/mailman/listinfo/mapserver-users
 
 

___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users

___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


AW: [mapserver-users] Mapserver WMS Grey-scale Images

2011-10-08 Thread Arnd Wippermann
Perhaps to use OUTPUTFORMAT with 

FORMATOPTION PALETTE=/path/to/palette.txt
FORMATOPTION PALETTE_FORCE=on

may help
 
http://gis.ibbeck.de/ginfo/apps/OLExamples/OL210/MapServer_SLD_World/MapServ
er_Grayscale.asp

Arnd

-Ursprüngliche Nachricht-
Von: mapserver-users-boun...@lists.osgeo.org
[mailto:mapserver-users-boun...@lists.osgeo.org] Im Auftrag von
lfi...@medinaco.org
Gesendet: Donnerstag, 6. Oktober 2011 16:23
An: mapserver-users@lists.osgeo.org
Betreff: [mapserver-users] Mapserver WMS  Grey-scale Images

Good day.
We currently use Mapserver/Mapscript for several different functions. One of
those functions is to serve orthophotography via WMS. Does anyone know if
there is a way to configure Mapserver or Perl Mapscript to consume color
images and serve grey-scale?
Thank you. 

Lowell Filak
Medina County Engineers
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users

___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


AW: [mapserver-users] Re: Feature wish: Internal mapfile variables

2011-10-04 Thread Arnd Wippermann
Hi,

MapServer supports named styles.

http://mapserver.org/ogc/sld.html#sld

At rendering time, if the CLASSGROUP is defined, only classes that have the
same group name would be used. Based on this concept, WMS/SLD support uses
the class groups as named styles. Each group of classes is considered
equivalent to a named style:

* The GetCapbilities request will output all the styles that are
available
* The GetMap request can use the STYLES parameter to specify a named
style
* The GetLegendGraphic can use the STYLES parameter to specify a named
style


This part of the docs have to be updated:

STYLES=style_list: Comma-separated list of one rendering style per
requested layer. Optional if SLD parameter is present. NOTE that MapServer
does not support named styles, so most times you would specify STYLES=
with an empty value. MapServer does support STYLES when used with an SLD.


Named Styles are supported, if CLASSGROUP is used in the mapfile. But I
cann't retrieve named styles, if i use SLD.


GetCapabilities showing the named styles
http://gis.ibbeck.de/ginfo/apps/OLExamples/OL210/MapServer_SLD_World/world_g
is_6beta.asp?SERVICE=WMSVERSION=1.1.1REQUEST=GetCapabilities

GetMap with STYLES=continents (also available group1, group2, group3)
http://gis.ibbeck.de/ginfo/apps/OLExamples/OL210/MapServer_SLD_World/world_g
is_6beta.asp?LAYERS=countryFORMAT=image%2FpngVERSION=1.1.1TRANSPARENT=tru
eSERVICE=WMSREQUEST=GetMapSTYLES=continentsEXCEPTIONS=application%2Fvnd.
ogc.se_inimageSRS=EPSG%3A4326BBOX=0,-90,180,90WIDTH=256HEIGHT=256

Example
http://gis.ibbeck.de/ginfo/apps/OLExamples/OL210/MapServer_SLD_World/MapServ
er_SLD_World.asp?SLDsrcSet=standardSLDsrcSetIdx=1


Arnd

 

-Ursprüngliche Nachricht-
Von: mapserver-users-boun...@lists.osgeo.org
[mailto:mapserver-users-boun...@lists.osgeo.org] Im Auftrag von Rahkonen
Jukka
Gesendet: Dienstag, 4. Oktober 2011 15:44
An: 'Stephen Woodbridge'; 'mapserver-users@lists.osgeo.org'
Betreff: Re: [mapserver-users] Re: Feature wish: Internal mapfile variables

Hi,

Nice to see that the idea that I stole from Thomas but that is obviously
invented a long time ago by other people too aroused so much discussion.
There was some dreaming about more advanced things that I had on my mind but
your and Michael's suggestions are simple enough for me to follow.

I was using a name internal mapfile variable because I was thinking that
contrary to other variables they could not be set from the outside world. If
the only way to set them is to write them into the mapfile either directly
or through INCLUDE (Stephen's idea which I like a lot) then I suppose that
they could be used wherever in the mapfile without any bigger security risk
than the one you take by deciding to write a mapfile. Letting users to
select from the ready made parameter collections by sending the INCLUDE
client_id can be considered safe too, at least if the %client_id% is
validated.

With the INCLUDEs and client-params files the old OSM styles by Thomas
Bonfort, for example with the Bing style parameters
http://code.google.com/p/mapserver-utils/source/browse/archive/bing.style
or alternatively Mapserver style parameters
http://code.google.com/p/mapserver-utils/source/browse/archive/mapserver.sty
le

could be easily applied with one main mapfile and separate style parameter
files. A fixed style could be used by having in the main mapfile line
INCLUDE bing-style-parameters
and user selectable styles by using the input variable as Stephen suggested
INCLUDE client-params-%client_id%.inc

It would be much more fun to fine tune the map appearance by editing the
style parameter file that to touch the thousand lines long main mapfile.
Using Python scripts and c preprocessor is not a real alternative for
unqualified users like me, especially on Windows when the preprocessor must
be run through cygwin.

Besides, at the moment Mapserver does not support WMS STYLES as the
documentation http://mapserver.org/ogc/wms_server.html says:

STYLES=style_list: Comma-separated list of one rendering style per
requested layer. Optional if SLD parameter is present. NOTE that MapServer
does not support named styles, so most times you would specify STYLES=
with an empty value. MapServer does support STYLES when used with an SLD.

I can somehow imagine that the STYLES= parameters could be converted into
the INCLUDEd style parameter sets and that way we could get the missing WMS
style support too.

-Jukka Rahkonen-


 -Alkuperäinen viesti-
 Lähettäjä: mapserver-users-boun...@lists.osgeo.org
 [mailto:mapserver-users-boun...@lists.osgeo.org] Puolesta Stephen 
 Woodbridge
 Lähetetty: 3. lokakuuta 2011 21:52
 Vastaanottaja: mapserver-users@lists.osgeo.org
 Aihe: Re: [mapserver-users] Re: Feature wish: Internal mapfile 
 variables
 
 One idea regarding this that you might want to consider is the ability 
 to put all the named parameters in an include file, then be able to 
 include that file via a CGI parameter. So it might 

AW: [mapserver-users] getFeatureInfo html with special characters indatasource

2011-09-09 Thread Arnd Wippermann
Hi,

Perhaps you can use [yourFIELD_raw]. It shouldn't encode HTML.

http://mapserver.org/mapfile/template.html
[attribute name],[attrribute name_esc],[attribute item name_raw]


Or you can use javascript in your templates to solve this

!-- Mapserver Template --
script
var ret = [yourFIELD].split( ).join(br);
document.write(ret);
/script
 
Arnd

-Ursprüngliche Nachricht-
Von: mapserver-users-boun...@lists.osgeo.org
[mailto:mapserver-users-boun...@lists.osgeo.org] Im Auftrag von Jörg Thomsen
Gesendet: Freitag, 9. September 2011 12:01
An: mapserver-users@lists.osgeo.org
Betreff: [mapserver-users] getFeatureInfo html with special characters
indatasource

hi,

I'd like to get a html-feature-info like

Niedersachsen
167

I get both, 'Niedersachsen' and '167' from the same table-column of the
database and I need the line break between them. When I use
'Niedersachsenbr167' in the Atrributes, mapserver changes the brackets
into the html-entities and i get 'Niedersachsenlt;brgt;167'
which is shown as 'Niedersachsenbr167' in the browser-window.

Are there any special-characters I can use in the database or is there an
other solution?

Jörg
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users

___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


AW: [mapserver-users] WFS with OpenLayers

2011-07-13 Thread Arnd Wippermann
Hi,
 
Good explanation.
I like MapServer, but sometimes it is difficult to get it working as one
wishes. I haven't tried WFS version 1.1.0 yet.
 
A hint to OpenLayers. If you include proj4.js and the projection files
needed for your purpose to your application, and adds the param projection
to your wfs layer options, you can reproject the wfs response clientside.
 
Best Regards,
Arnd

  _  

Von: mapserver-users-boun...@lists.osgeo.org
[mailto:mapserver-users-boun...@lists.osgeo.org] Im Auftrag von geographika
Gesendet: Mittwoch, 13. Juli 2011 13:18
An: mapserver-users@lists.osgeo.org
Betreff: Re: [mapserver-users] WFS with OpenLayers


Hi,

I spent awhile configuring MapServer and OpenLayers - the notes here may
help. 

http://geographika.co.uk/mapserver-openlayers-and-the-wfs-maze


--
web: http://geographika.co.uk  http://geographika.co.uk
twitter: @geographika




On 11/07/2011 10:54, parseca...@web.de wrote: 

Hello MapServer users,



are there any good tutorials how to set up MapServer 6.0 for WFS? It doesn't
work for me with OpenLayers.



Thanks for any hint...

Regards,



Alex

___

Schon gehört? WEB.DE hat einen genialen Phishing-Filter in die

Toolbar eingebaut! http://produkte.web.de/go/toolbar

___

mapserver-users mailing list

mapserver-users@lists.osgeo.org

http://lists.osgeo.org/mailman/listinfo/mapserver-users




___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


AW: [mapserver-users] WFS with 6.0.0 Beta RC2

2011-07-11 Thread Arnd Wippermann
Hi,

I have also problems with post request

Version 6.0.0 : 
with DATA 'shapefile' in the mapfile MapServer found no or not all results,
http://gis.ibbeck.de/ginfo/apps/OLExamples/OL210/MapServer_WFS_Demo/MapServe
r_WFS_Demo.asp?connectionOGR=falseSLDsrcIdx=8

with CONNECTIONTYE ogr and CONNECTION 'shapefile' MapServer works as
expected. 
http://gis.ibbeck.de/ginfo/apps/OLExamples/OL210/MapServer_WFS_Demo/MapServe
r_WFS_Demo.asp?connectionOGR=trueSLDsrcIdx=8

Arnd


-Ursprüngliche Nachricht-
Von: Alexander Petkov [mailto:green...@gmail.com] 
Gesendet: Montag, 11. Juli 2011 22:45
An: Arnd Wippermann
Cc: mapserver-users@lists.osgeo.org
Betreff: Re: [mapserver-users] WFS with 6.0.0 Beta RC2

The interesting thing is that when a GET request is issued with the same
filter, the GML for the feature is returned as expected.
Does anybody have POST GetFeature requests working with Mapserver v6.0.0?

Thanks in advance,
Alex
On Mon, Jul 11, 2011 at 12:34 PM, Alexander Petkov green...@gmail.com
wrote:
 I am getting the same behaviour with Mapserver 6.0.0. Previous 5.6.* 
 releases work fine with the same request. I am wondering whether I am 
 missing some new required declaration since 6.0.0 was released...

 Alex

 On Mon, May 9, 2011 at 2:44 PM, Arnd Wippermann arnd.wipperm...@web.de
wrote:
 Hi,

 I'm trying to get WFS working with 6.0.0 Beta RC2.

 If i use MapServer 5.6.5 a wfs post request returns the features.
 If I use MapServer 6.0.0 the same post request responses with 
 ...gml:nullmissing/gml:null.

 The BBOX coordinates, the mapfile projection and layer is in EPSG:3763.
 In the WEB METADATA Block is set 'wfs_srs' 'EPSG:3763'
 There is no reprojection needed.

 Is there something I have to consider, when using MapServer Version 
 6.0.0 and WFS.

 Arnd

 POST

 wfs:GetFeature xmlns:wfs=http://www.opengis.net/wfs; service=WFS
 version=1.0.0 maxFeatures=100
 wfs:Query typeName=default
 ogc:Filter xmlns:ogc=http://www.opengis.net/ogc;
 ogc:BBOX
 ogc:PropertyNamemsgeometry/ogc:PropertyName
 gml:Box xmlns:gml=http://www.opengis.net/gml; srsName=EPSG:3763 
 gml:coordinates decimal=. cs=, ts= 
 -535786.68671593,-509560.89777426
 559489.72019154,364218.61581997/gml:coordinates
 /gml:Box
 /ogc:BBOX
 /ogc:Filter
 /wfs:Query
 /wfs:GetFeature

 RESPONSE MapServer 5.6.5

 ?xml version='1.0' encoding=ISO-8859-1 ? wfs:FeatureCollection
   xmlns:ms=http://mapserver.gis.umn.edu/mapserver;
   xmlns:wfs=http://www.opengis.net/wfs;
   xmlns:gml=http://www.opengis.net/gml;
   xmlns:ogc=http://www.opengis.net/ogc;
   xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
   xsi:schemaLocation=http://www.opengis.net/wfs
 http://schemas.opengis.net/wfs/1.0.0/WFS-basic.xsd
                       http://mapserver.gis.umn.edu/mapserver
 http://dir/mapserv.exe?map=mapfileamp;Service=WFSamp;SERVICE=WFSam
 p;VERSI 
 ON=1.0.0amp;REQUEST=DescribeFeatureTypeamp;TYPENAME=defaultamp;OUT
 PUTFORM
 AT=XMLSCHEMA
      gml:boundedBy
        gml:Box srsName=EPSG:3763
                gml:coordinates-21537.507741,-91486.277029
 44944.469424,-56235.046915/gml:coordinates
        /gml:Box
      /gml:boundedBy
    gml:featureMember
      ms:default
        gml:boundedBy
                gml:Box srsName=EPSG:3763
                        gml:coordinates-21441.941044,-67958.139907
 -11234.384166,-56235.046915/gml:coordinates
                /gml:Box
        /gml:boundedBy
        ms:msGeometry
        gml:Polygon srsName=EPSG:3763
          gml:outerBoundaryIs
            gml:LinearRing
              gml:coordinates-21441.941044,-56235.046915
 -11234.384166,-56256.314719 -16838.013555,-67958.139907
 -21441.941044,-56235.046915 /gml:coordinates
            /gml:LinearRing
          /gml:outerBoundaryIs
        /gml:Polygon
        /ms:msGeometry
        ms:nameNo 1/ms:name
        ms:descriptioAREA/ms:descriptio
      /ms:default
    /gml:featureMember
 ...


 RESPONSE MapServer 6.0.0

 ?xml version='1.0' encoding=ISO-8859-1 ? wfs:FeatureCollection
   xmlns:ms=http://mapserver.gis.umn.edu/mapserver;
   xmlns:wfs=http://www.opengis.net/wfs;
   xmlns:gml=http://www.opengis.net/gml;
   xmlns:ogc=http://www.opengis.net/ogc;
   xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
   xsi:schemaLocation=http://www.opengis.net/wfs
 http://schemas.opengis.net/wfs/1.0.0/WFS-basic.xsd
                       http://mapserver.gis.umn.edu/mapserver
 http://dir/mapserv.exe?map=mapfileamp;Service=WFSamp;SERVICE=WFSam
 p;VERSI 
 ON=1.0.0amp;REQUEST=DescribeFeatureTypeamp;TYPENAME=defaultamp;OUT
 PUTFORM
 AT=XMLSCHEMA
   gml:boundedBy
      gml:nullmissing/gml:null
   /gml:boundedBy
 /wfs:FeatureCollection

 LOG Entry

 [Mon May 09 22:11:54 2011].666000 CGI Request 1 on process 3968 [Mon 
 May 09 22:11:54 2011].666000 msQueryByFilter(): Search returned no 
 results. No matching record(s) found.
 [Mon May 09 22:11:54 2011].713000 msProjectRect(): some points failed 
 to reproject, doing internal sampling.
 [Mon May 09 22:11:54 2011].713000 mapserv request processing

AW: [mapserver-users] ogc:And in SLD .. ?

2011-07-07 Thread Arnd Wippermann
Hi,

It does

See your sld on
http://gis.ibbeck.de/ginfo/apps/OLExamples/OL210/MapServer_SLD_Demo/MapServe
r_SLD_Demo.asp?SLDsrcIdx=38
 
Perhaps your attributs names or values not in the correct writing (upper and
lowercase).

Arnd

-Ursprüngliche Nachricht-
Von: mapserver-users-boun...@lists.osgeo.org
[mailto:mapserver-users-boun...@lists.osgeo.org] Im Auftrag von Julien Cigar
Gesendet: Donnerstag, 7. Juli 2011 17:16
An: mapserver-users@lists.osgeo.org
Betreff: [mapserver-users] ogc:And in SLD .. ?

Hello,

I slowly started to use SLD, and I made one with the following:

(...)
ogc:And

   ogc:PropertyIsEqualTo
 ogc:PropertyNamecntr_id/ogc:PropertyName
 ogc:LiteralBE/ogc:Literal
   /ogc:PropertyIsEqualTo

   ogc:PropertyIsEqualTo
 ogc:PropertyNamebiogeo/ogc:PropertyName
 ogc:LiteralContinental/ogc:Literal
   /ogc:PropertyIsEqualTo

/ogc:And
(...)

(full stylesheet is available on http://www.pastie.org/2177871)

However, it seems that the ogc:And is ignored by mapserver ..? Does it
supports conditional filters (ogc:And|Or|...) in SLD stylesheets?

Thanks,
Julien

--
No trees were killed in the creation of this message.
However, many electrons were terribly inconvenienced.

___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


AW: [mapserver-users] Low-resolution raster image problem when usingOpenlayers

2011-07-01 Thread Arnd Wippermann
You can request tiles from MapServer by a MapServer cgi request or by a WMS
request.
 
OpenLayers uses this
 
DEFAULT_PARAMS: {
mode: map,
map_imagetype: png // a 8bit png if not otherwise declared in the
mapfile
},

for OpenLayers.Layer.MapServer
 
DEFAULT_PARAMS: { service: WMS,
  version: 1.1.1,
  request: GetMap,
  styles: ,
  exceptions: application/vnd.ogc.se_inimage,
  format: image/jpeg
 },

for OpenLayers.Layer.WMS
 
if you not specify a imageformat, then the OpenLayers.Layer.MapServer
requests a png and the WMS requests a jpg (if not set transparent=true).
 
Arnd

  _  

Von: kensei3000 [mailto:kensei3...@yahoo.com] 
Gesendet: Donnerstag, 30. Juni 2011 04:58
An: Arnd Wippermann
Cc: mapserver-users@lists.osgeo.org
Betreff: Re: AW: [mapserver-users] Low-resolution raster image problem
when usingOpenlayers


Hi Arnd,


I see. I used the same 'mapserv' url in both OpenLayers.Layer.WMS and
.MapServer code. The requests were sent to the same remote server. So the
difference must be in the requests. Is it possible that OpenLayers.Layer.WMS
generated a different output url string from the one generated by
OpenLayers.Layer.MapServer?

Ken

  _  

From: Arnd Wippermann arnd.wipperm...@web.de
To: 'kensei3000' kensei3...@yahoo.com
Cc: mapserver-users@lists.osgeo.org
Sent: Thursday, June 30, 2011 1:15 AM
Subject: AW: [mapserver-users] Low-resolution raster image problem when
usingOpenlayers


Hi Ken,
 
Quote : Interestingly, if I use the 'mapserv' executable directly in the
browser instead of using OpenLayers API, the image also renders correctly.
 
There could be no difference (OpenLayers.Layer.WMS or .MapServer), because
with OpenLayers you only create an url for an image tag (img src=url).
The response have to be the same as from the browser directly.
 
The difference could only be a result from different requests or the same
request to different servers.
 
Arnd
 
  _  

Von: kensei3000 [mailto:kensei3...@yahoo.com] 
Gesendet: Mittwoch, 29. Juni 2011 09:56
An: Arnd Wippermann
Cc: us...@openlayers.org
Betreff: Re: AW: [mapserver-users] Low-resolution raster image problem
when usingOpenlayers


Hi Arnd,


I checked the images properties of the tile images using ImageMagick.

tile_topleft_remote.png has image type Palette (8-bit)
tile_topleft_local.png has image type TrueColor (32-bit)

The results I got seem to correlate with your findings.
Indeed, it appears that the image rendering between my local pc and the
server are different.

The map files are exactly same since I sync them in both computers. 


The MapServer versions, however, are different. Here's what I got:

LOCAL:
MapServer version 6.0.0 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG SUPPORTS=PROJ
SUPPORTS=AGG SUPPORTS=CAIRO SUPPORTS=FREETYPE SUPPORTS=ICONV
SUPPORTS=FRIBIDI SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER
SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=SOS_SERVER SUPPORTS=FASTCGI
SUPPORTS=THREADS SUPPORTS=GEOS INPUT=POSTGIS INPUT=OGR INPUT=GDAL
INPUT=SHAPEFILE


REMOTE:
MapServer version 5.6.1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP
OUTPUT=SWF OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE
SUPPORTS=ICONV SUPPORTS=FRIBIDI SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT
SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=FASTCGI
SUPPORTS=THREADS SUPPORTS=GEOS INPUT=EPPL7 INPUT=POSTGIS INPUT=OGR
INPUT=GDAL INPUT=SHAPEFILE


The MapServer executable in the remote server is an older version (5.6.1)
than the one in my pc (6.0.0). I edited the map files and images in my local
pc, then synced them to the server, so there may be an incompatibility. I
checked the Mapserver Migration Guide
(http://mapserver.org/de/MIGRATION_GUIDE.html) and my guess was that the
default OUTPUTFORMAT specifications of both versions could be different. I
did not specify an explicit OUTPUTFORMAT in my map file.


I created another test. This time I explicitly defined the OUTPUTFORMAT with
the following lines added to the map file in the remote server:


 OUTPUTFORMAT

NAME jpeg
DRIVER AGG/JPEG
MIMETYPE image/jpeg
IMAGEMODE RGB
EXTENSION jpg
  END

The result was that the output image generated by the remote server rendered
in TrueColor, similar to the output image in my local pc. Problem appears to
be fixed.


My guess right now is that the  IMAGEMODE parameter above was somehow set to
PC256 (i.e. 8-bit color palette) by default.


Interestingly, if I use the 'mapserv' executable directly in the browser
instead of using OpenLayers API, the image also renders correctly.
EXAMPLE: 
http://remotehost/cgi-bin/mapserv?map=/opt/maps/sandbox/mapserver_openlayers
_if/sample.mapmode=map



Above 'sample.map' did not have the OUTPUTFORMAT object explicitly defined. 


In another test I ran using the original 'sample.map' (i.e. no OUTPUTFORMAT
object), I edited

AW: [mapserver-users] mapserver SLD Scale

2011-06-30 Thread Arnd Wippermann
hi,
 
here an online example for
 
  MinScaleDenominator.../MinScaleDenominator
  MaxScaleDenominator.../MaxScaleDenominator

of a polygonlayer. 
 
http://gis.ibbeck.de/ginfo/apps/OLExamples/OL210/MapServer_SLD_Demo/MapServe
r_SLD_Demo.asp?SLDsrcIdx=37
http://gis.ibbeck.de/ginfo/apps/OLExamples/OL210/MapServer_SLD_Demo/MapServ
er_SLD_Demo.asp?SLDsrcIdx=37mapservVersion=6.0.0SLDsrcSet=gis.ibbeck.de
mapservVersion=6.0.0SLDsrcSet=gis.ibbeck.de
 
Arnd
 
  _  

Von: mapserver-users-boun...@lists.osgeo.org
[mailto:mapserver-users-boun...@lists.osgeo.org] Im Auftrag von Tonton
Gesendet: Donnerstag, 30. Juni 2011 17:48
An: mapserver-users
Betreff: [mapserver-users] mapserver SLD Scale


hello 

i'd like to find sample for min/maxscale  in a sld synthax and where to
write it in the file for show label of point 
in different scale that seen label 

or together for first ;) 

regards 

tonton

___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


[mapserver-users] WFS with 6.0.0 Beta RC2

2011-05-09 Thread Arnd Wippermann
Hi,

I'm trying to get WFS working with 6.0.0 Beta RC2.

If i use MapServer 5.6.5 a wfs post request returns the features.
If I use MapServer 6.0.0 the same post request responses with
...gml:nullmissing/gml:null.

The BBOX coordinates, the mapfile projection and layer is in EPSG:3763. 
In the WEB METADATA Block is set 'wfs_srs' 'EPSG:3763'
There is no reprojection needed.

Is there something I have to consider, when using MapServer Version 6.0.0
and WFS.

Arnd

POST

wfs:GetFeature xmlns:wfs=http://www.opengis.net/wfs; service=WFS
version=1.0.0 maxFeatures=100
wfs:Query typeName=default
ogc:Filter xmlns:ogc=http://www.opengis.net/ogc;
ogc:BBOX
ogc:PropertyNamemsgeometry/ogc:PropertyName
gml:Box xmlns:gml=http://www.opengis.net/gml; srsName=EPSG:3763
gml:coordinates decimal=. cs=, ts= -535786.68671593,-509560.89777426
559489.72019154,364218.61581997/gml:coordinates
/gml:Box
/ogc:BBOX
/ogc:Filter
/wfs:Query
/wfs:GetFeature

RESPONSE MapServer 5.6.5

?xml version='1.0' encoding=ISO-8859-1 ?
wfs:FeatureCollection
   xmlns:ms=http://mapserver.gis.umn.edu/mapserver;
   xmlns:wfs=http://www.opengis.net/wfs;
   xmlns:gml=http://www.opengis.net/gml;
   xmlns:ogc=http://www.opengis.net/ogc;
   xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
   xsi:schemaLocation=http://www.opengis.net/wfs
http://schemas.opengis.net/wfs/1.0.0/WFS-basic.xsd 
   http://mapserver.gis.umn.edu/mapserver
http://dir/mapserv.exe?map=mapfileamp;Service=WFSamp;SERVICE=WFSamp;VERSI
ON=1.0.0amp;REQUEST=DescribeFeatureTypeamp;TYPENAME=defaultamp;OUTPUTFORM
AT=XMLSCHEMA
  gml:boundedBy
gml:Box srsName=EPSG:3763
gml:coordinates-21537.507741,-91486.277029
44944.469424,-56235.046915/gml:coordinates
/gml:Box
  /gml:boundedBy
gml:featureMember
  ms:default
gml:boundedBy
gml:Box srsName=EPSG:3763
gml:coordinates-21441.941044,-67958.139907
-11234.384166,-56235.046915/gml:coordinates
/gml:Box
/gml:boundedBy
ms:msGeometry
gml:Polygon srsName=EPSG:3763
  gml:outerBoundaryIs
gml:LinearRing
  gml:coordinates-21441.941044,-56235.046915
-11234.384166,-56256.314719 -16838.013555,-67958.139907
-21441.941044,-56235.046915 /gml:coordinates
/gml:LinearRing
  /gml:outerBoundaryIs
/gml:Polygon
/ms:msGeometry
ms:nameNo 1/ms:name
ms:descriptioAREA/ms:descriptio
  /ms:default
/gml:featureMember
...


RESPONSE MapServer 6.0.0

?xml version='1.0' encoding=ISO-8859-1 ?
wfs:FeatureCollection
   xmlns:ms=http://mapserver.gis.umn.edu/mapserver;
   xmlns:wfs=http://www.opengis.net/wfs;
   xmlns:gml=http://www.opengis.net/gml;
   xmlns:ogc=http://www.opengis.net/ogc;
   xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
   xsi:schemaLocation=http://www.opengis.net/wfs
http://schemas.opengis.net/wfs/1.0.0/WFS-basic.xsd 
   http://mapserver.gis.umn.edu/mapserver
http://dir/mapserv.exe?map=mapfileamp;Service=WFSamp;SERVICE=WFSamp;VERSI
ON=1.0.0amp;REQUEST=DescribeFeatureTypeamp;TYPENAME=defaultamp;OUTPUTFORM
AT=XMLSCHEMA
   gml:boundedBy
  gml:nullmissing/gml:null
   /gml:boundedBy
/wfs:FeatureCollection

LOG Entry

[Mon May 09 22:11:54 2011].666000 CGI Request 1 on process 3968
[Mon May 09 22:11:54 2011].666000 msQueryByFilter(): Search returned no
results. No matching record(s) found.
[Mon May 09 22:11:54 2011].713000 msProjectRect(): some points failed to
reproject, doing internal sampling.
[Mon May 09 22:11:54 2011].713000 mapserv request processing time (msLoadMap
not incl.): 0.047s
[Mon May 09 22:11:54 2011].713000 msFreeMap(): freeing map at 0184A9E8.






___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


[mapserver-users] SLD Filter with comment breaks filter

2011-05-06 Thread Arnd Wippermann
Hi,

The filter PropertyIsLike works now as expected with 6 RC2.

I have noticed two other issues:

1. The use of a filter And/Or with two or more conditions and adding a
comment between the conditions
resolves to true for all features, whether true or not.

Filter
And
  PropertyIsLike wildCard=* singleChar=. escape=!
  PropertyNameNA3DESC/PropertyNameLiteralAsia/Literal
  /PropertyIsLike
  !-- comment causes only one class in temporary mapfile --
  PropertyIsLike wildCard=* singleChar=. escape=!
  PropertyNameDESCRIPTIO/PropertyNameLiteralContinent/Literal
  /PropertyIsLike
/And
/Filter 

2. The use of a filter And/Or with only one condition
resolves to true for all features, whether true or not.

Filter
And
  PropertyIsLike wildCard=* singleChar=. escape=!
  PropertyNameNA3DESC/PropertyNameLiteralAsia/Literal
  /PropertyIsLike
/And
/Filter 

Arnd


___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


[mapserver-users] error and temp file handling with 6.0.0

2011-04-29 Thread Arnd Wippermann
Hi,

I'm a bit confused about how MapServer log errors and where it saves
temporary files.

In my mapfile I have declared 

CONFIG MS_ERRORFILE file.err #and DEBUG is not set

LOG file.log #in the WEB block
TEMPPATH ...   #in the WEB block

Playing with SLD and polygon fill with exernal graphic doesn't work, but
creates nevertheless some output.

1. 
error output will be written in file.err and file.log, but the messages not
the same.

file.log
Fri Apr 29 14:20:31
2011,2492,127.0.0.1,simple_continents_shp_4326,-1,86.660156 -93.339844
183.339844 3.339844,-1.00 -1.00,,msDrawMap(): Image handling error.
Failed to draw layer named 'continents'. br
msOGRFileNextShape(): OGR error. IllegalArgumentException: Points of
LinearRing do not form a closed linestring br

file.err
[Fri Apr 29 14:27:03 2011].453000 msOGRFileNextShape(): OGR error.
IllegalArgumentException: Points of LinearRing do not form a closed
linestring
[Fri Apr 29 14:27:03 2011].453000 msDrawMap(): Image handling error. Failed
to draw layer named 'continents'.

Why do MapServer uses two files to log errors? And it seems, one have to
look in both, because the messages are not equal.

2.
TEMPPATH
If declared, this path is used to save the temporary mapfile and the
temporary sldfiles. But the external graphic is saved in the System Temp
Directory C:\WINDOWS\TEMP.
Should the graphic not saved at the same place?

Also there is an error message that speaks of TMPPATH instead of TEMPPATH:
[Fri Apr 29 14:10:42 2011].937000 msSLDApplySLDURL: WMS server error. Could
not open SLD http://localhost/.../sld_polygon_fill_symbol_external.xml and
save it in temporary file C:\WINDOWS\TEMP\4dbaaac2_b34_0.sld.xml. Please
make sure that the sld url is valid and that the temporary path is set. The
temporary path can be defined for example by setting TMPPATH in the map
file. Please check the MapServer documentation on temporary path settings.

Arnd

___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


AW: [mapserver-users] Some issues with SLD and MapServer 6.0.0 Beta RC1

2011-04-29 Thread Arnd Wippermann
Hi 

Here you can online see 

external graphic mostly not showing
http://gis.ibbeck.de/ginfo/apps/OLExamples/OL210/MapServer_SLD_World/MapServ
er_SLD_World.asp?SLDsrcIdx=51mapservVersion=6.0.0

Perhaps it has something to do with the complexity of the polygons. Locally
test with simplier polygons works. But also with the simplier polygons it
doesn't show the graphic if i apply the sld file from
http://demo.mapserver.org/ogc-demos/map/sld/sld_polygon_fill_symbol_external
.xml (gif image).

Rotated square not like 5.6.1
http://gis.ibbeck.de/ginfo/apps/OLExamples/OL210/MapServer_SLD_World/MapServ
er_SLD_World.asp?SLDsrcIdx=51mapservVersion=6.0.0

borders as thin lines without stroke set
http://gis.ibbeck.de/ginfo/apps/OLExamples/OL210/MapServer_SLD_World/MapServ
er_SLD_World.asp?SLDsrcIdx=52mapservVersion=6.0.0 

The patch I cannot test. I'm not able to compile MapServer by myself.

Thank for watching the points

Regards,
Arnd



-Ursprüngliche Nachricht-
Von: Yewondwossen Assefa [mailto:yass...@dmsolutions.ca] 
Gesendet: Freitag, 29. April 2011 19:48
An: Arnd Wippermann
Cc: mapserver-users@lists.osgeo.org
Betreff: Re: [mapserver-users] Some issues with SLD and MapServer 6.0.0 Beta
RC1

On 28/04/2011 3:12 PM, Yewondwossen Assefa wrote:
 Sorry I hit send  with finishing the e-mail. I will through each items 
 tomorrow and report.

 On 28/04/2011 3:10 PM, Yewondwossen Assefa wrote:
 On 28/04/2011 9:34 AM, Arnd Wippermann wrote:
 Hi,

 I'm interested in map styling with SLD and have tested it locally 
 with MapServer 6.0.0 Beta RC1 windows binaries from
www.gisinternals.com.

 I have created an online application to play with SLD and the 
 different MapServer versions.
 http://gis.ibbeck.de/ginfo/apps/OLExamples/OL210/MapServer_SLD_World
 /MapServ

 er_SLD_World.asp

 There the below issues can be seen. For the online application I 
 have only 6.0.0 Beta 7 available, but it is the same with RC1.

 Most things work great and create a good looking output.

 But some things doesn't work as expected.

 1.
 It seems, that the output directory for debug is set static to 
 C:\Windows\Temp.
 msApplySLD(): Map file after SLD was applied 
 C:\WINDOWS\TEMP\4db963c5_ab0_1._sld.map
 IMGPATH or IMGURL is not take in account.

 Temporary files are now written into the tmp directory location. It 
 depends on the platform but should respect the environment variables 
 set on your platform regarding temporary paths. It is not hardcoded 
 in Mapserver.  Ticket http://trac.osgeo.org/mapserver/ticket/3354 has 
 notes on this.

 2. fill external symbol
 Polygon fill with external graphic is erratic. If I zoom in one 
 level i get one tile (South America).
 It creates a file
 http%3A%2F%2Fgis.ibbeck.de%2FOLClient%2FSLD%2Fsmileyface.png in 
 C:\Windows\Temp.
I am not sure I could reproduce this. With local test file, I was able to
get a fill polygon with external symbol working.
If you have a simple map/data I can use, you can create a trac bug and
attach it to them and assign it to me (osgeoid: assefa)


 3. Continent, Continent_Else
 Filter PropertyIsLike doesn't work. With 5.6.1 it is ok.
 Expression from generated mapfile : EXPRESSION ([Continent] =~
 /^Africa/)

 4. or_like_abcdef
 Filter Or and PropertyIsLike doesn't work. With 5.6.1 only the last 
 entry of PropertyIsLike are taken.
 With Or and PropertyIsEqualTo all entries are taken in both versions.
 Expression from generated mapfile (6 beta): EXPRESSION ( 
 ([country] =~
 /^A/) Or  ( ([country] =~ /^B/) Or  ( ([country] =~ /^C/) Or  ( 
 ([country] =~ /^D/) Or  ( ([country] =~ /^E/) Or  ([country]
 =~ /^F/))
 ) ) ) )

 msEvalExpression: Expression parser error. Failed to parse expression:
 ([country] =~ /^A/) Or ...

 With changing =* to ~* and / to  the mapfile works :
 EXPRESSION ( ([country] ~* ^A) Or  ( ([country] ~* ^B) Or ...

 It seems, that in the generated mapfile is a wrong expression.


I was able to reproduce this. I have added a bug
(http://trac.osgeo.org/mapserver/ticket/3855) on it and a patch that should
correct the issue. Is it  possible for you to test the patch and report
through the bug? Thx


 5. symbol fill rotated
 Polygon fill with rotated square looks interesting, but not as 
 expected. Try with 5.6.1.

Here again I tried vectir synbols (weel-know sld symbols like star) as well
as the graphic symbols but could not see a problem. The roration parameter
should translate into an angle parameter in the style. I have tried this
using agg output. Here again if you have test data that demonstrate it
please open a trac bug.


 6. fill solid
 Polygon with solid fill without stroke shows thin lines of the borders.


Same as above.


 Some other issues are likely not supported by MapServer, but would 
 be nice to have them.




 A.
 Changing the hatch width with sld. see group3, hatch as it is 
 possible with mapfile class.

 B.
 UserStyles from applied SLD not supported in WMS Styles

 C.
 WMS request GetStyles creates only one userstyle with rules

[mapserver-users] Some issues with SLD and MapServer 6.0.0 Beta RC1

2011-04-28 Thread Arnd Wippermann
Hi,

I'm interested in map styling with SLD and have tested it locally with
MapServer 6.0.0 Beta RC1 windows binaries from www.gisinternals.com.

I have created an online application to play with SLD and the different
MapServer versions.
http://gis.ibbeck.de/ginfo/apps/OLExamples/OL210/MapServer_SLD_World/MapServ
er_SLD_World.asp

There the below issues can be seen. For the online application I have only
6.0.0 Beta 7 available, but it is the same with RC1.

Most things work great and create a good looking output. 

But some things doesn't work as expected.

1. 
It seems, that the output directory for debug is set static to
C:\Windows\Temp. 
msApplySLD(): Map file after SLD was applied
C:\WINDOWS\TEMP\4db963c5_ab0_1._sld.map
IMGPATH or IMGURL is not take in account.

2. fill external symbol
Polygon fill with external graphic is erratic. If I zoom in one level i get
one tile (South America).
It creates a file
http%3A%2F%2Fgis.ibbeck.de%2FOLClient%2FSLD%2Fsmileyface.png in
C:\Windows\Temp.

3. Continent, Continent_Else
Filter PropertyIsLike doesn't work. With 5.6.1 it is ok.
Expression from generated mapfile : EXPRESSION ([Continent] =~ /^Africa/)

4. or_like_abcdef
Filter Or and PropertyIsLike doesn't work. With 5.6.1 only the last entry of
PropertyIsLike are taken.
With Or and PropertyIsEqualTo all entries are taken in both versions.
Expression from generated mapfile (6 beta): EXPRESSION ( ([country] =~
/^A/) Or  ( ([country] =~ /^B/) Or  ( ([country] =~ /^C/) Or  (
([country] =~ /^D/) Or  ( ([country] =~ /^E/) Or  ([country] =~ /^F/))
) ) ) )

msEvalExpression: Expression parser error. Failed to parse expression:
([country] =~ /^A/) Or ...

With changing =* to ~* and / to  the mapfile works : 
EXPRESSION ( ([country] ~* ^A) Or  ( ([country] ~* ^B) Or ...

It seems, that in the generated mapfile is a wrong expression.

5. symbol fill rotated
Polygon fill with rotated square looks interesting, but not as expected. Try
with 5.6.1.

6. fill solid
Polygon with solid fill without stroke shows thin lines of the borders.

Some other issues are likely not supported by MapServer, but would be nice
to have them.

A.
Changing the hatch width with sld. see group3, hatch as it is possible
with mapfile class.

B.
UserStyles from applied SLD not supported in WMS Styles

C.
WMS request GetStyles creates only one userstyle with rules from the
different styles described in the mapfile. Should it not create different
userstyles for each style described in the mapfile?

Regards,
Arnd






___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


AW: [mapserver-users] CLASS visualization with different attributevalue

2011-01-17 Thread Arnd Wippermann
And OR instead of AND I would suggest.

Arnd 

-Ursprüngliche Nachricht-
Von: mapserver-users-boun...@lists.osgeo.org
[mailto:mapserver-users-boun...@lists.osgeo.org] Im Auftrag von Lime, Steve
D (DNR)
Gesendet: Montag, 17. Januar 2011 17:49
An: Simone Frigerio; mapserver-users@lists.osgeo.org
Betreff: RE: [mapserver-users] CLASS visualization with different
attributevalue

The expression is invalid since 0_2_0_4_5 isn't quoted and isn't a number.
Try:

  EXPRESSION ([Combis] = 0_2_0_4_5 AND [Combis] = 1_2_3_4_5)

Steve

From: mapserver-users-boun...@lists.osgeo.org
[mapserver-users-boun...@lists.osgeo.org] On Behalf Of Simone Frigerio
[simone.frige...@univie.ac.at]
Sent: Monday, January 17, 2011 3:55 AM
To: mapserver-users@lists.osgeo.org
Subject: [mapserver-users] CLASS visualization with different attribute
value

Hello,
I need to visualize a POLYGON with one class composed by different values of
the same attribute. This is the string I used, but no visualizations occour.

 LAYER
NAME COMBI_DF_RF_SL
TYPE POLYGON
..
CLASSITEM Combis
CLASS
  NAME PROVA2
  EXPRESSION ([Combis] = 0_2_0_4_5 AND [Combis] = 1_2_3_4_5)
  STYLE
COLOR 251 25 11
...
  END
END
  END

The attribute Combis has thousands of recordsand different values. Could
be possible aggregate in a EXPRESSION string like i did with pixel value for
raster?

Thanks!
Simone

___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users

___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


AW: [mapserver-users] shp/dbf file's name

2010-08-21 Thread Arnd Wippermann
Hi Johan,

Haven't thought, that it is possible to style by joined fields. But your
example works. First I had some trouble to get the right syntax, and that
causes in MapServer  crashes. But finally it worked! (Mapserver 5.2, 5.6.1)

With connection to shape and dbase folder
CONNECTIONTYPE OGR
CONNECTION C:\mypath\BRD #path were the data resides
DATA SELECT * FROM DEU_adm1 LEFT JOIN DEU_adm1_EDICHTE ON DEU_adm1.HASC_1 =
DEU_adm1_EDICHTE.HASC_1

With connection to shape and dbase by fullpath
CONNECTIONTYPE OGR
CONNECTION C:\mypath\BRD\DEU_adm1.shp
DATA SELECT * FROM DEU_adm1 LEFT JOIN 'C:\mypath\BRD\EDICHTE.dbf'.EDICHTE
ON DEU_adm1.HASC_1 = EDICHTE.HASC_1


But now I have the problem, that WMS GetFeatureInfo returns no results. The
queried features are the states of Germany, so I can't miss them. Can you
confirm that it should work.

Arnd


-Ursprüngliche Nachricht-
Von: mapserver-users-boun...@lists.osgeo.org
[mailto:mapserver-users-boun...@lists.osgeo.org] Im Auftrag von Johan
Forsman
Gesendet: Freitag, 20. August 2010 18:22
An: Clément MONIER
Cc: mapserver-users@lists.osgeo.org
Betreff: RE: [mapserver-users] shp/dbf file's name

If I understand your question correctly you are attempting to do something
similar to what I have where I am coloring polygons in a shapefile based on
a numeric value stored in a frequently-updated CSV-file. As long as you have
a field in both files that you can join on it ought to work.

I used the OGR connection type as briefly discussed in a previous post,
http://www.mail-archive.com/mapserver-us...@lists.umn.edu/msg13477.html

This is the type of syntax you appear to need:

CONNECTIONTYPE OGR
CONNECTION /var/www/demodata/a.shp //path to the shapefile DATA SELECT
a.ID, b.NAME FROM a LEFT JOIN '/var/www/demodata/b.dbf'.b ON a.ID=b.ID

In my case the LAYER section in the mapfile looks like this, where FIPS is
the field I join the files on.

LAYER
  NAME 'parishes_on_boiladv'
  CONNECTIONTYPE OGR
  CONNECTION myshapefile.shp
  DATA SELECT * FROM myshapefile LEFT JOIN
'full_path_to_file_named_bwa.csv'.bwa ON myshapefile.FIPS = bwa.FIPS
  STATUS on
  TYPE polygon
  CLASSITEM PercentageOut
  CLASS
EXPRESSION ([PercentageOut]  0 AND [PercentageOut] = 10)
NAME 0 - 10%
STYLE
  COLOR 56 168 0
END
  END #class
(continues with several more classes).

Hope that helps,
Johan.

 -Original Message-
 From: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users- 
 boun...@lists.osgeo.org] On Behalf Of Clément MONIER
 Sent: Friday, August 20, 2010 9:06 AM
 To: P Kishor
 Cc: mapserver-users@lists.osgeo.org
 Subject: RE: [mapserver-users] shp/dbf file's name
 
  How would MapServer know which row in your external dbf file matches
 which row (aka feature) in your ShapeFile?
  What if the external dbf file doesn't have the same number of rows 
  as
 the number of features in your ShapeFile?
 
 not really a problem as I'm able to generate dbf files with records in 
 exactly same number and order as inside shp.
 
 
  The dbf format is pretty primitive. Your best bet is to actually add 
  to
 your ShapeFile the data that is now in your external file.  It will 
 also likely be faster.
 
 That's precisely what I can't do any more, since I'd like to join 
 various kinds of time-related attributes on very static geometries.
 
 -Message d'origine-
 De : P Kishor [mailto:punk.k...@gmail.com] Envoyé : vendredi 20 août 
 2010 15:42 À : Clément MONIER Cc : mapserver-users@lists.osgeo.org 
 Objet : Re: [mapserver-users] shp/dbf file's name
 
 On Fri, Aug 20, 2010 at 8:22 AM, Clément MONIER 
 clement.mon...@v-trafic.com wrote:
  Hi,
 
 
 
  I would like to know if it's possible to draw geometries from a shp 
  file
 
  according to attributes from a dbf
 
  but with 2 files named differently.
 
 
 
  For instance :
 
 
 
  LAYER
 
    NAME layer1
 
    DATA shapefile1.shp
 
    CLASS
 
      EXPRESSION ([col1]=1)
 
      STYLE
 
      END
 
    END
 
  END
 
 
 
  Where col1 is a field inside a file storing attributes 
  (dbf/csv/txt/.)
 but
  not named shapefile1.dbf
 
 
 
 How would MapServer know which row in your external dbf file matches 
 which row (aka feature) in your ShapeFile? What if the external dbf 
 file doesn't have the same number of rows as the number of features in 
 your ShapeFile?
 
 The dbf format is pretty primitive. Your best bet is to actually add 
 to your ShapeFile the data that is now in your external file. It will 
 also likely be faster.
 
 
 
 
  I already tried to use the JOIN option but I think it's 
  inappropriate
 for my
  purpose
 
  since You cannot use joins to affect the look of a map
  (http://mapserver.org/mapfile/join.html)
 
 
 
  Thanks for your help !
 
 
 
  Clément
 
 
 
  ___
  mapserver-users mailing list
  mapserver-users@lists.osgeo.org
  http://lists.osgeo.org/mailman/listinfo/mapserver-users
 
 
 
 
 
 --
 Puneet Kishor http://www.punkish.org
 Carbon Model 

WG: [OpenLayers-Users] [mapserver-users] WFS GetFeature and SLDfilter Between

2010-08-05 Thread Arnd Wippermann
 

-Ursprüngliche Nachricht-
Von: users-boun...@openlayers.org [mailto:users-boun...@openlayers.org] Im
Auftrag von Arnd Wippermann
Gesendet: Donnerstag, 5. August 2010 17:33
An: 'Yewondwossen Assefa'
Cc: us...@openlayers.org
Betreff: Re: [OpenLayers-Users] [mapserver-users] WFS GetFeature and
SLDfilter Between

Hi,

I take

CONNECTIONTYPE OGR
CONNECTION'Squares.gml' 

To use the same data for OpenLayers.GML and OpenLayers.WFS.

If I change to Shape, it works.

Thanks.

Arnd



-Ursprüngliche Nachricht-
Von: Yewondwossen Assefa [mailto:yass...@dmsolutions.ca]
Gesendet: Donnerstag, 5. August 2010 15:57
An: Arnd Wippermann
Cc: mapserver-users@lists.osgeo.org
Betreff: Re: [mapserver-users] WFS GetFeature and SLD filter Between

Hi There,

  Would you please let me know what is the underlying layer's format that
OGR is using;  It might help to to reproduce the problem?

 From reading this, the OGC filter has been translated into an sql statement
and passed to OGR (something like WHERE row  BETWEEN 2 AND 4). From my
understanding, OGR passes sql statements to underlying drivers that support
sql or parses it it self when the driver does not support it.

I have opened a bug on it http://trac.osgeo.org/mapserver/ticket/3510
and will update it as I find the problem.

You can maybe also try your filter by converting the between operator to  =
and = as a work around.

best regards,


On 04/08/2010 6:27 AM, Arnd Wippermann wrote:
 Hi

 if I use a SLD filter Between for filter the WFS getfeature, I get 
 the following error:

 ?xml version='1.0' encoding=ISO-8859-1 ? ServiceExceptionReport 
 version=1.2.0 xmlns=http://www.opengis.net/ogc;
 xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
 xsi:schemaLocation=http://www.opengis.net/ogc
 http://schemas.opengis.net/wfs/1.0.0/OGC-exception.xsd;
ServiceException code=NoApplicableCode locator=mapserv
 msWFSGetFeature(): WFS server error. FLTApplyFilterToLayer() failed
 msOGRFileWhichShapes(): OGR error. SetAttributeFilter( (row BETWEEN 2 
 AND
 4)) failed on layer Squares.
 Failed to identify operation:BETWEEN
/ServiceException
 /ServiceExceptionReport

 Is it a known bug, or is perhaps the post request incorrect?

 That's the post request

 post

 wfs:getfeature xmlns:wfs=http://www.opengis.net/wfs; service=WFS
 version=1.0.0 maxFeatures=100
 xsi:schemaLocation=http://www.opengis.net/wfs
 http://schemas.opengis.net/wfs/1.0.0/WFS-transaction.xsd;
 xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
 wfs:query typeName=Squares
 ogc:propertyname
 xmlns:ogc=http://www.opengis.net/ogc;name/ogc:propertyname
 ogc:propertyname
 xmlns:ogc=http://www.opengis.net/ogc;description/ogc:propertyname
 ogc:propertyname
 xmlns:ogc=http://www.opengis.net/ogc;row/ogc:propertyname
 ogc:propertyname
 xmlns:ogc=http://www.opengis.net/ogc;column/ogc:propertyname
 ogc:propertyname
 xmlns:ogc=http://www.opengis.net/ogc;indice/ogc:propertyname
 ogc:propertyname
 xmlns:ogc=http://www.opengis.net/ogc;msGeometry/ogc:propertyname
 ogc:filter xmlns:ogc=http://www.opengis.net/ogc;
 ogc:propertyisbetween
 ogc:propertynamerow/ogc:propertyname
 ogc:lowerboundary
 ogc:literal2/ogc:literal
 /ogc:lowerboundary
 ogc:upperboundary
 ogc:literal4/ogc:literal
 /ogc:upperboundary
 /ogc:propertyisbetween
 /ogc:filter
 /wfs:query
 /wfs:getfeature

 MapServer 5.6.1

 I hope someone has a clue.

 Arnd

 ___
 mapserver-users mailing list
 mapserver-users@lists.osgeo.org
 http://lists.osgeo.org/mailman/listinfo/mapserver-users




--

Assefa Yewondwossen
Software Analyst

Email: yass...@dmsolutions.ca
http://www.dmsolutions.ca/

Phone: (613) 565-5056 (ext 14)
Fax:   (613) 565-0925



___
Users mailing list
us...@openlayers.org
http://openlayers.org/mailman/listinfo/users

___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


[mapserver-users] WFS GetFeature and SLD filter Between

2010-08-04 Thread Arnd Wippermann
Hi

if I use a SLD filter Between for filter the WFS getfeature, I get the
following error:

?xml version='1.0' encoding=ISO-8859-1 ?
ServiceExceptionReport version=1.2.0 xmlns=http://www.opengis.net/ogc;
xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
xsi:schemaLocation=http://www.opengis.net/ogc
http://schemas.opengis.net/wfs/1.0.0/OGC-exception.xsd;
  ServiceException code=NoApplicableCode locator=mapserv
msWFSGetFeature(): WFS server error. FLTApplyFilterToLayer() failed
msOGRFileWhichShapes(): OGR error. SetAttributeFilter( (row BETWEEN 2 AND
4)) failed on layer Squares.
Failed to identify operation:BETWEEN
  /ServiceException
/ServiceExceptionReport

Is it a known bug, or is perhaps the post request incorrect?

That's the post request

post

wfs:getfeature xmlns:wfs=http://www.opengis.net/wfs; service=WFS
version=1.0.0 maxFeatures=100
xsi:schemaLocation=http://www.opengis.net/wfs
http://schemas.opengis.net/wfs/1.0.0/WFS-transaction.xsd;
xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
wfs:query typeName=Squares
ogc:propertyname
xmlns:ogc=http://www.opengis.net/ogc;name/ogc:propertyname
ogc:propertyname
xmlns:ogc=http://www.opengis.net/ogc;description/ogc:propertyname
ogc:propertyname
xmlns:ogc=http://www.opengis.net/ogc;row/ogc:propertyname
ogc:propertyname
xmlns:ogc=http://www.opengis.net/ogc;column/ogc:propertyname
ogc:propertyname
xmlns:ogc=http://www.opengis.net/ogc;indice/ogc:propertyname
ogc:propertyname
xmlns:ogc=http://www.opengis.net/ogc;msGeometry/ogc:propertyname
ogc:filter xmlns:ogc=http://www.opengis.net/ogc;
ogc:propertyisbetween
ogc:propertynamerow/ogc:propertyname
ogc:lowerboundary
ogc:literal2/ogc:literal
/ogc:lowerboundary
ogc:upperboundary
ogc:literal4/ogc:literal
/ogc:upperboundary
/ogc:propertyisbetween
/ogc:filter
/wfs:query
/wfs:getfeature

MapServer 5.6.1

I hope someone has a clue.

Arnd

___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


[mapserver-users] layertype CHART - how to get the pie chart for a specific polygon

2010-05-17 Thread Arnd Wippermann
Hi,

i use the layertype CHART to display the results of the election in nrw 2010
for the electoral districts. It works great. The layer shows perfectly the
pie charts for every polygon.

http://gis.ibbeck.de/ginfo/apps/Landtagswahl_NRW_2010/Wahlen_NRW_2010.asp

But is it possible to get the pie chart for a specific polygon? I want to
display the pie chart i.e in a query like this:

http://gis.ibbeck.de/include/mapserv52/mapserv.exe?map=ginfo/apps/Landtagswa
hl_NRW_2010/Landtagswahl_NRW_2010.mapSERVICE=WMSVERSION=1.1.1REQUEST=GetF
eatureInfoQUERY_LAYERS=WKNRLAYERS=WKNRBBOX=965552.54116394,6743580.382492
7,980839.94681885,6758867.7881476SRS=EPSG:900913X=50Y=50WIDTH=100HEIGHT
=100FORMAT=image/pngINFO_FORMAT=text/htmlFEATURE_COUNT=1STYLES=

I have managed this in the template by use of img src=WMS Request and
BBOX=[shpext format=$minx,$miny,$maxx,$maxy] in the WMS request for the
pie chart. And adjust of image width and pie chart size.

If the polygon has a polygon inside (isle), then this approach doesn't work,
because I get two pie charts:

http://gis.ibbeck.de/include/mapserv52/mapserv.exe?map=ginfo/apps/Landtagswa
hl_NRW_2010/Landtagswahl_NRW_2010.mapSERVICE=WMSVERSION=1.1.1REQUEST=Get
FeatureInfoQUERY_LAYERS=WKNRLAYERS=WKNRBBOX=951105.94282005,6738535.53862
66,966393.34847496,6753822.9442815SRS=EPSG:900913X=50Y=50WIDTH=100HEIGH
T=100FORMAT=image/pngINFO_FORMAT=text/htmlFEATURE_COUNT=1STYLES= 


I would like to get the specific pie chart by the district number and cgi
substitution. That would mean, that one get a better control of displaying
the pies in an own context.

  CLASS
EXPRESSION ([F12]=%WKNR%)
NAME 'CDU' #F10
STYLE
SIZE [F10]
COLOR 0 0 255 #00
#OUTLINECOLOR 0 0 0
#WIDTH 1
END
  END

But that doesn't work. Is there an other way possible?


Regards
Arnd Wippermann
http://gis.ibbeck.de/

___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


AW: [mapserver-users] layertype CHART - how to get the pie chart for a specific polygon

2010-05-17 Thread Arnd Wippermann
Hi

Thanks for the ideas

Without testing I would think straight Mapserver cgi will also not work,
because I use substitution with WMS and that works, and EXPRESSION is not
defined in the docs for layer CHART.

But I will try.

OWTChart I don't know, but I will have a look. Problem is, that I do not
know the data, but Mapserver knows them. It seems without some scripting,
...

In my application I use the pie chart for externalGraphic in OpenLayers. For
the WMS request I do not need to know the data for the chart.

I have hoped, that it were possible with MapServer alone to get the chart
for a specific polygon.

Regards,
Arnd


-Ursprüngliche Nachricht-
Von: Lime, Steve D (DNR) [mailto:steve.l...@state.mn.us] 
Gesendet: Montag, 17. Mai 2010 23:28
An: Arnd Wippermann; mapserver-users@lists.osgeo.org
Betreff: RE: [mapserver-users] layertype CHART - how to get the pie chart
for a specific polygon

Two ideas off the top of my head:

  - use straight MapServer CGI and not WMS for the embedded chart request.
That way your idea for runtime subs might work.

  - consider using something other than MapServer to build a stand-alone
chart. I'm guessing you have the data necessary to build the chart available
via the template and you could pass it to a charting tool. The old OWTChart
package is one example where you pass it the data via URL and it returns a
gif. I'm sure there are many other options...

Steve

-Original Message-
From: mapserver-users-boun...@lists.osgeo.org
[mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Arnd
Wippermann
Sent: Monday, May 17, 2010 2:06 PM
To: mapserver-users@lists.osgeo.org
Subject: [mapserver-users] layertype CHART - how to get the pie chart for a
specific polygon

Hi,

i use the layertype CHART to display the results of the election in nrw 2010
for the electoral districts. It works great. The layer shows perfectly the
pie charts for every polygon.

http://gis.ibbeck.de/ginfo/apps/Landtagswahl_NRW_2010/Wahlen_NRW_2010.asp

But is it possible to get the pie chart for a specific polygon? I want to
display the pie chart i.e in a query like this:

http://gis.ibbeck.de/include/mapserv52/mapserv.exe?map=ginfo/apps/Landtagswa
hl_NRW_2010/Landtagswahl_NRW_2010.mapSERVICE=WMSVERSION=1.1.1REQUEST=GetF
eatureInfoQUERY_LAYERS=WKNRLAYERS=WKNRBBOX=965552.54116394,6743580.382492
7,980839.94681885,6758867.7881476SRS=EPSG:900913X=50Y=50WIDTH=100HEIGHT
=100FORMAT=image/pngINFO_FORMAT=text/htmlFEATURE_COUNT=1STYLES=

I have managed this in the template by use of img src=WMS Request and
BBOX=[shpext format=$minx,$miny,$maxx,$maxy] in the WMS request for the
pie chart. And adjust of image width and pie chart size.

If the polygon has a polygon inside (isle), then this approach doesn't work,
because I get two pie charts:

http://gis.ibbeck.de/include/mapserv52/mapserv.exe?map=ginfo/apps/Landtagswa
hl_NRW_2010/Landtagswahl_NRW_2010.mapSERVICE=WMSVERSION=1.1.1REQUEST=Get
FeatureInfoQUERY_LAYERS=WKNRLAYERS=WKNRBBOX=951105.94282005,6738535.53862
66,966393.34847496,6753822.9442815SRS=EPSG:900913X=50Y=50WIDTH=100HEIGH
T=100FORMAT=image/pngINFO_FORMAT=text/htmlFEATURE_COUNT=1STYLES= 


I would like to get the specific pie chart by the district number and cgi
substitution. That would mean, that one get a better control of displaying
the pies in an own context.

  CLASS
EXPRESSION ([F12]=%WKNR%)
NAME 'CDU' #F10
STYLE
SIZE [F10]
COLOR 0 0 255 #00
#OUTLINECOLOR 0 0 0
#WIDTH 1
END
  END

But that doesn't work. Is there an other way possible?


Regards
Arnd Wippermann
http://gis.ibbeck.de/

___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users

___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


AW: [mapserver-users] [wms] How to get gml/xml results from a GetFeatureInfo on OpenStreetMap?

2010-04-09 Thread Arnd Wippermann
Hi,

In your layer declaration add DUMP TRUE and choose
INFO_FORMAT=application/vnd.ogc.gml in the WMS request.

Part from the WMS GetCapabilities Request

GetFeatureInfo
  Formattext/plain/Format
  Formattext/html/Format
  Formatapplication/vnd.ogc.gml/Format

Arnd 

-Ursprüngliche Nachricht-
Von: mapserver-users-boun...@lists.osgeo.org
[mailto:mapserver-users-boun...@lists.osgeo.org] Im Auftrag von Mulone
Gesendet: Freitag, 9. April 2010 17:34
An: mapserver-users@lists.osgeo.org
Betreff: [mapserver-users] [wms] How to get gml/xml results from a
GetFeatureInfo on OpenStreetMap?


Hi guys,
I have a mapserver rendering OpenStreetMap data.
On the GetFeatureInfo the server returns plain text like:

Layer 'landuse_layer3' 
Feature 0: 
osm_id = '23258206' 
amenity = 'college' 
aeroway = '' 
name = 'Stillorgan College of Further Education' 

Layer 'building' 
Feature 0: 
osm_id = '23258205' 
name = '' 

[...]


I'd like to get GML or basic xml code instead of this and I suppose I have
to create a template of some sort.
Unfortunately I was unable to find doc or threads related to this.

Any hints/examples?

Cheers

-
Mulone
PhD student
--
View this message in context:
http://n2.nabble.com/wms-How-to-get-gml-xml-results-from-a-GetFeatureInfo-on
-OpenStreetMap-tp482p482.html
Sent from the Mapserver - User mailing list archive at Nabble.com.
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users

___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


AW: [mapserver-users] WMS GetFeatureInfo on a WFS layer

2010-03-24 Thread Arnd Wippermann
Hi,
 
as I know, you cann't request a WMS or WFS through a connection in your
mapfile (results to Search return no result). Only with own data added as
shapefile and so on, you can get a result for GetfeatureInfo requests.
Wether mapinfo via ogr cann't request, i have no clue. But I would think, it
should be possible.
 
I have checked, that the url is a valid wfs server, also it seems, that it
points to a wms server.
 
Arnd

  _  

Von: mapserver-users-boun...@lists.osgeo.org
[mailto:mapserver-users-boun...@lists.osgeo.org] Im Auftrag von Yves Jacolin
Gesendet: Mittwoch, 24. März 2010 10:24
An: mapserver-users
Betreff: [mapserver-users] WMS GetFeatureInfo on a WFS layer


Hi,

I added a WFS layer in my mapfile and I am using MapServer as a WMS server.
I would like to send a GetFeatureInfo request on this WFS layer but I always
get a Search return no result as answer.

Is it possible to request such layer? I get same problem with an OGR
connection (mapInfo file). Does the problem could occur only with a polyline
feature if we click always too far of the feature?

Or the problem occur from the WFS service?

The WFS service I want to request in my WMS service is
http://carto.ecologie.gouv.fr/MEDD/wms.php?service_idx=17W
http://carto.ecologie.gouv.fr/MEDD/wms.php?service_idx=17Wmap=sacarte.map
map=sacarte.map

Thanks in advance for your help,

Y.
-- 
Yves Jacolin
Responsable Formation et Support
Camptocamp France SAS
Savoie Technolac, BP 352
73377 Le Bourget du Lac Cedex
Tel : + 33 (0)4 79 26 57 97
http://www.camptocamp.com
yves.jaco...@camptocamp.com

___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


AW: [mapserver-users] Problem with Russia polygon

2010-01-06 Thread Arnd Wippermann
Hi,

Use ogr tools to convert the shapefile to mapinfo mif. Then you can look at
the coordinates for the polygons.

There are a couple of times with a longitude  -180.

179.86 -89.92
-180.14999 -89.779991
-179.99941 -84.4286809998 

If you change them to -180 (i have tested with -179. and it works,
perhaps -180 do not work) and convert the mapinfo file back to shape, then
your trouble should be vanished.

Arnd


-Ursprüngliche Nachricht-
Von: mapserver-users-boun...@lists.osgeo.org
[mailto:mapserver-users-boun...@lists.osgeo.org] Im Auftrag von Nelson
Correia
Gesendet: Dienstag, 5. Januar 2010 15:05
An: Rahkonen Jukka; Barend Köbben; Lime, Steve D (DNR); Andy Colson
Cc: mapserver-users@lists.osgeo.org
Betreff: RE: [mapserver-users] Problem with Russia polygon

The problem seems to be with the re-projection from 4326 to 900913, which
I'm doing with mapserver (hence, the map file configuration).

If I configure the mapfile to use 4326 and make a request in 4326, the
problem disappear. So, the re-projection to 900913 should be screwing the
polygons at the edges of the map. 
I tried to re-project the polygons with postgis (st_transform), but I got
the following error:

ERROR:  transform: couldn't project point: -20 (tolerance condition
error)

Which I don't know the meaning.

In the project I'm doing, I have to use 900913, so, if anyone have some
ideas of how to solve this, they will be well appreciated.

Thanks,

Nelson

-Original Message-
From: Rahkonen Jukka [mailto:jukka.rahko...@mmmtike.fi]
Sent: segunda-feira, 4 de Janeiro de 2010 22:03
To: Barend Köbben; Nelson Correia; Lime, Steve D (DNR); Andy Colson
Cc: mapserver-users@lists.osgeo.org
Subject: Re: [mapserver-users] Problem with Russia polygon

Hi,

Unfortunately the extents are OK and the problem is something more
complicated.  Extents are indeed in meters but that's how they must be
because the MAP level projection looks like this:

PROJECTION
init=epsg:900913
END


-Jukka Rahkonen-


-Alkuperäinen viesti-
Lähettäjä: mapserver-users-boun...@lists.osgeo.org puolesta: Barend Köbben
Lähetetty: ma 4.1.2010 22:52
Vastaanottaja: Nelson Correia; Lime, Steve D (DNR); Andy Colson
Kopio: mapserver-users@lists.osgeo.org
Aihe: Re: [mapserver-users] Problem with Russia polygon
 
You've got data that is in latlong (units decimal degrees) in your
shapefile, however in the EXTENT part of the map file you use 
EXTENT -20037508 -13590765 20037508 11229864 Which are not latlomngs but
some projected coordinates, and
UNITS meters

IN the LAYER you tell mapserver that its:
PROJECTION
proj=longlat
datum=WGS84
no_defs
END

These two are contradictory. You'll have to match the PROJECTION in the
LAYER to the actual projection and units (apparentlt these are correct) ,
and make sure the EXTENT is expressed in the same system. So best thing is
to set the EXTENT in latlons (as its the whole world -180 -90 180 90 is a
safe bet) and UNITS to degrees...


Yours,


--
Barend Köbben
Senior Lecturer
University of Twente, Faculty of Geo-Information Science and Earth
Observation (ITC) PO Box 6, 7500AA Enschede, The Netherlands
+31 (0)53 4874253




On 04-01-10 19:34, Nelson Correia nelson-corr...@telecom.pt wrote:

 Here is the simplified shapefile, along with a mapfile that uses it:
 http://www.2shared.com/file/10449234/a18d6a03/countries.html
 
 Nelson
 
 -Original Message-
 From: Lime, Steve D (DNR) [mailto:steve.l...@state.mn.us]
 Sent: segunda-feira, 4 de Janeiro de 2010 17:28
 To: Nelson Correia; Barend Köbben; Andy Colson
 Cc: mapserver-users@lists.osgeo.org
 Subject: RE: [mapserver-users] Problem with Russia polygon
 
 Would be interesting to get a copy of the data in shapefile format, plus
the
 mapfile that generates the error...
 
 Steve
 
 -Original Message-
 From: mapserver-users-boun...@lists.osgeo.org
 [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Nelson
Correia
 Sent: Monday, January 04, 2010 7:32 AM
 To: Barend Köbben; Andy Colson
 Cc: mapserver-users@lists.osgeo.org
 Subject: RE: [mapserver-users] Problem with Russia polygon
 
 Hello,
 
 All the russian polygons are valid (st_valid) and closed (st_closed). The
 problem seems to be in the vertical lines at 180º and -180º that divide
 certain areas of the country. It seems like when mapserver tries to draw
these
 lines, there's some kind of unknown behavior that make it draw horizontal
 lines instead, resulting in very strange polygons.
 
 However, I have not solved the problem yet.
 
 Nelson
 
 -Original Message-
 From: Barend Köbben [mailto:kob...@itc.nl]
 Sent: sábado, 2 de Janeiro de 2010 15:33
 To: Andy Colson; Nelson Correia
 Cc: mapserver-users@lists.osgeo.org
 Subject: Re: [mapserver-users] Problem with Russia polygon
 
 Hi,
 
 I guess to make a long story short, do you have any editors (like qgis)
that
 you can use to see/edit the layer and 

AW: [mapserver-users] How do I Control QUERY Output?

2009-12-09 Thread Arnd Wippermann
Hi,

You cann't insert html to a html document by using a url. There is nothing
like the img tag for pictures.
You have to use ajax to request your query. Then you can put the result with
innerHTML to your element. 

Arnd 

-Ursprüngliche Nachricht-
Von: mapserver-users-boun...@lists.osgeo.org
[mailto:mapserver-users-boun...@lists.osgeo.org] Im Auftrag von Bill Thoen
Gesendet: Mittwoch, 9. Dezember 2009 00:53
An: mapserver-users@lists.osgeo.org
Betreff: [mapserver-users] How do I Control QUERY Output?

 From a simple MapServer HTML interface I switch to Query mode and click on
a map feature, and templates I've assigned to the layer fill with data ...
and display in a new page. What I'd like is for the info to display in a
floating div and not disrupt the view by clearing the map just to display a
small window of data. I'd also prefer to not use frames as well.

With JavaScript I can make a floating drag-able div box, but I can't figure
out how to get the template to send its table of data to the div. 
I've tried removing the HTML header and just appending the table to the div
using innerHTML, but I keep getting null elements or other errors. 
Is this approach right and I'm just missing something, or is this done
another way? I spent the better part of an hour today searching for docs
and/or examples, but either it wasn't to be found or my google-fu was
inferior today. Can someone point me to an example or explain how you can
put query output anywhere on the map page?

--
Bill Thoen
GISnet -  www.gisnet.com
1401 Walnut St., Suite C
Boulder, CO 80302
303-786-9961 tel
303-443-4856 fax

___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users

___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


AW: [mapserver-users] Query feature using openlayers and mapserver

2009-11-03 Thread Arnd Wippermann
Hi,

Look for the visibility of your querylayer and decide what to do

map.events.register('click', map, function (e) 
{
var flag=map.getLayersBy(name, querylayer)[0].visibility;

if(flag)
{
var url = http://localhost/cgi-bin/mapserv.exe;
  + ?map=map/file/directory.map 
  + REQUEST=GetFeatureInfo
  + VERSION=1.1.1
  + EXCEPTIONS=application/vnd.ogc.se_xml
  + BBOX= 
  + map.getExtent().toBBOX()
  + X= + e.xy.x
  + Y= + e.xy.y
  + INFO_FORMAT=text/html
  + QUERY_LAYERS=querylayer
  + LAYERS=querylayer
  + FEATURE_COUNT=1
  + SRS=EPSG:4269
  + STYLES=
  + WIDTH= + map.size.w
  + HEIGHT= + map.size.h;
window.open(url, getfeatureinfo,
location=0,status=0,scrollbars=1,width=600,height=400);
}
}); 

Regards,
Arnd

-Ursprüngliche Nachricht-
Von: mapserver-users-boun...@lists.osgeo.org
[mailto:mapserver-users-boun...@lists.osgeo.org] Im Auftrag von Aypes
Gesendet: Dienstag, 3. November 2009 02:50
An: mapserver-users@lists.osgeo.org
Betreff: Re: [mapserver-users] Query feature using openlayers and mapserver


I have solved the problem. There is the function code in my html:
 map.events.register('click', map, function (e) {
var url = http://localhost/cgi-bin/mapserv.exe;
  + ?map=map/file/directory.map 
  + REQUEST=GetFeatureInfo
  + VERSION=1.1.1
  + EXCEPTIONS=application/vnd.ogc.se_xml
  + BBOX= 
  + map.getExtent().toBBOX()
  + X= + e.xy.x
  + Y= + e.xy.y
  + INFO_FORMAT=text/html
  + QUERY_LAYERS=querylayer
  + LAYERS=querylayer
  + FEATURE_COUNT=1
  + SRS=EPSG:4269
  + STYLES=
  + WIDTH= + map.size.w
  + HEIGHT= + map.size.h;
window.open(url,
  getfeatureinfo,
  location=0,status=0,scrollbars=1,width=600,height=400
);

But if I turn off the layer, I click on the map, a new window still come
out. That is not the problem. The problem is the turned off layer can still
be queried. I want that the turned off layer is not queryable. 
New window can still come out without any information. Please give me a
hand.


Thanks,
Aypes
--
View this message in context:
http://n2.nabble.com/Query-feature-using-openlayers-and-mapserver-tp3910093p
3936077.html
Sent from the Mapserver - User mailing list archive at Nabble.com.
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users

___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


AW: [mapserver-users] Invalid format for the EXCEPTIONparameter

2009-09-23 Thread Arnd Wippermann
Hi,
 
in ArcMap 9.3 it's possible to change from default version for the WMS
request to other versions.
 
Arnd

  _  

Von: mapserver-users-boun...@lists.osgeo.org
[mailto:mapserver-users-boun...@lists.osgeo.org] Im Auftrag von Robert
Sanson
Gesendet: Mittwoch, 23. September 2009 02:49
An: Yewondwossen Assefa
Cc: mapserver-users@lists.osgeo.org
Betreff: Re: [mapserver-users] Invalid format for the EXCEPTIONparameter


Hi Assefa
 
Unfortunately not - it seems to be hardcoded in. Can I get Mapserver to only
offer WMS version 1.1.1? 
 
Thanks,
 
Robert

 Yewondwossen Assefa yass...@dmsolutions.ca 23/09/2009 12:48 p.m. 
Hi There,

Valid EXCEPTIONS values for wms 1.3.0 are INIMAGE, BLANK, XML. 
application/vnd.ogc.se_XML was used for previous versions. Do you have 
any control on this parameter from ArcMap/ArcCatalog ?

regards

Robert Sanson wrote:
 I have a 5.4.2 version of Mapserver (MS4W) configured for WMS access. 
 OpenLayers is accessing it fine, however, ArcMap / ArcCatalog v 9.3 is 
 giving me an Error message:
  
 WMS service exceptions:-Service Error Code:InvalidFormat
 Service Error Description: msWMSLoadGetMapParams(): WMS server error. 
 Invalid format for the EXCEPTION parameter.
 -Service Error Code:InvalidFormat
  
 Looking in the Apache access.log file I see:
  
 GET 

/cgi-bin/mapserv.exe?map=/ms4w/apps/service/nztm.mapVERSION=1.3.0REQUEST=G
etMapCRS=EPSG:2193BBOX=773500,4615000,2602100,5973130.71761735

WIDTH=82HEIGHT=111LAYERS=crs_roads,crs_address,centroids,main_gates,main_
homesteads,stockyards,dairysheds,synlait,apiaries,copyright

STYLES=,EXCEPTIONS=application/vnd.ogc.se_XMLFORMAT=image/pngBGC
OLOR=0xFFTRANSPARENT=TRUE 
 HTTP/1.0
  
 In my various layer Metadata I have the following:
  
   METADATA
ows_titleapiaries
ows_abstractThese are the registered apiaries from the Apiary
DB
wms_srs   EPSG:2193
wms_opaque0
wms_group_title API
wms_group_abstract Apiaries
ows_extent 773500 4615000 2602100 6324500
wms_dataurl_format text/html
gml_include_items all
wms_exceptions_format application/vnd.ogc.se_xml
   END
  
 Many thanks,
  
 Robert Sanson




--
The contents of this email are confidential to AsureQuality. If you have
received this communication in error please notify the sender immediately
and delete the message and any attachments. The opinions expressed in this
email are not necessarily those of AsureQuality. This message has been
scanned for known viruses before delivery. AsureQuality supports the
Unsolicited Electronic Messages Act 2007. If you do not wish to receive
similar communications in future, please notify the sender of this message.
--  



This message has been scanned for malware by SurfControl plc.
http://www.surfcontrol.com/ www.surfcontrol.com

___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


AW: [mapserver-users] Invalid format for theEXCEPTIONparameter

2009-09-23 Thread Arnd Wippermann
Hi Robert,
 
I'm using ArcMap 9.3 and the add WMS server dialog has a dropdown list for
selecting a version (see attached image).
 
Arnd
 
 

  _  

Von: Robert Sanson [mailto:sans...@asurequality.com] 
Gesendet: Mittwoch, 23. September 2009 22:44
An: Arnd Wippermann
Cc: mapserver-users@lists.osgeo.org
Betreff: Re: AW: [mapserver-users] Invalid format for theEXCEPTIONparameter


Hi Arnd
 
How do you change it?
 
Many thanks,
 
Robert Sanson

 Arnd Wippermann arnd.wipperm...@web.de 24/09/2009 3:48 a.m. 

Hi,
in ArcMap 9.3 it's possible to change from default version for the WMS
request to other versions.
Arnd

  _  

Von: mapserver-users-boun...@lists.osgeo.org
[mailto:mapserver-users-boun...@lists.osgeo.org] Im Auftrag von Robert
Sanson
Gesendet: Mittwoch, 23. September 2009 02:49
An: Yewondwossen Assefa
Cc: mapserver-users@lists.osgeo.org
Betreff: Re: [mapserver-users] Invalid format for the EXCEPTIONparameter


Hi Assefa
 
Unfortunately not - it seems to be hardcoded in. Can I get Mapserver to only
offer WMS version 1.1.1? 
 
Thanks,
 
Robert

 Yewondwossen Assefa yass...@dmsolutions.ca 23/09/2009 12:48 p.m. 
Hi There,

Valid EXCEPTIONS values for wms 1.3.0 are INIMAGE, BLANK, XML. 
application/vnd.ogc.se_XML was used for previous versions. Do you have 
any control on this parameter from ArcMap/ArcCatalog ?

regards

Robert Sanson wrote:
 I have a 5.4.2 version of Mapserver (MS4W) configured for WMS access. 
 OpenLayers is accessing it fine, however, ArcMap / ArcCatalog v 9.3 is 
 giving me an Error message:
  
 WMS service exceptions:-Service Error Code:InvalidFormat
 Service Error Description: msWMSLoadGetMapParams(): WMS server error. 
 Invalid format for the EXCEPTION parameter.
 -Service Error Code:InvalidFormat
  
 Looking in the Apache access.log file I see:
  
 GET 

/cgi-bin/mapserv.exe?map=/ms4w/apps/service/nztm.mapVERSION=1.3.0REQUEST=G
etMapCRS=EPSG:2193BBOX=773500,4615000,2602100,5973130.71761735

WIDTH=82HEIGHT=111LAYERS=crs_roads,crs_address,centroids,main_gates,main_
homesteads,stockyards,dairysheds,synlait,apiaries,copyright

STYLES=,EXCEPTIONS=application/vnd.ogc.se_XMLFORMAT=image/pngBGC
OLOR=0xFFTRANSPARENT=TRUE 
 HTTP/1.0
  
 In my various layer Metadata I have the following:
  
   METADATA
ows_titleapiaries
ows_abstractThese are the registered apiaries from the Apiary
DB
wms_srs   EPSG:2193
wms_opaque0
wms_group_title API
wms_group_abstract Apiaries
ows_extent 773500 4615000 2602100 6324500
wms_dataurl_format text/html
gml_include_items all
wms_exceptions_format application/vnd.ogc.se_xml
   END
  
 Many thanks,
  
 Robert Sanson




--
The contents of this email are confidential to AsureQuality. If you have
received this communication in error please notify the sender immediately
and delete the message and any attachments. The opinions expressed in this
email are not necessarily those of AsureQuality. This message has been
scanned for known viruses before delivery. AsureQuality supports the
Unsolicited Electronic Messages Act 2007. If you do not wish to receive
similar communications in future, please notify the sender of this message.
--  



This message has been scanned for malware by SurfControl plc.
http://www.surfcontrol.com/ www.surfcontrol.com



Click here
https://www.mailcontrol.com/sr/aXvuw3mCkbbTndxI!oX7Uh+06udK7PYKdhjz!5vazOZs
Y5l0AnZ7y4pZgJsHF+7Wxz4XShocZX0AI1jSF4rfTg==  to report this email as spam.




--
The contents of this email are confidential to AsureQuality. If you have
received this communication in error please notify the sender immediately
and delete the message and any attachments. The opinions expressed in this
email are not necessarily those of AsureQuality. This message has been
scanned for known viruses before delivery. AsureQuality supports the
Unsolicited Electronic Messages Act 2007. If you do not wish to receive
similar communications in future, please notify the sender of this message.
--  
attachment: addWMSServer.png___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


AW: [mapserver-users] openlayers/mapserver

2009-07-17 Thread Arnd Wippermann
Hi,
 
with a right click on the pink tile you can get the url of the image. Test
it in the browser and you should get an error message.
 
Perhaps it's the wrong parameter SRS (it's a wms parameter) or the absent
parameter map_projection (mapserver parameter).
 
You should also declare options for your map object. I think by default
OpenLayers uses EPSG:4326 with the extent -180,-90,180,90.
 
Arnd

  _  

Von: mapserver-users-boun...@lists.osgeo.org
[mailto:mapserver-users-boun...@lists.osgeo.org] Im Auftrag von YOUNESS
ELMEDRAOUI
Gesendet: Freitag, 17. Juli 2009 13:06
An: mapserver-users@lists.osgeo.org
Betreff: [mapserver-users] openlayers/mapserver


Hi,


i created my wms server and i test them with a GetCapabilities and GetMap
REQUEST :
 
http://localhost:81/cgi-bin/mapserv.exe?map=C:/OLWebSite/App_Data/olvbmapfil
el.map
http://localhost:81/cgi-bin/mapserv.exe?map=C:/OLWebSite/App_Data/olvbmapfi
lel.mapREQUEST=GetCapabilitiesSERVICE=WMSVERSiON=1.1.0
REQUEST=GetCapabilitiesSERVICE=WMSVERSiON=1.1.0
 
http://localhost:81/cgi-bin/mapserv.exe?map=C:/OLWebSite/App_Data/olvbmapfil
el.map
http://localhost:81/cgi-bin/mapserv.exe?map=C:/OLWebSite/App_Data/olvbmapfi
lel.mapREQUEST=GetMapSERVICE=WMSVERSiON=1.1.0Layers=compfun,zoneSRS=EPS
G:32632STYLE=BBox=1143759,4417539,1146436,4420390FORMAT=image/pngWIDTH=4
00HEIGHT=400
REQUEST=GetMapSERVICE=WMSVERSiON=1.1.0Layers=compfun,zoneSRS=EPSG:32632
STYLE=BBox=1143759,4417539,1146436,4420390FORMAT=image/pngWIDTH=400HEIG
HT=400
 
and my tests is ok.
 
now, i want to displat data with openlayers. 
 
i tested this code but it doesn't work.
 
map = new OpenLayers.Map( 'map' );
layer = new OpenLayers.Layer.MapServer(ol demo,
 
http://localhost:81/cgi-bin/mapserv.exe?map=C:\OLWebSite\App_Data\olvbmapfi
lel.map, {Layers:'compfun',SRS:'EPSG:32632'} );

see result in attachement.
 
can any one help me plz?
do you have an exemple for displayind data with openlayers based on mapfile?
 
Best regards,
Youness ELMEDRAOUI
Les informations figurant sur cet e-mail ont un caractère strictement
confidentiel et sont exclusivement adressées au destinataire mentionné
ci-dessus.Tout usage, reproduction ou divulgation de cet e-mail est
strictement interdit si vous n'en êtes pas le destinataire.Dans ce cas,
veuillez nous en avertir immédiatement par la même voie et détruire
l'original. Merci 

___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


AW: [mapserver-users] Passing single quoted strings

2009-04-23 Thread Arnd Wippermann
Hi,

Another possibility:
somevalue = filter \datum between '2002-8-8' and '2002-8-9'\; 

Perhaps this works.

Arnd

-Ursprüngliche Nachricht-
Von: mapserver-users-boun...@lists.osgeo.org
[mailto:mapserver-users-boun...@lists.osgeo.org] Im Auftrag von Heiko
Schröter
Gesendet: Donnerstag, 23. April 2009 09:45
An: Steve Lime; mapserver-users@lists.osgeo.org
Betreff: Re: [mapserver-users] Passing single quoted strings

On Mittwoch, 22. April 2009 18:07:11 you wrote:

I've tested teh scenario with 3 different filter strings and attached the
mapserver error logs with DEBUG 5 (in case need be).
The resulting URL strings are taken from apache access log file.
Please let me know if you need the full URL.

Thanks and Regards
Heiko


The OL call:
sacurabiglayer = new OpenLayers.Layer.WMS( SACURABIG, 
   http://kahlo1/cgi-bin/mapserv;,

{map:'/home/schroete/sciadaten/MapServer/country98/heiko5.map',
layers: sacura_big,
map.layer[SACURABIG]:
somevalue,
transparent: true},
{singleTile:true, isBaseLayer:
false,
buffer:5, wrapDateLine: true,
queryable: true});

Setting of the string in OL:
somevalue = filter +'+ datum between +'+2002-8-8+'+ and +'+

2002-8-9 +'';
Results:
MAP.LAYER%5BSACURABIG%5D=filter%20'%20datum%20between%20'2002-8-8'%20and%20'
%202002-8-9%20''
(ms_error_assembled_string.txt)

Setting of the string in OL:
somevalue = filter 'datum between '2002-8-8' and '2002-8-9' ';
MAP.LAYER%5BSACURABIG%5D=filter%20'datum%20between%20'2002-8-8'%20and%20'200
2-8-9'%20'
(ms_error_unescaped_string.txt)

Setting of the string in OL:
somevalue = filter 'datum between \'2002-8-8\' and \'2002-8-9\' ';
MAP.LAYER%5BSACURABIG%5D=filter%20'datum%20between%20'2002-8-8'%20and%20'200
2-8-9'%20'
(ms_error_escaped_single_quotes.txt)


The Mapfile Layer definition:
LAYER
CONNECTIONTYPE POSTGIS
NAME SACURABIG
PROCESSING CLOSE_CONNECTION=DEFER
OPACITY 60
STATUS ON
METADATA
wms_title sacurabig layer
wms_srs init=epsg:4326
END
PROJECTION
init=epsg:4326
END
CONNECTION user=fei password=foo dbname=fum host=kahlo1
DATA geocenter from sacura_big
   VALIDATION
 'filter' ^.# Just for testing
   END
FILTER orbitnr=0
TYPE POINT
SIZEUNITS meters
CLASS
   NAME sacura_big_class
   STYLE
COLOR [farbe]
SYMBOL circle
SIZE 35000
   END
END
END # Layer



 What does the URL OL generate look like? I'm curious how it escapes 
 the text for the URL. That should give us a hint.

 Steve

  Heiko Schröter schro...@iup.physik.uni-bremen.de 04/21/09 1:53 
  AM

 Hello,

 i have to pass single quoted strings from Open Layer through mapserver 
 to a postgis/postgres database.

 i.e. filter 'value=1 and datum between '2005-1-1' and '2005-1-3' ; 
 The postgres db expects (afaik) the date in a single quoted string.

 The problem is that mapserver stops scanning the filter string when 
 coming across the second single quote and bails out.

 The Validation string in the mapfile:
 VALIDATION
  'filter' ^.
END

 Even when allowing single quotes explicitly by inserting escaped 
 single quotes in the validation string it doesn't work. Escaping the 
 single quotes in the assembled OL string won't help either.

 Does anyone has an idea of how to pass such strings through mapserver ?

 Now i do use an ugly hack of converting the date to abstime on the 
 client side (with all the UTC converting hassle) and pass the integer 
 to the db.
 i.e. filter 'value = 1 and abstime between +fromDate+ and 
 +toDate+';

 MapServer version 5.4.0-rc1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG 
 OUTPUT=WBMP OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=ICONV 
 SUPPORTS=WMS_SERVER INPUT=TIFF INPUT=EPPL7 INPUT=JPEG INPUT=POSTGIS 
 INPUT=SHAPEFILE

 Thanks and Regards
 Heiko


 ___
 mapserver-users mailing list
 mapserver-users@lists.osgeo.org
 http://lists.osgeo.org/mailman/listinfo/mapserver-users


___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


AW: [mapserver-users] map server wms request

2009-01-31 Thread Arnd Wippermann
Hi,
 
there is nothing wrong. Save mapserv.exe and open the file with an ascii editor 
(notepad) by yourself. The contents should be the GetCapabilities document or 
if something failed an error message. The configuration of the browser only 
allows you to open the document immediately without saving the response of your 
request. But the result is the same.
 
Arnd Wippermann

  _  

Von: mapserver-users-boun...@lists.osgeo.org 
[mailto:mapserver-users-boun...@lists.osgeo.org] Im Auftrag von cemre yilmaz
Gesendet: Samstag, 31. Januar 2009 15:47
An: mapserver-users@lists.osgeo.org
Betreff: [mapserver-users] map server wms request



Hello everybody;


I am trying to learn how WMS working with cmpatible with MapServer. So I set up 
MapServer OGC workshop package. But I have a problem when I want to send WMS 
Get capabilities request, there is a wndow asking me if I want to save 
mapserv.exe or run it. In mapserver documnetation there is written that problem 
can be solved by You could configure your web browser to handle the 
application/vnd.ogc.wms_xml MIME type a certain way (i.e.open in Notepad, 
etc.). 

What should I do for configuring my browser? If you know please write me as 
soon as possible it is very urgent for me.

Thanks Cemre Y. 



___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


AW: [mapserver-users] MapServer Animation Examples of Pipeline Flow?

2008-08-03 Thread Arnd Wippermann
here is another example with animation and OpenLayers
http://gis.ibbeck.de/ginfo/apps/Pentominoes/pentominoes.html
 
click 'starten' or 'start' to begin the animation.
 
Arnd Wippermann
 

  _  

Von: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Im Auftrag von Bill Thoen
Gesendet: Samstag, 2. August 2008 20:07
An: mapserver-users@lists.osgeo.org
Betreff: [mapserver-users] MapServer Animation Examples of Pipeline Flow?


I've got a little project that requires an eye-catching display of flow
through a network of gas pipelines. I'm using MapServer 5.0.3 (with AGG) on
Fedora Core 9 and I want to stick with open source technology if possible.

Are there any examples out there of MapServer showing animation effects
along a linear feature (i.e. road, river, pipeline, information flowlines,
etc.) that I could look at to get some ideas?

The first thought I had was to move colored dots along a pipeline in the
direction of flow and use a timer to pace the animation. Each dot would
represent the day's load from a source and they would move based on pipe
diameter, pressure and other parameters that affect flow. This works, but
the down side is that eventually you have a lot of objects to juggle and
performance goes to heck.

Then I thought of using a series of textures for each pipeline segment and
swapping them iteratively to simulate an animating. 

What won't work is rendering the entire map image each time; that would go
from eye-catching to mind-numbing pretty fast. So is there a way with
MapServer to display a map base, but allow for objects to be floated on
top in such away that I don't have to re-render the the entire map each
time? (like an AJAX tool for mapserver?)

If anyone has any ideas or knows of examples they could point me to, I'd
appreciate it.

- Bill Thoen


___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


AW: [mapserver-users] Setting up a MAP file to use data on a networkshare [newbie I guess! :-) ]

2008-05-17 Thread Arnd Wippermann
Hello Greg,

Try to use the UNC path in the data tag
DATA \\server\path\myshapefile.shp

This should work. Otherwise I think, their are problems with permissions.

Mit freundlichen Grüssen

Arnd Wippermann
http://gis.ibbeck.de/ginfo/



-Ursprüngliche Nachricht-
Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Im Auftrag von Greg Cocks
Gesendet: Freitag, 16. Mai 2008 23:58
An: mapserver-users@lists.osgeo.org
Cc: Pete Humphrey
Betreff: [mapserver-users] Setting up a MAP file to use data on a networkshare 
[newbie I guess! :-) ]

Hello List,


I am trying to set up a MAP file to use a network share for the files that for 
various reasons I can’t get into PostgreSQL, etc… i.e., so that we only have 
one copy of the data being used internally and on the web, etc


I proceeded as follows

 - Using IIS on a Windoze box (yeah, yeah, grin) set up a virtual directory to 
a network share using a UNC path \\server\directory that I use all the time 
with ArcGIS, etc – called it wms_data

 - Added my credentials in the ‘Connect As’ in IIS

 - Used the explore in the IIS MMC and confirmed I could browse the data there

 - Confirmed that the directories had the relevant web access permissions

 - Charged the relevant line in my MAP file to → SHAPEPATH /wms_data/

 - Changed the layer’s data pointer to → DATA subdirectory/sameshapefilename


* When I now load the page it says it can’t find the layer’s data!  Ugh! *


Note that if I use a local (i.e., C:\...\...\) path for the data and in the MAP 
file it works just fine… Also, want to look at MrSIDs the same way, which again 
works just fine using a C:\ path…


Note that I know enough about IIS to be dangerous!   ☺


Thanks in advance for your help

--
Regards,
GREG COCKS
GIS Analyst V
[EMAIL PROTECTED]
S. M. Stoller Corp
105 Technology Drive, Suite 190
Broomfield, CO 80021
www.stoller.com
303-546-4300
303-443-1408 fax
303-546-4422 direct
303-828-7576 cell


___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


AW: [mapserver-users] WMS for SRTM ? How to implement?

2008-04-12 Thread Arnd Wippermann
Hello,
 
this is a simple mapfile, that works for me:
 
MAP
NAME 'WMS_Global_Mosaic'
STATUS ON

IMAGECOLOR 255 255 255
IMAGETYPE png

OUTPUTFORMAT
  NAME png
  DRIVER GD/PNG
  MIMETYPE image/png
  IMAGEMODE PC256
  EXTENSION png
END
OUTPUTFORMAT
  NAME png24
  DRIVER GD/PNG
  MIMETYPE image/png
  IMAGEMODE RGBA
  EXTENSION png
END

PROJECTION # GAUSS-KRUEGER Streifen 2
  'init=epsg:4326' #PROJECTION_init
END

WEB # 3
  IMAGEPATH  '\ms4w\tmp\'
  IMAGEURL   '/ms_tmp/'
  METADATA
'wms_name'   'OGC:WMS'
'wms_title'  'WMS Standard'
'wms_srs''EPSG:900913 EPSG:31466 EPSG:4326'
  END
END

LAYER # 1
  NAME  'GlobalMosaic'
  GROUP 'SATELLITE'
  TYPE  RASTER
  STATUSON

  #!!! Achtung : transparent=TRUE/FALSE in uppercase!? and for Mapserver
4.10 set the STYLES= in the CONNECTION Url
  CONNECTION'http://wms.jpl.nasa.gov/wms.cgi?STYLES='
  CONNECTIONTYPEWMS

  METADATA
'wms_name''global_mosaic' #das ist der Layer!!!
'wms_title'   'WMS Global Mosaic'
'wms_group_title' 'SATELLITE'
'wms_version' '1.1.1'
'wms_srs' 'EPSG:4326' #Uppercase!!!
'wms_server_version'  '1.1.0'
'wms_formatlist'  'image/gif,image/png,image/jpeg,image/wbmp'
'wms_format'  'image/png'
#'wms_style'   'visual'
  END
END

END

Mit freundlichen Grüssen

Arnd Wippermann
http://gis.ibbeck.de/ginfo/

 



Von: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Im Auftrag von Stefan
Schwarzer
Gesendet: Freitag, 11. April 2008 09:59
An: mapserver-users@lists.osgeo.org
Betreff: [mapserver-users] WMS for SRTM ? How to implement?


Hi there, 

shouldn't be too complicated to include a WMS into one's own mapservice, no?
But, don't know why, although I've already done this a couple of years ago,
I don't succeed in a) finding the right way to program the map file code and
b) finding a working WMS example. Many links are dead ( for example from
this site: http://en.giswiki.net/wiki/WMS ), or without instructions.

Can someone point me to a working WMS server and give me a hint how the map
file layer should look like? I've this here:

LAYER
  NAME modis
  TYPE RASTER
  STATUS ON
  CONNECTION
http://onearth.jpl.nasa.gov/browse.cgi?wms_server=wms.cgilayers=modissrs=
EPSG:4326
  CONNECTIONTYPE WMS
  METADATA
wms_srs EPSG:4236
wms_namemodis
wms_format  image/jpeg
  END
END

Thanks for any advice,

Stef

  

  

  Stefan Schwarzer
  
  Lean Back and Relax - Enjoy some Nature Photography
  http://photoblog.la-famille-schwarzer.de
http://photoblog.la-famille-schwarzer.de 


  Appetite for Global Data? UNEP GEO Data Portal:  
  http://geodata.grid.unep.ch http://geodata.grid.unep.ch 
  










___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users