[mapserver-users] Re: got error in some pmapper_demodata as WMS
ups...you're right thanks for your reply... sorry for my stupid question... -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/got-error-in-some-pmapper-demodata-as-WMS-tp6950236p6950703.html Sent from the Mapserver - User mailing list archive at Nabble.com. ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] got error in some pmapper_demodata as WMS
Hi, Demo application must be using wrong name for the cities1000eu. Two things to do - Read from the Apache access.log file the failing WMS request. It is perhaps at /var/log/apache2 - The reason is probably that you have "ows_title" "cities1000" but the layer name is cities1000eu. With those settings the name that should be used in GetMap &LAYERS= is "cities1000". -Jukka Rahkonen- goldalworming wrote: > hi, I'm learning open layer and tried to use map server as wms service in my > ubuntu > in pmapper_demodata, 3 layers exist : countries, cities1000eu and rivers > my error log shows this error while I tried to accesing cities1000eu layers > but works fine in countries and rivers layer [Tue Nov 1 07:03:56 2011].166194 msWMSLoadGetMapParams(): WMS server error. Invalid layer(s) given in the LAYERS parameter. this is the mapfile LAYER NAME "countries" TYPE polygon DATA "countries" TRANSPARENCY 30 TEMPLATE void PROJECTION #"init=epsg:4326" "+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs no_defs" END METADATA "DESCRIPTION" "Countries" ## ADAPTED TO MULTILINGUAL SHAPEFILE "RESULT_FIELDS" "ISOCODE,@default:NAME_EN@de:NAME_DE@it:NAME_IT@fr:NAME_FR@br:NAME_BR@es:NAME_ES,@default:CAPITAL_EN@de:CAPITAL_DE@it:CAPITAL_IT@fr:CAPITAL_FR@br:CAPITAL_BR@es:CAPITAL_ES,AREA_KM2,POPULATION" "RESULT_HEADERS" "ISO Code,Name,Capital,Area,Population" "ows_title" "countries" "ows_enable_request" "*" "wms_srs" "EPSG:4326 EPSG:4030" END # Metadata CLASS Name 'Countries' COLOR 200 254 199 OUTLINECOLOR 0 0 0 END # Class END # Layer LAYER NAME "cities1eu" TYPE point DATA "cities1eu" TOLERANCE 6 TOLERANCEUNITS pixels LABELITEM "NAME" LABELMAXSCALE 800 TEMPLATE void PROJECTION #"init=epsg:4326" "+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs no_defs" END METADATA "DESCRIPTION" "Cities" "RESULT_FIELDS" "NAME, ISO2_CODE, POPULATION, GTOPO30" "RESULT_HEADERS" "Name,Country,Inhabitants,Altitude" "RESULT_HYPERLINK" "NAME" "LAYER_ENCODING" "UTF-8" "ows_title" "cities1000" "ows_enable_request" "*" "wms_srs" "EPSG:4326 EPSG:4030" END # Metadata CLASS NAME "> 1'000'000" EXPRESSION ([POPULATION] > 100) COLOR 255 0 0 OUTLINECOLOR 0 0 0 SYMBOL 'square' SIZE 9 LABEL POSITION Auto COLOR 0 0 150 BUFFER 2 TYPE truetype ENCODING "UTF-8" FONT FreeSans SIZE 8 MAXSIZE 9 #SIZE small END #Label END # Class CLASS NAME "500'000 - 1'000'000" EXPRESSION ([POPULATION] <= 100 AND [POPULATION] > 50) COLOR 255 0 0 SYMBOL 'circle' SIZE 8 LABEL POSITION Auto COLOR 0 0 150 BUFFER 2 TYPE truetype ENCODING "UTF-8" FONT FreeSans SIZE 8 MAXSIZE 9 #SIZE small END #Label END # Class CLASS NAME "100'000 - 500'000" EXPRESSION ([POPULATION] <= 50 AND [POPULATION] > 10) COLOR 255 0 0 SYMBOL 'square' SIZE 5 END # Class CLASS NAME "50'000 - 100'000" EXPRESSION ([POPULATION] <= 10 AND [POPULATION] > 5) COLOR 0 0 0LAYER NAME "countries" TYPE polygon DATA "countries" TRANSPARENCY 30 TEMPLATE void PROJECTION #"init=epsg:4326" "+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs no_defs" END METADATA "DESCRIPTION" "Countries" ## ADAPTED TO MULTILINGUAL SHAPEFILE "RESULT_FIELDS" "ISOCODE,@default:NAME_EN@de:NAME_DE@it:NAME_IT@fr:NAME_FR@br:NAME_BR@es:NAME_ES,@default:CAPITAL_EN@de:CAPITAL_DE@it:CAPITAL_IT@fr:CAPITAL_FR@br:CAPITAL_BR@es:CAPITAL_ES,AREA_KM2,POPULATION" "RESULT_HEADERS" "ISO Code,Name,Capital,Area,Population" "ows_title" "countries" "ows_enable_request" "*" "wms_srs" "EPSG:4326 EPSG:4030" END # Metadata CLASS Name 'Countries' COLOR 200 254 199 OUTLINECOLOR 0 0 0 END # Class END # Layer LAYER NAME "cities1eu" TYPE point DATA "cities1eu" TOLERANCE 6 TOLERANCEUNITS pixels LABELITEM "NAME" LABELMAXSCALE 800 TEMPLATE void PROJECTION #"init=epsg:4326" "+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs no_defs" END METADATA "DESCRIPTION" "Cities" "RESULT_FIELDS" "NAME, ISO2_CODE, POPULATION, GTOPO30" "RESULT_HEADERS" "Name,Country,Inhabitants,Altitude" "RESULT_HYPERLINK" "NAME" "LAYER_ENCODING" "UTF-8" "ows_title" "cities1000" "ows_enable_request" "*" "wms_srs" "EPSG:4326 EPSG:4030" END # Metadata CLASS NAME "> 1'000'000" EXPRESSION ([POPULATION] > 100) COLOR 255 0 0 OUTLINECOLOR 0 0 0 SYMBOL 'square' SIZE 9 LABEL POSITION Auto COLOR 0 0 150 BUFFER 2 TYPE truetype ENCODING "UTF-8" FONT FreeSans SIZE 8 MAXSIZE 9 #SIZE small END #Label END # Class CLASS NAME "500'000 - 1'000'000" EXPRE
[mapserver-users] got error in some pmapper_demodata as WMS
hi, I'm learning open layer and tried to use map server as wms service in my ubuntu in pmapper_demodata, 3 layers exist : countries, cities1000eu and rivers my error log shows this error while I tried to accesing cities1000eu layers but works fine in countries and rivers layer [Tue Nov 1 07:03:56 2011].166194 msWMSLoadGetMapParams(): WMS server error. Invalid layer(s) given in the LAYERS parameter. this is the mapfile LAYER NAME "countries" TYPE polygon DATA "countries" TRANSPARENCY 30 TEMPLATE void PROJECTION #"init=epsg:4326" "+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs no_defs" END METADATA "DESCRIPTION" "Countries" ## ADAPTED TO MULTILINGUAL SHAPEFILE "RESULT_FIELDS" "ISOCODE,@default:NAME_EN@de:NAME_DE@it:NAME_IT@fr:NAME_FR@br:NAME_BR@es:NAME_ES,@default:CAPITAL_EN@de:CAPITAL_DE@it:CAPITAL_IT@fr:CAPITAL_FR@br:CAPITAL_BR@es:CAPITAL_ES,AREA_KM2,POPULATION" "RESULT_HEADERS" "ISO Code,Name,Capital,Area,Population" "ows_title" "countries" "ows_enable_request" "*" "wms_srs" "EPSG:4326 EPSG:4030" END # Metadata CLASS Name 'Countries' COLOR 200 254 199 OUTLINECOLOR 0 0 0 END # Class END # Layer LAYER NAME "cities1eu" TYPE point DATA "cities1eu" TOLERANCE 6 TOLERANCEUNITS pixels LABELITEM "NAME" LABELMAXSCALE 800 TEMPLATE void PROJECTION #"init=epsg:4326" "+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs no_defs" END METADATA "DESCRIPTION" "Cities" "RESULT_FIELDS" "NAME, ISO2_CODE, POPULATION, GTOPO30" "RESULT_HEADERS" "Name,Country,Inhabitants,Altitude" "RESULT_HYPERLINK" "NAME" "LAYER_ENCODING" "UTF-8" "ows_title" "cities1000" "ows_enable_request" "*" "wms_srs" "EPSG:4326 EPSG:4030" END # Metadata CLASS NAME "> 1'000'000" EXPRESSION ([POPULATION] > 100) COLOR 255 0 0 OUTLINECOLOR 0 0 0 SYMBOL 'square' SIZE 9 LABEL POSITION Auto COLOR 0 0 150 BUFFER 2 TYPE truetype ENCODING "UTF-8" FONT FreeSans SIZE 8 MAXSIZE 9 #SIZE small END #Label END # Class CLASS NAME "500'000 - 1'000'000" EXPRESSION ([POPULATION] <= 100 AND [POPULATION] > 50) COLOR 255 0 0 SYMBOL 'circle' SIZE 8 LABEL POSITION Auto COLOR 0 0 150 BUFFER 2 TYPE truetype ENCODING "UTF-8" FONT FreeSans SIZE 8 MAXSIZE 9 #SIZE small END #Label END # Class CLASS NAME "100'000 - 500'000" EXPRESSION ([POPULATION] <= 50 AND [POPULATION] > 10) COLOR 255 0 0 SYMBOL 'square' SIZE 5 END # Class CLASS NAME "50'000 - 100'000" EXPRESSION ([POPULATION] <= 10 AND [POPULATION] > 5) COLOR 0 0 0LAYER NAME "countries" TYPE polygon DATA "countries" TRANSPARENCY 30 TEMPLATE void PROJECTION #"init=epsg:4326" "+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs no_defs" END METADATA "DESCRIPTION" "Countries" ## ADAPTED TO MULTILINGUAL SHAPEFILE "RESULT_FIELDS" "ISOCODE,@default:NAME_EN@de:NAME_DE@it:NAME_IT@fr:NAME_FR@br:NAME_BR@es:NAME_ES,@default:CAPITAL_EN@de:CAPITAL_DE@it:CAPITAL_IT@fr:CAPITAL_FR@br:CAPITAL_BR@es:CAPITAL_ES,AREA_KM2,POPULATION" "RESULT_HEADERS" "ISO Code,Name,Capital,Area,Population" "ows_title" "countries" "ows_enable_request" "*" "wms_srs" "EPSG:4326 EPSG:4030" END # Metadata CLASS Name 'Countries' COLOR 200 254 199 OUTLINECOLOR 0 0 0 END # Class END # Layer LAYER NAME "cities1eu" TYPE point DATA "cities1eu" TOLERANCE 6 TOLERANCEUNITS pixels LABELITEM "NAME" LABELMAXSCALE 800 TEMPLATE void PROJECTION #"init=epsg:4326" "+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs no_defs" END METADATA "DESCRIPTION" "Cities" "RESULT_FIELDS" "NAME, ISO2_CODE, POPULATION, GTOPO30" "RESULT_HEADERS" "Name,Country,Inhabitants,Altitude" "RESULT_HYPERLINK" "NAME" "LAYER_ENCODING" "UTF-8" "ows_title" "cities1000" "ows_enable_request" "*" "wms_srs" "EPSG:4326 EPSG:4030" END # Metadata CLASS NAME "> 1'000'000" EXPRESSION ([POPULATION] > 100) COLOR 255 0 0 OUTLINECOLOR 0 0 0 SYMBOL 'square' SIZE 9 LABEL POSITION Auto COLOR 0 0 150 BUFFER 2 TYPE truetype ENCODING "UTF-8" FONT FreeSans SIZE 8 MAXSIZE 9 #SIZE small END #Label END # Class CLASS NAME "500'000 - 1'000'000" EXPRESSION ([POPULATION] <= 100 AND [POPULATION] > 50) COLOR 255 0 0 SYMBOL 'circle' SIZE 8 LABEL POSITION Auto COLOR 0 0 150 BUFFER 2 TYPE truetype ENCODING "UTF-8" FONT FreeSans SIZE 8 MAXSIZE 9 #SIZE small END #Label END # Class CLASS NAME "100'000 - 500'000" EXPRESSION ([POPULATION] <= 50 AND [
AW: [mapserver-users] Smuggling vendor parameters into WMSOnlineResource
Hi, You can build your own template. In your mapfile insert TEMPLATE 'path\templates\openlayers_lh.html' And request the map http://[version6]/mapserv.exe?map=brd.map&mode=browse&template=openlayers_lh &layers=Kreise You have to take an other name than openlayers.html, to get your template. Arnd -Ursprüngliche Nachricht- Von: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] Im Auftrag von Rahkonen Jukka Gesendet: Montag, 31. Oktober 2011 22:12 An: mapserver-users@lists.osgeo.org Betreff: [mapserver-users] Smuggling vendor parameters into WMSOnlineResource Hi, I have been playing with vendor parameters with some WMS services for making layers more dynamic. For example http://188.64.1.61/cgi-bin/ms_ows?REQUEST=GetMap&SERVICE=WMS&VERSION=1.1.1&W IDTH=563&HEIGHT=437&LAYERS=default,osm_pisteet&TRANSPARENT=TRUE&FORMAT=image /png&BBOX=-369151.98300283286,6597900.0,1511076.628895184,8057331.444759207& SRS=EPSG:3067&STYLES=&sql=highway='bus_stop' Problem is that properly behaving WMS clients are taking the GetMap URL from the GetgCapabilities document and that is fixed by the wms_onliresource metadata in a mapfile. Some WMS clients (at least OpenJUMP, QGis and Kosmo) can be configured to add the extra parameters also into GetMaps but some others don't. The OpenLayers demo client that comes with Mapserver 6.0.1 is one of those. It creates the demo layer with this code: var mslayer = new OpenLayers.Layer.MapServer( "MapServer Layer", "[mapserv_onlineresource]", {layers: '[layers]'}, {singleTile: "true", ratio:1} ); Does anybody know a simple way for transferring the same vendor parameters which are used in the GetCapabilities request into the GetMap OnlineResource element of the response? -Jukka Rahkonen-___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] Smuggling vendor parameters into WMS OnlineResource
Hi, I have been playing with vendor parameters with some WMS services for making layers more dynamic. For example http://188.64.1.61/cgi-bin/ms_ows?REQUEST=GetMap&SERVICE=WMS&VERSION=1.1.1&WIDTH=563&HEIGHT=437&LAYERS=default,osm_pisteet&TRANSPARENT=TRUE&FORMAT=image/png&BBOX=-369151.98300283286,6597900.0,1511076.628895184,8057331.444759207&SRS=EPSG:3067&STYLES=&sql=highway='bus_stop' Problem is that properly behaving WMS clients are taking the GetMap URL from the GetgCapabilities document and that is fixed by the wms_onliresource metadata in a mapfile. Some WMS clients (at least OpenJUMP, QGis and Kosmo) can be configured to add the extra parameters also into GetMaps but some others don't. The OpenLayers demo client that comes with Mapserver 6.0.1 is one of those. It creates the demo layer with this code: var mslayer = new OpenLayers.Layer.MapServer( "MapServer Layer", "[mapserv_onlineresource]", {layers: '[layers]'}, {singleTile: "true", ratio:1} ); Does anybody know a simple way for transferring the same vendor parameters which are used in the GetCapabilities request into the GetMap OnlineResource element of the response? -Jukka Rahkonen-___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] Re: Problem with legend url
Figured it out. I forgot to add a "NAME" for each class. -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Problem-with-legend-url-tp6948935p6949394.html Sent from the Mapserver - User mailing list archive at Nabble.com. ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] Problem with legend url
I am trying to get the legend image from the url below: http://127.0.0.1/cgi-bin/mapserv.exe?map=%2Fms4w%2Fapps%2Fftmagisapp_v2%2Fmaps%2F%2Fshapefiles%2Fftma_water_features.map&layers=ftma_water_features&mode=legend&mapext=1280723.5701179+416135+1289860.4298821+420983&imgext=1280723.5701179+416135+1289860.4298821+420983&map_size=2157+1144&imgx=1078.5&imgy=572&imgxy=2157+1144 Why don't I get an image when I issue the above url? I checked all the symbols to make sure it is finding them in my symbol file. Below is the map file it is referencing: [code] MAP NAME 'ftma_water_features' SIZE 800 650 STATUS ON EXTENT 1572300 4532647 1629466 4588139 UNITS FEET TRANSPARENT TRUE INCLUDE "../geomoose_globals.map" QUERYMAP STATUS ON STYLE SELECTED END WEB INCLUDE "../temp_directory.map" END LEGEND STATUS ON LABEL TYPE TRUETYPE FONT vera_sans SIZE 8 COLOR 0 0 0 END END LAYER # ftma_water_features NAME 'ftma_water_features' DATA './ftma_water_features.shp' STATUS DEFAULT TYPE POINT TOLERANCE 1 CLASSITEM 'STRCT_TYPE' CLASS EXPRESSION "Air Relief Valve" STYLE SYMBOL "right_hole" SIZE15 COLOR0 0 0 OUTLINECOLOR 0 0 0 OFFSET -13 0 END STYLE SYMBOL "left_hole" SIZE15 COLOR0 218 255 OUTLINECOLOR 0 0 0 END END CLASS EXPRESSION "Blowoff" STYLE SYMBOL "circle" SIZE12 COLOR0 218 255 OUTLINECOLOR 0 0 0 END STYLE SYMBOL "circle" SIZE6 COLOR0 218 255 OUTLINECOLOR 0 0 0 END END CLASS EXPRESSION "Check Valve" STYLE SYMBOL "circle" SIZE10 COLOR0 183 0 OUTLINECOLOR 0 0 0 END STYLE SYMBOL "vert_line" SIZE10 COLOR0 0 0 END END CLASS EXPRESSION "Reducer" STYLE SYMBOL "circle" SIZE10 COLOR0 218 255 OUTLINECOLOR 0 0 0 END STYLE SYMBOL "triangle" SIZE7 COLOR0 218 255 OUTLINECOLOR 0 0 0 END END CLASS EXPRESSION "PRV" STYLE SYMBOL "square" SIZE10 COLOR0 218 255 OUTLINECOLOR 0 0 0 END END CLASS EXPRESSION "Vault" STYLE SYMBOL "square" SIZE10 COLOR0 218 255 OUTLINECOLOR 0 0 0 END END CLASS EXPRESSION "FSV" STYLE SYMBOL "circle" SIZE10 COLOR255 128 165 OUTLINECOLOR 0 0 0 END END CLASS
VS: [mapserver-users] WFS with Filter
Hi, Seems to work with my Mapserver 6.0.1 with PostGIS data. I do not have shapefile layers to compare with. http://188.64.1.61/cgi-bin/osm-mapserver_i?SERVICE=WFS&VERSION=1.0.0&REQUEST=GetFeature&TYPENAME=POI_pub_restaurant&SRSNAME=EPSG:4326&maxfeatures=10&FILTER=%3Cogc%3AFilter%3E%3Cogc%3APropertyIsLike+wildCard%3D%27%2A%27+singleChar%3D%27.%27+escape%3D%27%21%27%3E%3Cogc%3APropertyName%3Ename%3C%2Fogc%3APropertyName%3E%3Cogc%3ALiteral%3E%2ABossa%2A%3C%2Fogc%3ALiteral%3E%3C%2Fogc%3APropertyIsLike%3E%3C%2Fogc%3AFilter%3E SRSNAME part does not work but is is not supported by WFS 1.0.0 so do not bother about that. -Jukka Rahkonen- Lähettäjä: mapserver-users-boun...@lists.osgeo.org [mapserver-users-boun...@lists.osgeo.org] käyttäjän Jörg Thomsen [j...@mapmedia.de] puolesta Lähetetty: 31. lokakuuta 2011 18:14 Vastaanottaja: mapserver-users@lists.osgeo.org Aihe: [mapserver-users] WFS with Filter Hello, I have found some older list-entries concerning this topic, but no final solution. I am using MapServer version 6.0.1 as WFS, the getFeature returns a nice XML I can use e.g. in QGIS, so everything seems to be fine. But when I use a filter in my request like > http://xxx/cgi-bin/mapserv?map=/data/UMN/bundeslaender.map&SERVICE=WFS&VERSION=1.0.0&REQUEST=GetFeature&TYPENAME=Bundeslaender_1000&SRSNAME=EPSG:4326&; > FILTER=%20%3Cogc:Filter%3E%3Cogc:PropertyIsLike%20wildCard=%27*%27%20singleChar=%27.%27%20escape=%27!%27%3E%3Cogc:PropertyName%3Ebundesland%3C/ogc:PropertyName%3E%3Cogc:Literal%3E*BRANDENBURG*%3C/ogc:Literal%3E%3C/ogc:PropertyIsLike%3E%3C/ogc:Filter%3E I get the following answer: > > > missing > > Using the same PG-DB with Mapserver 5.6 the request works. In former threads I found the questions if it does work with geodata based on shape-files: 1. it dos not 2. I have to use PG Anyone any idea? Jörg ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] WFS with Filter
Hello, I have found some older list-entries concerning this topic, but no final solution. I am using MapServer version 6.0.1 as WFS, the getFeature returns a nice XML I can use e.g. in QGIS, so everything seems to be fine. But when I use a filter in my request like > http://xxx/cgi-bin/mapserv?map=/data/UMN/bundeslaender.map&SERVICE=WFS&VERSION=1.0.0&REQUEST=GetFeature&TYPENAME=Bundeslaender_1000&SRSNAME=EPSG:4326&; > FILTER=%20%3Cogc:Filter%3E%3Cogc:PropertyIsLike%20wildCard=%27*%27%20singleChar=%27.%27%20escape=%27!%27%3E%3Cogc:PropertyName%3Ebundesland%3C/ogc:PropertyName%3E%3Cogc:Literal%3E*BRANDENBURG*%3C/ogc:Literal%3E%3C/ogc:PropertyIsLike%3E%3C/ogc:Filter%3E I get the following answer: > > > missing > > Using the same PG-DB with Mapserver 5.6 the request works. In former threads I found the questions if it does work with geodata based on shape-files: 1. it dos not 2. I have to use PG Anyone any idea? Jörg ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] Possible to use JavaScript code in a MapServer template?
Is it possible to write and execute JavaScript within a MapServer template? What I'd like to do, when a ProcessTemplate is called for a certain layer, I would like to check item values. If item values equal a certain value, write something to the output. It would seem possible since a template is an HTML file, but I'm just not sure how to do it, or if it's possible. ___ 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 >>> , Frank >>> Warmerdam 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 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
Re: [mapserver-users] Re: Problems with Mapserver as WMS service (jpeg)
Hi, Here is the mapfile we used until we updated into Mapserver 6.0. After the update we are not allowed to use ECW-images as input without paying the ECW JPEG2000 SDK licence fee for Erdas so we converted all the ecw images we had into JPEG compressed geotiffs. LAYER NAME "Landsat742" STATUS ON DATA "E:\Data\Landsat742.ecw" TYPE RASTER # DEBUG 5 METADATA "wms_title""Landsat" "wms_srs" "EPSG:2393 EPSG:3067 EPSG:4326 EPSG:900913" END PROJECTION "init=epsg:2393" END END Your layer definitions look basically similar. First thing, as usual, is to add DEBUG 5 and have a look what you'll get into MS_ERRORFILE. Your mapfile is probably OK but it is a bit hard to read for me. I would suggest you to rip off all the non-compulsory stuff and leave one of your working vector layers to start with. Add then a new geotiff raster layer and make it also to work. After that you can change to mapfile to use your ecw file instead of geotiff. Using STATUS OFF is playing with fire. I suppose that if your layers work with that setting it is close to a bug in Mapserver. -Jukka Rahkonen- > -Alkuperäinen viesti- > Lähettäjä: mapserver-users-boun...@lists.osgeo.org > [mailto:mapserver-users-boun...@lists.osgeo.org] Puolesta Chrishelring > Lähetetty: 31. lokakuuta 2011 13:54 > Vastaanottaja: mapserver-users@lists.osgeo.org > Aihe: [mapserver-users] Re: Problems with Mapserver as WMS > service (jpeg) > > Hi, > > I just checked to be sure, but the status is also set to off > in the layers > that are working. > > Perhaps I should point out that the layers that are working > is using data > from our postgresql db but the layer not working is using a ECW file > directly. > > /Christian > > -- > View this message in context: > http://osgeo-org.1803224.n2.nabble.com/Problems-with-Mapserver > -as-WMS-service-jpeg-tp6941932p6947905.html > Sent from the Mapserver - User mailing list archive at Nabble.com. > ___ > mapserver-users mailing list > mapserver-users@lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] Re: Problems with Mapserver as WMS service (jpeg)
Hi, I just checked to be sure, but the status is also set to off in the layers that are working. Perhaps I should point out that the layers that are working is using data from our postgresql db but the layer not working is using a ECW file directly. /Christian -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Problems-with-Mapserver-as-WMS-service-jpeg-tp6941932p6947905.html Sent from the Mapserver - User mailing list archive at Nabble.com. ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users