Re: [mapserver-users] OGR Geojson error
Thanks Kobben. I think it might be more than a file naming issue. Below is the response from ogrinfo but I can find anything related online. Any ideas? /usr/local/bin/ogrinfo http://opendata.arcgis.com/datasets/5da472c6d27b4b67970acc7b5044c862_0.geojson ERROR 1: Peer's certificate has an invalid signature. ERROR 1: Peer's certificate has an invalid signature. FAILURE: Unable to open datasource `http://opendata.arcgis.com/datasets/5da472c6d27b4b67970acc7b5044c862_0.geojson' with the following drivers. -> PCIDSK -> PDF -> EEDA -> ESRI Shapefile -> MapInfo File -> UK .NTF -> OGR_SDTS -> S57 -> DGN -> OGR_VRT -> REC -> Memory -> BNA -> CSV -> GML -> GPX -> KML -> GeoJSON -> GeoJSONSeq -> ESRIJSON -> TopoJSON -> OGR_GMT -> WAsP -> OpenFileGDB -> XPlane -> DXF -> CAD -> Geoconcept -> GeoRSS -> GPSTrackMaker -> PGDUMP -> GPSBabel -> SUA -> OpenAir -> OGR_PDS -> WFS -> WFS3 -> HTF -> AeronavFAA -> EDIGEO -> GFT -> SVG -> CouchDB -> Cloudant -> Idrisi -> ARCGEN -> SEGUKOOA -> SEGY -> ODS -> XLSX -> ElasticSearch -> Carto -> AmigoCloud -> SXF -> Selafin -> JML -> PLSCENES -> CSW -> VDV -> MVT -> TIGER -> AVCBin -> AVCE00 -> NGW -> HTTP Eric Weisbender | GIS Program Lead Western Area Power Administration | Headquarters (O) 720.962.7280 | weisb...@wapa.gov<mailto:weisb...@wapa.gov> From: b.j.kob...@utwente.nl Sent: Saturday, September 26, 2020 2:53 AM To: Weisbender, Eric ; mapserver-users@lists.osgeo.org Subject: [EXTERNAL] Re: [mapserver-users] OGR Geojson error It might be simply that file names beginning with a number are always a bad idea, because several libs and systems out there have problems with it...? -- Barend Köbben On 25/09/2020, 16:45, "mapserver-users on behalf of Weisbender, Eric" mailto:mapserver-users-boun...@lists.osgeo.org> on behalf of weisb...@wapa.gov<mailto:weisb...@wapa.gov>> wrote: Hello List, I have two sources of geojson data in my map file. One works fine the other does not. The one that works streams into the browser when I go to it directly. The other source downloads a file. The one that does not work I get the following MapServer error. Also the geojson sources are listed below. The layer defs are the same in the mapfile. Thanks in advance for your help. Error: msOGRFileOpen(): OGR error. Open failed for OGR connection in layer `fire_nifc_point . File not found or unsupported format. Check server logs. Works: http://earthquake.usgs.gov/earthquakes/feed/v1.0/summary/all_day.geojson<https://gcc02.safelinks.protection.outlook.com/?url=http%3A%2F%2Fearthquake.usgs.gov%2Fearthquakes%2Ffeed%2Fv1.0%2Fsummary%2Fall_day.geojson=02%7C01%7C%7C0f22378af4d145891f5908d861f986da%7C31ae220fb94f463a9cfd15bbc9909df5%7C0%7C0%7C637367072099492666=aKFT%2B1hURzGSVSfk1h44nPYGwlxdE4QDPkKHeXhiHIk%3D=0> No Worky: http://opendata.arcgis.com/datasets/68637d248eb24d0d853342cba02d4af7_0.geojson<https://gcc02.safelinks.protection.outlook.com/?url=http%3A%2F%2Fopendata.arcgis.com%2Fdatasets%2F68637d248eb24d0d853342cba02d4af7_0.geojson=02%7C01%7C%7C0f22378af4d145891f5908d861f986da%7C31ae220fb94f463a9cfd15bbc9909df5%7C0%7C0%7C637367072099492666=j%2FlTPVAqXWFCsfAaQqsIKKH%2FE3o4jup0M%2FMQUxbMoNI%3D=0> Eric Weisbender | GIS Program Lead Western Area Power Administration | Headquarters (O) 720.962.7280 | weisb...@wapa.gov<mailto:weisb...@wapa.gov> ___ mapserver-users mailing list mapserver-users@lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] OGR Geojson error
Hello List, I have two sources of geojson data in my map file. One works fine the other does not. The one that works streams into the browser when I go to it directly. The other source downloads a file. The one that does not work I get the following MapServer error. Also the geojson sources are listed below. The layer defs are the same in the mapfile. Thanks in advance for your help. Error: msOGRFileOpen(): OGR error. Open failed for OGR connection in layer `fire_nifc_point . File not found or unsupported format. Check server logs. Works: http://earthquake.usgs.gov/earthquakes/feed/v1.0/summary/all_day.geojson No Worky: http://opendata.arcgis.com/datasets/68637d248eb24d0d853342cba02d4af7_0.geojson Eric Weisbender | GIS Program Lead Western Area Power Administration | Headquarters (O) 720.962.7280 | weisb...@wapa.gov<mailto:weisb...@wapa.gov> ___ mapserver-users mailing list mapserver-users@lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] Swig mapscript troubles
hello, I'm trying to update an installation from ( mapserver / mapscript 6.4) to ( mapserver mapscript/swig 7.4) on a new debian server. I have no troubles with wms/wfs services but when I'm trying to use mapscript functions, i have these problems ~$ php -a Interactive mode enabled php > dl("php_mapscriptng.so"); php > $map= new_mapObj("mymap.map"); php > $p=new_pointObj(1, 1); php > $p->toString(); PHP Warning: Uncaught Error: Call to a member function toString() on resource in php shell code:1 Stack trace: #0 {main} thrown in php shell code on line 1 php > echo mapscript.msGetVersion(); PHP Warning: Use of undefined constant mapscript - assumed 'mapscript' (this will throw an Error in a future version of PHP) in php shell code on line 1 mapscriptMapServer version 7.4.4 OUTPUT=PNG OUTPUT=JPEG OUTPUT=KML SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=ICONV SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=SOS_SERVER SUPPORTS=THREADS SUPPORTS=GEOS SUPPORTS=POINT_Z_M INPUT=JPEG INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE It seemed no problem with the constructor method but when I try to use methods of the object i have heses errors Could you help me ? Thank you ___ mapserver-users mailing list mapserver-users@lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] [EXTERNAL] mapserver geojson query
Hey List, I am displaying earthquake data in mapserver with a geojson layer defined in my map file. When I query an earthquake location on the map the utc date time value changes from 1587732345039 to -140555448. My query template value is [time] and the geojson is below. Thanks in advance for all your help. {"type":"Feature","properties":{"mag":1.79,"place":"6km WSW of Tuttle, Oklahoma","time":1587732345039,"updated":1587733031903,"tz":-360,"url":"https://earthquake.usgs.gov/earthquakes/eventpage/ok2020ibgp","felt":null,"cdi":null,"mmi":null,"alert":null,"status":"reviewed","tsunami":0,"sig":49,"net":"ok","code":"2020ibgp","ids":",ok2020ibgp,","sources":",ok,","types":",geoserve,origin,phase-data,","nst":56,"dmin":0.1034796938,"rms":0.32,"gap":57,"magType":"ml","type":"earthquake","title":"M 1.8 - 6km WSW of Tuttle, Oklahoma", Eric Weisbender ___ mapserver-users mailing list mapserver-users@lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Accessing ArcSDE on secured site
The error I’m getting is very vague and it is the same in the DEBUG file. After about 5 minutes of trying to connect I get the following error… msSDELayerOpen(): SDE error. SE_connection_create(): Operation Failed. (-1) Thanks Eric From: michael.smith.e...@gmail.com [mailto:michael.smith.e...@gmail.com] Sent: 2015, June, 08 4:06 PM To: Weisbender, Eric Cc: mapserver-users@lists.osgeo.org Subject: Re: [mapserver-users] Accessing ArcSDE on secured site Eric, This could be a certificate issue if your server certificate is not a standard one. You might need to load the cert to your local cert store. You should ruin this with shp2img on the command line and turn up the debugging level and see what errors you're actually getting. Michael Smith Remote Sensing/GIS Center US Army Corps of Engineers On Jun 8, 2015, at 4:16 PM, Weisbender, Eric weisb...@wapa.govmailto:weisb...@wapa.gov wrote: Hello, A couple of weeks about I posted the question below and hear anything. I was wondering if it went through and if anyone had any insight. I am trying to access ArcSDE with mapserver on a secured site that uses https:// not http. I keep getting an error saying Server Not Found. Is this even possible and if so I would welcome any help. Thanks in advance. Eric ___ mapserver-users mailing list mapserver-users@lists.osgeo.orgmailto: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] Accessing ArcSDE on secured site
Hello, A couple of weeks about I posted the question below and hear anything. I was wondering if it went through and if anyone had any insight. I am trying to access ArcSDE with mapserver on a secured site that uses https:// not http. I keep getting an error saying Server Not Found. Is this even possible and if so I would welcome any help. Thanks in advance. Eric ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] Accessing ArcSDE on secured site
Hello, I am trying to access ArcSDE with mapserver on a secured site that uses https:// not http. I keep getting an error saying Server Not Found. Is this even possible and if so I would welcome any help. Thanks in advance. Eric ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] Keyimage
Hello, I can't find any reference to Keyimage in the MapServer mapfile documentation even when using the search option. Can someone point me to the correct place. Thanks, Eric Weisbender ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Legend difference in 5.6.1 and 6.4.1 (mapserver)
Hello List, With my legend font I am having the exact same problem on the exact same version of MapServer. In the mean time I have reverted back to BITMAP font but would like to continue using TRUETYPE. I have also tried multiple variation of Legend definition and am currently copying my old .ttf files from our previous server. Any insight to this issue is greatly appreciated. Thanks, Eric Weisbender -Original Message- From: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of mapserver-users-requ...@lists.osgeo.org Sent: 2015, April, 23 1:00 PM To: mapserver-users@lists.osgeo.org Subject: mapserver-users Digest, Vol 87, Issue 28 Send mapserver-users mailing list submissions to mapserver-users@lists.osgeo.org To subscribe or unsubscribe via the World Wide Web, visit http://lists.osgeo.org/mailman/listinfo/mapserver-users or, via email, send a message with subject or body 'help' to mapserver-users-requ...@lists.osgeo.org You can reach the person managing the list at mapserver-users-ow...@lists.osgeo.org When replying, please edit your Subject line so it is more specific than Re: Contents of mapserver-users digest... Today's Topics: 1. Re: Legend difference in 5.6.1 and 6.4.1 (mapserver) -- Message: 1 Date: Thu, 23 Apr 2015 18:01:45 +0200 From: mapserver mapser...@markus-spring.de To: j...@mapmedia.de, mapserver-users@lists.osgeo.org Subject: Re: [mapserver-users] Legend difference in 5.6.1 and 6.4.1 Message-ID: 55391769.4070...@markus-spring.de Content-Type: text/plain; charset=windows-1252; format=flowed J?rg, looks like this is a minefield :( Strange enough, using bitmap fonts the class names don't get truncated, but then I don't have the beloved German umlauts. This sure enough looks like a miscalculation of the space the average letter of a proportional font needs and so the space allocated for the class name is too small. Don't know why it worked in 5.6.1 but broke in the transition to 6.4.1 ---Markus Am 23.04.2015 um 11:28 schrieb J?rg Thomsen: Hallo Markus, I remember this thread: http://mapserver-users.umn.narkive.com/sUT3WyaT/wrong-different-legend -generation but I don't know the ending... In your legend definition you are using wrap, as I remember you have to use html 'br /' for legends (in the class name). Additionally you should use an offset to shift the text upward. In one of my projects I had to use up to three lines for the description in the legend and I added dummy classes with white symbols an nbsp; as name between each real class to have enough space for my text. perhaps this works for you too. J?rg Am 23.04.2015 um 09:45 schrieb mapserver: I am migrating my mapserver application from 5.6.1 to 6.4.1 and have observed a difference in the created legend images, i.e. truncating of class names - which makes the legend image unusable in the end The legend definition on both platforms is as such: LEGEND KEYSIZE 22 12 LABEL TYPE TRUETYPE FONT arial SIZE 8 COLOR 0 0 0 WRAP @ END STATUS ON END # legend Mapfile: Umlauts in html-encoding like CLASS NAME Ouml;ffentlicher Trauml;ger I have to use a truetype font, otherwise I can't render the German umlauts. mapserver 5.6.1 gives this result: http://maps.muenchen.de/wms-2/rgu/behindertenheime?version=1.1.1serv ice=WMSrequest=GetLegendGraphiclayer=l0format=image/pngSTYLE=defa ult and mapserver 6.4.1 gives this one: http://kronos.muenchen.de/wms/rgu/behindertenheime?version=1.1.1serv ice=WMSrequest=GetLegendGraphiclayer=l0format=image/pngSTYLE=defa ult Have I missed something in the migration guide? Or are there parameter available to increase the legend size? Best regards - Markus ___ 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 End of mapserver-users Digest, Vol 87, Issue 28 *** ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] qstring_validation_pattern
Thanks Steve. Works great. Thanks, Eric Weisbender From: Lime, Steve D (MNIT) [mailto:steve.l...@state.mn.us] Sent: 2015, April, 06 3:44 PM To: Weisbender, Eric; mapserver-users@lists.osgeo.org Subject: RE: qstring_validation_pattern Try using a VALIDATION block instead, e.g.: VALIDATION qstring '.' END Steve From: mapserver-users-boun...@lists.osgeo.orgmailto:mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Weisbender, Eric Sent: Monday, April 06, 2015 4:30 PM To: mapserver-users@lists.osgeo.orgmailto:mapserver-users@lists.osgeo.org Subject: [mapserver-users] qstring_validation_pattern Hello List, I recently upgraded from MapServer 6.2.1 to MapServer 6.4.1. When I did this my qstring_validation_pattern . in a layers METADATA definition doesn't work any longer. I get the following. Any help is greatly appreciated. Parameter qstring value fails to validate msValidateParameter() Thanks, Eric Weisbender ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] qstring_validation_pattern
Hello List, I recently upgraded from MapServer 6.2.1 to MapServer 6.4.1. When I did this my qstring_validation_pattern . in a layers METADATA definition doesn't work any longer. I get the following. Any help is greatly appreciated. Parameter qstring value fails to validate msValidateParameter() Thanks, Eric Weisbender ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] box query point data
Hello List, I have a map file with an output projection of utm13. When I define a point layer that is in wgs84 it will only query one point at a time with a single click. When I try to query multiple points with a box query it returns nothing. I can't find any documentation that even resembles this issue so any help is greatly appreciated. Thanks Eric ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] ArcSDE 10.2.2 Support
Hello List, We have some MapServer 6.2.1 applications pulling data from ArcSDE 10.0 and are upgrading to ArcSDE 10.2.2. I was wondering if it is a similar process where we just need to recompile MapServer/OGR against the ArcSDE 10.2.2 libraries or if ArcSDE 10.2.2 is even being supported yet. Thanks in advance for your help. Thanks, Eric ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] FEATUREQUERY with SLAYER
Hello List, I was wondering if there is an example of how to use FEATUREQUERY with SLAYER somewhere that I could reference for a project I am working on where I need to query features that intersect another feature. Thanks EW ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] FEATUREQUERY with SLAYER
Thanks Steve, I think a look at the mapfile would be helpful. Here is my scenario... I have a file with multiple linear features in it. I would like to type in a line name and return all the polygons that intersect that line. I think I'm close but I just need to understand better how slayer works. Thanks, Eric Weisbender GIS Program Lead Western Area Power Administration (720) 962-7280 weisb...@wapa.govmailto:weisb...@wapa.gov From: Lime, Steve D (MNIT) [mailto:steve.l...@state.mn.us] Sent: 2014, June, 24 8:38 AM To: Weisbender, Eric; mapserver-users@lists.osgeo.org Subject: RE: FEATUREQUERY with SLAYER I've used it successfully in a number of places, here's one example: http://deli.dnr.state.mn.us/data_search.html The search by county option uses mode=featurenquery. I can provide more detail if you need it since much of the configuration (and there's not much to it) is in the mapfile. Steve From: mapserver-users-boun...@lists.osgeo.orgmailto:mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Weisbender, Eric Sent: Tuesday, June 24, 2014 8:10 AM To: mapserver-users@lists.osgeo.orgmailto:mapserver-users@lists.osgeo.org Subject: [mapserver-users] FEATUREQUERY with SLAYER Hello List, I was wondering if there is an example of how to use FEATUREQUERY with SLAYER somewhere that I could reference for a project I am working on where I need to query features that intersect another feature. Thanks EW ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] Data Query Issue
Hello list, I am auto downloading two different sets of fire point data. One comes in Geographic WGS84 the other in Geographic NAD83. When I draw both at the same time and try a Query by Rectangle only the last one defined in the mapfile returns info. If I reproject one to UTM then they both return information. This is an auto download every two hours so I would hate to have to mod the data. I'm using version 6.2.1. Query by point works fine. Any ideas are greatly appreciate. Thanks Eric ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Data Query Issue
I have all that info in my system. Below is what the data layer definitions look like and my map output projections is utm 13 nad 83 meters. I've pretty much tried everything I can think of. I always hit the mail list last. LAYER NAME fire_modis METADATA qstring_validation_pattern . END TYPE point STATUS OFF DATA /data/gis/vector/cso/fire_data/USA_contiguous_and_Hawaii_24h OPACITY ALPHA CLASS NAME Active Fires / MODIS (NASA) TEXT MODIS Fire STYLE SYMBOL donut COLOR 0 0 0 SIZE 16 WIDTH 2 END STYLE SYMBOL http://gis.hq.wapa.gov/ms_common/fire_modis.png; COLOR -1 -1 -1 SIZE 12 WIDTH 2 END LABEL COLOR 0 0 0 TYPE TRUETYPE FONT 'arial-bold' SIZE 8 POSITION UR OFFSET 4 4 OUTLINECOLOR 255 255 255 MAXSCALEDENOM 30 END END TEMPLATE /data/gis/www/html/ms_common/fires_modis.html HEADER /data/gis/www/html/ms_common/fires_modis_header.html FOOTER /data/gis/www/html/ms_common/fires_modis_footer.html TOLERANCE 10 PROJECTION init=epsg:4326 END END LAYER NAME fire_geomac METADATA qstring_validation_pattern . END TYPE point STATUS OFF DATA /data/gis/vector/cso/fire_data/nifc_lrg_fires_dd83 OPACITY ALPHA LABELITEM FIRE_NAME CLASS NAME Active Fires / GeoMAC (USGS) STYLE SYMBOL donut COLOR 240 0 0 SIZE 16 WIDTH 2 END STYLE SYMBOL fire COLOR -1 -1 -1 SIZE 12 WIDTH 2 END LABEL COLOR 240 0 0 TYPE TRUETYPE FONT 'arial-bold' SIZE 8 POSITION LL OFFSET 4 4 OUTLINECOLOR 255 255 255 FORCE TRUE MAXSCALEDENOM 30 END END TEMPLATE /data/gis/www/html/ms_common/fires_geomac.html HEADER /data/gis/www/html/ms_common/fires_geomac_header.html FOOTER /data/gis/www/html/ms_common/fires_footer.html TOLERANCE 10 PROJECTION init=epsg:4269 END END Thanks, Eric Weisbender GIS Program Lead Western Area Power Administration (720) 962-7280 weisb...@wapa.govmailto:weisb...@wapa.gov From: Basques, Bob (CI-StPaul) [mailto:bob.basq...@ci.stpaul.mn.us] Sent: 2014, June, 06 1:18 PM To: Weisbender, Eric; mapserver-users@lists.osgeo.org Subject: RE: Data Query Issue Eric, Add a PROJECTION/END block inside of Each layer (based on the raw data projection for each layer) and another at the map level for the projection you want to use for queries. Mapserver will just transform the locations for you on the fly when you make a query. Bobb From: mapserver-users-boun...@lists.osgeo.orgmailto:mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Weisbender, Eric Sent: Friday, June 06, 2014 1:56 PM To: mapserver-users@lists.osgeo.orgmailto:mapserver-users@lists.osgeo.org Subject: [mapserver-users] Data Query Issue Hello list, I am auto downloading two different sets of fire point data. One comes in Geographic WGS84 the other in Geographic NAD83. When I draw both at the same time and try a Query by Rectangle only the last one defined in the mapfile returns info. If I reproject one to UTM then they both return information. This is an auto download every two hours so I would hate to have to mod the data. I'm using version 6.2.1. Query by point works fine. Any ideas are greatly appreciate. Thanks Eric ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] MapCache disk cache issue
Hi, I'm using MapCache with a disk cache configuring using a template similar than: template/tmp/template-test/{tileset}#{grid}#{dim}/{z}/{x}/{y}.{ext}/template Problem is on disc, a folder structure is created putin 000 folders for Z, X, Y. Is there a way to avoid MapCache creates de 000 folders? Thanks. ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] MapCache disk cache issue
Next is the cache element we are using: cache name=disk type=disk base/var/www/html/mapcache/cache//base symlink_blank/var/www/html/mapcache/cache//symlink_blank template/var/www/html/mapcache/cache/{tileset}#{grid}#{any}#{mes}#{dia}#{hora}#{minut}/{z}/{x}/{y}.{ext}/template /cache On Thu, Oct 3, 2013 at 12:50 PM, thomas bonfort thomas.bonf...@gmail.comwrote: post the full cache element. you should be using the layout=template attribute On 3 October 2013 10:10, Eric Sonaron eric.sona...@gmail.com wrote: Hi, I'm using MapCache with a disk cache configuring using a template similar than: template/tmp/template-test/{tileset}#{grid}#{dim}/{z}/{x}/{y}.{ext}/template Problem is on disc, a folder structure is created putin 000 folders for Z, X, Y. Is there a way to avoid MapCache creates de 000 folders? Thanks. ___ 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] MapServer and ArcSDE
Hello List, I'm making this post so that others may avoid the pain that I just went through. We finaly have a working install of MapServer 6.2.1 compiled with GDAL 1.9 on 64 Bit Linux Red Hat 6 Enterprise displaying and querying data from ArcSDE 10.0. At first the data displayed fine with a patch to the mapsde.c file from Steve Lime, thanks Steve. The problem we struggled with for weeks was querying SDE. After a lot of internet searching and sleepless nights I came across the blurb of code below that was the game changer. We added this to the mods that Steve made to the mapsde.c file and presto. Anyway if anyone want to know more you can contact me through the list or at my email below. Steve, I owe you a beer. void msSDELayerFreeItemInfo(layerObj *layer) { #ifdef USE_SDE msSDELayerInfo *sde = NULL; int i; if (!msSDELayerIsOpen(layer)) { msSetError( MS_SDEERR, SDE layer has not been opened., msSDELayerFreeItemInfo()); } sde = layer-layerinfo; if (sde != NULL sde-basedefs) { SE_table_free_descriptions(sde-basedefs); sde-basedefs = NULL; } if (sde != NULL sde-joindefs) { SE_table_free_descriptions(sde-joindefs); sde-joindefs = NULL; } if (layer-iteminfo) { : Thanks, Eric Weisbender Western Area Power Administration Corporate Service Office U.S. Dept. of Energy office: (720) 962-7280 email: weisb...@wapa.govmailto:weisb...@wapa.gov ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] SDE Query server 500 error
Hello List, I'm having some issues query an ArcSDE layer. It draws fine but when I try to query it I get an Internal Server 500 error. I'm wonder if it is like Janos's issue in this post. http://osgeo-org.1560.x6.nabble.com/ArcSDE-connection-tt4265649.html#none The only problem is he's on Windows and I'm on Linux and don't have the first idea of how to go about a similar fix. Any ideas or help is greatly appreciated. Thanks, Eric Weisbender ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] MapServer 6.2.1 and ArcSDE 10
Success! Thanks again for all your help. One last thing, do you suggest any of the other SDE Layer parameters that would improve the speed/performance. Thanks, Eric Weisbender Western Area Power Administration Corporate Service Office U.S. Dept. of Energy office: (720) 962-7280 email: weisb...@wapa.govmailto:weisb...@wapa.gov From: Lime, Steve D (MNIT) [mailto:steve.l...@state.mn.us] Sent: June 10, 2013 3:01 PM To: Weisbender, Eric Cc: Klein, Michael Subject: RE: MapServer 6.2.1 and ArcSDE 10 Patch goes into your source directory and I believe you just do something like: patch 4531.diff Or you can just edit mapsde.c by hand based on the patch- it's straight forward. Then just recompile. Steve From: Weisbender, Eric [mailto:weisb...@wapa.gov] Sent: Monday, June 10, 2013 3:58 PM To: Lime, Steve D (MNIT) Cc: Klein, Michael Subject: RE: MapServer 6.2.1 and ArcSDE 10 I just now realized that. Where do I put the patch and how do I compile against it? Thanks, Eric Weisbender Western Area Power Administration Corporate Service Office U.S. Dept. of Energy office: (720) 962-7280 email: weisb...@wapa.govmailto:weisb...@wapa.gov From: Lime, Steve D (MNIT) [mailto:steve.l...@state.mn.us] Sent: June 10, 2013 2:00 PM To: Weisbender, Eric Subject: RE: MapServer 6.2.1 and ArcSDE 10 Looks like you still have a 64/32-bit type error. Did you apply the patch I supplied last week? From: Weisbender, Eric [mailto:weisb...@wapa.gov] Sent: Monday, June 10, 2013 2:53 PM To: Lime, Steve D (MNIT); mapserver-users@lists.osgeo.orgmailto:mapserver-users@lists.osgeo.org Subject: RE: MapServer 6.2.1 and ArcSDE 10 Hello, I recompiled MapServer / SDE setting CFLAGS='-DSDE64'. I am now getting the following error when I try to draw the SDE Layer. msDrawMap(): Image handling error. Failed to draw layer named 'sde' sdeCopyShape(): SDE error. Unsupported SDE shape type (140733193388036). This is my SDE Layer Definition. Any help would be greatly appreciated. LAYER NAME sde TYPE LINE STATUS OFF CONNECTION JLVGISGATEM,5353,sde,cso_editor,c1rcu1t# CONNECTIONTYPE SDE DATA RMR.MNT_SPANS,SHAPE,SDE.DEFAULT TEMPLATE /data/gis/www/html/ms_common/tlines.html CLASS STYLE COLOR 200 200 0 WIDTH 10 END END END Thanks, Eric Weisbender Western Area Power Administration Corporate Service Office U.S. Dept. of Energy office: (720) 962-7280 email: weisb...@wapa.govmailto:weisb...@wapa.gov From: Lime, Steve D (MNIT) [mailto:steve.l...@state.mn.us] Sent: June 07, 2013 1:46 PM To: Weisbender, Eric; mapserver-users@lists.osgeo.orgmailto:mapserver-users@lists.osgeo.org Subject: RE: MapServer 6.2.1 and ArcSDE 10 Ah, I ran into this to as well, see ticket https://github.com/mapserver/mapserver/issues/4521. I've attached a diff that made things work well for me. Once a fix is put in place for 6.4 (git master) we can backport to 6.2. Steve From: mapserver-users-boun...@lists.osgeo.orgmailto:mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Weisbender, Eric Sent: Friday, June 07, 2013 2:26 PM To: mapserver-users@lists.osgeo.orgmailto:mapserver-users@lists.osgeo.org Subject: [mapserver-users] MapServer 6.2.1 and ArcSDE 10 Hello, We have successfully compiled MapServer 6.2.1 with ArcSDE10 and can see the SDE server ok. When I try to draw a line layer I get the following error. msDrawMap(): Image handling error. Failed to draw layer named 'sde' msSDELayerWhichShapes(): SDE error. getSDEQueryInfo(): Success. (0 getSDEQueryInfo(): SDE error. SE_queryinfo_set_columns(): Invalid parameter value passed to function. (4294967230) The layer definition looks like this and all of the parameters look good. LAYER NAME sde TYPE LINE STATUS OFF CONNECTIONTYPE SDE CONNECTION JLVGISGATEM,5353,sde,cso_editor,c1rcu1t# DATA RMR.MNT_SPANS,SHAPE,SDE.DEFAULT TEMPLATE /data/gis/www/html/ms_common/tlines.html CLASS STYLE COLOR 200 200 0 WIDTH 10 END END END If anyone has an idea of what I am missing or doing wrong any help is greatly appreciated. Thanks, Eric Weisbender ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] MapServer 6.2.1 and ArcSDE 10
We'll do. Thanks again. Thanks, Eric Weisbender Western Area Power Administration Corporate Service Office U.S. Dept. of Energy office: (720) 962-7280 email: weisb...@wapa.govmailto:weisb...@wapa.gov From: Lime, Steve D (MNIT) [mailto:steve.l...@state.mn.us] Sent: June 11, 2013 9:07 AM To: Weisbender, Eric; mapserver-users@lists.osgeo.org Cc: Klein, Michael Subject: RE: MapServer 6.2.1 and ArcSDE 10 I've not done much tuning on my setup. I use SDE only when necessary and live with the performance issues. Tuning on the database itself is the best place to try and improve things. You might ping the list on this one, more folks use SDE in general than on 64-bit Linux. Steve From: Weisbender, Eric [mailto:weisb...@wapa.gov] Sent: Tuesday, June 11, 2013 9:55 AM To: Lime, Steve D (MNIT); mapserver-users@lists.osgeo.orgmailto:mapserver-users@lists.osgeo.org Cc: Klein, Michael Subject: RE: MapServer 6.2.1 and ArcSDE 10 Success! Thanks again for all your help. One last thing, do you suggest any of the other SDE Layer parameters that would improve the speed/performance. Thanks, Eric Weisbender Western Area Power Administration Corporate Service Office U.S. Dept. of Energy office: (720) 962-7280 email: weisb...@wapa.govmailto:weisb...@wapa.gov From: Lime, Steve D (MNIT) [mailto:steve.l...@state.mn.us] Sent: June 10, 2013 3:01 PM To: Weisbender, Eric Cc: Klein, Michael Subject: RE: MapServer 6.2.1 and ArcSDE 10 Patch goes into your source directory and I believe you just do something like: patch 4531.diff Or you can just edit mapsde.c by hand based on the patch- it's straight forward. Then just recompile. Steve From: Weisbender, Eric [mailto:weisb...@wapa.gov] Sent: Monday, June 10, 2013 3:58 PM To: Lime, Steve D (MNIT) Cc: Klein, Michael Subject: RE: MapServer 6.2.1 and ArcSDE 10 I just now realized that. Where do I put the patch and how do I compile against it? Thanks, Eric Weisbender Western Area Power Administration Corporate Service Office U.S. Dept. of Energy office: (720) 962-7280 email: weisb...@wapa.govmailto:weisb...@wapa.gov From: Lime, Steve D (MNIT) [mailto:steve.l...@state.mn.us] Sent: June 10, 2013 2:00 PM To: Weisbender, Eric Subject: RE: MapServer 6.2.1 and ArcSDE 10 Looks like you still have a 64/32-bit type error. Did you apply the patch I supplied last week? From: Weisbender, Eric [mailto:weisb...@wapa.gov] Sent: Monday, June 10, 2013 2:53 PM To: Lime, Steve D (MNIT); mapserver-users@lists.osgeo.orgmailto:mapserver-users@lists.osgeo.org Subject: RE: MapServer 6.2.1 and ArcSDE 10 Hello, I recompiled MapServer / SDE setting CFLAGS='-DSDE64'. I am now getting the following error when I try to draw the SDE Layer. msDrawMap(): Image handling error. Failed to draw layer named 'sde' sdeCopyShape(): SDE error. Unsupported SDE shape type (140733193388036). This is my SDE Layer Definition. Any help would be greatly appreciated. LAYER NAME sde TYPE LINE STATUS OFF CONNECTION JLVGISGATEM,5353,sde,cso_editor,c1rcu1t# CONNECTIONTYPE SDE DATA RMR.MNT_SPANS,SHAPE,SDE.DEFAULT TEMPLATE /data/gis/www/html/ms_common/tlines.html CLASS STYLE COLOR 200 200 0 WIDTH 10 END END END Thanks, Eric Weisbender Western Area Power Administration Corporate Service Office U.S. Dept. of Energy office: (720) 962-7280 email: weisb...@wapa.govmailto:weisb...@wapa.gov From: Lime, Steve D (MNIT) [mailto:steve.l...@state.mn.us] Sent: June 07, 2013 1:46 PM To: Weisbender, Eric; mapserver-users@lists.osgeo.orgmailto:mapserver-users@lists.osgeo.org Subject: RE: MapServer 6.2.1 and ArcSDE 10 Ah, I ran into this to as well, see ticket https://github.com/mapserver/mapserver/issues/4521. I've attached a diff that made things work well for me. Once a fix is put in place for 6.4 (git master) we can backport to 6.2. Steve From: mapserver-users-boun...@lists.osgeo.orgmailto:mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Weisbender, Eric Sent: Friday, June 07, 2013 2:26 PM To: mapserver-users@lists.osgeo.orgmailto:mapserver-users@lists.osgeo.org Subject: [mapserver-users] MapServer 6.2.1 and ArcSDE 10 Hello, We have successfully compiled MapServer 6.2.1 with ArcSDE10 and can see the SDE server ok. When I try to draw a line layer I get the following error. msDrawMap(): Image handling error. Failed to draw layer named 'sde' msSDELayerWhichShapes(): SDE error. getSDEQueryInfo(): Success. (0 getSDEQueryInfo(): SDE error. SE_queryinfo_set_columns(): Invalid parameter value passed to function. (4294967230) The layer definition looks like this and all of the parameters look good. LAYER NAME sde TYPE LINE STATUS OFF CONNECTIONTYPE SDE CONNECTION JLVGISGATEM,5353,sde,cso_editor,c1rcu1t# DATA RMR.MNT_SPANS,SHAPE,SDE.DEFAULT TEMPLATE /data/gis/www/html/ms_common/tlines.html CLASS STYLE COLOR 200 200 0 WIDTH 10 END END END If anyone has
Re: [mapserver-users] MapServer 6.2.1 and ArcSDE 10
Hello, I recompiled MapServer / SDE setting CFLAGS='-DSDE64'. I am now getting the following error when I try to draw the SDE Layer. msDrawMap(): Image handling error. Failed to draw layer named 'sde' sdeCopyShape(): SDE error. Unsupported SDE shape type (140733193388036). This is my SDE Layer Definition. Any help would be greatly appreciated. LAYER NAME sde TYPE LINE STATUS OFF CONNECTION JLVGISGATEM,5353,sde,cso_editor,c1rcu1t# CONNECTIONTYPE SDE DATA RMR.MNT_SPANS,SHAPE,SDE.DEFAULT TEMPLATE /data/gis/www/html/ms_common/tlines.html CLASS STYLE COLOR 200 200 0 WIDTH 10 END END END Thanks, Eric Weisbender Western Area Power Administration Corporate Service Office U.S. Dept. of Energy office: (720) 962-7280 email: weisb...@wapa.govmailto:weisb...@wapa.gov From: Lime, Steve D (MNIT) [mailto:steve.l...@state.mn.us] Sent: June 07, 2013 1:46 PM To: Weisbender, Eric; mapserver-users@lists.osgeo.org Subject: RE: MapServer 6.2.1 and ArcSDE 10 Ah, I ran into this to as well, see ticket https://github.com/mapserver/mapserver/issues/4521. I've attached a diff that made things work well for me. Once a fix is put in place for 6.4 (git master) we can backport to 6.2. Steve From: mapserver-users-boun...@lists.osgeo.orgmailto:mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Weisbender, Eric Sent: Friday, June 07, 2013 2:26 PM To: mapserver-users@lists.osgeo.orgmailto:mapserver-users@lists.osgeo.org Subject: [mapserver-users] MapServer 6.2.1 and ArcSDE 10 Hello, We have successfully compiled MapServer 6.2.1 with ArcSDE10 and can see the SDE server ok. When I try to draw a line layer I get the following error. msDrawMap(): Image handling error. Failed to draw layer named 'sde' msSDELayerWhichShapes(): SDE error. getSDEQueryInfo(): Success. (0 getSDEQueryInfo(): SDE error. SE_queryinfo_set_columns(): Invalid parameter value passed to function. (4294967230) The layer definition looks like this and all of the parameters look good. LAYER NAME sde TYPE LINE STATUS OFF CONNECTIONTYPE SDE CONNECTION JLVGISGATEM,5353,sde,cso_editor,c1rcu1t# DATA RMR.MNT_SPANS,SHAPE,SDE.DEFAULT TEMPLATE /data/gis/www/html/ms_common/tlines.html CLASS STYLE COLOR 200 200 0 WIDTH 10 END END END If anyone has an idea of what I am missing or doing wrong any help is greatly appreciated. Thanks, Eric Weisbender ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] MapServer 6.2.1 and ArcSDE 10
Hello, We have successfully compiled MapServer 6.2.1 with ArcSDE10 and can see the SDE server ok. When I try to draw a line layer I get the following error. msDrawMap(): Image handling error. Failed to draw layer named 'sde' msSDELayerWhichShapes(): SDE error. getSDEQueryInfo(): Success. (0 getSDEQueryInfo(): SDE error. SE_queryinfo_set_columns(): Invalid parameter value passed to function. (4294967230) The layer definition looks like this and all of the parameters look good. LAYER NAME sde TYPE LINE STATUS OFF CONNECTIONTYPE SDE CONNECTION JLVGISGATEM,5353,sde,cso_editor,c1rcu1t# DATA RMR.MNT_SPANS,SHAPE,SDE.DEFAULT TEMPLATE /data/gis/www/html/ms_common/tlines.html CLASS STYLE COLOR 200 200 0 WIDTH 10 END END END If anyone has an idea of what I am missing or doing wrong any help is greatly appreciated. Thanks, Eric Weisbender ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] Compile MapServer with ArcServer 10 support
Steve, I Trying to MapServer with ArcServer 10 support using an EDN License. First off, is this possible and secondly do you have an Idea of what disks I might find the include header and lib files on? Thanks, Eric Weisbender -Original Message- From: Lime, Steve D (MNIT) [mailto:steve.l...@state.mn.us] Sent: March 18, 2013 2:04 PM To: Weisbender, Eric; Smith, Michael ERDC-CRREL-NH; mapserver-users@lists.osgeo.org Subject: RE: [mapserver-users] Compile MapServer with ArcServer 10 support (UNCLASSIFIED) I've successfully compiled against 10.0 on SuSE 11 (64-bit). Files were part of an SDE client DVD I had access to. Looks like: root@maps:/opt/sde/sdeexe100 ls * etc: services.sde include: pe_coordsys_from_prj.h pedef.h pef.h pe_names.h sderaster.h sgerr.h sqlerr.h pe_database.h pe_errno.h pe.h sdeerno.h sdetype.hsg.h sqlerrors.h lib: concurrent.jarlibgsrvrora11g100.so libicuuc.so.40.1 libsdedb2srvr100.so libsg.a icu4j_3_2.jar libgsrvrpg100.so libpe.a libsdeinfsrvr100.so libsg.so jpe_sdk.jar libicudata.so libpe.so libsdejavautil.so libxerces-c.so jsde_sdk.jar libicudata.so.40 libpq.so libsdeora10gsrvr100.so libxerces-c.so.27 libgsrvrdb2100.so libicudata.so.40.1libpq.so.5 libsdeora11gsrvr100.so libxerces-c.so.27.0 libgsrvrinf100.so libicuuc.so libpq.so.5.1 libsdepgsrvr100.so libgsrvrora10g100.so libicuuc.so.40libsde.a libsde.so Compiling was pretty straight forward. I used the following SDE-related options: ./configure [lots of options removed] --with-sde=/opt/sde/sdeexe100 --with-sde-version=100 CFLAGS=-DSDE64 Took a while to figure out the CFLAGS. Steve From: mapserver-users-boun...@lists.osgeo.org [mapserver-users-boun...@lists.osgeo.org] on behalf of Weisbender, Eric [weisb...@wapa.gov] Sent: Monday, March 18, 2013 2:44 PM To: Smith, Michael ERDC-CRREL-NH; mapserver-users@lists.osgeo.org Subject: Re: [mapserver-users] Compile MapServer with ArcServer 10 support (UNCLASSIFIED) Thanks Mike, We are on linux. Can you give me an idea of what the development headers look like and where in the sde file structure I might find them? MapServer Documentation on references arcsde 9.2. Thanks, Eric Weisbender GIS Program Lead Western Area Power Administration Corporate Service Office U.S. Dept. of Energy 12155 W. Alameda Parkway Lakewood, CO office: (720) 962-7280 fax: (720) 962-7269 email: weisb...@wapa.gov 39°42'25.06N 105° 8'13.61W -Original Message- From: Smith, Michael ERDC-CRREL-NH [mailto:michael.sm...@usace.army.mil] Sent: March 18, 2013 1:32 PM To: Weisbender, Eric; mapserver-users@lists.osgeo.org Subject: RE: Compile MapServer with ArcServer 10 support (UNCLASSIFIED) Classification: UNCLASSIFIED Caveats: NONE Eric, I assume you mean ArcSDE support? If so, on windows, the ms4w release includes ArcSDE support. Find it at http://www.maptools.org/ms4w/ For linux, you just need to reference the arcsde development headers path in the ./configure path for --with-arcsde. Mike Michael Smith Remote Sensing/GIS Center US Army Corps of Engineers -Original Message- From: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Weisbender, Eric Sent: Monday, March 18, 2013 3:22 PM To: mapserver-users@lists.osgeo.org Subject: [mapserver-users] Compile MapServer with ArcServer 10 support Hello, Is there any documentation on how to compile MapServer with ArcServer 10 support? Any help is greatly appreciated. Thanks, Eric Weisbender Classification: UNCLASSIFIED Caveats: NONE ___ 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] MapServer and SDE
I apologize for that last email being so garbled. I'm trying to do several things at once. Anyway, here is what I was meaning to ask. I am trying to compile MapServer with ArcServer 10 support using an EDN License. First off, is this possible with just EDN and secondly do you have an Idea of what disks I might find the include header and lib files on? Thanks, Eric Weisbender ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] MapServer ArcSDE on Unix 64bit
Hello, We have MapServer installed on a 64bit Unix box and are trying to recompile with ArcSDE support. As far as I know ArcSDE only supports 32bit. Has anyone had success compiling MapServer with ArcSDE in a 64bit environment? If so, is it the same as documented on mapserver.org or are there special instructions or even examples somewhere. Thanks in advance. Eric ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Query one return multiple
Do you have a quick example in MapScript that I might be able to use? Thanks, Eric Weisbender Western Area Power Administration Corporate Service Office U.S. Dept. of Energy office: (720) 962-7280 email: weisb...@wapa.govmailto:weisb...@wapa.gov From: Lime, Steve D (MNIT) [mailto:steve.l...@state.mn.us] Sent: April 23, 2013 11:07 AM To: Weisbender, Eric; mapserver-users@lists.osgeo.org Subject: RE: Query one return multiple I don't think so. If feature ids are sequential you might be able to link to a query that would get you the next feature. Depends on what client environment you're using. You could do this with MapScript though. Steve From: mapserver-users-boun...@lists.osgeo.orgmailto:mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Weisbender, Eric Sent: Wednesday, April 17, 2013 11:40 AM To: mapserver-users@lists.osgeo.orgmailto:mapserver-users@lists.osgeo.org Subject: [mapserver-users] Query one return multiple Hello list, I was wondering if there is a way to query a point and return not only attributes for that point but the next points attribute in order in the dbf. Thanks in advance. Thanks, EW ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] Query one return multiple
Hello list, I was wondering if there is a way to query a point and return not only attributes for that point but the next points attribute in order in the dbf. Thanks in advance. Thanks, EW ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] Filter by date
Hello List How would I FILTER a data set by the month and year ignoring the day. An example of the field format is 1/11/2010. I found the example below in the docs but I'm not quite sure how to format the filter to account for the slashes. Any help is greatly appreciated. FILTERITEM year FILTER /^20[0-9][0-9]/ Thanks, Eric ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Compile MapServer with ArcServer 10 support (UNCLASSIFIED)
Thanks Mike, We are on linux. Can you give me an idea of what the development headers look like and where in the sde file structure I might find them? MapServer Documentation on references arcsde 9.2. Thanks, Eric Weisbender GIS Program Lead Western Area Power Administration Corporate Service Office U.S. Dept. of Energy 12155 W. Alameda Parkway Lakewood, CO office: (720) 962-7280 fax: (720) 962-7269 email: weisb...@wapa.gov 39°42'25.06N 105° 8'13.61W -Original Message- From: Smith, Michael ERDC-CRREL-NH [mailto:michael.sm...@usace.army.mil] Sent: March 18, 2013 1:32 PM To: Weisbender, Eric; mapserver-users@lists.osgeo.org Subject: RE: Compile MapServer with ArcServer 10 support (UNCLASSIFIED) Classification: UNCLASSIFIED Caveats: NONE Eric, I assume you mean ArcSDE support? If so, on windows, the ms4w release includes ArcSDE support. Find it at http://www.maptools.org/ms4w/ For linux, you just need to reference the arcsde development headers path in the ./configure path for --with-arcsde. Mike Michael Smith Remote Sensing/GIS Center US Army Corps of Engineers -Original Message- From: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Weisbender, Eric Sent: Monday, March 18, 2013 3:22 PM To: mapserver-users@lists.osgeo.org Subject: [mapserver-users] Compile MapServer with ArcServer 10 support Hello, Is there any documentation on how to compile MapServer with ArcServer 10 support? Any help is greatly appreciated. Thanks, Eric Weisbender Classification: UNCLASSIFIED Caveats: NONE ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Photo Viewer
I got it to work. Thanks for all your help. Thanks, Eric Weisbender GIS Program Lead Western Area Power Administration Corporate Service Office U.S. Dept. of Energy 12155 W. Alameda Parkway Lakewood, CO office: (720) 962-7280 fax: (720) 962-7269 email: weisb...@wapa.govmailto:weisb...@wapa.gov 39°42'25.06N 105° 8'13.61W [cid:image003.jpg@01CE0B62.0D60C7B0] From: Lime, Steve D (MNIT) [mailto:steve.l...@state.mn.us] Sent: February 14, 2013 3:41 PM To: Basques, Bob (CI-StPaul); Weisbender, Eric; mapserver-users@lists.osgeo.org Subject: RE: Photo Viewer Could try ANGLE 90 at the map level? From: Basques, Bob (CI-StPaul) Sent: Thursday, February 14, 2013 4:17 PM To: Lime, Steve D (MNIT); Weisbender, Eric; mapserver-users@lists.osgeo.orgmailto:mapserver-users@lists.osgeo.org Subject: RE: Photo Viewer Ok, I sort of got something to work . . . http://gis.ci.stpaul.mn.us/datasets/SHP/SAINT_PAUL/PUBLIC_WORKS/TEST/image_pixel_coord_public.map http://gis.ci.stpaul.mn.us/datasets/SHP/SAINT_PAUL/PUBLIC_WORKS/TEST/image_pixel_coord_public.map?mapext=750+600+1100+925 Danged if I can figure out how to rotate the image (via the world file), nothing is happening with edits to the world file. Still not responding to all the CGI parameters either. MAPFILE: MAP NAME PHOTO SIZE 2048 1536 EXTENT 0 0 2048 1536 UNITS feet LAYER NAME photo DATA up_a_tree.jpg TYPE RASTER TRANSFORM FALSE STATUS DEFAULT UNITS PIXELS END END WORLD FILE: 1. 0. 0. 1. 0.5 0.5 bobb From: Lime, Steve D (MNIT) Sent: Thursday, February 14, 2013 10:53 AM To: Basques, Bob (CI-StPaul); Weisbender, Eric; mapserver-users@lists.osgeo.orgmailto:mapserver-users@lists.osgeo.org Subject: RE: Photo Viewer I would think it could be done, your extent would be given in pixels. Full extent is given as 0 0 width-1 height-1. Depends if the raster code respects the layer TRANSFORM parameter. Steve From: mapserver-users-boun...@lists.osgeo.orgmailto:mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Basques, Bob (CI-StPaul) Sent: Thursday, February 14, 2013 10:34 AM To: Weisbender, Eric; mapserver-users@lists.osgeo.orgmailto:mapserver-users@lists.osgeo.org Subject: Re: [mapserver-users] Photo Viewer Eric, Interesting idea. I remember a thread a few years back about something similar being asked. As far as the geo-referencing part, you can simply use the size of the image as your reference coordinate system for each image. Mapserver is more generally suit towards combining different data into a single output, thus the need for a coordinate system to reference more than one layer. So, the real question boils down to a technique for fooling MapServer into some sort of projection some how for each image. Let me think on this a bit. I wonder though about setting up something to register images to a location via a loading form which grabs the image size, etc. Then they are put away with the sudo projection assigned to each image at the uploading point. Bobb From: mapserver-users-boun...@lists.osgeo.orgmailto:mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Weisbender, Eric Sent: Thursday, February 14, 2013 10:03 AM To: mapserver-users@lists.osgeo.orgmailto:mapserver-users@lists.osgeo.org Subject: [mapserver-users] Photo Viewer I would like to use MapServer as just an unreferenced image viewer for jpgs so I can zoom in and out on the image. Everything I read says that images have to be georeferenced. Any idea or even examples would be greatly appreciated. Thanks, Eric Weisbender inline: image003.jpg___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] Photo Viewer
I would like to use MapServer as just an unreferenced image viewer for jpgs so I can zoom in and out on the image. Everything I read says that images have to be georeferenced. Any idea or even examples would be greatly appreciated. Thanks, Eric Weisbender ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] [TINYOWS] 'Looser' XSD?
Indeed, it appears it should be straightforward to resolve this from the OL end. I have just summoned the help of the OpenLayers-User mailing list gurus about this. Refer to the thread over there for further information. Thanks, Eric On 09/07/2012 11:57 AM, Stephen Woodbridge wrote: Eric, Thanks for reporting this because I have to dive into doing the same shortly. I would suggest that OpenLayers is where the problem is because it is generating the XML that is going to TinyOWS. I have not looked into this specific issue but in general OL is pretty flexible and you might only need to set the appropriate namespace or GML level in OL to fix this problem. I would check with that list first. Thanks, -Steve On 9/7/2012 1:08 AM, Eric wrote: Hello list, I am trying to save features to a PostGIS DB using tinyows. Saving geometries alone works fine, updating records works well, but as soon as I combine attributes and geometries, I get an error from tinyows indicating that the XML is not in the right format. I have noticed a difference between the 3 scenarios. For instance, when I save a geometry without attributes, I get the following: (this works fine) wfs:Insert feature:parcels xmlns:feature=http://www.tinyows.org/; feature:geom gml:MultiSurface xmlns:gml=http://www.opengis.net/gml; srsName=EPSG:3857 gml:surfaceMember gml:Polygon gml:exterior gml:LinearRing gml:posList-10752./gml:posList /gml:LinearRing /gml:exterior /gml:Polygon /gml:surfaceMember /gml:MultiSurface /feature:geom /feature:washco_parcels /wfs:Insert And, when I add attributes, I get the following: (generates an error to teh effect that feature:address1test is unexpected) wfs:Insert feature:parcels xmlns:feature=http://www.tinyows.org/; feature:geom gml:MultiSurface xmlns:gml=http://www.opengis.net/gml; srsName=EPSG:3857 gml:surfaceMember gml:Polygon gml:exterior gml:LinearRing gml:posList-10752./gml:posList /gml:LinearRing /gml:exterior /gml:Polygon /gml:surfaceMember /gml:MultiSurface /feature:geom *feature:address1test/feature:address1* /feature:washco_parcels /wfs:Insert Finally, if I do a simple UPDATE, I get the following: (works fine) wfs:Update xmlns:demo=http://www.tinyows.org/; typeName=demo:parcels wfs:Property wfs:Namegeom/wfs:Name wfs:Value gml:MultiSurface xmlns:gml=http://www.opengis.net/gml; srsName=EPSG:3857 gml:surfaceMember gml:Polygon gml:exterior gml:LinearRing gml:posList-10737./gml:posList /gml:LinearRing /gml:exterior /gml:Polygon /gml:surfaceMember /gml:MultiSurface /wfs:Value /wfs:Property *wfs:Property wfs:Nameobjectid/wfs:Name wfs:Value18785/wfs:Value /wfs:Property* ... The first difference is in the namespace used (feature vs wfs). Any reason why it is doing so? Another difference is in the way attributes are included: wfs:Property wfs:Nameobjectid/wfs:Name wfs:Value18785/wfs:Value /wfs:Property vs feature:address1test/feature:address1 The third example (using wfs:Property) seems to be the correct way to specify information in a WFS file. The first example works fine despite not using that format, because I suspect the GML schema is more flexible and since it does not have attributes that are not geometries, it is considered valid. So I tried turning off schema checking in the tinyows.xml file and the problem payload go through without issues. So this seem to indicate that some of the XSD used are strict and don't allow attributes to be defined like feature:address1test/feature:address1. So my question is how do I fix this best? 1. remove schema enforcing at the tinyows level. Couldn't this lead to potential security issues with the server? 2. Change the XSD files to allow both ways to define attributes. Wouldn't this go against the WFS standard? 3. Change the way OL generates the payload. Not sure where it does it or how to force it to use a different one. BTW, I am using OL 2.12 and Tinyows 1.0.0 thanks! Eric ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] [TINYOWS] 'Looser' XSD?
Hello list, I am trying to save features to a PostGIS DB using tinyows. Saving geometries alone works fine, updating records works well, but as soon as I combine attributes and geometries, I get an error from tinyows indicating that the XML is not in the right format. I have noticed a difference between the 3 scenarios. For instance, when I save a geometry without attributes, I get the following: (this works fine) wfs:Insert feature:parcels xmlns:feature="http://www.tinyows.org/" feature:geom gml:MultiSurface xmlns:gml="http://www.opengis.net/gml" srsName="EPSG:3857" gml:surfaceMember gml:Polygon gml:exterior gml:LinearRing gml:posList-10752./gml:posList /gml:LinearRing /gml:exterior /gml:Polygon /gml:surfaceMember /gml:MultiSurface /feature:geom /feature:washco_parcels /wfs:Insert And, when I add attributes, I get the following: (generates an error to teh effect that "feature:address1test" is unexpected) wfs:Insert feature:parcels xmlns:feature="http://www.tinyows.org/" feature:geom gml:MultiSurface xmlns:gml="http://www.opengis.net/gml" srsName="EPSG:3857" gml:surfaceMember gml:Polygon gml:exterior gml:LinearRing gml:posList-10752./gml:posList /gml:LinearRing /gml:exterior /gml:Polygon /gml:surfaceMember /gml:MultiSurface /feature:geom feature:address1test/feature:address1 /feature:washco_parcels /wfs:Insert Finally, if I do a simple UPDATE, I get the following: (works fine) wfs:Update xmlns:demo="http://www.tinyows.org/" typeName="demo:parcels" wfs:Property wfs:Namegeom/wfs:Name wfs:Value gml:MultiSurface xmlns:gml="http://www.opengis.net/gml" srsName="EPSG:3857" gml:surfaceMember gml:Polygon gml:exterior gml:LinearRing gml:posList-10737./gml:posList /gml:LinearRing /gml:exterior /gml:Polygon /gml:surfaceMember /gml:MultiSurface /wfs:Value /wfs:Property wfs:Property wfs:Nameobjectid/wfs:Name wfs:Value18785/wfs:Value /wfs:Property ... The first difference is in the namespace used (feature vs wfs). Any reason why it is doing so? Another difference is in the way attributes are included: wfs:Property wfs:Nameobjectid/wfs:Name wfs:Value18785/wfs:Value /wfs:Property vs feature:address1test/feature:address1 The third example (using wfs:Property) seems to be the correct way to specify information in a WFS file. The first example works fine despite not using that format, because I suspect the GML schema is more flexible and since it does not have attributes that are not geometries, it is considered valid. So I tried turning off schema checking in the tinyows.xml file and the problem payload go through without issues. So this seem to indicate that some of the XSD used are strict and don't allow attributes to be defined like feature:address1test/feature:address1. So my question is how do I fix this best? remove schema enforcing at the tinyows level. Couldn't this lead to potential security issues with the server? Change the XSD files to allow both ways to define attributes. Wouldn't this go against the WFS standard? Change the way OL generates the payload. Not sure where it does it or how to force it to use a different one. BTW, I am using OL 2.12 and Tinyows 1.0.0 thanks! Eric ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] [TINYOWS] Circular references in schemas?
Hello list, I have tried to search through the past archives but couldn't locate an answer to my question. Apologies if this has already been answered. I have just compiled TINYOWS and installed/configured it. I am going through the tutorials, and in OL, I get the following error: ?xml version='1.0' encoding='UTF-8'? ows:ExceptionReport xmlns='http://www.opengis.net/ows' xmlns:ows='http://www.opengis.net/ows' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:schemaLocation='http://www.opengis.net/ows http://schemas.opengis.net/ows/1.0.0/owsExceptionReport.xsd' version='1.1.0' language='en' ows:Exception exceptionCode='InvalidParameterValue' locator='request' ows:ExceptionTextXML request isn't valid/ows:ExceptionText /ows:Exception /ows:ExceptionReport On the server side, tinyows gives me the following error: [ERROR] Element '{http://www.w3.org/2001/XMLSchema}import': The schema document '/usr/local/tinyows/schema/gml/3.1.1/base/geometryAggregates.xsd' cannot be imported, since it was already included or redefined. Which seems to indicate a circular reference in the XSDs. I am using libxml2 v2.6. I noticed that the recommended version for libxml2 is 2.8. Will upgrading to the latest version resolve the issue? My configuration file is as follows: tinyows _online_resource_="http://127.0.0.1/cgi-bin/tinyows" schema_dir="/usr/local/tinyows/schema/" log="/var/log/tinyows.log" log_level="7" check_schema="1" .. layer retrievable="1" writable="1" ns_uri="http://www.tinyows.org/" ns_prefix="demo" name="frida" title="Frida Parks" / /tinyows Thanks for your help, Eric ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] WFS GetFeature issue with MS4W
On Thursday, May 24, 2012, Eric Lemoine wrote: On Wednesday, May 23, 2012, Jeff McKenna wrote: Hi Eric, From reading my own ticket comments in https://github.com/mapserver/mapserver/issues/4039 it seems I got around the issue by setting the 'wms_extent' metadata. Hi Jeff Thanks for your response. The wms_extent workaround doesn't work for us. But the problem occurs on WFS GetFeature for us, not on GetCapabilities. Our layer is a PostGIS layer by the way, which may be related to the problem based on what I read in the tickets. Please tells if it's worth creating a new GitHub issue for our problem. We have finally found a solution: use a 64-bit version from http://www.gisinternals.com/sdk/ (our Windows machine is 64-bit). Thank you. -- Eric Lemoine Camptocamp France SAS Savoie Technolac, BP 352 73377 Le Bourget du Lac, Cedex Tel : 00 33 4 79 44 44 96 Mail : eric.lemo...@camptocamp.com http://www.camptocamp.com ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] WFS GetFeature issue with MS4W
Hi I'm facing an issue with WFS GetFeature POST requests. This is with MS4W 3.0.4 [1] (installed from the zip file), on Windows Server 2008 R2 Standard, 64-bit. The XML response returned by mapserv is incomplete. The WFS GetFeature request is pretty basic, it just includes a BBOX filter, see [2]. The end of the truncated response looks like this: gml:featureMember ms:mo9_immeubles gml:boundedBy gml:Box srsName=EPSG:21781 gml:coordinates533307.287000,196036.205000 57.719000,196067.143000/gml:coordinates /gml:Box /gml:boundedBy ms:msGeometry gml:Polygon srsName=EPSG:21781 gml:outerBoundaryIs gml:LinearRing gml:coordinates53.496000,196036.205000 57.719000,196056.953000 533325.629000,196060.658000 533312.183000,196067.143000 533307.287000,196043.126000 533315.968000,196042.982000 533317.853181,196042.846235 533319.724379,196042.579861 533321.572558,196042.184165 533323.388789,196041.661057 533325.164302,196041.013065 533326.890520,196040.243318 533328.559106,196039.355533 50.162000,196038.354000 53.496000,196036.205000 /gml:coordinates /gml:LinearRing /gml:outerBoundaryIs /gml:Polygon /ms:msGeometry ms:url_terris_intralt;a href=quot;javascript:si The same WFS GetFeature using GET results in a complete response, so the issue really is related to POST. And when using MapServer on *Linux* the same exact WFS GetFeature does result in a complete response. On Windows the response headers include Transfer-Encoding: chunked. This has sounded suspicious to me first, because on Linux MapServer does not return chunked responses. But I also get Transfer-Encoding: chunked on Windows when using GET. I have enabled debugging logs in MapServer [3], but this hasn't led anywhere - the MapServer log file remains empty. Apache access.log includes Apache access.log: nesitnd1.ne.ch - - [23/May/2012:12:28:19 +0200] POST /test_eric/mapserv? HTTP/1.1 200 36825. This is interesting to note that the response is a 200. And Apache error.log does not reveal any MapServer crash (no premature end of script type of thing). Any suggestion for me? Thanks. [1] D:\ms4w\Apache\cgi-binmapserv -v MapServer version 6.0.2 (MS4W 3.0.4) OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=KML SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=CA IRO SUPPORTS=FREETYPE SUPPORTS=ICONV SUPPORTS=FRIBIDI SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPOR TS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=SOS_SERVER SUPPORTS=FASTCGI SUPPORTS=THREADS SUPPORTS=GEOS INPUT=JPEG INPUT=P OSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE [2] wfs:GetFeature xmlns:wfs=http://www.opengis.net/wfs; service=WFS version=1.0.0 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=feature:mo9_immeublesogc:Filter xmlns:ogc=http://www.opengis.net/ogc;ogc:BBOXogc:PropertyNamegeom/ogc:PropertyNamegml:Box xmlns:gml=http://www.opengis.net/gml;gml:coordinates decimal=. cs=, ts= 533104.74107143,195925.49107143 533327.24107143,196115.49107143/gml:coordinates/gml:Box/ogc:BBOX/ogc:Filter/wfs:Query/wfs:GetFeature [3] CONFIG MS_ERRORFILE D:/tmp/ms_error.txt DEBUG 5 CONFIG CPL_DEBUG ON CONFIG PROJ_DEBUG ON -- Eric Lemoine Camptocamp France SAS Savoie Technolac, BP 352 73377 Le Bourget du Lac, Cedex Tel : 00 33 4 79 44 44 96 Mail : eric.lemo...@camptocamp.com http://www.camptocamp.com ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] Re: WFS GetFeature issue with MS4W
On Wednesday, May 23, 2012, Jeff McKenna wrote: Hi Eric, From reading my own ticket comments in https://github.com/mapserver/mapserver/issues/4039 it seems I got around the issue by setting the 'wms_extent' metadata. Hi Jeff Thanks for your response. The wms_extent workaround doesn't work for us. But the problem occurs on WFS GetFeature for us, not on GetCapabilities. Our layer is a PostGIS layer by the way, which may be related to the problem based on what I read in the tickets. Please tells if it's worth creating a new GitHub issue for our problem. Cheers, -- Eric Lemoine Camptocamp France SAS Savoie Technolac, BP 352 73377 Le Bourget du Lac, Cedex Tel : 00 33 4 79 44 44 96 Mail : eric.lemo...@camptocamp.com http://www.camptocamp.com ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] QGIS openlayers css file
Does any one have a QGIS openlayers plugin .css file they are willing to share or know of a place to download one. Thanks EW ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] tileindex query
Thanks Jukka, Below is a list of the MapServer specs. Please let me know if you notice something out of the ordinary. MapServer version 5.6.5 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=ICONV SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=GEOS INPUT=EPPL7 INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE Thanks EW On 11/19/2011 at 1:39 AM, in message 84446def76453c439e9e97e438e13a6303e...@suutari.haapa.mmm.fi, Rahkonen Jukka jukka.rahko...@mmmtike.fi wrote: Hi, Polygon layer defined like this works for me TILEINDEX D:\data\tindex\tindex_1.shp,0 Also in my mapfile I have a commented line #CONNECTIONTYPE OGR #Don't use, breaks classification and GetFeatureInfo I do not remember exactly what was the Mapserver version which gave to troubles with GetFeatureInfo and tileindex layer. Data referred by tileindex are shapefiles and they do have .qix indexes. -Jukka Rahkonen- Lähettäjä: mapserver-users-boun...@lists.osgeo.org [mapserver-users-boun...@lists.osgeo.org] käyttäjän Eric Weisbender [weisb...@wapa.gov] puolesta Lähetetty: 18. marraskuuta 2011 22:55 Vastaanottaja: mapserver-users@lists.osgeo.org Aihe: [mapserver-users] tileindex query Hello, After two weeks of working on querying vector layers displayed by a tileindex I have still not made any progress. I have tried every variation of layer definition including connectiontype ogr. I have updated my gdal, ogr libraries and have tested on MapServer 565 and 601 both. I have tried different shapefiles and different shapefile combinations both with and with .qix files. I've done this in the past with great success on MapServer 410 running on a red hat box. We are now running in production, MapServer 565 on SUSE 10 and I'm starting to wonder if that isn't the problem. As I said before the query results seem to be random. Sometimes successful but most of the time I get an Internal Server Error. Below is the MapServer Error Log file for both. I am out of ideas and any help or insight is much appreciated. Internal Server Error [Tue Nov 15 15:21:23 2011].248360 msDrawMap(): Layer 0 (fotest), 0.007s [Tue Nov 15 15:21:23 2011].248891 msDrawMap(): Layer 1 (fotest), 0.000s [Tue Nov 15 15:21:23 2011].270075 msDrawMap(): Drawing Label Cache, 0.003s [Tue Nov 15 15:21:23 2011].270088 msDrawMap() total time: 0.030s [Tue Nov 15 15:21:23 2011].331671 msSaveImage() total time: 0.062s [Tue Nov 15 15:21:23 2011].335688 msSaveImage() total time: 0.002s [Tue Nov 15 15:21:23 2011].360078 msSaveImage() total time: 0.021s [Tue Nov 15 15:21:23 2011].361651 mapserv request processing time (loadmap not incl.): 0.122s [Tue Nov 15 15:21:23 2011].361661 msFreeMap(): freeing map at 0x668900. [Tue Nov 15 15:21:23 2011].362122 freeLayer(): freeing layer at 0x670e10. [Tue Nov 15 15:21:28 2011].104416 freeLayer(): freeing layer at 0x7fff030e0ad0. Successful Query [Tue Nov 15 15:22:22 2011].104410 msDrawMap(): Layer 0 (fotest), 0.007s [Tue Nov 15 15:22:22 2011].104949 msDrawMap(): Layer 1 (fotest), 0.000s [Tue Nov 15 15:22:22 2011].125857 msDrawMap(): Drawing Label Cache, 0.003s [Tue Nov 15 15:22:22 2011].125869 msDrawMap() total time: 0.031s [Tue Nov 15 15:22:22 2011].184217 msSaveImage() total time: 0.058s [Tue Nov 15 15:22:22 2011].188075 msSaveImage() total time: 0.002s [Tue Nov 15 15:22:22 2011].212534 msSaveImage() total time: 0.022s [Tue Nov 15 15:22:22 2011].214087 mapserv request processing time (loadmap not incl.): 0.119s [Tue Nov 15 15:22:22 2011].214097 msFreeMap(): freeing map at 0x668900. [Tue Nov 15 15:22:22 2011].214668 freeLayer(): freeing layer at 0x670e10. [Tue Nov 15 15:22:25 2011].736672 freeLayer(): freeing layer at 0x7fff3e289d90. [Tue Nov 15 15:22:25 2011].737327 msDrawMap(): Layer 0 (fotest), 0.005s [Tue Nov 15 15:22:25 2011].737607 msDrawMap(): Layer 1 (fote st), 0.000s [Tue Nov 15 15:22:25 2011].758983 msDrawMap(): Drawing Label Cache, 0.003s [Tue Nov 15 15:22:25 2011].758996 msDrawMap() total time: 0.028s [Tue Nov 15 15:22:25 2011].778785 msSaveImage() total time: 0.020s [Tue Nov 15 15:22:25 2011].782604 msSaveImage() total time: 0.002s [Tue Nov 15 15:22:25 2011].806905 msSaveImage() total time: 0.021s [Tue Nov 15 15:22:25 2011].807766 mapserv request processing time (loadmap not incl.): 0.077s [Tue Nov 15 15:22:25 2011].80 msFreeMap(): freeing map at 0x668e00. [Tue Nov 15 15:22:25 2011].808246 freeLayer(): freeing layer at 0x671310. Thanks EW ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] tileindex query
Hello, After two weeks of working on querying vector layers displayed by a tileindex I have still not made any progress. I have tried every variation of layer definition including connectiontype ogr. I have updated my gdal, ogr libraries and have tested on MapServer 565 and 601 both. I have tried different shapefiles and different shapefile combinations both with and with .qix files. I've done this in the past with great success on MapServer 410 running on a red hat box. We are now running in production, MapServer 565 on SUSE 10 and I'm starting to wonder if that isn't the problem. As I said before the query results seem to be random. Sometimes successful but most of the time I get an Internal Server Error. Below is the MapServer Error Log file for both. I am out of ideas and any help or insight is much appreciated. Internal Server Error [Tue Nov 15 15:21:23 2011].248360 msDrawMap(): Layer 0 (fotest), 0.007s [Tue Nov 15 15:21:23 2011].248891 msDrawMap(): Layer 1 (fotest), 0.000s [Tue Nov 15 15:21:23 2011].270075 msDrawMap(): Drawing Label Cache, 0.003s [Tue Nov 15 15:21:23 2011].270088 msDrawMap() total time: 0.030s [Tue Nov 15 15:21:23 2011].331671 msSaveImage() total time: 0.062s [Tue Nov 15 15:21:23 2011].335688 msSaveImage() total time: 0.002s [Tue Nov 15 15:21:23 2011].360078 msSaveImage() total time: 0.021s [Tue Nov 15 15:21:23 2011].361651 mapserv request processing time (loadmap not incl.): 0.122s [Tue Nov 15 15:21:23 2011].361661 msFreeMap(): freeing map at 0x668900. [Tue Nov 15 15:21:23 2011].362122 freeLayer(): freeing layer at 0x670e10. [Tue Nov 15 15:21:28 2011].104416 freeLayer(): freeing layer at 0x7fff030e0ad0. Successful Query [Tue Nov 15 15:22:22 2011].104410 msDrawMap(): Layer 0 (fotest), 0.007s [Tue Nov 15 15:22:22 2011].104949 msDrawMap(): Layer 1 (fotest), 0.000s [Tue Nov 15 15:22:22 2011].125857 msDrawMap(): Drawing Label Cache, 0.003s [Tue Nov 15 15:22:22 2011].125869 msDrawMap() total time: 0.031s [Tue Nov 15 15:22:22 2011].184217 msSaveImage() total time: 0.058s [Tue Nov 15 15:22:22 2011].188075 msSaveImage() total time: 0.002s [Tue Nov 15 15:22:22 2011].212534 msSaveImage() total time: 0.022s [Tue Nov 15 15:22:22 2011].214087 mapserv request processing time (loadmap not incl.): 0.119s [Tue Nov 15 15:22:22 2011].214097 msFreeMap(): freeing map at 0x668900. [Tue Nov 15 15:22:22 2011].214668 freeLayer(): freeing layer at 0x670e10. [Tue Nov 15 15:22:25 2011].736672 freeLayer(): freeing layer at 0x7fff3e289d90. [Tue Nov 15 15:22:25 2011].737327 msDrawMap(): Layer 0 (fotest), 0.005s [Tue Nov 15 15:22:25 2011].737607 msDrawMap(): Layer 1 (fotest), 0.000s [Tue Nov 15 15:22:25 2011].758983 msDrawMap(): Drawing Label Cache, 0.003s [Tue Nov 15 15:22:25 2011].758996 msDrawMap() total time: 0.028s [Tue Nov 15 15:22:25 2011].778785 msSaveImage() total time: 0.020s [Tue Nov 15 15:22:25 2011].782604 msSaveImage() total time: 0.002s [Tue Nov 15 15:22:25 2011].806905 msSaveImage() total time: 0.021s [Tue Nov 15 15:22:25 2011].807766 mapserv request processing time (loadmap not incl.): 0.077s [Tue Nov 15 15:22:25 2011].80 msFreeMap(): freeing map at 0x668e00. [Tue Nov 15 15:22:25 2011].808246 freeLayer(): freeing layer at 0x671310. Thanks EW ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] tileindex shptree
Hello, After further investigation of this tileindex error issue I have seemed to narrow it down to the query map not being able to resolve something with the tileindex. If I comment the query map definition out then all queries of the tileindex work fine. I'm not sure if this is a bug or an issue with my query map definition. Advice and/or comments would be greatly appreciated. Thanks EW On 10/28/2011 at 3:31 PM, in message CA+YzLBdmmvztPpkRL1D=u5gc09zhdyo_7hmydrweuuoyjai...@mail.gmail.com, Frank Warmerdam warmer...@pobox.com wrote: Eric, Do things fail consistently fora given request? I would be willing to do some examination of this problem this evening (pacific time) if you can provide a canned demonstration of the issue (mapfile+tileindex+query). I should be able to fake the data referred to by the tileindex if necessary. I don't feel that adding a spatial index (.qix) is the right solution. Something is either wrong with your tileindex or with mapserver (IMHO). Best regards, On Fri, Oct 28, 2011 at 2:09 PM, Eric Weisbender weisb...@wapa.gov wrote: Hello, We are using a tileindex layer to draw multiple county parcel data layers. For some reason the query of these layers is either hit or miss. Sometimes it returns a query. Other times a query returns Invalid field index 0 from the error file defined in the mapfile. And the third query result I'm getting is Internal Server Error from I assume apache. These results are all on the same data indexed by this one tileindex layer. Would it help if I built a shptree qix file and do I just do that for the tileindex file or all file the tileindex file is pointing to. I have wasted two day's on this and am completely open to any and all idea's. Thanks in advance. EW ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -- ---+-- I set the clouds in motion - turn up | Frank Warmerdam, warmer...@pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush| Geospatial Software Developer ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] tileindex shptree
Hello, We are using a tileindex layer to draw multiple county parcel data layers. For some reason the query of these layers is either hit or miss. Sometimes it returns a query. Other times a query returns Invalid field index 0 from the error file defined in the mapfile. And the third query result I'm getting is Internal Server Error from I assume apache. These results are all on the same data indexed by this one tileindex layer. Would it help if I built a shptree qix file and do I just do that for the tileindex file or all file the tileindex file is pointing to. I have wasted two day's on this and am completely open to any and all idea's. Thanks in advance. EW ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] Chart Layers
Is it possible to label and query a chart layer. If so how and is there documentation on this. Thanks EW ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] MapServer GPS Tracking
Can anyone point me to documentation / code on GPS Tracking with MapServer. Thanks EW ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] numeric sort of query results?
Hello, I would like to an on the fly sort a list of numeric values return when querying a layer in MapServer. I've been looking at the javascript .sort() function but can't seem to get my returned query values all in one array. Any idea's and or help would be greatly appreciated. Thanks EW ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] nquery and getfeatureinfo
Does nquery execute a getfeatureinfo request on wms layer? ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] Dynamic Layer name in Legend
How would you dynamically generate a layer name in the map legend with use input or url substitutions. Right know I imagine it looking something like this... CLASS NAME Entered Point'%[xytext]' SYMBOL xsymbol COLOR 0 0 0 SIZE 12 but is obviously it does not work... this is just a excerpt from the layer def. Any help is greatly appreciated. Thanks, EW ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] embed reference map
Is there a way to embed the Mapserver reference map like you can the legend. Thanks EW ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] Studio - admin tool for MapServer
Hi With this email we're announcing the first release of Studio, an admin tool for MapServer. Studio basically allows editing MapServer Mapfiles, using an easy-to-use web-based interface. Relevant links: - Google Group http://groups.google.com/group/studio-discuss - Documentation http://camptocamp.github.com/Studio/ - Demo http://demo.mapfish.org/studio/ - Code base https://github.com/camptocamp/Studio - Studio on PyPI http://pypi.python.org/pypi/Studio Instructions for installing Studio are provided in the documentation at http://camptocamp.github.com/Studio/installation_guide.html. We at Camptocamp started working on Studio two years ago, but, for various reasons, weren't able to make an actual release of Studio at the time. With this 0.5 release we want to measure the interest for such a tool; we know there's still work to be done before reaching a 1.0 release. We're therefore encouraging interested folks to test Studio, sign up to the Google Group, and provide feedback. Thanks, -- Eric Lemoine Camptocamp France SAS Savoie Technolac, BP 352 73377 Le Bourget du Lac, Cedex Tel : 00 33 4 79 44 44 96 Mail : eric.lemo...@camptocamp.com http://www.camptocamp.com ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] REST and SOAP in Mapserver
Is it possible to consume REST and/or SOAP services in Mapserver somewhat like WMS and how? ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Connecting to remote MapServer WMS/WMF layers using PHP/OpenLayers
Thomas,I have looked at that code, but to no avail. If I re-use that code almost verbatim, changing the js/css/image/etc. paths, it still fails... as seen in the following link:http://loscabosproperties.mx/geoserver/catastro.phpGere is the _javascript_:http://loscabosproperties.mx/geoserver/visor.jsOn Jan 22, 2011, at 9:55 AM, Thomas Gratier wrote:Hello,Look on the code behind this page http://www.catastroloscabos.gob.mx/Catastro/visor/visor.html.It works with Openlayers and connect to the service and the layer you're looking for. RegardsThomasGGIS specialist ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] Connecting to remote MapServer WMS/WMF layers using PHP/OpenLayers
Hello,I am attempting to connect to a remote MapServer(http://www.catastroloscabos.gob.mx/cgi-bin/mapserv.fcgi?map=/home/juribe/webcatastro/catastro.map) and retrieve the respective WMS layers. However, I am unable to do so for some reason.http://loscabosproperties.mx/geoserver/wms.pngI get the result in XML format, and the map is not displayed.The remote MapServer server is located at:http://www.catastroloscabos.gob.mx/cgi-bin/mapserv.fcgi?map=/home/juribe/webcatastro/catastro.mapIn my PHP/OpenLayers doc/code, i have this: var wmsUrl2 = "http://www.catastroloscabos.gob.mx/cgi-bin/mapserv.fcgi"; var wms2 = new OpenLayers.Layer.WMS("WMS2", wmsUrl2, { map: '/home/juribe/webcatastro/catastro.map', //layers: 'p', //map_imagetype: 'jpg' SERVICE: 'WMS', VERSION: '1.1.1', REQUEST: 'GetCapabilities' }, {singleTile: true, isBaseLayer: false}); map.addLayer(wms2);Any help would be appreciated. Thanks! ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] SUSE 10 and GDAL with MrSID
Hello, I am looking for some good documentation on compiling GDAL 1.6 or 1.7 with MrSID capabilities on a SUSE 10 service pack3 64 bit box. Thanks in advance for your help. EW ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] GDAL with MrSID
Where can I find a version of GDAL with MrSID capablities or do I have to recompile my existing GDAL with the MrSID sdk. Thanks, EW ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] MrSID How To
Does anyone have any how to or layer definition documentation for MrSID's in MapServer. Thanks, EW ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] Query data in tileindex problem
I'm drawing county parcel data using a tileindex layer definition that points to the parcel polys. When I Query a parcel I get the following error. Failed to draw layer named 'parcel' msDBFReadAttribute(): DBASE file error. Invalid field index 0. We just upgraded to Mapserver 5.6.3 from 4.10 where it was working fine. Any help or ideas would be greatly appreciated. Thanks, EW ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] Symbol not transparent in legend
Hi, We've just upgraded to MapServer 5.6.3 and the background of my transparent pixmap png's are transparent on the map but not in the legend. In the layer definition I have transparency set to alpha and I tried opacity with the same result. Any help/ideas would be greatly appreciated. Thanks EW ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
RE: [mapserver-users] Tiger Line Style File
I have the Tiger Line files. I would like a style definition for the Tiger Line files for my map file. I'm just trying to save some time not defining them my self. Thanks, EW ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] Tiger Line Style File
Does anyone have TIGER Line class styles defined in a map file they would be willing to share. Thanks, EW ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
RE: [mapserver-users] wms layer query
Thanks Dave, I have tried a direct getFeatureInfo request and it works great... http://rmgsc.cr.usgs.gov/arcgis/services/nhss_haz/MapServer/WMSServer?service=WMSversion=1.1.1request=GetFeatureInfoSRS=EPSG:4326BBOX=-159.845000,20.809000,-72.815000,67.239000query_layers=1WIDTH=1HEIGHT=1X=1Y=1info_format=text/html;. When I query it through my MapServer I get the following error... msQueryByRect(): Search returned no results. No matching record(s) found. I am using MapServer Version 5.2.2 and the WMS service is a USGS service available in both WMS Version 1.1.1 and 1.3.0. I'm wondering if there are some compatibility issues and if anyone has a working example I might take a look at. Again, thanks in advance. EW Fawcett, David (MPCA) david.fawc...@state.mn.us 5/10/2010 7:33 AM Have you tried a direct getFeatureInfo request from a browser? David. -Original Message- From: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Eric Weisbender Sent: Friday, May 07, 2010 2:19 PM To: mapserver-users@lists.osgeo.org Subject: [mapserver-users] wms layer query Hello, I have a wms layer defined in my map file coming from a USGS service that is supposed to be queryable but when I query it I get nothing in return. It draws fine and the GetCapabilities request says Layer queryable=1. I wondering if it's my layer definition or if you just can't do this in basic mapserver. Below is my layer def and any help is beer worthy. Thanks in advance. LAYER NAME firetest METADATA wms_srs EPSG:4326 wms_name1 wms_server_version 1.1.1 wms_format image/png wms_title 1 wfs_title 1 wms_metadataurl_format text/html gml_include_items all wms_include_items all END STATUS OFF TYPE RASTER #MINSCALE 3800 CONNECTIONTYPE WMS CONNECTION http://rmgsc.cr.usgs.gov/arcgis/services/nhss_haz/MapServer/WMSServer?service=WMSversion=1.1.1request=GetMaplayers=1styles=defaluttransparent=TRUEformat=image/png; PROJECTION init=epsg:4326 END CLASS NAME fire wms test KEYIMAGE '/data/gis/www/html/ms_common/fire.png' END TEMPLATE http://gis.hq.wapa.gov/ms_common/fires.html; HEADER http://gis.hq.wapa.gov/ms_common/fires_header.html; FOOTER http://gis.hq.wapa.gov/ms_common/fires_footer.html; TOLERANCE 10 END ___ 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] wms layer query
Hello, I have a wms layer defined in my map file coming from a USGS service that is supposed to be queryable but when I query it I get nothing in return. It draws fine and the GetCapabilities request says Layer queryable=1. I wondering if it's my layer definition or if you just can't do this in basic mapserver. Below is my layer def and any help is beer worthy. Thanks in advance. LAYER NAME firetest METADATA wms_srs EPSG:4326 wms_name1 wms_server_version 1.1.1 wms_format image/png wms_title 1 wfs_title 1 wms_metadataurl_format text/html gml_include_items all wms_include_items all END STATUS OFF TYPE RASTER #MINSCALE 3800 CONNECTIONTYPE WMS CONNECTION http://rmgsc.cr.usgs.gov/arcgis/services/nhss_haz/MapServer/WMSServer?service=WMSversion=1.1.1request=GetMaplayers=1styles=defaluttransparent=TRUEformat=image/png; PROJECTION init=epsg:4326 END CLASS NAME fire wms test KEYIMAGE '/data/gis/www/html/ms_common/fire.png' END TEMPLATE http://gis.hq.wapa.gov/ms_common/fires.html; HEADER http://gis.hq.wapa.gov/ms_common/fires_header.html; FOOTER http://gis.hq.wapa.gov/ms_common/fires_footer.html; TOLERANCE 10 END ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] query multiple layers
I am querying one specific layer and values from that layer using qlayer, qitem, and qstring. e.g. qlayer=tlineqitem=nameqsting=happyjack. My questions would be how to do this on 2 specific layers at the same time/same query. Thanks, EW ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] html query templates
I am trying to calculate the sum of several numeric values returned in a query template. Is there a cgi variable for this or a way to distinguish say the first [length] of a line segment returned as apposed to subsequent [length] values returned for the same poly line shape. Eric ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] Mapserver Dbox Draw Map
I'm Using Mapserver Dbox and was wondering if there was a function that would keep the map from redrawing when I click on it. Any Ideas would be greatly appreciated. Thanks in advance. EW ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] mapfile web object error
Steve, I am trying to pass the error.html page and error massage as a string to Mapserver and redirect the mapfile on the fly. Below is the code that I assumed would work but doesn't, I get a Unknown Identifier error. Is this possible and if so what is wrong with my code string. input type=hidden name=map_web value=error /data/gis/www/html/error.html?message=[errmsg_esc]. Thanks, EW Steve Lime steve.l...@dnr.state.mn.us 11/6/2009 2:34 PM Your error HTML page is not a template, MapServer doesn't process it. Rather it just redirects users to it. As I mentioned you can customize the URL redirected to by passing additional information like the error message generated by MapServer. In your error page you'd have to use javascript or whatever to pluck that info off the query string and display it on your page. This is totally outside MapServer. If your error page was a PHP page you could do it there. Does that make sense? Steve On 11/6/2009 at 2:03 PM, in message 4af41e87.ced1.00d...@wapa.gov, Eric Weisbender weisb...@wapa.gov wrote: I think I understand, but in my error html page do I call it as a veriable like ... input type=text name=errmsg_esc value=[errmsg_esc] or input type=text name=message value=[message] or is there some other way to make it show up on the error.html page? EW Steve Lime steve.l...@dnr.state.mn.us 11/6/2009 11:36 AM It's basically the text you'd see in a standard error. You have the opportunity to wrap it in another look feel, somehow parse it and write your own or even add to it. Steve On 11/6/2009 at 11:47 AM, in message 4af3fed6.ced1.00d...@wapa.gov, Eric Weisbender weisb...@wapa.gov wrote: Steve, This is exactly what I am looking for. What would the html string look like to display it in my error page. Thanks a million. EW Steve Lime steve.l...@dnr.state.mn.us 11/6/2009 10:33 AM There ERROR parameter has no effect in mapscript unless you choose to do so yourself. In that environment you have total control over error messages. The CGI is a different story. In that environment the ERROR parameter is used. It's also treated like a template so you can pass the MapServer error buffer on to your default error page as an argument. For example you could do something like: WEB ... ERROR 'http://my.site.com/error.html?message=[errmsg_esc]' END and then in your page you could display the message or parse it to display a custom message. Is that what you're after? Steve On 11/6/2009 at 11:08 AM, in message 4af3f582.ced1.00d...@wapa.gov, Eric Weisbender weisb...@wapa.gov wrote: How can I include the default web error object message in my custom web error page. In the map file under the Web object there is a place to redirect/create your own error page. If you don't specify the error html page you get the standard mapserver error. This is in all versions of mapserver and it doesn't matter if you are running cgi or mapscript because it a map file web object definition. Any help would be appreciated. Thanks, EW ___ 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] Metadata.dim DIMAP
Hello, I'm not able to use directly Spot Image ( metadata.dim + IMAGERY.TIF) in Mapserver. Nevertheless, gdalinfo --formats told me in supported formts list : DIMAP(ro): SPOT DIMAP. I tried to use gcps2wld.py IMAGERY.TIF IMAGERY.tfw or gcps2wld.py METADATA.DIM IMAGERY.tfw. Both tfw files give me, when used in Mapserver, 50 meters images too much in Est. Any idea ? Thanks Eric ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] Using Spot DIMAP Format in Mapserver
Hello, I'm trying to use Dimap format from Spot Image( metadata.dim) in my mapfile but my raster is always bad located. METADATA.DIM opens directly in Qgis is well placed and well oriented. The correspondant IMAGERY.TIF is well placed but not well oriented. I'm not able to create the worldfile (pb to catch orientation info) for my tif file so I want to use directly dimap format but I don't understand why metadata.dim is not well interpreted by Mapserver. My Mapfile contains: TYPE RASTER DATA country/METADATA.DIM PROJECTION 'proj=longlat' 'ellps=WGS84' 'datum=WGS84' 'no_defs' END Gdalinfo on IMAGERY.TIF: Driver: GTiff/GeoTIFF Files: IMAGERY.TIF Size is 3000, 3000 Coordinate System is: GEOGCS[WGS 84, DATUM[WGS_1984, SPHEROID[WGS 84,6378137,298.2572235630016, AUTHORITY[EPSG,7030]], AUTHORITY[EPSG,6326]], PRIMEM[Greenwich,0], UNIT[degree,0.0174532925199433], AUTHORITY[EPSG,4326]] Origin = (11.795597991857200,-4.699265933053320) Pixel Size = (0.7078200,-0.7078200) Metadata: AREA_OR_POINT=Point TIFFTAG_IMAGEDESCRIPTION=B3 B2 B1 B4 TIFFTAG_DATETIME=20090428 15:04:18 Image Structure Metadata: INTERLEAVE=BAND Corner Coordinates: Upper Left ( 11.7955980, -4.6992659) Lower Left ( 11.7955980, -4.9116119) Upper Right ( 12.0079440, -4.6992659) Lower Right ( 12.0079440, -4.9116119) Center ( 11.9017710, -4.8054389) Band 1 Block=3000x500 Type=Byte, ColorInterp=Red Band 2 Block=3000x500 Type=Byte, ColorInterp=Green Band 3 Block=3000x500 Type=Byte, ColorInterp=Blue Band 4 Block=3000x500 Type=Byte, ColorInterp=Undefined Gdalinfo on the METADATA.DIM of IMAGERY.TIF Driver: DIMAP/SPOT DIMAP Files: METADATA.DIM Size is 3000, 3000 Coordinate System is `' GCP Projection = GEOGCS[WGS 84,DATUM[WGS_1984,SPHEROID[WGS 84,6378137,298. 257223563,AUTHORITY[EPSG,7030]],AUTHORITY[EPSG,6326]],PRIMEM[Greenw ich ,0,AUTHORITY[EPSG,8901]],UNIT[degree,0.01745329251994328,AUTHORITY[EP SG, 9122]],AUTHORITY[EPSG,4326]] GCP[ 0]: Id=1, Info= (0.5,0.5) - (11.795633,-4.699301,0) GCP[ 1]: Id=2, Info= (2999.5,0.5) - (12.010877,-4.734618,0) GCP[ 2]: Id=3, Info= (0.5,2999.5) - (11.745949,-4.913964,0) GCP[ 3]: Id=4, Info= (2999.5,2999.5) - (11.961267,-4.949299,0) Metadata: JOB_ID=R2_CAT_090428123250353_1 PRODUCT_INFO=FORMOSAT-2 SCENE level 1A PRODUCT_TYPE=FORMOSAT-2 SCENE DATASET_PRODUCER_NAME=NSPO / Spot Image DATASET_PRODUCTION_DATE=2009-04-28 15:04:20.00 GRID_REFERENCE=0067-0481 SHIFT_VALUE=0 IMAGING_DATE=2006-02-28 IMAGING_TIME=08:57:15.197455 MISSION=FORMOSAT MISSION_INDEX=2 INSTRUMENT=RSI INSTRUMENT_INDEX=1 IMAGING_MODE=MS SCENE_PROCESSING_LEVEL=0 VIEWING_ANGLE_ALONG_TRACK=0.273794 VIEWING_ANGLE_ACROSS_TRACK=-3.151896 SATELLITE_INCIDENCE_ANGLE=3.611694 SATELLITE_AZIMUTH_ANGLE=98.138828 SUN_AZIMUTH=98.126829 SUN_ELEVATION=52.988591 REVOLUTION_NUMBER=09085 PROCESSING_LEVEL=1A GEOMETRIC_PROCESSING=SYSTEM RADIOMETRIC_PROCESSING=SYSTEM Corner Coordinates: Upper Left (0.0,0.0) Lower Left (0.0, 3000.0) Upper Right ( 3000.0,0.0) Lower Right ( 3000.0, 3000.0) Center ( 1500.0, 1500.0) Band 1 Block=3000x500 Type=Byte, ColorInterp=Red Band 2 Block=3000x500 Type=Byte, ColorInterp=Green Band 3 Block=3000x500 Type=Byte, ColorInterp=Blue Band 4 Block=3000x500 Type=Byte, ColorInterp=Undefined Thanks for all ERIC ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [MAPSERVER-USERS] Mapserver bug when generating a tiled map with MapFish
Hi. Do you have maxExtent set in your map options? OpenLayers shouldn't request tiles outside the max extent. If it does it's a bug in OpenLayers. Another guestion: what layer type do you use? Layer.MapServer or Layer.WMS? If you use the former, make mapserver work as a WMS server and try using Layer.WMS to see if that fixes the problem. Again the ideal would be some example so that we con easily reproduce your problem. Eric 2008/8/6, Pierre-Benoit Besse [EMAIL PROTECTED]: Unfortunately there is no connection to internet on the platform I develop on. All is done localy. I will try to be more precise. I am trying to display a shapefile representing the whole world (it's a shapefile from Global Insight plus if it helps). I use mapfish without 'singleTile: true' so the layer is generated by tiles. There is no problem in the beggining when the map is zoomed to max extent. The problem occurs when I begin zooming in and trying to display America/Asia. One of the colums of tiles is drawn across the -180°/+180° longitude line, and those tiles are generated entirely blank (white, not even transparent). When I get the properties of the image (right-click on the blank tile - Properties) and I search in the Location of the image I can find : mapext=179.296875+44.296875+*225.703125* +90.703125imgext=179.296875+44.296875+*225.703125*+90.703125 So I guess the problem comes from that, MapServer doesn't recognise longitude greater than 180 or lower than -180. If I'm right I would appreciate any hint on how to handle this... Otherwise it may be a mapfish issue, maybe mapfish should always generate tiles with borders right on -180 / +180. This is the case at the beggining, lef tile has mapext=90+0+180+90 and right tile has mapext=-180+0+-90+90. But whenever I begin zooming in it goes awry, the border of tiles is no longer right on -180/+180 and some tiles are generated white by MapServer. If someone needs more informations I'm ready to give it. Best regards, PB 2008/8/6 Eric Lemoine [EMAIL PROTECTED] On Wed, Aug 6, 2008 at 2:28 PM, Pierre-Benoit Besse [EMAIL PROTECTED] wrote: Isn't there anyone to help me with this ? 2008/8/4 Faldor [EMAIL PROTECTED] Hi all, I use Mapserver with mapfish for the client side to display shapefiles which I generated using ogr2ogr. The problem is when I try to display a tiled layer (mapfish singleTile property set to 'false'). Some tiles are generated by mapserver entirely blank ! After a few researches I think it is due to the fact that those tiles are extended across the -180°/+180° line. For exemple, here is the imgext property from one of the calls to MapServer which render a blank tile : imgext=178.59375+-1.40625+271.40625+91.40625 Do you know of a way to fix this ? This is not enough information for anyone to help you. Could you provide a link or a web page to help people see what's going on? -- Eric ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users