Re: [mapserver-users] Newbie problem: mapfile for wgs84 based on epsg:28992

2015-03-25 Thread Fawcett, David (MNIT)
Have you tried 

http://localhost/cgi-bin/mapserv?map=eham.mapmode=maplayer= groenvoorziening



-Original Message-
From: mapserver-users-boun...@lists.osgeo.org 
[mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of TallDragon
Sent: Wednesday, March 25, 2015 8:53 AM
To: mapserver-users@lists.osgeo.org
Subject: [mapserver-users] Newbie problem: mapfile for wgs84 based on epsg:28992

Sorry, but after weeks of reading and trying solutions, I really need some 
help. I have a shapefile in RD New Amersfoort. I understand that there are a 
lot of problems with the conversion, however my mapserver output is empty and 
stays empty for weeks now.

Can someone please get me in the right direction for this? My map file is MAP
  NAME   EHAM
  IMAGETYPE  PNG
  EXTENT 4.70774 52.28803 4.80941 52.36267
  SIZE   1400 900
  SHAPEPATH  /var/maps/eham
  IMAGECOLOR 255 255 255

  PROJECTION
init=epsg:4326
  END

#  TRANSPARENT ON
  CONFIG MS_ERRORFILE /home/andre/log/mapserv.txt
  LAYER # Groen
NAME groenvoorziening
DATA groen
STATUS   ON
TYPE POLYGON

PROJECTION
  init=epsg:28992
END
METADATA
wms_srs EPSG:28992 EPSG:4326
END
#PROJECTION
#  proj=sterea
#  lat_0=52.156160
#  lon_0=5.387639
#  k=0.079
#  x_0=155000
#  y_0=463000
#  ellps=bessel
#  units=m
# 
towgs84=565.2369,50.0087,465.658,-0.406857330322398,0.350732676542563,-1.8703473836068,4.0812
#  no_defs
#END

CLASS
  NAME   GROEN
  STYLE
COLOR232 232 232
OUTLINECOLOR 32 32 32
  END
END
  END # States polygon layer ends here


END

the call to
http://localhost/cgi-bin/mapserv?map=eham.mapmode=maplayer=groen gives an 
empty map





--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/Newbie-problem-mapfile-for-wgs84-based-on-epsg-28992-tp5195384.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


Re: [mapserver-users] Newbie problem: mapfile for wgs84 based on epsg:28992

2015-03-25 Thread TallDragon
 Yep that works. Staring blind for weeks you miss the simplest thing.

So for the real conversion, can anyone advice what projection I should use,
the simple epsg:28992 or the complex transformation. Seems there is a
standard 100m shift in the epsg:28992





--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/Newbie-problem-mapfile-for-wgs84-based-on-epsg-28992-tp5195384p5195406.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


Re: [mapserver-users] passing parameter to a OGRVRTDataSource layer

2015-03-25 Thread Fawcett, David (MNIT)
Martin,

Have you looked at the CGI runtime substitution docs?: 
http://mapserver.org/cgi/runsub.html

Make sure that you look at the validation section near the bottom.  If the 
substitution works with CGI WMS, you will need validation.

David.

From: mapserver-users-boun...@lists.osgeo.org 
[mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Martin Ouellet
Sent: Wednesday, March 25, 2015 3:38 PM
To: mapserver-users@lists.osgeo.org
Subject: [mapserver-users] passing parameter to a OGRVRTDataSource layer

Hi all,
I'm using the virtual plugin of OGR to consume a web service who return CSV 
coordinates and mapserver is able to draw the points without any problems.

The connection definition in my mapfile is something like this.
CONNECTION OGRVRTDataSourceOGRVRTLayer 
name='select'SrcDataSourceCSV:/vsicurl/http://my 
server/service.php/SrcDataSourceGeometryTypewkbPoint/GeometryTypeSrcLayerselect/SrcLayerLayerSRSWGS84/LayerSRSGeometryField
 encoding='PointFromColumns' x='PHOTO_LONGITUDE' 
y='PHOTO_LATITUDE'//OGRVRTLayer/OGRVRTDataSource

I would like to pass arguments to that CONNETION string so I could build 
dynamic request.  something like this
CONNECTION OGRVRTDataSourceOGRVRTLayer 
name='select'SrcDataSourceCSV:/vsicurl/http://my 
server/service.php?param1=%PARAM1%amp;param2=%PARAM2%/SrcDataSourceGeometryTypewkbPoint/GeometryTypeSrcLayerselect/SrcLayerLayerSRSWGS84/LayerSRSGeometryField
 encoding='PointFromColumns' x='PHOTO_LONGITUDE' 
y='PHOTO_LATITUDE'//OGRVRTLayer/OGRVRTDataSource

I know the argument values (in my example PARAM1 and PARAM2) are OK because I'm 
seeing them in the error message thrown by mapserver (see below).  But 
mapserver refuse to render the points:

?xml version='1.0' encoding=UTF-8 standalone=no ?
!DOCTYPE ServiceExceptionReport SYSTEM 
http://schemas.opengis.net/wms/1.1.1/exception_1_1_1.dtd;
ServiceExceptionReport version=1.1.1
ServiceException
msDrawMap(): Image handling error. Failed to draw layer named 
#39;photo_ownedby_all#39;.
msOGRFileNextShape(): OGR error. Failed to find layer #39;select#39; on 
datasource #39;CSV:/vsicurl/http://my 
server/geophoto/select.php?PARAM1=40.886913500823205%2C-84.41259765625011amp;PARAM2=63.97980162961738%2C-43.587402343750284#39;.
/ServiceException
/ServiceExceptionReport

Strangely, if I copy paste this url in the browser, the web service is 
returning valid csv data:
http://myhttp://%3cmy 
server/geophoto/select.php?ll=40.886913500823205%2C-84.41259765625011amp;ur=63.97980162961738%2C-43.587402343750284
returned

PHOTO_LATITUDE,PHOTO_LONGITUDE

48.8099315451953,-77.0906915758454

48.8119226339273,-77.123176861499

48.8139039864207,-77.1556648776822

48.8158756013937,-77.1881556113468

48.8178374775437,-77.2206490494331

48.8171607148511,-77.2546364217682

48.8164732928131,-77.2886228129866

48.8157752119077,-77.3226082078249

48.815066472652,-77.356592590973

any thoughts?

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

[mapserver-users] setting zoomand map center by default

2015-03-25 Thread rishi
hi all

iam displaying my map layer on the google map. it is working but the map
layer is very small and also it is not center.plz tell me how to do this
using open layers.
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users