[mapserver-users] mapserver as a wms server for arcgis client
Hi, I'm hoping someone can help me identify why my wms layers in arcgis are coming up blank. Here is my mapfile: MAP NAME WMSQuick STATUS ON EXTENT 227154 5165779 627108 5614539 UNITS DD SHAPEPATH c:/images SIZE 800 600 PROJECTION init=epsg:28355 END OUTPUTFORMAT NAME 'AGG/PNG' DRIVER AGG/PNG END WEB IMAGEPATH C:/images/ IMAGEURL /images/ METADATA wms_title WMS Demo ##required wms_onlineresource http://test/cgi-bin/mapserv.exe?map=E:\mapfiles\wmstest4.map; wms_enable_request * ##necessary wms_server_version 1.1.1 wms_extent 227154 5165779 627108 5614539 END END LAYER NAME AdminCountries STATUS ON TYPE POLYGON DATA img_index.shp CLASS STYLE COLOR 246 241 223 OUTLINECOLOR 0 0 0 END END METADATA wms_title admin_countries wms_name admincountries wms_server_version 1.1.1 #wms_extent 227154 5165779 627108 5614539 wms_onlineresource http://test/cgi-bin/mapserv.exe?map=E:\mapfiles\wmstest4.map; wms_format image/tif END PROJECTION init=epsg:28355 END END LEGEND KEYSIZE 12 12 STATUS EMBED POSITION lr IMAGECOLOR 125 125 125 LABEL COLOR 255 255 255 FONT verdana TYPE TRUETYPE POSITION AUTO PARTIALS FALSE SIZE 8 BUFFER 1 END END END Here is my capabilities report: ?xml version='1.0' encoding=ISO-8859-1 standalone=no ? !DOCTYPE WMT_MS_Capabilities SYSTEM http://schemas.opengis.net/wms/1.1.1/WMS_MS_Capabilities.dtd; [ !ELEMENT VendorSpecificCapabilities EMPTY ] !-- end of DOCTYPE declaration -- WMT_MS_Capabilities version=1.1.1 !-- MapServer version 5.2.0 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=PDF 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=SOS_SERVER SUPPORTS=FASTCGI SUPPORTS=THREADS SUPPORTS=GEOS SUPPORTS=RGBA_PNG INPUT=JPEG INPUT=POSTGIS INPUT=ORACLESPATIAL INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE -- Service NameOGC:WMS/Name TitleWMS Demo/Title OnlineResource xmlns:xlink=http://www.w3.org/1999/xlink; xlink:href=http://test/cgi-bin/mapserv.exe?map=E:\mapfiles\wmstest4.mapamp;/ ( 'http://test/cgi-bin/mapserv.exe?map=E:.mapamp;/' ) /Service Capability Request GetCapabilities Formatapplication/vnd.ogc.wms_xml/Format DCPType HTTP GetOnlineResource xmlns:xlink=http://www.w3.org/1999/xlink; xlink:href=http://test/cgi-bin/mapserv.exe?map=E:\mapfiles\wmstest4.mapamp;//Get ( 'http://test/cgi-bin/mapserv.exe?map=E:.mapamp;/ ) PostOnlineResource xmlns:xlink=http://www.w3.org/1999/xlink; xlink:href=http://test/cgi-bin/mapserv.exe?map=E:\mapfiles\wmstest4.mapamp;//Post ( 'http://test/cgi-bin/mapserv.exe?map=E:.mapamp;/ ) /HTTP /DCPType /GetCapabilities GetMap Formatimage/gif/Format Formatimage/png/Format Formatimage/png; mode=24bit/Format Formatimage/jpeg/Format Formatimage/vnd.wap.wbmp/Format Formatimage/tiff/Format Formatimage/svg+xml/Format DCPType HTTP GetOnlineResource xmlns:xlink=http://www.w3.org/1999/xlink; xlink:href=http://test/cgi-bin/mapserv.exe?map=E:\mapfiles\wmstest4.mapamp;//Get ( 'http://test/cgi-bin/mapserv.exe?map=E:.mapamp;/ ) PostOnlineResource xmlns:xlink=http://www.w3.org/1999/xlink; xlink:href=http://test/cgi-bin/mapserv.exe?map=E:\mapfiles\wmstest4.mapamp;//Post ( 'http://test/cgi-bin/mapserv.exe?map=E:.mapamp;/ ) /HTTP /DCPType /GetMap GetFeatureInfo Formattext/plain/Format Formatapplication/vnd.ogc.gml/Format DCPType HTTP GetOnlineResource xmlns:xlink=http://www.w3.org/1999/xlink; xlink:href=http://test/cgi-bin/mapserv.exe?map=E:\mapfiles\wmstest4.mapamp;//Get ( 'http://test/cgi-bin/mapserv.exe?map=E:.mapamp;/ ) PostOnlineResource xmlns:xlink=http://www.w3.org/1999/xlink; xlink:href=http://test/cgi-bin/mapserv.exe?map=E:\mapfiles\wmstest4.mapamp;//Post ( 'http://test/cgi-bin/mapserv.exe?map=E:.mapamp;/ ) /HTTP /DCPType /GetFeatureInfo DescribeLayer Formattext/xml/Format DCPType HTTP GetOnlineResource xmlns:xlink=http://www.w3.org/1999/xlink; xlink:href=http://test/cgi-bin/mapserv.exe?map=E:\mapfiles\wmstest4.mapamp;//Get ( 'http://test/cgi-bin/mapserv.exe?map=E:.mapamp;/ ) PostOnlineResource xmlns:xlink=http://www.w3.org/1999/xlink; xlink:href=http://test/cgi-bin/mapserv.exe?map=E:\mapfiles\wmstest4.mapamp;//Post ( 'http://test/cgi-bin/mapserv.exe?map=E:.mapamp;/ ) /HTTP /DCPType /DescribeLayer GetLegendGraphic Formatimage/gif/Format Formatimage/png/Format Formatimage/png; mode=24bit/Format Formatimage/jpeg/Format Formatimage/vnd.wap.wbmp/Format DCPType HTTP GetOnlineResource
[mapserver-users] [TinyOWS] Plan/milestone for supporting Oracle Spatial?
I've just found out that TinyOWS doesn't support Oracle Spatial, while doing researching on it. Is there any (confirmed) plan on when will it be done? Possibly through GDAL/OGR? ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] mapscript.jar in java
Thank Gaston Lucero,I've tried the method you told me.It really worked. -- View this message in context: http://osgeo-org.1560.n6.nabble.com/mapscript-jar-in-java-tp5001038p5001701.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] mapserver as a wms server for arcgis client
Hi Jess, On 13-09-2012 05:21, mapserver-users-requ...@lists.osgeo.org wrote: Date: Thu, 13 Sep 2012 16:53:42 +1000 From: Jessica Clarkejessica.cla...@forestrytas.com.au To:mapserver-users@lists.osgeo.org Subject: [mapserver-users] mapserver as a wms server for arcgis client Message-ID:50520f9602dd00017...@mail2.forestrytas.com.au Content-Type: text/plain; charset=us-ascii Hi, I'm hoping someone can help me identify why my wms layers in arcgis are coming up blank. Here is my mapfile: MAP NAME WMSQuick STATUS ON EXTENT 227154 5165779 627108 5614539 UNITS DD You can change from DD to meters, that is the projection units for EPSG 28355, and let us know if this solves the problem of blank layer SHAPEPATH c:/images SIZE 800 600 PROJECTION init=epsg:28355 END OUTPUTFORMAT NAME 'AGG/PNG' DRIVER AGG/PNG END WEB IMAGEPATH C:/images/ IMAGEURL /images/ METADATA wms_title WMS Demo ##required wms_onlineresourcehttp://test/cgi-bin/mapserv.exe?map=E:\mapfiles\wmstest4.map; wms_enable_request * ##necessary wms_server_version 1.1.1 wms_extent 227154 5165779 627108 5614539 END END LAYER NAME AdminCountries STATUS ON TYPE POLYGON DATA img_index.shp CLASS STYLE COLOR 246 241 223 OUTLINECOLOR 0 0 0 END END METADATA wms_title admin_countries wms_name admincountries wms_server_version 1.1.1 #wms_extent 227154 5165779 627108 5614539 wms_onlineresourcehttp://test/cgi-bin/mapserv.exe?map=E:\mapfiles\wmstest4.map; wms_format image/tif END PROJECTION init=epsg:28355 END END LEGEND KEYSIZE 12 12 STATUS EMBED POSITION lr IMAGECOLOR 125 125 125 LABEL COLOR 255 255 255 FONT verdana TYPE TRUETYPE POSITION AUTO PARTIALS FALSE SIZE 8 BUFFER 1 END END END Humberto Cereser Ibanez ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] PostGIS geography layer doesn't render in Mapserver
I believe my problem is similar to this: http://osgeo-org.1560.n6.nabble.com/Cannot-get-a-PostGIS-layer-to-render-in-Mapserver-td4233163.html But that post is from 2010 and surprisingly I can't find anything newer with this issue. I want Mapserver to serve data in PostGIS 1.5.3 that has a geography point column (NOT geometry!). I'm using leaflet and trying to display a WMS layer out of mapserver on top of cloudmade tiles. When I make the query, mapserver debugging output gives me the following. Help! [Thu Sep 13 11:45:55 2012].55933 msPostGISLayerWhichShapes(): Query error. Error executing query: ERROR: function st_force_2d(geography) does not exist LINE 1: select encode(ST_AsBinary(ST_Force_2D(geogpt),'NDR'),'hex'... ^ HINT: No function matches the given name and argument types. You might need to add explicit type casts. Here is how the layer is defined in the .map file (p.s. if I use a geometry column everything works fine) LAYER NAME mylayer METADATA wms_title mywms wms_enable_request * gml_include_items all END TYPE POINT PROJECTION init=epsg:4326 END CONNECTIONTYPE POSTGIS CONNECTION host=localhost dbname=mydb user=myuser password=mypw DATA geogpt from mytable using srid=4326 using unique oid --- Raj ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] mapserver as a wms server for arcgis client
Can you confirm it works OK with other clients, like QGIS? I generally use QGIS for testing, as I can easily simultaneously open the shapefiles, imagery, postgis tables, etc as well as the WMS/WFS outputs to ensure all is doing exactly what it should. We are using mapserver to provide layers to clients using ESRI so it does work. I would also note that mapserver 5.2 is a bit dated now, wms v1.3.0 is the current version which you do not show support for. Brent Wood --- On Thu, 9/13/12, Jessica Clarke jessica.cla...@forestrytas.com.au wrote: From: Jessica Clarke jessica.cla...@forestrytas.com.au Subject: [mapserver-users] mapserver as a wms server for arcgis client To: mapserver-users@lists.osgeo.org Date: Thursday, September 13, 2012, 6:53 PM Hi, I'm hoping someone can help me identify why my wms layers in arcgis are coming up blank. Here is my mapfile: MAP NAME WMSQuick STATUS ON EXTENT 227154 5165779 627108 5614539 UNITS DD SHAPEPATH c:/images SIZE 800 600 PROJECTION init=epsg:28355 END OUTPUTFORMAT NAME 'AGG/PNG' DRIVER AGG/PNG END WEB IMAGEPATH C:/images/ IMAGEURL /images/ METADATA wms_title WMS Demo ##required wms_onlineresource http://test/cgi-bin/mapserv.exe?map=E:\mapfiles\wmstest4.map; wms_enable_request * ##necessary wms_server_version 1.1.1 wms_extent 227154 5165779 627108 5614539 END END LAYER NAME AdminCountries STATUS ON TYPE POLYGON DATA img_index.shp CLASS STYLE COLOR 246 241 223 OUTLINECOLOR 0 0 0 END END METADATA wms_title admin_countries wms_name admincountries wms_server_version 1.1.1 #wms_extent 227154 5165779 627108 5614539 wms_onlineresource http://test/cgi-bin/mapserv.exe?map=E:\mapfiles\wmstest4.map; wms_format image/tif END PROJECTION init=epsg:28355 END END LEGEND KEYSIZE 12 12 STATUS EMBED POSITION lr IMAGECOLOR 125 125 125 LABEL COLOR 255 255 255 FONT verdana TYPE TRUETYPE POSITION AUTO PARTIALS FALSE SIZE 8 BUFFER 1 END END END Here is my capabilities report: ?xml version='1.0' encoding=ISO-8859-1 standalone=no ? !DOCTYPE WMT_MS_Capabilities SYSTEM http://schemas.opengis.net/wms/1.1.1/WMS_MS_Capabilities.dtd; [ !ELEMENT VendorSpecificCapabilities EMPTY ] !-- end of DOCTYPE declaration -- WMT_MS_Capabilities version=1.1.1 !-- MapServer version 5.2.0 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=PDF 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=SOS_SERVER SUPPORTS=FASTCGI SUPPORTS=THREADS SUPPORTS=GEOS SUPPORTS=RGBA_PNG INPUT=JPEG INPUT=POSTGIS INPUT=ORACLESPATIAL INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE -- Service NameOGC:WMS/Name TitleWMS Demo/Title OnlineResource xmlns:xlink=http://www.w3.org/1999/xlink; xlink:href=http://test/cgi-bin/mapserv.exe?map=E:\mapfiles\wmstest4.mapamp;/ /Service Capability Request GetCapabilities Formatapplication/vnd.ogc.wms_xml/Format DCPType HTTP GetOnlineResource xmlns:xlink=http://www.w3.org/1999/xlink; xlink:href=http://test/cgi-bin/mapserv.exe?map=E:\mapfiles\wmstest4.mapamp;//Get PostOnlineResource xmlns:xlink=http://www.w3.org/1999/xlink; xlink:href=http://test/cgi-bin/mapserv.exe?map=E:\mapfiles\wmstest4.mapamp;//Post /HTTP /DCPType /GetCapabilities GetMap Formatimage/gif/Format Formatimage/png/Format Formatimage/png; mode=24bit/Format Formatimage/jpeg/Format Formatimage/vnd.wap.wbmp/Format Formatimage/tiff/Format Formatimage/svg+xml/Format DCPType HTTP GetOnlineResource xmlns:xlink=http://www.w3.org/1999/xlink; xlink:href=http://test/cgi-bin/mapserv.exe?map=E:\mapfiles\wmstest4.mapamp;//Get PostOnlineResource xmlns:xlink=http://www.w3.org/1999/xlink; xlink:href=http://test/cgi-bin/mapserv.exe?map=E:\mapfiles\wmstest4.mapamp;//Post /HTTP /DCPType /GetMap GetFeatureInfo Formattext/plain/Format Formatapplication/vnd.ogc.gml/Format DCPType HTTP GetOnlineResource xmlns:xlink=http://www.w3.org/1999/xlink; xlink:href=http://test/cgi-bin/mapserv.exe?map=E:\mapfiles\wmstest4.mapamp;//Get PostOnlineResource xmlns:xlink=http://www.w3.org/1999/xlink; xlink:href=http://test/cgi-bin/mapserv.exe?map=E:\mapfiles\wmstest4.mapamp;//Post /HTTP /DCPType /GetFeatureInfo DescribeLayer Formattext/xml/Format DCPType HTTP GetOnlineResource xmlns:xlink=http://www.w3.org/1999/xlink; xlink:href=http://test/cgi-bin/mapserv.exe?map=E:\mapfiles\wmstest4.mapamp;//Get PostOnlineResource xmlns:xlink=http://www.w3.org/1999/xlink; xlink:href=http://test/cgi-bin/mapserv.exe?map=E:\mapfiles\wmstest4.mapamp;//Post /HTTP
[mapserver-users] Querying by attributes
I'm sorry guys, this should be basic querying and I ought to have figured it out, but I'm stuck. I'm trying to get a basic query of a shapefile-based layer. For testing, I hard-coded some parameters to see if it will work. But try as I might, my searches return 0 results even though I know results should be returned. I'm on MapServer 6.0.2. Here is the code: $map = ms_newMapObj('/ms4w/apps/geoparcels/maps/parcels.map'); $layer = $map-getLayerByName(parcels); $expression = '[TOWN]' == 'Acton'; //perform query $layer-queryByAttributes(TOWN,$expression,MS_MULTIPLE); if($layer-getNumResults() 0) { echo results found; } else{ echo no results found; } -What am I doing wrong? ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] mapserver as a wms server for arcgis client
Hi Jessica I can confirm with Brent that ArcMap can read WMS layers from Mapserver. You need to specify the version in ArcCatalog when you first connect, otherwise ArcMap will try v1.3 by default (from memory). Regards, Robert pcr...@pcreso.com 14/09/2012 5:44 a.m. Can you confirm it works OK with other clients, like QGIS? I generally use QGIS for testing, as I can easily simultaneously open the shapefiles, imagery, postgis tables, etc as well as the WMS/WFS outputs to ensure all is doing exactly what it should. We are using mapserver to provide layers to clients using ESRI so it does work. I would also note that mapserver 5.2 is a bit dated now, wms v1.3.0 is the current version which you do not show support for. Brent Wood --- On Thu, 9/13/12, Jessica Clarke jessica.cla...@forestrytas.com.au wrote: From: Jessica Clarke jessica.cla...@forestrytas.com.au Subject: [mapserver-users] mapserver as a wms server for arcgis client To: mapserver-users@lists.osgeo.org Date: Thursday, September 13, 2012, 6:53 PM Hi, I'm hoping someone can help me identify why my wms layers in arcgis are coming up blank. Here is my mapfile: MAP NAME WMSQuick STATUS ON EXTENT 227154 5165779 627108 5614539 UNITS DD SHAPEPATH c:/images SIZE 800 600 PROJECTION init=epsg:28355 END OUTPUTFORMAT NAME 'AGG/PNG' DRIVER AGG/PNG END WEB IMAGEPATH C:/images/ IMAGEURL /images/ METADATA wms_title WMS Demo ##required wms_onlineresource http://test/cgi-bin/mapserv.exe?map=E:\mapfiles\wmstest4.map; wms_enable_request * ##necessary wms_server_version 1.1.1 wms_extent 227154 5165779 627108 5614539 END END LAYER NAME AdminCountries STATUS ON TYPE POLYGON DATA img_index.shp CLASS STYLE COLOR 246 241 223 OUTLINECOLOR 0 0 0 END END METADATA wms_title admin_countries wms_name admincountries wms_server_version 1.1.1 #wms_extent 227154 5165779 627108 5614539 wms_onlineresource http://test/cgi-bin/mapserv.exe?map=E:\mapfiles\wmstest4.map; wms_format image/tif END PROJECTION init=epsg:28355 END END LEGEND KEYSIZE 12 12 STATUS EMBED POSITION lr IMAGECOLOR 125 125 125 LABEL COLOR 255 255 255 FONT verdana TYPE TRUETYPE POSITION AUTO PARTIALS FALSE SIZE 8 BUFFER 1 END END END Here is my capabilities report: ?xml version='1.0' encoding=ISO-8859-1 standalone=no ? !DOCTYPE WMT_MS_Capabilities SYSTEM http://schemas.opengis.net/wms/1.1.1/WMS_MS_Capabilities.dtd; [ !ELEMENT VendorSpecificCapabilities EMPTY ] !-- end of DOCTYPE declaration -- WMT_MS_Capabilities version=1.1.1 !-- MapServer version 5.2.0 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=PDF 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=SOS_SERVER SUPPORTS=FASTCGI SUPPORTS=THREADS SUPPORTS=GEOS SUPPORTS=RGBA_PNG INPUT=JPEG INPUT=POSTGIS INPUT=ORACLESPATIAL INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE -- Service NameOGC:WMS/Name TitleWMS Demo/Title OnlineResource xmlns:xlink=http://www.w3.org/1999/xlink; xlink:href=http://test/cgi-bin/mapserv.exe?map=E:\mapfiles\wmstest4.mapamp;/ /Service Capability Request GetCapabilities Formatapplication/vnd.ogc.wms_xml/Format DCPType HTTP GetOnlineResource xmlns:xlink=http://www.w3.org/1999/xlink; xlink:href=http://test/cgi-bin/mapserv.exe?map=E:\mapfiles\wmstest4.mapamp;//Get PostOnlineResource xmlns:xlink=http://www.w3.org/1999/xlink; xlink:href=http://test/cgi-bin/mapserv.exe?map=E:\mapfiles\wmstest4.mapamp;//Post /HTTP /DCPType /GetCapabilities GetMap Formatimage/gif/Format Formatimage/png/Format Formatimage/png; mode=24bit/Format Formatimage/jpeg/Format Formatimage/vnd.wap.wbmp/Format Formatimage/tiff/Format Formatimage/svg+xml/Format DCPType HTTP GetOnlineResource xmlns:xlink=http://www.w3.org/1999/xlink; xlink:href=http://test/cgi-bin/mapserv.exe?map=E:\mapfiles\wmstest4.mapamp;//Get PostOnlineResource xmlns:xlink=http://www.w3.org/1999/xlink; xlink:href=http://test/cgi-bin/mapserv.exe?map=E:\mapfiles\wmstest4.mapamp;//Post /HTTP /DCPType /GetMap GetFeatureInfo Formattext/plain/Format Formatapplication/vnd.ogc.gml/Format DCPType HTTP GetOnlineResource xmlns:xlink=http://www.w3.org/1999/xlink; xlink:href=http://test/cgi-bin/mapserv.exe?map=E:\mapfiles\wmstest4.mapamp;//Get PostOnlineResource xmlns:xlink=http://www.w3.org/1999/xlink; xlink:href=http://test/cgi-bin/mapserv.exe?map=E:\mapfiles\wmstest4.mapamp;//Post /HTTP /DCPType /GetFeatureInfo DescribeLayer Formattext/xml/Format DCPType HTTP GetOnlineResource