[mapserver-users] Question on MapServer tutorials
Dear all, I'm currently trying to follow the MapServer tutorials http://mapserver.org/tutorial/example1-1.html#example1-1 by Pericles S. Nacionales, I have successful downloaded and installed both the tutorial data and MS4W http://maptools.org/ms4w/ distribution but when I try the URL in the first example http://mapserver.org/tutorial/example1-1.html#example1-1 I get the following error: msLoadMap(): Unable to access file. (/ms4w/apps/tutorial/htdocs/example1-1.map) I'm running Windows Vista and have amended the example1-1.map file in C:\ms4w\apps\tutorial\mapfiles as required. If I amend the URL to: http://localhost/cgi-bin/mapserv.exe?map=/ms4w/apps/tutorial/mapfiles/exampl e1-1.map http://localhost/cgi-bin/mapserv.exe?map=/ms4w/apps/tutorial/mapfiles/examp le1-1.maplayer=statesmode=map layer=statesmode=map The map is displayed as shown in the tutorial, however, I'm not sure if the problem is due to a configuration error on may part or whether the URL in the tutorial is wrong (this seems unlikely). Does anybody know which configuration files/options I need to amend? Thanks Graham Crowder Co Ltd, Registered Office: Post Office House, 99-105 Argyle Street, Birkenhead, Merseyside, CH41 6AD. Telephone: 0151 647 7772 Registered in England and Wales, No. 3003604. VAT No. GB618952020 This e-mail is confidential and intended solely for the use of the individual to whom it is addressed. Any views or opinions presented are solely those of the author and do not necessarily represent those of Crowder Co Ltd. If you are not the intended recipient of this e-mail you may not copy, use, forward or disclose its contents to any other person ; please delete the message and attachments from your system. For more information visit our web site at http://www.crowderconsult.co.uk ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] uDig and MapServer WFS
Dear All, I'm trying to use uDig in connection with MapServer's WFS capability. I have set up a .map file that contains all the information needed for a WFS according to the instructions in the MapServer user guide http://mapserver.org/ogc/wfs_server.html and can get the XML in response to a get capabilities: http://localhost/cgi-bin/mapserv.exe?map=/ms4w/apps/labuan/mapfiles/labuan_w fs.mapSERVICE=wfsVERSION=1.0.0REQUEST=GetCapabilities But if I open the service using uDig although I can select layers and they apper in the layers view, no data is displayed and the table view contains 0 records and the layer count is 0. If I use the same map file and open the layers as a WMS then I can see the data Does anybody have any suggestion regarding what I'm doing wrong? Thanks Graham # objects. MAP NAME LABUAN_WFS STATUS ON IMAGETYPE PNG EXTENT 607726.651900 578442.812605 630101.446005 597763.786700 SIZE 800 600 IMAGECOLOR 255 255 255 # PROJECTION # proj=omerc # lat_0=4 # lonc=115 # alpha=53.3158204722 # k=0.99984 # x_0=590476.87 # y_0=442857.65 # ellps=evrstSS # units=m # no_defs # END PROJECTION init=epsg:29873 END # # Start of web interface definition # WEB # # On Windows systems, /tmp and /tmp/ms_tmp/ should be created at the root # of the drive where the .MAP file resides. # IMAGEPATH C:/ms4w/tmp/ms_tmp/ IMAGEURL /ms_tmp/ METADATA wfs_title Labuan_WMS wfs_onlineresource http://127.0.0.1/cgi-bin/mapserv.exe?MAP=C:/ms4w/apps/labuan/mapfiles/labua n_wfs.map wfs_srs EPSG:29873 wfs_schemas_location http://schemas.opengeospatial.net; END END # Layer objects are defined beneath the map object. You need at least one # layer defined in your map file before you can display a map... You can # define as many layers as you'd like although a limit is typically hard-coded # in map.h in the MapServer source. The default limit is set at 100. You'd # have to have a very specialized application to need more than 100 layers in # your application. # Start of LAYER DEFINITIONS - LAYER NAME DMA METADATA wfs_titleDMA gml_include_items all gml_featureid OBJECTID END TYPE POLYGON CONNECTIONTYPE ogr CONNECTION C:\ms4w\apps\labuan\labuan.mdb DATA DMA STATUS ON DUMP TRUE CLASS NAME dma STYLE COLOR 255 204 255 OUTLINECOLOR 153 000 153 END END END LAYER NAME Pipeline METADATA wfs_titlePipeline gml_include_items all gml_featureid OBJECTID END TYPE LINE CONNECTIONTYPE ogr CONNECTION C:\ms4w\apps\labuan\labuan.mdb DATA Pipeline STATUS ON PROJECTION init=epsg:42304 END DUMP TRUE CLASS NAME Pipeline STYLE COLOR 051 153 255 END END END LAYER NAME Meter METADATA wfs_titleMeter gml_include_items all gml_featureid OBJECTID END TYPE POINT CONNECTIONTYPE ogr CONNECTION C:\ms4w\apps\labuan\labuan.mdb DATA Meter STATUS ON DUMP TRUE CLASS NAME Meter STYLE COLOR 051 000 153 END SIZE 10 END END LAYER NAME DMA TYPE LINE CONNECTIONTYPE ogr CONNECTION C:\ms4w\apps\labuan\labuan.mdb DATA DMA STATUS OFF CLASS