From aperi2007 at gmail.com Tue May 1 02:25:36 2012 From: aperi2007 at gmail.com (Andrea Peri) Date: Tue, 1 May 2012 11:25:36 +0200 Subject: [mapserver-users] GetLegendGraphic, is sld_version mandatory in 1.3.0 ? Message-ID: Hi, I'm testing the trunk version of MapServer. I try a getlegendgraphics call using this sintax: http://localhost/com.rt.wms.RTmap/wms?map=test.map&SERVICE=WMS&REQUEST=GetLegendGraphic&VERSION=1.3.0&FORMAT=image/png&WIDTH=20&HEIGHT=20&LAYER=castore_ingombro_carte_derivate I'm having this response: >ServiceExceptionReport version="1.3.0" xsi:schemaLocation=" http://www.opengis.net/ogc http://schemas.opengis.net/wms/1.3.0/exceptions_1_3_0.xsd">code="MissingParameterValue"> >GetLegendGraphic(): WMS server error. Missing required parameter SLD_VERSION > As it say, seem the sld_version is mandatory in wms 1.3.0. Infact if I test the same call using wms=1.1.1, the response was OK. The manual say it is an optional parameter. Never say on its mandatory in WMS 1.3.0. http://mapserver.org/ogc/wms_server.html?highlight=getlegendgraphics Is really mandatory the SLD_Version parameter in wms 1.3.0 ? Thx, -- ----------------- Andrea Peri . . . . . . . . . qwerty ????? ----------------- -------------- next part -------------- An HTML attachment was scrubbed... URL: From andy at squeakycode.net Tue May 1 06:50:28 2012 From: andy at squeakycode.net (Andy Colson) Date: Tue, 01 May 2012 08:50:28 -0500 Subject: [mapserver-users] perl errorObj Message-ID: <4F9FEA24.4000801@squeakycode.net> I have noticed a problem with the errorObj mapserver/mapscript/swig/perl object. Its treated as an array, the generated code to get the message looks like this: arg1 = (errorObj *)(argp1); result = (char *)(char *) ((arg1)->message); { size_t size = 2048; while (size && (result[size - 1] == '\0')) --size; ST(argvi) = SWIG_FromCharPtrAndSize(result, size); argvi++ ; } When I log errors: my $errObj = new mapscript::errorObj(); while ($errObj) { $s .= "ERROR: $errObj->{code}:$errObj->{message}:$errObj->{routine}
"; $errObj = $errObj->next(); } I get the message, but then huge amounts of garbage data as well. In plmodule.i I tried to add a typemap: %typemap(memberout) char[ANY] { $result = newSVpvn($1, strlen($1)); argvi++; } But it doesn't seem to work, the generated code is exactly the same as it was before. (I'm new to mapscript and swig, so I'm just guessing) Any help or hints on how I might fix this? Thanks, -Andy From andy at squeakycode.net Tue May 1 08:46:48 2012 From: andy at squeakycode.net (Andy Colson) Date: Tue, 01 May 2012 10:46:48 -0500 Subject: [mapserver-users] Re: perl errorObj In-Reply-To: <4F9FEA24.4000801@squeakycode.net> References: <4F9FEA24.4000801@squeakycode.net> Message-ID: <4FA00568.1090802@squeakycode.net> On 5/1/2012 8:50 AM, Andy Colson wrote: > I have noticed a problem with the errorObj mapserver/mapscript/swig/perl > object. > > Its treated as an array, the generated code to get the message looks > like this: > > arg1 = (errorObj *)(argp1); > result = (char *)(char *) ((arg1)->message); > { > size_t size = 2048; > > while (size && (result[size - 1] == '\0')) --size; > > ST(argvi) = SWIG_FromCharPtrAndSize(result, size); argvi++ ; > } > > When I log errors: > my $errObj = new mapscript::errorObj(); > while ($errObj) > { > $s .= "ERROR: $errObj->{code}:$errObj->{message}:$errObj->{routine}
"; > $errObj = $errObj->next(); > } > > I get the message, but then huge amounts of garbage data as well. > > > In plmodule.i I tried to add a typemap: > > %typemap(memberout) char[ANY] { > $result = newSVpvn($1, strlen($1)); > argvi++; > } > > > But it doesn't seem to work, the generated code is exactly the same as > it was before. (I'm new to mapscript and swig, so I'm just guessing) > > Any help or hints on how I might fix this? > > Thanks, > > -Andy Ok, this works: %typemap(out) char[ANY] { $result = newSVpvn($1, strlen($1)); argvi++; } I was worried about it changing too much code, but after looking at the generated mapscript_wrap.c, it looks fine by me. I also tested it on my test box and it reports errors much much better. I'm going to put this on my live site and run it for a while. Are there any -dev's on this list? I'm not subscribed to mapserver-dev, I'm hoping I can post this here and a dev can verify its ok and add it to plmodule.i. Pretty please? -Andy From Steve.Lime at state.mn.us Tue May 1 10:44:42 2012 From: Steve.Lime at state.mn.us (Lime, Steve D (DNR)) Date: Tue, 1 May 2012 17:44:42 +0000 Subject: [mapserver-users] Re: perl errorObj In-Reply-To: <4FA00568.1090802@squeakycode.net> References: <4F9FEA24.4000801@squeakycode.net> <4FA00568.1090802@squeakycode.net> Message-ID: Hi Andy: We need you to create an issue here https://github.com/mapserver/mapserver/issues and we can go from there... Steve -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Andy Colson Sent: Tuesday, May 01, 2012 10:47 AM To: mapserver-users Subject: [mapserver-users] Re: perl errorObj On 5/1/2012 8:50 AM, Andy Colson wrote: > I have noticed a problem with the errorObj > mapserver/mapscript/swig/perl object. > > Its treated as an array, the generated code to get the message looks > like this: > > arg1 = (errorObj *)(argp1); > result = (char *)(char *) ((arg1)->message); { size_t size = 2048; > > while (size && (result[size - 1] == '\0')) --size; > > ST(argvi) = SWIG_FromCharPtrAndSize(result, size); argvi++ ; } > > When I log errors: > my $errObj = new mapscript::errorObj(); while ($errObj) { $s .= > "ERROR: $errObj->{code}:$errObj->{message}:$errObj->{routine}
"; > $errObj = $errObj->next(); > } > > I get the message, but then huge amounts of garbage data as well. > > > In plmodule.i I tried to add a typemap: > > %typemap(memberout) char[ANY] { > $result = newSVpvn($1, strlen($1)); > argvi++; > } > > > But it doesn't seem to work, the generated code is exactly the same as > it was before. (I'm new to mapscript and swig, so I'm just guessing) > > Any help or hints on how I might fix this? > > Thanks, > > -Andy Ok, this works: %typemap(out) char[ANY] { $result = newSVpvn($1, strlen($1)); argvi++; } I was worried about it changing too much code, but after looking at the generated mapscript_wrap.c, it looks fine by me. I also tested it on my test box and it reports errors much much better. I'm going to put this on my live site and run it for a while. Are there any -dev's on this list? I'm not subscribed to mapserver-dev, I'm hoping I can post this here and a dev can verify its ok and add it to plmodule.i. Pretty please? -Andy _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From andy at squeakycode.net Tue May 1 10:56:27 2012 From: andy at squeakycode.net (Andy Colson) Date: Tue, 01 May 2012 12:56:27 -0500 Subject: [mapserver-users] Re: perl errorObj In-Reply-To: References: <4F9FEA24.4000801@squeakycode.net> <4FA00568.1090802@squeakycode.net> Message-ID: <4FA023CB.2060605@squeakycode.net> Done. https://github.com/mapserver/mapserver/issues/4305 I couldn't figure out how to add labels, and I can't seem to edit it. Hope that's ok. Thanks! -Andy On 5/1/2012 12:44 PM, Lime, Steve D (DNR) wrote: > Hi Andy: We need you to create an issue here https://github.com/mapserver/mapserver/issues and we can go from there... > > Steve > > -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Andy Colson > Sent: Tuesday, May 01, 2012 10:47 AM > To: mapserver-users > Subject: [mapserver-users] Re: perl errorObj > > On 5/1/2012 8:50 AM, Andy Colson wrote: >> I have noticed a problem with the errorObj >> mapserver/mapscript/swig/perl object. >> >> Its treated as an array, the generated code to get the message looks >> like this: >> >> arg1 = (errorObj *)(argp1); >> result = (char *)(char *) ((arg1)->message); { size_t size = 2048; >> >> while (size&& (result[size - 1] == '\0')) --size; >> >> ST(argvi) = SWIG_FromCharPtrAndSize(result, size); argvi++ ; } >> >> When I log errors: >> my $errObj = new mapscript::errorObj(); while ($errObj) { $s .= >> "ERROR: $errObj->{code}:$errObj->{message}:$errObj->{routine}
"; >> $errObj = $errObj->next(); >> } >> >> I get the message, but then huge amounts of garbage data as well. >> >> >> In plmodule.i I tried to add a typemap: >> >> %typemap(memberout) char[ANY] { >> $result = newSVpvn($1, strlen($1)); >> argvi++; >> } >> >> >> But it doesn't seem to work, the generated code is exactly the same as >> it was before. (I'm new to mapscript and swig, so I'm just guessing) >> >> Any help or hints on how I might fix this? >> >> Thanks, >> >> -Andy > > > Ok, this works: > > %typemap(out) char[ANY] { > $result = newSVpvn($1, strlen($1)); > argvi++; > } > > I was worried about it changing too much code, but after looking at the generated mapscript_wrap.c, it looks fine by me. I also tested it on my test box and it reports errors much much better. > > I'm going to put this on my live site and run it for a while. > > Are there any -dev's on this list? I'm not subscribed to mapserver-dev, I'm hoping I can post this here and a dev can verify its ok and add it to plmodule.i. > > Pretty please? > > -Andy > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > From riccardog79 at gmail.com Wed May 2 04:27:47 2012 From: riccardog79 at gmail.com (Riccardo Gaeta) Date: Wed, 2 May 2012 13:27:47 +0200 Subject: [mapserver-users] [TinyOWS] No PostGIS available in database Message-ID: Hi all, I'm using Tinyows 1.0.0 on redhat machine, postgresql 8.4 and postgis 1.5.3. I've checked all these on the database: SELECT PostGIS_Lib_Version(); SELECT PostGIS_LibXML_Version(); SELECT PostGIS_GEOS_Version(); SELECT PostGIS_PROJ_Version(); And all seems to answer good. But when I check the tinyows I get this error: Content-Type: application/xml No PostGIS available in database I've found an old post about this, date 28 Mar 2012 by Neelima Emmani, but with no rposecution. Anyone could help me please? Thanks to all, Riccardo P.S.: My tinyows.xml look like this: -------------- next part -------------- An HTML attachment was scrubbed... URL: From Andreas.Eichner at sid.sachsen.de Wed May 2 04:47:31 2012 From: Andreas.Eichner at sid.sachsen.de (Eichner, Andreas - SID-NLKM) Date: Wed, 2 May 2012 13:47:31 +0200 Subject: AW: [mapserver-users] Layers mutually exclusive References: Message-ID: <56B587E7C40D2F43B54FDC1BA897AC6D037AF347@KS-EVS1.smi.sachsen.de> You might try at the layer level: REQUIRES [expression] Sets context for displaying this layer, for example: REQUIRES "![orthoquads]" means that this layer would NOT be displayed if a layer named "orthoquads" is on. The expression consists of a boolean expression based on the status of other layers, each [layer name] substring is replaced by a 0 or a 1 depending on that layer's STATUS and then evaluated as normal. Logical operators AND and OR can be used. If you have let's say three layers called scale_0, scale_1 and scale_2 for consecutive intervalls of the scale, you can try REQUIRES "![scale_1] and ![scale_2]" on layer scale_0. I don't know if this works as expected, never tried that... HTH > -----Urspr?ngliche Nachricht----- > Von: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] Im Auftrag > von Andrea Peri > Gesendet: Montag, 30. April 2012 13:13 > An: mapserver-users at lists.osgeo.org > Betreff: [mapserver-users] Layers mutually exclusive > > Hi, > > is possible in Map Server to set two or more layers (raster > layers) to be mutually exclusive to each other ? > > I have some raster set each of they is fully cover. > So if pretty unuseful to have a wms request that ask for two > or more of this layer sets. > > I don't know if this is possible, but if it could be possible > it was surely give a better performance for my MapServer. > Infact if an user ask for many raster set, only the top-most > should be visible instead the other asked layers in the same > request was not visible and they would be only an unuseful > lost of elaboration time. > > Thx, > > -- > ----------------- > Andrea Peri > . . . . . . . . . > qwerty ????? > ----------------- > > > From Jukka.Rahkonen at mmmtike.fi Wed May 2 06:19:16 2012 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Wed, 2 May 2012 13:19:16 +0000 Subject: [mapserver-users] [TinyOWS] No PostGIS available in database In-Reply-To: References: Message-ID: <84446DEF76453C439E9E97E438E13A6314C873@suutari.haapa.mmm.fi> Hi, Increase the log_level to 8 and see from the log file which SQL queries TinyOWS is sending. You can test them with psql for comparison. And I suppose it would be better to remove server="http://127.0.0.1/" because it is not used any more. -Jukka Rahkonen- ________________________________ L?hett?j?: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] Puolesta Riccardo Gaeta L?hetetty: 2. toukokuuta 2012 14:28 Vastaanottaja: mapserver-users at lists.osgeo.org Aihe: [mapserver-users] [TinyOWS] No PostGIS available in database Hi all, I'm using Tinyows 1.0.0 on redhat machine, postgresql 8.4 and postgis 1.5.3. I've checked all these on the database: SELECT PostGIS_Lib_Version(); SELECT PostGIS_LibXML_Version(); SELECT PostGIS_GEOS_Version(); SELECT PostGIS_PROJ_Version(); And all seems to answer good. But when I check the tinyows I get this error: Content-Type: application/xml No PostGIS available in database I've found an old post about this, date 28 Mar 2012 by Neelima Emmani, but with no rposecution. Anyone could help me please? Thanks to all, Riccardo P.S.: My tinyows.xml look like this: -------------- next part -------------- An HTML attachment was scrubbed... URL: From jea at hbaspecto.com Wed May 2 08:17:50 2012 From: jea at hbaspecto.com (John Abraham) Date: Wed, 2 May 2012 09:17:50 -0600 Subject: [mapserver-users] Barcharts missing In-Reply-To: <84446DEF76453C439E9E97E438E13A6314C873@suutari.haapa.mmm.fi> References: <84446DEF76453C439E9E97E438E13A6314C873@suutari.haapa.mmm.fi> Message-ID: I have a bar charts layer, and some of the bar charts don't show up. Strangely, when I'm using openlayers to display a zoom-and-pan map different bar charts go missing at different levels of zoom. Is this a bug, or some feature? Here's a bit of my mapfile: MAP NAME "luzs-MAP" # Map image size SIZE 1000 800 UNITS meters EXTENT -85.3382299999 33.1785600011 -83.5057259973 34.5140960012 PROJECTION "init=epsg:4326" END #TEMPLATEPATTERN 'mapserv_template*' # Background color for the map canvas -- change as desired IMAGECOLOR 255 255 255 IMAGEQUALITY 95 IMAGETYPE agg OUTPUTFORMAT NAME agg DRIVER AGG/PNG IMAGEMODE RGB END skipping over to the bar charts layer definition: LAYER NAME "years" TYPE CHART CONNECTIONTYPE postgis CONNECTION "dbname='atlanta_db' host=localhost port=5433 user='usrPostgres' password='usrPostgres'" DATA 'graph_point_geom FROM analysis."W01a_CA35DetResid_120501_170604_with_geom" USING UNIQUE gid USING srid=4326' PROCESSING "CHART_TYPE=bar" PROCESSING "CHART_BAR_MINVAL=-0.180638991133" PROCESSING "CHART_BAR_MAXVAL=154895170.852" PROCESSING "CHART_SIZE=30 50" STATUS ON CLASS NAME "sum2005demand" STYLE SIZE [sum2005demand] COLOR 189 163 26 END END CLASS NAME "sum2006demand" STYLE SIZE [sum2006demand] COLOR 235 7 177 END END etc. -- John Abraham jea at hbaspecto.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From woodbri at swoodbridge.com Wed May 2 08:35:41 2012 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Wed, 02 May 2012 11:35:41 -0400 Subject: [mapserver-users] mapcache: labels and symbols getting clipped at tile edges Message-ID: <4FA1544D.5020707@swoodbridge.com> Hi all, I have setup mapcache which is working great but I amd getting text labels and symbols along the metatile edges that are getting clipped. IE: they are getting rendered and the left tile and then chopped but not in the right tile so I end up with parts of symbols and text :( I have 50 which I increased from 30 without without improving the issue. tiger2011 disk WGS84 g PNGQ_FAST 5 5 50 3600 This is happening for highway shields and for city names. Bith of these are Annotation layers. Any ideas on how to fix this? Thanks, -Steve W From thomas.bonfort at gmail.com Wed May 2 08:39:34 2012 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Wed, 2 May 2012 17:39:34 +0200 Subject: [mapserver-users] mapcache: labels and symbols getting clipped at tile edges In-Reply-To: <4FA1544D.5020707@swoodbridge.com> References: <4FA1544D.5020707@swoodbridge.com> Message-ID: the mapcache metabuffer setting *must always* match your mapserver labelcache_map_edge_buffer, is that the case ? On Wed, May 2, 2012 at 5:35 PM, Stephen Woodbridge wrote: > Hi all, > > I have setup mapcache which is working great but I amd getting text labels > and symbols along the metatile edges that are getting clipped. IE: they are > getting rendered and the left tile and then chopped but not in the right > tile so I end up with parts of symbols and text :( > > I have 50 which I increased from 30 without without > improving the issue. > > ? > ? ?tiger2011 > ? ?disk > ? ?WGS84 > ? ?g > ? ?PNGQ_FAST > ? ?5 5 > ? ?50 > ? ?3600 > ? > > This is happening for highway shields and for city names. Bith of these are > Annotation layers. > > Any ideas on how to fix this? > > Thanks, > ?-Steve W > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From woodbri at swoodbridge.com Wed May 2 10:14:44 2012 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Wed, 02 May 2012 13:14:44 -0400 Subject: [mapserver-users] mapcache: labels and symbols getting clipped at tile edges In-Reply-To: References: <4FA1544D.5020707@swoodbridge.com> Message-ID: <4FA16B84.9030507@swoodbridge.com> On 5/2/2012 11:39 AM, thomas bonfort wrote: > the mapcache metabuffer setting *must always* match your mapserver > labelcache_map_edge_buffer, is that the case ? Thomas, Nope, changed it and it works great now. This should be noted in the mapcache.xml.sample file. What controls the order of the layers in the OL layer switcher? I have an overlay and a base layer but the overlay is getting listed first so when the demo service starts I get only transparent tiles of the overlay are shown instead of the base map until you open the layer switcher. I understand the demo service is not designed to be an application, only a demo that you can cut and paste into a real application. Thanks, -Steve > On Wed, May 2, 2012 at 5:35 PM, Stephen Woodbridge > wrote: >> Hi all, >> >> I have setup mapcache which is working great but I amd getting text labels >> and symbols along the metatile edges that are getting clipped. IE: they are >> getting rendered and the left tile and then chopped but not in the right >> tile so I end up with parts of symbols and text :( >> >> I have50 which I increased from 30 without without >> improving the issue. >> >> >> tiger2011 >> disk >> WGS84 >> g >> PNGQ_FAST >> 5 5 >> 50 >> 3600 >> >> >> This is happening for highway shields and for city names. Bith of these are >> Annotation layers. >> >> Any ideas on how to fix this? >> >> Thanks, >> -Steve W >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users From pcorti at gmail.com Thu May 3 01:29:15 2012 From: pcorti at gmail.com (Paolo Corti) Date: Thu, 3 May 2012 10:29:15 +0200 Subject: [mapserver-users] GetFeatureInfo request for WMS time Message-ID: Hi all I have a WMS time service, defined in this way in the mapfile: # time index for fc_FWI LAYER NAME index_fc_FWI TYPE POLYGON DATA index_fc_FWI STATUS ON METADATA "wms_title" "index_fc_FWI" "wms_srs" "EPSG:4326" "wms_extent" "0 -90 360 90" "wms_timeextent" "2001-01-01/2020-12-31" "wms_timeitem" "DATE" "wms_timedefault" "2011-10-02" "wms_enable_request" "*" END END # wsm with time for fc_FWI LAYER NAME "fc_FWI" TYPE RASTER STATUS ON TEMPLATE "templates/variable_template.html" METADATA "wms_title" "fc_FWI with time" "wms_srs" "EPSG:4326" "wms_extent" "0 -90 360 90" "wms_timeextent" "2001-01-01/2020-12-31" "wms_timeitem" "DATE" "wms_timedefault" "2011-10-02" "wms_enable_request" "*" END OFFSITE 0 0 0 PROCESSING "BANDS=1,2,3" TILEITEM "location" TILEINDEX index_fc_FWI END processing a GetMap request, everything works as expected, and I get the correct image for the time passed with the TIME parameter: http://localhost/mapserver/global?LAYERS=fc_FWI&TIME=2011-10-01&VISIBILITY=true&TRANSPARENT=TRUE&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&FORMAT=image%2Fpng&SRS=EPSG%3A900913&BBOX=0,-1.862645149231e-9,10018754.17,10018754.17&WIDTH=256&HEIGHT=256 but if I perform a GetFeatureInfo request with the same date: http://localhost/mapserver/global?SERVICE=WMS&VERSION=1.1.1&REQUEST=GetFeatureInfo&LAYERS=fc_FWI&QUERY_LAYERS=fc_FWI&TIME=2011-10-01&STYLES=&BBOX=-16795967.087793%2C-6283939.619141%2C19795967.087793%2C13283939.619141&FEATURE_COUNT=1&HEIGHT=500&WIDTH=935&FORMAT=image%2Fpng&INFO_FORMAT=text%2Fhtml&SRS=EPSG%3A900913&X=524&Y=173 I get as many results as many features (polygons) there are in the index shapefile (index_fc_FWI), even if with different DATE values: looks like the TIME parameter is not parsed at all from the GetFeatureInfo request. Am I missing anything obvious? Is it the GetFeatureInfo request supported by a Time WMS server? thanks p -- Paolo Corti Geospatial software developer web: http://www.paolocorti.net twitter: @capooti skype: capooti From riccardog79 at gmail.com Thu May 3 01:50:29 2012 From: riccardog79 at gmail.com (Riccardo Gaeta) Date: Thu, 3 May 2012 10:50:29 +0200 Subject: [mapserver-users] [TinyOWS] No PostGIS available in database In-Reply-To: <84446DEF76453C439E9E97E438E13A6314C873@suutari.haapa.mmm.fi> References: <84446DEF76453C439E9E97E438E13A6314C873@suutari.haapa.mmm.fi> Message-ID: Great! The query send from TinyOws was (read it from tinyows.log file): SELECT substr(postgis_full_version(), 10, 5); And in fact for some odd reason I didn't have this function loaded on my DB. I don't know why, perhaps because I've done an incomplete dump... Anyway, I've copied the function "postgis_full_version()" from another DB with Postgis well installed and created it in my current DB, et voil?! Thanks a lot. Riccardo 2012/5/2 Rahkonen Jukka > ** > Hi, > > Increase the log_level to 8 and see from the log file which SQL queries > TinyOWS is sending. You can test them with psql for comparison. > And I suppose it would be better to remove server="http://127.0.0.1/" because > it is not used any more. > > -Jukka Rahkonen- > > ------------------------------ > *L?hett?j?:* mapserver-users-bounces at lists.osgeo.org [mailto: > mapserver-users-bounces at lists.osgeo.org] *Puolesta *Riccardo Gaeta > *L?hetetty:* 2. toukokuuta 2012 14:28 > *Vastaanottaja:* mapserver-users at lists.osgeo.org > *Aihe:* [mapserver-users] [TinyOWS] No PostGIS available in database > > Hi all, > I'm using Tinyows 1.0.0 on redhat machine, postgresql 8.4 and postgis > 1.5.3. I've checked all these on the database: > SELECT PostGIS_Lib_Version(); > SELECT PostGIS_LibXML_Version(); > SELECT PostGIS_GEOS_Version(); > SELECT PostGIS_PROJ_Version(); > > And all seems to answer good. > But when I check the tinyows I get this error: > > Content-Type: application/xml > > > 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'> > > No PostGIS available in database > > > > I've found an old post about this, date 28 Mar 2012 by Neelima Emmani, > but with no rposecution. > > Anyone could help me please? > > Thanks to all, > Riccardo > > P.S.: My tinyows.xml look like this: > > schema_dir="/usr/local/share/tinyows/schema/" log="/tmp/tinyows.log" log_level="1" > > > port="5432"/> > > /> > > queryable="1" > writable="0" > ns_prefix="tows" > ns_uri="http://127.0.0.1/" > server="http://127.0.0.1/" > name="mytable" > schema="myschema" > srid="900913,3785" > title="mylayer_tiny" > abstract="test" > /> > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From woodbri at swoodbridge.com Thu May 3 05:38:40 2012 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Thu, 03 May 2012 08:38:40 -0400 Subject: [mapserver-users] Fwd: facing problem in displaying map using mapserver In-Reply-To: <20152053.12038.1336036896233.JavaMail.nabble@alf.nabble.com> References: <20152053.12038.1336036896233.JavaMail.nabble@alf.nabble.com> Message-ID: <4FA27C50.1020800@swoodbridge.com> First, it is best to sent request to the list. If you are not signed up signup here: mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users Second, the reason for 1 is that I have not used php mapscript in ages and I don't use windows very much and I have never used fusion. So on the list there is a better chance that you will find someone from the many users that can help you. Also there are lists specifically for MS4W and I'm guessing also for fusion which might be better than the general mapserver list. You can test you mapfile directly in mapserver with shp2img utility to validate your mapfile. If this doesn't throw an error then it is likely that you have errors in your fusion configuration and need to talk to the fusion list for help with that. -Steve -------- Original Message -------- Subject: facing problem in displaying map using mapserver Date: Thu, 03 May 2012 02:21:36 -0700 From: badruls007 at yahoo.com To: woodbri at swoodbridge.com Hi Stephen, I have recently started working on GIS stuff, i have created mapfiles and for displaying them i am using fusion as an interface. I have modified ApplicationData.xml and updated tag with path where my mapfile is saved on my computer, but the problem is its not displaying any map, i checked error file and it contains following: [Mon Apr 09 12:30:15 2012] [error] [client 127.0.0.1] thrown in C:\\ms4w\\apps\\fusion\\MapServer\\php\\LoadMap.php on line 129, referer: http://localhost/fusion/templates/mapserver/standard/index.html [Mon Apr 09 12:30:16 2012] [error] [client 127.0.0.1] PHP Fatal error: Uncaught exception 'MapScriptException' with message 'Property 'imagetype' does not exist in this object.' in C:\\ms4w\\apps\\fusion\\MapServer\\php\\LoadMap.php:129, referer: http://localhost/fusion/templates/mapserver/standard/index.html [Mon Apr 09 12:30:16 2012] [error] [client 127.0.0.1] Stack trace:, referer: http://localhost/fusion/templates/mapserver/standard/index.html [Mon Apr 09 12:30:16 2012] [error] [client 127.0.0.1] #0 C:\\ms4w\\apps\\fusion\\MapServer\\php\\LoadMap.php(129): mapObj->__get('imagetype'), referer: http://localhost/fusion/templates/mapserver/standard/index.html [Mon Apr 09 12:30:16 2012] [error] [client 127.0.0.1] #1 {main}, referer: http://localhost/fusion/templates/mapserver/standard/index.html [Mon Apr 09 12:30:16 2012] [error] [client 127.0.0.1] thrown in C:\\ms4w\\apps\\fusion\\MapServer\\php\\LoadMap.php on line 129, referer: http://localhost/fusion/templates/mapserver/standard/index.html I have been stuck with this problem for a week now, i am feeling totally clueless about how to proceed, any help from your side will be apreciated. Thanks and Regards Badrul From Johan.Forsman at LA.GOV Thu May 3 08:06:56 2012 From: Johan.Forsman at LA.GOV (Johan Forsman) Date: Thu, 3 May 2012 10:06:56 -0500 Subject: [mapserver-users] Truetype font rendering changes? Message-ID: <660F6AF362EE674B875E7BD4E289E2D80797CBC3@MAILMBX06.MAIL.LA.GOV> Hello All: I am in the process of migrating from MapServer 5.4 (FGS95 on Linux) to MapServer 6 (MS4W3 on Windows Server 2008 R2). Most things are migrating well however I have a peculiar TrueType font rendering issue where the readability on the new system is far less than on the old system. I have attached two screenshots taken at the same scale to illustrate the issue. In these images the parish labels are Arial Bold Italic 6 pt., the interstate shields are Arial 8 pt., and US highway shields are Arial Narrow 7 pt. The TTF files and the MAP files were copied directly from the old system to the new system. I have tried with antialias on and off in the label definition and with a couple of different AGG image output formats but there are no visible differences. I would really appreciate any suggestions or pointers where to investigate. Thanks! Johan Forsman Geologist Engineering Services LDHH-OPH-CEHS 225.342.7309 -------------- next part -------------- A non-text attachment was scrubbed... Name: 03ms54_fgs95_8bit.png Type: image/png Size: 10920 bytes Desc: 03ms54_fgs95_8bit.png URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: 04ms60_ms4w3_8bit.png Type: image/png Size: 12849 bytes Desc: 04ms60_ms4w3_8bit.png URL: From jmckenna at gatewaygeomatics.com Thu May 3 08:40:57 2012 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Thu, 03 May 2012 12:40:57 -0300 Subject: [mapserver-users] Introducing the new Github/MapServer wiki Message-ID: <4FA2A709.5040003@gatewaygeomatics.com> Hello everyone, As you know the MapServer team has recently switched our architecture from Trac to Github, and with that is a new wiki to use (https://github.com/mapserver/mapserver/wiki). The old Trac wiki pages are now read-only. I encourage everyone to start adding to it whenever possible (I've placed some hints on syntax on the Home page). As you can see I've pointed to several of the popular wiki pages already. If you notice a page from the old Trac wiki that is not yet pointed to on the new wiki, click on the "Pages" tab and you will likely find the missing page; all you need to do is point to it on the Home page, and likely change a little formatting in the page. So, have fun with it! -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ From donald.kerr at dkerr.co.uk Thu May 3 10:38:42 2012 From: donald.kerr at dkerr.co.uk (Donald Kerr) Date: Thu, 3 May 2012 18:38:42 +0100 Subject: [mapserver-users] Truetype font rendering changes? In-Reply-To: <660F6AF362EE674B875E7BD4E289E2D80797CBC3@MAILMBX06.MAIL.LA.GOV> Message-ID: <6663AAC43666489DBA1B03A9BC7C0E21@DELLM4500> Johan, Have you tried "cairopng" as an alternative to AGG? Regards, Donald -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Johan Forsman Sent: 03 May 2012 16:07 To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] Truetype font rendering changes? Hello All: I am in the process of migrating from MapServer 5.4 (FGS95 on Linux) to MapServer 6 (MS4W3 on Windows Server 2008 R2). Most things are migrating well however I have a peculiar TrueType font rendering issue where the readability on the new system is far less than on the old system. I have attached two screenshots taken at the same scale to illustrate the issue. In these images the parish labels are Arial Bold Italic 6 pt., the interstate shields are Arial 8 pt., and US highway shields are Arial Narrow 7 pt. The TTF files and the MAP files were copied directly from the old system to the new system. I have tried with antialias on and off in the label definition and with a couple of different AGG image output formats but there are no visible differences. I would really appreciate any suggestions or pointers where to investigate. Thanks! Johan Forsman Geologist Engineering Services LDHH-OPH-CEHS 225.342.7309 From linchuan.cheng at gmail.com Thu May 3 19:18:46 2012 From: linchuan.cheng at gmail.com (Lin Chuan) Date: Fri, 4 May 2012 10:18:46 +0800 Subject: [mapserver-users] Introducing the new Github/MapServer wiki In-Reply-To: <4FA2A709.5040003@gatewaygeomatics.com> References: <4FA2A709.5040003@gatewaygeomatics.com> Message-ID: O.... FINALLY! WOOT! On Thu, May 3, 2012 at 11:40 PM, Jeff McKenna wrote: > Hello everyone, > > As you know the MapServer team has recently switched our architecture > from Trac to Github, and with that is a new wiki to use > (https://github.com/mapserver/mapserver/wiki). The old Trac wiki pages > are now read-only. > > I encourage everyone to start adding to it whenever possible (I've > placed some hints on syntax on the Home page). As you can see I've > pointed to several of the popular wiki pages already. If you notice a > page from the old Trac wiki that is not yet pointed to on the new wiki, > click on the "Pages" tab and you will likely find the missing page; all > you need to do is point to it on the Home page, and likely change a > little formatting in the page. > > So, have fun with it! > > -jeff > > > > -- > Jeff McKenna > MapServer Consulting and Training Services > http://www.gatewaygeomatics.com/ > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -- www.calvinx.com Stalk me! @ www.twitter.com/calvinchengx -------------- next part -------------- An HTML attachment was scrubbed... URL: From lists at fuchsschwanzdomain.de Fri May 4 03:16:28 2012 From: lists at fuchsschwanzdomain.de (Sven Geggus) Date: Fri, 4 May 2012 10:16:28 +0000 (UTC) Subject: [mapserver-users] polygon border artifacts Message-ID: Hello, the brilliant osm coastline tool from Jochen Topf (http://blog.jochentopf.com/2012-04-19-more-coastlines-stuff.html) enables for creating nice ocean or landcover polygons from Openstreetmap data. Well, this is where my mapserver problem starts... For illustration of the problem I just created ocean polygons around canary islands http://home.geggus.net/pub/ocean-canary-islands.zip They are in sperical mercator using a huge overlap of 30meters to avoid artifacts. However artifacts (which seem to depend on scale) still arise: http://home.geggus.net/pub/ocean.png Here is the mapfile and shp2img command I used for rendering: shp2img -o ocean.png -m ocean.map -e -1917656.09 3248262.91 -1839384.59 3326534.41 -s 512 512 MAP OUTPUTFORMAT NAME agg DRIVER AGG/PNG8 FORMATOPTION "INTERLACE=OFF" MIMETYPE "image/png" END EXTENT -180 -85 180 85 IMAGECOLOR 255 0 0 WEB METADATA "ows_enable_request" "*" wms_srs "EPSG:4326 EPSG:3857" END END PROJECTION "init=epsg:3857" END LAYER PROCESSING "CLOSE_CONNECTION=DEFER" NAME "ocean" TYPE POLYGON STATUS ON DATA "ocean-canary-islands" PROJECTION "init=epsg:3857" END CLASS STYLE COLOR 128 255 255 END END # of class END # of layer END The only workaround I found so far is to use an outline: OUTLINECOLOR 128 255 255 WIDTH 1 Is this a bug in mapserver or is there something else which I can do? Sven -- "Ich f?rchte mich nicht vor der R?ckkehr der Faschisten in der Maske der Faschisten, sondern vor der R?ckkehr der Faschisten in der Maske der Demokraten" (Theodor W. Adorno) /me is giggls at ircnet, http://sven.gegg.us/ on the Web From thomas.bonfort at gmail.com Fri May 4 03:49:11 2012 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Fri, 4 May 2012 12:49:11 +0200 Subject: [mapserver-users] polygon border artifacts In-Reply-To: References: Message-ID: with a recentish version of mapserver, try setting PROCESSING "APPROXIMATION_SCALE=FULL" on your ocean layer, to avoid feature simplification (it will slow down the rendering if the resolution of your data is much greater than the resolution of the requested map). -- thomas On Fri, May 4, 2012 at 12:16 PM, Sven Geggus wrote: > Hello, > > the brilliant osm coastline tool from Jochen Topf > (http://blog.jochentopf.com/2012-04-19-more-coastlines-stuff.html) > enables for creating nice ocean or landcover polygons from > Openstreetmap data. ?Well, this is where my mapserver problem > starts... > > For illustration of the problem I just created ocean polygons around > canary islands > > http://home.geggus.net/pub/ocean-canary-islands.zip > > They are in sperical mercator using a huge overlap of 30meters to > avoid artifacts. > However artifacts (which seem to depend on scale) still arise: > > http://home.geggus.net/pub/ocean.png > > Here is the mapfile and shp2img command I used for rendering: > > shp2img -o ocean.png -m ocean.map -e -1917656.09 3248262.91 -1839384.59 3326534.41 -s 512 512 > > MAP > > ?OUTPUTFORMAT > ? ? ?NAME agg > ? ? ?DRIVER AGG/PNG8 > ? ? ?FORMATOPTION "INTERLACE=OFF" > ? ? ?MIMETYPE "image/png" > ?END > > ?EXTENT ? ? ? ? -180 -85 180 85 > > ?IMAGECOLOR 255 0 0 > > ?WEB > ? ? ?METADATA > ? ? ? ?"ows_enable_request" "*" > ? ? ? ? wms_srs "EPSG:4326 EPSG:3857" > ? ? ?END > ?END > > ?PROJECTION > ?"init=epsg:3857" > ?END > > ?LAYER > ? ? PROCESSING ? ? "CLOSE_CONNECTION=DEFER" > ? ? NAME ? ? ? ? ? "ocean" > ? ? TYPE ? ? ? ? ? POLYGON > ? ? STATUS ? ? ? ? ON > ? ? DATA ? ? ? ? ? "ocean-canary-islands" > ? ? PROJECTION > ? ? ? ?"init=epsg:3857" > ? ? END > ? ? CLASS > ? ? ? STYLE > ? ? ? ? COLOR 128 255 255 > ? ? ? END > ? ? END # of class > ?END # of layer > END > > The only workaround I found so far is to use an outline: > > OUTLINECOLOR 128 255 255 > WIDTH 1 > > Is this a bug in mapserver or is there something else which I can do? > > Sven > > -- > "Ich f?rchte mich nicht vor der R?ckkehr der Faschisten in der Maske der > Faschisten, sondern vor der R?ckkehr der Faschisten in der Maske der > Demokraten" (Theodor W. Adorno) > /me is giggls at ircnet, http://sven.gegg.us/ on the Web > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From lists at fuchsschwanzdomain.de Fri May 4 04:03:59 2012 From: lists at fuchsschwanzdomain.de (Sven Geggus) Date: Fri, 4 May 2012 11:03:59 +0000 (UTC) Subject: [mapserver-users] polygon border artifacts References: Message-ID: thomas bonfort wrote: > with a recentish version of mapserver, try setting > PROCESSING "APPROXIMATION_SCALE=FULL" > on your ocean layer, to avoid feature simplification (it will slow > down the rendering if the resolution of your data is much greater than > the resolution of the requested map). Hm. Looking at the sources 6.0.1 seems to be recent enough, but unfortunately this does not seem to fix the problem. Regards Sven -- Den Rechtsstaat macht aus, dass Unschuldige wieder frei kommen (Wolfgang Sch?uble) /me is giggls at ircnet, http://sven.gegg.us/ on the Web From punk.kish at gmail.com Fri May 4 18:21:18 2012 From: punk.kish at gmail.com (Puneet Kishor) Date: Fri, 4 May 2012 20:21:18 -0500 Subject: [mapserver-users] Re: handling features that cross the date line In-Reply-To: <6F2C4A81-60FB-480B-9715-3F812250E5CC@gmail.com> References: <6F2C4A81-60FB-480B-9715-3F812250E5CC@gmail.com> Message-ID: <1B562F84-3945-4445-8DF8-FD30F6FFA51D@gmail.com> bumpety bump. The following page discusses the issue, but I am not sure what the resolution is. I'd preferably solve this without having to edit the lines. Suggestions? On Apr 30, 2012, at 8:49 PM, Puneet Kishor wrote: > What is the recommended way of handling such features? I have a bunch of lines (held in Postgis) that cross the date line, and the WMS tiles drawn by MapServer get all messed up. What is the easiest way to get them to draw correctly? > > Thanks. > > > > -- > Puneet Kishor From pcreso at pcreso.com Fri May 4 21:25:54 2012 From: pcreso at pcreso.com (pcreso at pcreso.com) Date: Fri, 4 May 2012 21:25:54 -0700 (PDT) Subject: [mapserver-users] Re: handling features that cross the date line In-Reply-To: <1B562F84-3945-4445-8DF8-FD30F6FFA51D@gmail.com> Message-ID: <1336191954.17890.YahooMailClassic@web160703.mail.bf1.yahoo.com> Hi Puneet, One way is to reproject. Another is to shift longitudes? to 0-360 instead of +-180 Another is to select your dataset, unioned to itself shifted 360 degrees in the mapserver data statement the Postgis function ST_shiftlongitude can help. One example is to switch on one of the Biodiversity layers at: http://www.os2020.org.nz/project-map-chatchallenger/ These are all mapserver WMS layers crossing 180 degrees. provided by mapserver & displayed with OpenLayers. There is an issue, in that if the map pans to either side of 180, the entire layer is redrawn, but at least the map looks correct. Cheers, ? Brent Wood --- On Sat, 5/5/12, Puneet Kishor wrote: From: Puneet Kishor Subject: [mapserver-users] Re: handling features that cross the date line To: "mapserver" Date: Saturday, May 5, 2012, 1:21 PM bumpety bump. The following page discusses the issue, but I am not sure what the resolution is. I'd preferably solve this without having to edit the lines. Suggestions? On Apr 30, 2012, at 8:49 PM, Puneet Kishor wrote: > What is the recommended way of handling such features? I have a bunch of lines (held in Postgis) that cross the date line, and the WMS tiles drawn by MapServer get all messed up. What is the easiest way to get them to draw correctly? > > Thanks. > > > > -- > Puneet Kishor _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From sam at planyukon.ca Sat May 5 09:00:10 2012 From: sam at planyukon.ca (sam at planyukon.ca) Date: 5 May 2012 09:00:10 -0700 Subject: [mapserver-users] Re: mapserver-users Digest, Vol 52, Issue 8 Message-ID: <20120505160010.29164.qmail@polarhosting.ca> Sorry I missed you, but I am on parental leave until May 14th. Urgent YLUPC business can be sent to the YLUPC director at ron at planyukon.ca. From punk.kish at gmail.com Sat May 5 11:15:07 2012 From: punk.kish at gmail.com (Mr. Puneet Kishor) Date: Sat, 5 May 2012 13:15:07 -0500 Subject: [mapserver-users] elevation profile In-Reply-To: <1335551802.99354.YahooMailClassic@web160705.mail.bf1.yahoo.com> References: <1335551802.99354.YahooMailClassic@web160705.mail.bf1.yahoo.com> Message-ID: <48419365-47D9-4234-8B0E-9ED282CCEF08@gmail.com> The elevation profile widget is finally implemented at http://earth-base.org/geomaps Click on the fourth button from the top on the left, then draw a line on the map to see the profile. As with all my apps, the values themselves can be retrieved by querying for them directly from the browser or from the command line. For example http://earth-base.org/geomaps/elevation.json?linestring=LINESTRING(-118.706+37.933%2C-109.477+42.494) This one is dedicated to Steve Woodbridge, Brent Wood and David Fawcett. > .. -- Puneet Kishor From sam at planyukon.ca Sun May 6 08:59:54 2012 From: sam at planyukon.ca (sam at planyukon.ca) Date: 6 May 2012 08:59:54 -0700 Subject: [mapserver-users] Re: mapserver-users Digest, Vol 52, Issue 9 Message-ID: <20120506155954.21488.qmail@polarhosting.ca> Sorry I missed you, but I am on parental leave until May 14th. Urgent YLUPC business can be sent to the YLUPC director at ron at planyukon.ca. From anajera at bicimapas.com.mx Sun May 6 18:33:26 2012 From: anajera at bicimapas.com.mx (Alberto Najera) Date: Sun, 6 May 2012 20:33:26 -0500 Subject: [mapserver-users] Mapserver layer over Google Maps Message-ID: <000001cd2bf1$6775f9b0$3661ed10$@com.mx> Hello list, Using OpenLayers, I am trying to draw a Mapserver WMS layer on top of Google Maps. I am aware of the Spherical Mercator projection and I am trying to use the alias projection method described at the end of this link http://docs.openlayers.org/library/spherical_mercator The mapserver layer is in Lat/Lon WGS84 (EPSG:4326) I have made some progress so far and I can see the label of the object at full zoom, but as I zoom in it does not show anymore and the feature does not show either. Any help in finding the issue would be greatly appreciated. This is the relevant map file code: MAP ........ WEB TEMPLATE "/home/bicimapas/www/bcmpms.html" IMAGEPATH "/home/bicimapas/www/images/" IMAGEURL "/images/" METADATA "wms_title" "BiciMapasMS" "wms_onlineresource" "http://my_host/cgi-bin/mapserv?map=/home/bicimapas/mapdata/BiciMapasMS_Metr o.map&" "wms_srs" "EPSG:4326 EPSG:3857" "wms_enable_request" "*" END END PROJECTION "init=epsg:4326" END LAYER NAME "fibraoptica" DATA "fibraoptica" STATUS on TYPE line LABELCACHE on LABELITEM "RASGO" CLASSITEM "RASGO" METADATA "wms_title" "fibraoptica" "wms_srs" "EPSG:4326" "wms_include_items" "all" END CLASS NAME "fibraoptica" EXPRESSION "fibra" #MAXSCALEDENOM 15000 STYLE WIDTH 4 COLOR 0 0 0 END STYLE WIDTH 2 COLOR 255 0 0 END LABEL TYPE truetype FONT "Arial" #MAXSCALEDENOM 15000 ANTIALIAS true SIZE 7 OUTLINECOLOR 255 255 255 COLOR 0 0 0 POSITION cc ANGLE follow END # label trutype END # class fibraoptica END # layer fibraoptica END # mapfile And the OpenLayers code is: Thanks in advance Alberto Najera From lists at remoteinformation.com.au Sun May 6 20:46:08 2012 From: lists at remoteinformation.com.au (Ben Madin) Date: Mon, 7 May 2012 11:46:08 +0800 Subject: [mapserver-users] elevation profile In-Reply-To: <20120506160017.A6613E00560@lists.osgeo.org> References: <20120506160017.A6613E00560@lists.osgeo.org> Message-ID: <21E399A4-8BDA-420D-A6B2-78016AED21FD@remoteinformation.com.au> Puneet, very nice - well done. cheers Ben On 07/05/2012, at 12:00 AM, "Mr. Puneet Kishor" wrote: > The elevation profile widget is finally implemented at http://earth-base.org/geomaps > Click on the fourth button from the top on the left, then draw a line on the map to see the profile. As with all my apps, the values themselves can be retrieved by querying for them directly from the browser or from the command line. For example > > http://earth-base.org/geomaps/elevation.json?linestring=LINESTRING(-118.706+37.933%2C-109.477+42.494) > > > This one is dedicated to Steve Woodbridge, Brent Wood and David Fawcett. -------------- next part -------------- An HTML attachment was scrubbed... URL: From dejan.gambin at coin.hr Sun May 6 23:19:50 2012 From: dejan.gambin at coin.hr (Dejan Gambin) Date: Mon, 7 May 2012 08:19:50 +0200 Subject: [mapserver-users] Mapserver layer over Google Maps In-Reply-To: <000001cd2bf1$6775f9b0$3661ed10$@com.mx> References: <000001cd2bf1$6775f9b0$3661ed10$@com.mx> Message-ID: <1ECBE51E-1662-4C47-9C56-83BEBB2EC77B@coin.hr> Alberto, I found this VERY useful: http://geographika.co.uk/mapserver-openlayers-and-the-wfs-maze I think you should put EPSG:3857 on the first place in wms_srs regards, dejan On 7. svi. 2012., at 03:33, Alberto Najera wrote: > Hello list, > > Using OpenLayers, I am trying to draw a Mapserver WMS layer on top of Google > Maps. I am aware of the Spherical Mercator projection and I am trying to use > the alias projection method described at the end of this link > > http://docs.openlayers.org/library/spherical_mercator > > The mapserver layer is in Lat/Lon WGS84 (EPSG:4326) > I have made some progress so far and I can see the label of the object at > full zoom, but as I zoom in it does not show anymore and the feature does > not show either. > > Any help in finding the issue would be greatly appreciated. > > This is the relevant map file code: > > MAP > ........ > WEB > TEMPLATE "/home/bicimapas/www/bcmpms.html" > IMAGEPATH "/home/bicimapas/www/images/" > IMAGEURL "/images/" > METADATA > "wms_title" "BiciMapasMS" > "wms_onlineresource" > "http://my_host/cgi-bin/mapserv?map=/home/bicimapas/mapdata/BiciMapasMS_Metr > o.map&" > "wms_srs" "EPSG:4326 EPSG:3857" > "wms_enable_request" "*" > END > END > > PROJECTION > "init=epsg:4326" > END > > LAYER > NAME "fibraoptica" > DATA "fibraoptica" > STATUS on > TYPE line > LABELCACHE on > LABELITEM "RASGO" > CLASSITEM "RASGO" > METADATA > "wms_title" "fibraoptica" > "wms_srs" "EPSG:4326" > "wms_include_items" "all" > END > CLASS > NAME "fibraoptica" > EXPRESSION "fibra" > #MAXSCALEDENOM 15000 > STYLE > WIDTH 4 > COLOR 0 0 0 > END > STYLE > WIDTH 2 > COLOR 255 0 0 > END > LABEL > TYPE truetype > FONT "Arial" > #MAXSCALEDENOM 15000 > ANTIALIAS true > SIZE 7 > OUTLINECOLOR 255 255 255 > COLOR 0 0 0 > POSITION cc > ANGLE follow > END # label trutype > END # class fibraoptica > END # layer fibraoptica > > END # mapfile > > And the OpenLayers code is: > > > > > > > > > > > > Thanks in advance > > Alberto Najera > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From Johan.Forsman at LA.GOV Mon May 7 06:32:12 2012 From: Johan.Forsman at LA.GOV (Johan Forsman) Date: Mon, 7 May 2012 08:32:12 -0500 Subject: [mapserver-users] Truetype font rendering changes? In-Reply-To: <6663AAC43666489DBA1B03A9BC7C0E21@DELLM4500> References: <660F6AF362EE674B875E7BD4E289E2D80797CBC3@MAILMBX06.MAIL.LA.GOV> <6663AAC43666489DBA1B03A9BC7C0E21@DELLM4500> Message-ID: <660F6AF362EE674B875E7BD4E289E2D8079EF0BA@MAILMBX06.MAIL.LA.GOV> Thank you for the suggestion however I regret to report that there is no discernible difference in the appearance of the text when using cairopng in the Windows environment. I have also created a test case using MS6 on the same Linux server (but outside the FGS95 environment) as my MS5.4 and the text is rendered exactly the same as on the Windows platform, with the same reduced legibility. Thanks, Johan. -----Original Message----- From: Donald Kerr [mailto:donald.kerr at dkerr.co.uk] Sent: Thursday, May 03, 2012 12:39 PM To: Johan Forsman; mapserver-users at lists.osgeo.org Subject: RE: [mapserver-users] Truetype font rendering changes? Johan, Have you tried "cairopng" as an alternative to AGG? Regards, Donald -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Johan Forsman Sent: 03 May 2012 16:07 To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] Truetype font rendering changes? Hello All: I am in the process of migrating from MapServer 5.4 (FGS95 on Linux) to MapServer 6 (MS4W3 on Windows Server 2008 R2). Most things are migrating well however I have a peculiar TrueType font rendering issue where the readability on the new system is far less than on the old system. I have attached two screenshots taken at the same scale to illustrate the issue. In these images the parish labels are Arial Bold Italic 6 pt., the interstate shields are Arial 8 pt., and US highway shields are Arial Narrow 7 pt. The TTF files and the MAP files were copied directly from the old system to the new system. I have tried with antialias on and off in the label definition and with a couple of different AGG image output formats but there are no visible differences. I would really appreciate any suggestions or pointers where to investigate. Thanks! Johan Forsman Geologist Engineering Services LDHH-OPH-CEHS 225.342.7309 From Steve.Lime at state.mn.us Mon May 7 07:43:16 2012 From: Steve.Lime at state.mn.us (Lime, Steve D (DNR)) Date: Mon, 7 May 2012 14:43:16 +0000 Subject: [mapserver-users] Truetype font rendering changes? In-Reply-To: <660F6AF362EE674B875E7BD4E289E2D8079EF0BA@MAILMBX06.MAIL.LA.GOV> References: <660F6AF362EE674B875E7BD4E289E2D80797CBC3@MAILMBX06.MAIL.LA.GOV> <6663AAC43666489DBA1B03A9BC7C0E21@DELLM4500> <660F6AF362EE674B875E7BD4E289E2D8079EF0BA@MAILMBX06.MAIL.LA.GOV> Message-ID: Is that test case available someplace? -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Johan Forsman Sent: Monday, May 07, 2012 8:32 AM To: Donald Kerr; mapserver-users at lists.osgeo.org Subject: RE: [mapserver-users] Truetype font rendering changes? Thank you for the suggestion however I regret to report that there is no discernible difference in the appearance of the text when using cairopng in the Windows environment. I have also created a test case using MS6 on the same Linux server (but outside the FGS95 environment) as my MS5.4 and the text is rendered exactly the same as on the Windows platform, with the same reduced legibility. Thanks, Johan. -----Original Message----- From: Donald Kerr [mailto:donald.kerr at dkerr.co.uk] Sent: Thursday, May 03, 2012 12:39 PM To: Johan Forsman; mapserver-users at lists.osgeo.org Subject: RE: [mapserver-users] Truetype font rendering changes? Johan, Have you tried "cairopng" as an alternative to AGG? Regards, Donald -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Johan Forsman Sent: 03 May 2012 16:07 To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] Truetype font rendering changes? Hello All: I am in the process of migrating from MapServer 5.4 (FGS95 on Linux) to MapServer 6 (MS4W3 on Windows Server 2008 R2). Most things are migrating well however I have a peculiar TrueType font rendering issue where the readability on the new system is far less than on the old system. I have attached two screenshots taken at the same scale to illustrate the issue. In these images the parish labels are Arial Bold Italic 6 pt., the interstate shields are Arial 8 pt., and US highway shields are Arial Narrow 7 pt. The TTF files and the MAP files were copied directly from the old system to the new system. I have tried with antialias on and off in the label definition and with a couple of different AGG image output formats but there are no visible differences. I would really appreciate any suggestions or pointers where to investigate. Thanks! Johan Forsman Geologist Engineering Services LDHH-OPH-CEHS 225.342.7309 _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From Johan.Forsman at LA.GOV Mon May 7 08:31:30 2012 From: Johan.Forsman at LA.GOV (Johan Forsman) Date: Mon, 7 May 2012 10:31:30 -0500 Subject: [mapserver-users] Truetype font rendering changes? In-Reply-To: References: <660F6AF362EE674B875E7BD4E289E2D80797CBC3@MAILMBX06.MAIL.LA.GOV> <6663AAC43666489DBA1B03A9BC7C0E21@DELLM4500> <660F6AF362EE674B875E7BD4E289E2D8079EF0BA@MAILMBX06.MAIL.LA.GOV> Message-ID: <660F6AF362EE674B875E7BD4E289E2D8079EF215@MAILMBX06.MAIL.LA.GOV> No. Unfortunately none of the sites are accessible from the outside. The best I can do are screenshots. I attached two examples from the same Linux server. One is from the FGS95 (MS54) environment and the other (MS60) is under the "main" system environment. Both samples are of Arial Narrow 7 point, and the image is rendered using the following output format: OUTPUTFORMAT NAME 'agg_q' DRIVER AGG/PNG IMAGEMODE RGB FORMATOPTION "QUANTIZE_FORCE=ON" FORMATOPTION "QUANTIZE_DITHER=OFF" FORMATOPTION "QUANTIZE_COLORS=256" END I freely confess to not knowing much about the various output formats. This one I picked from the list some time long ago. I tried other formats also, both 8- and 24-bit and both the AGG and Cairo drivers, but I have not noticed any clear differences. Thanks for any suggestions and I'll be glad to collect additional information if needed. Johan. -----Original Message----- From: Lime, Steve D (DNR) [mailto:Steve.Lime at state.mn.us] Sent: Monday, May 07, 2012 9:43 AM To: Johan Forsman; Donald Kerr; mapserver-users at lists.osgeo.org Subject: RE: [mapserver-users] Truetype font rendering changes? Is that test case available someplace? -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Johan Forsman Sent: Monday, May 07, 2012 8:32 AM To: Donald Kerr; mapserver-users at lists.osgeo.org Subject: RE: [mapserver-users] Truetype font rendering changes? Thank you for the suggestion however I regret to report that there is no discernible difference in the appearance of the text when using cairopng in the Windows environment. I have also created a test case using MS6 on the same Linux server (but outside the FGS95 environment) as my MS5.4 and the text is rendered exactly the same as on the Windows platform, with the same reduced legibility. Thanks, Johan. -----Original Message----- From: Donald Kerr [mailto:donald.kerr at dkerr.co.uk] Sent: Thursday, May 03, 2012 12:39 PM To: Johan Forsman; mapserver-users at lists.osgeo.org Subject: RE: [mapserver-users] Truetype font rendering changes? Johan, Have you tried "cairopng" as an alternative to AGG? Regards, Donald -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Johan Forsman Sent: 03 May 2012 16:07 To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] Truetype font rendering changes? Hello All: I am in the process of migrating from MapServer 5.4 (FGS95 on Linux) to MapServer 6 (MS4W3 on Windows Server 2008 R2). Most things are migrating well however I have a peculiar TrueType font rendering issue where the readability on the new system is far less than on the old system. I have attached two screenshots taken at the same scale to illustrate the issue. In these images the parish labels are Arial Bold Italic 6 pt., the interstate shields are Arial 8 pt., and US highway shields are Arial Narrow 7 pt. The TTF files and the MAP files were copied directly from the old system to the new system. I have tried with antialias on and off in the label definition and with a couple of different AGG image output formats but there are no visible differences. I would really appreciate any suggestions or pointers where to investigate. Thanks! Johan Forsman Geologist Engineering Services LDHH-OPH-CEHS 225.342.7309 _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -------------- next part -------------- A non-text attachment was scrubbed... Name: ms60_linux2.PNG Type: image/png Size: 3539 bytes Desc: ms60_linux2.PNG URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: ms54_linux2.PNG Type: image/png Size: 3880 bytes Desc: ms54_linux2.PNG URL: From sam at planyukon.ca Mon May 7 08:31:36 2012 From: sam at planyukon.ca (sam at planyukon.ca) Date: 7 May 2012 08:31:36 -0700 Subject: [mapserver-users] Re: mapserver-users Digest, Vol 52, Issue 10 Message-ID: <20120507153136.11358.qmail@polarhosting.ca> Sorry I missed you, but I am on parental leave until May 14th. Urgent YLUPC business can be sent to the YLUPC director at ron at planyukon.ca. From Steve.Lime at state.mn.us Mon May 7 08:49:42 2012 From: Steve.Lime at state.mn.us (Lime, Steve D (DNR)) Date: Mon, 7 May 2012 15:49:42 +0000 Subject: [mapserver-users] Truetype font rendering changes? In-Reply-To: <660F6AF362EE674B875E7BD4E289E2D8079EF215@MAILMBX06.MAIL.LA.GOV> References: <660F6AF362EE674B875E7BD4E289E2D80797CBC3@MAILMBX06.MAIL.LA.GOV> <6663AAC43666489DBA1B03A9BC7C0E21@DELLM4500> <660F6AF362EE674B875E7BD4E289E2D8079EF0BA@MAILMBX06.MAIL.LA.GOV> <660F6AF362EE674B875E7BD4E289E2D8079EF215@MAILMBX06.MAIL.LA.GOV> Message-ID: It looks like the effective size of the text has changed. What happens if you play with the font size in 6.0 and increase it a bit? -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Johan Forsman Sent: Monday, May 07, 2012 10:32 AM To: Lime, Steve D (DNR); Donald Kerr; mapserver-users at lists.osgeo.org Subject: RE: [mapserver-users] Truetype font rendering changes? No. Unfortunately none of the sites are accessible from the outside. The best I can do are screenshots. I attached two examples from the same Linux server. One is from the FGS95 (MS54) environment and the other (MS60) is under the "main" system environment. Both samples are of Arial Narrow 7 point, and the image is rendered using the following output format: OUTPUTFORMAT NAME 'agg_q' DRIVER AGG/PNG IMAGEMODE RGB FORMATOPTION "QUANTIZE_FORCE=ON" FORMATOPTION "QUANTIZE_DITHER=OFF" FORMATOPTION "QUANTIZE_COLORS=256" END I freely confess to not knowing much about the various output formats. This one I picked from the list some time long ago. I tried other formats also, both 8- and 24-bit and both the AGG and Cairo drivers, but I have not noticed any clear differences. Thanks for any suggestions and I'll be glad to collect additional information if needed. Johan. -----Original Message----- From: Lime, Steve D (DNR) [mailto:Steve.Lime at state.mn.us] Sent: Monday, May 07, 2012 9:43 AM To: Johan Forsman; Donald Kerr; mapserver-users at lists.osgeo.org Subject: RE: [mapserver-users] Truetype font rendering changes? Is that test case available someplace? -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Johan Forsman Sent: Monday, May 07, 2012 8:32 AM To: Donald Kerr; mapserver-users at lists.osgeo.org Subject: RE: [mapserver-users] Truetype font rendering changes? Thank you for the suggestion however I regret to report that there is no discernible difference in the appearance of the text when using cairopng in the Windows environment. I have also created a test case using MS6 on the same Linux server (but outside the FGS95 environment) as my MS5.4 and the text is rendered exactly the same as on the Windows platform, with the same reduced legibility. Thanks, Johan. -----Original Message----- From: Donald Kerr [mailto:donald.kerr at dkerr.co.uk] Sent: Thursday, May 03, 2012 12:39 PM To: Johan Forsman; mapserver-users at lists.osgeo.org Subject: RE: [mapserver-users] Truetype font rendering changes? Johan, Have you tried "cairopng" as an alternative to AGG? Regards, Donald -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Johan Forsman Sent: 03 May 2012 16:07 To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] Truetype font rendering changes? Hello All: I am in the process of migrating from MapServer 5.4 (FGS95 on Linux) to MapServer 6 (MS4W3 on Windows Server 2008 R2). Most things are migrating well however I have a peculiar TrueType font rendering issue where the readability on the new system is far less than on the old system. I have attached two screenshots taken at the same scale to illustrate the issue. In these images the parish labels are Arial Bold Italic 6 pt., the interstate shields are Arial 8 pt., and US highway shields are Arial Narrow 7 pt. The TTF files and the MAP files were copied directly from the old system to the new system. I have tried with antialias on and off in the label definition and with a couple of different AGG image output formats but there are no visible differences. I would really appreciate any suggestions or pointers where to investigate. Thanks! Johan Forsman Geologist Engineering Services LDHH-OPH-CEHS 225.342.7309 _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From woodbri at swoodbridge.com Mon May 7 08:56:49 2012 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Mon, 07 May 2012 11:56:49 -0400 Subject: [mapserver-users] Truetype font rendering changes? In-Reply-To: <660F6AF362EE674B875E7BD4E289E2D8079EF215@MAILMBX06.MAIL.LA.GOV> References: <660F6AF362EE674B875E7BD4E289E2D80797CBC3@MAILMBX06.MAIL.LA.GOV> <6663AAC43666489DBA1B03A9BC7C0E21@DELLM4500> <660F6AF362EE674B875E7BD4E289E2D8079EF0BA@MAILMBX06.MAIL.LA.GOV> <660F6AF362EE674B875E7BD4E289E2D8079EF215@MAILMBX06.MAIL.LA.GOV> Message-ID: <4FA7F0C1.1060003@swoodbridge.com> Johan, You need to provide a simple test case if you want a developer to help diagnose this problem. I would suggest creating a simple mapfile that draws a single label like the following. Adjust it to your needs MAP SIZE 100 100 EXTENT 100 100 UNITS inches FONTSET "fontset.txt" IMAGETYPE ... OUTPUTFORMAT ... END LAYER TYPE POINT STATUS DEFAULT FEATURE POINTS 50 50 END END CLASS STYLE SYMBOL 0 COLOR 0 0 0 END TEXT "123" LABEL TYPE TRUETYPE FONT "arial-narrow" SIZE 7 COLOR 0 0 0 END END END END Test this on both servers. Also make sure you are using the same font file, ie copy it to your test example directory and create a new fontset.txt that only have this single font referenced in it. If you still get different results, then tar/zip up the test example and email it to Steve L or me and I will make it available as a link if you can post a link to it. -Steve W On 5/7/2012 11:31 AM, Johan Forsman wrote: > No. Unfortunately none of the sites are accessible from the outside. The best I can do are screenshots. > > I attached two examples from the same Linux server. One is from the FGS95 (MS54) environment and the other (MS60) is under the "main" system environment. Both samples are of Arial Narrow 7 point, and the image is rendered using the following output format: > > OUTPUTFORMAT > NAME 'agg_q' > DRIVER AGG/PNG > IMAGEMODE RGB > FORMATOPTION "QUANTIZE_FORCE=ON" > FORMATOPTION "QUANTIZE_DITHER=OFF" > FORMATOPTION "QUANTIZE_COLORS=256" > END > > I freely confess to not knowing much about the various output formats. This one I picked from the list some time long ago. I tried other formats also, both 8- and 24-bit and both the AGG and Cairo drivers, but I have not noticed any clear differences. > > Thanks for any suggestions and I'll be glad to collect additional information if needed. > > Johan. > > -----Original Message----- > From: Lime, Steve D (DNR) [mailto:Steve.Lime at state.mn.us] > Sent: Monday, May 07, 2012 9:43 AM > To: Johan Forsman; Donald Kerr; mapserver-users at lists.osgeo.org > Subject: RE: [mapserver-users] Truetype font rendering changes? > > Is that test case available someplace? > > -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Johan Forsman > Sent: Monday, May 07, 2012 8:32 AM > To: Donald Kerr; mapserver-users at lists.osgeo.org > Subject: RE: [mapserver-users] Truetype font rendering changes? > > Thank you for the suggestion however I regret to report that there is no discernible difference in the appearance of the text when using cairopng in the Windows environment. I have also created a test case using MS6 on the same Linux server (but outside the FGS95 environment) as my MS5.4 and the text is rendered exactly the same as on the Windows platform, with the same reduced legibility. > > Thanks, > Johan. > > -----Original Message----- > From: Donald Kerr [mailto:donald.kerr at dkerr.co.uk] > Sent: Thursday, May 03, 2012 12:39 PM > To: Johan Forsman; mapserver-users at lists.osgeo.org > Subject: RE: [mapserver-users] Truetype font rendering changes? > > Johan, > > Have you tried "cairopng" as an alternative to AGG? > > Regards, > > Donald > > > -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Johan Forsman > Sent: 03 May 2012 16:07 > To: mapserver-users at lists.osgeo.org > Subject: [mapserver-users] Truetype font rendering changes? > > > Hello All: > > I am in the process of migrating from MapServer 5.4 (FGS95 on Linux) to MapServer 6 (MS4W3 on Windows Server 2008 R2). Most things are migrating well however I have a peculiar TrueType font rendering issue where the readability on the new system is far less than on the old system. I have attached two screenshots taken at the same scale to illustrate the issue. In these images the parish labels are Arial Bold Italic 6 pt., the interstate shields are Arial 8 pt., and US highway shields are Arial Narrow 7 pt. The TTF files and the MAP files were copied directly from the old system to the new system. I have tried with antialias on and off in the label definition and with a couple of different AGG image output formats but there are no visible differences. > > I would really appreciate any suggestions or pointers where to investigate. > > Thanks! > Johan Forsman > Geologist > Engineering Services > LDHH-OPH-CEHS > 225.342.7309 > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From Steve.Lime at state.mn.us Mon May 7 10:37:13 2012 From: Steve.Lime at state.mn.us (Lime, Steve D (DNR)) Date: Mon, 7 May 2012 17:37:13 +0000 Subject: [mapserver-users] polygon border artifacts In-Reply-To: References: Message-ID: I tried locally and it's definitely a rendering artifact related to anti-aliasing. Should an outline always be drawn? -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Sven Geggus Sent: Friday, May 04, 2012 6:04 AM To: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] polygon border artifacts thomas bonfort wrote: > with a recentish version of mapserver, try setting PROCESSING > "APPROXIMATION_SCALE=FULL" > on your ocean layer, to avoid feature simplification (it will slow > down the rendering if the resolution of your data is much greater than > the resolution of the requested map). Hm. Looking at the sources 6.0.1 seems to be recent enough, but unfortunately this does not seem to fix the problem. Regards Sven -- Den Rechtsstaat macht aus, dass Unschuldige wieder frei kommen (Wolfgang Sch?uble) /me is giggls at ircnet, http://sven.gegg.us/ on the Web _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From David.Fawcett at state.mn.us Mon May 7 10:49:12 2012 From: David.Fawcett at state.mn.us (Fawcett, David (MPCA)) Date: Mon, 7 May 2012 17:49:12 +0000 Subject: [mapserver-users] elevation profile In-Reply-To: <48419365-47D9-4234-8B0E-9ED282CCEF08@gmail.com> References: <1335551802.99354.YahooMailClassic@web160705.mail.bf1.yahoo.com> <48419365-47D9-4234-8B0E-9ED282CCEF08@gmail.com> Message-ID: Thanks Puneet. Very nice looking app. -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Mr. Puneet Kishor Sent: Saturday, May 05, 2012 1:15 PM To: mapserver Subject: Re: [mapserver-users] elevation profile The elevation profile widget is finally implemented at http://earth-base.org/geomaps Click on the fourth button from the top on the left, then draw a line on the map to see the profile. As with all my apps, the values themselves can be retrieved by querying for them directly from the browser or from the command line. For example http://earth-base.org/geomaps/elevation.json?linestring=LINESTRING(-118.706+37.933%2C-109.477+42.494) This one is dedicated to Steve Woodbridge, Brent Wood and David Fawcett. > .. -- Puneet Kishor_______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From Jukka.Rahkonen at mmmtike.fi Mon May 7 11:04:58 2012 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Mon, 7 May 2012 18:04:58 +0000 Subject: [mapserver-users] polygon border artifacts In-Reply-To: References: , Message-ID: <84446DEF76453C439E9E97E438E13A6314D1D0@suutari.haapa.mmm.fi> Hi, Perhaps it is mostly an AGG issue because I think that Mapnik makes similar artifacts too. See Corine landuse polygons here http://www.openstreetmap.org/?lat=60.820709&lon=27.201925&zoom=18&layers=M Sea areas do not have artifacts in OSM because sea is just background colour and is is not rendered at all from any data. But I do not know what Mapnik is doing with the land polygons. I cannot see artifacts between them in OMS maps. -Jukka Rahkonen- Lime, Steve D wrote: > I tried locally and it's definitely a rendering artifact related to anti-aliasing. Should an outline always be drawn? > -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf > Of Sven Geggus > Sent: Friday, May 04, 2012 6:04 AM > To: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] polygon border artifacts thomas bonfort wrote: > with a recentish version of mapserver, try setting PROCESSING > "APPROXIMATION_SCALE=FULL" > on your ocean layer, to avoid feature simplification (it will slow > down the rendering if the resolution of your data is much greater than > the resolution of the requested map). Hm. Looking at the sources 6.0.1 seems to be recent enough, but unfortunately this does not seem to fix the problem. Regards Sven -- Den Rechtsstaat macht aus, dass Unschuldige wieder frei kommen (Wolfgang Sch?uble) /me is giggls at ircnet, http://sven.gegg.us/ on the Web _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From krassovskimb at ornl.gov Mon May 7 11:13:24 2012 From: krassovskimb at ornl.gov (Krassovski, Misha B.) Date: Mon, 7 May 2012 14:13:24 -0400 Subject: [mapserver-users] Mapserver + mapcache + Google Map Message-ID: I work on a project that has 4.5 mil points (each one is a single dot, with lat, lon), that have to be shown on the world map. I managed to do it with mapserver (wms) + Google map. It works fine, but very slow, so I decided to add a mapcache caching system. Spend already a week but still can't get it work. Please take a look at error messages and my map and mapcache files. Thank you in advance for the help!! Here are error messages that I have. In Firebug console: "NetworkError: 404 Not Found - http://cdiac5.ornl.gov/cgi-bin/mapcache/gmaps/test at g/2/-1/1.png" "NetworkError: 404 Not Found - http://cdiac5.ornl.gov/cgi-bin/mapcache/gmaps/test at g/2/-1/2.png" "NetworkError: 502 Bad Gateway - http://cdiac5.ornl.gov/cgi-bin/mapcache/gmaps/test at g/2/0/2.png" "NetworkError: 500 Internal Server Error - http://cdiac5.ornl.gov/cgi-bin/mapcache/gmaps/test at g/2/0/1.png" "NetworkError: 502 Bad Gateway - http://cdiac5.ornl.gov/cgi-bin/mapcache/gmaps/test at g/2/1/1.png" "NetworkError: 502 Bad Gateway - http://cdiac5.ornl.gov/cgi-bin/mapcache/gmaps/test at g/2/0/3.png" and so on ?.. In apache log: [Mon May 07 13:54:32 2012] [error] [client 160.91.28.61] tile x=-1 not in [0,4[, referer: http://cdiac5.ornl.gov/waves/underway/test.html [Mon May 07 13:54:32 2012] [error] [client 160.91.28.61] mapcache fcgi conf file: /var/www/mapcache/mapcache.xml, referer: http://cdiac5.ornl.gov/waves/underway/test.html [Mon May 07 13:54:32 2012] [error] [client 160.91.28.61] tile x=-1 not in [0,4[, referer: http://cdiac5.ornl.gov/waves/underway/test.html [Mon May 07 13:54:32 2012] [error] [client 160.91.28.61] curl failed to request url http://localhost/cgi-bin/mapserv?map=/var/www/html/waves/underway/maps/test.map&VERSION=1.1.1&REQUEST=GetMap&SERVICE=WMS&STYLES=&BBOX=-20428865.927609,-20428865.927609,20428865.927609,20428865.927609&WIDTH=1044&HEIGHT=1044&FORMAT=image/png&SRS=EPSG:900913&LAYERS=atl_ind&TRANSPARENT=true : Failed to connect to ::1: Permission denied, referer: http://cdiac5.ornl.gov/waves/underway/test.html [Mon May 07 13:54:32 2012] [error] [client 160.91.28.61] tileset test: unknown error (another thread/process failed to create the tile I was waiting for), referer: http://cdiac5.ornl.gov/waves/underway/test.html and so on ?? If I run just the failed url from apache log, it creates 1044x1044 image with a single point in the center, and gives no error messages. My mapfile: MAP NAME "underway_ai" DEBUG ON STATUS ON SIZE 970 715 EXTENT -180 -90 180 90 UNITS DD IMAGETYPE GIF SHAPEPATH "/var/www/html/waves/underway/images" WEB IMAGEPATH "/var/www/html/waves/tmp" IMAGEURL "tmp/" METADATA "ows_enable_request" "*" "wms_title" "Underway_ai" "wms_onlineresource" "http://cdiac5.ornl.gov/cgi-bin/mapserv?" "wms_srs" "epsg:900913" "wms_enable_request" "GetMap" END END PROJECTION "init=epsg:900913" END SYMBOL NAME "Dot" TYPE ELLIPSE POINTS 1 1 END FILLED TRUE END LAYER DEBUG ON CONNECTION "underway_ai.ovf" CONNECTIONTYPE OGR DATA "atl_ind" METADATA "wms_srs" "epsg:900913" "wms_title" "atl_ind" "wms_group_title" "test_group" "wms_exceptions_format" "application/vnd.ogc.se_xml" END NAME "atl_ind" PROJECTION "init=epsg:900913" END GROUP "atl_ind" SIZEUNITS PIXELS TYPE POINT STATUS ON TOLERANCE 0 TOLERANCEUNITS PIXELS CLASS STYLE SYMBOL "Dot" SIZE 2 COLOR 255 0 0 END END END END and my mapcache file: /var/www/mapcache/cache image/png atl_ind true http://localhost/cgi-bin/mapserv?map=/var/www/html/waves/underway/maps/test.map vmap0 disk WGS84 g GoogleMapsCompatible PNG 5 5 10 3600 vmap0 disk WGS84 g GoogleMapsCompatible PNG 5 5 10 3600 JPEG assemble bilinear JPEG 4096 report /var/www/mapcache/cache debug Thank you! Misha From Steve.Lime at state.mn.us Mon May 7 11:17:38 2012 From: Steve.Lime at state.mn.us (Lime, Steve D (DNR)) Date: Mon, 7 May 2012 18:17:38 +0000 Subject: [mapserver-users] polygon border artifacts In-Reply-To: <84446DEF76453C439E9E97E438E13A6314D1D0@suutari.haapa.mmm.fi> References: , <84446DEF76453C439E9E97E438E13A6314D1D0@suutari.haapa.mmm.fi> Message-ID: The artifacts are more or less prominent depending on the color something is drawn over. I think it's a result of the analytic anti-aliasing done by AGG. I had read a thread once that talked about it, I recall it being most prominent with horizontal and vertical lines. In the example Sven provided if you change the IMAGE color also to blue you don't see any artifacts between ocean polys, although of course you don't see the islands, so the artifacts is related to anti-aliasing blue on red. A different background might make it more subtle. The work around is easy enough, draw an outline, although I don't know why anti-aliasing associated with that rendering doesn't itself produce an artifact. Steve -----Original Message----- From: Rahkonen Jukka [mailto:Jukka.Rahkonen at mmmtike.fi] Sent: Monday, May 07, 2012 1:05 PM To: Lime, Steve D (DNR); Sven Geggus; mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] polygon border artifacts Hi, Perhaps it is mostly an AGG issue because I think that Mapnik makes similar artifacts too. See Corine landuse polygons here http://www.openstreetmap.org/?lat=60.820709&lon=27.201925&zoom=18&layers=M Sea areas do not have artifacts in OSM because sea is just background colour and is is not rendered at all from any data. But I do not know what Mapnik is doing with the land polygons. I cannot see artifacts between them in OMS maps. -Jukka Rahkonen- Lime, Steve D wrote: > I tried locally and it's definitely a rendering artifact related to anti-aliasing. Should an outline always be drawn? > -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf > Of Sven > Geggus > Sent: Friday, May 04, 2012 6:04 AM > To: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] polygon border artifacts thomas bonfort wrote: > with a recentish version of mapserver, try setting PROCESSING > "APPROXIMATION_SCALE=FULL" > on your ocean layer, to avoid feature simplification (it will slow > down the rendering if the resolution of your data is much greater than > the resolution of the requested map). Hm. Looking at the sources 6.0.1 seems to be recent enough, but unfortunately this does not seem to fix the problem. Regards Sven -- Den Rechtsstaat macht aus, dass Unschuldige wieder frei kommen (Wolfgang Sch?uble) /me is giggls at ircnet, http://sven.gegg.us/ on the Web _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From lists at fuchsschwanzdomain.de Mon May 7 11:47:20 2012 From: lists at fuchsschwanzdomain.de (Sven Geggus) Date: Mon, 7 May 2012 18:47:20 +0000 (UTC) Subject: [mapserver-users] Re: polygon border artifacts References: Message-ID: "Lime, Steve D (DNR)" wrote: > I tried locally and it's definitely a rendering artifact related to anti-aliasing. The artifact is getting worse in lower zoom levels (smaller islands). I just tried a huge overlap of the polygons which made it better but did not make it disapear also. So the workaround could be to find the perfect combination of outlinewidth (as small as possible) and overlap factor (also as small as possible). > Should an outline always be drawn? Tiled ocean polygons like I have them should be the perfect example where an outline just does not make sense. One would probably want to have an outline on the coastline but not on polygon borders. Something one would need to render from a separate linestring layer anyway. Regards Sven -- "If you don't make lower-resolution mapping data publicly available, there will be people with their cars and GPS devices, driving around with their laptops" (Tim Berners-Lee) /me is giggls at ircnet, http://sven.gegg.us/ on the Web From traviskirstine at gmail.com Mon May 7 12:37:51 2012 From: traviskirstine at gmail.com (Travis Kirstine) Date: Mon, 7 May 2012 15:37:51 -0400 Subject: [mapserver-users] Mapserver + mapcache + Google Map In-Reply-To: References: Message-ID: Does apache have permission to write to the mapcache directory "/var/www/mapcache/cache"? On 7 May 2012 14:13, Krassovski, Misha B. wrote: > I work on a project that has 4.5 mil points (each one is a single dot, with lat, lon), ?that have to be shown on the world map. > I managed to do it with mapserver (wms) + Google map. It works fine, but very slow, so I decided to add a mapcache caching system. > Spend already a week but still can't get it work. Please take a look at error messages and my map and mapcache files. > Thank you in advance for the help!! > > > Here are error messages that I have. > In Firebug console: > "NetworkError: 404 Not Found - http://cdiac5.ornl.gov/cgi-bin/mapcache/gmaps/test at g/2/-1/1.png" > "NetworkError: 404 Not Found - http://cdiac5.ornl.gov/cgi-bin/mapcache/gmaps/test at g/2/-1/2.png" > "NetworkError: 502 Bad Gateway - http://cdiac5.ornl.gov/cgi-bin/mapcache/gmaps/test at g/2/0/2.png" > "NetworkError: 500 Internal Server Error - http://cdiac5.ornl.gov/cgi-bin/mapcache/gmaps/test at g/2/0/1.png" > "NetworkError: 502 Bad Gateway - http://cdiac5.ornl.gov/cgi-bin/mapcache/gmaps/test at g/2/1/1.png" > "NetworkError: 502 Bad Gateway - http://cdiac5.ornl.gov/cgi-bin/mapcache/gmaps/test at g/2/0/3.png" > and so on ?.. > > In apache log: > [Mon May 07 13:54:32 2012] [error] [client 160.91.28.61] tile x=-1 not in [0,4[, referer: http://cdiac5.ornl.gov/waves/underway/test.html > [Mon May 07 13:54:32 2012] [error] [client 160.91.28.61] mapcache fcgi conf file: /var/www/mapcache/mapcache.xml, referer: http://cdiac5.ornl.gov/waves/underway/test.html > [Mon May 07 13:54:32 2012] [error] [client 160.91.28.61] tile x=-1 not in [0,4[, referer: http://cdiac5.ornl.gov/waves/underway/test.html > [Mon May 07 13:54:32 2012] [error] [client 160.91.28.61] curl failed to request url http://localhost/cgi-bin/mapserv?map=/var/www/html/waves/underway/maps/test.map&VERSION=1.1.1&REQUEST=GetMap&SERVICE=WMS&STYLES=&BBOX=-20428865.927609,-20428865.927609,20428865.927609,20428865.927609&WIDTH=1044&HEIGHT=1044&FORMAT=image/png&SRS=EPSG:900913&LAYERS=atl_ind&TRANSPARENT=true : Failed to connect to ::1: Permission denied, referer: http://cdiac5.ornl.gov/waves/underway/test.html > [Mon May 07 13:54:32 2012] [error] [client 160.91.28.61] tileset test: unknown error (another thread/process failed to create the tile I was waiting for), referer: http://cdiac5.ornl.gov/waves/underway/test.html > and so on ?? > > If I run just the failed url from apache log, it creates 1044x1044 image with a single point in the center, and gives no error messages. > > My mapfile: > MAP > ?NAME "underway_ai" > ?DEBUG ON > ?STATUS ON > ?SIZE 970 715 > ?EXTENT -180 -90 180 90 > ?UNITS DD > ?IMAGETYPE GIF > ?SHAPEPATH "/var/www/html/waves/underway/images" > > ?WEB > ? ?IMAGEPATH "/var/www/html/waves/tmp" > ? ?IMAGEURL "tmp/" > ? ?METADATA > ? ? ? ?"ows_enable_request" "*" > ? ? ? ?"wms_title" "Underway_ai" > ? ? ? ?"wms_onlineresource" "http://cdiac5.ornl.gov/cgi-bin/mapserv?" > ? ? ? ?"wms_srs" "epsg:900913" > ? ? ? ?"wms_enable_request" "GetMap" > ? ?END > ?END > > ?PROJECTION > ? ?"init=epsg:900913" > ?END > > ?SYMBOL > ? ?NAME "Dot" > ? ?TYPE ELLIPSE > ? ?POINTS 1 1 END > ? ?FILLED TRUE > ?END > > ?LAYER > ? ?DEBUG ON > ? ?CONNECTION "underway_ai.ovf" > ? ?CONNECTIONTYPE OGR > ? ?DATA "atl_ind" > ? ?METADATA > ? ? ? ?"wms_srs" "epsg:900913" > ? ? ? ?"wms_title" "atl_ind" > ? ? ? ?"wms_group_title" "test_group" > ? ? ? ?"wms_exceptions_format" "application/vnd.ogc.se_xml" > ? ?END > ? ?NAME "atl_ind" > > ? ?PROJECTION > ? ? ? ?"init=epsg:900913" > ? ?END > ? ?GROUP "atl_ind" > ? ?SIZEUNITS PIXELS > ? ?TYPE POINT > ? ?STATUS ON > ? ?TOLERANCE 0 > ? ?TOLERANCEUNITS PIXELS > ? ?CLASS > ? ? ?STYLE > ? ? ? ?SYMBOL "Dot" > ? ? ? ?SIZE 2 > ? ? ? ?COLOR 255 0 0 > ? ? ?END > ? ?END > ?END > > END > > and my mapcache file: > > ? > ? ? ?/var/www/mapcache/cache > ? ? ? > ? > > ? > ? ? ? > ? ? ? ? > ? ? ? ? ? ?image/png > ? ? ? ? ? ?atl_ind > ? ? ? ? ? ?true > ? ? ? ? > ? ? ? > > ? ? ? > ? ? ? ? http://localhost/cgi-bin/mapserv?map=/var/www/html/waves/underway/maps/test.map > ? ? ? > ? > ? > ? ? ?vmap0 > ? ? ?disk > ? ? ?WGS84 > ? ? ?g > ? ? ?GoogleMapsCompatible > ? ? ?PNG > ? ? ?5 5 > ? ? ?10 > ? ? ?3600 > ? > ? > ? ? ?vmap0 > ? ? ?disk > ? ? ?WGS84 > ? ? ?g > ? ? ?GoogleMapsCompatible > ? ? ?PNG > ? ? ?5 5 > ? ? ?10 > ? ? ?3600 > ? > ? JPEG > ? > ? ? ?assemble > ? ? ?bilinear > ? ? ?JPEG > ? ? ?4096 > ? > ? > ? > ? > ? > ? > ? > > ? report > ? /var/www/mapcache/cache > ? debug > > > > > > > Thank you! > Misha > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From krassovskimb at ornl.gov Mon May 7 12:48:46 2012 From: krassovskimb at ornl.gov (mkrassovski) Date: Mon, 7 May 2012 12:48:46 -0700 (PDT) Subject: [mapserver-users] Re: Mapserver + mapcache + Google Map In-Reply-To: References: Message-ID: <1336420126718-4958632.post@n6.nabble.com> Travis, thank you, for the reply. Yes, it does. I double checked it. Misha -- View this message in context: http://osgeo-org.1560.n6.nabble.com/Mapserver-mapcache-Google-Map-tp4958439p4958632.html Sent from the Mapserver - User mailing list archive at Nabble.com. From woodbri at swoodbridge.com Mon May 7 13:55:27 2012 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Mon, 07 May 2012 16:55:27 -0400 Subject: [mapserver-users] Truetype font rendering changes? In-Reply-To: <660F6AF362EE674B875E7BD4E289E2D8079EF4B5@MAILMBX06.MAIL.LA.GOV> References: <660F6AF362EE674B875E7BD4E289E2D80797CBC3@MAILMBX06.MAIL.LA.GOV> <6663AAC43666489DBA1B03A9BC7C0E21@DELLM4500> <660F6AF362EE674B875E7BD4E289E2D8079EF0BA@MAILMBX06.MAIL.LA.GOV> <660F6AF362EE674B875E7BD4E289E2D8079EF215@MAILMBX06.MAIL.LA.GOV> <4FA7F0C1.1060003@swoodbridge.com> <660F6AF362EE674B875E7BD4E289E2D8079EF4B5@MAILMBX06.MAIL.LA.GOV> Message-ID: <4FA836BF.4030305@swoodbridge.com> Hello Johan, I have created bug #4308 https://github.com/mapserver/mapserver/issues/4308 and put a link to your tar file on my server. Thank you for taking the time to create a simple test case, I'm sure this will accelerate getting it resolved. -Steve W On 5/7/2012 4:06 PM, Johan Forsman wrote: > Hello Steve and thanks. > > I adapted your example and packaged a small test case following your > instructions. It's attached. I ran it with MS54 under FGS95 on Linux > and also with MS60 under the "main" environment on the same server, > as well as with MS60 under MS4W3 on Windows Server 3008. I see the > same rendering differences as in my general case originally reported. > I hope the attachment provides the data you need. > > Thanks again, Johan. > > -----Original Message----- From: > mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Stephen > Woodbridge Sent: Monday, May 07, 2012 10:57 AM To: > mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] > Truetype font rendering changes? > > Johan, > > You need to provide a simple test case if you want a developer to > help diagnose this problem. > > I would suggest creating a simple mapfile that draws a single label > like the following. Adjust it to your needs > > MAP SIZE 100 100 EXTENT 100 100 UNITS inches FONTSET "fontset.txt" > IMAGETYPE ... > > OUTPUTFORMAT ... END > > LAYER TYPE POINT STATUS DEFAULT FEATURE POINTS 50 50 END END CLASS > STYLE SYMBOL 0 COLOR 0 0 0 END TEXT "123" LABEL TYPE TRUETYPE FONT > "arial-narrow" SIZE 7 COLOR 0 0 0 END END END END > > Test this on both servers. Also make sure you are using the same font > file, ie copy it to your test example directory and create a new > fontset.txt that only have this single font referenced in it. If you > still get different results, then tar/zip up the test example and > email it to Steve L or me and I will make it available as a link if > you can post a link to it. > > -Steve W > > On 5/7/2012 11:31 AM, Johan Forsman wrote: >> No. Unfortunately none of the sites are accessible from the >> outside. The best I can do are screenshots. >> >> I attached two examples from the same Linux server. One is from the >> FGS95 (MS54) environment and the other (MS60) is under the "main" >> system environment. Both samples are of Arial Narrow 7 point, and >> the image is rendered using the following output format: >> >> OUTPUTFORMAT NAME 'agg_q' DRIVER AGG/PNG IMAGEMODE RGB FORMATOPTION >> "QUANTIZE_FORCE=ON" FORMATOPTION "QUANTIZE_DITHER=OFF" FORMATOPTION >> "QUANTIZE_COLORS=256" END >> >> I freely confess to not knowing much about the various output >> formats. This one I picked from the list some time long ago. I >> tried other formats also, both 8- and 24-bit and both the AGG and >> Cairo drivers, but I have not noticed any clear differences. >> >> Thanks for any suggestions and I'll be glad to collect additional >> information if needed. >> >> Johan. >> >> -----Original Message----- From: Lime, Steve D (DNR) >> [mailto:Steve.Lime at state.mn.us] Sent: Monday, May 07, 2012 9:43 AM >> To: Johan Forsman; Donald Kerr; mapserver-users at lists.osgeo.org >> Subject: RE: [mapserver-users] Truetype font rendering changes? >> >> Is that test case available someplace? >> >> -----Original Message----- From: >> mapserver-users-bounces at lists.osgeo.org >> [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of >> Johan Forsman Sent: Monday, May 07, 2012 8:32 AM To: Donald Kerr; >> mapserver-users at lists.osgeo.org Subject: RE: [mapserver-users] >> Truetype font rendering changes? >> >> Thank you for the suggestion however I regret to report that there >> is no discernible difference in the appearance of the text when >> using cairopng in the Windows environment. I have also created a >> test case using MS6 on the same Linux server (but outside the FGS95 >> environment) as my MS5.4 and the text is rendered exactly the same >> as on the Windows platform, with the same reduced legibility. >> >> Thanks, Johan. >> >> -----Original Message----- From: Donald Kerr >> [mailto:donald.kerr at dkerr.co.uk] Sent: Thursday, May 03, 2012 12:39 >> PM To: Johan Forsman; mapserver-users at lists.osgeo.org Subject: RE: >> [mapserver-users] Truetype font rendering changes? >> >> Johan, >> >> Have you tried "cairopng" as an alternative to AGG? >> >> Regards, >> >> Donald >> >> >> -----Original Message----- From: >> mapserver-users-bounces at lists.osgeo.org >> [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of >> Johan Forsman Sent: 03 May 2012 16:07 To: >> mapserver-users at lists.osgeo.org Subject: [mapserver-users] Truetype >> font rendering changes? >> >> >> Hello All: >> >> I am in the process of migrating from MapServer 5.4 (FGS95 on >> Linux) to MapServer 6 (MS4W3 on Windows Server 2008 R2). Most >> things are migrating well however I have a peculiar TrueType font >> rendering issue where the readability on the new system is far less >> than on the old system. I have attached two screenshots taken at >> the same scale to illustrate the issue. In these images the parish >> labels are Arial Bold Italic 6 pt., the interstate shields are >> Arial 8 pt., and US highway shields are Arial Narrow 7 pt. The TTF >> files and the MAP files were copied directly from the old system to >> the new system. I have tried with antialias on and off in the label >> definition and with a couple of different AGG image output formats >> but there are no visible differences. >> >> I would really appreciate any suggestions or pointers where to >> investigate. >> >> Thanks! Johan Forsman Geologist Engineering Services LDHH-OPH-CEHS >> 225.342.7309 >> >> >> >> _______________________________________________ mapserver-users >> mailing list mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> >> >> >> >> >> _______________________________________________ mapserver-users >> mailing list mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users > > _______________________________________________ mapserver-users > mailing list mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From anajera at bicimapas.com.mx Mon May 7 17:06:32 2012 From: anajera at bicimapas.com.mx (Alberto Najera) Date: Mon, 7 May 2012 19:06:32 -0500 Subject: [mapserver-users] Mapserver layer over Google Maps In-Reply-To: <1ECBE51E-1662-4C47-9C56-83BEBB2EC77B@coin.hr> References: <000001cd2bf1$6775f9b0$3661ed10$@com.mx> <1ECBE51E-1662-4C47-9C56-83BEBB2EC77B@coin.hr> Message-ID: <008a01cd2cae$6ea2b120$4be81360$@com.mx> Dejan, What I was missing was adding the maxExtent parameters in the map object using the Spherical Mercator values. As soon as I added them, it worked. The article you referenced is very good. Thanks Alberto Najera www.bicimapas.com.mx www.bicimapas.com.mx/Empresa.htm Avenida Lomas Verdes No. 58, Local 17 Colonia Santa Cruz Acatl?n Naucalpan, Estado de M?xico M?xico CP 53150 Tel: (55) 53 60 30 65 anajera at bicimapas.com.mx ? B?scanos como Bicimapas ? -----Mensaje original----- De: Dejan Gambin [mailto:dejan.gambin at coin.hr] Enviado el: lunes, 07 de mayo de 2012 01:20 a.m. Para: Alberto Najera CC: mapserver-users at lists.osgeo.org Asunto: Re: [mapserver-users] Mapserver layer over Google Maps Alberto, I found this VERY useful: http://geographika.co.uk/mapserver-openlayers-and-the-wfs-maze I think you should put EPSG:3857 on the first place in wms_srs regards, dejan On 7. svi. 2012., at 03:33, Alberto Najera wrote: > Hello list, > > Using OpenLayers, I am trying to draw a Mapserver WMS layer on top of > Google Maps. I am aware of the Spherical Mercator projection and I am > trying to use the alias projection method described at the end of this > link > > http://docs.openlayers.org/library/spherical_mercator > > The mapserver layer is in Lat/Lon WGS84 (EPSG:4326) I have made some > progress so far and I can see the label of the object at full zoom, > but as I zoom in it does not show anymore and the feature does not > show either. > > Any help in finding the issue would be greatly appreciated. > > This is the relevant map file code: > > MAP > ........ > WEB > TEMPLATE "/home/bicimapas/www/bcmpms.html" > IMAGEPATH "/home/bicimapas/www/images/" > IMAGEURL "/images/" > METADATA > "wms_title" "BiciMapasMS" > "wms_onlineresource" > "http://my_host/cgi-bin/mapserv?map=/home/bicimapas/mapdata/BiciMapasM > S_Metr > o.map&" > "wms_srs" "EPSG:4326 EPSG:3857" > "wms_enable_request" "*" > END > END > > PROJECTION > "init=epsg:4326" > END > > LAYER > NAME "fibraoptica" > DATA "fibraoptica" > STATUS on > TYPE line > LABELCACHE on > LABELITEM "RASGO" > CLASSITEM "RASGO" > METADATA > "wms_title" "fibraoptica" > "wms_srs" "EPSG:4326" > "wms_include_items" "all" > END > CLASS > NAME "fibraoptica" > EXPRESSION "fibra" > #MAXSCALEDENOM 15000 > STYLE > WIDTH 4 > COLOR 0 0 0 > END > STYLE > WIDTH 2 > COLOR 255 0 0 > END > LABEL > TYPE truetype > FONT "Arial" > #MAXSCALEDENOM 15000 > ANTIALIAS true > SIZE 7 > OUTLINECOLOR 255 255 255 > COLOR 0 0 0 > POSITION cc > ANGLE follow > END # label trutype > END # class fibraoptica > END # layer fibraoptica > > END # mapfile > > And the OpenLayers code is: > > > > > > > > > > > > Thanks in advance > > Alberto Najera > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From sam at planyukon.ca Tue May 8 09:00:20 2012 From: sam at planyukon.ca (sam at planyukon.ca) Date: 8 May 2012 09:00:20 -0700 Subject: [mapserver-users] Re: mapserver-users Digest, Vol 52, Issue 13 Message-ID: <20120508160020.11414.qmail@polarhosting.ca> Sorry I missed you, but I am on parental leave until May 14th. Urgent YLUPC business can be sent to the YLUPC director at ron at planyukon.ca. From christoph.schumacher at pbs-schumacher.de Tue May 8 23:24:42 2012 From: christoph.schumacher at pbs-schumacher.de (Christoph Schumacher) Date: Wed, 9 May 2012 08:24:42 +0200 Subject: [mapserver-users] multiple transparent colours Message-ID: <6692ef3bb9edae3f4aaffd42e91e5153@www.pbs-intern.de> Hello everybody, I have a problem setting up my wms. I have multiple tiff images that have different colours to be set up as transparaent. With the offsite parameter I can only set one colour transparent. Now my question is: Is there a way to make various colour transparent?? best wishes and thank you very much christoph -------------- next part -------------- An HTML attachment was scrubbed... URL: From prab.raja at gmail.com Tue May 8 23:55:43 2012 From: prab.raja at gmail.com (Prabu Raja) Date: Wed, 9 May 2012 12:25:43 +0530 Subject: [mapserver-users] Problem with Variable Substitution for EXPRESSION In-Reply-To: References: <4EC3DA57.4040205@mapgears.com> <4ECBB344.1090905@gatewaygeomatics.com> Message-ID: Hi, I just wanted to update what solved my problem, it may help for somebody else. I had given the substitution variable inside parentheses and it worked. *Not working :* EXPRESSION ([TOTPOP1] >= %V1% AND [TOTPOP1] < %V2%) *Working : *EXPRESSION ([TOTPOP1] >= (%V1%) AND [TOTPOP1] < (%V2%)) I am using ms4w (tested with version 3 and version 3.0.4 ) from maptools.org. On Tue, Nov 22, 2011 at 8:56 PM, Lime, Steve D (DNR) wrote: > I'm going to try a copy of the mapfile here and see what happens... Will > report back later today. > > Steve > > -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org [mailto: > mapserver-users-bounces at lists.osgeo.org] On Behalf Of Jeff McKenna > Sent: Tuesday, November 22, 2011 8:36 AM > To: mapserver-users at lists.osgeo.org > Subject: Re: [mapserver-users] Problem with Variable Substitution for > EXPRESSION > > Hello, > > If I was in your situation, I would follow Steve's advice and test it > through the commandline (mapserv -nh QUERY_STRING="blah") to test your > request in normal CGI mode. > > Then if all else fails, create a very small one layer mapfile with a > tiny data file and package that with a requests.txt file, and submit > that to the MapServer Issue Tracker, or event point to it here on the list. > > -jeff > > > -- > Jeff McKenna > MapServer Consulting and Training Services > http://www.gatewaygeomatics.com/ > > > > > On 11-11-22 5:25 AM, Prabu Raja wrote: > > Hi Steve / Daniel, > > > > I am using ms4w from http://maptools.org/ms4w/index.phtml in Windows 7. > > > > Following is my map file content. > > > > MAP > > NAME ms_sql > > IMAGECOLOR 255 255 255 > > # default output image dimensions > > SIZE 256 256 > > # Is the map active? Sometimes you may wish to turn this off to > > # use only the reference map or scale bar. > > STATUS ON > > CONFIG "MS_ERRORFILE" "\var\Map\error.txt" > > DEBUG 0 > > # set top level projection > > PROJECTION > > "init=epsg:4326" > > END > > # image format options > > OUTPUTFORMAT > > NAME "png" > > DRIVER AGG/PNG > > MIMETYPE "image/png" > > IMAGEMODE RGBA > > EXTENSION "png" > > TRANSPARENT ON > > FORMATOPTION "GAMMA=0.75" > > END > > EXTENT -180 -90 180 90 # World > > > > LAYER > > VALIDATION > > 'V1' '^[-+]?[0-9]*\.?[0-9]+$' > > 'V2' '^[-+]?[0-9]*\.?[0-9]+$' > > 'V3' '^[-+]?[0-9]*\.?[0-9]+$' > > 'V4' '^[-+]?[0-9]*\.?[0-9]+$' > > 'V5' '^[-+]?[0-9]*\.?[0-9]+$' > > 'V6' '^[-+]?[0-9]*\.?[0-9]+$' > > END > > NAME "state" > > TYPE polygon > > STATUS ON > > CONNECTIONTYPE POSTGIS > > CONNECTION "host=localhost dbname=pollutionmap user=*** > > password=*** port=5432" > > DATA "wkb_geometry FROM (SELECT ogc_fid AS > > oid, wkb_geometry, totpop1 FROM state_tst) AS SUBQUERY using unique oid" > > PROCESSING "CLOSE_CONNECTION=DEFER" > > CLASSITEM "totpop1" > > OPACITY 100 > > CLASS > > EXPRESSION ([TOTPOP1] >= %V1% AND [TOTPOP1] < %V2%) > > STYLE > > COLOR 255 108 118 > > OUTLINECOLOR 255 255 255 > > END > > END > > CLASS > > EXPRESSION ([TOTPOP1] >= %V2% AND [TOTPOP1] < %V3%) > > STYLE > > COLOR 254 189 75 > > OUTLINECOLOR 255 255 255 > > END > > END > > CLASS > > EXPRESSION ([TOTPOP1] >= %V3% AND [TOTPOP1] < %V4%) > > STYLE > > COLOR 254 247 46 > > OUTLINECOLOR 255 255 255 > > END > > END > > CLASS > > EXPRESSION ([TOTPOP1] >= %V4% AND [TOTPOP1] < %V5%) > > STYLE > > COLOR 39 251 114 > > OUTLINECOLOR 255 255 255 > > END > > END > > CLASS > > EXPRESSION ([TOTPOP1] >= %V5% AND [TOTPOP1] <= %V6%) > > STYLE > > COLOR 108 111 205 > > OUTLINECOLOR 255 255 255 > > END > > END > > END > > END > > > > Below are the url's through I am trying to generate map > > > > > http://localhost/fcgi-bin/mapserv.exe?map=/var/Map/State.map&layers=state&mode=map&V1=60650.45&V2=33288104.54&V3=66515558.222&V4=99743012.123&V5=132970466.455&V6=166197921.245 > > < > http://localhost/fcgi-bin/mapserv.exe?map=/var/Map/State.map&layers=state&mode=map&V1=60650.45&V2=33288104.54&V3=66515558.222&V4=99743012.123&V5=132970466.455&V6=166197921.245 > > > > > > > http://localhost/fcgi-bin/mapserv.exe?map=/var/Map/State.map&layers=state&mode=map&V1=60650&V2=33288104&V3=66515558&V4=99743012&V5=132970466&V6=166197921 > > < > http://localhost/fcgi-bin/mapserv.exe?map=/var/Map/State.map&layers=state&mode=map&V1=60650&V2=33288104&V3=66515558&V4=99743012&V5=132970466&V6=166197921 > > > > > > > > Accessing through above 2 url gives '500 Internal Server Error'. > > No error message in mapserver log. > > > > Following error message logged in apache error log. > > [warn] [client 127.0.0.1] (OS 109)The pipe has been ended. : mod_fcgid: > > get overlap result error > > [error] [client 127.0.0.1] Premature end of script headers: mapserv.exe > > > > And following was logged in appache access log > > > > GET > > > /fcgi-bin/mapserv.exe?map=/var/Map/State.map&layers=state&mode=map&V1=60650.45&V2=33288104.54&V3=66515558.222&V4=99743012.123&V5=132970466.455&V6=166197921.245 > > HTTP/1.1" 500 533 > > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -- Regards, Prabu Raja -------------- next part -------------- An HTML attachment was scrubbed... URL: From fernando at globalgeo.com.br Wed May 9 05:25:14 2012 From: fernando at globalgeo.com.br (Fernando Norte) Date: Wed, 9 May 2012 09:25:14 -0300 Subject: [mapserver-users] multiple transparent colours In-Reply-To: <6692ef3bb9edae3f4aaffd42e91e5153@www.pbs-intern.de> References: <6692ef3bb9edae3f4aaffd42e91e5153@www.pbs-intern.de> Message-ID: Hi Christoph, I try to understand, how did you set the specific color to transparent in a TIFF? For raster you can set the level of transparency/opacity to the image not to a color. Att, *Fernando Norte* Desenvolvedor SIGWeb tel.(31) 2533.9900 cel.(31) 9119.8814 skype: fernandoglobalgeo Endere?o: Alameda do Ing?, 88, 6? andar, Vale do Sereno Nova Lima/MG - CEP: 34.000-000 www.globalgeo.com.br "O presente documento pode conter material confidencial ou seu sigilo ? protegido por lei. Quaisquer informa??es nele contida s?o destinadas exclusivamente ao(s) seu(s) destinat?rio(s) n?o devendo em nenhuma hip?tese ser repassado a terceiros". 2012/5/9 Christoph Schumacher > Hello everybody, > > I have a problem setting up my wms. > I have multiple tiff images that have different colours to be set up as > transparaent. > > With the offsite parameter I can only set one colour transparent. > > Now my question is: Is there a way to make various colour transparent?? > > > best wishes and thank you very much > > christoph > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From sam at planyukon.ca Wed May 9 05:25:40 2012 From: sam at planyukon.ca (sam at planyukon.ca) Date: 9 May 2012 05:25:40 -0700 Subject: [mapserver-users] Re: mapserver-users Digest, Vol 52, Issue 14 Message-ID: <20120509122540.25553.qmail@polarhosting.ca> Sorry I missed you, but I am on parental leave until May 14th. Urgent YLUPC business can be sent to the YLUPC director at ron at planyukon.ca. From Steve.Lime at state.mn.us Wed May 9 05:41:38 2012 From: Steve.Lime at state.mn.us (Lime, Steve D (DNR)) Date: Wed, 9 May 2012 12:41:38 +0000 Subject: [mapserver-users] Re: polygon border artifacts In-Reply-To: References: , Message-ID: When I think of why outlines don't make sense in this case it's because they further alter the coastline- that's all. We do all sorts of weird configuration to create certain visual effects. Drawing oceans to highlight land is an example in its own right. ;-) Do outlines fix things at all zoom levels? What about the possibility of fixing the data? I mean, unioning the ocean polys into one, or better yet deriving land polygons from that data. Steve ________________________________________ From: mapserver-users-bounces at lists.osgeo.org [mapserver-users-bounces at lists.osgeo.org] on behalf of Sven Geggus [lists at fuchsschwanzdomain.de] Sent: Monday, May 07, 2012 1:47 PM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] Re: polygon border artifacts "Lime, Steve D (DNR)" wrote: > I tried locally and it's definitely a rendering artifact related to anti-aliasing. The artifact is getting worse in lower zoom levels (smaller islands). I just tried a huge overlap of the polygons which made it better but did not make it disapear also. So the workaround could be to find the perfect combination of outlinewidth (as small as possible) and overlap factor (also as small as possible). > Should an outline always be drawn? Tiled ocean polygons like I have them should be the perfect example where an outline just does not make sense. One would probably want to have an outline on the coastline but not on polygon borders. Something one would need to render from a separate linestring layer anyway. Regards Sven -- "If you don't make lower-resolution mapping data publicly available, there will be people with their cars and GPS devices, driving around with their laptops" (Tim Berners-Lee) /me is giggls at ircnet, http://sven.gegg.us/ on the Web _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From traviskirstine at gmail.com Wed May 9 05:45:49 2012 From: traviskirstine at gmail.com (Travis Kirstine) Date: Wed, 9 May 2012 08:45:49 -0400 Subject: [mapserver-users] Re: Mapserver + mapcache + Google Map In-Reply-To: <1336420126718-4958632.post@n6.nabble.com> References: <1336420126718-4958632.post@n6.nabble.com> Message-ID: It appears that mapcache is trying to write to the grid "g" which is not defined. Are you looking to create tiles is a 900913 projection? I would try removing the WGS84 and g elements restarting / reload apache and see what happens (I'm not sure if a tileset can support multiple grids). Regards On 7 May 2012 15:48, mkrassovski wrote: > Travis, thank you, for the reply. > Yes, it does. I double checked it. > > Misha > > -- > View this message in context: http://osgeo-org.1560.n6.nabble.com/Mapserver-mapcache-Google-Map-tp4958439p4958632.html > Sent from the Mapserver - User mailing list archive at Nabble.com. > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From lists at fuchsschwanzdomain.de Wed May 9 06:18:10 2012 From: lists at fuchsschwanzdomain.de (Sven Geggus) Date: Wed, 9 May 2012 13:18:10 +0000 (UTC) Subject: [mapserver-users] Re: polygon border artifacts References: Message-ID: "Lime, Steve D (DNR)" wrote: > Do outlines fix things at all zoom levels? Not really. The Workaround which is working best for now is using a very big polygon Overlap of 100Meters (Talking about Google Mercator here) which I feel is way to much and an outline with of 1. To completely get rid of artifacts I would need an Outline width of 2, but this is not small enough IMO. > What about the possibility of fixing the data? The bug is clearly with mapserver here, the data is fine IMO. The tool used for generation of the tiles does already allow for generation of arbitrary overlap widths (https://github.com/joto/osmcoastline/). > I mean, unioning the ocean polys into one, or better yet deriving land polygons from > that data. No, unfortunately both of them are not an Option! 1. Unioning the polygons: I presented a small shapefile just to demonstrate the problem. The original file I want to use contains ocean tiles covering the whole world. So this has been spitted into tiles for a reason! 2. Land polygons: These are also not an option because I want to use the ocean tiles to cover inaccurate hillshading derived from srtm. This will not work the other way round. The only thing I could imagine as a solution on the data side would be the clipping of the hillshades by means of the polygon shape. Regards Sven -- TCP/IP: telecommunication protocol for imbibing pilsners (Man-page uubp(1C) on Debian/GNU Linux) /me is giggls at ircnet, http://sven.gegg.us/ on the Web From Jukka.Rahkonen at mmmtike.fi Wed May 9 06:36:15 2012 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Wed, 9 May 2012 13:36:15 +0000 Subject: [mapserver-users] multiple transparent colours In-Reply-To: References: <6692ef3bb9edae3f4aaffd42e91e5153@www.pbs-intern.de> Message-ID: <84446DEF76453C439E9E97E438E13A6314D7BE@suutari.haapa.mmm.fi> Hi, Perhaps you cannot literally set a colour as transparent in a tiff but for sure you can define a nodata value and then applications can make nodata pixels transparent. That is the most normal way to do it with Mapserver and OFFSITE. I believe that Mapserver does not even care if tiff has a nodata tag set but you can give whatever value for offsite in a mapfile. I have not played at all with alpha, but perhaps there is some way to give a list of pixel values which should be transparent and convert them all to a suitable alpha channel value. -Jukka Rahkonen- Fernando Norte wrote: Hi Christoph, I try to understand, how did you set the specific color to transparent in a TIFF? For raster you can set the level of transparency/opacity to the image not to a color. Att, Fernando Norte Desenvolvedor SIGWeb tel.(31) 2533.9900 cel.(31) 9119.8814 skype: fernandoglobalgeo [http://globalgeo.com.br/assinaturas/logo.png] Endere?o: Alameda do Ing?, 88, 6? andar, Vale do Sereno Nova Lima/MG - CEP: 34.000-000 www.globalgeo.com.br "O presente documento pode conter material confidencial ou seu sigilo ? protegido por lei. Quaisquer informa??es nele contida s?o destinadas exclusivamente ao(s) seu(s) destinat?rio(s) n?o devendo em nenhuma hip?tese ser repassado a terceiros". 2012/5/9 Christoph Schumacher > Hello everybody, I have a problem setting up my wms. I have multiple tiff images that have different colours to be set up as transparaent. With the offsite parameter I can only set one colour transparent. Now my question is: Is there a way to make various colour transparent?? best wishes and thank you very much christoph _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From woodbri at swoodbridge.com Wed May 9 06:44:43 2012 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Wed, 09 May 2012 09:44:43 -0400 Subject: [mapserver-users] multiple transparent colours In-Reply-To: <84446DEF76453C439E9E97E438E13A6314D7BE@suutari.haapa.mmm.fi> References: <6692ef3bb9edae3f4aaffd42e91e5153@www.pbs-intern.de> <84446DEF76453C439E9E97E438E13A6314D7BE@suutari.haapa.mmm.fi> Message-ID: <4FAA74CB.1010904@swoodbridge.com> Frank, Would it be possible to make mapserver pick up the NODATA value from the gdal source file. Maybe using a keyword like "OFFSITE AUTO". This would be especially useful when using a tileindex. Any thoughts on this? Should I create a ticket for something like this? -Steve W On 5/9/2012 9:36 AM, Rahkonen Jukka wrote: > Hi, > Perhaps you cannot literally set a colour as transparent in a tiff but > for sure you can define a nodata value and then applications can make > nodata pixels transparent. That is the most normal way to do it with > Mapserver and OFFSITE. I believe that Mapserver does not even care if > tiff has a nodata tag set but you can give whatever value for offsite in > a mapfile. > I have not played at all with alpha, but perhaps there is some way to > give a list of pixel values which should be transparent and convert them > all to a suitable alpha channel value. > -Jukka Rahkonen- > > Fernando Nortewrote: > Hi Christoph, > > I try to understand, how did you set the specific color to > transparent in a TIFF? > For raster you can set the level of transparency/opacity to the > image not to a color. > > Att, > > *Fernando Norte* > > Desenvolvedor SIGWeb > > tel.(31) 2533.9900 > > cel.(31) 9119.8814 > > skype: fernandoglobalgeo > > > > Endere?o: Alameda do Ing?, 88, 6? andar, Vale do Sereno > > Nova Lima/MG - CEP: 34.000-000 > > www.globalgeo.com.br > > "O presente documento pode conter material confidencial ou seu > sigilo ? protegido por lei. > Quaisquer informa??es nele contida s?o destinadas exclusivamente > ao(s) seu(s) destinat?rio(s) > n?o devendo em nenhuma hip?tese ser repassado a terceiros". > > > > > 2012/5/9 Christoph Schumacher > > > > Hello everybody, > > I have a problem setting up my wms. > I have multiple tiff images that have different colours to be > set up as transparaent. > > With the offsite parameter I can only set one colour transparent. > > Now my question is: Is there a way to make various colour > transparent?? > > > best wishes and thank you very much > > christoph > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From Jukka.Rahkonen at mmmtike.fi Wed May 9 06:58:56 2012 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Wed, 9 May 2012 13:58:56 +0000 Subject: [mapserver-users] multiple transparent colours In-Reply-To: <4FAA74CB.1010904@swoodbridge.com> References: <6692ef3bb9edae3f4aaffd42e91e5153@www.pbs-intern.de> <84446DEF76453C439E9E97E438E13A6314D7BE@suutari.haapa.mmm.fi> <4FAA74CB.1010904@swoodbridge.com> Message-ID: <84446DEF76453C439E9E97E438E13A6314D7DC@suutari.haapa.mmm.fi> Hi, Just came into my mind that I have had problems with OFFSITE and tileindex. It makes the desired pixel value transparent with WMS but not with WCS. At least is was so in the past. I have not produced WCS lately. The workaround was to make a VRT file from with gdalbuildvrt and use that as input for the WCS mapfile. That way nodata worked as it should and we got proper images out of WCS even with warped source images. I am not sure if I ever made a ticket from that. Perhaps not or then just nobody ever reacted. So I suppose that "OFFSITE AUTO" happens already if you use VRT as input instead of tileindex. I have not seen big difference in speed between tileindex and VRT. However, I use normally tileindex system because I can open and manage the index files with GIS programs. -Jukka Rahkonen- Stephen Woodbridge wrote: > L?hetetty: 9. toukokuuta 2012 16:45 > Vastaanottaja: mapserver-users at lists.osgeo.org > Aihe: Re: [mapserver-users] multiple transparent colours > > Frank, > > Would it be possible to make mapserver pick up the NODATA > value from the > gdal source file. Maybe using a keyword like "OFFSITE AUTO". > This would > be especially useful when using a tileindex. > > Any thoughts on this? Should I create a ticket for something > like this? > > -Steve W > > On 5/9/2012 9:36 AM, Rahkonen Jukka wrote: > > Hi, > > Perhaps you cannot literally set a colour as transparent in > a tiff but > > for sure you can define a nodata value and then > applications can make > > nodata pixels transparent. That is the most normal way to do it with > > Mapserver and OFFSITE. I believe that Mapserver does not > even care if > > tiff has a nodata tag set but you can give whatever value > for offsite in > > a mapfile. > > I have not played at all with alpha, but perhaps there is > some way to > > give a list of pixel values which should be transparent and > convert them > > all to a suitable alpha channel value. > > -Jukka Rahkonen- > > > > Fernando Nortewrote: > > Hi Christoph, > > > > I try to understand, how did you set the specific color to > > transparent in a TIFF? > > For raster you can set the level of transparency/opacity to the > > image not to a color. > > > > Att, > > > > *Fernando Norte* > > > > Desenvolvedor SIGWeb > > > > tel.(31) 2533.9900 > > > > cel.(31) 9119.8814 > > > > skype: fernandoglobalgeo > > > > > > > > Endere?o: Alameda do Ing?, 88, 6? andar, Vale do Sereno > > > > Nova Lima/MG - CEP: 34.000-000 > > > > www.globalgeo.com.br > > > > "O presente documento pode conter material confidencial ou seu > > sigilo ? protegido por lei. > > Quaisquer informa??es nele contida s?o destinadas exclusivamente > > ao(s) seu(s) destinat?rio(s) > > n?o devendo em nenhuma hip?tese ser repassado a terceiros". > > > > > > > > > > 2012/5/9 Christoph Schumacher > > > > > > > > Hello everybody, > > > > I have a problem setting up my wms. > > I have multiple tiff images that have different > colours to be > > set up as transparaent. > > > > With the offsite parameter I can only set one > colour transparent. > > > > Now my question is: Is there a way to make various colour > > transparent?? > > > > > > best wishes and thank you very much > > > > christoph > > > > > > _______________________________________________ > > mapserver-users mailing list > > mapserver-users at lists.osgeo.org > > > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > > > > > > > _______________________________________________ > > mapserver-users mailing list > > mapserver-users at lists.osgeo.org > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From peter.hopfgartner at r3-gis.com Wed May 9 08:39:01 2012 From: peter.hopfgartner at r3-gis.com (Peter Hopfgartner) Date: Wed, 09 May 2012 17:39:01 +0200 Subject: [mapserver-users] Fail to build Mapscript Python with current source In-Reply-To: References: <4F9A9949.3070506@r3-gis.com> Message-ID: <4FAA8F95.9080202@r3-gis.com> Ok, it worked. Thanks, Peter On 04/27/2012 03:22 PM, Umberto Nicoletti wrote: > I just built it on Ubuntu 10.04 x86, perhaps you should try this build > process: > > ./configure [your options] --enable-python-mapscript > make > sudo make install > > make/make install will also build and install python mapscript, no > need to cd, swig, etc. > > Umberto > > On Fri, Apr 27, 2012 at 3:04 PM, Peter Hopfgartner > > > wrote: > > I'm on a CentOS 6.2, x86_64 bit system: > > /configure --with-gd --with-zlib --with-tiff --with-agg > --with-experimental-png --with-freetype=/usr/bin/freetype-config > --with-gdal=/usr/bin/gdal-config --with-ogr=/usr/bin/gdal-config > --with-geos=/usr/bin/geos-config --with-cairo=yes --with-proj > --with-wfs --with-wcs --with-sos --with-wmsclient --with-wfsclient > --with-xpm --with-postgis=/usr/bin/pg_config > --with-mygis=/usr/bin/mysql_config > --with-curl-config=/usr/bin/curl-config > --with-xml2-config=/usr/bin/xml2-config > --with-php=/usr/bin/php-config > --with-fribidi-config=/usr/lib64/pkgconfig/fribidi.pc > --with-fastcgi=/usr --without-pdf --without-eppl --with-threads > --enable-debug --disable-runpath > > cd mapscript/python > swig -python -shadow -modern -o mapscript_wrap.c ../mapscript.i > cd ../.. > make > cd mapscript/python > python setup.py build > > The build fails with: > > gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall > -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector > --param=ssp-buffer-size=4 -m64 -mtune=generic -D_GNU_SOURCE -fPIC > -fwrapv -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 > -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 > -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fPIC -DUSE_FASTCGI=1 > -DUSE_CAIRO=1 -DUSE_FRIBIDI=1 -DUSE_FRIBIDI2=1 -DUSE_WMS_LYR=1 > -DUSE_WFS_LYR=1 -DUSE_SOS_SVR=1 -DUSE_LIBXML2=1 -DUSE_CURL=1 > -DUSE_CURLOPT_PROXYAUTH=1 -DUSE_WCS_SVR=1 -DUSE_WFS_SVR=1 > -DUSE_WMS_SVR=1 -DUSE_POSTGIS=1 -DPOSTGIS_HAS_SERVER_VERSION=1 > -DUSE_GDAL=1 -DUSE_OGR=1 -DUSE_GEOS=1 -DUSE_THREAD=1 -DUSE_PROJ=1 > -DUSE_GD=1 -DUSE_GD_GIF=1 -DUSE_GD_PNG=1 -DUSE_GD_JPEG=1 > -DUSE_GD_WBMP=1 -DUSE_GD_FT=1 -DGD_HAS_FTEX_XSHOW=1 > -DGD_HAS_GDIMAGEGIFPTR=1 -DGD_HAS_GETBITMAPFONTS=1 > -DGD_HAS_GET_TRUE_COLOR_PIXEL=1 -DUSE_ICONV=1 -DUSE_JPEG=1 > -DUSE_GIF=1 -DUSE_PNG=1 -DUSE_ZLIB=1 -DUSE_FREETYPE=1 > -DHAVE_VSNPRINTF=1 -DNEED_STRLCPY=1 -DNEED_STRLCAT=1 > -DNEED_STRRSTR=1 -DDISABLE_CVSID=1 -I../.. > -I/usr/include/freetype2 -Irenderers/agg/include > -I/usr/include/gdal -I/usr/include -I/usr/include/fastcgi > -I/usr/include/libxml2 -I/usr/include/fribidi -I/usr/include/cairo > -I/usr/include/pixman-1 -I/usr/include/libpng12 > -I/usr/include/python2.6 > -I/home/rpmbuild/tmp/mapserver-6.1.20120426 -c > pygdioctx/pygdioctx.c -o > build/temp.linux-x86_64-2.6/pygdioctx/pygdioctx.o > pygdioctx/pygdioctx.c: In function ?PyFileIfaceObj_IOCtx_GetBuf?: > pygdioctx/pygdioctx.c:84: warning: passing argument 3 of > ?PyString_AsStringAndSize? from incompatible pointer type > /usr/include/python2.6/stringobject.h:172: note: expected > ?Py_ssize_t *? but argument is of type ?int *? > gcc -pthread -shared build/temp.linux-x86_64-2.6/mapscript_wrap.o > build/temp.linux-x86_64-2.6/pygdioctx/pygdioctx.o -L../../ > -L/usr/lib64 -L/usr/lib64 -L/usr/lib -L/usr/lib64 > -L/home/rpmbuild/tmp/mapserver-6.1.20120426 -lpython2.6 > -lmapserver -lfreetype -lgd -ljpeg -lpng -lz -lXpm -lX11 -lproj > -lgif -lgdal -lpq -lcurl -lgeos_c -lpthread -lc -lfcgi -lxml2 -lm > -lfribidi -lstdc++ -lfontconfig -lcairo -lpng12 -lmapserver -o > build/lib.linux-x86_64-2.6/_mapscript.so > /usr/bin/ld: cannot find -lmapserver > collect2: ld returned 1 exit status > error: command 'gcc' failed with exit status 1 > > Anyway, there is a file libmapserver.la > in the source directory. > > What is it, that I'm mising? > > Thanks, > > Peter > > -- > Peter Hopfgartner > web : http://www.r3-gis.com > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -- Peter Hopfgartner R3 GIS Srl - GmbH Via Johann Kravogl-Str. 2 I-39012 Meran/Merano (BZ) web : www.r3-gis.com mail : peter.hopfgartner at r3-gis.com phone: +39 0473 494949 fax : +39 0473 069902 ATTENZIONE! Le informazioni contenute nella presente e-mail e nei documenti eventualmente allegati sono confidenziali. La loro diffusione, distribuzione e/o riproduzione da parte di terzi, senza autorizzazione del mittente ? vietata e pu? violare il D. Lgs. 196/2003. In caso di ricezione per errore, Vogliate immediatamente informare il mittente del messaggio e distruggere la e-mail. ACHTUNG! Die in dieser Nachricht oder in den beigelegten Dokumenten beinhalteten Informationen sind streng vertraulich. Ihre Verbreitung und/oder ihre Wiedergabe durch Dritte ist ohne Erlaubnis des Absenders verboten und verst??t gegen das Legislativdekret 196/2003. Sollten Sie diese Mitteilung irrt?mlicherweise erhalten haben, bitten wir Sie uns umgehend zu informieren und anschlie?end die Mitteilung zu vernichten. WARNING! This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail. Any unauthorised copying, disclosure or distribution of the material in this e-mail is strictly forbidden and could be against the law (D. Lgs. 196/2003) -------------- next part -------------- An HTML attachment was scrubbed... URL: From jeremyswilson at att.net Wed May 9 10:14:43 2012 From: jeremyswilson at att.net (j5c077) Date: Wed, 9 May 2012 10:14:43 -0700 (PDT) Subject: [mapserver-users] Mapserver MSSQL connect Message-ID: <1336583683738-4963596.post@n6.nabble.com> Hello list, I've been trying for a while to connect to my MSSQL spatial db with mapserver with no luck. If anyone could provide any insight I would be very grateful. The mapserver error i'm getting is "Unable to initialize connection to the server for MSSQL:server..., [unixODBC][Driver Manager]Data source name not found, and no default driver specified" MapServer is version 6.0.1 running on CentOS. my layer in the mapfile is currently set like this, though i've tried several variations based on the info i've found searching forums in hopes of getting it working: LAYER NAME "points" TYPE Point STATUS DEFAULT CONNECTIONTYPE OGR CONNECTION 'MSSQL:server=xxx.xxx.xxx.xxx,1433;database=database;uid=username;pwd=password' PROCESSING 'CLOSE_CONNECTION=DEFER' DATA "SP_GEOMETRY from points" CLASS NAME "point" STYLE SYMBOL "point" END END END -- View this message in context: http://osgeo-org.1560.n6.nabble.com/Mapserver-MSSQL-connect-tp4963596.html Sent from the Mapserver - User mailing list archive at Nabble.com. From jmckenna at gatewaygeomatics.com Wed May 9 11:53:15 2012 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Wed, 09 May 2012 15:53:15 -0300 Subject: [mapserver-users] Mapserver MSSQL connect In-Reply-To: <1336583683738-4963596.post@n6.nabble.com> References: <1336583683738-4963596.post@n6.nabble.com> Message-ID: <4FAABD1B.8010105@gatewaygeomatics.com> On 12-05-09 2:14 PM, j5c077 wrote: > Hello list, > I've been trying for a while to connect to my MSSQL spatial db with > mapserver with no luck. If anyone could provide any insight I would be very > grateful. > > The mapserver error i'm getting is "Unable to initialize connection to the > server for MSSQL:server..., [unixODBC][Driver Manager]Data source name not > found, and no default driver specified" > > MapServer is version 6.0.1 running on CentOS. my layer in the mapfile is > currently set like this, though i've tried several variations based on the > info i've found searching forums in hopes of getting it working: > > LAYER > NAME "points" > TYPE Point > STATUS DEFAULT > CONNECTIONTYPE OGR > CONNECTION > 'MSSQL:server=xxx.xxx.xxx.xxx,1433;database=database;uid=username;pwd=password' > PROCESSING 'CLOSE_CONNECTION=DEFER' > DATA "SP_GEOMETRY from points" > CLASS > NAME "point" > STYLE > SYMBOL "point" > END > END > END Connections to MSSQL in MapServer are through a compiled plugin, and you can see examples of this CONNECTIONTYPE here: http://www.mapserver.org/input/vector/mssql.html (the MSSQL:server syntax you are using is how I would test the connection through ogrinfo - more details at http://www.gdal.org/ogr/drv_mssqlspatial.html) -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ From MarkVolz at co.lyon.mn.us Wed May 9 12:45:24 2012 From: MarkVolz at co.lyon.mn.us (Mark Volz) Date: Wed, 9 May 2012 19:45:24 +0000 Subject: [mapserver-users] mapcache - working with different grids Message-ID: <36CA828A36E29F45B7CF0A1766E5DFA310B28E@swmail01.r8nssis.local> Hello, I started working with Mapcache. I added a tileset that is in UTM 15 (26915) and it is working fine on the demo page http://localhost/mapcache/demo/wms. However when I add the layer to ArcView, I get a warning about inconsistent extents. I noticed the service is advertising several extents: EPSG:900913, EPSG:103749, EPSG:26915, EPSG:4326, EPSG:3857. So I made sure ArcGIS was requesting the correct coordinate system via layer>change coordinate system. Even after switching the coordinate system, I still did not see anything (even when zoomed into the appropriate area) I also am trying to get another layer cached, which is in county coordinates. I did add a grid for the county coordinates. Unfortunately I cannot get that service working in either the demo page or the ArcMap. I can get the source of that service (before it is cached in MapCache) to work in ArcMap. Questions: 1) Is this the right mailing list, or does mapcache have a separate list? 2) How can I limit the grids / spatial references that Mapcache advertises? 3) What am I missing that Mapcache works fine in the demo pages, but not in ArcMap? - note I set assemble and 4) Is there anything I need to know about custom spatial references? I am guessing that Mapserver itself only needs the grid set. Thanks for all the help! Mark Volz GIS Specialist -------------- next part -------------- An HTML attachment was scrubbed... URL: From punk.kish at gmail.com Wed May 9 16:55:07 2012 From: punk.kish at gmail.com (Puneet Kishor) Date: Wed, 9 May 2012 18:55:07 -0500 Subject: [mapserver-users] line symbol decoration is flipped, how do I ensure the correct orientation Message-ID: <23ED65A1-7A63-44D3-BEEB-EFF93994BDEF@gmail.com> I am trying my hand at MapServer symbols/styles. Using the following definition SYMBOL NAME "rarrow" TYPE vector FILLED false POINTS 0 0 4 0 2 -1 END END SYMBOL NAME "larrow" TYPE vector FILLED false POINTS 4 0 0 0 2 1 END END CLASS NAME "Strike-slip fault right lateral" EXPRESSION "30" STYLE COLOR 0 0 0 WIDTH 1 END STYLE COLOR 0 0 0 SYMBOL "rarrow" SIZE 4 GAP -60 OFFSET 0 -4 END STYLE COLOR 255 0 0 SYMBOL "larrow" SIZE 4 GAP -60 OFFSET 0 6 END END I get the following http://dl.dropbox.com/u/3526821/slip_strike.png The green box shows the correct symbol. The red box has the symbol flipped. Why? How can I correct this? -- Puneet Kishor From christoph.schumacher at pbs-schumacher.de Wed May 9 23:45:31 2012 From: christoph.schumacher at pbs-schumacher.de (Christoph Schumacher) Date: Thu, 10 May 2012 08:45:31 +0200 Subject: [mapserver-users] multiple transparent colours In-Reply-To: <84446DEF76453C439E9E97E438E13A6314D7DC@suutari.haapa.mmm.fi> Message-ID: hi everybody, first i have to say thank you for all the answers. I tried the RGBA way by defining a RGBA Palett file with quadrupels (e.g. 0,0,0,0) for the RGBA values of my transparent colours. It?s the first time for me using RGBA so maybe I?m on the wrong way, but how do i define the transparency in the Layer section??? best wishes and thank you christoph > Hi, > > Just came into my mind that I have had problems with OFFSITE and tileindex. It > makes the desired pixel value transparent with WMS but not with WCS. At least is > was so in the past. I have not produced WCS lately. The workaround was to make a VRT > file from with gdalbuildvrt and use that as input for the WCS mapfile. That way > nodata worked as it should and we got proper images out of WCS even with warped > source images. I am not sure if I ever made a ticket from that. Perhaps not or then > just nobody ever reacted. > > So I suppose that "OFFSITE AUTO" happens already if you use VRT as input instead of > tileindex. I have not seen big difference in speed between tileindex and VRT. > However, I use normally tileindex system because I can open and manage the index > files with GIS programs. > > -Jukka Rahkonen- > > Stephen Woodbridge wrote: >> L?hetetty: 9. toukokuuta 2012 16:45 >> Vastaanottaja: mapserver-users at lists.osgeo.org >> Aihe: Re: [mapserver-users] multiple transparent colours >> >> Frank, >> >> Would it be possible to make mapserver pick up the NODATA >> value from the >> gdal source file. Maybe using a keyword like "OFFSITE AUTO". >> This would >> be especially useful when using a tileindex. >> >> Any thoughts on this? Should I create a ticket for something >> like this? >> >> -Steve W >> >> On 5/9/2012 9:36 AM, Rahkonen Jukka wrote: >> > Hi, >> > Perhaps you cannot literally set a colour as transparent in >> a tiff but >> > for sure you can define a nodata value and then >> applications can make >> > nodata pixels transparent. That is the most normal way to do it with >> > Mapserver and OFFSITE. I believe that Mapserver does not >> even care if >> > tiff has a nodata tag set but you can give whatever value >> for offsite in >> > a mapfile. >> > I have not played at all with alpha, but perhaps there is >> some way to >> > give a list of pixel values which should be transparent and >> convert them >> > all to a suitable alpha channel value. >> > -Jukka Rahkonen- >> > >> > Fernando Nortewrote: >> > Hi Christoph, >> > >> > I try to understand, how did you set the specific color to >> > transparent in a TIFF? >> > For raster you can set the level of transparency/opacity to the >> > image not to a color. >> > >> > Att, >> > >> > *Fernando Norte* >> > >> > Desenvolvedor SIGWeb >> > >> > tel.(31) 2533.9900 >> > >> > cel.(31) 9119.8814 >> > >> > skype: fernandoglobalgeo >> > >> > >> > >> > Endere?o: Alameda do Ing?, 88, 6? andar, Vale do Sereno >> > >> > Nova Lima/MG - CEP: 34.000-000 >> > >> > www.globalgeo.com.br >> > >> > "O presente documento pode conter material confidencial ou seu >> > sigilo ? protegido por lei. >> > Quaisquer informa??es nele contida s?o destinadas exclusivamente >> > ao(s) seu(s) destinat?rio(s) >> > n?o devendo em nenhuma hip?tese ser repassado a terceiros". >> > >> > >> > >> > >> > 2012/5/9 Christoph Schumacher >> > christoph.schumacher at pbs-schumacher.de >> > mailto:christoph.schumacher at pbs-schumacher.de >> > >> > Hello everybody, >> > >> > I have a problem setting up my wms. >> > I have multiple tiff images that have different >> colours to be >> > set up as transparaent. >> > >> > With the offsite parameter I can only set one >> colour transparent. >> > >> > Now my question is: Is there a way to make various colour >> > transparent?? >> > >> > >> > best wishes and thank you very much >> > >> > christoph >> > >> > >> > _______________________________________________ >> > mapserver-users mailing list >> > mapserver-users at lists.osgeo.org >> > mailto:mapserver-users at lists.osgeo.org >> > http://lists.osgeo.org/mailman/listinfo/mapserver-users >> > >> > >> > >> > >> > _______________________________________________ >> > mapserver-users mailing list >> > mapserver-users at lists.osgeo.org >> > http://lists.osgeo.org/mailman/listinfo/mapserver-users >> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -- Freundliche Gr??e planungsb?ro schumacher Im Auftrag gez. Christoph Schumacher Telefon 02262 7205-13 __________________________________________________________________ pbs planungsb?ro schumacher Dipl.-Ing. J?rgen Schumacher Oststra?e 8, 51674 Wiehl Telefon 02262 7205-0, Fax 02262 7205-6 info at pbs-schumacher.de http://www.pbs-schumacher.de __________________________________________________________________ Wir garantieren nicht f?r Fehler- bzw. Virenfreiheit der E-Mail und/oder angeh?ngten Dateien. F?r Sch?den, die aus der Nutzung der Daten entstehen, ?bernehmen wir keine Haftung. Bitte pr?fen Sie die Daten vor der Nutzung. From thxftw at gmail.com Thu May 10 02:21:46 2012 From: thxftw at gmail.com (Peter Maes) Date: Thu, 10 May 2012 11:21:46 +0200 Subject: [mapserver-users] Build error mapserver in shp2img - undefined reference Message-ID: I'm getting this error: gcc -c -O2 -fPIC -Wall -DNDEBUG -DHAVE_VSNPRINTF -DNEED_STRLCPY -DNEED_STRLCAT -DNEED_STRRSTR -DUSE_FASTCGI -DUSE_LIBXML2 -DUSE_WFS_SVR -DUSE_WMS_SVR -DUSE_GDAL -DUSE_OGR -DUSE_GEOS -DUSE_THREAD -DUSE_PROJ -DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_FTEX_XSHOW -DGD_HAS_GDIMAGEGIFPTR -DGD_HAS_GETBITMAPFONTS -DGD_HAS_GET_TRUE_COLOR_PIXEL -DUSE_ICONV -DUSE_GIF -DUSE_PNG -DUSE_ZLIB -DUSE_FREETYPE -DDISABLE_CVSID -I/usr/include/freetype2 -I/data/installed/libpng/include -I/usr/include -Irenderers/agg/include -I/usr//include -I/usr/include/gdal -I/usr/include -I/data/installed/libiconv/include -I/usr/include/libxml2 shp2img.c -o shp2img.o g++ -O2 -fPIC -Wall -DNDEBUG -DHAVE_VSNPRINTF -DNEED_STRLCPY -DNEED_STRLCAT -DNEED_STRRSTR -DUSE_FASTCGI -DUSE_LIBXML2 -DUSE_WFS_SVR -DUSE_WMS_SVR -DUSE_GDAL -DUSE_OGR -DUSE_GEOS -DUSE_THREAD -DUSE_PROJ -DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_FTEX_XSHOW -DGD_HAS_GDIMAGEGIFPTR -DGD_HAS_GETBITMAPFONTS -DGD_HAS_GET_TRUE_COLOR_PIXEL -DUSE_ICONV -DUSE_GIF -DUSE_PNG -DUSE_ZLIB -DUSE_FREETYPE -DDISABLE_CVSID -I/usr/include/freetype2 -I/data/installed/libpng/include -I/usr/include -Irenderers/agg/include -I/usr//include -I/usr/include/gdal -I/usr/include -I/data/installed/libiconv/include -I/usr/include/libxml2 shp2img.o -L. -lmapserver -L/usr/lib/x86_64-linux-gnu -lfreetype -lz -L/usr/lib -lgd -ljpeg -L/usr/lib/x86_64-linux-gnu -lfreetype -lz -L/data/installed/libpng/lib -lpng -lz -lXpm -lX11 -L/usr//lib -lproj -ljpeg -L/data/installed/libpng/lib -lpng -lgif -L/usr/lib -lgdal1.7.0 -L/usr/lib -lgeos_c -lpthread -L/data/installed/libiconv/lib -liconv -lfcgi -lz -L/usr/lib/x86_64-linux-gnu -lxml2 -lm -lstdc++ -o shp2img ./libmapserver.a(mapimageio.o): In function `savePalettePNG': mapimageio.c:(.text+0x8ef): undefined reference to `png_set_longjmp_fn' ./libmapserver.a(mapimageio.o): In function `saveAsPNG': mapimageio.c:(.text+0x113e): undefined reference to `png_set_longjmp_fn' ./libmapserver.a(mapimageio.o): In function `readPNG': mapimageio.c:(.text+0x1898): undefined reference to `png_set_longjmp_fn' collect2: ld returned 1 exit status make: *** [shp2img] Error 1 libpng 1.2.46 iconv (Ubuntu EGLIBC 2.15-0ubuntu10) 2.15 On Ubuntu 12.04 LTS with latest mapserver version. This is what my configure looks like: ./configure \ --prefix=/data/installed/mapserver \ --with-threads \ --with-fastcgi \ --with-freetype=/usr/bin/freetype-config \ --with-zlib \ --with-libiconv=/data/installed/libiconv \ --with-gd=/usr \ --with-ogr \ --with-geos=/usr/bin/geos-config \ --with-gdal \ --with-png=/data/installed/libpng \ --with-proj=/usr/ \ --with-curl-config=/usr/bin/curl-config \ --with-wfs \ Thanks for any tips on how to make the build work. -------------- next part -------------- An HTML attachment was scrubbed... URL: From sam at planyukon.ca Thu May 10 02:21:56 2012 From: sam at planyukon.ca (sam at planyukon.ca) Date: 10 May 2012 02:21:56 -0700 Subject: [mapserver-users] Re: mapserver-users Digest, Vol 52, Issue 17 Message-ID: <20120510092156.7849.qmail@polarhosting.ca> Sorry I missed you, but I am on parental leave until May 14th. Urgent YLUPC business can be sent to the YLUPC director at ron at planyukon.ca. From thomas.bonfort at gmail.com Thu May 10 02:31:59 2012 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Thu, 10 May 2012 11:31:59 +0200 Subject: [mapserver-users] Build error mapserver in shp2img - undefined reference In-Reply-To: References: Message-ID: You're building with a custom libpng and the system libgd (linked to the system libpng),which is bad. try with --with-gd --with-png alone, after maybe apt-installing libpng-dev -- thomas On Thu, May 10, 2012 at 11:21 AM, Peter Maes wrote: > I'm getting this error: > > gcc -c -O2 -fPIC -Wall ?-DNDEBUG ? ?-DHAVE_VSNPRINTF -DNEED_STRLCPY > -DNEED_STRLCAT -DNEED_STRRSTR ? ? -DUSE_FASTCGI ? ? ? ? -DUSE_LIBXML2 > ?-DUSE_WFS_SVR -DUSE_WMS_SVR ? ?-DUSE_GDAL -DUSE_OGR -DUSE_GEOS > ?-DUSE_THREAD -DUSE_PROJ ? ?-DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_JPEG > -DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_FTEX_XSHOW -DGD_HAS_GDIMAGEGIFPTR > -DGD_HAS_GETBITMAPFONTS -DGD_HAS_GET_TRUE_COLOR_PIXEL -DUSE_ICONV -DUSE_GIF > -DUSE_PNG -DUSE_ZLIB -DUSE_FREETYPE ? -DDISABLE_CVSID > -I/usr/include/freetype2 ?-I/data/installed/libpng/include ? -I/usr/include > -Irenderers/agg/include ? -I/usr//include ? -I/usr/include/gdal > -I/usr/include -I/data/installed/libiconv/include ? -I/usr/include/libxml2 > shp2img.c -o shp2img.o > g++ -O2 -fPIC -Wall ?-DNDEBUG ? ?-DHAVE_VSNPRINTF -DNEED_STRLCPY > -DNEED_STRLCAT -DNEED_STRRSTR ? ? -DUSE_FASTCGI ? ? ? ? -DUSE_LIBXML2 > ?-DUSE_WFS_SVR -DUSE_WMS_SVR ? ?-DUSE_GDAL -DUSE_OGR -DUSE_GEOS > ?-DUSE_THREAD -DUSE_PROJ ? ?-DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_JPEG > -DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_FTEX_XSHOW -DGD_HAS_GDIMAGEGIFPTR > -DGD_HAS_GETBITMAPFONTS -DGD_HAS_GET_TRUE_COLOR_PIXEL -DUSE_ICONV -DUSE_GIF > -DUSE_PNG -DUSE_ZLIB -DUSE_FREETYPE ? -DDISABLE_CVSID > -I/usr/include/freetype2 ?-I/data/installed/libpng/include ? -I/usr/include > -Irenderers/agg/include ? -I/usr//include ? -I/usr/include/gdal > -I/usr/include -I/data/installed/libiconv/include ? -I/usr/include/libxml2 > shp2img.o ?-L. -lmapserver -L/usr/lib/x86_64-linux-gnu -lfreetype -lz > -L/usr/lib -lgd -ljpeg -L/usr/lib/x86_64-linux-gnu -lfreetype -lz > -L/data/installed/libpng/lib -lpng -lz -lXpm -lX11 ? ? -L/usr//lib -lproj > -ljpeg -L/data/installed/libpng/lib -lpng -lgif ?-L/usr/lib -lgdal1.7.0 > -L/usr/lib -lgeos_c -lpthread -L/data/installed/libiconv/lib -liconv -lfcgi > ? -lz -L/usr/lib/x86_64-linux-gnu -lxml2 ?-lm -lstdc++ ? ?-o shp2img > ./libmapserver.a(mapimageio.o): In function `savePalettePNG': > mapimageio.c:(.text+0x8ef): undefined reference to `png_set_longjmp_fn' > ./libmapserver.a(mapimageio.o): In function `saveAsPNG': > mapimageio.c:(.text+0x113e): undefined reference to `png_set_longjmp_fn' > ./libmapserver.a(mapimageio.o): In function `readPNG': > mapimageio.c:(.text+0x1898): undefined reference to `png_set_longjmp_fn' > collect2: ld returned 1 exit status > make: *** [shp2img] Error 1 > > libpng 1.2.46 > iconv (Ubuntu EGLIBC 2.15-0ubuntu10) 2.15 > > On Ubuntu 12.04 LTS with latest mapserver version. > > This is what my configure looks like: > > ./configure \ > ? ? ? ? --prefix=/data/installed/mapserver \ > ? ? ? ? --with-threads \ > ? ? ? ? --with-fastcgi ?\ > ? ? ? ? --with-freetype=/usr/bin/freetype-config ? \ > ? ? ? ? --with-zlib \ > ? ? ? ? --with-libiconv=/data/installed/libiconv \ > ? ? ? ? --with-gd=/usr \ > ? ? ? ? --with-ogr \ > ? ? ? ? --with-geos=/usr/bin/geos-config \ > ? ? ? ? --with-gdal \ > ? ? ? ? --with-png=/data/installed/libpng \ > ? ? ? ? --with-proj=/usr/ \ > ? ? ? ? --with-curl-config=/usr/bin/curl-config \ > ? ? ? ? --with-wfs \ > > Thanks for any tips on how to make the build work. > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From thxftw at gmail.com Thu May 10 02:58:03 2012 From: thxftw at gmail.com (Peter Maes) Date: Thu, 10 May 2012 11:58:03 +0200 Subject: [mapserver-users] Build error mapserver in shp2img - undefined reference In-Reply-To: References: Message-ID: Hi, Thanks for getting back to me so quickly. I actually started off like that. This build config: ./configure \ --prefix=/data/installed/mapserver \ --with-threads \ --with-fastcgi \ --with-freetype=/usr/bin/freetype-config \ --with-zlib \ --with-libiconv=/data/installed/libiconv \ --with-gd \ --with-ogr \ --with-geos=/usr/bin/geos-config \ --with-gdal \ --with-png \ --with-proj=/usr/ \ --with-curl-config=/usr/bin/curl-config \ --with-wfs \ Results in : MapServer Version from mapserver.h: '6.0.2' checking if pkg-config path is provided... checking for pkg-config... /usr/bin/pkg-config checking for Freetype2.x in /usr/bin/freetype-config... checking for FT_Init_FreeType in -lfreetype... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking ft2build.h usability... yes checking ft2build.h presence... yes checking for ft2build.h... yes configure: checking where Zlib is installed... checking for zlibVersion in -lz... yes using libz from system libs (-DUSE_ZLIB). configure: checking where PNG is installed... configure: error: cannot find png lib in /data/sources/mapserver/mapserver-6.0.2/yes I also tried with png in /usr, but that didnt work either. These png libs are installed: i libpng12-0 - PNG library - runtime i libpng12-dev - PNG library - development This brings me to: libpng.so was located in : /data/installed/libpng/lib/libpng.so /usr/lib/x86_64-linux-gnu/libpng.so I suspect this has to do with ubuntu 12 storing these libs in x86_64-linux-gnu instead of lib64 ---- I just tried symlinking the libpng.so files to /usr/lib and the configure and make runs without issues now. Seems the problem is fixed :). Thanks for the tip. Best regards, P. 2012/5/10 thomas bonfort > You're building with a custom libpng and the system libgd (linked to > the system libpng),which is bad. > > try with --with-gd --with-png alone, after maybe apt-installing libpng-dev > > -- > thomas > > On Thu, May 10, 2012 at 11:21 AM, Peter Maes wrote: > > I'm getting this error: > > > > gcc -c -O2 -fPIC -Wall -DNDEBUG -DHAVE_VSNPRINTF -DNEED_STRLCPY > > -DNEED_STRLCAT -DNEED_STRRSTR -DUSE_FASTCGI -DUSE_LIBXML2 > > -DUSE_WFS_SVR -DUSE_WMS_SVR -DUSE_GDAL -DUSE_OGR -DUSE_GEOS > > -DUSE_THREAD -DUSE_PROJ -DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_JPEG > > -DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_FTEX_XSHOW -DGD_HAS_GDIMAGEGIFPTR > > -DGD_HAS_GETBITMAPFONTS -DGD_HAS_GET_TRUE_COLOR_PIXEL -DUSE_ICONV > -DUSE_GIF > > -DUSE_PNG -DUSE_ZLIB -DUSE_FREETYPE -DDISABLE_CVSID > > -I/usr/include/freetype2 -I/data/installed/libpng/include > -I/usr/include > > -Irenderers/agg/include -I/usr//include -I/usr/include/gdal > > -I/usr/include -I/data/installed/libiconv/include > -I/usr/include/libxml2 > > shp2img.c -o shp2img.o > > g++ -O2 -fPIC -Wall -DNDEBUG -DHAVE_VSNPRINTF -DNEED_STRLCPY > > -DNEED_STRLCAT -DNEED_STRRSTR -DUSE_FASTCGI -DUSE_LIBXML2 > > -DUSE_WFS_SVR -DUSE_WMS_SVR -DUSE_GDAL -DUSE_OGR -DUSE_GEOS > > -DUSE_THREAD -DUSE_PROJ -DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_JPEG > > -DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_FTEX_XSHOW -DGD_HAS_GDIMAGEGIFPTR > > -DGD_HAS_GETBITMAPFONTS -DGD_HAS_GET_TRUE_COLOR_PIXEL -DUSE_ICONV > -DUSE_GIF > > -DUSE_PNG -DUSE_ZLIB -DUSE_FREETYPE -DDISABLE_CVSID > > -I/usr/include/freetype2 -I/data/installed/libpng/include > -I/usr/include > > -Irenderers/agg/include -I/usr//include -I/usr/include/gdal > > -I/usr/include -I/data/installed/libiconv/include > -I/usr/include/libxml2 > > shp2img.o -L. -lmapserver -L/usr/lib/x86_64-linux-gnu -lfreetype -lz > > -L/usr/lib -lgd -ljpeg -L/usr/lib/x86_64-linux-gnu -lfreetype -lz > > -L/data/installed/libpng/lib -lpng -lz -lXpm -lX11 -L/usr//lib -lproj > > -ljpeg -L/data/installed/libpng/lib -lpng -lgif -L/usr/lib -lgdal1.7.0 > > -L/usr/lib -lgeos_c -lpthread -L/data/installed/libiconv/lib -liconv > -lfcgi > > -lz -L/usr/lib/x86_64-linux-gnu -lxml2 -lm -lstdc++ -o shp2img > > ./libmapserver.a(mapimageio.o): In function `savePalettePNG': > > mapimageio.c:(.text+0x8ef): undefined reference to `png_set_longjmp_fn' > > ./libmapserver.a(mapimageio.o): In function `saveAsPNG': > > mapimageio.c:(.text+0x113e): undefined reference to `png_set_longjmp_fn' > > ./libmapserver.a(mapimageio.o): In function `readPNG': > > mapimageio.c:(.text+0x1898): undefined reference to `png_set_longjmp_fn' > > collect2: ld returned 1 exit status > > make: *** [shp2img] Error 1 > > > > libpng 1.2.46 > > iconv (Ubuntu EGLIBC 2.15-0ubuntu10) 2.15 > > > > On Ubuntu 12.04 LTS with latest mapserver version. > > > > This is what my configure looks like: > > > > ./configure \ > > --prefix=/data/installed/mapserver \ > > --with-threads \ > > --with-fastcgi \ > > --with-freetype=/usr/bin/freetype-config \ > > --with-zlib \ > > --with-libiconv=/data/installed/libiconv \ > > --with-gd=/usr \ > > --with-ogr \ > > --with-geos=/usr/bin/geos-config \ > > --with-gdal \ > > --with-png=/data/installed/libpng \ > > --with-proj=/usr/ \ > > --with-curl-config=/usr/bin/curl-config \ > > --with-wfs \ > > > > Thanks for any tips on how to make the build work. > > > > > > > > _______________________________________________ > > mapserver-users mailing list > > mapserver-users at lists.osgeo.org > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From hsansegundo at meteo.cat Thu May 10 03:33:06 2012 From: hsansegundo at meteo.cat (Helen San Segundo Navazo) Date: Thu, 10 May 2012 12:33:06 +0200 Subject: [mapserver-users] mapcache - problems on install In-Reply-To: <36CA828A36E29F45B7CF0A1766E5DFA310B28E@swmail01.r8nssis.local> References: <36CA828A36E29F45B7CF0A1766E5DFA310B28E@swmail01.r8nssis.local> Message-ID: <4FAB9962.7080704@meteo.cat> Hi, I'm new using mapcache. I've tried to install it following the instructions on http://mapserver.org/trunk/mapcache/install.html. First $./configure $make $sudo make install and after the apache module $sudo make install-module $sudo ldconfig On my httpd.conf I've added SetEnv MAPCACHE_CONFIG_FILE "/home/curs/Desarrollo/Aplicaciones/mapserver-mapcache-18a50e2/mapcache.xml" when I try to invoque mapcache in the apache log there is this error: /usr/lib/cgi-bin/mapcache: line 202: cd: /home/curs/Desarrollo/Aplicaciones/mapserver-mapcache-18a50e2/cgi: Not a directory gcc: mapcache.c: No such file or directory gcc: ../lib/.libs/libmapcache.so: No such file or directoryn[Thu May 10 11:57:23 2012] [error] [client 127.0.0.1] Premature end of script headers: mapcache the directory exists and has permisions to access Somebody knows how to solve it? Thanks in advance, Helen From thomas.bonfort at gmail.com Thu May 10 03:43:15 2012 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Thu, 10 May 2012 12:43:15 +0200 Subject: [mapserver-users] mapcache - problems on install In-Reply-To: <4FAB9962.7080704@meteo.cat> References: <36CA828A36E29F45B7CF0A1766E5DFA310B28E@swmail01.r8nssis.local> <4FAB9962.7080704@meteo.cat> Message-ID: the instructions for running mapcache as an apache module are on the page you linked, more precisely: http://mapserver.org/trunk/mapcache/install.html#apache-module-specific-instructions -- thomas On Thu, May 10, 2012 at 12:33 PM, Helen San Segundo Navazo wrote: > Hi, > I'm new using mapcache. I've tried to install it following the instructions > on http://mapserver.org/trunk/mapcache/install.html. > > First > > $./configure > $make > $sudo make install > > > and after the apache module > > $sudo make install-module > $sudo ldconfig > > > On my httpd.conf I've added > > > ? ?SetEnv MAPCACHE_CONFIG_FILE > "/home/curs/Desarrollo/Aplicaciones/mapserver-mapcache-18a50e2/mapcache.xml" > > > when I try to invoque mapcache in the apache log there is this error: > > /usr/lib/cgi-bin/mapcache: line 202: cd: > /home/curs/Desarrollo/Aplicaciones/mapserver-mapcache-18a50e2/cgi: Not a > directory > gcc: mapcache.c: No such file or directory > gcc: ../lib/.libs/libmapcache.so: No such file or directoryn[Thu May 10 > 11:57:23 2012] [error] [client 127.0.0.1] Premature end of script headers: > mapcache > > the directory exists and has permisions to access > > Somebody knows how to solve it? > Thanks in advance, > Helen > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From thomas.bonfort at gmail.com Thu May 10 03:46:18 2012 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Thu, 10 May 2012 12:46:18 +0200 Subject: [mapserver-users] mapcache - problems on install In-Reply-To: References: <36CA828A36E29F45B7CF0A1766E5DFA310B28E@swmail01.r8nssis.local> <4FAB9962.7080704@meteo.cat> Message-ID: Sorry, pressed send too fast... you must use Order Allow,Deny Allow from all MapCacheAlias /mapcache "/path/to/directory/mapcache.xml" and not SetEnv MAPCACHE_CONFIG_FILE "/home/curs/Desarrollo/Aplicaciones/mapserver-mapcache-18a50e2/mapcache.xml" On Thu, May 10, 2012 at 12:43 PM, thomas bonfort wrote: > the instructions for running mapcache as an apache module are on the > page you linked, more precisely: > http://mapserver.org/trunk/mapcache/install.html#apache-module-specific-instructions > > -- > thomas > > On Thu, May 10, 2012 at 12:33 PM, Helen San Segundo Navazo > wrote: >> Hi, >> I'm new using mapcache. I've tried to install it following the instructions >> on http://mapserver.org/trunk/mapcache/install.html. >> >> First >> >> $./configure >> $make >> $sudo make install >> >> >> and after the apache module >> >> $sudo make install-module >> $sudo ldconfig >> >> >> On my httpd.conf I've added >> >> >> ? ?SetEnv MAPCACHE_CONFIG_FILE >> "/home/curs/Desarrollo/Aplicaciones/mapserver-mapcache-18a50e2/mapcache.xml" >> >> >> when I try to invoque mapcache in the apache log there is this error: >> >> /usr/lib/cgi-bin/mapcache: line 202: cd: >> /home/curs/Desarrollo/Aplicaciones/mapserver-mapcache-18a50e2/cgi: Not a >> directory >> gcc: mapcache.c: No such file or directory >> gcc: ../lib/.libs/libmapcache.so: No such file or directoryn[Thu May 10 >> 11:57:23 2012] [error] [client 127.0.0.1] Premature end of script headers: >> mapcache >> >> the directory exists and has permisions to access >> >> Somebody knows how to solve it? >> Thanks in advance, >> Helen >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users From thomas.bonfort at gmail.com Thu May 10 04:01:40 2012 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Thu, 10 May 2012 13:01:40 +0200 Subject: [mapserver-users] mapcache - working with different grids In-Reply-To: <36CA828A36E29F45B7CF0A1766E5DFA310B28E@swmail01.r8nssis.local> References: <36CA828A36E29F45B7CF0A1766E5DFA310B28E@swmail01.r8nssis.local> Message-ID: Hi, On Wed, May 9, 2012 at 9:45 PM, Mark Volz wrote: > Hello, > > I started working with Mapcache.? I added a tileset that is in UTM 15 > (26915) and it is working fine on the demo page > http://localhost/mapcache/demo/wms.? However when I add the layer to > ArcView, I get a warning about inconsistent extents.?? I noticed the service > is advertising several extents:? EPSG:900913, EPSG:103749, EPSG:26915, > EPSG:4326, EPSG:3857.? So I made sure ArcGIS was requesting the correct > coordinate system via layer>change coordinate system.? Even after switching > the coordinate system, I still did not see anything? (even when zoomed into > the appropriate area) I've never tried the wms service in arcgis... what I do know is that mapcache advertises all known grids in the wms root layer, however only the actually cached grids are advertised for each individual layer (that's what the spec requires, although it does not fit very well with cached layers). I wouldn't be very surprised arcgis chokes on that. Check your server logs for the requests actually being sent out by arcgis, that will at least tell you if the correct grid is being used. > > I also am trying to get another layer cached, which is in county > coordinates.? I did add a grid for the county coordinates.? Unfortunately I > cannot get that service working in either the demo page or the ArcMap.? I > can get the source of that service (before it is cached in MapCache) to work > in ArcMap. need more info... mapcache itself does no projection handling, the grid srs is only used as a key to lookup which tiles to return, and is forwarded to the wms server as is. Right clicking on a pink tile in the demo page and opening the image in a new window might give you more info to help debugging. -- thomas > > > Questions: > > > Is this the right mailing list, or does mapcache have a separate list? > How can I limit the grids / spatial references that Mapcache advertises? > What am I missing that Mapcache works fine in the demo pages, but not in > ArcMap?? - note I set? assemble and enabled="true"> > Is there anything I need to know about custom spatial references?? I am > guessing that Mapserver itself only needs the grid set. > > > > Thanks for all the help! > > > Mark Volz > GIS Specialist > > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From discover.ab at gmail.com Thu May 10 04:24:06 2012 From: discover.ab at gmail.com (abhishek bansal) Date: Thu, 10 May 2012 16:54:06 +0530 Subject: [mapserver-users] Help Required with WMS Time Message-ID: Hello All I am working on a project that require time as a dimension of data. I have gone through all documentation but I am not able to understand that how do I upload time data in server .map file. I have created simple map files and my server is working. What i need is same layer on different time should different dataset. plz help !! -- Thanks & Regards, Abhishek Bansal -------------- next part -------------- An HTML attachment was scrubbed... URL: From krassovskimb at ornl.gov Thu May 10 04:45:37 2012 From: krassovskimb at ornl.gov (mkrassovski) Date: Thu, 10 May 2012 04:45:37 -0700 (PDT) Subject: [mapserver-users] Re: Mapserver + mapcache + Google Map In-Reply-To: References: <1336420126718-4958632.post@n6.nabble.com> Message-ID: <1336650337076-4965470.post@n6.nabble.com> According to the docs "g" grid is one of the preconfigured grids: http://www.mapserver.org/trunk/mapcache/config.html and it should work. I tried to remove all grids that I not use, but it didn't help. I finally got to the point when if I use WGS84 grid (projection 4326) it draws all dots, but they are misaligned and resolution (zoom level) doesn't match Google image. If I use g grid (900913) it just put one single dot near Africa and that's it. -- View this message in context: http://osgeo-org.1560.n6.nabble.com/Mapserver-mapcache-Google-Map-tp4958439p4965470.html Sent from the Mapserver - User mailing list archive at Nabble.com. From hsansegundo at meteo.cat Thu May 10 04:48:39 2012 From: hsansegundo at meteo.cat (Helen San Segundo Navazo) Date: Thu, 10 May 2012 13:48:39 +0200 Subject: [mapserver-users] Help Required with WMS Time In-Reply-To: References: Message-ID: <4FABAB17.9060704@meteo.cat> Hi, I don't use the time dimension, what I use is run-time substitution http://mapserver.org/cgi/runsub.html I have 6 variables. You have to put the validation pattern inside the metadata tag and a validation tag with the pattern of your variables. With this you can invoke the params in the url. If you put them the query will be with the values in the url, if not, then the query will be with the default values defined in the metadata tag. Hope this help you, Helen LAYER NAME 'name' HEADER "templates/getfeatureinfo_header.html" # header html template TEMPLATE "templates/getfeatureinfo_content.html" # content html template FOOTER "templates/getfeatureinfo_footer.html" # footer html template METADATA 'ows_title' 'title' 'wms_feature_info_mime_type' "text/html" "gml_include_items" "all" "wms_include_items" "all" 'aini_validation_pattern' '^[0-9]{1,8}$' 'afi_validation_pattern' '^[0-9]{1,8}$' 'mini_validation_pattern' '^[0-9]{1,8}$' 'mfi_validation_pattern' '^[0-9]{1,8}$' 'dini_validation_pattern' '^[0-9]{1,8}$' 'dfi_validation_pattern' '^[0-9]{1,8}$' 'default_aini' '2012' 'default_afi' '2012' 'default_mini' '4' 'default_mfi' '4' 'default_dini' '24' 'default_dfi' '25' END VALIDATION 'aini' '^[0-9]{1,8}$' 'afi' '^[0-9]{1,8}$' 'mini' '^[0-9]{1,8}$' 'mfi' '^[0-9]{1,8}$' 'dini' '^[0-9]{1,8}$' 'dfi' '^[0-9]{1,8}$' END STATUS OFF PROJECTION "init=epsg:4326" END CONNECTIONTYPE postgis CONNECTION "user=postgres password=pp dbname=mm host=host" DATA "the_geom FROM (SELECT oid,geometry_columns from table where time>='%aini%-%mini%-%dini% 00:00:00' and time<'%afi%-%mfi%-%dfi% 00:00:00' ) AS r USING UNIQUE oid USING SRID=4326" .... El 10/05/12 13:24, abhishek bansal escribi?: > Hello All > > I am working on a project that require time as a dimension of data. I > have gone through all documentation but I am not able to understand > that how do I upload time data in server .map file. I have created > simple map files and my server is working. What i need is same layer > on different time should different dataset. > > plz help !! > > > > -- > Thanks & Regards, > Abhishek Bansal > > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From forums at craniumjuice.com Thu May 10 04:51:10 2012 From: forums at craniumjuice.com (forums) Date: Thu, 10 May 2012 06:51:10 -0500 Subject: [mapserver-users] Re: Mapserver + mapcache + Google Map In-Reply-To: <1336650337076-4965470.post@n6.nabble.com> References: <1336420126718-4958632.post@n6.nabble.com> <1336650337076-4965470.post@n6.nabble.com> Message-ID: There's a good chance all your dots are really there, just all stacked on one another. I have a few 900913 maps and I had to use "UNITS = meters". I may have had to make other changes, but I don't recall what they are off hand. Jerl On Thu, May 10, 2012 at 6:45 AM, mkrassovski wrote: > According to the docs "g" grid is one of the preconfigured grids: > http://www.mapserver.org/trunk/mapcache/config.html and it should work. I > tried to remove all grids that I not use, but it didn't help. > I finally got to the point when if I use WGS84 grid (projection 4326) it > draws all dots, but they are misaligned and resolution (zoom level) doesn't > match Google image. If I use g grid (900913) it just put one single dot > near > Africa and that's it. > > -- > View this message in context: > http://osgeo-org.1560.n6.nabble.com/Mapserver-mapcache-Google-Map-tp4958439p4965470.html > Sent from the Mapserver - User mailing list archive at Nabble.com. > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -- A computer without Windows is like chocolate cake without mustard. -------------- next part -------------- An HTML attachment was scrubbed... URL: From krassovskimb at ornl.gov Thu May 10 05:06:13 2012 From: krassovskimb at ornl.gov (mkrassovski) Date: Thu, 10 May 2012 05:06:13 -0700 (PDT) Subject: [mapserver-users] Re: Mapserver + mapcache + Google Map In-Reply-To: References: <1336420126718-4958632.post@n6.nabble.com> <1336650337076-4965470.post@n6.nabble.com> Message-ID: <1336651573401-4965517.post@n6.nabble.com> Jerl, It didn't help, for g/900913 still shows only a single dot. -- View this message in context: http://osgeo-org.1560.n6.nabble.com/Mapserver-mapcache-Google-Map-tp4958439p4965517.html Sent from the Mapserver - User mailing list archive at Nabble.com. From pcorti at gmail.com Thu May 10 05:06:49 2012 From: pcorti at gmail.com (Paolo Corti) Date: Thu, 10 May 2012 14:06:49 +0200 Subject: [mapserver-users] Help Required with WMS Time In-Reply-To: References: Message-ID: On Thu, May 10, 2012 at 1:24 PM, abhishek bansal wrote: > Hello All > > I am working on a project that require time as a dimension of data. I have > gone through all documentation but I am not able to understand that how do I > upload time data in server .map file. I have created simple map files and my > server is working. What i need is same layer on different time should > different dataset. > hi your question look very generic to me. In any case, did you check out the WMS Time documentation? [1] best regards p [1] http://mapserver.org/ogc/wms_time.html -- Paolo Corti Geospatial software developer web: http://www.paolocorti.net twitter: @capooti skype: capooti From thomas.bonfort at gmail.com Thu May 10 05:08:01 2012 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Thu, 10 May 2012 14:08:01 +0200 Subject: [mapserver-users] Re: Mapserver + mapcache + Google Map In-Reply-To: <1336651573401-4965517.post@n6.nabble.com> References: <1336420126718-4958632.post@n6.nabble.com> <1336650337076-4965470.post@n6.nabble.com> <1336651573401-4965517.post@n6.nabble.com> Message-ID: what requests are being sent out by mapcache to your wms server? can your wms server correctly create images in 900913 ? -- thomas On Thu, May 10, 2012 at 2:06 PM, mkrassovski wrote: > Jerl, > It didn't help, for g/900913 still shows only a single dot. > > -- > View this message in context: http://osgeo-org.1560.n6.nabble.com/Mapserver-mapcache-Google-Map-tp4958439p4965517.html > Sent from the Mapserver - User mailing list archive at Nabble.com. > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From forums at craniumjuice.com Thu May 10 05:10:26 2012 From: forums at craniumjuice.com (forums) Date: Thu, 10 May 2012 07:10:26 -0500 Subject: [mapserver-users] Re: Mapserver + mapcache + Google Map In-Reply-To: <1336651573401-4965517.post@n6.nabble.com> References: <1336420126718-4958632.post@n6.nabble.com> <1336650337076-4965470.post@n6.nabble.com> <1336651573401-4965517.post@n6.nabble.com> Message-ID: Are you passing lat/lon coordinates or meters? Total extent of the world would look something like: -20037508.3427892,-20037508.3427892,20037508.3427892,20037508.3427892 Instead of: -180,-90,180,90 If you're using lat/lon only in you call, all those points will show up near the center of the world...0,0 Can you see what the url sent to the wms looks like? Jerl On Thu, May 10, 2012 at 7:06 AM, mkrassovski wrote: > Jerl, > It didn't help, for g/900913 still shows only a single dot. > > -- > View this message in context: > http://osgeo-org.1560.n6.nabble.com/Mapserver-mapcache-Google-Map-tp4958439p4965517.html > Sent from the Mapserver - User mailing list archive at Nabble.com. > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -- A computer without Windows is like chocolate cake without mustard. -------------- next part -------------- An HTML attachment was scrubbed... URL: From discover.ab at gmail.com Thu May 10 05:13:50 2012 From: discover.ab at gmail.com (abhishek bansal) Date: Thu, 10 May 2012 17:43:50 +0530 Subject: [mapserver-users] Help Required with WMS Time In-Reply-To: References: Message-ID: Yes I checked out all documentation many times. But it is not clear how to upload data using time as a dimension in a map file. Example given in docs specify time for a single layer once. I need different result for different time values. I am not able to get it. On Thu, May 10, 2012 at 5:36 PM, Paolo Corti wrote: > On Thu, May 10, 2012 at 1:24 PM, abhishek bansal > wrote: > > Hello All > > > > I am working on a project that require time as a dimension of data. I > have > > gone through all documentation but I am not able to understand that how > do I > > upload time data in server .map file. I have created simple map files > and my > > server is working. What i need is same layer on different time should > > different dataset. > > > > hi > your question look very generic to me. In any case, did you check out > the WMS Time documentation? [1] > > best regards > p > > [1] http://mapserver.org/ogc/wms_time.html > > -- > Paolo Corti > Geospatial software developer > web: http://www.paolocorti.net > twitter: @capooti > skype: capooti > -- Thanks & Regards, Abhishek Bansal http://abhishekbansal.miyuri.com Jaypee Institute of Information Technology, Noida -------------- next part -------------- An HTML attachment was scrubbed... URL: From thomas.bonfort at gmail.com Thu May 10 05:14:41 2012 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Thu, 10 May 2012 14:14:41 +0200 Subject: [mapserver-users] mapcache - problems on install In-Reply-To: <4FABAF6B.2080607@meteo.cat> References: <36CA828A36E29F45B7CF0A1766E5DFA310B28E@swmail01.r8nssis.local> <4FAB9962.7080704@meteo.cat> <4FABAF6B.2080607@meteo.cat> Message-ID: please keep replies on the mailing list. On Thu, May 10, 2012 at 2:07 PM, Helen San Segundo Navazo wrote: > ok thanks, now seems that is really loaded the module. ([Thu May 10 13:21:24 > 2012] [notice] Apache/2.2.14 (Ubuntu) mod_fcgid/2.3.4 mod-mapcache/0.5-dev > configured -- resuming normal operations) > > The documentation talks about a demo, I can't find it. I have the > mapcache.xml file with a sample with a basic layer. Could you tell me how > test it, the url call? from the fine manual: " If you have not disabled the demo service, you should now have access to it on http://myserver/mapcache/demo " replace /mapcache/ with what you've set in MapCacheAlias -- thomas > > thanks again, > Helen > > > > > > > > /tmp > > > > > > > image/png > basic > > > > > http://vmap0.tiles.osgeo.org/wms/vmap0 > > > > > vmap0 > disk > WGS84 > g > PNG > 5 5 > 10 > 3600 > > > > JPEG > > > assemble > bilinear > JPEG > 4096 > > > > > > > > > report > /tmp > > > > El 10/05/12 12:46, thomas bonfort escribi?: > >> Sorry, pressed send too fast... >> >> you must use >> >> >> ? ? >> ? ? ? Order Allow,Deny >> ? ? ? Allow from all >> ? ? >> ? ?MapCacheAlias /mapcache "/path/to/directory/mapcache.xml" >> >> >> and not >> >> >> ? ?SetEnv MAPCACHE_CONFIG_FILE >> >> "/home/curs/Desarrollo/Aplicaciones/mapserver-mapcache-18a50e2/mapcache.xml" >> >> >> >> On Thu, May 10, 2012 at 12:43 PM, thomas bonfort >> ?wrote: >>> >>> the instructions for running mapcache as an apache module are on the >>> page you linked, more precisely: >>> >>> http://mapserver.org/trunk/mapcache/install.html#apache-module-specific-instructions >>> >>> -- >>> thomas >>> >>> On Thu, May 10, 2012 at 12:33 PM, Helen San Segundo Navazo >>> ?wrote: >>>> >>>> Hi, >>>> I'm new using mapcache. I've tried to install it following the >>>> instructions >>>> on http://mapserver.org/trunk/mapcache/install.html. >>>> >>>> First >>>> >>>> $./configure >>>> $make >>>> $sudo make install >>>> >>>> >>>> and after the apache module >>>> >>>> $sudo make install-module >>>> $sudo ldconfig >>>> >>>> >>>> On my httpd.conf I've added >>>> >>>> >>>> ? ?SetEnv MAPCACHE_CONFIG_FILE >>>> >>>> "/home/curs/Desarrollo/Aplicaciones/mapserver-mapcache-18a50e2/mapcache.xml" >>>> >>>> >>>> when I try to invoque mapcache in the apache log there is this error: >>>> >>>> /usr/lib/cgi-bin/mapcache: line 202: cd: >>>> /home/curs/Desarrollo/Aplicaciones/mapserver-mapcache-18a50e2/cgi: Not a >>>> directory >>>> gcc: mapcache.c: No such file or directory >>>> gcc: ../lib/.libs/libmapcache.so: No such file or directoryn[Thu May 10 >>>> 11:57:23 2012] [error] [client 127.0.0.1] Premature end of script >>>> headers: >>>> mapcache >>>> >>>> the directory exists and has permisions to access >>>> >>>> Somebody knows how to solve it? >>>> Thanks in advance, >>>> Helen >>>> _______________________________________________ >>>> mapserver-users mailing list >>>> mapserver-users at lists.osgeo.org >>>> http://lists.osgeo.org/mailman/listinfo/mapserver-users > > From hsansegundo at meteo.cat Thu May 10 06:16:44 2012 From: hsansegundo at meteo.cat (Helen San Segundo Navazo) Date: Thu, 10 May 2012 15:16:44 +0200 Subject: [mapserver-users] mapcache - problems on install In-Reply-To: References: <36CA828A36E29F45B7CF0A1766E5DFA310B28E@swmail01.r8nssis.local> <4FAB9962.7080704@meteo.cat> <4FABAF6B.2080607@meteo.cat> Message-ID: <4FABBFBC.6000200@meteo.cat> hi, deliberately I have not disabled the demo service, maybe in the installation I had to put any "--with" to enable it? is there any way to activate it? thanks El 10/05/12 14:14, thomas bonfort escribi?: > please keep replies on the mailing list. > > On Thu, May 10, 2012 at 2:07 PM, Helen San Segundo Navazo > wrote: >> ok thanks, now seems that is really loaded the module. ([Thu May 10 13:21:24 >> 2012] [notice] Apache/2.2.14 (Ubuntu) mod_fcgid/2.3.4 mod-mapcache/0.5-dev >> configured -- resuming normal operations) >> >> The documentation talks about a demo, I can't find it. I have the >> mapcache.xml file with a sample with a basic layer. Could you tell me how >> test it, the url call? > from the fine manual: > " > If you have not disabled the demo service, you should now have access > to it on http://myserver/mapcache/demo > " > > replace /mapcache/ with what you've set in MapCacheAlias > > -- > thomas > >> thanks again, >> Helen >> >> >> >> >> >> >> >> /tmp >> >> >> >> >> >> >> image/png >> basic >> >> >> >> >> http://vmap0.tiles.osgeo.org/wms/vmap0 >> >> >> >> >> vmap0 >> disk >> WGS84 >> g >> PNG >> 5 5 >> 10 >> 3600 >> >> >> >> JPEG >> >> >> assemble >> bilinear >> JPEG >> 4096 >> >> >> >> >> >> >> >> >> report >> /tmp >> >> >> >> El 10/05/12 12:46, thomas bonfort escribi?: >> >>> Sorry, pressed send too fast... >>> >>> you must use >>> >>> >>> >>> Order Allow,Deny >>> Allow from all >>> >>> MapCacheAlias /mapcache "/path/to/directory/mapcache.xml" >>> >>> >>> and not >>> >>> >>> SetEnv MAPCACHE_CONFIG_FILE >>> >>> "/home/curs/Desarrollo/Aplicaciones/mapserver-mapcache-18a50e2/mapcache.xml" >>> >>> >>> >>> On Thu, May 10, 2012 at 12:43 PM, thomas bonfort >>> wrote: >>>> the instructions for running mapcache as an apache module are on the >>>> page you linked, more precisely: >>>> >>>> http://mapserver.org/trunk/mapcache/install.html#apache-module-specific-instructions >>>> >>>> -- >>>> thomas >>>> >>>> On Thu, May 10, 2012 at 12:33 PM, Helen San Segundo Navazo >>>> wrote: >>>>> Hi, >>>>> I'm new using mapcache. I've tried to install it following the >>>>> instructions >>>>> on http://mapserver.org/trunk/mapcache/install.html. >>>>> >>>>> First >>>>> >>>>> $./configure >>>>> $make >>>>> $sudo make install >>>>> >>>>> >>>>> and after the apache module >>>>> >>>>> $sudo make install-module >>>>> $sudo ldconfig >>>>> >>>>> >>>>> On my httpd.conf I've added >>>>> >>>>> >>>>> SetEnv MAPCACHE_CONFIG_FILE >>>>> >>>>> "/home/curs/Desarrollo/Aplicaciones/mapserver-mapcache-18a50e2/mapcache.xml" >>>>> >>>>> >>>>> when I try to invoque mapcache in the apache log there is this error: >>>>> >>>>> /usr/lib/cgi-bin/mapcache: line 202: cd: >>>>> /home/curs/Desarrollo/Aplicaciones/mapserver-mapcache-18a50e2/cgi: Not a >>>>> directory >>>>> gcc: mapcache.c: No such file or directory >>>>> gcc: ../lib/.libs/libmapcache.so: No such file or directoryn[Thu May 10 >>>>> 11:57:23 2012] [error] [client 127.0.0.1] Premature end of script >>>>> headers: >>>>> mapcache >>>>> >>>>> the directory exists and has permisions to access >>>>> >>>>> Somebody knows how to solve it? >>>>> Thanks in advance, >>>>> Helen >>>>> _______________________________________________ >>>>> mapserver-users mailing list >>>>> mapserver-users at lists.osgeo.org >>>>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> From thomas.bonfort at gmail.com Thu May 10 06:38:52 2012 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Thu, 10 May 2012 15:38:52 +0200 Subject: [mapserver-users] mapcache - problems on install In-Reply-To: <4FABBFBC.6000200@meteo.cat> References: <36CA828A36E29F45B7CF0A1766E5DFA310B28E@swmail01.r8nssis.local> <4FAB9962.7080704@meteo.cat> <4FABAF6B.2080607@meteo.cat> <4FABBFBC.6000200@meteo.cat> Message-ID: given your configuration file, you have not disabled it. what url are you trying to access the demo on ? On Thu, May 10, 2012 at 3:16 PM, Helen San Segundo Navazo wrote: > hi, > deliberately I have not disabled the demo service, maybe in the installation > I had to put any "--with" to enable it? is there any way to activate it? > thanks > > El 10/05/12 14:14, thomas bonfort escribi?: > >> please keep replies on the mailing list. >> >> On Thu, May 10, 2012 at 2:07 PM, Helen San Segundo Navazo >> ?wrote: >>> >>> ok thanks, now seems that is really loaded the module. ([Thu May 10 >>> 13:21:24 >>> 2012] [notice] Apache/2.2.14 (Ubuntu) mod_fcgid/2.3.4 >>> mod-mapcache/0.5-dev >>> configured -- resuming normal operations) >>> >>> The documentation talks about a demo, I can't find it. I have the >>> mapcache.xml file with a sample with a basic layer. Could you tell me how >>> test it, the url call? >> >> from the fine manual: >> " >> If you have not disabled the demo service, you should now have access >> to it on http://myserver/mapcache/demo >> " >> >> replace /mapcache/ with what you've set in MapCacheAlias >> >> -- >> thomas >> >>> thanks again, >>> Helen >>> >>> >>> >>> >>> >>> >>> >>> /tmp >>> >>> >>> >>> >>> >>> >>> image/png >>> basic >>> >>> >>> >>> >>> http://vmap0.tiles.osgeo.org/wms/vmap0 >>> >>> >>> >>> >>> vmap0 >>> disk >>> WGS84 >>> g >>> PNG >>> 5 5 >>> 10 >>> 3600 >>> >>> >>> >>> JPEG >>> >>> >>> assemble >>> bilinear >>> JPEG >>> 4096 >>> >>> >>> >>> >>> >>> >>> >>> >>> report >>> /tmp >>> >>> >>> >>> El 10/05/12 12:46, thomas bonfort escribi?: >>> >>>> Sorry, pressed send too fast... >>>> >>>> you must use >>>> >>>> >>>> ? ? >>>> ? ? ? Order Allow,Deny >>>> ? ? ? Allow from all >>>> ? ? >>>> ? ?MapCacheAlias /mapcache "/path/to/directory/mapcache.xml" >>>> >>>> >>>> and not >>>> >>>> >>>> ? ?SetEnv MAPCACHE_CONFIG_FILE >>>> >>>> >>>> "/home/curs/Desarrollo/Aplicaciones/mapserver-mapcache-18a50e2/mapcache.xml" >>>> >>>> >>>> >>>> On Thu, May 10, 2012 at 12:43 PM, thomas bonfort >>>> ? ?wrote: >>>>> >>>>> the instructions for running mapcache as an apache module are on the >>>>> page you linked, more precisely: >>>>> >>>>> >>>>> http://mapserver.org/trunk/mapcache/install.html#apache-module-specific-instructions >>>>> >>>>> -- >>>>> thomas >>>>> >>>>> On Thu, May 10, 2012 at 12:33 PM, Helen San Segundo Navazo >>>>> ? ?wrote: >>>>>> >>>>>> Hi, >>>>>> I'm new using mapcache. I've tried to install it following the >>>>>> instructions >>>>>> on http://mapserver.org/trunk/mapcache/install.html. >>>>>> >>>>>> First >>>>>> >>>>>> $./configure >>>>>> $make >>>>>> $sudo make install >>>>>> >>>>>> >>>>>> and after the apache module >>>>>> >>>>>> $sudo make install-module >>>>>> $sudo ldconfig >>>>>> >>>>>> >>>>>> On my httpd.conf I've added >>>>>> >>>>>> >>>>>> ? ?SetEnv MAPCACHE_CONFIG_FILE >>>>>> >>>>>> >>>>>> "/home/curs/Desarrollo/Aplicaciones/mapserver-mapcache-18a50e2/mapcache.xml" >>>>>> >>>>>> >>>>>> when I try to invoque mapcache in the apache log there is this error: >>>>>> >>>>>> /usr/lib/cgi-bin/mapcache: line 202: cd: >>>>>> /home/curs/Desarrollo/Aplicaciones/mapserver-mapcache-18a50e2/cgi: Not >>>>>> a >>>>>> directory >>>>>> gcc: mapcache.c: No such file or directory >>>>>> gcc: ../lib/.libs/libmapcache.so: No such file or directoryn[Thu May >>>>>> 10 >>>>>> 11:57:23 2012] [error] [client 127.0.0.1] Premature end of script >>>>>> headers: >>>>>> mapcache >>>>>> >>>>>> the directory exists and has permisions to access >>>>>> >>>>>> Somebody knows how to solve it? >>>>>> Thanks in advance, >>>>>> Helen >>>>>> _______________________________________________ >>>>>> mapserver-users mailing list >>>>>> mapserver-users at lists.osgeo.org >>>>>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>> >>> > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From MarkVolz at co.lyon.mn.us Thu May 10 06:57:19 2012 From: MarkVolz at co.lyon.mn.us (Mark Volz) Date: Thu, 10 May 2012 13:57:19 +0000 Subject: [mapserver-users] RE: mapcache - working with different grids In-Reply-To: References: <36CA828A36E29F45B7CF0A1766E5DFA310B28E@swmail01.r8nssis.local> Message-ID: <36CA828A36E29F45B7CF0A1766E5DFA3112B6A@swmail01.r8nssis.local> Thomas, *note I noticed that ArcCatalog reports the LatLongBoundingBox as 0, 0, 0,0. This is probably important... I realize that mapcahce does not project. For testing I completely removed my grid, source, and tileset that is in county coordinates. My other cache is in UTM 15, The only grid I have advertised is UTM15 such as: UTM15 So here is what I have: Demo: The demo site works fine. Here is an example request that works http://10.0.8.116/mapcache/?LAYERS=MNSOUTH11&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&FORMAT=image%2Fjpeg&SRS=EPSG%3A26915&BBOX=438394.0589,4887031.0797,471162.0589,4919799.0797&WIDTH=256&HEIGHT=256 WMS in ArcCatalog: Doesn?t work The lat long bounding box is 0,0,0,0. Furthermore ArcCatalog advertises EPSG: 26915 (which is correct) , EPSG: 900913, EPSG 26915 again?, EPSG: 3857. How can I remove the other projections. I only want to serve 26915. * I did try to change the coordinate system that ArcCatalog / ArcMap requests to UTM 15. Mapcahce still did not work WMS in QGIS: Doesn?t work. In the properties for the service (root layer) I noticed the WGS 84 Bounding Box is empty. However, the layer MNSOUTH11 does have a valid bounding box WMTS in QGIS: Works. When adding the WMS layer in QGIS, I noticed I could switch between layers (wms) and Tilesets (WMTS?). The tilesets work in QGIS. ******************************************************** When I did have the County Map service configured, nothing worked. Not even the demo. I didn't even get any pink tiles in the demo, and firebug reported that it was not even trying to request anything. Let me know if you have any thoughts as to why the WMS service isn?t working. Thanks for all your help Mark Volz GIS Specialist Lyon County, MN -----Original Message----- From: thomas bonfort [mailto:thomas.bonfort at gmail.com] Sent: Thursday, May 10, 2012 6:02 AM To: Mark Volz Cc: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] mapcache - working with different grids Hi, On Wed, May 9, 2012 at 9:45 PM, Mark Volz wrote: > Hello, > > I started working with Mapcache.? I added a tileset that is in UTM 15 > (26915) and it is working fine on the demo page > http://localhost/mapcache/demo/wms.? However when I add the layer to > ArcView, I get a warning about inconsistent extents.?? I noticed the > service is advertising several extents:? EPSG:900913, EPSG:103749, > EPSG:26915, EPSG:4326, EPSG:3857.? So I made sure ArcGIS was > requesting the correct coordinate system via layer>change coordinate > system.? Even after switching the coordinate system, I still did not > see anything? (even when zoomed into the appropriate area) I've never tried the wms service in arcgis... what I do know is that mapcache advertises all known grids in the wms root layer, however only the actually cached grids are advertised for each individual layer (that's what the spec requires, although it does not fit very well with cached layers). I wouldn't be very surprised arcgis chokes on that. Check your server logs for the requests actually being sent out by arcgis, that will at least tell you if the correct grid is being used. > > I also am trying to get another layer cached, which is in county > coordinates.? I did add a grid for the county coordinates.? > Unfortunately I cannot get that service working in either the demo > page or the ArcMap.? I can get the source of that service (before it > is cached in MapCache) to work in ArcMap. need more info... mapcache itself does no projection handling, the grid srs is only used as a key to lookup which tiles to return, and is forwarded to the wms server as is. Right clicking on a pink tile in the demo page and opening the image in a new window might give you more info to help debugging. -- thomas > > > Questions: > > > Is this the right mailing list, or does mapcache have a separate list? > How can I limit the grids / spatial references that Mapcache advertises? > What am I missing that Mapcache works fine in the demo pages, but not > in ArcMap?? - note I set? assemble and enabled="true"> > Is there anything I need to know about custom spatial references?? I > am guessing that Mapserver itself only needs the grid set. > > > > Thanks for all the help! > > > Mark Volz > GIS Specialist > > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -------------- next part -------------- A non-text attachment was scrubbed... Name: mapcache.xml Type: text/xml Size: 5005 bytes Desc: mapcache.xml URL: From jeremyswilson at att.net Thu May 10 07:08:22 2012 From: jeremyswilson at att.net (j5c077) Date: Thu, 10 May 2012 07:08:22 -0700 (PDT) Subject: [mapserver-users] Re: Mapserver MSSQL connect In-Reply-To: <4FAABD1B.8010105@gatewaygeomatics.com> References: <1336583683738-4963596.post@n6.nabble.com> <4FAABD1B.8010105@gatewaygeomatics.com> Message-ID: <1336658902514-4965776.post@n6.nabble.com> thanks for your reply. i had tried that as well but i thought that was for windows. i am using mapserver on linux. the error i got then was Failed to load dynamic Layer LIB: msplugin_mssql2008.dll.so msGetSymbol(): General error message. Dynamic loading failed: msplugin_mssql2008.dll.so: cannot open shared object file: No such file or directory -- View this message in context: http://osgeo-org.1560.n6.nabble.com/Mapserver-MSSQL-connect-tp4963596p4965776.html Sent from the Mapserver - User mailing list archive at Nabble.com. From Steve.Lime at state.mn.us Thu May 10 07:36:28 2012 From: Steve.Lime at state.mn.us (Lime, Steve D (DNR)) Date: Thu, 10 May 2012 14:36:28 +0000 Subject: [mapserver-users] Re: polygon border artifacts In-Reply-To: References: Message-ID: I'm unable to recreate the artifact with a simple test case though so I'm not exactly sure what's going wrong. This mapfile defines a couple of overlapping polygons and there is no rendering issue. MAP SIZE 512 512 IMAGETYPE PNG8 EXTENT 0 0 1000 1000 IMAGECOLOR 255 0 0 LAYER NAME "test" TYPE POLYGON STATUS DEFAULT FEATURE POINTS 100 100 600 100 600 600 100 600 100 100 END END FEATURE POINTS 300 70 800 70 800 800 300 800 300 70 END END CLASS STYLE COLOR 128 255 255 # OUTLINECOLOR 0 0 0 END END # of class END # of layer END Online at: http://maps1.dnr.state.mn.us/cgi-bin/mapserv60?map=/usr/local/mapserver/apps/test/ocean/test4.map&mode=map Your original test case (+labels): http://maps1.dnr.state.mn.us/cgi-bin/mapserv60?map=/usr/local/mapserver/apps/test/ocean/test.map&mode=map Steve -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Sven Geggus Sent: Wednesday, May 09, 2012 8:18 AM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] Re: polygon border artifacts "Lime, Steve D (DNR)" wrote: > Do outlines fix things at all zoom levels? Not really. The Workaround which is working best for now is using a very big polygon Overlap of 100Meters (Talking about Google Mercator here) which I feel is way to much and an outline with of 1. To completely get rid of artifacts I would need an Outline width of 2, but this is not small enough IMO. > What about the possibility of fixing the data? The bug is clearly with mapserver here, the data is fine IMO. The tool used for generation of the tiles does already allow for generation of arbitrary overlap widths (https://github.com/joto/osmcoastline/). > I mean, unioning the ocean polys into one, or better yet deriving land > polygons from that data. No, unfortunately both of them are not an Option! 1. Unioning the polygons: I presented a small shapefile just to demonstrate the problem. The original file I want to use contains ocean tiles covering the whole world. So this has been spitted into tiles for a reason! 2. Land polygons: These are also not an option because I want to use the ocean tiles to cover inaccurate hillshading derived from srtm. This will not work the other way round. The only thing I could imagine as a solution on the data side would be the clipping of the hillshades by means of the polygon shape. Regards Sven -- TCP/IP: telecommunication protocol for imbibing pilsners (Man-page uubp(1C) on Debian/GNU Linux) /me is giggls at ircnet, http://sven.gegg.us/ on the Web _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From Jukka.Rahkonen at mmmtike.fi Thu May 10 07:51:18 2012 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Thu, 10 May 2012 14:51:18 +0000 Subject: [mapserver-users] Re: polygon border artifacts In-Reply-To: References: Message-ID: <84446DEF76453C439E9E97E438E13A6314DC39@suutari.haapa.mmm.fi> Hi, Perhaps PNG8 does not have enough many colours for showing the artifacts? -Jukka Rahkonen- Lime, Steve wrote: > I'm unable to recreate the artifact with a simple test case > though so I'm not exactly sure what's going wrong. This mapfile > defines a couple of overlapping polygons and there is no > rendering issue. > > MAP > SIZE 512 512 > > IMAGETYPE PNG8 > > EXTENT 0 0 1000 1000 > IMAGECOLOR 255 0 0 > > LAYER > NAME "test" > TYPE POLYGON > STATUS DEFAULT > FEATURE > POINTS 100 100 600 100 600 600 100 600 100 100 END > END > FEATURE > POINTS 300 70 800 70 800 800 300 800 300 70 END > END > CLASS > STYLE > COLOR 128 255 255 > # OUTLINECOLOR 0 0 0 > END > END # of class > END # of layer > END > > Online at: > http://maps1.dnr.state.mn.us/cgi-bin/mapserv60?map=/usr/local/ mapserver/apps/test/ocean/test4.map&mode=map > Your original test case (+labels): > http://maps1.dnr.state.mn.us/cgi-bin/mapserv60?map=/usr/local/ mapserver/apps/test/ocean/test.map&mode=map > > Steve > > -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of > Sven Geggus > Sent: Wednesday, May 09, 2012 8:18 AM > To: mapserver-users at lists.osgeo.org > Subject: [mapserver-users] Re: polygon border artifacts > > "Lime, Steve D (DNR)" wrote: > > > Do outlines fix things at all zoom levels? > > Not really. The Workaround which is working best for now is > using a very big polygon Overlap of 100Meters (Talking about > Google Mercator here) which I feel is way to much and an > outline with of 1. To completely get rid of artifacts I would > need an Outline width of 2, but this is not small enough IMO. > > > What about the possibility of fixing the data? > > The bug is clearly with mapserver here, the data is fine IMO. > The tool used for generation of the tiles does already allow > for generation of arbitrary overlap widths > (https://github.com/joto/osmcoastline/). > > > I mean, unioning the ocean polys into one, or better yet > deriving land > > polygons from that data. > > No, unfortunately both of them are not an Option! > > 1. Unioning the polygons: > I presented a small shapefile just to demonstrate the problem. > The original file I want to use contains ocean tiles covering > the whole world. So this has been spitted into tiles for a reason! > > 2. Land polygons: > These are also not an option because I want to use the ocean > tiles to cover inaccurate hillshading derived from srtm. This > will not work the other way round. > > The only thing I could imagine as a solution on the data side > would be the clipping of the hillshades by means of the polygon shape. > > Regards > > Sven > > -- > TCP/IP: telecommunication protocol for imbibing pilsners > (Man-page uubp(1C) on > Debian/GNU Linux) > > /me is giggls at ircnet, http://sven.gegg.us/ on the Web > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From thomas.bonfort at gmail.com Thu May 10 07:57:37 2012 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Thu, 10 May 2012 16:57:37 +0200 Subject: [mapserver-users] polygon border artifacts In-Reply-To: References: Message-ID: you can fiddle with gamma correction in mapserver trunk, c.f. https://twitter.com/#!/tbonfort/status/93284998249066496 OUTPUTFORMAT DRIVER AGG/PNG ... FORMATOPTION "GAMMA=0.7" #valid from 0 to 1 END -- thomas On Fri, May 4, 2012 at 12:16 PM, Sven Geggus wrote: > Hello, > > the brilliant osm coastline tool from Jochen Topf > (http://blog.jochentopf.com/2012-04-19-more-coastlines-stuff.html) > enables for creating nice ocean or landcover polygons from > Openstreetmap data. ?Well, this is where my mapserver problem > starts... > > For illustration of the problem I just created ocean polygons around > canary islands > > http://home.geggus.net/pub/ocean-canary-islands.zip > > They are in sperical mercator using a huge overlap of 30meters to > avoid artifacts. > However artifacts (which seem to depend on scale) still arise: > > http://home.geggus.net/pub/ocean.png > > Here is the mapfile and shp2img command I used for rendering: > > shp2img -o ocean.png -m ocean.map -e -1917656.09 3248262.91 -1839384.59 3326534.41 -s 512 512 > > MAP > > ?OUTPUTFORMAT > ? ? ?NAME agg > ? ? ?DRIVER AGG/PNG8 > ? ? ?FORMATOPTION "INTERLACE=OFF" > ? ? ?MIMETYPE "image/png" > ?END > > ?EXTENT ? ? ? ? -180 -85 180 85 > > ?IMAGECOLOR 255 0 0 > > ?WEB > ? ? ?METADATA > ? ? ? ?"ows_enable_request" "*" > ? ? ? ? wms_srs "EPSG:4326 EPSG:3857" > ? ? ?END > ?END > > ?PROJECTION > ?"init=epsg:3857" > ?END > > ?LAYER > ? ? PROCESSING ? ? "CLOSE_CONNECTION=DEFER" > ? ? NAME ? ? ? ? ? "ocean" > ? ? TYPE ? ? ? ? ? POLYGON > ? ? STATUS ? ? ? ? ON > ? ? DATA ? ? ? ? ? "ocean-canary-islands" > ? ? PROJECTION > ? ? ? ?"init=epsg:3857" > ? ? END > ? ? CLASS > ? ? ? STYLE > ? ? ? ? COLOR 128 255 255 > ? ? ? END > ? ? END # of class > ?END # of layer > END > > The only workaround I found so far is to use an outline: > > OUTLINECOLOR 128 255 255 > WIDTH 1 > > Is this a bug in mapserver or is there something else which I can do? > > Sven > > -- > "Ich f?rchte mich nicht vor der R?ckkehr der Faschisten in der Maske der > Faschisten, sondern vor der R?ckkehr der Faschisten in der Maske der > Demokraten" (Theodor W. Adorno) > /me is giggls at ircnet, http://sven.gegg.us/ on the Web > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From Steve.Lime at state.mn.us Thu May 10 08:06:47 2012 From: Steve.Lime at state.mn.us (Lime, Steve D (DNR)) Date: Thu, 10 May 2012 15:06:47 +0000 Subject: [mapserver-users] Re: polygon border artifacts In-Reply-To: <84446DEF76453C439E9E97E438E13A6314DC39@suutari.haapa.mmm.fi> References: <84446DEF76453C439E9E97E438E13A6314DC39@suutari.haapa.mmm.fi> Message-ID: They'd actually be more pronounced if that were the case. PNG24 doesn't show 'em either. -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Rahkonen Jukka Sent: Thursday, May 10, 2012 9:51 AM To: 'mapserver-users at lists.osgeo.org' Subject: Re: [mapserver-users] Re: polygon border artifacts Hi, Perhaps PNG8 does not have enough many colours for showing the artifacts? -Jukka Rahkonen- Lime, Steve wrote: > I'm unable to recreate the artifact with a simple test case though so > I'm not exactly sure what's going wrong. This mapfile defines a couple > of overlapping polygons and there is no rendering issue. > > MAP > SIZE 512 512 > > IMAGETYPE PNG8 > > EXTENT 0 0 1000 1000 > IMAGECOLOR 255 0 0 > > LAYER > NAME "test" > TYPE POLYGON > STATUS DEFAULT > FEATURE > POINTS 100 100 600 100 600 600 100 600 100 100 END > END > FEATURE > POINTS 300 70 800 70 800 800 300 800 300 70 END > END > CLASS > STYLE > COLOR 128 255 255 > # OUTLINECOLOR 0 0 0 > END > END # of class > END # of layer > END > > Online at: > http://maps1.dnr.state.mn.us/cgi-bin/mapserv60?map=/usr/local/ mapserver/apps/test/ocean/test4.map&mode=map > Your original test case (+labels): > http://maps1.dnr.state.mn.us/cgi-bin/mapserv60?map=/usr/local/ mapserver/apps/test/ocean/test.map&mode=map > > Steve > > -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Sven > Geggus > Sent: Wednesday, May 09, 2012 8:18 AM > To: mapserver-users at lists.osgeo.org > Subject: [mapserver-users] Re: polygon border artifacts > > "Lime, Steve D (DNR)" wrote: > > > Do outlines fix things at all zoom levels? > > Not really. The Workaround which is working best for now is using a > very big polygon Overlap of 100Meters (Talking about Google Mercator > here) which I feel is way to much and an outline with of 1. To > completely get rid of artifacts I would need an Outline width of 2, > but this is not small enough IMO. > > > What about the possibility of fixing the data? > > The bug is clearly with mapserver here, the data is fine IMO. > The tool used for generation of the tiles does already allow for > generation of arbitrary overlap widths > (https://github.com/joto/osmcoastline/). > > > I mean, unioning the ocean polys into one, or better yet > deriving land > > polygons from that data. > > No, unfortunately both of them are not an Option! > > 1. Unioning the polygons: > I presented a small shapefile just to demonstrate the problem. > The original file I want to use contains ocean tiles covering the > whole world. So this has been spitted into tiles for a reason! > > 2. Land polygons: > These are also not an option because I want to use the ocean tiles to > cover inaccurate hillshading derived from srtm. This will not work the > other way round. > > The only thing I could imagine as a solution on the data side would be > the clipping of the hillshades by means of the polygon shape. > > Regards > > Sven > > -- > TCP/IP: telecommunication protocol for imbibing pilsners > (Man-page uubp(1C) on Debian/GNU Linux) > > /me is giggls at ircnet, http://sven.gegg.us/ on the Web > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From thomas.bonfort at gmail.com Thu May 10 23:48:24 2012 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Fri, 11 May 2012 08:48:24 +0200 Subject: [mapserver-users] Re: mapcache - working with different grids In-Reply-To: <36CA828A36E29F45B7CF0A1766E5DFA3112B6A@swmail01.r8nssis.local> References: <36CA828A36E29F45B7CF0A1766E5DFA310B28E@swmail01.r8nssis.local> <36CA828A36E29F45B7CF0A1766E5DFA3112B6A@swmail01.r8nssis.local> Message-ID: Mark, can you send me the generated capabilities document ? -- thomas On Thu, May 10, 2012 at 3:57 PM, Mark Volz wrote: > Thomas, > > *note I noticed that ArcCatalog reports the LatLongBoundingBox as 0, 0, 0,0. ?This is probably important... > > > > I realize that mapcahce does not project. ?For testing I completely removed my grid, source, and tileset that is in county coordinates. ?My other cache is in UTM 15, The only grid I have advertised is UTM15 such as: > > ? ? ? > ? ? ? > ? ? ?UTM15 > > So here is what I have: > > Demo: The demo site works fine. ?Here is an example request that works > http://10.0.8.116/mapcache/?LAYERS=MNSOUTH11&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&FORMAT=image%2Fjpeg&SRS=EPSG%3A26915&BBOX=438394.0589,4887031.0797,471162.0589,4919799.0797&WIDTH=256&HEIGHT=256 > > WMS in ArcCatalog: ?Doesn?t work > The lat long bounding box is 0,0,0,0. ?Furthermore ArcCatalog advertises EPSG: 26915 (which is correct) , EPSG: 900913, EPSG 26915 again?, EPSG: 3857. ?How can I remove the other projections. ?I only want to serve 26915. > * I did try to change the coordinate system that ArcCatalog / ArcMap requests to UTM 15. Mapcahce still did not work > > WMS in QGIS: ?Doesn?t work. > In the properties for the service (root layer) I noticed the WGS 84 Bounding Box is empty. ?However, the layer MNSOUTH11 does have a valid bounding box > > WMTS in QGIS: ?Works. > When adding the WMS layer in QGIS, I noticed I could switch between layers (wms) and Tilesets (WMTS?). ?The tilesets work in QGIS. > > ******************************************************** > > When I did have the County Map service configured, nothing worked. ?Not even the demo. ?I didn't even get any pink tiles in the demo, and firebug reported that it was not even trying to request anything. > > > Let me know if you have any thoughts as to why the WMS service isn?t working. > > Thanks for all your help > > > Mark Volz > GIS Specialist > Lyon County, MN > > -----Original Message----- > From: thomas bonfort [mailto:thomas.bonfort at gmail.com] > Sent: Thursday, May 10, 2012 6:02 AM > To: Mark Volz > Cc: mapserver-users at lists.osgeo.org > Subject: Re: [mapserver-users] mapcache - working with different grids > > Hi, > > > On Wed, May 9, 2012 at 9:45 PM, Mark Volz wrote: >> Hello, >> >> I started working with Mapcache.? I added a tileset that is in UTM 15 >> (26915) and it is working fine on the demo page >> http://localhost/mapcache/demo/wms.? However when I add the layer to >> ArcView, I get a warning about inconsistent extents.?? I noticed the >> service is advertising several extents:? EPSG:900913, EPSG:103749, >> EPSG:26915, EPSG:4326, EPSG:3857.? So I made sure ArcGIS was >> requesting the correct coordinate system via layer>change coordinate >> system.? Even after switching the coordinate system, I still did not >> see anything? (even when zoomed into the appropriate area) > > I've never tried the wms service in arcgis... > > what I do know is that mapcache advertises all known grids in the wms root layer, however only the actually cached grids are advertised for each individual layer (that's what the spec requires, although it does not fit very well with cached layers). I wouldn't be very surprised arcgis chokes on that. > Check your server logs for the requests actually being sent out by arcgis, that will at least tell you if the correct grid is being used. > >> >> I also am trying to get another layer cached, which is in county >> coordinates.? I did add a grid for the county coordinates. >> Unfortunately I cannot get that service working in either the demo >> page or the ArcMap.? I can get the source of that service (before it >> is cached in MapCache) to work in ArcMap. > > need more info... mapcache itself does no projection handling, the grid srs is only used as a key to lookup which tiles to return, and is forwarded to the wms server as is. Right clicking on a pink tile in the demo page and opening the image in a new window might give you more info to help debugging. > > -- > thomas > >> >> >> Questions: >> >> >> Is this the right mailing list, or does mapcache have a separate list? >> How can I limit the grids / spatial references that Mapcache advertises? >> What am I missing that Mapcache works fine in the demo pages, but not >> in ArcMap?? - note I set? assemble and > enabled="true"> >> Is there anything I need to know about custom spatial references?? I >> am guessing that Mapserver itself only needs the grid set. >> >> >> >> Thanks for all the help! >> >> >> Mark Volz >> GIS Specialist >> >> >> >> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> From hsansegundo at meteo.cat Fri May 11 00:11:47 2012 From: hsansegundo at meteo.cat (Helen San Segundo Navazo) Date: Fri, 11 May 2012 09:11:47 +0200 Subject: [mapserver-users] Help Required with WMS Time In-Reply-To: References: <4FABAB17.9060704@meteo.cat> <4FABB1C3.8030305@meteo.cat> <4FABC2A1.6080802@meteo.cat> Message-ID: <4FACBBB3.2060101@meteo.cat> Hi, * for the first point, in my last email you have an example with a raster file, here you have it, in it the variable is the full file name, but you can do it how is better for you, being careful with the pattern LAYER NAME 'Meteosat' TYPE RASTER DUMP true TOLERANCE 10 TOLERANCEUNITS DD HEADER "templates/getfeatureinfo_header.html" # header html template TEMPLATE "templates/getfeatureinfo_content.html" # content html template FOOTER "templates/getfeatureinfo_footer.html" # footer html template METADATA 'ows_title' 'Meteosat' 'wms_feature_info_mime_type' "text/html" "gml_include_items" "all" "wms_include_items" "all" "ows_enable_request" "*" 'file_validation_pattern' "[A-Z0-9._%+-|'\(\)]" 'default_file' "ultima_imatge" END VALIDATION 'file' "[A-Z0-9._%+-|'\(\)]" END DATA '/var/www/html/mapserver/mfd_lin/datos/meteosat/%file%.img' * For the second point, till I know, the function shp2pgsql creates a script with all the attributes you have in the shapefile, if you want to have a time column that is not in the shapefile, you have to add it later after creating the table in the database, maybe somebody in the list knows how to do it automatically when you invoke shp2pgsql. Helen El 11/05/12 06:47, abhishek bansal escribi?: > Hi Helen, > > I think I will have to do it ultimately by your way. Sorry for > bothering you but could you please help me with these two questions > > 1.) Will i be able to get raster data also with this method ? > 2.) How do I include time data in postgis database as it is created > automatically by shp2pgsql utility ? > > Thank You > Abhishek Bansal > > On Thu, May 10, 2012 at 6:59 PM, Helen San Segundo Navazo > > wrote: > > ok, good luck > > El 10/05/12 14:26, abhishek bansal escribi?: >> But I dont want to use any database either !! >> >> On Thu, May 10, 2012 at 5:47 PM, Helen San Segundo Navazo >> > wrote: >> >> using the runtime substitution you can use getcapabilities >> request with all the description to see layers, proyections >> ...., it works as if you don't use the variables >> >> Here you have an example using a binary file >> >> LAYER >> >> NAME 'Meteosat' >> TYPE RASTER >> DUMP true >> TOLERANCE 10 >> TOLERANCEUNITS DD >> >> >> HEADER "templates/getfeatureinfo_header.html" # header >> html template >> TEMPLATE "templates/getfeatureinfo_content.html" # >> content html template >> FOOTER "templates/getfeatureinfo_footer.html" # footer >> html template >> >> METADATA >> 'ows_title' 'Meteosat' >> >> 'wms_feature_info_mime_type' "text/html" >> "gml_include_items" "all" >> "wms_include_items" "all" >> "ows_enable_request" "*" >> >> 'file_validation_pattern' "[A-Z0-9._%+-|'\(\)]" >> >> 'default_file' "ultima_imatge" >> >> END >> >> VALIDATION >> 'file' "[A-Z0-9._%+-|'\(\)]" >> END >> >> DATA >> '/var/www/html/mapserver/mfd_lin/datos/meteosat/%file%.img' >> >> >> >> >> >> El 10/05/12 14:08, abhishek bansal escribi?: >>> Hi, >>> Thanks for your reply. >>> But I need to specify in map file which layers are available >>> so that i can parse output of getCapabilities and show >>> available layers to user. >>> Also I am not using any database. >>> >>> On Thu, May 10, 2012 at 5:18 PM, Helen San Segundo Navazo >>> > wrote: >>> >>> Hi, >>> I don't use the time dimension, what I use is run-time >>> substitution http://mapserver.org/cgi/runsub.html >>> I have 6 variables. You have to put the validation >>> pattern inside the metadata tag and a validation tag >>> with the pattern of your variables. >>> >>> With this you can invoke the params in the url. If you >>> put them the query will be with the values in the url, >>> if not, then the query will be with the default values >>> defined in the metadata tag. >>> >>> Hope this help you, >>> Helen >>> >>> >>> LAYER >>> NAME 'name' >>> HEADER "templates/getfeatureinfo_header.html" # >>> header html template >>> TEMPLATE "templates/getfeatureinfo_content.html" # >>> content html template >>> FOOTER "templates/getfeatureinfo_footer.html" # >>> footer html template >>> METADATA >>> 'ows_title' 'title' >>> 'wms_feature_info_mime_type' "text/html" >>> "gml_include_items" "all" >>> "wms_include_items" "all" >>> >>> 'aini_validation_pattern' '^[0-9]{1,8}$' >>> 'afi_validation_pattern' '^[0-9]{1,8}$' >>> 'mini_validation_pattern' '^[0-9]{1,8}$' >>> 'mfi_validation_pattern' '^[0-9]{1,8}$' >>> 'dini_validation_pattern' '^[0-9]{1,8}$' >>> 'dfi_validation_pattern' '^[0-9]{1,8}$' >>> >>> >>> 'default_aini' '2012' >>> 'default_afi' '2012' >>> 'default_mini' '4' >>> 'default_mfi' '4' >>> 'default_dini' '24' >>> 'default_dfi' '25' >>> >>> >>> END >>> VALIDATION >>> 'aini' '^[0-9]{1,8}$' >>> 'afi' '^[0-9]{1,8}$' >>> 'mini' '^[0-9]{1,8}$' >>> 'mfi' '^[0-9]{1,8}$' >>> 'dini' '^[0-9]{1,8}$' >>> 'dfi' '^[0-9]{1,8}$' >>> >>> END >>> STATUS OFF >>> >>> PROJECTION >>> "init=epsg:4326" >>> END >>> >>> CONNECTIONTYPE postgis >>> CONNECTION "user=postgres password=pp dbname=mm >>> host=host" >>> DATA "the_geom FROM (SELECT oid,geometry_columns >>> from table >>> where >>> time>='%aini%-%mini%-%dini% 00:00:00' >>> and >>> time<'%afi%-%mfi%-%dfi% 00:00:00' >>> ) >>> AS r USING UNIQUE oid USING SRID=4326" >>> >>> >>> .... >>> >>> El 10/05/12 13:24, abhishek bansal escribi?: >>>> Hello All >>>> >>>> I am working on a project that require time as a >>>> dimension of data. I have gone through all >>>> documentation but I am not able to understand that how >>>> do I upload time data in server .map file. I have >>>> created simple map files and my server is working. What >>>> i need is same layer on different time should different >>>> dataset. >>>> >>>> plz help !! >>>> >>>> >>>> >>>> -- >>>> Thanks & Regards, >>>> Abhishek Bansal >>>> >>>> >>>> >>>> >>>> _______________________________________________ >>>> mapserver-users mailing list >>>> mapserver-users at lists.osgeo.org >>>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>> >>> >>> _______________________________________________ >>> mapserver-users mailing list >>> mapserver-users at lists.osgeo.org >>> >>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>> >>> >>> >>> >>> -- >>> Thanks & Regards, >>> Abhishek Bansal >>> http://abhishekbansal.miyuri.com >>> Jaypee Institute of Information Technology, Noida >>> >>> >> >> >> >> >> -- >> Thanks & Regards, >> Abhishek Bansal >> http://abhishekbansal.miyuri.com >> Jaypee Institute of Information Technology, Noida >> >> > > > > > -- > Thanks & Regards, > Abhishek Bansal > http://abhishekbansal.miyuri.com > Jaypee Institute of Information Technology, Noida > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From sam at planyukon.ca Fri May 11 00:12:52 2012 From: sam at planyukon.ca (sam at planyukon.ca) Date: 11 May 2012 00:12:52 -0700 Subject: [mapserver-users] Re: mapserver-users Digest, Vol 52, Issue 23 Message-ID: <20120511071252.15697.qmail@polarhosting.ca> Sorry I missed you, but I am on parental leave until May 14th. Urgent YLUPC business can be sent to the YLUPC director at ron at planyukon.ca. From discover.ab at gmail.com Fri May 11 00:15:53 2012 From: discover.ab at gmail.com (abhishek bansal) Date: Fri, 11 May 2012 12:45:53 +0530 Subject: [mapserver-users] Help Required with WMS Time In-Reply-To: <4FACBBB3.2060101@meteo.cat> References: <4FABAB17.9060704@meteo.cat> <4FABB1C3.8030305@meteo.cat> <4FABC2A1.6080802@meteo.cat> <4FACBBB3.2060101@meteo.cat> Message-ID: Okay.!! Thank You very much for your help. On Fri, May 11, 2012 at 12:41 PM, Helen San Segundo Navazo < hsansegundo at meteo.cat> wrote: > Hi, > > - for the first point, in my last email you have an example with a > raster file, here you have it, in it the variable is the full file name, > but you can do it how is better for you, being careful with the pattern > > > LAYER > > NAME 'Meteosat' > TYPE RASTER > DUMP true > TOLERANCE 10 > TOLERANCEUNITS DD > > > HEADER "templates/getfeatureinfo_header.html" # header html template > TEMPLATE "templates/getfeatureinfo_content.html" # content html > template > FOOTER "templates/getfeatureinfo_footer.html" # footer html > template > > METADATA > 'ows_title' 'Meteosat' > > 'wms_feature_info_mime_type' "text/html" > "gml_include_items" "all" > "wms_include_items" "all" > "ows_enable_request" "*" > > 'file_validation_pattern' "[A-Z0-9._%+-|'\(\)]" > 'default_file' "ultima_imatge" > > END > > VALIDATION > 'file' "[A-Z0-9._%+-|'\(\)]" > END > > DATA '/var/www/html/mapserver/mfd_lin/datos/meteosat/%file%.img' > > > > - For the second point, till I know, the function shp2pgsql creates a > script with all the attributes you have in the shapefile, if you want to > have a time column that is not in the shapefile, you have to add it later > after creating the table in the database, maybe somebody in the list knows > how to do it automatically when you invoke shp2pgsql. > > Helen > > El 11/05/12 06:47, abhishek bansal escribi?: > > Hi Helen, > > I think I will have to do it ultimately by your way. Sorry for bothering > you but could you please help me with these two questions > > 1.) Will i be able to get raster data also with this method ? > 2.) How do I include time data in postgis database as it is created > automatically by shp2pgsql utility ? > > Thank You > Abhishek Bansal > > On Thu, May 10, 2012 at 6:59 PM, Helen San Segundo Navazo < > hsansegundo at meteo.cat> wrote: > >> ok, good luck >> >> El 10/05/12 14:26, abhishek bansal escribi?: >> >> But I dont want to use any database either !! >> >> On Thu, May 10, 2012 at 5:47 PM, Helen San Segundo Navazo < >> hsansegundo at meteo.cat> wrote: >> >>> using the runtime substitution you can use getcapabilities request with >>> all the description to see layers, proyections ...., it works as if you >>> don't use the variables >>> >>> Here you have an example using a binary file >>> >>> LAYER >>> >>> NAME 'Meteosat' >>> TYPE RASTER >>> DUMP true >>> TOLERANCE 10 >>> TOLERANCEUNITS DD >>> >>> >>> HEADER "templates/getfeatureinfo_header.html" # header html template >>> TEMPLATE "templates/getfeatureinfo_content.html" # content html >>> template >>> FOOTER "templates/getfeatureinfo_footer.html" # footer html >>> template >>> >>> METADATA >>> 'ows_title' 'Meteosat' >>> >>> 'wms_feature_info_mime_type' "text/html" >>> "gml_include_items" "all" >>> "wms_include_items" "all" >>> "ows_enable_request" "*" >>> >>> 'file_validation_pattern' "[A-Z0-9._%+-|'\(\)]" >>> >>> 'default_file' "ultima_imatge" >>> >>> END >>> >>> VALIDATION >>> 'file' "[A-Z0-9._%+-|'\(\)]" >>> END >>> >>> DATA '/var/www/html/mapserver/mfd_lin/datos/meteosat/%file%.img' >>> >>> >>> >>> >>> >>> El 10/05/12 14:08, abhishek bansal escribi?: >>> >>> Hi, >>> Thanks for your reply. >>> But I need to specify in map file which layers are available so that i >>> can parse output of getCapabilities and show available layers to user. >>> Also I am not using any database. >>> >>> On Thu, May 10, 2012 at 5:18 PM, Helen San Segundo Navazo < >>> hsansegundo at meteo.cat> wrote: >>> >>>> Hi, >>>> I don't use the time dimension, what I use is run-time substitution >>>> http://mapserver.org/cgi/runsub.html >>>> I have 6 variables. You have to put the validation pattern inside the >>>> metadata tag and a validation tag with the pattern of your variables. >>>> >>>> With this you can invoke the params in the url. If you put them the >>>> query will be with the values in the url, if not, then the query will be >>>> with the default values defined in the metadata tag. >>>> >>>> Hope this help you, >>>> Helen >>>> >>>> >>>> LAYER >>>> NAME 'name' >>>> HEADER "templates/getfeatureinfo_header.html" # header html template >>>> TEMPLATE "templates/getfeatureinfo_content.html" # content html >>>> template >>>> FOOTER "templates/getfeatureinfo_footer.html" # footer html >>>> template >>>> METADATA >>>> 'ows_title' 'title' >>>> 'wms_feature_info_mime_type' "text/html" >>>> "gml_include_items" "all" >>>> "wms_include_items" "all" >>>> >>>> 'aini_validation_pattern' '^[0-9]{1,8}$' >>>> 'afi_validation_pattern' '^[0-9]{1,8}$' >>>> 'mini_validation_pattern' '^[0-9]{1,8}$' >>>> 'mfi_validation_pattern' '^[0-9]{1,8}$' >>>> 'dini_validation_pattern' '^[0-9]{1,8}$' >>>> 'dfi_validation_pattern' '^[0-9]{1,8}$' >>>> >>>> >>>> 'default_aini' '2012' >>>> 'default_afi' '2012' >>>> 'default_mini' '4' >>>> 'default_mfi' '4' >>>> 'default_dini' '24' >>>> 'default_dfi' '25' >>>> >>>> >>>> END >>>> VALIDATION >>>> 'aini' '^[0-9]{1,8}$' >>>> 'afi' '^[0-9]{1,8}$' >>>> 'mini' '^[0-9]{1,8}$' >>>> 'mfi' '^[0-9]{1,8}$' >>>> 'dini' '^[0-9]{1,8}$' >>>> 'dfi' '^[0-9]{1,8}$' >>>> >>>> END >>>> STATUS OFF >>>> >>>> PROJECTION >>>> "init=epsg:4326" >>>> END >>>> >>>> CONNECTIONTYPE postgis >>>> CONNECTION "user=postgres password=pp dbname=mm host=host" >>>> DATA "the_geom FROM (SELECT oid,geometry_columns >>>> from table >>>> where >>>> time>='%aini%-%mini%-%dini% 00:00:00' >>>> and time<'%afi%-%mfi%-%dfi% >>>> 00:00:00' >>>> ) >>>> AS r USING UNIQUE oid USING SRID=4326" >>>> >>>> >>>> .... >>>> >>>> El 10/05/12 13:24, abhishek bansal escribi?: >>>> >>>> Hello All >>>> >>>> I am working on a project that require time as a dimension of data. I >>>> have gone through all documentation but I am not able to understand that >>>> how do I upload time data in server .map file. I have created simple map >>>> files and my server is working. What i need is same layer on different time >>>> should different dataset. >>>> >>>> plz help !! >>>> >>>> >>>> -- >>>> Thanks & Regards, >>>> Abhishek Bansal >>>> >>>> >>>> >>>> >>>> _______________________________________________ >>>> mapserver-users mailing listmapserver-users at lists.osgeo.orghttp://lists.osgeo.org/mailman/listinfo/mapserver-users >>>> >>>> >>>> >>>> _______________________________________________ >>>> mapserver-users mailing list >>>> mapserver-users at lists.osgeo.org >>>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>>> >>>> >>> >>> >>> -- >>> Thanks & Regards, >>> Abhishek Bansal >>> http://abhishekbansal.miyuri.com >>> Jaypee Institute of Information Technology, Noida >>> >>> >>> >>> >> >> >> -- >> Thanks & Regards, >> Abhishek Bansal >> http://abhishekbansal.miyuri.com >> Jaypee Institute of Information Technology, Noida >> >> >> >> > > > -- > Thanks & Regards, > Abhishek Bansal > http://abhishekbansal.miyuri.com > Jaypee Institute of Information Technology, Noida > > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -- Thanks & Regards, Abhishek Bansal http://abhishekbansal.miyuri.com Jaypee Institute of Information Technology, Noida -------------- next part -------------- An HTML attachment was scrubbed... URL: From hsansegundo at meteo.cat Fri May 11 00:57:52 2012 From: hsansegundo at meteo.cat (Helen San Segundo Navazo) Date: Fri, 11 May 2012 09:57:52 +0200 Subject: [mapserver-users] mapcache - problems on install In-Reply-To: References: <36CA828A36E29F45B7CF0A1766E5DFA310B28E@swmail01.r8nssis.local> <4FAB9962.7080704@meteo.cat> <4FABAF6B.2080607@meteo.cat> <4FABBFBC.6000200@meteo.cat> Message-ID: <4FACC680.4060601@meteo.cat> Hi Thomas, I'm trying different calls but I'm sure I'm doing it wrong because I can't find a description how to construct the url call with the different params. http://localhost/mapcache/demo?LAYERS=vmap0&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&SRS=EPSG:4326&BBOx=-180,-90,180,90&WIDTH=700&HEIGHT=500&FORMAT=image/png What I obtain in my apache log is permission denied: access to /mapcache/demo denied the folders have permission for writting, I've put www-data as owner but the result is the same Could you help me to construct the url call if that is the problem? My mapcache alias is: MapCacheAlias /mapcache "/home/curs/Dearrollo/aplicaciones/mapserver-mapcache-18a50e2/mapcache.xml" the mapcache.xml is: /tmp image/png basic http://vmap0.tiles.osgeo.org/wms/vmap0 vmap0 disk WGS84 g PNG 5 5 10 3600 JPEG assemble bilinear JPEG 4096 report /tmp Thanks again, Helen El 10/05/12 15:38, thomas bonfort escribi?: > given your configuration file, you have not disabled it. what url are > you trying to access the demo on ? > > On Thu, May 10, 2012 at 3:16 PM, Helen San Segundo Navazo > wrote: >> hi, >> deliberately I have not disabled the demo service, maybe in the installation >> I had to put any "--with" to enable it? is there any way to activate it? >> thanks >> >> El 10/05/12 14:14, thomas bonfort escribi?: >> >>> please keep replies on the mailing list. >>> >>> On Thu, May 10, 2012 at 2:07 PM, Helen San Segundo Navazo >>> wrote: >>>> ok thanks, now seems that is really loaded the module. ([Thu May 10 >>>> 13:21:24 >>>> 2012] [notice] Apache/2.2.14 (Ubuntu) mod_fcgid/2.3.4 >>>> mod-mapcache/0.5-dev >>>> configured -- resuming normal operations) >>>> >>>> The documentation talks about a demo, I can't find it. I have the >>>> mapcache.xml file with a sample with a basic layer. Could you tell me how >>>> test it, the url call? >>> from the fine manual: >>> " >>> If you have not disabled the demo service, you should now have access >>> to it on http://myserver/mapcache/demo >>> " >>> >>> replace /mapcache/ with what you've set in MapCacheAlias >>> >>> -- >>> thomas >>> >>>> thanks again, >>>> Helen >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> /tmp >>>> >>>> >>>> >>>> >>>> >>>> >>>> image/png >>>> basic >>>> >>>> >>>> >>>> >>>> http://vmap0.tiles.osgeo.org/wms/vmap0 >>>> >>>> >>>> >>>> >>>> vmap0 >>>> disk >>>> WGS84 >>>> g >>>> PNG >>>> 5 5 >>>> 10 >>>> 3600 >>>> >>>> >>>> >>>> JPEG >>>> >>>> >>>> assemble >>>> bilinear >>>> JPEG >>>> 4096 >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> report >>>> /tmp >>>> >>>> >>>> >>>> El 10/05/12 12:46, thomas bonfort escribi?: >>>> >>>>> Sorry, pressed send too fast... >>>>> >>>>> you must use >>>>> >>>>> >>>>> >>>>> Order Allow,Deny >>>>> Allow from all >>>>> >>>>> MapCacheAlias /mapcache "/path/to/directory/mapcache.xml" >>>>> >>>>> >>>>> and not >>>>> >>>>> >>>>> SetEnv MAPCACHE_CONFIG_FILE >>>>> >>>>> >>>>> "/home/curs/Desarrollo/Aplicaciones/mapserver-mapcache-18a50e2/mapcache.xml" >>>>> >>>>> >>>>> >>>>> On Thu, May 10, 2012 at 12:43 PM, thomas bonfort >>>>> wrote: >>>>>> the instructions for running mapcache as an apache module are on the >>>>>> page you linked, more precisely: >>>>>> >>>>>> >>>>>> http://mapserver.org/trunk/mapcache/install.html#apache-module-specific-instructions >>>>>> >>>>>> -- >>>>>> thomas >>>>>> >>>>>> On Thu, May 10, 2012 at 12:33 PM, Helen San Segundo Navazo >>>>>> wrote: >>>>>>> Hi, >>>>>>> I'm new using mapcache. I've tried to install it following the >>>>>>> instructions >>>>>>> on http://mapserver.org/trunk/mapcache/install.html. >>>>>>> >>>>>>> First >>>>>>> >>>>>>> $./configure >>>>>>> $make >>>>>>> $sudo make install >>>>>>> >>>>>>> >>>>>>> and after the apache module >>>>>>> >>>>>>> $sudo make install-module >>>>>>> $sudo ldconfig >>>>>>> >>>>>>> >>>>>>> On my httpd.conf I've added >>>>>>> >>>>>>> >>>>>>> SetEnv MAPCACHE_CONFIG_FILE >>>>>>> >>>>>>> >>>>>>> "/home/curs/Desarrollo/Aplicaciones/mapserver-mapcache-18a50e2/mapcache.xml" >>>>>>> >>>>>>> >>>>>>> when I try to invoque mapcache in the apache log there is this error: >>>>>>> >>>>>>> /usr/lib/cgi-bin/mapcache: line 202: cd: >>>>>>> /home/curs/Desarrollo/Aplicaciones/mapserver-mapcache-18a50e2/cgi: Not >>>>>>> a >>>>>>> directory >>>>>>> gcc: mapcache.c: No such file or directory >>>>>>> gcc: ../lib/.libs/libmapcache.so: No such file or directoryn[Thu May >>>>>>> 10 >>>>>>> 11:57:23 2012] [error] [client 127.0.0.1] Premature end of script >>>>>>> headers: >>>>>>> mapcache >>>>>>> >>>>>>> the directory exists and has permisions to access >>>>>>> >>>>>>> Somebody knows how to solve it? >>>>>>> Thanks in advance, >>>>>>> Helen >>>>>>> _______________________________________________ >>>>>>> mapserver-users mailing list >>>>>>> mapserver-users at lists.osgeo.org >>>>>>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>>> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users From thomas.bonfort at gmail.com Fri May 11 01:07:58 2012 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Fri, 11 May 2012 10:07:58 +0200 Subject: [mapserver-users] mapcache - problems on install In-Reply-To: <4FACC680.4060601@meteo.cat> References: <36CA828A36E29F45B7CF0A1766E5DFA310B28E@swmail01.r8nssis.local> <4FAB9962.7080704@meteo.cat> <4FABAF6B.2080607@meteo.cat> <4FABBFBC.6000200@meteo.cat> <4FACC680.4060601@meteo.cat> Message-ID: That error message is related to apache, mapcache isn't even concerned at this stage. What's in your apache configuration file? Did you add the entry containing the base path to mapcache.xml ? -- thomas On Fri, May 11, 2012 at 9:57 AM, Helen San Segundo Navazo wrote: > Hi Thomas, > I'm trying different calls but I'm sure I'm doing it wrong because I can't > find a description how to construct the url call with the different params. > http://localhost/mapcache/demo?LAYERS=vmap0&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&SRS=EPSG:4326&BBOx=-180,-90,180,90&WIDTH=700&HEIGHT=500&FORMAT=image/png > > What I obtain in my apache log is > permission denied: access to /mapcache/demo denied > > the folders have permission for writting, I've put www-data as owner but the > result is the same > > Could you help me to construct the url call if that is the problem? > > My mapcache alias is: > MapCacheAlias /mapcache > "/home/curs/Dearrollo/aplicaciones/mapserver-mapcache-18a50e2/mapcache.xml" > > the mapcache.xml is: > > > > > > > > /tmp > > > > > > > image/png > basic > > > > > http://vmap0.tiles.osgeo.org/wms/vmap0 > > > > > vmap0 > disk > WGS84 > g > PNG > 5 5 > 10 > 3600 > > > > JPEG > > > assemble > bilinear > JPEG > 4096 > > > > > > > > > report > /tmp > > > > Thanks again, > Helen > > > > > El 10/05/12 15:38, thomas bonfort escribi?: > >> given your configuration file, you have not disabled it. what url are >> you trying to access the demo on ? >> >> On Thu, May 10, 2012 at 3:16 PM, Helen San Segundo Navazo >> ?wrote: >>> >>> hi, >>> deliberately I have not disabled the demo service, maybe in the >>> installation >>> I had to put any "--with" to enable it? is there any way to activate it? >>> thanks >>> >>> El 10/05/12 14:14, thomas bonfort escribi?: >>> >>>> please keep replies on the mailing list. >>>> >>>> On Thu, May 10, 2012 at 2:07 PM, Helen San Segundo Navazo >>>> ? ?wrote: >>>>> >>>>> ok thanks, now seems that is really loaded the module. ([Thu May 10 >>>>> 13:21:24 >>>>> 2012] [notice] Apache/2.2.14 (Ubuntu) mod_fcgid/2.3.4 >>>>> mod-mapcache/0.5-dev >>>>> configured -- resuming normal operations) >>>>> >>>>> The documentation talks about a demo, I can't find it. I have the >>>>> mapcache.xml file with a sample with a basic layer. Could you tell me >>>>> how >>>>> test it, the url call? >>>> >>>> from the fine manual: >>>> " >>>> If you have not disabled the demo service, you should now have access >>>> to it on http://myserver/mapcache/demo >>>> " >>>> >>>> replace /mapcache/ with what you've set in MapCacheAlias >>>> >>>> -- >>>> thomas >>>> >>>>> thanks again, >>>>> Helen >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> /tmp >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> image/png >>>>> basic >>>>> >>>>> >>>>> >>>>> >>>>> http://vmap0.tiles.osgeo.org/wms/vmap0 >>>>> >>>>> >>>>> >>>>> >>>>> vmap0 >>>>> disk >>>>> WGS84 >>>>> g >>>>> PNG >>>>> 5 5 >>>>> 10 >>>>> 3600 >>>>> >>>>> >>>>> >>>>> JPEG >>>>> >>>>> >>>>> assemble >>>>> bilinear >>>>> JPEG >>>>> 4096 >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> report >>>>> /tmp >>>>> >>>>> >>>>> >>>>> El 10/05/12 12:46, thomas bonfort escribi?: >>>>> >>>>>> Sorry, pressed send too fast... >>>>>> >>>>>> you must use >>>>>> >>>>>> >>>>>> ? ? >>>>>> ? ? ? Order Allow,Deny >>>>>> ? ? ? Allow from all >>>>>> ? ? >>>>>> ? ?MapCacheAlias /mapcache "/path/to/directory/mapcache.xml" >>>>>> >>>>>> >>>>>> and not >>>>>> >>>>>> >>>>>> ? ?SetEnv MAPCACHE_CONFIG_FILE >>>>>> >>>>>> >>>>>> >>>>>> "/home/curs/Desarrollo/Aplicaciones/mapserver-mapcache-18a50e2/mapcache.xml" >>>>>> >>>>>> >>>>>> >>>>>> On Thu, May 10, 2012 at 12:43 PM, thomas bonfort >>>>>> ? ? ?wrote: >>>>>>> >>>>>>> the instructions for running mapcache as an apache module are on the >>>>>>> page you linked, more precisely: >>>>>>> >>>>>>> >>>>>>> >>>>>>> http://mapserver.org/trunk/mapcache/install.html#apache-module-specific-instructions >>>>>>> >>>>>>> -- >>>>>>> thomas >>>>>>> >>>>>>> On Thu, May 10, 2012 at 12:33 PM, Helen San Segundo Navazo >>>>>>> ? ? ?wrote: >>>>>>>> >>>>>>>> Hi, >>>>>>>> I'm new using mapcache. I've tried to install it following the >>>>>>>> instructions >>>>>>>> on http://mapserver.org/trunk/mapcache/install.html. >>>>>>>> >>>>>>>> First >>>>>>>> >>>>>>>> $./configure >>>>>>>> $make >>>>>>>> $sudo make install >>>>>>>> >>>>>>>> >>>>>>>> and after the apache module >>>>>>>> >>>>>>>> $sudo make install-module >>>>>>>> $sudo ldconfig >>>>>>>> >>>>>>>> >>>>>>>> On my httpd.conf I've added >>>>>>>> >>>>>>>> >>>>>>>> ? ?SetEnv MAPCACHE_CONFIG_FILE >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> "/home/curs/Desarrollo/Aplicaciones/mapserver-mapcache-18a50e2/mapcache.xml" >>>>>>>> >>>>>>>> >>>>>>>> when I try to invoque mapcache in the apache log there is this >>>>>>>> error: >>>>>>>> >>>>>>>> /usr/lib/cgi-bin/mapcache: line 202: cd: >>>>>>>> /home/curs/Desarrollo/Aplicaciones/mapserver-mapcache-18a50e2/cgi: >>>>>>>> Not >>>>>>>> a >>>>>>>> directory >>>>>>>> gcc: mapcache.c: No such file or directory >>>>>>>> gcc: ../lib/.libs/libmapcache.so: No such file or directoryn[Thu May >>>>>>>> 10 >>>>>>>> 11:57:23 2012] [error] [client 127.0.0.1] Premature end of script >>>>>>>> headers: >>>>>>>> mapcache >>>>>>>> >>>>>>>> the directory exists and has permisions to access >>>>>>>> >>>>>>>> Somebody knows how to solve it? >>>>>>>> Thanks in advance, >>>>>>>> Helen >>>>>>>> _______________________________________________ >>>>>>>> mapserver-users mailing list >>>>>>>> mapserver-users at lists.osgeo.org >>>>>>>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>>>> >>>>> >>> _______________________________________________ >>> mapserver-users mailing list >>> mapserver-users at lists.osgeo.org >>> http://lists.osgeo.org/mailman/listinfo/mapserver-users > > From hsansegundo at meteo.cat Fri May 11 01:30:38 2012 From: hsansegundo at meteo.cat (Helen San Segundo Navazo) Date: Fri, 11 May 2012 10:30:38 +0200 Subject: [mapserver-users] mapcache - problems on install In-Reply-To: References: <36CA828A36E29F45B7CF0A1766E5DFA310B28E@swmail01.r8nssis.local> <4FAB9962.7080704@meteo.cat> <4FABAF6B.2080607@meteo.cat> <4FABBFBC.6000200@meteo.cat> <4FACC680.4060601@meteo.cat> Message-ID: <4FACCE2E.5000802@meteo.cat> In my httpd.conf I have: Require all granted MapCacheAlias /mapcache "/home/curs/Desarrollo/Aplicaciones/mapserver-mapcache-18a50e2/mapcache.xml" El 11/05/12 10:07, thomas bonfort escribi?: > e entry containing the base path to ma From thxftw at gmail.com Fri May 11 01:42:58 2012 From: thxftw at gmail.com (Peter Maes) Date: Fri, 11 May 2012 10:42:58 +0200 Subject: [mapserver-users] nginx/fastcgi/mapserver Message-ID: Hello, I'm trying to run mapserver on nginx (fastcgi), but after 2 days booked little success. 1. I've compiled mapserv with fastcgi support and validated this 2. I created a spawn-fcgi startup script based on this : http://osgeo-org.1560.n6.nabble.com/Mapserver-on-nginx-td4226669.html It now looks like this: ---- #!/bin/sh MAPSERV_PORT=9001 USER=www-data DAEMON=/usr/local/bin/mapserv CHILDREN=5 # the -F switch of spawn-fcg does not work when the -n swich # is set. using multiwatch instead # see http://manpages.ubuntu.com/manpages/lucid/man1/spawn-fcgi.1.html exec setuidgid $USER spawn-fcgi \ -a 127.0.0.1 \ -p $MAPSERV_PORT \ -u $USER \ /usr/bin/multiwatch -f $CHILDREN $DAEMON ---- In Nginx its called like this: location /mapserver/ { include /etc/nginx/fastcgi_params; fastcgi_pass 127.0.0.1:9001; fastcgi_param SCRIPT_FILENAME /usr/local/run/spawnscript; fastcgi_param PATH_INFO /usr/local/run/ spawnscript; } When i try to connect to /mapserver in my browser, i get an error stating 502 Bad gateway. So i tried starting the spawn script manually: /usr/local/run/spawnscript . When i then try to connect using browser it works fine for a short while. On the console it logs this error: Spawing child[0] failed, next try Child[1] died, respawn Child[2] died, respawn Child[3] died, respawn Child[4] died, respawn Child[0] died, respawn Spawing child[1] failed, next try Spawing child[2] failed, next try Spawing child[3] failed, next try Spawing child[4] failed, next try Spawing child[0] failed, next try Spawing child[1] failed, next try Spawing child[2] failed, next try Spawing child[3] failed, next try Spawing child[4] failed, next try Spawing child[0] failed, next try Spawing child[1] failed, next try Spawing child[2] failed, next try Spawing child[3] failed, next try Spawing child[4] failed, next try Spawing child[0] failed, next try Spawing child[1] failed, next try Child[1] died to often, not forking again Spawing child[2] failed, next try Child[2] died to often, not forking again Spawing child[3] failed, next try Child[3] died to often, not forking again Spawing child[4] failed, next try Child[4] died to often, not forking again Spawing child[0] failed, next try Child[0] died to often, not forking again After which the process exits and I revert to the 502 Bad gateway. What am I missing here? :). Thanks for any tips. I'm not that experienced with spawn-fcgi. -------------- next part -------------- An HTML attachment was scrubbed... URL: From thomas.bonfort at gmail.com Fri May 11 01:57:15 2012 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Fri, 11 May 2012 10:57:15 +0200 Subject: [mapserver-users] nginx/fastcgi/mapserver In-Reply-To: References: Message-ID: You might want to have a look at https://github.com/mapserver/mapserver/issues/3099 tl;dr - mapserver fastcgi calls exit() when running in an error condition, which causes some fastcgi spawning managers to have issues - mapserver 6.2 (current git master) has been refactored to greatly minimize the exit() occurences (basically only on memory allocation errors) -- thomas On Fri, May 11, 2012 at 10:42 AM, Peter Maes wrote: > Hello, > > I'm trying to run mapserver on nginx (fastcgi), but after 2 days booked > little success. > > 1. I've compiled mapserv with fastcgi support and validated this > 2. I created a spawn-fcgi startup script based on this > :?http://osgeo-org.1560.n6.nabble.com/Mapserver-on-nginx-td4226669.html > > It now looks like this: > ---- > #!/bin/sh > MAPSERV_PORT=9001 > USER=www-data > DAEMON=/usr/local/bin/mapserv > CHILDREN=5 > > # the -F switch of spawn-fcg does not work when the -n swich > # is set. using multiwatch instead > # see http://manpages.ubuntu.com/manpages/lucid/man1/spawn-fcgi.1.html > > exec setuidgid $USER spawn-fcgi \ > ? -a 127.0.0.1 \ > ? -p $MAPSERV_PORT \ > ? -u $USER \ > ? /usr/bin/multiwatch -f $CHILDREN $DAEMON > ---- > > In Nginx its called like this: > > ? ? ? ?location /mapserver/ { > ? ? ? ? ? ? ? ? include /etc/nginx/fastcgi_params; > ? ? ? ? ? ? ? ? fastcgi_pass 127.0.0.1:9001; > > ? ? ? ? ? ? ? ? fastcgi_param SCRIPT_FILENAME /usr/local/run/spawnscript; > ? ? ? ? ? ? ? ? fastcgi_param PATH_INFO /usr/local/run/ spawnscript; > ? ? ? ? } > > When i try to connect to /mapserver in my browser, i get an error stating > 502 Bad gateway. > > So i tried starting the spawn script manually:?/usr/local/run/spawnscript . > When i then try to connect using browser it works fine for a short while. On > the console it logs this error: > Spawing child[0] failed, next try > Child[1] died, respawn > Child[2] died, respawn > Child[3] died, respawn > Child[4] died, respawn > Child[0] died, respawn > Spawing child[1] failed, next try > Spawing child[2] failed, next try > Spawing child[3] failed, next try > Spawing child[4] failed, next try > Spawing child[0] failed, next try > Spawing child[1] failed, next try > Spawing child[2] failed, next try > Spawing child[3] failed, next try > Spawing child[4] failed, next try > Spawing child[0] failed, next try > Spawing child[1] failed, next try > Spawing child[2] failed, next try > Spawing child[3] failed, next try > Spawing child[4] failed, next try > Spawing child[0] failed, next try > Spawing child[1] failed, next try > Child[1] died to often, not forking again > Spawing child[2] failed, next try > Child[2] died to often, not forking again > Spawing child[3] failed, next try > Child[3] died to often, not forking again > Spawing child[4] failed, next try > Child[4] died to often, not forking again > Spawing child[0] failed, next try > Child[0] died to often, not forking again > > After which the process exits and I revert to the 502 Bad gateway. > > What am I missing here? :). > > Thanks for any tips. I'm not that experienced with spawn-fcgi. > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From thomas.bonfort at gmail.com Fri May 11 02:15:12 2012 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Fri, 11 May 2012 11:15:12 +0200 Subject: [mapserver-users] mapcache - problems on install In-Reply-To: <4FACCE2E.5000802@meteo.cat> References: <36CA828A36E29F45B7CF0A1766E5DFA310B28E@swmail01.r8nssis.local> <4FAB9962.7080704@meteo.cat> <4FABAF6B.2080607@meteo.cat> <4FABBFBC.6000200@meteo.cat> <4FACC680.4060601@meteo.cat> <4FACCE2E.5000802@meteo.cat> Message-ID: - Are you on apache 2.4 ? Require all granted will only work on 2.4 - did you succesfully run "make install-module" in the mapcache folder ? - what happens if you remove the and lines ? On Fri, May 11, 2012 at 10:30 AM, Helen San Segundo Navazo wrote: > In my httpd.conf I have: > > > > ? ? ?Require all granted > > ? MapCacheAlias /mapcache > "/home/curs/Desarrollo/Aplicaciones/mapserver-mapcache-18a50e2/mapcache.xml" > > > El 11/05/12 10:07, thomas bonfort escribi?: >> >> e ?entry containing the base path to ma > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From hsansegundo at meteo.cat Fri May 11 02:30:29 2012 From: hsansegundo at meteo.cat (Helen San Segundo Navazo) Date: Fri, 11 May 2012 11:30:29 +0200 Subject: [mapserver-users] mapcache - problems on install In-Reply-To: References: <36CA828A36E29F45B7CF0A1766E5DFA310B28E@swmail01.r8nssis.local> <4FAB9962.7080704@meteo.cat> <4FABAF6B.2080607@meteo.cat> <4FABBFBC.6000200@meteo.cat> <4FACC680.4060601@meteo.cat> <4FACCE2E.5000802@meteo.cat> Message-ID: <4FACDC35.5030103@meteo.cat> * I'm with apache 2.2.14 I've changed: Require all granted with: Order allow,deny Allow from all I've restart apache and the result is the same: permission denied: access to /mapcache/demo denied * I think the install-module went ok: the result in the log was ([Thu May 10 13:21:24 2012] [notice] Apache/2.2.14 (Ubuntu) mod_fcgid/2.3.4 mod-mapcache/0.5-dev configured -- resuming normal operations) is there any way to test that went succesfully? * If I remove the and restart apache I obtain the same error permission denied: access to /mapcache/demo denied I'm invoking: http://localhost/mapcache/demo?LAYERS=vmap0&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&SRS=EPSG:4326&BBOx=-180,-90,180,90&WIDTH=700&HEIGHT=500&FORMAT=image/png thanks, Helen El 11/05/12 11:15, thomas bonfort escribi?: > - Are you on apache 2.4 ? Require all granted will only work on 2.4 > - did you succesfully run "make install-module" in the mapcache folder ? > - what happens if you remove the and > lines ? > > On Fri, May 11, 2012 at 10:30 AM, Helen San Segundo Navazo > wrote: >> In my httpd.conf I have: >> >> >> >> Require all granted >> >> MapCacheAlias /mapcache >> "/home/curs/Desarrollo/Aplicaciones/mapserver-mapcache-18a50e2/mapcache.xml" >> >> >> El 11/05/12 10:07, thomas bonfort escribi?: >>> e entry containing the base path to ma >> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From hsansegundo at meteo.cat Fri May 11 02:31:01 2012 From: hsansegundo at meteo.cat (Helen San Segundo Navazo) Date: Fri, 11 May 2012 11:31:01 +0200 Subject: [mapserver-users] mapcache - problems on install In-Reply-To: References: <36CA828A36E29F45B7CF0A1766E5DFA310B28E@swmail01.r8nssis.local> <4FAB9962.7080704@meteo.cat> <4FABAF6B.2080607@meteo.cat> <4FABBFBC.6000200@meteo.cat> <4FACC680.4060601@meteo.cat> <4FACCE2E.5000802@meteo.cat> Message-ID: <4FACDC55.20508@meteo.cat> * I'm with apache 2.2.14 I've changed: Require all granted with: Order allow,deny Allow from all I've restart apache and the result is the same: permission denied: access to /mapcache/demo denied * I think the install-module went ok: the result in the log was ([Thu May 10 13:21:24 2012] [notice] Apache/2.2.14 (Ubuntu) mod_fcgid/2.3.4 mod-mapcache/0.5-dev configured -- resuming normal operations) is there any way to test that went succesfully? * If I remove the and restart apache I obtain the same error permission denied: access to /mapcache/demo denied I'm invoking: http://localhost/mapcache/demo?LAYERS=vmap0&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&SRS=EPSG:4326&BBOx=-180,-90,180,90&WIDTH=700&HEIGHT=500&FORMAT=image/png thanks, Helen El 11/05/12 11:15, thomas bonfort escribi?: > - Are you on apache 2.4 ? Require all granted will only work on 2.4 > - did you succesfully run "make install-module" in the mapcache folder ? > - what happens if you remove the and > lines ? > > On Fri, May 11, 2012 at 10:30 AM, Helen San Segundo Navazo > wrote: >> In my httpd.conf I have: >> >> >> >> Require all granted >> >> MapCacheAlias /mapcache >> "/home/curs/Desarrollo/Aplicaciones/mapserver-mapcache-18a50e2/mapcache.xml" >> >> >> El 11/05/12 10:07, thomas bonfort escribi?: >>> e entry containing the base path to ma >> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From thxftw at gmail.com Fri May 11 02:32:50 2012 From: thxftw at gmail.com (Peter Maes) Date: Fri, 11 May 2012 11:32:50 +0200 Subject: [mapserver-users] nginx/fastcgi/mapserver In-Reply-To: References: Message-ID: Hi, Thanks again for your answer Thomas. I have seen that issue report and I am using mapserver latest version (6.0.2 (which is what you meant? or is there an actual 6.2 somewhere) It does indeed keep working if i reference a good map and hammer F5. Although: when i for instance call a wrong mapfile and hammer that it will also kill the processes. Is there a workaround for this? Otherwise people can just execute denial of service attacks on my mapserver. We're already using nginx for static file hosting. It would be great if i could get a production ready mapserver environment there as well. 2012/5/11 thomas bonfort > You might want to have a look at > https://github.com/mapserver/mapserver/issues/3099 > > tl;dr > - mapserver fastcgi calls exit() when running in an error condition, > which causes some fastcgi spawning managers to have issues > - mapserver 6.2 (current git master) has been refactored to greatly > minimize the exit() occurences (basically only on memory allocation > errors) > > -- > thomas > > On Fri, May 11, 2012 at 10:42 AM, Peter Maes wrote: > > Hello, > > > > I'm trying to run mapserver on nginx (fastcgi), but after 2 days booked > > little success. > > > > 1. I've compiled mapserv with fastcgi support and validated this > > 2. I created a spawn-fcgi startup script based on this > > : http://osgeo-org.1560.n6.nabble.com/Mapserver-on-nginx-td4226669.html > > > > It now looks like this: > > ---- > > #!/bin/sh > > MAPSERV_PORT=9001 > > USER=www-data > > DAEMON=/usr/local/bin/mapserv > > CHILDREN=5 > > > > # the -F switch of spawn-fcg does not work when the -n swich > > # is set. using multiwatch instead > > # see http://manpages.ubuntu.com/manpages/lucid/man1/spawn-fcgi.1.html > > > > exec setuidgid $USER spawn-fcgi \ > > -a 127.0.0.1 \ > > -p $MAPSERV_PORT \ > > -u $USER \ > > /usr/bin/multiwatch -f $CHILDREN $DAEMON > > ---- > > > > In Nginx its called like this: > > > > location /mapserver/ { > > include /etc/nginx/fastcgi_params; > > fastcgi_pass 127.0.0.1:9001; > > > > fastcgi_param SCRIPT_FILENAME /usr/local/run/spawnscript; > > fastcgi_param PATH_INFO /usr/local/run/ spawnscript; > > } > > > > When i try to connect to /mapserver in my browser, i get an error stating > > 502 Bad gateway. > > > > So i tried starting the spawn script > manually: /usr/local/run/spawnscript . > > When i then try to connect using browser it works fine for a short > while. On > > the console it logs this error: > > Spawing child[0] failed, next try > > Child[1] died, respawn > > Child[2] died, respawn > > Child[3] died, respawn > > Child[4] died, respawn > > Child[0] died, respawn > > Spawing child[1] failed, next try > > Spawing child[2] failed, next try > > Spawing child[3] failed, next try > > Spawing child[4] failed, next try > > Spawing child[0] failed, next try > > Spawing child[1] failed, next try > > Spawing child[2] failed, next try > > Spawing child[3] failed, next try > > Spawing child[4] failed, next try > > Spawing child[0] failed, next try > > Spawing child[1] failed, next try > > Spawing child[2] failed, next try > > Spawing child[3] failed, next try > > Spawing child[4] failed, next try > > Spawing child[0] failed, next try > > Spawing child[1] failed, next try > > Child[1] died to often, not forking again > > Spawing child[2] failed, next try > > Child[2] died to often, not forking again > > Spawing child[3] failed, next try > > Child[3] died to often, not forking again > > Spawing child[4] failed, next try > > Child[4] died to often, not forking again > > Spawing child[0] failed, next try > > Child[0] died to often, not forking again > > > > After which the process exits and I revert to the 502 Bad gateway. > > > > What am I missing here? :). > > > > Thanks for any tips. I'm not that experienced with spawn-fcgi. > > > > > > > > _______________________________________________ > > mapserver-users mailing list > > mapserver-users at lists.osgeo.org > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From thxftw at gmail.com Fri May 11 02:34:37 2012 From: thxftw at gmail.com (Peter Maes) Date: Fri, 11 May 2012 11:34:37 +0200 Subject: [mapserver-users] nginx/fastcgi/mapserver In-Reply-To: References: Message-ID: Also, nginx isnt calling my spawn script. Is that normal? Otherwise the process would restart. But once it dies (the one i executed on the shell) it doesnt startup the script anymore. 2012/5/11 Peter Maes > Hi, > > Thanks again for your answer Thomas. > > I have seen that issue report and I am using mapserver latest version > (6.0.2 (which is what you meant? or is there an actual 6.2 somewhere) > > It does indeed keep working if i reference a good map and hammer F5. > > Although: when i for instance call a wrong mapfile and hammer that it will > also kill the processes. Is there a workaround for this? Otherwise people > can just execute denial of service attacks on my mapserver. > > We're already using nginx for static file hosting. It would be great if i > could get a production ready mapserver environment there as well. > > > 2012/5/11 thomas bonfort > >> You might want to have a look at >> https://github.com/mapserver/mapserver/issues/3099 >> >> tl;dr >> - mapserver fastcgi calls exit() when running in an error condition, >> which causes some fastcgi spawning managers to have issues >> - mapserver 6.2 (current git master) has been refactored to greatly >> minimize the exit() occurences (basically only on memory allocation >> errors) >> >> -- >> thomas >> >> On Fri, May 11, 2012 at 10:42 AM, Peter Maes wrote: >> > Hello, >> > >> > I'm trying to run mapserver on nginx (fastcgi), but after 2 days booked >> > little success. >> > >> > 1. I've compiled mapserv with fastcgi support and validated this >> > 2. I created a spawn-fcgi startup script based on this >> > : http://osgeo-org.1560.n6.nabble.com/Mapserver-on-nginx-td4226669.html >> > >> > It now looks like this: >> > ---- >> > #!/bin/sh >> > MAPSERV_PORT=9001 >> > USER=www-data >> > DAEMON=/usr/local/bin/mapserv >> > CHILDREN=5 >> > >> > # the -F switch of spawn-fcg does not work when the -n swich >> > # is set. using multiwatch instead >> > # see http://manpages.ubuntu.com/manpages/lucid/man1/spawn-fcgi.1.html >> > >> > exec setuidgid $USER spawn-fcgi \ >> > -a 127.0.0.1 \ >> > -p $MAPSERV_PORT \ >> > -u $USER \ >> > /usr/bin/multiwatch -f $CHILDREN $DAEMON >> > ---- >> > >> > In Nginx its called like this: >> > >> > location /mapserver/ { >> > include /etc/nginx/fastcgi_params; >> > fastcgi_pass 127.0.0.1:9001; >> > >> > fastcgi_param SCRIPT_FILENAME >> /usr/local/run/spawnscript; >> > fastcgi_param PATH_INFO /usr/local/run/ spawnscript; >> > } >> > >> > When i try to connect to /mapserver in my browser, i get an error >> stating >> > 502 Bad gateway. >> > >> > So i tried starting the spawn script >> manually: /usr/local/run/spawnscript . >> > When i then try to connect using browser it works fine for a short >> while. On >> > the console it logs this error: >> > Spawing child[0] failed, next try >> > Child[1] died, respawn >> > Child[2] died, respawn >> > Child[3] died, respawn >> > Child[4] died, respawn >> > Child[0] died, respawn >> > Spawing child[1] failed, next try >> > Spawing child[2] failed, next try >> > Spawing child[3] failed, next try >> > Spawing child[4] failed, next try >> > Spawing child[0] failed, next try >> > Spawing child[1] failed, next try >> > Spawing child[2] failed, next try >> > Spawing child[3] failed, next try >> > Spawing child[4] failed, next try >> > Spawing child[0] failed, next try >> > Spawing child[1] failed, next try >> > Spawing child[2] failed, next try >> > Spawing child[3] failed, next try >> > Spawing child[4] failed, next try >> > Spawing child[0] failed, next try >> > Spawing child[1] failed, next try >> > Child[1] died to often, not forking again >> > Spawing child[2] failed, next try >> > Child[2] died to often, not forking again >> > Spawing child[3] failed, next try >> > Child[3] died to often, not forking again >> > Spawing child[4] failed, next try >> > Child[4] died to often, not forking again >> > Spawing child[0] failed, next try >> > Child[0] died to often, not forking again >> > >> > After which the process exits and I revert to the 502 Bad gateway. >> > >> > What am I missing here? :). >> > >> > Thanks for any tips. I'm not that experienced with spawn-fcgi. >> > >> > >> > >> > _______________________________________________ >> > mapserver-users mailing list >> > mapserver-users at lists.osgeo.org >> > http://lists.osgeo.org/mailman/listinfo/mapserver-users >> > >> > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From thomas.bonfort at gmail.com Fri May 11 02:34:40 2012 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Fri, 11 May 2012 11:34:40 +0200 Subject: [mapserver-users] nginx/fastcgi/mapserver In-Reply-To: References: Message-ID: On Fri, May 11, 2012 at 11:32 AM, Peter Maes wrote: > Hi, > > Thanks again for your answer Thomas. > > I have seen that issue report and I am using mapserver latest version (6.0.2 > (which is what you meant? or is there an actual 6.2 somewhere) > no, 6.2 is the one. You'll have to build from github master if you want to use it. > It does indeed keep working if i reference a good map and hammer F5. > > Although: when i for instance call a wrong mapfile and hammer that it will > also kill the processes. Is there a workaround for this? Otherwise people > can just execute denial of service attacks on my mapserver. > > We're already using nginx for static file hosting. It would be great if i > could get a production ready mapserver environment there as well. > > > 2012/5/11 thomas bonfort >> >> You might want to have a look at >> https://github.com/mapserver/mapserver/issues/3099 >> >> tl;dr >> ?- mapserver fastcgi calls exit() when running in an error condition, >> which causes some fastcgi spawning managers to have issues >> ?- mapserver 6.2 (current git master) has been refactored to greatly >> minimize the exit() occurences (basically only on memory allocation >> errors) >> >> -- >> thomas >> >> On Fri, May 11, 2012 at 10:42 AM, Peter Maes wrote: >> > Hello, >> > >> > I'm trying to run mapserver on nginx (fastcgi), but after 2 days booked >> > little success. >> > >> > 1. I've compiled mapserv with fastcgi support and validated this >> > 2. I created a spawn-fcgi startup script based on this >> > :?http://osgeo-org.1560.n6.nabble.com/Mapserver-on-nginx-td4226669.html >> > >> > It now looks like this: >> > ---- >> > #!/bin/sh >> > MAPSERV_PORT=9001 >> > USER=www-data >> > DAEMON=/usr/local/bin/mapserv >> > CHILDREN=5 >> > >> > # the -F switch of spawn-fcg does not work when the -n swich >> > # is set. using multiwatch instead >> > # see http://manpages.ubuntu.com/manpages/lucid/man1/spawn-fcgi.1.html >> > >> > exec setuidgid $USER spawn-fcgi \ >> > ? -a 127.0.0.1 \ >> > ? -p $MAPSERV_PORT \ >> > ? -u $USER \ >> > ? /usr/bin/multiwatch -f $CHILDREN $DAEMON >> > ---- >> > >> > In Nginx its called like this: >> > >> > ? ? ? ?location /mapserver/ { >> > ? ? ? ? ? ? ? ? include /etc/nginx/fastcgi_params; >> > ? ? ? ? ? ? ? ? fastcgi_pass 127.0.0.1:9001; >> > >> > ? ? ? ? ? ? ? ? fastcgi_param SCRIPT_FILENAME >> > /usr/local/run/spawnscript; >> > ? ? ? ? ? ? ? ? fastcgi_param PATH_INFO /usr/local/run/ spawnscript; >> > ? ? ? ? } >> > >> > When i try to connect to /mapserver in my browser, i get an error >> > stating >> > 502 Bad gateway. >> > >> > So i tried starting the spawn script >> > manually:?/usr/local/run/spawnscript . >> > When i then try to connect using browser it works fine for a short >> > while. On >> > the console it logs this error: >> > Spawing child[0] failed, next try >> > Child[1] died, respawn >> > Child[2] died, respawn >> > Child[3] died, respawn >> > Child[4] died, respawn >> > Child[0] died, respawn >> > Spawing child[1] failed, next try >> > Spawing child[2] failed, next try >> > Spawing child[3] failed, next try >> > Spawing child[4] failed, next try >> > Spawing child[0] failed, next try >> > Spawing child[1] failed, next try >> > Spawing child[2] failed, next try >> > Spawing child[3] failed, next try >> > Spawing child[4] failed, next try >> > Spawing child[0] failed, next try >> > Spawing child[1] failed, next try >> > Spawing child[2] failed, next try >> > Spawing child[3] failed, next try >> > Spawing child[4] failed, next try >> > Spawing child[0] failed, next try >> > Spawing child[1] failed, next try >> > Child[1] died to often, not forking again >> > Spawing child[2] failed, next try >> > Child[2] died to often, not forking again >> > Spawing child[3] failed, next try >> > Child[3] died to often, not forking again >> > Spawing child[4] failed, next try >> > Child[4] died to often, not forking again >> > Spawing child[0] failed, next try >> > Child[0] died to often, not forking again >> > >> > After which the process exits and I revert to the 502 Bad gateway. >> > >> > What am I missing here? :). >> > >> > Thanks for any tips. I'm not that experienced with spawn-fcgi. >> > >> > >> > >> > _______________________________________________ >> > mapserver-users mailing list >> > mapserver-users at lists.osgeo.org >> > http://lists.osgeo.org/mailman/listinfo/mapserver-users >> > > > From thxftw at gmail.com Fri May 11 02:47:08 2012 From: thxftw at gmail.com (Peter Maes) Date: Fri, 11 May 2012 11:47:08 +0200 Subject: [mapserver-users] nginx/fastcgi/mapserver In-Reply-To: References: Message-ID: Ok, apparently i was using the wrong path when i fetched and build the source from github :). Either way MapServer version 6.1-dev OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG SUPPORTS=PROJ SUPPORTS=GD SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=ICONV SUPPORTS=WMS_SERVER SUPPORTS=WFS_SERVER SUPPORTS=FASTCGI SUPPORTS=THREADS SUPPORTS=GEOS INPUT=JPEG INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE And that seems to work perfectly :). Thanks for your help. 2012/5/11 thomas bonfort > On Fri, May 11, 2012 at 11:32 AM, Peter Maes wrote: > > Hi, > > > > Thanks again for your answer Thomas. > > > > I have seen that issue report and I am using mapserver latest version > (6.0.2 > > (which is what you meant? or is there an actual 6.2 somewhere) > > > > no, 6.2 is the one. You'll have to build from github master if you > want to use it. > > > It does indeed keep working if i reference a good map and hammer F5. > > > > Although: when i for instance call a wrong mapfile and hammer that it > will > > also kill the processes. Is there a workaround for this? Otherwise people > > can just execute denial of service attacks on my mapserver. > > > > We're already using nginx for static file hosting. It would be great if i > > could get a production ready mapserver environment there as well. > > > > > > 2012/5/11 thomas bonfort > >> > >> You might want to have a look at > >> https://github.com/mapserver/mapserver/issues/3099 > >> > >> tl;dr > >> - mapserver fastcgi calls exit() when running in an error condition, > >> which causes some fastcgi spawning managers to have issues > >> - mapserver 6.2 (current git master) has been refactored to greatly > >> minimize the exit() occurences (basically only on memory allocation > >> errors) > >> > >> -- > >> thomas > >> > >> On Fri, May 11, 2012 at 10:42 AM, Peter Maes wrote: > >> > Hello, > >> > > >> > I'm trying to run mapserver on nginx (fastcgi), but after 2 days > booked > >> > little success. > >> > > >> > 1. I've compiled mapserv with fastcgi support and validated this > >> > 2. I created a spawn-fcgi startup script based on this > >> > : > http://osgeo-org.1560.n6.nabble.com/Mapserver-on-nginx-td4226669.html > >> > > >> > It now looks like this: > >> > ---- > >> > #!/bin/sh > >> > MAPSERV_PORT=9001 > >> > USER=www-data > >> > DAEMON=/usr/local/bin/mapserv > >> > CHILDREN=5 > >> > > >> > # the -F switch of spawn-fcg does not work when the -n swich > >> > # is set. using multiwatch instead > >> > # see > http://manpages.ubuntu.com/manpages/lucid/man1/spawn-fcgi.1.html > >> > > >> > exec setuidgid $USER spawn-fcgi \ > >> > -a 127.0.0.1 \ > >> > -p $MAPSERV_PORT \ > >> > -u $USER \ > >> > /usr/bin/multiwatch -f $CHILDREN $DAEMON > >> > ---- > >> > > >> > In Nginx its called like this: > >> > > >> > location /mapserver/ { > >> > include /etc/nginx/fastcgi_params; > >> > fastcgi_pass 127.0.0.1:9001; > >> > > >> > fastcgi_param SCRIPT_FILENAME > >> > /usr/local/run/spawnscript; > >> > fastcgi_param PATH_INFO /usr/local/run/ spawnscript; > >> > } > >> > > >> > When i try to connect to /mapserver in my browser, i get an error > >> > stating > >> > 502 Bad gateway. > >> > > >> > So i tried starting the spawn script > >> > manually: /usr/local/run/spawnscript . > >> > When i then try to connect using browser it works fine for a short > >> > while. On > >> > the console it logs this error: > >> > Spawing child[0] failed, next try > >> > Child[1] died, respawn > >> > Child[2] died, respawn > >> > Child[3] died, respawn > >> > Child[4] died, respawn > >> > Child[0] died, respawn > >> > Spawing child[1] failed, next try > >> > Spawing child[2] failed, next try > >> > Spawing child[3] failed, next try > >> > Spawing child[4] failed, next try > >> > Spawing child[0] failed, next try > >> > Spawing child[1] failed, next try > >> > Spawing child[2] failed, next try > >> > Spawing child[3] failed, next try > >> > Spawing child[4] failed, next try > >> > Spawing child[0] failed, next try > >> > Spawing child[1] failed, next try > >> > Spawing child[2] failed, next try > >> > Spawing child[3] failed, next try > >> > Spawing child[4] failed, next try > >> > Spawing child[0] failed, next try > >> > Spawing child[1] failed, next try > >> > Child[1] died to often, not forking again > >> > Spawing child[2] failed, next try > >> > Child[2] died to often, not forking again > >> > Spawing child[3] failed, next try > >> > Child[3] died to often, not forking again > >> > Spawing child[4] failed, next try > >> > Child[4] died to often, not forking again > >> > Spawing child[0] failed, next try > >> > Child[0] died to often, not forking again > >> > > >> > After which the process exits and I revert to the 502 Bad gateway. > >> > > >> > What am I missing here? :). > >> > > >> > Thanks for any tips. I'm not that experienced with spawn-fcgi. > >> > > >> > > >> > > >> > _______________________________________________ > >> > mapserver-users mailing list > >> > mapserver-users at lists.osgeo.org > >> > http://lists.osgeo.org/mailman/listinfo/mapserver-users > >> > > > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From hsansegundo at meteo.cat Fri May 11 05:22:44 2012 From: hsansegundo at meteo.cat (Helen San Segundo Navazo) Date: Fri, 11 May 2012 14:22:44 +0200 Subject: [mapserver-users] mapcache - problems on install In-Reply-To: <4FACDC55.20508@meteo.cat> References: <36CA828A36E29F45B7CF0A1766E5DFA310B28E@swmail01.r8nssis.local> <4FAB9962.7080704@meteo.cat> <4FABAF6B.2080607@meteo.cat> <4FABBFBC.6000200@meteo.cat> <4FACC680.4060601@meteo.cat> <4FACCE2E.5000802@meteo.cat> <4FACDC55.20508@meteo.cat> Message-ID: <4FAD0494.8050108@meteo.cat> Sorry for insisting but I don't understeand how mapcache works. When I invoke in the url http://localhost/mapcache/ apache reads the MapCacheAlias so it goes to the path /home/curs/Desarrollo/Aplicaciones/mapserver-mapcache-18a50e2/ and read mapcache.xml file? If I invoke http://localhost/mapcache/demo what's doing? reads/create a demo folder inside the path /home/curs/Desarrollo/Aplicaciones/mapserver-mapcache-18a50e2/ or goes inside the mapcache.xml to a tag with "demo" value? I send a jpg with my structure of folders, is missing something? Maybe if I understand how mapcache works I would find what's the problem. Thanks -------------- next part -------------- A non-text attachment was scrubbed... Name: mapcache.jpg Type: image/jpeg Size: 26885 bytes Desc: not available URL: From krassovskimb at ornl.gov Fri May 11 05:32:25 2012 From: krassovskimb at ornl.gov (mkrassovski) Date: Fri, 11 May 2012 05:32:25 -0700 (PDT) Subject: [mapserver-users] Re: Mapserver + mapcache + Google Map In-Reply-To: References: <1336420126718-4958632.post@n6.nabble.com> <1336650337076-4965470.post@n6.nabble.com> <1336651573401-4965517.post@n6.nabble.com> Message-ID: <1336739545957-4968271.post@n6.nabble.com> Thomas, all I can see in apache log are lines like: [Fri May 11 08:16:01 2012] [error] [client ] mapcache fcgi conf file: /var/www/mapcache/mapcache.xml, referer: http://cdiac5.ornl.gov/waves/underway/test_mapcache.html [Fri May 11 08:16:01 2012] [error] [client ] mapcache fcgi conf file: /var/www/mapcache/mapcache.xml, referer: http://cdiac5.ornl.gov/waves/underway/test_mapcache.html [Fri May 11 08:16:02 2012] [error] [client ] mapcache fcgi conf file: /var/www/mapcache/mapcache.xml, referer: http://cdiac5.ornl.gov/waves/underway/test_mapcache.html [Fri May 11 08:16:02 2012] [error] [client ] mapcache fcgi conf file: /var/www/mapcache/mapcache.xml, referer: http://cdiac5.ornl.gov/waves/underway/test_mapcache.html [Fri May 11 08:16:02 2012] [error] [client ] tile x=-1 not in [0,8[, referer: http://cdiac5.ornl.gov/waves/underway/test_mapcache.html [Fri May 11 08:16:02 2012] [error] [client ] mapcache fcgi conf file: /var/www/mapcache/mapcache.xml, referer: http://cdiac5.ornl.gov/waves/underway/test_mapcache.html [Fri May 11 08:16:02 2012] [error] [client ] tile x=-1 not in [0,8[, referer: http://cdiac5.ornl.gov/waves/underway/test_mapcache.html [Fri May 11 08:16:02 2012] [error] [client ] mapcache fcgi conf file: /var/www/mapcache/mapcache.xml, referer: http://cdiac5.ornl.gov/waves/underway/test_mapcache.html [Fri May 11 08:16:02 2012] [error] [client ] mapcache fcgi conf file: /var/www/mapcache/mapcache.xml, referer: http://cdiac5.ornl.gov/waves/underway/test_mapcache.html [Fri May 11 08:16:02 2012] [error] [client ] mapcache fcgi conf file: /var/www/mapcache/mapcache.xml, referer: http://cdiac5.ornl.gov/waves/underway/test_mapcache.html [Fri May 11 08:16:47 2012] [error] [client ] mapcache fcgi conf file: /var/www/mapcache/mapcache.xml, referer: http://cdiac5.ornl.gov/waves/underway/test_mapcache.html [Fri May 11 08:16:47 2012] [error] [client ] mapcache fcgi conf file: /var/www/mapcache/mapcache.xml, referer: http://cdiac5.ornl.gov/waves/underway/test_mapcache.html [Fri May 11 08:16:47 2012] [error] [client ] mapcache fcgi conf file: /var/www/mapcache/mapcache.xml, referer: http://cdiac5.ornl.gov/waves/underway/test_mapcache.html [Fri May 11 08:16:47 2012] [error] [client ] tile x=-1 not in [0,8[, referer: http://cdiac5.ornl.gov/waves/underway/test_mapcache.html ....... and so on If I query wms server directly (without mapcache) it creates almost correct images. In this case it doesn't matter what projection I use (900913 or 4326) to query wms , it produces the same result. You can see the image here: http://cdiac3.ornl.gov/waves/img/wms_900913.png And this is what I have when I use mapcache: http://cdiac3.ornl.gov/waves/img/mapcache_4326.png Misha -- View this message in context: http://osgeo-org.1560.n6.nabble.com/Mapserver-mapcache-Google-Map-tp4958439p4968271.html Sent from the Mapserver - User mailing list archive at Nabble.com. From thxftw at gmail.com Fri May 11 05:33:15 2012 From: thxftw at gmail.com (Peter Maes) Date: Fri, 11 May 2012 14:33:15 +0200 Subject: [mapserver-users] Scale changes to mapserver 6.1-dev Message-ID: Hi, Did something change in regards to the scales? I took an existing mapfile config (that worked fine on mapserver 6.0) and ran that now with 6.1-DEV. However i get repeated messages stating: msLayerIsVisible(): Skipping layer (L1) because LAYER.MAXSCALE is too small for this MAP scale When I remove the layer, the layer gets drawn, however it does not match the scale of google maps. In fact, at a zoomed in level, i see my layer draw 6 times next to eachother (as you would have on google zoom 0-2). Best regards. -------------- next part -------------- An HTML attachment was scrubbed... URL: From krassovskimb at ornl.gov Fri May 11 05:37:09 2012 From: krassovskimb at ornl.gov (mkrassovski) Date: Fri, 11 May 2012 05:37:09 -0700 (PDT) Subject: [mapserver-users] Re: Mapserver + mapcache + Google Map In-Reply-To: References: <1336420126718-4958632.post@n6.nabble.com> <1336650337076-4965470.post@n6.nabble.com> <1336651573401-4965517.post@n6.nabble.com> Message-ID: <1336739829918-4968278.post@n6.nabble.com> Jerl, I pass lat/lon coordinates. Yes, if I use 900913 projection it just gives me one single dot at 0,0. If i use 4326, this is what it creates for me: http://cdiac3.ornl.gov/waves/img/mapcache_4326.png Unfortunately, apache doesn't show urls to wms in the log, please see my reply to Thomas what I have in there. Misha -- View this message in context: http://osgeo-org.1560.n6.nabble.com/Mapserver-mapcache-Google-Map-tp4958439p4968278.html Sent from the Mapserver - User mailing list archive at Nabble.com. From thomas.bonfort at gmail.com Fri May 11 05:48:05 2012 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Fri, 11 May 2012 14:48:05 +0200 Subject: [mapserver-users] Re: Mapserver + mapcache + Google Map In-Reply-To: <1336739545957-4968271.post@n6.nabble.com> References: <1336420126718-4958632.post@n6.nabble.com> <1336650337076-4965470.post@n6.nabble.com> <1336651573401-4965517.post@n6.nabble.com> <1336739545957-4968271.post@n6.nabble.com> Message-ID: actually, from your logs: [Mon May 07 13:54:32 2012] [error] [client 160.91.28.61] curl failed to request url http://localhost/cgi-bin/mapserv?map=/var/www/html/waves/underway/maps/test.map&VERSION=1.1.1&REQUEST=GetMap&SERVICE=WMS&STYLES=&BBOX=-20428865.927609,-20428865.927609,20428865.927609,20428865.927609&WIDTH=1044&HEIGHT=1044&FORMAT=image/png&SRS=EPSG:900913&LAYERS=atl_ind&TRANSPARENT=true : Failed to connect to ::1: Permission denied, so you seem to have a network connectivity problem, maybe related to a firewall and ipv6. Try replacing localhost with 127.0.0.1 in your wms source in mapcache.xml -- thomas On Fri, May 11, 2012 at 2:32 PM, mkrassovski wrote: > Thomas, > all I can see in apache log are lines like: > > [Fri May 11 08:16:01 2012] [error] [client ] mapcache fcgi conf file: > /var/www/mapcache/mapcache.xml, referer: > http://cdiac5.ornl.gov/waves/underway/test_mapcache.html > [Fri May 11 08:16:01 2012] [error] [client ] mapcache fcgi conf file: > /var/www/mapcache/mapcache.xml, referer: > http://cdiac5.ornl.gov/waves/underway/test_mapcache.html > [Fri May 11 08:16:02 2012] [error] [client ] mapcache fcgi conf file: > /var/www/mapcache/mapcache.xml, referer: > http://cdiac5.ornl.gov/waves/underway/test_mapcache.html > [Fri May 11 08:16:02 2012] [error] [client ] mapcache fcgi conf file: > /var/www/mapcache/mapcache.xml, referer: > http://cdiac5.ornl.gov/waves/underway/test_mapcache.html > [Fri May 11 08:16:02 2012] [error] [client ] tile x=-1 not in [0,8[, > referer: http://cdiac5.ornl.gov/waves/underway/test_mapcache.html > [Fri May 11 08:16:02 2012] [error] [client ] mapcache fcgi conf file: > /var/www/mapcache/mapcache.xml, referer: > http://cdiac5.ornl.gov/waves/underway/test_mapcache.html > [Fri May 11 08:16:02 2012] [error] [client ] tile x=-1 not in [0,8[, > referer: http://cdiac5.ornl.gov/waves/underway/test_mapcache.html > [Fri May 11 08:16:02 2012] [error] [client ] mapcache fcgi conf file: > /var/www/mapcache/mapcache.xml, referer: > http://cdiac5.ornl.gov/waves/underway/test_mapcache.html > [Fri May 11 08:16:02 2012] [error] [client ] mapcache fcgi conf file: > /var/www/mapcache/mapcache.xml, referer: > http://cdiac5.ornl.gov/waves/underway/test_mapcache.html > [Fri May 11 08:16:02 2012] [error] [client ] mapcache fcgi conf file: > /var/www/mapcache/mapcache.xml, referer: > http://cdiac5.ornl.gov/waves/underway/test_mapcache.html > [Fri May 11 08:16:47 2012] [error] [client ] mapcache fcgi conf file: > /var/www/mapcache/mapcache.xml, referer: > http://cdiac5.ornl.gov/waves/underway/test_mapcache.html > [Fri May 11 08:16:47 2012] [error] [client ] mapcache fcgi conf file: > /var/www/mapcache/mapcache.xml, referer: > http://cdiac5.ornl.gov/waves/underway/test_mapcache.html > [Fri May 11 08:16:47 2012] [error] [client ] mapcache fcgi conf file: > /var/www/mapcache/mapcache.xml, referer: > http://cdiac5.ornl.gov/waves/underway/test_mapcache.html > [Fri May 11 08:16:47 2012] [error] [client ] tile x=-1 not in [0,8[, > referer: http://cdiac5.ornl.gov/waves/underway/test_mapcache.html > ....... and so on > > If I query wms server directly (without mapcache) it creates almost correct > images. In this case it doesn't matter what projection I use (900913 or > 4326) to query wms , it produces the same result. You can see the image > here: > http://cdiac3.ornl.gov/waves/img/wms_900913.png > > And this is what I have when I use mapcache: > http://cdiac3.ornl.gov/waves/img/mapcache_4326.png > > > Misha > > -- > View this message in context: http://osgeo-org.1560.n6.nabble.com/Mapserver-mapcache-Google-Map-tp4958439p4968271.html > Sent from the Mapserver - User mailing list archive at Nabble.com. > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From thxftw at gmail.com Fri May 11 06:07:30 2012 From: thxftw at gmail.com (Peter Maes) Date: Fri, 11 May 2012 15:07:30 +0200 Subject: [mapserver-users] Re: Scale changes to mapserver 6.1-dev In-Reply-To: References: Message-ID: When I run the mapfile with shp2img i get proper results. So in all likelyhood it will have to do with mode gmaps. I'll give a try with wms in the mean while. It seems as if for some reason i get the entire map rendered, for every tile requested. 2012/5/11 Peter Maes > Hi, > > Did something change in regards to the scales? I took an existing mapfile > config (that worked fine on mapserver 6.0) and ran that now with 6.1-DEV. > > However i get repeated messages stating: > msLayerIsVisible(): Skipping layer (L1) because LAYER.MAXSCALE is too > small for this MAP scale > > When I remove the layer, the layer gets drawn, however it does not match > the scale of google maps. > > In fact, at a zoomed in level, i see my layer draw 6 times next to > eachother (as you would have on google zoom 0-2). > > Best regards. > -------------- next part -------------- An HTML attachment was scrubbed... URL: From woodbri at swoodbridge.com Fri May 11 06:11:24 2012 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Fri, 11 May 2012 09:11:24 -0400 Subject: [mapserver-users] mapcache - problems on install In-Reply-To: <4FAD0494.8050108@meteo.cat> References: <36CA828A36E29F45B7CF0A1766E5DFA310B28E@swmail01.r8nssis.local> <4FAB9962.7080704@meteo.cat> <4FABAF6B.2080607@meteo.cat> <4FABBFBC.6000200@meteo.cat> <4FACC680.4060601@meteo.cat> <4FACCE2E.5000802@meteo.cat> <4FACDC55.20508@meteo.cat> <4FAD0494.8050108@meteo.cat> Message-ID: <4FAD0FFC.1020103@swoodbridge.com> On 5/11/2012 8:22 AM, Helen San Segundo Navazo wrote: > Sorry for insisting but I don't understeand how mapcache works. > > When I invoke in the url http://localhost/mapcache/ apache reads the > MapCacheAlias so it goes to the path > /home/curs/Desarrollo/Aplicaciones/mapserver-mapcache-18a50e2/ and read > mapcache.xml file? > > If I invoke http://localhost/mapcache/demo what's doing? reads/create a > demo folder inside the path > /home/curs/Desarrollo/Aplicaciones/mapserver-mapcache-18a50e2/ or goes > inside the mapcache.xml to a tag with "demo" value? > > I send a jpg with my structure of folders, is missing something? > > Maybe if I understand how mapcache works I would find what's the problem. > Thanks In the apache config you want to specify a MapCacheAlias, this should be to a non-existent directory as apache will use this path to handoff the request to the mapcache service handler. For example: MapCacheAlias /mapcache /usr/var/mapcache/mapcache.xml When mapcache gets the handoff it reads the mapcache.xml config file which defines the various services, grids, etc that you have configured. If you have enabled the demo service for example: http://localhost/mapcache/demo Then mapcache will generate an html page the list the configured services. And if you click on one of the servers like wms if you configured that, it will generate a sample OpenLayers application preconfigured to access that service. You can view the page source to see how to setup OpenLayers to access that service. HTH, -Steve W From pcorti at gmail.com Fri May 11 06:07:02 2012 From: pcorti at gmail.com (Paolo Corti) Date: Fri, 11 May 2012 15:07:02 +0200 Subject: [mapserver-users] How to display a raster with RGB bands and querying additional bands in MapServer 6? Message-ID: Hi all I have a raster with 4 bands: first 3 bands are for RGB value, the 4th band is the actual value of the variable. In the viewer I want to display the raster using the RGB values, and query the 4th band. This is the layer definition in my mapfile: # test LAYER NAME "test" TYPE RASTER DATA "../gtiff/production/20111001.vrt" STATUS ON TEMPLATE "templates/variable_template.html" END This was working correctly in MapServer 5.6: the raster layer was correctly displayed using the first 3 bands (RGB), and I could succesfully query the 4th band in templates using [value_3]. But after migrating to MapServer 6, the layer is rendered using all of the 4 bands (the 4th being the alpha channel, I guess). If I use the PROCESSING directive, set to "BANDS=1,2,3", then the raster is correctly displayed but the 4th band can't be queried. Is there a way to get this working in MapServer 6 with just one layer definition, or do I need an additional layer just for querying? thanks in advance p -- Paolo Corti Geospatial software developer web: http://www.paolocorti.net twitter: @capooti skype: capooti From MarkVolz at co.lyon.mn.us Fri May 11 06:28:41 2012 From: MarkVolz at co.lyon.mn.us (Mark Volz) Date: Fri, 11 May 2012 13:28:41 +0000 Subject: [mapserver-users] RE: mapcache - working with different grids In-Reply-To: References: <36CA828A36E29F45B7CF0A1766E5DFA310B28E@swmail01.r8nssis.local> <36CA828A36E29F45B7CF0A1766E5DFA3112B6A@swmail01.r8nssis.local> Message-ID: <36CA828A36E29F45B7CF0A1766E5DFA3117CE5@swmail01.r8nssis.local> Thomas, I attached a copy of the get capabilities document when I use http://10.0.8.116/mapcache/?service=WMS&request=GetCapabilities If I try http://10.0.8.116/mapcache/?request=GetCapabilities& I get an error message "received wms request with no service param" Update: I did try my county coordinate layer again. That worked as a WMST layer within QGIS. Mark Volz GIS Specialist -----Original Message----- From: thomas bonfort [mailto:thomas.bonfort at gmail.com] Sent: Friday, May 11, 2012 1:48 AM To: Mark Volz Cc: mapserver-users at lists.osgeo.org Subject: Re: mapcache - working with different grids Mark, can you send me the generated capabilities document ? -- thomas On Thu, May 10, 2012 at 3:57 PM, Mark Volz wrote: > Thomas, > > *note I noticed that ArcCatalog reports the LatLongBoundingBox as 0, 0, 0,0. ?This is probably important... > > > > I realize that mapcahce does not project. ?For testing I completely removed my grid, source, and tileset that is in county coordinates. ?My other cache is in UTM 15, The only grid I have advertised is UTM15 such as: > > ? ? ? > ? ? ? > ? ? ?UTM15 > > So here is what I have: > > Demo: The demo site works fine. ?Here is an example request that works > http://10.0.8.116/mapcache/?LAYERS=MNSOUTH11&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&FORMAT=image%2Fjpeg&SRS=EPSG%3A26915&BBOX=438394.0589,4887031.0797,471162.0589,4919799.0797&WIDTH=256&HEIGHT=256 > > WMS in ArcCatalog: ?Doesn?t work > The lat long bounding box is 0,0,0,0. ?Furthermore ArcCatalog advertises EPSG: 26915 (which is correct) , EPSG: 900913, EPSG 26915 again?, EPSG: 3857. ?How can I remove the other projections. ?I only want to serve 26915. > * I did try to change the coordinate system that ArcCatalog / ArcMap requests to UTM 15. Mapcahce still did not work > > WMS in QGIS: ?Doesn?t work. > In the properties for the service (root layer) I noticed the WGS 84 Bounding Box is empty. ?However, the layer MNSOUTH11 does have a valid bounding box > > WMTS in QGIS: ?Works. > When adding the WMS layer in QGIS, I noticed I could switch between layers (wms) and Tilesets (WMTS?). ?The tilesets work in QGIS. > > ******************************************************** > > When I did have the County Map service configured, nothing worked. ?Not even the demo. ?I didn't even get any pink tiles in the demo, and firebug reported that it was not even trying to request anything. > > > Let me know if you have any thoughts as to why the WMS service isn?t working. > > Thanks for all your help > > > Mark Volz > GIS Specialist > Lyon County, MN > > -----Original Message----- > From: thomas bonfort [mailto:thomas.bonfort at gmail.com] > Sent: Thursday, May 10, 2012 6:02 AM > To: Mark Volz > Cc: mapserver-users at lists.osgeo.org > Subject: Re: [mapserver-users] mapcache - working with different grids > > Hi, > > > On Wed, May 9, 2012 at 9:45 PM, Mark Volz wrote: >> Hello, >> >> I started working with Mapcache.? I added a tileset that is in UTM 15 >> (26915) and it is working fine on the demo page >> http://localhost/mapcache/demo/wms.? However when I add the layer to >> ArcView, I get a warning about inconsistent extents.?? I noticed the >> service is advertising several extents:? EPSG:900913, EPSG:103749, >> EPSG:26915, EPSG:4326, EPSG:3857.? So I made sure ArcGIS was >> requesting the correct coordinate system via layer>change coordinate >> system.? Even after switching the coordinate system, I still did not >> see anything? (even when zoomed into the appropriate area) > > I've never tried the wms service in arcgis... > > what I do know is that mapcache advertises all known grids in the wms root layer, however only the actually cached grids are advertised for each individual layer (that's what the spec requires, although it does not fit very well with cached layers). I wouldn't be very surprised arcgis chokes on that. > Check your server logs for the requests actually being sent out by arcgis, that will at least tell you if the correct grid is being used. > >> >> I also am trying to get another layer cached, which is in county >> coordinates.? I did add a grid for the county coordinates. >> Unfortunately I cannot get that service working in either the demo >> page or the ArcMap.? I can get the source of that service (before it >> is cached in MapCache) to work in ArcMap. > > need more info... mapcache itself does no projection handling, the grid srs is only used as a key to lookup which tiles to return, and is forwarded to the wms server as is. Right clicking on a pink tile in the demo page and opening the image in a new window might give you more info to help debugging. > > -- > thomas > >> >> >> Questions: >> >> >> Is this the right mailing list, or does mapcache have a separate list? >> How can I limit the grids / spatial references that Mapcache advertises? >> What am I missing that Mapcache works fine in the demo pages, but not >> in ArcMap?? - note I set? assemble and > enabled="true"> >> Is there anything I need to know about custom spatial references?? I >> am guessing that Mapserver itself only needs the grid set. >> >> >> >> Thanks for all the help! >> >> >> Mark Volz >> GIS Specialist >> >> >> >> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> -------------- next part -------------- A non-text attachment was scrubbed... Name: wmsGetCapabilities.xml Type: text/xml Size: 4884 bytes Desc: wmsGetCapabilities.xml URL: From thomas.bonfort at gmail.com Fri May 11 06:36:10 2012 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Fri, 11 May 2012 15:36:10 +0200 Subject: [mapserver-users] Re: mapcache - working with different grids In-Reply-To: <36CA828A36E29F45B7CF0A1766E5DFA3112B6A@swmail01.r8nssis.local> References: <36CA828A36E29F45B7CF0A1766E5DFA310B28E@swmail01.r8nssis.local> <36CA828A36E29F45B7CF0A1766E5DFA3112B6A@swmail01.r8nssis.local> Message-ID: On Thu, May 10, 2012 at 3:57 PM, Mark Volz wrote: > Thomas, > > *note I noticed that ArcCatalog reports the LatLongBoundingBox as 0, 0, 0,0. ?This is probably important... you can try setting ... in each of your s, this should populate the LatLonBbox in the capabilities. -- thomas > > > > I realize that mapcahce does not project. ?For testing I completely removed my grid, source, and tileset that is in county coordinates. ?My other cache is in UTM 15, The only grid I have advertised is UTM15 such as: > > ? ? ? > ? ? ? > ? ? ?UTM15 > > So here is what I have: > > Demo: The demo site works fine. ?Here is an example request that works > http://10.0.8.116/mapcache/?LAYERS=MNSOUTH11&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&FORMAT=image%2Fjpeg&SRS=EPSG%3A26915&BBOX=438394.0589,4887031.0797,471162.0589,4919799.0797&WIDTH=256&HEIGHT=256 > > WMS in ArcCatalog: ?Doesn?t work > The lat long bounding box is 0,0,0,0. ?Furthermore ArcCatalog advertises EPSG: 26915 (which is correct) , EPSG: 900913, EPSG 26915 again?, EPSG: 3857. ?How can I remove the other projections. ?I only want to serve 26915. > * I did try to change the coordinate system that ArcCatalog / ArcMap requests to UTM 15. Mapcahce still did not work > > WMS in QGIS: ?Doesn?t work. > In the properties for the service (root layer) I noticed the WGS 84 Bounding Box is empty. ?However, the layer MNSOUTH11 does have a valid bounding box > > WMTS in QGIS: ?Works. > When adding the WMS layer in QGIS, I noticed I could switch between layers (wms) and Tilesets (WMTS?). ?The tilesets work in QGIS. > > ******************************************************** > > When I did have the County Map service configured, nothing worked. ?Not even the demo. ?I didn't even get any pink tiles in the demo, and firebug reported that it was not even trying to request anything. > > > Let me know if you have any thoughts as to why the WMS service isn?t working. > > Thanks for all your help > > > Mark Volz > GIS Specialist > Lyon County, MN > > -----Original Message----- > From: thomas bonfort [mailto:thomas.bonfort at gmail.com] > Sent: Thursday, May 10, 2012 6:02 AM > To: Mark Volz > Cc: mapserver-users at lists.osgeo.org > Subject: Re: [mapserver-users] mapcache - working with different grids > > Hi, > > > On Wed, May 9, 2012 at 9:45 PM, Mark Volz wrote: >> Hello, >> >> I started working with Mapcache.? I added a tileset that is in UTM 15 >> (26915) and it is working fine on the demo page >> http://localhost/mapcache/demo/wms.? However when I add the layer to >> ArcView, I get a warning about inconsistent extents.?? I noticed the >> service is advertising several extents:? EPSG:900913, EPSG:103749, >> EPSG:26915, EPSG:4326, EPSG:3857.? So I made sure ArcGIS was >> requesting the correct coordinate system via layer>change coordinate >> system.? Even after switching the coordinate system, I still did not >> see anything? (even when zoomed into the appropriate area) > > I've never tried the wms service in arcgis... > > what I do know is that mapcache advertises all known grids in the wms root layer, however only the actually cached grids are advertised for each individual layer (that's what the spec requires, although it does not fit very well with cached layers). I wouldn't be very surprised arcgis chokes on that. > Check your server logs for the requests actually being sent out by arcgis, that will at least tell you if the correct grid is being used. > >> >> I also am trying to get another layer cached, which is in county >> coordinates.? I did add a grid for the county coordinates. >> Unfortunately I cannot get that service working in either the demo >> page or the ArcMap.? I can get the source of that service (before it >> is cached in MapCache) to work in ArcMap. > > need more info... mapcache itself does no projection handling, the grid srs is only used as a key to lookup which tiles to return, and is forwarded to the wms server as is. Right clicking on a pink tile in the demo page and opening the image in a new window might give you more info to help debugging. > > -- > thomas > >> >> >> Questions: >> >> >> Is this the right mailing list, or does mapcache have a separate list? >> How can I limit the grids / spatial references that Mapcache advertises? >> What am I missing that Mapcache works fine in the demo pages, but not >> in ArcMap?? - note I set? assemble and > enabled="true"> >> Is there anything I need to know about custom spatial references?? I >> am guessing that Mapserver itself only needs the grid set. >> >> >> >> Thanks for all the help! >> >> >> Mark Volz >> GIS Specialist >> >> >> >> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> From andy at squeakycode.net Fri May 11 06:47:06 2012 From: andy at squeakycode.net (Andy Colson) Date: Fri, 11 May 2012 08:47:06 -0500 Subject: [mapserver-users] Re: Scale changes to mapserver 6.1-dev In-Reply-To: References: Message-ID: <4FAD185A.1080802@squeakycode.net> The MAXSIZE map option may have gotten a new default. It used to be 2048, but lots of people have new super wide monitors and maps wont render on them. I have had to add "MAXSIZE 4096" to all my mapfiles. To return to the default, you might try adding: "MAXSIZE 2048" to the top of your mapfile. -Andy On 5/11/2012 8:07 AM, Peter Maes wrote: > When I run the mapfile with shp2img i get proper results. > > So in all likelyhood it will have to do with mode gmaps. I'll give a try > with wms in the mean while. > > It seems as if for some reason i get the entire map rendered, for every > tile requested. > > > 2012/5/11 Peter Maes > > > Hi, > > Did something change in regards to the scales? I took an existing > mapfile config (that worked fine on mapserver 6.0) and ran that now > with 6.1-DEV. > > However i get repeated messages stating: > msLayerIsVisible(): Skipping layer (L1) because LAYER.MAXSCALE is > too small for this MAP scale > > When I remove the layer, the layer gets drawn, however it does not > match the scale of google maps. > > In fact, at a zoomed in level, i see my layer draw 6 times next to > eachother (as you would have on google zoom 0-2). > > Best regards. > > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From MarkVolz at co.lyon.mn.us Fri May 11 07:24:43 2012 From: MarkVolz at co.lyon.mn.us (Mark Volz) Date: Fri, 11 May 2012 14:24:43 +0000 Subject: [mapserver-users] RE: mapcache - working with different grids In-Reply-To: References: <36CA828A36E29F45B7CF0A1766E5DFA310B28E@swmail01.r8nssis.local> <36CA828A36E29F45B7CF0A1766E5DFA3112B6A@swmail01.r8nssis.local> Message-ID: <36CA828A36E29F45B7CF0A1766E5DFA3117D18@swmail01.r8nssis.local> Thomas, Setting ... had no impact. I wasn?t sure if the format was space delimited or comma delimited so I tried both ways. I assume that is the correct order is minX, minY, maxX, maxY. Here is what I tried: LyonAirPhotosSource disk Lyon CACHE blabla -96.1 44.1 -95.58 44.7 LyonCC myjpeg 5 5 10 3600 Mark Volz GIS Specialist Lyon County, MN -----Original Message----- From: thomas bonfort [mailto:thomas.bonfort at gmail.com] Sent: Friday, May 11, 2012 8:36 AM To: Mark Volz Cc: mapserver-users at lists.osgeo.org Subject: Re: mapcache - working with different grids On Thu, May 10, 2012 at 3:57 PM, Mark Volz wrote: > Thomas, > > *note I noticed that ArcCatalog reports the LatLongBoundingBox as 0, 0, 0,0. ?This is probably important... you can try setting ... in each of your s, this should populate the LatLonBbox in the capabilities. -- thomas > > > > I realize that mapcahce does not project. ?For testing I completely removed my grid, source, and tileset that is in county coordinates. ?My other cache is in UTM 15, The only grid I have advertised is UTM15 such as: > > ? ? ? > ? ? ? > ? ? ?UTM15 > > So here is what I have: > > Demo: The demo site works fine. ?Here is an example request that works > http://10.0.8.116/mapcache/?LAYERS=MNSOUTH11&SERVICE=WMS&VERSION=1.1.1 > &REQUEST=GetMap&STYLES=&FORMAT=image%2Fjpeg&SRS=EPSG%3A26915&BBOX=4383 > 94.0589,4887031.0797,471162.0589,4919799.0797&WIDTH=256&HEIGHT=256 > > WMS in ArcCatalog: ?Doesn?t work > The lat long bounding box is 0,0,0,0. ?Furthermore ArcCatalog advertises EPSG: 26915 (which is correct) , EPSG: 900913, EPSG 26915 again?, EPSG: 3857. ?How can I remove the other projections. ?I only want to serve 26915. > * I did try to change the coordinate system that ArcCatalog / ArcMap > requests to UTM 15. Mapcahce still did not work > > WMS in QGIS: ?Doesn?t work. > In the properties for the service (root layer) I noticed the WGS 84 > Bounding Box is empty. ?However, the layer MNSOUTH11 does have a valid > bounding box > > WMTS in QGIS: ?Works. > When adding the WMS layer in QGIS, I noticed I could switch between layers (wms) and Tilesets (WMTS?). ?The tilesets work in QGIS. > > ******************************************************** > > When I did have the County Map service configured, nothing worked. ?Not even the demo. ?I didn't even get any pink tiles in the demo, and firebug reported that it was not even trying to request anything. > > > Let me know if you have any thoughts as to why the WMS service isn?t working. > > Thanks for all your help > > > Mark Volz > GIS Specialist > Lyon County, MN > > -----Original Message----- > From: thomas bonfort [mailto:thomas.bonfort at gmail.com] > Sent: Thursday, May 10, 2012 6:02 AM > To: Mark Volz > Cc: mapserver-users at lists.osgeo.org > Subject: Re: [mapserver-users] mapcache - working with different grids > > Hi, > > > On Wed, May 9, 2012 at 9:45 PM, Mark Volz wrote: >> Hello, >> >> I started working with Mapcache.? I added a tileset that is in UTM 15 >> (26915) and it is working fine on the demo page >> http://localhost/mapcache/demo/wms.? However when I add the layer to >> ArcView, I get a warning about inconsistent extents.?? I noticed the >> service is advertising several extents:? EPSG:900913, EPSG:103749, >> EPSG:26915, EPSG:4326, EPSG:3857.? So I made sure ArcGIS was >> requesting the correct coordinate system via layer>change coordinate >> system.? Even after switching the coordinate system, I still did not >> see anything? (even when zoomed into the appropriate area) > > I've never tried the wms service in arcgis... > > what I do know is that mapcache advertises all known grids in the wms root layer, however only the actually cached grids are advertised for each individual layer (that's what the spec requires, although it does not fit very well with cached layers). I wouldn't be very surprised arcgis chokes on that. > Check your server logs for the requests actually being sent out by arcgis, that will at least tell you if the correct grid is being used. > >> >> I also am trying to get another layer cached, which is in county >> coordinates.? I did add a grid for the county coordinates. >> Unfortunately I cannot get that service working in either the demo >> page or the ArcMap.? I can get the source of that service (before it >> is cached in MapCache) to work in ArcMap. > > need more info... mapcache itself does no projection handling, the grid srs is only used as a key to lookup which tiles to return, and is forwarded to the wms server as is. Right clicking on a pink tile in the demo page and opening the image in a new window might give you more info to help debugging. > > -- > thomas > >> >> >> Questions: >> >> >> Is this the right mailing list, or does mapcache have a separate list? >> How can I limit the grids / spatial references that Mapcache advertises? >> What am I missing that Mapcache works fine in the demo pages, but not >> in ArcMap?? - note I set? assemble and > enabled="true"> >> Is there anything I need to know about custom spatial references?? I >> am guessing that Mapserver itself only needs the grid set. >> >> >> >> Thanks for all the help! >> >> >> Mark Volz >> GIS Specialist >> >> >> >> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> From thomas.bonfort at gmail.com Fri May 11 07:32:17 2012 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Fri, 11 May 2012 16:32:17 +0200 Subject: [mapserver-users] Re: mapcache - working with different grids In-Reply-To: <36CA828A36E29F45B7CF0A1766E5DFA3117D18@swmail01.r8nssis.local> References: <36CA828A36E29F45B7CF0A1766E5DFA310B28E@swmail01.r8nssis.local> <36CA828A36E29F45B7CF0A1766E5DFA3112B6A@swmail01.r8nssis.local> <36CA828A36E29F45B7CF0A1766E5DFA3117D18@swmail01.r8nssis.local> Message-ID: arg, my bad, the key is On Fri, May 11, 2012 at 4:24 PM, Mark Volz wrote: > Thomas, > > Setting ? ... had no impact. ?I wasn?t sure if the format was space delimited or comma delimited so I tried both ways. ?I assume that is the correct order is minX, minY, maxX, maxY. > > Here is what I tried: > > ? > ? ? ?LyonAirPhotosSource > ? ? ?disk > ? ? ? > ? ? ? ? Lyon CACHE > ? ? ? ? blabla > ? ? ? ? -96.1 44.1 -95.58 44.7 > ? ? ? > > ? ? ? ? ?LyonCC > ? ? ?myjpeg > ? ? ?5 5 > ? ? ?10 > ? ? ?3600 > ? > > > > > Mark Volz > GIS Specialist > Lyon County, MN > > > -----Original Message----- > From: thomas bonfort [mailto:thomas.bonfort at gmail.com] > Sent: Friday, May 11, 2012 8:36 AM > To: Mark Volz > Cc: mapserver-users at lists.osgeo.org > Subject: Re: mapcache - working with different grids > > On Thu, May 10, 2012 at 3:57 PM, Mark Volz wrote: >> Thomas, >> >> *note I noticed that ArcCatalog reports the LatLongBoundingBox as 0, 0, 0,0. ?This is probably important... > you can try setting > > ? ... > > in each of your s, this should populate the LatLonBbox in the capabilities. > > -- > thomas > > >> >> >> >> I realize that mapcahce does not project. ?For testing I completely removed my grid, source, and tileset that is in county coordinates. ?My other cache is in UTM 15, The only grid I have advertised is UTM15 such as: >> >> ? ? ? >> ? ? ? >> ? ? ?UTM15 >> >> So here is what I have: >> >> Demo: The demo site works fine. ?Here is an example request that works >> http://10.0.8.116/mapcache/?LAYERS=MNSOUTH11&SERVICE=WMS&VERSION=1.1.1 >> &REQUEST=GetMap&STYLES=&FORMAT=image%2Fjpeg&SRS=EPSG%3A26915&BBOX=4383 >> 94.0589,4887031.0797,471162.0589,4919799.0797&WIDTH=256&HEIGHT=256 >> >> WMS in ArcCatalog: ?Doesn?t work >> The lat long bounding box is 0,0,0,0. ?Furthermore ArcCatalog advertises EPSG: 26915 (which is correct) , EPSG: 900913, EPSG 26915 again?, EPSG: 3857. ?How can I remove the other projections. ?I only want to serve 26915. >> * I did try to change the coordinate system that ArcCatalog / ArcMap >> requests to UTM 15. Mapcahce still did not work >> >> WMS in QGIS: ?Doesn?t work. >> In the properties for the service (root layer) I noticed the WGS 84 >> Bounding Box is empty. ?However, the layer MNSOUTH11 does have a valid >> bounding box >> >> WMTS in QGIS: ?Works. >> When adding the WMS layer in QGIS, I noticed I could switch between layers (wms) and Tilesets (WMTS?). ?The tilesets work in QGIS. >> >> ******************************************************** >> >> When I did have the County Map service configured, nothing worked. ?Not even the demo. ?I didn't even get any pink tiles in the demo, and firebug reported that it was not even trying to request anything. >> >> >> Let me know if you have any thoughts as to why the WMS service isn?t working. >> >> Thanks for all your help >> >> >> Mark Volz >> GIS Specialist >> Lyon County, MN >> >> -----Original Message----- >> From: thomas bonfort [mailto:thomas.bonfort at gmail.com] >> Sent: Thursday, May 10, 2012 6:02 AM >> To: Mark Volz >> Cc: mapserver-users at lists.osgeo.org >> Subject: Re: [mapserver-users] mapcache - working with different grids >> >> Hi, >> >> >> On Wed, May 9, 2012 at 9:45 PM, Mark Volz wrote: >>> Hello, >>> >>> I started working with Mapcache.? I added a tileset that is in UTM 15 >>> (26915) and it is working fine on the demo page >>> http://localhost/mapcache/demo/wms.? However when I add the layer to >>> ArcView, I get a warning about inconsistent extents.?? I noticed the >>> service is advertising several extents:? EPSG:900913, EPSG:103749, >>> EPSG:26915, EPSG:4326, EPSG:3857.? So I made sure ArcGIS was >>> requesting the correct coordinate system via layer>change coordinate >>> system.? Even after switching the coordinate system, I still did not >>> see anything? (even when zoomed into the appropriate area) >> >> I've never tried the wms service in arcgis... >> >> what I do know is that mapcache advertises all known grids in the wms root layer, however only the actually cached grids are advertised for each individual layer (that's what the spec requires, although it does not fit very well with cached layers). I wouldn't be very surprised arcgis chokes on that. >> Check your server logs for the requests actually being sent out by arcgis, that will at least tell you if the correct grid is being used. >> >>> >>> I also am trying to get another layer cached, which is in county >>> coordinates.? I did add a grid for the county coordinates. >>> Unfortunately I cannot get that service working in either the demo >>> page or the ArcMap.? I can get the source of that service (before it >>> is cached in MapCache) to work in ArcMap. >> >> need more info... mapcache itself does no projection handling, the grid srs is only used as a key to lookup which tiles to return, and is forwarded to the wms server as is. Right clicking on a pink tile in the demo page and opening the image in a new window might give you more info to help debugging. >> >> -- >> thomas >> >>> >>> >>> Questions: >>> >>> >>> Is this the right mailing list, or does mapcache have a separate list? >>> How can I limit the grids / spatial references that Mapcache advertises? >>> What am I missing that Mapcache works fine in the demo pages, but not >>> in ArcMap?? - note I set? assemble and >> enabled="true"> >>> Is there anything I need to know about custom spatial references?? I >>> am guessing that Mapserver itself only needs the grid set. >>> >>> >>> >>> Thanks for all the help! >>> >>> >>> Mark Volz >>> GIS Specialist >>> >>> >>> >>> >>> _______________________________________________ >>> mapserver-users mailing list >>> mapserver-users at lists.osgeo.org >>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>> From MarkVolz at co.lyon.mn.us Fri May 11 08:49:14 2012 From: MarkVolz at co.lyon.mn.us (Mark Volz) Date: Fri, 11 May 2012 15:49:14 +0000 Subject: [mapserver-users] RE: mapcache - working with different grids In-Reply-To: References: <36CA828A36E29F45B7CF0A1766E5DFA310B28E@swmail01.r8nssis.local> <36CA828A36E29F45B7CF0A1766E5DFA3112B6A@swmail01.r8nssis.local> <36CA828A36E29F45B7CF0A1766E5DFA3117D18@swmail01.r8nssis.local> Message-ID: <36CA828A36E29F45B7CF0A1766E5DFA3117D5F@swmail01.r8nssis.local> Thomas I added so now the LatLongBoundingBox is valid. I can now use WMST in ArcGIS, however the pictures appear to have a very blue tone. QGIS does not have this problem. I am still having issues with WMS even after switching the coordinate system. Thanks for all of your help Mark Volz GIS Specialist Lyon County, MN -----Original Message----- From: thomas bonfort [mailto:thomas.bonfort at gmail.com] Sent: Friday, May 11, 2012 9:32 AM To: Mark Volz Cc: mapserver-users at lists.osgeo.org Subject: Re: mapcache - working with different grids arg, my bad, the key is On Fri, May 11, 2012 at 4:24 PM, Mark Volz wrote: > Thomas, > > Setting ? ... had no impact. ?I wasn?t sure if the format was space delimited or comma delimited so I tried both ways. ?I assume that is the correct order is minX, minY, maxX, maxY. > > Here is what I tried: > > ? > ? ? ?LyonAirPhotosSource > ? ? ?disk > ? ? ? > ? ? ? ? Lyon CACHE > ? ? ? ? blabla > ? ? ? ? -96.1 44.1 -95.58 44.7 > ? ? ? > > ? ? ? ? ?LyonCC > ? ? ?myjpeg > ? ? ?5 5 > ? ? ?10 > ? ? ?3600 > ? > > > > > Mark Volz > GIS Specialist > Lyon County, MN > > > -----Original Message----- > From: thomas bonfort [mailto:thomas.bonfort at gmail.com] > Sent: Friday, May 11, 2012 8:36 AM > To: Mark Volz > Cc: mapserver-users at lists.osgeo.org > Subject: Re: mapcache - working with different grids > > On Thu, May 10, 2012 at 3:57 PM, Mark Volz wrote: >> Thomas, >> >> *note I noticed that ArcCatalog reports the LatLongBoundingBox as 0, 0, 0,0. ?This is probably important... > you can try setting > > ? ... > > in each of your s, this should populate the LatLonBbox in the capabilities. > > -- > thomas > > >> >> >> >> I realize that mapcahce does not project. ?For testing I completely removed my grid, source, and tileset that is in county coordinates. ?My other cache is in UTM 15, The only grid I have advertised is UTM15 such as: >> >> ? ? ? >> ? ? ? >> ? ? ?UTM15 >> >> So here is what I have: >> >> Demo: The demo site works fine. ?Here is an example request that >> works >> http://10.0.8.116/mapcache/?LAYERS=MNSOUTH11&SERVICE=WMS&VERSION=1.1. >> 1 >> &REQUEST=GetMap&STYLES=&FORMAT=image%2Fjpeg&SRS=EPSG%3A26915&BBOX=438 >> 3 >> 94.0589,4887031.0797,471162.0589,4919799.0797&WIDTH=256&HEIGHT=256 >> >> WMS in ArcCatalog: ?Doesn?t work >> The lat long bounding box is 0,0,0,0. ?Furthermore ArcCatalog advertises EPSG: 26915 (which is correct) , EPSG: 900913, EPSG 26915 again?, EPSG: 3857. ?How can I remove the other projections. ?I only want to serve 26915. >> * I did try to change the coordinate system that ArcCatalog / ArcMap >> requests to UTM 15. Mapcahce still did not work >> >> WMS in QGIS: ?Doesn?t work. >> In the properties for the service (root layer) I noticed the WGS 84 >> Bounding Box is empty. ?However, the layer MNSOUTH11 does have a >> valid bounding box >> >> WMTS in QGIS: ?Works. >> When adding the WMS layer in QGIS, I noticed I could switch between layers (wms) and Tilesets (WMTS?). ?The tilesets work in QGIS. >> >> ******************************************************** >> >> When I did have the County Map service configured, nothing worked. ?Not even the demo. ?I didn't even get any pink tiles in the demo, and firebug reported that it was not even trying to request anything. >> >> >> Let me know if you have any thoughts as to why the WMS service isn?t working. >> >> Thanks for all your help >> >> >> Mark Volz >> GIS Specialist >> Lyon County, MN >> >> -----Original Message----- >> From: thomas bonfort [mailto:thomas.bonfort at gmail.com] >> Sent: Thursday, May 10, 2012 6:02 AM >> To: Mark Volz >> Cc: mapserver-users at lists.osgeo.org >> Subject: Re: [mapserver-users] mapcache - working with different >> grids >> >> Hi, >> >> >> On Wed, May 9, 2012 at 9:45 PM, Mark Volz wrote: >>> Hello, >>> >>> I started working with Mapcache.? I added a tileset that is in UTM >>> 15 >>> (26915) and it is working fine on the demo page >>> http://localhost/mapcache/demo/wms.? However when I add the layer to >>> ArcView, I get a warning about inconsistent extents.?? I noticed the >>> service is advertising several extents:? EPSG:900913, EPSG:103749, >>> EPSG:26915, EPSG:4326, EPSG:3857.? So I made sure ArcGIS was >>> requesting the correct coordinate system via layer>change coordinate >>> system.? Even after switching the coordinate system, I still did not >>> see anything? (even when zoomed into the appropriate area) >> >> I've never tried the wms service in arcgis... >> >> what I do know is that mapcache advertises all known grids in the wms root layer, however only the actually cached grids are advertised for each individual layer (that's what the spec requires, although it does not fit very well with cached layers). I wouldn't be very surprised arcgis chokes on that. >> Check your server logs for the requests actually being sent out by arcgis, that will at least tell you if the correct grid is being used. >> >>> >>> I also am trying to get another layer cached, which is in county >>> coordinates.? I did add a grid for the county coordinates. >>> Unfortunately I cannot get that service working in either the demo >>> page or the ArcMap.? I can get the source of that service (before it >>> is cached in MapCache) to work in ArcMap. >> >> need more info... mapcache itself does no projection handling, the grid srs is only used as a key to lookup which tiles to return, and is forwarded to the wms server as is. Right clicking on a pink tile in the demo page and opening the image in a new window might give you more info to help debugging. >> >> -- >> thomas >> >>> >>> >>> Questions: >>> >>> >>> Is this the right mailing list, or does mapcache have a separate list? >>> How can I limit the grids / spatial references that Mapcache advertises? >>> What am I missing that Mapcache works fine in the demo pages, but >>> not in ArcMap?? - note I set? assemble and >> enabled="true"> >>> Is there anything I need to know about custom spatial references?? I >>> am guessing that Mapserver itself only needs the grid set. >>> >>> >>> >>> Thanks for all the help! >>> >>> >>> Mark Volz >>> GIS Specialist >>> >>> >>> >>> >>> _______________________________________________ >>> mapserver-users mailing list >>> mapserver-users at lists.osgeo.org >>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>> From MarkVolz at co.lyon.mn.us Fri May 11 09:22:07 2012 From: MarkVolz at co.lyon.mn.us (Mark Volz) Date: Fri, 11 May 2012 16:22:07 +0000 Subject: [mapserver-users] RE: mapcache - working with different grids In-Reply-To: References: <36CA828A36E29F45B7CF0A1766E5DFA310B28E@swmail01.r8nssis.local> <36CA828A36E29F45B7CF0A1766E5DFA3112B6A@swmail01.r8nssis.local> <36CA828A36E29F45B7CF0A1766E5DFA3117D18@swmail01.r8nssis.local> Message-ID: <36CA828A36E29F45B7CF0A1766E5DFA3117D86@swmail01.r8nssis.local> Thomas, I was able to get WMS working in QGIS, but not ArcGIS. The only difference I noticed between the two is that ArcGIS removes SERVICE=WMS& Any idea why ArcGIS would not include SERVICE=WMS? I also tried connecting using http://10.0.8.116/mapcache?SERVICE=WMS&, which did not help. 10.0.12.110 - - [11/May/2012:11:15:12 -0500] "GET /mapcache?SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&BBOX=252575.067729,4912339.334098,294831.104516,4947623.796493&SRS=EPSG:26915&WIDTH=736&HEIGHT=614&LAYERS=MNSOUTH11&STYLES=&FORMAT=image/png&DPI=96&TRANSPARENT=TRUE HTTP/1.1" 200 140394 10.0.12.110 - - [11/May/2012:11:15:18 -0500] "GET /mapcache?VERSION=1.1.1&REQUEST=GetMap&SRS=EPSG:26915&BBOX=251874.115161623,4886216.39889925,295597.396938947,4937598.87223203&WIDTH=411&HEIGHT=482&LAYERS=MNSOUTH11&STYLES=&FORMAT=image/png&BGCOLOR=0xFEFFFF&TRANSPARENT=TRUE HTTP/1.1" 400 42 Mark Volz GIS Specialist Lyon County, MN -----Original Message----- From: thomas bonfort [mailto:thomas.bonfort at gmail.com] Sent: Friday, May 11, 2012 9:32 AM To: Mark Volz Cc: mapserver-users at lists.osgeo.org Subject: Re: mapcache - working with different grids arg, my bad, the key is On Fri, May 11, 2012 at 4:24 PM, Mark Volz wrote: > Thomas, > > Setting ? ... had no impact. ?I wasn?t sure if the format was space delimited or comma delimited so I tried both ways. ?I assume that is the correct order is minX, minY, maxX, maxY. > > Here is what I tried: > > ? > ? ? ?LyonAirPhotosSource > ? ? ?disk > ? ? ? > ? ? ? ? Lyon CACHE > ? ? ? ? blabla > ? ? ? ? -96.1 44.1 -95.58 44.7 > ? ? ? > > ? ? ? ? ?LyonCC > ? ? ?myjpeg > ? ? ?5 5 > ? ? ?10 > ? ? ?3600 > ? > > > > > Mark Volz > GIS Specialist > Lyon County, MN > > > -----Original Message----- > From: thomas bonfort [mailto:thomas.bonfort at gmail.com] > Sent: Friday, May 11, 2012 8:36 AM > To: Mark Volz > Cc: mapserver-users at lists.osgeo.org > Subject: Re: mapcache - working with different grids > > On Thu, May 10, 2012 at 3:57 PM, Mark Volz wrote: >> Thomas, >> >> *note I noticed that ArcCatalog reports the LatLongBoundingBox as 0, 0, 0,0. ?This is probably important... > you can try setting > > ? ... > > in each of your s, this should populate the LatLonBbox in the capabilities. > > -- > thomas > > >> >> >> >> I realize that mapcahce does not project. ?For testing I completely removed my grid, source, and tileset that is in county coordinates. ?My other cache is in UTM 15, The only grid I have advertised is UTM15 such as: >> >> ? ? ? >> ? ? ? >> ? ? ?UTM15 >> >> So here is what I have: >> >> Demo: The demo site works fine. ?Here is an example request that >> works >> http://10.0.8.116/mapcache/?LAYERS=MNSOUTH11&SERVICE=WMS&VERSION=1.1. >> 1 >> &REQUEST=GetMap&STYLES=&FORMAT=image%2Fjpeg&SRS=EPSG%3A26915&BBOX=438 >> 3 >> 94.0589,4887031.0797,471162.0589,4919799.0797&WIDTH=256&HEIGHT=256 >> >> WMS in ArcCatalog: ?Doesn?t work >> The lat long bounding box is 0,0,0,0. ?Furthermore ArcCatalog advertises EPSG: 26915 (which is correct) , EPSG: 900913, EPSG 26915 again?, EPSG: 3857. ?How can I remove the other projections. ?I only want to serve 26915. >> * I did try to change the coordinate system that ArcCatalog / ArcMap >> requests to UTM 15. Mapcahce still did not work >> >> WMS in QGIS: ?Doesn?t work. >> In the properties for the service (root layer) I noticed the WGS 84 >> Bounding Box is empty. ?However, the layer MNSOUTH11 does have a >> valid bounding box >> >> WMTS in QGIS: ?Works. >> When adding the WMS layer in QGIS, I noticed I could switch between layers (wms) and Tilesets (WMTS?). ?The tilesets work in QGIS. >> >> ******************************************************** >> >> When I did have the County Map service configured, nothing worked. ?Not even the demo. ?I didn't even get any pink tiles in the demo, and firebug reported that it was not even trying to request anything. >> >> >> Let me know if you have any thoughts as to why the WMS service isn?t working. >> >> Thanks for all your help >> >> >> Mark Volz >> GIS Specialist >> Lyon County, MN >> >> -----Original Message----- >> From: thomas bonfort [mailto:thomas.bonfort at gmail.com] >> Sent: Thursday, May 10, 2012 6:02 AM >> To: Mark Volz >> Cc: mapserver-users at lists.osgeo.org >> Subject: Re: [mapserver-users] mapcache - working with different >> grids >> >> Hi, >> >> >> On Wed, May 9, 2012 at 9:45 PM, Mark Volz wrote: >>> Hello, >>> >>> I started working with Mapcache.? I added a tileset that is in UTM >>> 15 >>> (26915) and it is working fine on the demo page >>> http://localhost/mapcache/demo/wms.? However when I add the layer to >>> ArcView, I get a warning about inconsistent extents.?? I noticed the >>> service is advertising several extents:? EPSG:900913, EPSG:103749, >>> EPSG:26915, EPSG:4326, EPSG:3857.? So I made sure ArcGIS was >>> requesting the correct coordinate system via layer>change coordinate >>> system.? Even after switching the coordinate system, I still did not >>> see anything? (even when zoomed into the appropriate area) >> >> I've never tried the wms service in arcgis... >> >> what I do know is that mapcache advertises all known grids in the wms root layer, however only the actually cached grids are advertised for each individual layer (that's what the spec requires, although it does not fit very well with cached layers). I wouldn't be very surprised arcgis chokes on that. >> Check your server logs for the requests actually being sent out by arcgis, that will at least tell you if the correct grid is being used. >> >>> >>> I also am trying to get another layer cached, which is in county >>> coordinates.? I did add a grid for the county coordinates. >>> Unfortunately I cannot get that service working in either the demo >>> page or the ArcMap.? I can get the source of that service (before it >>> is cached in MapCache) to work in ArcMap. >> >> need more info... mapcache itself does no projection handling, the grid srs is only used as a key to lookup which tiles to return, and is forwarded to the wms server as is. Right clicking on a pink tile in the demo page and opening the image in a new window might give you more info to help debugging. >> >> -- >> thomas >> >>> >>> >>> Questions: >>> >>> >>> Is this the right mailing list, or does mapcache have a separate list? >>> How can I limit the grids / spatial references that Mapcache advertises? >>> What am I missing that Mapcache works fine in the demo pages, but >>> not in ArcMap?? - note I set? assemble and >> enabled="true"> >>> Is there anything I need to know about custom spatial references?? I >>> am guessing that Mapserver itself only needs the grid set. >>> >>> >>> >>> Thanks for all the help! >>> >>> >>> Mark Volz >>> GIS Specialist >>> >>> >>> >>> >>> _______________________________________________ >>> mapserver-users mailing list >>> mapserver-users at lists.osgeo.org >>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>> From lists at fuchsschwanzdomain.de Fri May 11 10:58:05 2012 From: lists at fuchsschwanzdomain.de (Sven Geggus) Date: Fri, 11 May 2012 17:58:05 +0000 (UTC) Subject: [mapserver-users] Re: polygon border artifacts References: Message-ID: thomas bonfort wrote: > you can fiddle with gamma correction in mapserver trunk, c.f. > > https://twitter.com/#!/tbonfort/status/93284998249066496 > > OUTPUTFORMAT > DRIVER AGG/PNG > ... > FORMATOPTION "GAMMA=0.7" #valid from 0 to 1 > END hm, did you change something else in this area since Version 6.0.1 (my Version from Debian)? Using the latest Version from git everything seems to work fine, even without the GAMMA=0.7 option. Sven -- Den Rechtsstaat macht aus, dass Unschuldige wieder frei kommen (Wolfgang Sch?uble) /me is giggls at ircnet, http://sven.gegg.us/ on the Web From pcreso at pcreso.com Fri May 11 18:54:54 2012 From: pcreso at pcreso.com (pcreso at pcreso.com) Date: Fri, 11 May 2012 18:54:54 -0700 (PDT) Subject: [mapserver-users] how to embed images in a map Message-ID: <1336787694.5182.YahooMailClassic@web160702.mail.bf1.yahoo.com> Hi, I'm trying to embed graphics in a map. A map with polygons, & each polygon has a logo or small graph to include at a specified location (point) in the output map. Can anyone suggest the best way to do this? The map is a WMS output layer, & ideally it should be generated as a layer in a mapfile? I guess a CGI could use image magic to do this on top of the map image, but I'm looking for a way Mapserver could do this directly. Thanks, ? Brent Wood -------------- next part -------------- An HTML attachment was scrubbed... URL: From discover.ab at gmail.com Sat May 12 03:23:11 2012 From: discover.ab at gmail.com (abhishek bansal) Date: Sat, 12 May 2012 15:53:11 +0530 Subject: [mapserver-users] Force_2d does not exist Message-ID: Hello All, I am trying to display a simple shape file from postgis database but error log keep giving me this. [Sat May 12 15:47:53 2012].968000 CGI Request 1 on process 4748 [Sat May 12 15:47:53 2012].968000 msDrawMap(): WMS/WFS set-up and query, 0.000s [Sat May 12 15:47:53 2012].995000 msPostGISLayerWhichShapes(): Query error. Error (ERROR: function force_2d(geometry) does not exist LINE 1: select encode(AsBinary(force_collection(force_2d("geom")),'N... ^ HINT: No function matches the given name and argument types. You might need to add explicit type casts. ) executing query: select encode(AsBinary(force_collection(force_2d("geom")),'NDR'),'hex') as geom,"gid" from waterways where geom && GeomFromText('POLYGON((64.7695553856427 8.082365,64.7695553856427 34.585531,100.121858614357 34.585531,100.121858614357 8.082365,64.7695553856427 8.082365))',4326) [Sat May 12 15:47:53 2012].996000 msDrawMap(): Image handling error. Failed to draw layer named 'waterways'. [Sat May 12 15:47:53 2012].996000 msFreeMap(): freeing map at 01E5C1F8. my postgres version is 9.0, gdal 1.8, i am using MS4W on windows 7 This shape file was working perfectly on PostGIS 1.5 but now its not working on version 2. please help !! -- Thanks & Regards, Abhishek Bansal http://abhishekbansal.miyuri.com Jaypee Institute of Information Technology, Noida -------------- next part -------------- An HTML attachment was scrubbed... URL: From Jukka.Rahkonen at mmmtike.fi Sat May 12 03:30:51 2012 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Sat, 12 May 2012 10:30:51 +0000 Subject: [mapserver-users] Force_2d does not exist In-Reply-To: References: Message-ID: <84446DEF76453C439E9E97E438E13A6314E415@suutari.haapa.mmm.fi> Hi, See http://trac.osgeo.org/mapserver/ticket/4186 and try legacy.sql as first aid. -Jukka Rahkonen- abhishek bansal wrote: > Hello All, > I am trying to display a simple shape file from postgis database but error log keep giving me this. [Sat May 12 15:47:53 2012].968000 CGI Request 1 on process 4748 [Sat May 12 15:47:53 2012].968000 msDrawMap(): WMS/WFS set-up and query, 0.000s [Sat May 12 15:47:53 2012].995000 msPostGISLayerWhichShapes(): Query error. Error (ERROR: function force_2d(geometry) does not exist LINE 1: select encode(AsBinary(force_collection(force_2d("geom")),'N... ^ HINT: No function matches the given name and argument types. You might need to add explicit type casts. ) executing query: select encode(AsBinary(force_collection(force_2d("geom")),'NDR'),'hex') as geom,"gid" from waterways where geom && GeomFromText('POLYGON((64.7695553856427 8.082365,64.7695553856427 34.585531,100.121858614357 34.585531,100.121858614357 8.082365,64.7695553856427 8.082365))',4326) [Sat May 12 15:47:53 2012].996000 msDrawMap(): Image handling error. Failed to draw layer named 'waterways'. [Sat May 12 15:47:53 2012].996000 msFreeMap(): freeing map at 01E5C1F8. my postgres version is 9.0, gdal 1.8, i am using MS4W on windows 7 This shape file was working perfectly on PostGIS 1.5 but now its not working on version 2. please help !! -- Thanks & Regards, Abhishek Bansal http://abhishekbansal.miyuri.com Jaypee Institute of Information Technology, Noida From sam at planyukon.ca Sat May 12 03:31:14 2012 From: sam at planyukon.ca (sam at planyukon.ca) Date: 12 May 2012 03:31:14 -0700 Subject: [mapserver-users] Re: mapserver-users Digest, Vol 52, Issue 32 Message-ID: <20120512103114.6625.qmail@polarhosting.ca> Sorry I missed you, but I am on parental leave until May 14th. Urgent YLUPC business can be sent to the YLUPC director at ron at planyukon.ca. From discover.ab at gmail.com Sat May 12 03:45:48 2012 From: discover.ab at gmail.com (abhishek bansal) Date: Sat, 12 May 2012 16:15:48 +0530 Subject: [mapserver-users] Force_2d does not exist In-Reply-To: <84446DEF76453C439E9E97E438E13A6314E415@suutari.haapa.mmm.fi> References: <84446DEF76453C439E9E97E438E13A6314E415@suutari.haapa.mmm.fi> Message-ID: That worked indeed....like a magic !! Thank you Very Much On Sat, May 12, 2012 at 4:00 PM, Rahkonen Jukka wrote: > Hi, > > See http://trac.osgeo.org/mapserver/ticket/4186 > and try legacy.sql as first aid. > > -Jukka Rahkonen- > > abhishek bansal wrote: > > > > Hello All, > > > I am trying to display a simple shape file from postgis database but > error log keep giving me this. > > [Sat May 12 15:47:53 2012].968000 CGI Request 1 on process 4748 > [Sat May 12 15:47:53 2012].968000 msDrawMap(): WMS/WFS set-up and query, > 0.000s > [Sat May 12 15:47:53 2012].995000 msPostGISLayerWhichShapes(): Query > error. Error (ERROR: function force_2d(geometry) does not exist > LINE 1: select encode(AsBinary(force_collection(force_2d("geom")),'N... > ^ > HINT: No function matches the given name and argument types. You might > need to add explicit type casts. > ) executing query: select > encode(AsBinary(force_collection(force_2d("geom")),'NDR'),'hex') as > geom,"gid" from waterways where geom && > GeomFromText('POLYGON((64.7695553856427 8.082365,64.7695553856427 > 34.585531,100.121858614357 34.585531,100.121858614357 > 8.082365,64.7695553856427 8.082365))',4326) > [Sat May 12 15:47:53 2012].996000 msDrawMap(): Image handling error. > Failed to draw layer named 'waterways'. > [Sat May 12 15:47:53 2012].996000 msFreeMap(): freeing map at 01E5C1F8. > > my postgres version is 9.0, gdal 1.8, i am using MS4W on windows 7 > > This shape file was working perfectly on PostGIS 1.5 but now its not > working on version 2. > please help !! > -- > Thanks & Regards, > Abhishek Bansal > http://abhishekbansal.miyuri.com > Jaypee Institute of Information Technology, Noida > > > -- Thanks & Regards, Abhishek Bansal http://abhishekbansal.miyuri.com Jaypee Institute of Information Technology, Noida -------------- next part -------------- An HTML attachment was scrubbed... URL: From thomas.bonfort at gmail.com Sat May 12 05:28:05 2012 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Sat, 12 May 2012 14:28:05 +0200 Subject: [mapserver-users] Re: polygon border artifacts In-Reply-To: References: Message-ID: On Fri, May 11, 2012 at 7:58 PM, Sven Geggus wrote: > thomas bonfort wrote: > >> you can fiddle with gamma correction in mapserver trunk, c.f. >> >> https://twitter.com/#!/tbonfort/status/93284998249066496 >> >> OUTPUTFORMAT >> DRIVER AGG/PNG >> ... >> FORMATOPTION "GAMMA=0.7" ?#valid from 0 to 1 >> END > > hm, did you change something else in this area since Version 6.0.1 > (my Version from Debian)? > > Using the latest Version from git everything seems to work fine, even > without the GAMMA=0.7 option. The default gamma is set to 0.75 in git master. -- thomas > > Sven > > -- > Den Rechtsstaat macht aus, dass Unschuldige wieder frei kommen > (Wolfgang Sch?uble) > > /me is giggls at ircnet, http://sven.gegg.us/ on the Web > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From ivan.mincik at gmail.com Sun May 13 03:46:39 2012 From: ivan.mincik at gmail.com (Ivan Mincik) Date: Sun, 13 May 2012 12:46:39 +0200 Subject: [mapserver-users] GetLegendGraphic request using mapscript.OWSRequest() Message-ID: Hi, is it possible to run GetLegendGraphic request using mapscript.OWSRequest() ? I use following code: wms = mapscript.mapObj(mapfile) req = mapscript.OWSRequest() for k,v in qs.items(): req.setParameter(k, v) wms.loadOWSParameters(req) wms.draw() but it seems, that it always performs GetMap request. Parameters are: LAYER polygon SERVICE WMS FORMAT image/png REQUEST GetLegendGraphic VERSION 1.1.1 MapServer version 6.0.1 Thanks, Ivan From lists at fuchsschwanzdomain.de Sun May 13 06:38:12 2012 From: lists at fuchsschwanzdomain.de (Sven Geggus) Date: Sun, 13 May 2012 13:38:12 +0000 (UTC) Subject: [mapserver-users] Re: polygon border artifacts References: Message-ID: Sven Geggus wrote: > Hm. Looking at the sources 6.0.1 seems to be recent enough, but > unfortunately this does not seem to fix the problem. OK YFTR: Rendering water from Overlapping polygons does work fine in mapserver 6.0.x using the "APPROXIMATION_SCALE=FULL" PROCESSING directive. "FORMATOPTION GAMMA=0.7" does not seem to be needed but won't be available in version 6.0.x anyway. My problem was mith the specification of multiple PROCESSING directives. The following syntax does not work, but does not result in a mapfile parser error either: PROCESSING "DIRECTIVE1=value1 DIRECTIVE2=value2" Instead the following must be used: PROCESSING "DIRECTIVE1=value1" PROCESSING "DIRECTIVE2=value2" In my case these are: PROCESSING "CLOSE_CONNECTION=DEFER" PROCESSING "APPROXIMATION_SCALE=FULL" Regards Sven -- Den Rechtsstaat macht aus, dass Unschuldige wieder frei kommen (Wolfgang Sch?uble) /me is giggls at ircnet, http://sven.gegg.us/ on the Web From lists at fuchsschwanzdomain.de Sun May 13 07:13:41 2012 From: lists at fuchsschwanzdomain.de (Sven Geggus) Date: Sun, 13 May 2012 14:13:41 +0000 (UTC) Subject: [mapserver-users] Re: polygon border artifacts References: Message-ID: Sven Geggus wrote: > OK YFTR: > > Rendering water from Overlapping polygons does work fine in mapserver > 6.0.x using the "APPROXIMATION_SCALE=FULL" PROCESSING directive. > > "FORMATOPTION GAMMA=0.7" does not seem to be needed but won't be > available in version 6.0.x anyway. > > My problem was mith the specification of multiple PROCESSING > directives. > > The following syntax does not work, but does not result in a mapfile > parser error either: > PROCESSING "DIRECTIVE1=value1 DIRECTIVE2=value2" > > Instead the following must be used: > PROCESSING "DIRECTIVE1=value1" > PROCESSING "DIRECTIVE2=value2" > > In my case these are: > PROCESSING "CLOSE_CONNECTION=DEFER" > PROCESSING "APPROXIMATION_SCALE=FULL" Oh well, here comes another FTR posting as this is only true with OUTLINECOLOR and "WIDTH 0" specified which does produce other strange artifacts in small zoomlevels. When OUTLINECOLOR and WIDTH are omitted the border artifacts are back. So here is the solution which is producing the desired results: * Use mapserver from git master (6.1-dev) * Render ocean polygons using a mapfile like the following: --cut-- MAP OUTPUTFORMAT NAME agg DRIVER AGG/PNG8 FORMATOPTION "INTERLACE=OFF" FORMATOPTION "GAMMA=0.6" MIMETYPE "image/png" END WEB METADATA "ows_enable_request" "*" wms_srs "EPSG:4326 EPSG:3857" END END PROJECTION "init=epsg:3857" END LAYER DEBUG 9 PROCESSING "CLOSE_CONNECTION=DEFER" PROCESSING "APPROXIMATION_SCALE=FULL" NAME "ocean" TYPE POLYGON STATUS ON DATA "ocean-120328" PROJECTION "init=epsg:3857" END CLASS STYLE COLOR "#579ae3" END END # of class END # of layer END --cut-- Sven -- "The only thing we have to fear is fear itself" (Franklin D. Roosevelt) /me is giggls at ircnet, http://sven.gegg.us/ on the Web From sam at planyukon.ca Sun May 13 08:59:49 2012 From: sam at planyukon.ca (sam at planyukon.ca) Date: 13 May 2012 08:59:49 -0700 Subject: [mapserver-users] Re: mapserver-users Digest, Vol 52, Issue 34 Message-ID: <20120513155949.25321.qmail@polarhosting.ca> Sorry I missed you, but I am on parental leave until May 14th. Urgent YLUPC business can be sent to the YLUPC director at ron at planyukon.ca. From hsansegundo at meteo.cat Mon May 14 00:35:57 2012 From: hsansegundo at meteo.cat (Helen San Segundo Navazo) Date: Mon, 14 May 2012 09:35:57 +0200 Subject: [mapserver-users] mapcache - problems on install In-Reply-To: <4FAD0FFC.1020103@swoodbridge.com> References: <36CA828A36E29F45B7CF0A1766E5DFA310B28E@swmail01.r8nssis.local> <4FAB9962.7080704@meteo.cat> <4FABAF6B.2080607@meteo.cat> <4FABBFBC.6000200@meteo.cat> <4FACC680.4060601@meteo.cat> <4FACCE2E.5000802@meteo.cat> <4FACDC55.20508@meteo.cat> <4FAD0494.8050108@meteo.cat> <4FAD0FFC.1020103@swoodbridge.com> Message-ID: <4FB0B5DD.4080508@meteo.cat> Hi , thanks, now it works, it was a access problem to the disk where the folder with the mapcache.xml file was, I've changed the access to another disk and it works perfectly. Now I can make some tests to understand how it works. Thanks Steve for the explanation, Helen El 11/05/12 15:11, Stephen Woodbridge escribi?: > On 5/11/2012 8:22 AM, Helen San Segundo Navazo wrote: >> Sorry for insisting but I don't understeand how mapcache works. >> >> When I invoke in the url http://localhost/mapcache/ apache reads the >> MapCacheAlias so it goes to the path >> /home/curs/Desarrollo/Aplicaciones/mapserver-mapcache-18a50e2/ and read >> mapcache.xml file? >> >> If I invoke http://localhost/mapcache/demo what's doing? reads/create a >> demo folder inside the path >> /home/curs/Desarrollo/Aplicaciones/mapserver-mapcache-18a50e2/ or goes >> inside the mapcache.xml to a tag with "demo" value? >> >> I send a jpg with my structure of folders, is missing something? >> >> Maybe if I understand how mapcache works I would find what's the >> problem. >> Thanks > > In the apache config you want to specify a MapCacheAlias, this should > be to a non-existent directory as apache will use this path to handoff > the request to the mapcache service handler. For example: > > MapCacheAlias /mapcache /usr/var/mapcache/mapcache.xml > > When mapcache gets the handoff it reads the mapcache.xml config file > which defines the various services, grids, etc that you have configured. > > If you have enabled the demo service for example: > > http://localhost/mapcache/demo > > Then mapcache will generate an html page the list the configured > services. And if you click on one of the servers like wms if you > configured that, it will generate a sample OpenLayers application > preconfigured to access that service. You can view the page source to > see how to setup OpenLayers to access that service. > > HTH, > -Steve W > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From ritaabreupdcc at gmail.com Mon May 14 02:31:03 2012 From: ritaabreupdcc at gmail.com (Rita Abreu) Date: Mon, 14 May 2012 10:31:03 +0100 Subject: [mapserver-users] wms base layers Message-ID: Hi, I?m a new user of mapserver. Can anyone recomend me base layers for my project? Can somenoe tell me how to add google layers or osm layers? Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: From ahmettemiz88 at gmail.com Mon May 14 04:01:22 2012 From: ahmettemiz88 at gmail.com (ahmet temiz) Date: Mon, 14 May 2012 14:01:22 +0300 Subject: [mapserver-users] setFilter with containing couple of ORs Message-ID: hello I was wondering how we could build setFilter expression containing couple of ORs jeoLayer.setFilter( item1 OR item2 OR item3); regards -- Ahmet Temiz Jeoloji M?h. Afet ve Acil Durum Y?netimi Ba?kanl??? Planlama ve Zarar Azaltma Dairesi Ba?kanl??? Bilgi ve CBS grubu Eski?ehir Yolu 10. km. Lodumlu / Ankara Tel : 0 312 2872680 / 1535 ________________________ Ahmet Temiz Geological Eng. Information Systems - GIS Group Disaster and Emergency Management of Presidency From woodbri at swoodbridge.com Mon May 14 06:42:02 2012 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Mon, 14 May 2012 09:42:02 -0400 Subject: [mapserver-users] wms base layers In-Reply-To: References: Message-ID: <4FB10BAA.4070407@swoodbridge.com> On 5/14/2012 5:31 AM, Rita Abreu wrote: > Hi, > > I?m a new user of mapserver. > Can anyone recomend me base layers for my project? > Can somenoe tell me how to add google layers or osm layers? If you are looking for free gis data start with google "free gis data" I think you may want to look at OpenLayers where you can create an application that uses Google maps or OSM services as a base map and then all you to overlay other data layers on top of that. Look at http://openlayers.com/ If you really are asking how to pull OSM or Google into mapserver, instead of OpenLayers, then you will need to extract the OSM data into data layers and create a mapfile to render it in mapserver OR find an existing WMS service that you can pull OSM images into mapserver. You can not do this with Google it violates their TOS. -Steve W From dmorissette at mapgears.com Mon May 14 07:25:19 2012 From: dmorissette at mapgears.com (Daniel Morissette) Date: Mon, 14 May 2012 10:25:19 -0400 Subject: [mapserver-users] wms base layers In-Reply-To: <4FB10BAA.4070407@swoodbridge.com> References: <4FB10BAA.4070407@swoodbridge.com> Message-ID: <4FB115CF.8090407@mapgears.com> On 12-05-14 9:42 AM, Stephen Woodbridge wrote: > On 5/14/2012 5:31 AM, Rita Abreu wrote: >> Hi, >> >> I?m a new user of mapserver. >> Can anyone recomend me base layers for my project? >> Can somenoe tell me how to add google layers or osm layers? > [...] > > If you really are asking how to pull OSM or Google into mapserver, > instead of OpenLayers, then you will need to extract the OSM data into > data layers and create a mapfile to render it in mapserver OR find an > existing WMS service that you can pull OSM images into mapserver. You > can not do this with Google it violates their TOS. > For a step by step recipe to load and render OSM with MapServer, see: https://github.com/mapserver/mapserver/wiki/RenderingOsmDataUbuntu -- Daniel Morissette http://www.mapgears.com/ Provider of Professional MapServer Support since 2000 From krassovskimb at ornl.gov Mon May 14 07:57:02 2012 From: krassovskimb at ornl.gov (mkrassovski) Date: Mon, 14 May 2012 07:57:02 -0700 (PDT) Subject: [mapserver-users] Re: Mapserver + mapcache + Google Map In-Reply-To: References: <1336420126718-4958632.post@n6.nabble.com> <1336650337076-4965470.post@n6.nabble.com> <1336651573401-4965517.post@n6.nabble.com> <1336739545957-4968271.post@n6.nabble.com> Message-ID: <1337007422681-4974470.post@n6.nabble.com> Thomas, yes, that was an SE Linux issue. I fixed that, thank you! The last problem that I have now is misalignment. I have no idea why it does it and how to fix. Please, take a look: http://cdiac3.ornl.gov/waves/img/wms_4326_1.png Misha -- View this message in context: http://osgeo-org.1560.n6.nabble.com/Mapserver-mapcache-Google-Map-tp4958439p4974470.html Sent from the Mapserver - User mailing list archive at Nabble.com. From thomas.bonfort at gmail.com Mon May 14 08:06:14 2012 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Mon, 14 May 2012 17:06:14 +0200 Subject: [mapserver-users] Re: Mapserver + mapcache + Google Map In-Reply-To: <1337007422681-4974470.post@n6.nabble.com> References: <1336420126718-4958632.post@n6.nabble.com> <1336650337076-4965470.post@n6.nabble.com> <1336651573401-4965517.post@n6.nabble.com> <1336739545957-4968271.post@n6.nabble.com> <1337007422681-4974470.post@n6.nabble.com> Message-ID: >From the requests you first posted, your client is requesting tiles with a negative y, which is invalid. I'd investigate into that as there's no way you're going to get any coherent result while these kind of requests are coming in ( http://cdiac5.ornl.gov/cgi-bin/mapcache/gmaps/test at g/2/-1/2.png ) -- thomas On Mon, May 14, 2012 at 4:57 PM, mkrassovski wrote: > Thomas, > yes, that was an SE Linux issue. I fixed that, thank you! > The last problem that I have now is misalignment. I have no idea why it does > it and how to fix. > Please, take a look: http://cdiac3.ornl.gov/waves/img/wms_4326_1.png > > Misha > > -- > View this message in context: http://osgeo-org.1560.n6.nabble.com/Mapserver-mapcache-Google-Map-tp4958439p4974470.html > Sent from the Mapserver - User mailing list archive at Nabble.com. > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From Steve.Lime at state.mn.us Mon May 14 08:40:09 2012 From: Steve.Lime at state.mn.us (Lime, Steve D (DNR)) Date: Mon, 14 May 2012 15:40:09 +0000 Subject: [mapserver-users] how to embed images in a map In-Reply-To: <1336787694.5182.YahooMailClassic@web160702.mail.bf1.yahoo.com> References: <1336787694.5182.YahooMailClassic@web160702.mail.bf1.yahoo.com> Message-ID: It the logo/graphs exist as images then you can just use symbols as annotation. How you'd do that depends on version. In 5.6 and earlier you'd use an annotation layer: LAYER ... TYPE ANNOTATION CLASS TEXT ' ' # blank text STYLE SYMBOL 'some image file' END END In 6.0+ the annotation layer above should still work but you can use LABEL styles to do the same thing when you do the polygon fills which requires one pass through the data and is more efficient: LAYER ... TYPE POLYGON CLASS TEXT ' ' # blank text STYLE ... # fill the polygon END LABEL ... STYLE SYMBOL 'some image file' END END Steve From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of pcreso at pcreso.com Sent: Friday, May 11, 2012 8:55 PM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] how to embed images in a map Hi, I'm trying to embed graphics in a map. A map with polygons, & each polygon has a logo or small graph to include at a specified location (point) in the output map. Can anyone suggest the best way to do this? The map is a WMS output layer, & ideally it should be generated as a layer in a mapfile? I guess a CGI could use image magic to do this on top of the map image, but I'm looking for a way Mapserver could do this directly. Thanks, Brent Wood -------------- next part -------------- An HTML attachment was scrubbed... URL: From sam at planyukon.ca Mon May 14 08:40:25 2012 From: sam at planyukon.ca (sam at planyukon.ca) Date: 14 May 2012 08:40:25 -0700 Subject: [mapserver-users] Re: mapserver-users Digest, Vol 52, Issue 35 Message-ID: <20120514154025.20145.qmail@polarhosting.ca> Sorry I missed you, but I am on parental leave until May 14th. Urgent YLUPC business can be sent to the YLUPC director at ron at planyukon.ca. From pcreso at pcreso.com Mon May 14 11:20:36 2012 From: pcreso at pcreso.com (pcreso at pcreso.com) Date: Mon, 14 May 2012 11:20:36 -0700 (PDT) Subject: [mapserver-users] wms base layers In-Reply-To: <4FB115CF.8090407@mapgears.com> Message-ID: <1337019636.24713.YahooMailClassic@web160704.mail.bf1.yahoo.com> For a simple example of OSM data, running on OpenSuse rather than Ubuntu, with the Oceania OSM data, try http://121.73.69.119/osm_nz.html Might help you decide if this is worth following up for your purposes. Cheers Brent Wood --- On Tue, 5/15/12, Daniel Morissette wrote: From: Daniel Morissette Subject: Re: [mapserver-users] wms base layers To: mapserver-users at lists.osgeo.org Date: Tuesday, May 15, 2012, 2:25 AM On 12-05-14 9:42 AM, Stephen Woodbridge wrote: > On 5/14/2012 5:31 AM, Rita Abreu wrote: >> Hi, >> >> I?m a new user of mapserver. >> Can anyone recomend me base layers for my project? >> Can somenoe tell me how to add google layers or osm layers? > [...] > > If you really are asking how to pull OSM or Google into mapserver, > instead of OpenLayers, then you will need to extract the OSM data into > data layers and create a mapfile to render it in mapserver OR find an > existing WMS service that you can pull OSM images into mapserver. You > can not do this with Google it violates their TOS. > For a step by step recipe to load and render OSM with MapServer, see: https://github.com/mapserver/mapserver/wiki/RenderingOsmDataUbuntu -- Daniel Morissette http://www.mapgears.com/ Provider of Professional MapServer Support since 2000 _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From marcandre_trottier at hotmail.com Mon May 14 11:22:14 2012 From: marcandre_trottier at hotmail.com (=?ISO-8859-1?Q?Marc=2DAndr=E9_Trottier?=) Date: Mon, 14 May 2012 14:22:14 -0400 Subject: [mapserver-users] Class group and getfeatureinfo request Message-ID: Is there a way to consider the "CLASS GROUP" into a WMS getfeatureinfo request ? -------------- next part -------------- An HTML attachment was scrubbed... URL: From dmorissette at mapgears.com Mon May 14 13:39:45 2012 From: dmorissette at mapgears.com (Daniel Morissette) Date: Mon, 14 May 2012 16:39:45 -0400 Subject: [mapserver-users] Class group and getfeatureinfo request In-Reply-To: References: Message-ID: <4FB16D91.3080809@mapgears.com> On 12-05-14 2:22 PM, Marc-Andr? Trottier wrote: > Is there a way to consider the "CLASS GROUP" into a WMS getfeatureinfo > request ? > CLASS GROUPs are mapped to named WMS STYLES by MapServer: http://mapserver.org/ogc/sld.html#named-styles-support I didn't test this, but since GetFeatureInfo is really a complete GetMap plus a few extra parameters specific to GetFeatureInfo, it should be possible to set the GetMap STYLES=... parameter in the GetFeatureInfo URL and have it select only the right group of classes for the layer(s) for which a style is specified. (MapServer also has a STYLE block inside CLASSes, but don't let that confuse you. The WMS STYLEs are really mapped to CLASS GROUPs.) -- Daniel Morissette http://www.mapgears.com/ Provider of Professional MapServer Support since 2000 From anajera at bicimapas.com.mx Mon May 14 18:34:49 2012 From: anajera at bicimapas.com.mx (Alberto Najera) Date: Mon, 14 May 2012 20:34:49 -0500 Subject: [mapserver-users] Mapfile verification tool Message-ID: <000c01cd323a$eb609600$c221c200$@com.mx> Hello all, Is there a tool available to check the mapfile syntax? I am working with a file that is getting quite large and it is easy to, for example, miss or add an "END". Thanks Alberto Najera From discover.ab at gmail.com Tue May 15 03:44:28 2012 From: discover.ab at gmail.com (abhishek bansal) Date: Tue, 15 May 2012 16:14:28 +0530 Subject: [mapserver-users] Some Doubts in WMS Time Documentation Message-ID: hi all, I am trying to setup a WMS MAP Server for time based query of raster images. In the given last example (PostGIS One) of this wms time documentation I had some doubts: 1.) No database table is specified in the raster layer configuration. Does that mean my table name would be equal to layer name ? 2.) Why is there no database connection configuration? 3.) If I am using PostGIS2.0 do I still need to provide "Tile Index" if yes how ? please help -- Thanks & Regards, Abhishek Bansal http://abhishekbansal.miyuri.com Jaypee Institute of Information Technology, Noida -------------- next part -------------- An HTML attachment was scrubbed... URL: From pcorti at gmail.com Tue May 15 05:48:55 2012 From: pcorti at gmail.com (Paolo Corti) Date: Tue, 15 May 2012 14:48:55 +0200 Subject: [mapserver-users] Some Doubts in WMS Time Documentation In-Reply-To: References: Message-ID: Hi > 1.) No database table is specified in the raster layer configuration. Does > that mean my table name would be equal to layer name ? no, the tiles are fetched from the query in the DATA attribute of the time_idx layer: DATA "the_geom from nexrad_n0r_tindex" where the_geom is the geometry column, and nexrad_n0r_tindex is the table name. > 2.) Why is there no database connection configuration? it is in the CONNECTION and CONNETIONTYPE attributes of the time_idx layer. > 3.) If I am using PostGIS2.0 do I still need to provide "Tile Index" if yes > how ? Never tried with 2.0, but nothing should change p -- Paolo Corti Geospatial software developer web: http://www.paolocorti.net twitter: @capooti skype: capooti From discover.ab at gmail.com Tue May 15 06:41:58 2012 From: discover.ab at gmail.com (abhishek bansal) Date: Tue, 15 May 2012 19:11:58 +0530 Subject: [mapserver-users] Some Doubts in WMS Time Documentation In-Reply-To: References: Message-ID: Thank You very much for your reply.. I have read that document for like thousand times but could never understand that. I am still confused because the layer "time_idx" is polygon type(which is vector type) layer, So how I will be able to render raster based upon time. I have my rasters (with tiling) stored in PostGIS 2.0 database. Thank You On Tue, May 15, 2012 at 6:18 PM, Paolo Corti wrote: > Hi > > > 1.) No database table is specified in the raster layer configuration. > Does > > that mean my table name would be equal to layer name ? > > no, the tiles are fetched from the query in the DATA attribute of the > time_idx layer: > > DATA "the_geom from nexrad_n0r_tindex" > > where the_geom is the geometry column, and nexrad_n0r_tindex is the table > name. > > > 2.) Why is there no database connection configuration? > > it is in the CONNECTION and CONNETIONTYPE attributes of the time_idx > layer. > > > 3.) If I am using PostGIS2.0 do I still need to provide "Tile Index" if > yes > > how ? > > Never tried with 2.0, but nothing should change > p > > -- > Paolo Corti > Geospatial software developer > web: http://www.paolocorti.net > twitter: @capooti > skype: capooti > -- Thanks & Regards, Abhishek Bansal http://abhishekbansal.miyuri.com Jaypee Institute of Information Technology, Noida -------------- next part -------------- An HTML attachment was scrubbed... URL: From Steve.Lime at state.mn.us Tue May 15 06:56:06 2012 From: Steve.Lime at state.mn.us (Lime, Steve D (DNR)) Date: Tue, 15 May 2012 13:56:06 +0000 Subject: [mapserver-users] Mapfile verification tool In-Reply-To: <000c01cd323a$eb609600$c221c200$@com.mx> References: <000c01cd323a$eb609600$c221c200$@com.mx> Message-ID: Other than using shp2img or one of the other command-line executables I'm afraid there isn't a validator. Steve -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Alberto Najera Sent: Monday, May 14, 2012 8:35 PM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] Mapfile verification tool Hello all, Is there a tool available to check the mapfile syntax? I am working with a file that is getting quite large and it is easy to, for example, miss or add an "END". Thanks Alberto Najera _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From ivan.mincik at gmail.com Tue May 15 08:02:34 2012 From: ivan.mincik at gmail.com (Ivan Mincik) Date: Tue, 15 May 2012 17:02:34 +0200 Subject: [mapserver-users] Mapfile verification tool In-Reply-To: References: <000c01cd323a$eb609600$c221c200$@com.mx> Message-ID: <4FB2700A.5020307@gmail.com> On 05/15/2012 03:56 PM, Lime, Steve D (DNR) wrote: > Other than using shp2img or one of the other command-line executables I'm afraid there isn't a validator. > What about writing some trivial mapscript script which will loop over all layers in mapfile. If some syntax error would be found some exception will be raised ? -- Ivan Mincik From woodbri at swoodbridge.com Tue May 15 08:18:41 2012 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Tue, 15 May 2012 11:18:41 -0400 Subject: [mapserver-users] Mapfile verification tool In-Reply-To: <4FB2700A.5020307@gmail.com> References: <000c01cd323a$eb609600$c221c200$@com.mx> <4FB2700A.5020307@gmail.com> Message-ID: <4FB273D1.3090508@swoodbridge.com> On 5/15/2012 11:02 AM, Ivan Mincik wrote: > On 05/15/2012 03:56 PM, Lime, Steve D (DNR) wrote: >> Other than using shp2img or one of the other command-line executables I'm afraid there isn't a validator. >> > > What about writing some trivial mapscript script which will loop over > all layers in mapfile. If some syntax error would be found some > exception will be raised ? > > Ivan, I don't think this will work because the mapfile is read all at once and parsed into an internal data structure. You can't access it in mapscript until the parser has read it and the parser will error out on any errors. I think you would need to modify the parser and add some kind of error recovery to continue parsing the rest of the file to report additional errors. Currently there is no attempt to recover from an error because we assume that the mapfile should be valid in the production environment. For development/debugging purposes, you would have to add the error recovery code. -Steve W From ivan.mincik at gmail.com Tue May 15 08:23:38 2012 From: ivan.mincik at gmail.com (Ivan Mincik) Date: Tue, 15 May 2012 17:23:38 +0200 Subject: [mapserver-users] Mapfile verification tool In-Reply-To: <4FB273D1.3090508@swoodbridge.com> References: <000c01cd323a$eb609600$c221c200$@com.mx> <4FB2700A.5020307@gmail.com> <4FB273D1.3090508@swoodbridge.com> Message-ID: <4FB274FA.5020905@gmail.com> > I don't think this will work because the mapfile is read all at once and > parsed into an internal data structure. You can't access it in mapscript > until the parser has read it and the parser will error out on any errors. Understand, but i mean only valid/invalid output from test script. If some error will raised - mapfile is invalid, with no other information where otherwise mapfile is OK. -- Ivan Mincik From ivan.mincik at gmail.com Tue May 15 08:38:39 2012 From: ivan.mincik at gmail.com (Ivan Mincik) Date: Tue, 15 May 2012 17:38:39 +0200 Subject: [mapserver-users] Mapfile verification tool In-Reply-To: <4FB273D1.3090508@swoodbridge.com> References: <000c01cd323a$eb609600$c221c200$@com.mx> <4FB2700A.5020307@gmail.com> <4FB273D1.3090508@swoodbridge.com> Message-ID: <4FB2787F.4060005@gmail.com> I mean something like this: import sys import mapscript try: m = mapscript.mapObj(sys.argv[1]) print 'VALID (%s layers found)' % m.numlayers except: print 'INVALID' I did some tests and it seems working. Even it outputs detailed parsing error message (for example: loadProjection(): Unknown identifier. Parsing error near (METADATA):(line 100)) From Steve.Lime at state.mn.us Tue May 15 08:57:41 2012 From: Steve.Lime at state.mn.us (Lime, Steve D (DNR)) Date: Tue, 15 May 2012 15:57:41 +0000 Subject: [mapserver-users] Mapfile verification tool In-Reply-To: <4FB274FA.5020905@gmail.com> References: <000c01cd323a$eb609600$c221c200$@com.mx> <4FB2700A.5020307@gmail.com> <4FB273D1.3090508@swoodbridge.com> <4FB274FA.5020905@gmail.com> Message-ID: Shp2img already provides this capability and is more portable than MapScript. I think ideally we'd develop a validator that spits out all errors but that's probably not possible either since many common error states (like a missing END or quote) will trigger a whole bunch of false positives. Best to take it an error at a time for most cases. This might be useful more for between version migration where the mapfile is structurally sound but keywords have changed. We could write a dumber version of shp2img that only tries to load the mapfile and report an error but I'm not sure it's worth the effort. Steve -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Ivan Mincik Sent: Tuesday, May 15, 2012 10:24 AM To: mapserver-users Subject: Re: [mapserver-users] Mapfile verification tool > I don't think this will work because the mapfile is read all at once > and parsed into an internal data structure. You can't access it in > mapscript until the parser has read it and the parser will error out on any errors. Understand, but i mean only valid/invalid output from test script. If some error will raised - mapfile is invalid, with no other information where otherwise mapfile is OK. -- Ivan Mincik _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From Bob.Basques at ci.stpaul.mn.us Tue May 15 09:13:33 2012 From: Bob.Basques at ci.stpaul.mn.us (Bob Basques) Date: Tue, 15 May 2012 11:13:33 -0500 Subject: [mapserver-users] Mapfile verification tool In-Reply-To: References: <000c01cd323a$eb609600$c221c200$@com.mx> <4FB2700A.5020307@gmail.com> <4FB273D1.3090508@swoodbridge.com> <4FB274FA.5020905@gmail.com> Message-ID: <4FB23A5D020000A800036800@jeckle> All, I've approached this topic over the years by having a nice Syntax editor available for MapFiles. Both VI and UltraEdit have proven to have good syntax templates for highlighting of edited MAPFILEs. I know this is exactly what was being asked about. But upon further thought, I wonder if a VI script couldn't be put together to do some of this checking, at least in pairing of quotes and END statements. Just a thought. bobb >>> "Lime, Steve D (DNR)" wrote: Shp2img already provides this capability and is more portable than MapScript. I think ideally we'd develop a validator that spits out all errors but that's probably not possible either since many common error states (like a missing END or quote) will trigger a whole bunch of false positives. Best to take it an error at a time for most cases. This might be useful more for between version migration where the mapfile is structurally sound but keywords have changed. We could write a dumber version of shp2img that only tries to load the mapfile and report an error but I'm not sure it's worth the effort. Steve -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Ivan Mincik Sent: Tuesday, May 15, 2012 10:24 AM To: mapserver-users Subject: Re: [mapserver-users] Mapfile verification tool > I don't think this will work because the mapfile is read all at once > and parsed into an internal data structure. You can't access it in > mapscript until the parser has read it and the parser will error out on any errors. Understand, but i mean only valid/invalid output from test script. If some error will raised - mapfile is invalid, with no other information where otherwise mapfile is OK. -- Ivan Mincik _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From Bob.Basques at ci.stpaul.mn.us Tue May 15 09:15:26 2012 From: Bob.Basques at ci.stpaul.mn.us (Bob Basques) Date: Tue, 15 May 2012 11:15:26 -0500 Subject: [mapserver-users] Mapfile verification tool In-Reply-To: <4FB23A5D020000A800036800@jeckle> References: <000c01cd323a$eb609600$c221c200$@com.mx> <4FB2700A.5020307@gmail.com> <4FB273D1.3090508@swoodbridge.com> <4FB274FA.5020905@gmail.com> <4FB23A5D020000A800036800@jeckle> Message-ID: <4FB23ACE020000A800036807@jeckle> Oops, sorry about the typo below, I meant to say "I know this isn't exactly . . ." bobb >>> "Bob Basques" wrote: All, I've approached this topic over the years by having a nice Syntax editor available for MapFiles. Both VI and UltraEdit have proven to have good syntax templates for highlighting of edited MAPFILEs. I know this is exactly what was being asked about. But upon further thought, I wonder if a VI script couldn't be put together to do some of this checking, at least in pairing of quotes and END statements. Just a thought. bobb >>> "Lime, Steve D (DNR)" wrote: Shp2img already provides this capability and is more portable than MapScript. I think ideally we'd develop a validator that spits out all errors but that's probably not possible either since many common error states (like a missing END or quote) will trigger a whole bunch of false positives. Best to take it an error at a time for most cases. This might be useful more for between version migration where the mapfile is structurally sound but keywords have changed. We could write a dumber version of shp2img that only tries to load the mapfile and report an error but I'm not sure it's worth the effort. Steve -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Ivan Mincik Sent: Tuesday, May 15, 2012 10:24 AM To: mapserver-users Subject: Re: [mapserver-users] Mapfile verification tool > I don't think this will work because the mapfile is read all at once > and parsed into an internal data structure. You can't access it in > mapscript until the parser has read it and the parser will error out on any errors. Understand, but i mean only valid/invalid output from test script. If some error will raised - mapfile is invalid, with no other information where otherwise mapfile is OK. -- Ivan Mincik _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From pcorti at gmail.com Tue May 15 09:21:24 2012 From: pcorti at gmail.com (Paolo Corti) Date: Tue, 15 May 2012 18:21:24 +0200 Subject: [mapserver-users] Some Doubts in WMS Time Documentation In-Reply-To: References: Message-ID: On Tue, May 15, 2012 at 3:41 PM, abhishek bansal wrote: > Thank You very much for your reply.. I have read that document for like > thousand times but could never understand that. I am still confused because > the layer "time_idx" is polygon type(which is vector type) layer, So how I > will be able to render raster based upon time. > I have my rasters (with tiling) stored in PostGIS 2.0 database. > I think that the document you are referring is very clear, in any case I try to give you quick general instructions to put you on the way. . Your scenario ------------------- * you have one raster for each different time * you want to create a WMS that can parse the TIME parameter for displaying the correct raster/rasters for that time What you need to do ------------------------------ * you need to have a tile index: this is a polygon vector dataset, it could be for example a shapefile or a PostGIS table * if you are using a shapefile (I suggest you to keep it simple and start with a shapefile), the gdaltindex utility [1] is very handy * the shapefile must contain one polygon with each raster dataset extent. You also need a text field (filepath in the example), with the physical path of that raster and a date field (datetime in the example), with the date of that raster * if you created the shapefile with gdaltindex, you will need to add yourself the values for the datetime field (most likely with an OGR script) If you follow this instruction it should work for you p [1] http://www.gdal.org/gdaltindex.html -- Paolo Corti Geospatial software developer web: http://www.paolocorti.net twitter: @capooti skype: capooti From jhevenor at rogers.com Tue May 15 11:37:57 2012 From: jhevenor at rogers.com (Josh Hevenor) Date: Tue, 15 May 2012 14:37:57 -0400 Subject: [mapserver-users] Mapfile verification tool In-Reply-To: References: <000c01cd323a$eb609600$c221c200$@com.mx> <4FB2700A.5020307@gmail.com> <4FB273D1.3090508@swoodbridge.com> <4FB274FA.5020905@gmail.com> Message-ID: <4FB2A285.5050700@rogers.com> What's the state of the XML mapfile? Could one create their mapfile in an XML editor to generate a syntactically valid mapfile (through xslt) then use shp2img to verify data connections? On 5/15/2012 11:57 AM, Lime, Steve D (DNR) wrote: > Shp2img already provides this capability and is more portable than MapScript. I think ideally we'd develop > a validator that spits out all errors but that's probably not possible either since many common error states > (like a missing END or quote) will trigger a whole bunch of false positives. Best to take it an error at a > time for most cases. This might be useful more for between version migration where the mapfile is structurally > sound but keywords have changed. > > We could write a dumber version of shp2img that only tries to load the mapfile and report an error but I'm not > sure it's worth the effort. > > Steve > > -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Ivan Mincik > Sent: Tuesday, May 15, 2012 10:24 AM > To: mapserver-users > Subject: Re: [mapserver-users] Mapfile verification tool > >> I don't think this will work because the mapfile is read all at once >> and parsed into an internal data structure. You can't access it in >> mapscript until the parser has read it and the parser will error out on any errors. > Understand, but i mean only valid/invalid output from test script. If some error will raised - mapfile is invalid, with no other information where otherwise mapfile is OK. > > > -- > Ivan Mincik > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > No virus found in this incoming message. > Checked by AVG - www.avg.com > Version: 8.5.455 / Virus Database: 271.1.1/4999 - Release Date: 05/14/12 18:05:00 > -------------- next part -------------- An HTML attachment was scrubbed... URL: From anajera at bicimapas.com.mx Tue May 15 16:57:29 2012 From: anajera at bicimapas.com.mx (Alberto Najera) Date: Tue, 15 May 2012 18:57:29 -0500 Subject: [mapserver-users] Mapfile verification tool In-Reply-To: <4FB23A5D020000A800036800@jeckle> References: <000c01cd323a$eb609600$c221c200$@com.mx> <4FB2700A.5020307@gmail.com> <4FB273D1.3090508@swoodbridge.com> <4FB274FA.5020905@gmail.com> <4FB23A5D020000A800036800@jeckle> Message-ID: <00a301cd32f6$7edcb6f0$7c9624d0$@com.mx> Well, we spend a few hours debugging a 900 plus lines mapfile. We missed a few ends, had a few extra of them plus some other errors like typos in the source file calls. So a tool like this would be extremely useful. I use UltraEdit version 14.00a and have was not aware of such a template. How can it be activated? Alberto Najera ? De: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] En nombre de Bob Basques Enviado el: martes, 15 de mayo de 2012 11:14 a.m. Para: ivan.mincik at gmail.com; mapserver-users; Steve D (DNR) Lime Asunto: RE: [mapserver-users] Mapfile verification tool All, I've approached this topic over the years by having a nice Syntax editor available for MapFiles. ?Both VI and UltraEdit have proven to have good syntax templates for highlighting of edited ?MAPFILEs. I know this is exactly what was being asked about. ?But upon further thought, I wonder if a VI script couldn't be put together to do some of this checking, at least in pairing of quotes and END statements. Just a thought. bobb From ian.walberg at airborne.aero Tue May 15 21:09:05 2012 From: ian.walberg at airborne.aero (Ian Walberg) Date: Wed, 16 May 2012 00:09:05 -0400 Subject: [mapserver-users] 16 bit (rgb 565) output format Message-ID: Is it possible to output in old fashioned true colour 16 bit rgb 565 format? I have been looking through the output format settings and cannot see anything. If not does anyone know of a util to convert from 24 bit to 16 bit. Thanks Ian From beyhan at deprem.gov.tr Wed May 16 01:41:39 2012 From: beyhan at deprem.gov.tr (Murat Beyhan) Date: Wed, 16 May 2012 11:41:39 +0300 Subject: [mapserver-users] convert projection from UTM to WGS84 using proj Message-ID: <1337157699.11803.23.camel@localhost> Dear friends, I'm sorry, I'm not good at GIS applications but I wondering about conversion between various projection or datum of the data files. data.shp data.shx data.dbf and data.prj files are available. shpdump data.shp gives following Shape:0 (ArcZ) nVertices=4, nParts=1 Bounds:( 513275.786, 4006041.761, 0, 0) to ( 513345.812, 4006078.182, 0, 0) ( 513275.786, 4006078.182, 0, 0) Ring ( 513301.130, 4006064.906, 0, 0) ( 513321.636, 4006053.249, 0, 0) ( 513345.812, 4006041.761, 0, 0) ... data.prj as follows PROJCS["(UTM)Universal Transvers Merkator 3?",GEOGCS["EUROPEAN 1950",DATUM["European_Datum_1950",SPHEROID["International",6378388.00000000,297.00000000], TOWGS84[-87.00000000,-98.00000000,-121.00000000,0.00000000,0.00000000,0.00000000,0.00000000]], PRIMEM["Greenwich",0.00000000],UNIT["Degree",0.01745329],AUTHORITY["EPSG","4230"]],PROJECTION["TRANSVERSE_MERCATOR"], PARAMETER["SCALE_FACTOR",1.00000000],PARAMETER["CENTRAL_MERIDIAN",36.00000000],PARAMETER["LATITUDE_OF_ORIGIN",0.00000000], PARAMETER["FALSE_EASTING",500000.00000000],PARAMETER["FALSE_NORTHING",0.00000000],UNIT["meter",1.00000000]] using these data How to convert a file which is created using european_datum_1950 to WGS84 (World Geodetic System 1984) or where I have to start to understand these method of applications using PROJ4. Thanks muratB -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. From jorn at spacetec.no Wed May 16 02:21:22 2012 From: jorn at spacetec.no (=?iso-8859-1?Q?J=F8rn_Vegard_R=F8snes?=) Date: Wed, 16 May 2012 11:21:22 +0200 (CEST) Subject: [mapserver-users] convert projection from UTM to WGS84 using proj In-Reply-To: <1337157699.11803.23.camel@localhost> Message-ID: <523334fd-13e4-41bc-8c90-7a3c2ee9c51d@zcs> Hi, maybe something like this: ogr2ogr -s_srs epsg:4230 -t_srs epsg:4326 http://www.gdal.org/ogr2ogr.html kind regards J?rn-Vegard R?snes ----- Original Message ----- > From: "Murat Beyhan" > To: "mapserver-users" > Sent: Wednesday, 16 May, 2012 10:41:39 AM > Subject: [mapserver-users] convert projection from UTM to WGS84 using proj > > Dear friends, > I'm sorry, I'm not good at GIS applications but I wondering about > conversion between various projection or datum of the data files. > > data.shp data.shx data.dbf and data.prj files are available. > > shpdump data.shp gives following > > Shape:0 (ArcZ) nVertices=4, nParts=1 > Bounds:( 513275.786, 4006041.761, 0, 0) > to ( 513345.812, 4006078.182, 0, 0) > ( 513275.786, 4006078.182, 0, 0) Ring > ( 513301.130, 4006064.906, 0, 0) > ( 513321.636, 4006053.249, 0, 0) > ( 513345.812, 4006041.761, 0, 0) > ... > > > > > > data.prj as follows > > PROJCS["(UTM)Universal Transvers Merkator 3?",GEOGCS["EUROPEAN > 1950",DATUM["European_Datum_1950",SPHEROID["International",6378388.00000000,297.00000000], > TOWGS84[-87.00000000,-98.00000000,-121.00000000,0.00000000,0.00000000,0.00000000,0.00000000]], > PRIMEM["Greenwich",0.00000000],UNIT["Degree",0.01745329],AUTHORITY["EPSG","4230"]],PROJECTION["TRANSVERSE_MERCATOR"], > PARAMETER["SCALE_FACTOR",1.00000000],PARAMETER["CENTRAL_MERIDIAN",36.00000000],PARAMETER["LATITUDE_OF_ORIGIN",0.00000000], > PARAMETER["FALSE_EASTING",500000.00000000],PARAMETER["FALSE_NORTHING",0.00000000],UNIT["meter",1.00000000]] > > > using these data How to convert a file which is created using > european_datum_1950 to WGS84 (World Geodetic System 1984) > or where I have to start to understand these method of applications > using PROJ4. > Thanks > muratB > > > -- > This message has been scanned for viruses and > dangerous content by MailScanner, and is > believed to be clean. > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > CONFIDENTIALITY This e-mail and any attachment contain KONGSBERG information which may be proprietary, confidential or subject to export regulations, and is only meant for the intended recipient(s). Any disclosure, copying, distribution or use is prohibited, if not otherwise explicitly agreed with KONGSBERG. If received in error, please delete it immediately from your system and notify the sender properly. From MarkVolz at co.lyon.mn.us Wed May 16 09:09:25 2012 From: MarkVolz at co.lyon.mn.us (Mark Volz) Date: Wed, 16 May 2012 16:09:25 +0000 Subject: [mapserver-users] mapcache issues with ArcGIS Server. - WMS not working, WMST tiles not lining up, blue tint, projection question Message-ID: <36CA828A36E29F45B7CF0A1766E5DFA311B17C@swmail01.r8nssis.local> Hello, I am trying to use ArcGIS as a client to connect to mapcache. I am having the following issues. 1) WMS is not working ArcGIS, removes the service portion of the request. QGIS (works) GET /mapcache?SERVICE=WMS&VERSION=1.1.1... ArcGIS (doesn't work) GET /mapcahce?VERSION=1.1.1... 2) The WMST tiles are not at the correct scale in ArcGIS. My guess is ArcGIS is assuming the wrong DPI. 3) WMS appears to be in a blue tint. This is not an issue in QGIS. Could there be an image type issue? How can I force mapcache to only advertise jpeg for this tileset? Even still, I don't know why png wouldn't work. 4) Can I force mapcache to only advertise certain projections on a per tileset basis? Thank You Mark Volz GIS Specialist -------------- next part -------------- An HTML attachment was scrubbed... URL: From mtrp36 at hotmail.com Wed May 16 10:07:02 2012 From: mtrp36 at hotmail.com (Kurt) Date: Wed, 16 May 2012 17:07:02 +0000 Subject: [mapserver-users] (no subject) Message-ID: Single mom makes real money working at home online http://ttchimay.be/httpwagregerw2.php?kyqCIDID=689 Wed, 16 May 2012 18:07:02 ______________ "That aint the idea." (c) tamar albern -------------- next part -------------- An HTML attachment was scrubbed... URL: From thomas.bonfort at gmail.com Wed May 16 10:50:28 2012 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Wed, 16 May 2012 19:50:28 +0200 Subject: [mapserver-users] mapcache issues with ArcGIS Server. - WMS not working, WMST tiles not lining up, blue tint, projection question In-Reply-To: <36CA828A36E29F45B7CF0A1766E5DFA311B17C@swmail01.r8nssis.local> References: <36CA828A36E29F45B7CF0A1766E5DFA311B17C@swmail01.r8nssis.local> Message-ID: Hi, On Wed, May 16, 2012 at 6:09 PM, Mark Volz wrote: > Hello, > > I am trying to use ArcGIS as a client to connect to mapcache.? I am having > the following issues. > > > WMS is not working > > ArcGIS, removes the service portion of the request. > QGIS (works) > GET /mapcache?SERVICE=WMS&VERSION=1.1.1? > ArcGIS (doesn?t work) > GET /mapcahce?VERSION=1.1.1? that's a bug in mapcache, it turns out service= is optional for wms 1.1.1 . I've just pushed a fix to the repository. > > The WMST tiles are not at the correct scale in ArcGIS.? My guess is ArcGIS > is assuming the wrong DPI. Can't help you here. WMTS is so little used that each vendor probably has more or less tolerance on the conformance of the capabilities doc. > WMS appears to be in a blue tint.? This is not an issue in QGIS.? Could > there be an image type issue? how can you tell that, you first stated WMS wasn't working ? If I remember correctly, a blue tint on png was a display bug IE had on some png types back in the glorious days of ie6... > How can I force mapcache to only advertise > jpeg for this tileset?? Even still, I don?t know why png wouldn?t work. you can't, formats are defined at the server level, not the layer level in wms. Mapcache however ignore the FORMAT= wms parameter, and returns the image format that was configured in your mapcache.xml (This is by design, the server maintainer is more knowledgeable than the requester as to which format is more optimal for a given layer) > Can I force mapcache to only advertise certain projections on a per tileset > basis? This is another wms limitation, the root layer must contain the configured projections of all its child layers. The child layers are however advertised only for the SRS(s) they are individually configured for. -- thomas > > > > Thank You > > > > > > Mark Volz > GIS Specialist > > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From punk.kish at gmail.com Thu May 17 07:46:13 2012 From: punk.kish at gmail.com (Puneet Kishor) Date: Thu, 17 May 2012 09:46:13 -0500 Subject: [mapserver-users] variable substitution Message-ID: <805B6D89-86F6-410A-8839-AF086EDED96A@gmail.com> So, http://mapserver.org/mapfile/variable_sub.html details how I can do variable substitution using either cookies or CGI params. My problem is slightly different, and I am hoping one of you wizards must have solved it already so you could help. I have mapfiles on my development machine with one set of path names. These mapfiles, along with the rest of the application, are pushed to a git repo, and then pulled down to the production server where, unfortunately, the path names are different. Short of maintaining two sets of mapfiles, how can I do a variable substitution in the path name so everything works. -- Puneet Kishor From Bob.Basques at ci.stpaul.mn.us Thu May 17 07:58:43 2012 From: Bob.Basques at ci.stpaul.mn.us (Bob Basques) Date: Thu, 17 May 2012 09:58:43 -0500 Subject: [mapserver-users] variable substitution In-Reply-To: <805B6D89-86F6-410A-8839-AF086EDED96A@gmail.com> References: <805B6D89-86F6-410A-8839-AF086EDED96A@gmail.com> Message-ID: <4FB4CBD3020000A800036969@jeckle> Oh man, easy one . . . Use an INCLUDE for the path in each site with their respective paths in the INCLUDE file for each site. You work the same in both work spaces, but the path differences are handled in the INCLUDEs. You still need to manage the pathing differences separately however. bobb >>> Puneet Kishor wrote: So, http://mapserver.org/mapfile/variable_sub.html details how I can do variable substitution using either cookies or CGI params. My problem is slightly different, and I am hoping one of you wizards must have solved it already so you could help. I have mapfiles on my development machine with one set of path names. These mapfiles, along with the rest of the application, are pushed to a git repo, and then pulled down to the production server where, unfortunately, the path names are different. Short of maintaining two sets of mapfiles, how can I do a variable substitution in the path name so everything works. -- Puneet Kishor_______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From thomas.bonfort at gmail.com Thu May 17 08:00:25 2012 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Thu, 17 May 2012 17:00:25 +0200 Subject: [mapserver-users] variable substitution In-Reply-To: <805B6D89-86F6-410A-8839-AF086EDED96A@gmail.com> References: <805B6D89-86F6-410A-8839-AF086EDED96A@gmail.com> Message-ID: Either: - use relative paths - INCLUDE a mapfile snippet that contains only your SHAPEPATH - Use runtime substitutions, eg: DATA "%basedir%/rasters/foo.tif" (not recommended, unless you carefully validate the %basedir% substitution) - use sed when deploying: DATA "%%BASEDIR%%/rasters/foo.tif" then sed -i 's#%%BASEDIR%%#/path/to/base#' mapfile.map there are probably other solutions to... -- thomas On Thu, May 17, 2012 at 4:46 PM, Puneet Kishor wrote: > So, http://mapserver.org/mapfile/variable_sub.html details how I can do variable substitution using either cookies or CGI params. My problem is slightly different, and I am hoping one of you wizards must have solved it already so you could help. > > I have mapfiles on my development machine with one set of path names. These mapfiles, along with the rest of the application, are pushed to a git repo, and then pulled down to the production server where, unfortunately, the path names are different. Short of maintaining two sets of mapfiles, how can I do a variable substitution in the path name so everything works. > > > > -- > Puneet Kishor_______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From beyhan at deprem.gov.tr Thu May 17 07:56:26 2012 From: beyhan at deprem.gov.tr (Murat Beyhan) Date: Thu, 17 May 2012 17:56:26 +0300 Subject: [mapserver-users] convert projection from UTM to WGS84 using proj In-Reply-To: <523334fd-13e4-41bc-8c90-7a3c2ee9c51d@zcs> References: <523334fd-13e4-41bc-8c90-7a3c2ee9c51d@zcs> Message-ID: <1337266586.22696.4.camel@localhost> Dear Jorn Vegard, thanks for this help I have done it and I obtained DD WGS84 shape file but problem the data which I study on it goes 3 degree east of the actual places. I mean 3 degree shifted on the longitude. So how can I ignore this problem. here is command: ogr2ogr -s_srs "+proj=utm +datum=European_Datum_1950 +epsg:4230 +zone=37" -t_srs "+proj=latlong +datum=wgs84 +epsg:4326" mahalle1.shp mahalle.shp thanks On Wed, 2012-05-16 at 11:21 +0200, J?rn Vegard R?snes wrote: > Hi, > maybe something like this: > > ogr2ogr -s_srs epsg:4230 -t_srs epsg:4326 > > http://www.gdal.org/ogr2ogr.html > > kind regards > J?rn-Vegard R?snes > > ----- Original Message ----- > > From: "Murat Beyhan" > > To: "mapserver-users" > > Sent: Wednesday, 16 May, 2012 10:41:39 AM > > Subject: [mapserver-users] convert projection from UTM to WGS84 using proj > > > > Dear friends, > > I'm sorry, I'm not good at GIS applications but I wondering about > > conversion between various projection or datum of the data files. > > > > data.shp data.shx data.dbf and data.prj files are available. > > > > shpdump data.shp gives following > > > > Shape:0 (ArcZ) nVertices=4, nParts=1 > > Bounds:( 513275.786, 4006041.761, 0, 0) > > to ( 513345.812, 4006078.182, 0, 0) > > ( 513275.786, 4006078.182, 0, 0) Ring > > ( 513301.130, 4006064.906, 0, 0) > > ( 513321.636, 4006053.249, 0, 0) > > ( 513345.812, 4006041.761, 0, 0) > > ... > > > > > > > > > > > > data.prj as follows > > > > PROJCS["(UTM)Universal Transvers Merkator 3?",GEOGCS["EUROPEAN > > 1950",DATUM["European_Datum_1950",SPHEROID["International",6378388.00000000,297.00000000], > > TOWGS84[-87.00000000,-98.00000000,-121.00000000,0.00000000,0.00000000,0.00000000,0.00000000]], > > PRIMEM["Greenwich",0.00000000],UNIT["Degree",0.01745329],AUTHORITY["EPSG","4230"]],PROJECTION["TRANSVERSE_MERCATOR"], > > PARAMETER["SCALE_FACTOR",1.00000000],PARAMETER["CENTRAL_MERIDIAN",36.00000000],PARAMETER["LATITUDE_OF_ORIGIN",0.00000000], > > PARAMETER["FALSE_EASTING",500000.00000000],PARAMETER["FALSE_NORTHING",0.00000000],UNIT["meter",1.00000000]] > > > > > > using these data How to convert a file which is created using > > european_datum_1950 to WGS84 (World Geodetic System 1984) > > or where I have to start to understand these method of applications > > using PROJ4. > > Thanks > > muratB > > > > > > -- > > This message has been scanned for viruses and > > dangerous content by MailScanner, and is > > believed to be clean. > > > > _______________________________________________ > > mapserver-users mailing list > > mapserver-users at lists.osgeo.org > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > CONFIDENTIALITY > This e-mail and any attachment contain KONGSBERG information which may be > proprietary, confidential or subject to export regulations, and is only meant > for the intended recipient(s). Any disclosure, copying, distribution or use is > prohibited, if not otherwise explicitly agreed with KONGSBERG. If received in > error, please delete it immediately from your system and notify the sender > properly. > > Murat BEYHAN Jeofizik Y.M?h. T.C. Ba?bakanl?k Afet ve Acil Durum Y?netimi Ba?kanl??? Deprem Dairesi Ba?kanl??? Eski?ehir Yolu 12. Km. Lodumlu/ANKARA Tel: 312 2872680-1556 email:beyhan at deprem.gov.tr -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. From Steve.Toutant at inspq.qc.ca Thu May 17 08:17:38 2012 From: Steve.Toutant at inspq.qc.ca (Steve.Toutant at inspq.qc.ca) Date: Thu, 17 May 2012 11:17:38 -0400 Subject: [mapserver-users] cannot build svn mapserver with php-mapscript Message-ID: Hi, I successfully built mapserver (svn version) on SLES 11 SP1, but cannot compile with php-mapscript. I get this error /usr/lib64/gcc/x86_64-suse-linux/4.3/../../../../x86_64-suse-linux/bin/ld: /usr/lib64/libxml2.a(error.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC /usr/lib64/libxml2.a: could not read symbols: Bad value collect2: ld returned 1 exit status make[1]: *** [php_mapscript.so] Erreur 1 Here is the /configure options I used, and below the mapserver config I get Someone can help? thanks steve make distclean ./configure --with-gdal=/usr/bin/gdal-config \ --with-httpd=/usr/sbin/httpd2 \ --with-wfsclient \ --with-wmsclient \ --enable-debug \ --with-curl-config=/usr/bin/curl-config \ --with-proj \ --with-png=/usr \ --with-tiff \ --with-gd=/usr \ --with-gif=/usr \ --with-jpeg=/usr \ --with-xpm=/usr \ --with-freetype=/usr/bin \ --with-threads \ --with-postgis=/usr/bin/pg_config \ --with-agg \ --with-php=/usr/include/php5 \ --with-ogr=/usr/bin/gdal-config \ --with-wfs \ --with-geos MapServer is now configured for -------------- Compiler Info ------------- C compiler: gcc -g -fPIC -Wall C++ compiler: g++ -g -fPIC -Wall Debug: -g Generic NINT: -------------- Renderer Settings --------- OpenGL support: zlib support: -DUSE_ZLIB png support: -DUSE_PNG gif support: -DUSE_GIF jpeg support: -DUSE_JPEG freetype support: -DUSE_FREETYPE iconv support: -DUSE_ICONV AGG support: internal SVG Symbol support: -DUSE_AGG_SVG_SYMBOLS Cairo (SVG,PDF) support: KML support: -------------- Support Libraries --------- Proj.4 support: -DUSE_PROJ Libxml2 support: -DUSE_LIBXML2 FriBidi support: Curl support: -DUSE_CURL -DUSE_CURLOPT_PROXYAUTH FastCGI support: Threading support: -DUSE_THREAD GEOS support: -DUSE_GEOS XML Mapfile support: XSLT support: EXSLT support: -------------- Data Format Drivers ------- PostGIS support: -DUSE_POSTGIS -DPOSTGIS_HAS_SERVER_VERSION ArcSDE support: OGR support: -DUSE_OGR GDAL support: -DUSE_GDAL Oracle Spatial support: -------------- OGC Services -------------- WMS Server: -DUSE_WMS_SVR WMS Client: -DUSE_WMS_LYR WFS Server: -DUSE_WFS_SVR WFS Client: -DUSE_WFS_LYR WCS Server: SOS Server: -------------- MapScript ----------------- PHP MapScript: yes -------------- next part -------------- An HTML attachment was scrubbed... URL: From jmckenna at gatewaygeomatics.com Thu May 17 09:44:54 2012 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Thu, 17 May 2012 13:44:54 -0300 Subject: [mapserver-users] cannot build svn mapserver with php-mapscript In-Reply-To: References: Message-ID: <4FB52B06.5050302@gatewaygeomatics.com> On 12-05-17 12:17 PM, Steve.Toutant at inspq.qc.ca wrote: > > Hi, > I successfully built mapserver (svn version) on SLES 11 SP1, but cannot > compile with php-mapscript. I get this error > /usr/lib64/gcc/x86_64-suse-linux/4.3/../../../../x86_64-suse-linux/bin/ld: > /usr/lib64/libxml2.a(error.o): relocation R_X86_64_32 against > `.rodata.str1.1' can not be used when making a shared object; recompile > with -fPIC > /usr/lib64/libxml2.a: could not read symbols: Bad value > collect2: ld returned 1 exit status > make[1]: *** [php_mapscript.so] Erreur 1 > > Here is the /configure options I used, and below the mapserver config I get > Someone can help? Hello Steve, I am not on that platform, but I am guessing there is a problem with your libxml2 binaries. I would try something like: yum install libxml2-devel (or whatever your the package command is in your environment) Hopefully others with comment with more details for you. -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ From Steve.Toutant at inspq.qc.ca Thu May 17 09:59:32 2012 From: Steve.Toutant at inspq.qc.ca (Steve.Toutant at inspq.qc.ca) Date: Thu, 17 May 2012 12:59:32 -0400 Subject: [mapserver-users] cannot build svn mapserver with php-mapscript SOLVED In-Reply-To: <4FB52B06.5050302@gatewaygeomatics.com> Message-ID: After hours of searching I found the problem a few minutes after I post on the mailing list. Thanks to these guys http://www.linuxquestions.org/questions/linux-software-2/ubuntu-amd64-x86_64-version-7-04-issues-with-compiling-php-from-source-578103/ The problem was a bad symbolic link. lrwxrwxrwx 1 root root 16 janv. 4 08:47 libxml2.so -> libxml2.so.2.7.1 lrwxrwxrwx 1 root root 16 d?c. 22 08:55 libxml2.so.2 -> libxml2.so.2.7.6 libxml2.so.2.7.1 didn't exist I defined a new symbolic link so now libxml2.so point on libxml2.so.2.7.6 I just built and tested php-mapscript and it is working Steve Jeff McKenna @lists.osgeo.org Envoy? par : mapserver-users-bounces at lists.osgeo.org 2012-05-17 12:44 A mapserver cc Objet Re: [mapserver-users] cannot build svn mapserver with php-mapscript On 12-05-17 12:17 PM, Steve.Toutant at inspq.qc.ca wrote: > > Hi, > I successfully built mapserver (svn version) on SLES 11 SP1, but cannot > compile with php-mapscript. I get this error > /usr/lib64/gcc/x86_64-suse-linux/4.3/../../../../x86_64-suse-linux/bin/ld: > /usr/lib64/libxml2.a(error.o): relocation R_X86_64_32 against > `.rodata.str1.1' can not be used when making a shared object; recompile > with -fPIC > /usr/lib64/libxml2.a: could not read symbols: Bad value > collect2: ld returned 1 exit status > make[1]: *** [php_mapscript.so] Erreur 1 > > Here is the /configure options I used, and below the mapserver config I get > Someone can help? Hello Steve, I am not on that platform, but I am guessing there is a problem with your libxml2 binaries. I would try something like: yum install libxml2-devel (or whatever your the package command is in your environment) Hopefully others with comment with more details for you. -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From punk.kish at gmail.com Thu May 17 12:05:45 2012 From: punk.kish at gmail.com (Puneet Kishor) Date: Thu, 17 May 2012 14:05:45 -0500 Subject: [mapserver-users] error accessing PostGIS 2 layer Message-ID: <6D396196-15E4-46D6-BE58-A5475CA59BB0@gmail.com> I migrated my data to PostGIS 2, and now I am getting the following error (using the same mapfile as with PostGIS 1.5.3) msPostGISLayerWhichShapes(): Query error. Error executing query: ERROR: function geomfromtext(unknown, integer) does not exist LINE 1: ...e_geom FROM trees.range) a_view where the_geom && GeomFromTe... ^ HINT: No function matches the given name and argument types. You might need to add explicit type casts. The offending query in the mapfile is DATA "the_geom FROM (SELECT gid, species_id, species_color, the_geom FROM trees.range) a_view USING UNIQUE gid USING srid=4326" So, it seems the MapServer is using that line to construct its own query, and that query is not compliant with PostGIS 2. Suggestions? -- Puneet Kishor From donald.kerr at dkerr.co.uk Thu May 17 12:20:08 2012 From: donald.kerr at dkerr.co.uk (Donald Kerr) Date: Thu, 17 May 2012 20:20:08 +0100 Subject: [mapserver-users] error accessing PostGIS 2 layer In-Reply-To: <6D396196-15E4-46D6-BE58-A5475CA59BB0@gmail.com> Message-ID: <80062D37ECCD48CB921E443507111FA0@DELLM4500> Run one of the ".sql" files in "\PostgreSQL\9.1\share\contrib\postgis-2.0" to restore legacy funtions to PostGIS 2 e.g. "legacy.sql". "legacy_minimal.sql" worked for me with my set up. Regards, Donald -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Puneet Kishor Sent: 17 May 2012 20:06 To: mapserver Subject: [mapserver-users] error accessing PostGIS 2 layer I migrated my data to PostGIS 2, and now I am getting the following error (using the same mapfile as with PostGIS 1.5.3) msPostGISLayerWhichShapes(): Query error. Error executing query: ERROR: function geomfromtext(unknown, integer) does not exist LINE 1: ...e_geom FROM trees.range) a_view where the_geom && GeomFromTe... ^ HINT: No function matches the given name and argument types. You might need to add explicit type casts. The offending query in the mapfile is DATA "the_geom FROM (SELECT gid, species_id, species_color, the_geom FROM trees.range) a_view USING UNIQUE gid USING srid=4326" So, it seems the MapServer is using that line to construct its own query, and that query is not compliant with PostGIS 2. Suggestions? -- Puneet Kishor_______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From punk.kish at gmail.com Thu May 17 12:58:54 2012 From: punk.kish at gmail.com (Puneet Kishor) Date: Thu, 17 May 2012 14:58:54 -0500 Subject: [mapserver-users] error accessing PostGIS 2 layer In-Reply-To: <80062D37ECCD48CB921E443507111FA0@DELLM4500> References: <80062D37ECCD48CB921E443507111FA0@DELLM4500> Message-ID: On May 17, 2012, at 2:20 PM, Donald Kerr wrote: > Run one of the ".sql" files in "\PostgreSQL\9.1\share\contrib\postgis-2.0" > to restore legacy funtions to PostGIS 2 e.g. "legacy.sql". > "legacy_minimal.sql" worked for me with my set up. > phew! thanks! legacy_minimal.sql did it. > > > > -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Puneet Kishor > Sent: 17 May 2012 20:06 > To: mapserver > Subject: [mapserver-users] error accessing PostGIS 2 layer > > > I migrated my data to PostGIS 2, and now I am getting the following error > (using the same mapfile as with PostGIS 1.5.3) > > msPostGISLayerWhichShapes(): Query error. Error executing query: > ERROR: function > geomfromtext(unknown, integer) does not exist > LINE 1: ...e_geom FROM trees.range) a_view where the_geom && > GeomFromTe... > ^ > HINT: No function matches the given name and argument types. You > might need to > add explicit type casts. > > The offending query in the mapfile is > > DATA "the_geom FROM (SELECT gid, species_id, species_color, the_geom > FROM trees.range) a_view USING UNIQUE gid USING srid=4326" > > So, it seems the MapServer is using that line to construct its own query, > and that query is not compliant with PostGIS 2. Suggestions? > > > > > -- > Puneet Kishor_______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From jmckenna at gatewaygeomatics.com Thu May 17 13:22:13 2012 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Thu, 17 May 2012 17:22:13 -0300 Subject: [mapserver-users] error accessing PostGIS 2 layer In-Reply-To: References: <80062D37ECCD48CB921E443507111FA0@DELLM4500> Message-ID: <4FB55DF5.4040804@gatewaygeomatics.com> Maybe you ("you" being anyone who recently hit this) can document your steps around this upgrade in the new MapServer Wiki? :) https://github.com/mapserver/mapserver/wiki Thanks. -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ On 12-05-17 4:58 PM, Puneet Kishor wrote: > > On May 17, 2012, at 2:20 PM, Donald Kerr wrote: > >> Run one of the ".sql" files in "\PostgreSQL\9.1\share\contrib\postgis-2.0" >> to restore legacy funtions to PostGIS 2 e.g. "legacy.sql". >> "legacy_minimal.sql" worked for me with my set up. >> > > > > phew! thanks! legacy_minimal.sql did it. > > > > > >> >> >> >> -----Original Message----- >> From: mapserver-users-bounces at lists.osgeo.org >> [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Puneet Kishor >> Sent: 17 May 2012 20:06 >> To: mapserver >> Subject: [mapserver-users] error accessing PostGIS 2 layer >> >> >> I migrated my data to PostGIS 2, and now I am getting the following error >> (using the same mapfile as with PostGIS 1.5.3) >> >> msPostGISLayerWhichShapes(): Query error. Error executing query: >> ERROR: function >> geomfromtext(unknown, integer) does not exist >> LINE 1: ...e_geom FROM trees.range) a_view where the_geom && >> GeomFromTe... >> ^ >> HINT: No function matches the given name and argument types. You >> might need to >> add explicit type casts. >> >> The offending query in the mapfile is >> >> DATA "the_geom FROM (SELECT gid, species_id, species_color, the_geom >> FROM trees.range) a_view USING UNIQUE gid USING srid=4326" >> >> So, it seems the MapServer is using that line to construct its own query, >> and that query is not compliant with PostGIS 2. Suggestions? >> >> From krassovskimb at ornl.gov Fri May 18 04:53:23 2012 From: krassovskimb at ornl.gov (mkrassovski) Date: Fri, 18 May 2012 04:53:23 -0700 (PDT) Subject: [mapserver-users] Re: Mapserver + mapcache + Google Map In-Reply-To: References: <1336420126718-4958632.post@n6.nabble.com> <1336650337076-4965470.post@n6.nabble.com> <1336651573401-4965517.post@n6.nabble.com> <1336739545957-4968271.post@n6.nabble.com> <1337007422681-4974470.post@n6.nabble.com> Message-ID: <1337342003864-4975582.post@n6.nabble.com> Yes, that is definitely wrong. As a client I use Google V3 API example from Mapcache docs, adopted to what I have. It is quite simple, and it is hard to mess it up. var map = new google.maps.Map("map", { myOptions }); var layerOptions = { getTileUrl: function(coord, zoom) { return "/mapcache/gmaps/test2 at WGS84/" + zoom + "/" + coord.x + "/" + coord.y + ".png"; }, tileSize: new google.maps.Size(256,256) }; map.overlayMapTypes.insertAt(0, new google.maps.ImageMapType(layerOptions)); If I use 900913 it doesn't work at all. I get only one dot. With 4326 this is the best result that I could get so far: http://cdiac3.ornl.gov/waves/img/wms_4326_2.png Firebug does not show requests with negative y anymore, it just gives 404 complains like: "NetworkError: 404 Not Found - http://cdiac5.ornl.gov/cgi-bin/mapcache/gmaps/test2 at WGS84/1/1/2.png" And each of them has its corresponding entry in apache log: [Fri May 18 07:21:36 2012] [error] [client ] tile y=-1 not in [0,2[, referer: http://cdiac5.ornl.gov/waves/underway/test_mapcache.html How y becomes negative I can't imagine. Mapserver it self appears to work correctly: [Fri May 18 07:21:36 2012].581292 CGI Request 1 on process 6111 [Fri May 18 07:21:36 2012].582111 msWMSLoadGetMapParams(): enabling non-square pixels. [Fri May 18 07:21:36 2012].588029 msDrawMap(): kicking into non-square pixel preserving mode. [Fri May 18 07:21:36 2012].588086 msDrawMap(): rendering using outputformat named png (AGG/PNG). [Fri May 18 07:21:36 2012].588119 msDrawMap(): WMS/WFS set-up and query, 0.000s [Fri May 18 07:21:36 2012].588847 msOGRFileOpen(underway_ai.ovf)... [Fri May 18 07:21:36 2012].589075 OGROPen(/var/www/html/waves/underway/maps/underway_ai.ovf) [Fri May 18 07:21:44 2012].856079 msConnPoolRegister(atl_ind,underway_ai.ovf,0x138f0e0) [Fri May 18 07:22:35 2012].113625 msOGRLayerClose(underway_ai.ovf). [Fri May 18 07:22:35 2012].113675 msOGRFileClose(/var/www/html/waves/underway/maps/underway_ai.ovf,0). [Fri May 18 07:22:35 2012].113684 msConnPoolRelease(atl_ind,underway_ai.ovf,0x138f0e0) [Fri May 18 07:22:35 2012].113695 msConnPoolClose(underway_ai.ovf,0x138f0e0) [Fri May 18 07:22:35 2012].115077 msDrawMap(): Layer 0 (atl_ind), 58.527s [Fri May 18 07:22:35 2012].115103 msDrawMap(): Drawing Label Cache, 0.000s [Fri May 18 07:22:35 2012].115115 msDrawMap() total time: 58.533s [Fri May 18 07:22:35 2012].219028 msSaveImage(stdout) total time: 0.104s [Fri May 18 07:22:35 2012].219490 mapserv request processing time (msLoadMap not incl.): 58.638s [Fri May 18 07:22:35 2012].219506 msFreeMap(): freeing map at 0x12f39c0. So, I'm stuck. Don't know where else to dig. -- View this message in context: http://osgeo-org.1560.n6.nabble.com/Mapserver-mapcache-Google-Map-tp4958439p4975582.html Sent from the Mapserver - User mailing list archive at Nabble.com. From jorn at spacetec.no Fri May 18 05:00:47 2012 From: jorn at spacetec.no (=?iso-8859-1?Q?J=F8rn_Vegard_R=F8snes?=) Date: Fri, 18 May 2012 14:00:47 +0200 (CEST) Subject: [mapserver-users] convert projection from UTM to WGS84 using proj In-Reply-To: <523334fd-13e4-41bc-8c90-7a3c2ee9c51d@zcs> Message-ID: <92326092-4b54-48e0-ac37-b0b865c53433@zcs> Hi, I lost your previous email, so this is just by memory. I'm not an projection expert, but here we go :-) Regarding 3dg offset: In your .prj file there is an false easting=500000, so maybe it helps adding +x_0=500000. http://proj.maptools.org/gen_parms.html Se also +towgs84 in the same link and .prj file, and adjust accordingly. Maybe a shot in the dark because 3dg = 333958,33m (40 075,017km / 360dg). I think you're near the solution. See also http://spatialreference.org/ http://spatialreference.org/ref/epsg/4230/ kind regards J?rn-Vegard R?snes ----- Original Message ----- > From: "J?rn Vegard R?snes" > To: "Murat Beyhan" > Cc: "mapserver-users" > Sent: Wednesday, 16 May, 2012 11:21:22 AM > Subject: Re: [mapserver-users] convert projection from UTM to WGS84 using proj > > Hi, > maybe something like this: > > ogr2ogr -s_srs epsg:4230 -t_srs epsg:4326 shapefile> > > http://www.gdal.org/ogr2ogr.html > > kind regards > J?rn-Vegard R?snes > > ----- Original Message ----- > > From: "Murat Beyhan" > > To: "mapserver-users" > > Sent: Wednesday, 16 May, 2012 10:41:39 AM > > Subject: [mapserver-users] convert projection from UTM to WGS84 > > using proj > > > > Dear friends, > > I'm sorry, I'm not good at GIS applications but I wondering about > > conversion between various projection or datum of the data files. > > > > data.shp data.shx data.dbf and data.prj files are available. > > > > shpdump data.shp gives following > > > > Shape:0 (ArcZ) nVertices=4, nParts=1 > > Bounds:( 513275.786, 4006041.761, 0, 0) > > to ( 513345.812, 4006078.182, 0, 0) > > ( 513275.786, 4006078.182, 0, 0) Ring > > ( 513301.130, 4006064.906, 0, 0) > > ( 513321.636, 4006053.249, 0, 0) > > ( 513345.812, 4006041.761, 0, 0) > > ... > > > > > > > > > > > > data.prj as follows > > > > PROJCS["(UTM)Universal Transvers Merkator 3?",GEOGCS["EUROPEAN > > 1950",DATUM["European_Datum_1950",SPHEROID["International",6378388.00000000,297.00000000], > > TOWGS84[-87.00000000,-98.00000000,-121.00000000,0.00000000,0.00000000,0.00000000,0.00000000]], > > PRIMEM["Greenwich",0.00000000],UNIT["Degree",0.01745329],AUTHORITY["EPSG","4230"]],PROJECTION["TRANSVERSE_MERCATOR"], > > PARAMETER["SCALE_FACTOR",1.00000000],PARAMETER["CENTRAL_MERIDIAN",36.00000000],PARAMETER["LATITUDE_OF_ORIGIN",0.00000000], > > PARAMETER["FALSE_EASTING",500000.00000000],PARAMETER["FALSE_NORTHING",0.00000000],UNIT["meter",1.00000000]] > > > > > > using these data How to convert a file which is created using > > european_datum_1950 to WGS84 (World Geodetic System 1984) > > or where I have to start to understand these method of applications > > using PROJ4. > > Thanks > > muratB > > > > > > -- > > This message has been scanned for viruses and > > dangerous content by MailScanner, and is > > believed to be clean. > > > > _______________________________________________ > > mapserver-users mailing list > > mapserver-users at lists.osgeo.org > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > CONFIDENTIALITY This e-mail and any attachment contain KONGSBERG information which may be proprietary, confidential or subject to export regulations, and is only meant for the intended recipient(s). Any disclosure, copying, distribution or use is prohibited, if not otherwise explicitly agreed with KONGSBERG. If received in error, please delete it immediately from your system and notify the sender properly. From donald.kerr at dkerr.co.uk Fri May 18 05:59:24 2012 From: donald.kerr at dkerr.co.uk (Donald Kerr) Date: Fri, 18 May 2012 13:59:24 +0100 Subject: [mapserver-users] error accessing PostGIS 2 layer In-Reply-To: <4FB55DF5.4040804@gatewaygeomatics.com> Message-ID: <9E5120EA276647F98DF1CB10ADF70F44@DELLM4500> Jeff, I'm not sure if that will be necessary as the issue is dealt with here: https://github.com/mapserver/mapserver/issues/4186 so it should only be a problem for a short period of time. A quick Google search provides the answer as it's a problem that quite a few people have come across. Regards, Donald -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Jeff McKenna Sent: 17 May 2012 21:22 To: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] error accessing PostGIS 2 layer Maybe you ("you" being anyone who recently hit this) can document your steps around this upgrade in the new MapServer Wiki? :) https://github.com/mapserver/mapserver/wiki Thanks. -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ On 12-05-17 4:58 PM, Puneet Kishor wrote: > > On May 17, 2012, at 2:20 PM, Donald Kerr wrote: > >> Run one of the ".sql" files in >> "\PostgreSQL\9.1\share\contrib\postgis-2.0" >> to restore legacy funtions to PostGIS 2 e.g. "legacy.sql". >> "legacy_minimal.sql" worked for me with my set up. >> > > > > phew! thanks! legacy_minimal.sql did it. > > > > > >> >> >> >> -----Original Message----- >> From: mapserver-users-bounces at lists.osgeo.org >> [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Puneet >> Kishor >> Sent: 17 May 2012 20:06 >> To: mapserver >> Subject: [mapserver-users] error accessing PostGIS 2 layer >> >> >> I migrated my data to PostGIS 2, and now I am getting the following >> error (using the same mapfile as with PostGIS 1.5.3) >> >> msPostGISLayerWhichShapes(): Query error. Error executing query: >> ERROR: function >> geomfromtext(unknown, integer) does not exist >> LINE 1: ...e_geom FROM trees.range) a_view where the_geom && >> GeomFromTe... >> ^ >> HINT: No function matches the given name and argument types. You >> might need to >> add explicit type casts. >> >> The offending query in the mapfile is >> >> DATA "the_geom FROM (SELECT gid, species_id, species_color, the_geom >> FROM trees.range) a_view USING UNIQUE gid USING srid=4326" >> >> So, it seems the MapServer is using that line to construct its own >> query, and that query is not compliant with PostGIS 2. Suggestions? >> >> _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From punk.kish at gmail.com Thu May 17 12:58:54 2012 From: punk.kish at gmail.com (Puneet Kishor) Date: Thu, 17 May 2012 14:58:54 -0500 Subject: [mapserver-users] error accessing PostGIS 2 layer In-Reply-To: <80062D37ECCD48CB921E443507111FA0@DELLM4500> References: <80062D37ECCD48CB921E443507111FA0@DELLM4500> Message-ID: On May 17, 2012, at 2:20 PM, Donald Kerr wrote: > Run one of the ".sql" files in "\PostgreSQL\9.1\share\contrib\postgis-2.0" > to restore legacy funtions to PostGIS 2 e.g. "legacy.sql". > "legacy_minimal.sql" worked for me with my set up. > phew! thanks! legacy_minimal.sql did it. > > > > -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Puneet Kishor > Sent: 17 May 2012 20:06 > To: mapserver > Subject: [mapserver-users] error accessing PostGIS 2 layer > > > I migrated my data to PostGIS 2, and now I am getting the following error > (using the same mapfile as with PostGIS 1.5.3) > > msPostGISLayerWhichShapes(): Query error. Error executing query: > ERROR: function > geomfromtext(unknown, integer) does not exist > LINE 1: ...e_geom FROM trees.range) a_view where the_geom && > GeomFromTe... > ^ > HINT: No function matches the given name and argument types. You > might need to > add explicit type casts. > > The offending query in the mapfile is > > DATA "the_geom FROM (SELECT gid, species_id, species_color, the_geom > FROM trees.range) a_view USING UNIQUE gid USING srid=4326" > > So, it seems the MapServer is using that line to construct its own query, > and that query is not compliant with PostGIS 2. Suggestions? > > > > > -- > Puneet Kishor_______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From arul_gi at REDIFFMAIL.COM Sat May 19 07:00:00 2012 From: arul_gi at REDIFFMAIL.COM (arul) Date: Sat, 19 May 2012 07:00:00 -0700 (PDT) Subject: [mapserver-users] any answer for this question Message-ID: <1337436000696-4975718.post@n6.nabble.com> http://gis.stackexchange.com/questions/16285/mapserver-set-no-image-available I am also looking for a answer for this question.... Could you update the methodology Thanks and Regards Arulraj.M -- View this message in context: http://osgeo-org.1560.n6.nabble.com/any-answer-for-this-question-tp4975718.html Sent from the Mapserver - User mailing list archive at Nabble.com. From Steve.Lime at state.mn.us Sat May 19 15:57:41 2012 From: Steve.Lime at state.mn.us (Lime, Steve D (DNR)) Date: Sat, 19 May 2012 22:57:41 +0000 Subject: [mapserver-users] any answer for this question In-Reply-To: <1337436000696-4975718.post@n6.nabble.com> References: <1337436000696-4975718.post@n6.nabble.com> Message-ID: Set a *vector* layer that places the text you're interested in with a MAXSCALEDENOM that matches the MINSCALEDENOM of your raster layer. You might have to play with it a bit to deal with tiling. Steve ________________________________________ From: mapserver-users-bounces at lists.osgeo.org [mapserver-users-bounces at lists.osgeo.org] on behalf of arul [arul_gi at REDIFFMAIL.COM] Sent: Saturday, May 19, 2012 9:00 AM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] any answer for this question http://gis.stackexchange.com/questions/16285/mapserver-set-no-image-available I am also looking for a answer for this question.... Could you update the methodology Thanks and Regards Arulraj.M -- View this message in context: http://osgeo-org.1560.n6.nabble.com/any-answer-for-this-question-tp4975718.html Sent from the Mapserver - User mailing list archive at Nabble.com. _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From punk.kish at gmail.com Sun May 20 18:34:07 2012 From: punk.kish at gmail.com (Mr. Puneet Kishor) Date: Sun, 20 May 2012 20:34:07 -0500 Subject: [mapserver-users] Re: line symbol decoration is flipped, how do I ensure the correct orientation In-Reply-To: <23ED65A1-7A63-44D3-BEEB-EFF93994BDEF@gmail.com> References: <23ED65A1-7A63-44D3-BEEB-EFF93994BDEF@gmail.com> Message-ID: <6B98F916-8809-4059-8FC8-900234A4ABCA@gmail.com> bu..hump. Any ideas from one of you carto wizards? The flipped symbol is serving up faulty faults. On May 9, 2012, at 6:55 PM, Puneet Kishor wrote: > I am trying my hand at MapServer symbols/styles. Using the following definition > > SYMBOL > NAME "rarrow" > TYPE vector > FILLED false > POINTS > 0 0 > 4 0 > 2 -1 > END > END > > SYMBOL > NAME "larrow" > TYPE vector > FILLED false > POINTS > 4 0 > 0 0 > 2 1 > END > END > > CLASS > NAME "Strike-slip fault right lateral" > EXPRESSION "30" > STYLE > COLOR 0 0 0 > WIDTH 1 > END > > STYLE > COLOR 0 0 0 > SYMBOL "rarrow" > SIZE 4 > GAP -60 > OFFSET 0 -4 > END > > STYLE > COLOR 255 0 0 > SYMBOL "larrow" > SIZE 4 > GAP -60 > OFFSET 0 6 > END > END > > I get the following http://dl.dropbox.com/u/3526821/slip_strike.png > > > The green box shows the correct symbol. The red box has the symbol flipped. Why? How can I correct this? > > -- > Puneet Kishor From woodbri at swoodbridge.com Sun May 20 18:48:19 2012 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Sun, 20 May 2012 21:48:19 -0400 Subject: [mapserver-users] Re: line symbol decoration is flipped, how do I ensure the correct orientation In-Reply-To: <6B98F916-8809-4059-8FC8-900234A4ABCA@gmail.com> References: <23ED65A1-7A63-44D3-BEEB-EFF93994BDEF@gmail.com> <6B98F916-8809-4059-8FC8-900234A4ABCA@gmail.com> Message-ID: <4FB99EE3.6080806@swoodbridge.com> Hi Puneet, I would suggest making a simple standalone mapfile something like radial lines extending from a point to some radius and another set of radial lines starting at the radius and transiting to a central point. the apply your style to these to see if there is pattern to the you problem. If there is then you can submit the mapfile with a ticket and it should be easy to fix and the mapfile can be added easily to the test suite. Thanks, -Steve W On 5/20/2012 9:34 PM, Mr. Puneet Kishor wrote: > bu..hump. > > Any ideas from one of you carto wizards? The flipped symbol is > serving up faulty faults. > > > On May 9, 2012, at 6:55 PM, Puneet Kishor wrote: > >> I am trying my hand at MapServer symbols/styles. Using the >> following definition >> >> SYMBOL NAME "rarrow" TYPE vector FILLED false POINTS 0 0 4 0 2 -1 >> END END >> >> SYMBOL NAME "larrow" TYPE vector FILLED false POINTS 4 0 0 0 2 1 >> END END >> >> CLASS NAME "Strike-slip fault right lateral" EXPRESSION "30" STYLE >> COLOR 0 0 0 WIDTH 1 END >> >> STYLE COLOR 0 0 0 SYMBOL "rarrow" SIZE 4 GAP -60 OFFSET 0 -4 END >> >> STYLE COLOR 255 0 0 SYMBOL "larrow" SIZE 4 GAP -60 OFFSET 0 6 END >> END >> >> I get the following >> http://dl.dropbox.com/u/3526821/slip_strike.png >> >> >> The green box shows the correct symbol. The red box has the symbol >> flipped. Why? How can I correct this? >> >> -- Puneet Kishor > > _______________________________________________ mapserver-users > mailing list mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From beyhan at deprem.gov.tr Mon May 21 00:57:53 2012 From: beyhan at deprem.gov.tr (Murat Beyhan) Date: Mon, 21 May 2012 10:57:53 +0300 Subject: [mapserver-users] convert projection from UTM to WGS84 using proj In-Reply-To: <92326092-4b54-48e0-ac37-b0b865c53433@zcs> References: <92326092-4b54-48e0-ac37-b0b865c53433@zcs> Message-ID: <1337587073.11853.3.camel@localhost> Hi, is cs2cs a tool for converting shape data and are there any example for this purpose actually I added +x_0=500000. to ogr2ogr command but doesn't cahaged the result :( On Fri, 2012-05-18 at 14:00 +0200, J?rn Vegard R?snes wrote: > Hi, > > I lost your previous email, so this is just by memory. > I'm not an projection expert, but here we go :-) > > Regarding 3dg offset: > In your .prj file there is an false easting=500000, so maybe it helps adding +x_0=500000. > http://proj.maptools.org/gen_parms.html > Se also +towgs84 in the same link and .prj file, and adjust accordingly. > > Maybe a shot in the dark because 3dg = 333958,33m (40 075,017km / 360dg). > I think you're near the solution. > > See also > http://spatialreference.org/ > http://spatialreference.org/ref/epsg/4230/ > > kind regards > J?rn-Vegard R?snes > > ----- Original Message ----- > > From: "J?rn Vegard R?snes" > > To: "Murat Beyhan" > > Cc: "mapserver-users" > > Sent: Wednesday, 16 May, 2012 11:21:22 AM > > Subject: Re: [mapserver-users] convert projection from UTM to WGS84 using proj > > > > Hi, > > maybe something like this: > > > > ogr2ogr -s_srs epsg:4230 -t_srs epsg:4326 > shapefile> > > > > http://www.gdal.org/ogr2ogr.html > > > > kind regards > > J?rn-Vegard R?snes > > > > ----- Original Message ----- > > > From: "Murat Beyhan" > > > To: "mapserver-users" > > > Sent: Wednesday, 16 May, 2012 10:41:39 AM > > > Subject: [mapserver-users] convert projection from UTM to WGS84 > > > using proj > > > > > > Dear friends, > > > I'm sorry, I'm not good at GIS applications but I wondering about > > > conversion between various projection or datum of the data files. > > > > > > data.shp data.shx data.dbf and data.prj files are available. > > > > > > shpdump data.shp gives following > > > > > > Shape:0 (ArcZ) nVertices=4, nParts=1 > > > Bounds:( 513275.786, 4006041.761, 0, 0) > > > to ( 513345.812, 4006078.182, 0, 0) > > > ( 513275.786, 4006078.182, 0, 0) Ring > > > ( 513301.130, 4006064.906, 0, 0) > > > ( 513321.636, 4006053.249, 0, 0) > > > ( 513345.812, 4006041.761, 0, 0) > > > ... > > > > > > > > > > > > > > > > > > data.prj as follows > > > > > > PROJCS["(UTM)Universal Transvers Merkator 3?",GEOGCS["EUROPEAN > > > 1950",DATUM["European_Datum_1950",SPHEROID["International",6378388.00000000,297.00000000], > > > TOWGS84[-87.00000000,-98.00000000,-121.00000000,0.00000000,0.00000000,0.00000000,0.00000000]], > > > PRIMEM["Greenwich",0.00000000],UNIT["Degree",0.01745329],AUTHORITY["EPSG","4230"]],PROJECTION["TRANSVERSE_MERCATOR"], > > > PARAMETER["SCALE_FACTOR",1.00000000],PARAMETER["CENTRAL_MERIDIAN",36.00000000],PARAMETER["LATITUDE_OF_ORIGIN",0.00000000], > > > PARAMETER["FALSE_EASTING",500000.00000000],PARAMETER["FALSE_NORTHING",0.00000000],UNIT["meter",1.00000000]] > > > > > > > > > using these data How to convert a file which is created using > > > european_datum_1950 to WGS84 (World Geodetic System 1984) > > > or where I have to start to understand these method of applications > > > using PROJ4. > > > Thanks > > > muratB > > > > > > > > > -- > > > This message has been scanned for viruses and > > > dangerous content by MailScanner, and is > > > believed to be clean. > > > > > > _______________________________________________ > > > mapserver-users mailing list > > > mapserver-users at lists.osgeo.org > > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > > > > CONFIDENTIALITY > This e-mail and any attachment contain KONGSBERG information which may be > proprietary, confidential or subject to export regulations, and is only meant > for the intended recipient(s). Any disclosure, copying, distribution or use is > prohibited, if not otherwise explicitly agreed with KONGSBERG. If received in > error, please delete it immediately from your system and notify the sender > properly. > > Murat BEYHAN Jeofizik Y.M?h. T.C. Ba?bakanl?k Afet ve Acil Durum Y?netimi Ba?kanl??? Deprem Dairesi Ba?kanl??? Eski?ehir Yolu 12. Km. Lodumlu/ANKARA Tel: 312 2872680-1556 email:beyhan at deprem.gov.tr -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. From jorn at spacetec.no Mon May 21 01:53:49 2012 From: jorn at spacetec.no (=?iso-8859-1?Q?J=F8rn_Vegard_R=F8snes?=) Date: Mon, 21 May 2012 10:53:49 +0200 (CEST) Subject: [mapserver-users] convert projection from UTM to WGS84 using proj In-Reply-To: <1337587073.11853.3.camel@localhost> Message-ID: Hi, cs2cs is a part of proj http://trac.osgeo.org/proj/ Transforms from one projection to another. I think it's just a matter of getting the projection parameters right. Maybe this tool can help you, I just googled it (via http://gis.stackexchange.com/questions/7608/shapefile-prj-to-postgis-srid-lookup-table): http://prj2epsg.org/search kind regards J?rn-Vegard R?snes ----- Original Message ----- > From: "Murat Beyhan" > To: "J?rn Vegard R?snes" > Cc: "mapserver-users" > Sent: Monday, 21 May, 2012 9:57:53 AM > Subject: Re: [mapserver-users] convert projection from UTM to WGS84 using proj > > > Hi, > > is cs2cs a tool for converting shape data and > are there any example for this purpose > actually I added +x_0=500000. to ogr2ogr command but doesn't cahaged > the > result :( > > > On Fri, 2012-05-18 at 14:00 +0200, J?rn Vegard R?snes wrote: > > Hi, > > > > I lost your previous email, so this is just by memory. > > I'm not an projection expert, but here we go :-) > > > > Regarding 3dg offset: > > In your .prj file there is an false easting=500000, so maybe it > > helps adding +x_0=500000. > > http://proj.maptools.org/gen_parms.html > > Se also +towgs84 in the same link and .prj file, and adjust > > accordingly. > > > > Maybe a shot in the dark because 3dg = 333958,33m (40 075,017km / > > 360dg). > > I think you're near the solution. > > > > See also > > http://spatialreference.org/ > > http://spatialreference.org/ref/epsg/4230/ > > > > kind regards > > J?rn-Vegard R?snes > > > > ----- Original Message ----- > > > From: "J?rn Vegard R?snes" > > > To: "Murat Beyhan" > > > Cc: "mapserver-users" > > > Sent: Wednesday, 16 May, 2012 11:21:22 AM > > > Subject: Re: [mapserver-users] convert projection from UTM to > > > WGS84 using proj > > > > > > Hi, > > > maybe something like this: > > > > > > ogr2ogr -s_srs epsg:4230 -t_srs epsg:4326 > > > > > shapefile> > > > > > > http://www.gdal.org/ogr2ogr.html > > > > > > kind regards > > > J?rn-Vegard R?snes > > > > > > ----- Original Message ----- > > > > From: "Murat Beyhan" > > > > To: "mapserver-users" > > > > Sent: Wednesday, 16 May, 2012 10:41:39 AM > > > > Subject: [mapserver-users] convert projection from UTM to WGS84 > > > > using proj > > > > > > > > Dear friends, > > > > I'm sorry, I'm not good at GIS applications but I wondering > > > > about > > > > conversion between various projection or datum of the data > > > > files. > > > > > > > > data.shp data.shx data.dbf and data.prj files are available. > > > > > > > > shpdump data.shp gives following > > > > > > > > Shape:0 (ArcZ) nVertices=4, nParts=1 > > > > Bounds:( 513275.786, 4006041.761, 0, 0) > > > > to ( 513345.812, 4006078.182, 0, 0) > > > > ( 513275.786, 4006078.182, 0, 0) Ring > > > > ( 513301.130, 4006064.906, 0, 0) > > > > ( 513321.636, 4006053.249, 0, 0) > > > > ( 513345.812, 4006041.761, 0, 0) > > > > ... > > > > > > > > > > > > > > > > > > > > > > > > data.prj as follows > > > > > > > > PROJCS["(UTM)Universal Transvers Merkator 3?",GEOGCS["EUROPEAN > > > > 1950",DATUM["European_Datum_1950",SPHEROID["International",6378388.00000000,297.00000000], > > > > TOWGS84[-87.00000000,-98.00000000,-121.00000000,0.00000000,0.00000000,0.00000000,0.00000000]], > > > > PRIMEM["Greenwich",0.00000000],UNIT["Degree",0.01745329],AUTHORITY["EPSG","4230"]],PROJECTION["TRANSVERSE_MERCATOR"], > > > > PARAMETER["SCALE_FACTOR",1.00000000],PARAMETER["CENTRAL_MERIDIAN",36.00000000],PARAMETER["LATITUDE_OF_ORIGIN",0.00000000], > > > > PARAMETER["FALSE_EASTING",500000.00000000],PARAMETER["FALSE_NORTHING",0.00000000],UNIT["meter",1.00000000]] > > > > > > > > > > > > using these data How to convert a file which is created using > > > > european_datum_1950 to WGS84 (World Geodetic System 1984) > > > > or where I have to start to understand these method of > > > > applications > > > > using PROJ4. > > > > Thanks > > > > muratB > > > > > > > > > > > > -- > > > > This message has been scanned for viruses and > > > > dangerous content by MailScanner, and is > > > > believed to be clean. > > > > > > > > _______________________________________________ > > > > mapserver-users mailing list > > > > mapserver-users at lists.osgeo.org > > > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > > > > > > > > CONFIDENTIALITY > > This e-mail and any attachment contain KONGSBERG information which > > may be > > proprietary, confidential or subject to export regulations, and is > > only meant > > for the intended recipient(s). Any disclosure, copying, > > distribution or use is > > prohibited, if not otherwise explicitly agreed with KONGSBERG. If > > received in > > error, please delete it immediately from your system and notify the > > sender > > properly. > > > > > > > > Murat BEYHAN > > Jeofizik Y.M?h. > T.C. Ba?bakanl?k > Afet ve Acil Durum Y?netimi Ba?kanl??? > Deprem Dairesi Ba?kanl??? > Eski?ehir Yolu 12. Km. > Lodumlu/ANKARA > Tel: 312 2872680-1556 > email:beyhan at deprem.gov.tr > > > > > -- > This message has been scanned for viruses and > dangerous content by MailScanner, and is > believed to be clean. > > CONFIDENTIALITY This e-mail and any attachment contain KONGSBERG information which may be proprietary, confidential or subject to export regulations, and is only meant for the intended recipient(s). Any disclosure, copying, distribution or use is prohibited, if not otherwise explicitly agreed with KONGSBERG. If received in error, please delete it immediately from your system and notify the sender properly. From Jukka.Rahkonen at mmmtike.fi Mon May 21 02:43:34 2012 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Mon, 21 May 2012 09:43:34 +0000 Subject: [mapserver-users] convert projection from UTM to WGS84 using proj In-Reply-To: <1337587073.11853.3.camel@localhost> References: <92326092-4b54-48e0-ac37-b0b865c53433@zcs>, <1337587073.11853.3.camel@localhost> Message-ID: <84446DEF76453C439E9E97E438E13A63451979@suutari.haapa.mmm.fi> Hi, Ogr2ogr is your tool for converting shapefiles. There must be something wrong in the predefined EPSG parameteres. Give projections as +proj strings and you will have a full control over what happens. An example about conversion from EPSG:2393 into EPSG:3067 ogr2ogr -f "ESRI Shapefile" -s_srs "+proj=tmerc +lat_0=0 +lon_0=27 +k=1 +x_0=3500000 +y_0=0 +ellps=intl +towgs84=-96.0617,-82.4278,-121.7535,4.80107,0.34543,-1.37646,1.4964 +units=m" -t_srs "+proj=utm +zone=35 +ellps=GRS80 +units=m +towgs84=0,0,0,0 +no_defs" target.shp original.shp Mapserver takes the parameters from the text file named "epsg" and it is easy to edit by hand. However, ogr2ogr does not use that file. Therefore you did not see any difference after your edits. -Jukka Rahkonen- Murat Beyhan wrote: > Hi, > is cs2cs a tool for converting shape data and are there any example for this purpose actually I added +x_0=500000. to ogr2ogr command but doesn't cahaged the result :( On Fri, 2012-05-18 at 14:00 +0200, J?rn Vegard R?snes wrote: > Hi, > > I lost your previous email, so this is just by memory. > I'm not an projection expert, but here we go :-) > > Regarding 3dg offset: > In your .prj file there is an false easting=500000, so maybe it helps adding +x_0=500000. > http://proj.maptools.org/gen_parms.html > Se also +towgs84 in the same link and .prj file, and adjust accordingly. > > Maybe a shot in the dark because 3dg = 333958,33m (40 075,017km / 360dg). > I think you're near the solution. > > See also > http://spatialreference.org/ > http://spatialreference.org/ref/epsg/4230/ > > kind regards > J?rn-Vegard R?snes > > ----- Original Message ----- > > From: "J?rn Vegard R?snes" > > To: "Murat Beyhan" > > Cc: "mapserver-users" > > Sent: Wednesday, 16 May, 2012 11:21:22 AM > > Subject: Re: [mapserver-users] convert projection from UTM to WGS84 using proj > > > > Hi, > > maybe something like this: > > > > ogr2ogr -s_srs epsg:4230 -t_srs epsg:4326 > shapefile> > > > > http://www.gdal.org/ogr2ogr.html > > > > kind regards > > J?rn-Vegard R?snes > > > > ----- Original Message ----- > > > From: "Murat Beyhan" > > > To: "mapserver-users" > > > Sent: Wednesday, 16 May, 2012 10:41:39 AM > > > Subject: [mapserver-users] convert projection from UTM to WGS84 > > > using proj > > > > > > Dear friends, > > > I'm sorry, I'm not good at GIS applications but I wondering about > > > conversion between various projection or datum of the data files. > > > > > > data.shp data.shx data.dbf and data.prj files are available. > > > > > > shpdump data.shp gives following > > > > > > Shape:0 (ArcZ) nVertices=4, nParts=1 > > > Bounds:( 513275.786, 4006041.761, 0, 0) > > > to ( 513345.812, 4006078.182, 0, 0) > > > ( 513275.786, 4006078.182, 0, 0) Ring > > > ( 513301.130, 4006064.906, 0, 0) > > > ( 513321.636, 4006053.249, 0, 0) > > > ( 513345.812, 4006041.761, 0, 0) > > > ... > > > > > > > > > > > > > > > > > > data.prj as follows > > > > > > PROJCS["(UTM)Universal Transvers Merkator 3?",GEOGCS["EUROPEAN > > > 1950",DATUM["European_Datum_1950",SPHEROID["International",6378388.00000000,297.00000000], > > > TOWGS84[-87.00000000,-98.00000000,-121.00000000,0.00000000,0.00000000,0.00000000,0.00000000]], > > > PRIMEM["Greenwich",0.00000000],UNIT["Degree",0.01745329],AUTHORITY["EPSG","4230"]],PROJECTION["TRANSVERSE_MERCATOR"], > > > PARAMETER["SCALE_FACTOR",1.00000000],PARAMETER["CENTRAL_MERIDIAN",36.00000000],PARAMETER["LATITUDE_OF_ORIGIN",0.00000000], > > > PARAMETER["FALSE_EASTING",500000.00000000],PARAMETER["FALSE_NORTHING",0.00000000],UNIT["meter",1.00000000]] > > > > > > > > > using these data How to convert a file which is created using > > > european_datum_1950 to WGS84 (World Geodetic System 1984) > > > or where I have to start to understand these method of applications > > > using PROJ4. > > > Thanks > > > muratB > > > > > > > > > -- > > > This message has been scanned for viruses and > > > dangerous content by MailScanner, and is > > > believed to be clean. > > > > > > _______________________________________________ > > > mapserver-users mailing list > > > mapserver-users at lists.osgeo.org > > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > > > > CONFIDENTIALITY > This e-mail and any attachment contain KONGSBERG information which may be > proprietary, confidential or subject to export regulations, and is only meant > for the intended recipient(s). Any disclosure, copying, distribution or use is > prohibited, if not otherwise explicitly agreed with KONGSBERG. If received in > error, please delete it immediately from your system and notify the sender > properly. > > Murat BEYHAN Jeofizik Y.M?h. T.C. Ba?bakanl?k Afet ve Acil Durum Y?netimi Ba?kanl??? Deprem Dairesi Ba?kanl??? Eski?ehir Yolu 12. Km. Lodumlu/ANKARA Tel: 312 2872680-1556 email:beyhan at deprem.gov.tr -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From Bob.Bistrais at maine.gov Mon May 21 08:18:48 2012 From: Bob.Bistrais at maine.gov (Bistrais, Bob) Date: Mon, 21 May 2012 11:18:48 -0400 Subject: [mapserver-users] How to do a static text label Message-ID: <4EFF8BB964547748A07CA32961810C041D9F347A@SOM-TEAQASMAIL1.som.w2k.state.me.us> I'm trying to label point features with a static text string, not using an item value. For example, if a feature is in a layer, show the point symbol, and label it "A", another layer, label it "B". I seem to remember seeing this map file parameter somewhere, but can't find it anywhere. Does anyone remember this? If so, what is the syntax of it? -------------- next part -------------- An HTML attachment was scrubbed... URL: From woodbri at swoodbridge.com Mon May 21 08:42:41 2012 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Mon, 21 May 2012 11:42:41 -0400 Subject: [mapserver-users] How to do a static text label In-Reply-To: <4EFF8BB964547748A07CA32961810C041D9F347A@SOM-TEAQASMAIL1.som.w2k.state.me.us> References: <4EFF8BB964547748A07CA32961810C041D9F347A@SOM-TEAQASMAIL1.som.w2k.state.me.us> Message-ID: <4FBA6271.1080104@swoodbridge.com> On 5/21/2012 11:18 AM, Bistrais, Bob wrote: > I?m trying to label point features with a static text string, not using > an item value. For example, if a feature is in a layer, show the point > symbol, and label it ?A?, another layer, label it ?B?. > > I seem to remember seeing this map file parameter somewhere, but can?t > find it anywhere. Does anyone remember this? If so, what is the syntax > of it? TEXT "A" Look in the mapfile reference for the version you are using. this tag has been moved in the more recent versions as some of the code has gotten restructured to make more sense going forward. -Steve W From Steve.Lime at state.mn.us Mon May 21 08:42:59 2012 From: Steve.Lime at state.mn.us (Lime, Steve D (DNR)) Date: Mon, 21 May 2012 15:42:59 +0000 Subject: [mapserver-users] RE: How to do a static text label In-Reply-To: <4EFF8BB964547748A07CA32961810C041D9F347A@SOM-TEAQASMAIL1.som.w2k.state.me.us> References: <4EFF8BB964547748A07CA32961810C041D9F347A@SOM-TEAQASMAIL1.som.w2k.state.me.us> Message-ID: See the TEXT class variable. Steve From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Bistrais, Bob Sent: Monday, May 21, 2012 10:19 AM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] How to do a static text label I'm trying to label point features with a static text string, not using an item value. For example, if a feature is in a layer, show the point symbol, and label it "A", another layer, label it "B". I seem to remember seeing this map file parameter somewhere, but can't find it anywhere. Does anyone remember this? If so, what is the syntax of it? -------------- next part -------------- An HTML attachment was scrubbed... URL: From ryan.dussiaume at mentum.com Mon May 21 08:55:11 2012 From: ryan.dussiaume at mentum.com (Ryan Dussiaume) Date: Mon, 21 May 2012 11:55:11 -0400 Subject: [mapserver-users] Runtime Substitution Not Working Message-ID: Hi, I'm trying to use runtime substitution to replace the DATA setting of the Mapfile at runtime. I'm running in tile mode and using GRD raster format. Here's the mapfile: MAP NAME Blah2 STATUS ON SHAPEPATH "C:/Contours/FSGrids" PROJECTION "init=epsg:26918" END LAYER NAME Contour TYPE RASTER STATUS ON DATA '%file%' CLASS NAME "Contour" END PROJECTION "init=epsg:26918" END END # Layer END And here is a sample request for one of the tiles that I've copied from Fiddler ... http:///cgi-bin/mapserv.exe?map=C:/ms4w/Maps/mapfile2.map&file=Site_1_1_1_Total.grd&mode=tile&layers=Contour&tilemode=ve&tile=03023032203031 If I put the filename directly in the DATA setting of the mapfile it works fine and I see the grid in Virtual Earth. If I try to use runtime substitution to put the file name it just produces blank tiles. Any help is very much appreciated, thanks! Ryan -------------- next part -------------- An HTML attachment was scrubbed... URL: From hsansegundo at meteo.cat Mon May 21 09:23:20 2012 From: hsansegundo at meteo.cat (Helen San Segundo Navazo) Date: Mon, 21 May 2012 18:23:20 +0200 Subject: [mapserver-users] Runtime Substitution Not Working In-Reply-To: References: Message-ID: <4FBA6BF8.7030705@meteo.cat> hi Ryan, try to add the validation pattern inside the layer tag METADATA 'file_validation_pattern' "[A-Z0-9._%+-|'\(\)]" 'default_file' "ultima_imatge" #-------> this is to give a value when you don't put the &file=value in the url call END VALIDATION 'file' "[A-Z0-9._%+-|'\(\)]" END DATA '%file%' Helen El 21/05/12 17:55, Ryan Dussiaume escribi?: > > Hi, > > I'm trying to use runtime substitution to replace the DATA setting of > the Mapfile at runtime. I'm running in tile mode and using GRD raster > format. > > Here's the mapfile: > > MAP > > NAME Blah2 > > STATUS ON > > SHAPEPATH "C:/Contours/FSGrids" > > PROJECTION "init=epsg:26918" END > > LAYER > > NAME Contour > > TYPE RASTER > > STATUS ON > > DATA '%file%' > > CLASS > > NAME "Contour" > > END > > PROJECTION "init=epsg:26918" END > > END # Layer > > END > > And here is a sample request for one of the tiles that I've copied > from Fiddler ... > > http:// server>/cgi-bin/mapserv.exe?map=C:/ms4w/Maps/mapfile2.map&file=Site_1_1_1_Total.grd&mode=tile&layers=Contour&tilemode=ve&tile=03023032203031 > > > If I put the filename directly in the DATA setting of the mapfile it > works fine and I see the grid in Virtual Earth. If I try to use > runtime substitution to put the file name it just produces blank tiles. > > Any help is very much appreciated, thanks! > > Ryan > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From ryan.dussiaume at mentum.com Mon May 21 10:00:50 2012 From: ryan.dussiaume at mentum.com (Ryan Dussiaume) Date: Mon, 21 May 2012 13:00:50 -0400 Subject: [mapserver-users] Runtime Substitution Not Working In-Reply-To: <4FBA6BF8.7030705@meteo.cat> References: <4FBA6BF8.7030705@meteo.cat> Message-ID: Worked like a charm, thanks! Ryan From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Helen San Segundo Navazo Sent: May 21, 2012 12:23 To: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Runtime Substitution Not Working hi Ryan, try to add the validation pattern inside the layer tag METADATA 'file_validation_pattern' "[A-Z0-9._%+-|'\(\)]" 'default_file' "ultima_imatge" #-------> this is to give a value when you don't put the &file=value in the url call END VALIDATION 'file' "[A-Z0-9._%+-|'\(\)]" END DATA '%file%' Helen El 21/05/12 17:55, Ryan Dussiaume escribi?: Hi, I'm trying to use runtime substitution to replace the DATA setting of the Mapfile at runtime. I'm running in tile mode and using GRD raster format. Here's the mapfile: MAP NAME Blah2 STATUS ON SHAPEPATH "C:/Contours/FSGrids" PROJECTION "init=epsg:26918" END LAYER NAME Contour TYPE RASTER STATUS ON DATA '%file%' CLASS NAME "Contour" END PROJECTION "init=epsg:26918" END END # Layer END And here is a sample request for one of the tiles that I've copied from Fiddler ... http:///cgi-bin/mapserv.exe?map=C:/ms4w/Maps/mapfile2.map&file=Site_1_1_1_Total.grd&mode=tile&layers=Contour&tilemode=ve&tile=03023032203031 If I put the filename directly in the DATA setting of the mapfile it works fine and I see the grid in Virtual Earth. If I try to use runtime substitution to put the file name it just produces blank tiles. Any help is very much appreciated, thanks! Ryan _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From Bob.Bistrais at maine.gov Mon May 21 10:23:37 2012 From: Bob.Bistrais at maine.gov (Bistrais, Bob) Date: Mon, 21 May 2012 13:23:37 -0400 Subject: [mapserver-users] RE: How to do a static text label In-Reply-To: References: <4EFF8BB964547748A07CA32961810C041D9F347A@SOM-TEAQASMAIL1.som.w2k.state.me.us> Message-ID: <4EFF8BB964547748A07CA32961810C041D9F357B@SOM-TEAQASMAIL1.som.w2k.state.me.us> Yes, found it. Thanks! From: Lime, Steve D (DNR) [mailto:Steve.Lime at state.mn.us] Sent: Monday, May 21, 2012 11:43 AM To: Bistrais, Bob; mapserver-users at lists.osgeo.org Subject: RE: How to do a static text label See the TEXT class variable. Steve From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Bistrais, Bob Sent: Monday, May 21, 2012 10:19 AM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] How to do a static text label I'm trying to label point features with a static text string, not using an item value. For example, if a feature is in a layer, show the point symbol, and label it "A", another layer, label it "B". I seem to remember seeing this map file parameter somewhere, but can't find it anywhere. Does anyone remember this? If so, what is the syntax of it? -------------- next part -------------- An HTML attachment was scrubbed... URL: From aperi2007 at gmail.com Tue May 22 04:26:30 2012 From: aperi2007 at gmail.com (Andrea Peri) Date: Tue, 22 May 2012 13:26:30 +0200 Subject: [mapserver-users] Layer - Group tag - deny single use Message-ID: Hi, I'm study-ing the Layer grouping directive (GROUP). It is very nice because it allow to use as an unique layer two or more layers (rasters and vectors). I need also to avoid to any user to request a single layer of a group. For exmaple: if there a group "A" compose of layer-1 + layer-2. An user that request "A" will receive a map with layer-1 + layer2. Is possible to avoid an user could call singolarly "layer1" or "layer-2" ? Thx, -- ----------------- Andrea Peri . . . . . . . . . qwerty ????? ----------------- -------------- next part -------------- An HTML attachment was scrubbed... URL: From woodbri at swoodbridge.com Tue May 22 05:52:31 2012 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Tue, 22 May 2012 08:52:31 -0400 Subject: [mapserver-users] Layer - Group tag - deny single use In-Reply-To: References: Message-ID: <4FBB8C0F.4020005@swoodbridge.com> On 5/22/2012 7:26 AM, Andrea Peri wrote: > Hi, > I'm study-ing the > Layer grouping directive (GROUP). > It is very nice because it allow to use as an unique layer two or more > layers (rasters and vectors). > > I need also to avoid to any user to request a single layer of a group. > > For exmaple: > if there a group "A" compose of layer-1 + layer-2. > > An user that request "A" will receive a map with layer-1 + layer2. > > Is possible to avoid an user could call singolarly "layer1" or "layer-2" ? Look at the REQUIRES tag, You should be able to make layer1 to require layer2 and vica versa so it will not display one without the other. -Steve W From amzilmus at gmail.com Tue May 22 07:09:04 2012 From: amzilmus at gmail.com (Mustapha AMZIL) Date: Tue, 22 May 2012 14:09:04 +0000 Subject: [mapserver-users] Integration of google_WMS into MapFile Message-ID: Hi everyone, I?m a new user of mapserver. Can somenoe tell me how to intergate the google WMS layers in the MapFile and diplay it in pmapper? Thanks! ------------------------------------------------------------- -- Mustapha AMZIL Master Sp?cialis? SIG et Gestion du territoire Facult? des sciences Ain chock Universit? Hassan II Casablanca T?l: 0670626942 -------------- next part -------------- An HTML attachment was scrubbed... URL: From anajera at bicimapas.com.mx Tue May 22 10:06:05 2012 From: anajera at bicimapas.com.mx (Alberto Najera) Date: Tue, 22 May 2012 12:06:05 -0500 Subject: [mapserver-users] WFS set up Message-ID: <000001cd383d$2ea3a710$8beaf530$@com.mx> Hello I am setting up a map file for WFS access but I do not get a response when testing for capabilities, just a 404 error. Following the guidelines in the Mapserver documentation, the CGI was compiled using "-with-wfs" and I am using this URL to test capabilities: http://173.236.45.118/cgi-bin/wfs?SERVICE=WFS&VERSION=1.0.0&REQUEST=GetCapab ilities The data file is SHP and this is the map file (named BiciMapasWFS.map): MAP NAME "BiciMapasWFS" UNITS dd SIZE 640 480 IMAGECOLOR 244 244 244 IMAGETYPE png SHAPEPATH "/home/bicimapas/mapdata/" EXTENT -99.269569 19.479910 -99.224060 19.524080 FONTSET "/home/bicimapas/mapdata/fontset.txt" WEB TEMPLATE "/home/bicimapas/www/bcmpms.html" IMAGEPATH "/home/bicimapas/www/images/" IMAGEURL "/images/" MAXSCALEDENOM 15000 METADATA "wfs_title" "BiciMapasMS" "wfs_onlineresource" "http://173.236.45.118/cgi-bin/mapserv?map=/home/bicimapas/mapdata/BiciMapas WFS.map&" "wfs_srs" "EPSG:4326" "wfs_enable_request" "*" END END PROJECTION "init=epsg:4326" END LAYER NAME "caminos" DATA "CaminosMS" STATUS on TYPE line METADATA "wfs_title" "caminos" "wfs_srs" "EPSG:4326" "gml_include_items" "all" "gml_featureid" "ID" "wfs_enable_request" "*" END PROJECTION "init=epsg:4326" END CLASS NAME "Caminos" STYLE WIDTH 2 COLOR 0 0 0 END END # class Calles END # layer roads END # mapfile What am I missing? Thanks Alberto Najera From jmckenna at gatewaygeomatics.com Tue May 22 10:11:50 2012 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Tue, 22 May 2012 14:11:50 -0300 Subject: [mapserver-users] Release of MapServer 6.0.3 In-Reply-To: <4FBBB16A.6030401@mapgears.com> References: <4FBBB16A.6030401@mapgears.com> Message-ID: <4FBBC8D6.7030206@gatewaygeomatics.com> The MapServer team announces the release of MapServer versions 6.0.3. No new functionality has been added. 6.0.3 is a maintenance release that fixes a few issues found in since 6.0.2. The list of fixes since 6.0.2 is included at the end of this message. Source and binary downloads: ---------------------------- The source code is available at: http://mapserver.org/download.html The binary distributions listed in the download page should be updated shortly with binaries for the new 6.0.3 release. -The MapServer Team Version 6.0.3 (2012-05-18): --------------------------- - Fix creation of a vector symbolObj in mapscript (#4318) - Added coverage metadata in WCS (#4306) - Adjusted WCS 2.0 GetCapbilities response (#4003) - Ignore unknown requets parameteres in WCS 2.0 (#4307). - Fixed mapscript is unusable in a web application due to memory leaks (#4262) - Fixed getFeature request with custom output format fails on filter encoding (#4190) - Fixed resolution when UoM changes in WCS 2.0 (#4283) - Added missing DEFRESOLUTION parameter to msCopyMap() function (#4272) - Fixed Python MapScript layerObj/classObj Error (#3940) - Fixed WCS 2.0 axis order, offset vector, and origin (#4006, #4191) - Fixed PHP MapScript opacity property of StyleObj no longer works (#3920) - Added MS_CJC_* constants in PHP/MapScript (#4183) - Fixed Memory leak with fribidi strings (#4188) - Added missing properties in styleObj setter of PHP/MapScript (#3901) From gcpp.kalxas at gmail.com Wed May 23 00:21:02 2012 From: gcpp.kalxas at gmail.com (Angelos Tzotsos) Date: Wed, 23 May 2012 10:21:02 +0300 Subject: [mapserver-users] Release of MapServer 6.0.3 In-Reply-To: <4FBBC8D6.7030206@gatewaygeomatics.com> References: <4FBBB16A.6030401@mapgears.com> <4FBBC8D6.7030206@gatewaygeomatics.com> Message-ID: <4FBC8FDE.6000903@gmail.com> On 05/22/2012 08:11 PM, Jeff McKenna wrote: > The MapServer team announces the release of MapServer versions 6.0.3. > > No new functionality has been added. 6.0.3 is a maintenance release that > fixes a few issues found in since 6.0.2. The list of fixes since 6.0.2 > is included at the end of this message. > > Source and binary downloads: > ---------------------------- > > The source code is available at: > > http://mapserver.org/download.html > > The binary distributions listed in the download page should be updated > shortly with binaries for the new 6.0.3 release. > > -The MapServer Team > > > Version 6.0.3 (2012-05-18): > --------------------------- > > - Fix creation of a vector symbolObj in mapscript (#4318) > > - Added coverage metadata in WCS (#4306) > > - Adjusted WCS 2.0 GetCapbilities response (#4003) > > - Ignore unknown requets parameteres in WCS 2.0 (#4307). > > - Fixed mapscript is unusable in a web application due to memory leaks > (#4262) > > - Fixed getFeature request with custom output format fails on filter > encoding (#4190) > > - Fixed resolution when UoM changes in WCS 2.0 (#4283) > > - Added missing DEFRESOLUTION parameter to msCopyMap() function (#4272) > > - Fixed Python MapScript layerObj/classObj Error (#3940) > > - Fixed WCS 2.0 axis order, offset vector, and origin (#4006, #4191) > > - Fixed PHP MapScript opacity property of StyleObj no longer works (#3920) > > - Added MS_CJC_* constants in PHP/MapScript (#4183) > > - Fixed Memory leak with fribidi strings (#4188) > > - Added missing properties in styleObj setter of PHP/MapScript (#3901) > > > > > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > Hi, FYI package for 6.0.3 is now up to the openSUSE Geo repository. Regards, Angelos -- Angelos Tzotsos Remote Sensing Laboratory National Technical University of Athens http://users.ntua.gr/tzotsos From beyhan at deprem.gov.tr Wed May 23 01:17:40 2012 From: beyhan at deprem.gov.tr (Murat Beyhan) Date: Wed, 23 May 2012 11:17:40 +0300 Subject: [mapserver-users] convert projection from UTM to WGS84 using proj In-Reply-To: <84446DEF76453C439E9E97E438E13A63451979@suutari.haapa.mmm.fi> References: <92326092-4b54-48e0-ac37-b0b865c53433@zcs> ,<1337587073.11853.3.camel@localhost> <84446DEF76453C439E9E97E438E13A63451979@suutari.haapa.mmm.fi> Message-ID: <1337761060.9177.1.camel@localhost> Dear friends, I have solved my problem using ogr gui tool easily and thank you for your interest. Regards... On Mon, 2012-05-21 at 09:43 +0000, Rahkonen Jukka wrote: > Hi, > > Ogr2ogr is your tool for converting shapefiles. There must be something wrong in the predefined EPSG parameteres. Give projections as +proj strings and you will have a full control over what happens. An example about conversion from EPSG:2393 into EPSG:3067 > > ogr2ogr -f "ESRI Shapefile" -s_srs "+proj=tmerc +lat_0=0 +lon_0=27 +k=1 +x_0=3500000 +y_0=0 +ellps=intl +towgs84=-96.0617,-82.4278,-121.7535,4.80107,0.34543,-1.37646,1.4964 +units=m" -t_srs "+proj=utm +zone=35 +ellps=GRS80 +units=m +towgs84=0,0,0,0 +no_defs" target.shp original.shp > > Mapserver takes the parameters from the text file named "epsg" and it is easy to edit by hand. However, ogr2ogr does not use that file. Therefore you did not see any difference after your edits. > > -Jukka Rahkonen- > > Murat Beyhan wrote: > > > > Hi, > > > is cs2cs a tool for converting shape data and > are there any example for this purpose > actually I added +x_0=500000. to ogr2ogr command but doesn't cahaged the > result :( > > > On Fri, 2012-05-18 at 14:00 +0200, J?rn Vegard R?snes wrote: > > Hi, > > > > I lost your previous email, so this is just by memory. > > I'm not an projection expert, but here we go :-) > > > > Regarding 3dg offset: > > In your .prj file there is an false easting=500000, so maybe it helps adding +x_0=500000. > > http://proj.maptools.org/gen_parms.html > > Se also +towgs84 in the same link and .prj file, and adjust accordingly. > > > > Maybe a shot in the dark because 3dg = 333958,33m (40 075,017km / 360dg). > > I think you're near the solution. > > > > See also > > http://spatialreference.org/ > > http://spatialreference.org/ref/epsg/4230/ > > > > kind regards > > J?rn-Vegard R?snes > > > > ----- Original Message ----- > > > From: "J?rn Vegard R?snes" > > > To: "Murat Beyhan" > > > Cc: "mapserver-users" > > > Sent: Wednesday, 16 May, 2012 11:21:22 AM > > > Subject: Re: [mapserver-users] convert projection from UTM to WGS84 using proj > > > > > > Hi, > > > maybe something like this: > > > > > > ogr2ogr -s_srs epsg:4230 -t_srs epsg:4326 > > shapefile> > > > > > > http://www.gdal.org/ogr2ogr.html > > > > > > kind regards > > > J?rn-Vegard R?snes > > > > > > ----- Original Message ----- > > > > From: "Murat Beyhan" > > > > To: "mapserver-users" > > > > Sent: Wednesday, 16 May, 2012 10:41:39 AM > > > > Subject: [mapserver-users] convert projection from UTM to WGS84 > > > > using proj > > > > > > > > Dear friends, > > > > I'm sorry, I'm not good at GIS applications but I wondering about > > > > conversion between various projection or datum of the data files. > > > > > > > > data.shp data.shx data.dbf and data.prj files are available. > > > > > > > > shpdump data.shp gives following > > > > > > > > Shape:0 (ArcZ) nVertices=4, nParts=1 > > > > Bounds:( 513275.786, 4006041.761, 0, 0) > > > > to ( 513345.812, 4006078.182, 0, 0) > > > > ( 513275.786, 4006078.182, 0, 0) Ring > > > > ( 513301.130, 4006064.906, 0, 0) > > > > ( 513321.636, 4006053.249, 0, 0) > > > > ( 513345.812, 4006041.761, 0, 0) > > > > ... > > > > > > > > > > > > > > > > > > > > > > > > data.prj as follows > > > > > > > > PROJCS["(UTM)Universal Transvers Merkator 3?",GEOGCS["EUROPEAN > > > > 1950",DATUM["European_Datum_1950",SPHEROID["International",6378388.00000000,297.00000000], > > > > TOWGS84[-87.00000000,-98.00000000,-121.00000000,0.00000000,0.00000000,0.00000000,0.00000000]], > > > > PRIMEM["Greenwich",0.00000000],UNIT["Degree",0.01745329],AUTHORITY["EPSG","4230"]],PROJECTION["TRANSVERSE_MERCATOR"], > > > > PARAMETER["SCALE_FACTOR",1.00000000],PARAMETER["CENTRAL_MERIDIAN",36.00000000],PARAMETER["LATITUDE_OF_ORIGIN",0.00000000], > > > > PARAMETER["FALSE_EASTING",500000.00000000],PARAMETER["FALSE_NORTHING",0.00000000],UNIT["meter",1.00000000]] > > > > > > > > > > > > using these data How to convert a file which is created using > > > > european_datum_1950 to WGS84 (World Geodetic System 1984) > > > > or where I have to start to understand these method of applications > > > > using PROJ4. > > > > Thanks > > > > muratB > > > > > > > > > > > > -- > > > > This message has been scanned for viruses and > > > > dangerous content by MailScanner, and is > > > > believed to be clean. > > > > > > > > _______________________________________________ > > > > mapserver-users mailing list > > > > mapserver-users at lists.osgeo.org > > > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > > > > > > > > CONFIDENTIALITY > > This e-mail and any attachment contain KONGSBERG information which may be > > proprietary, confidential or subject to export regulations, and is only meant > > for the intended recipient(s). Any disclosure, copying, distribution or use is > > prohibited, if not otherwise explicitly agreed with KONGSBERG. If received in > > error, please delete it immediately from your system and notify the sender > > properly. > > > > > > > > Murat BEYHAN > > Jeofizik Y.M?h. > T.C. Ba?bakanl?k > Afet ve Acil Durum Y?netimi Ba?kanl??? > Deprem Dairesi Ba?kanl??? > Eski?ehir Yolu 12. Km. > Lodumlu/ANKARA > Tel: 312 2872680-1556 > email:beyhan at deprem.gov.tr > > > > > -- > This message has been scanned for viruses and > dangerous content by MailScanner, and is > believed to be clean. > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > Murat BEYHAN Jeofizik Y.M?h. T.C. Ba?bakanl?k Afet ve Acil Durum Y?netimi Ba?kanl??? Deprem Dairesi Ba?kanl??? Eski?ehir Yolu 12. Km. Lodumlu/ANKARA Tel: 312 2872680-1556 email:beyhan at deprem.gov.tr -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. From hsansegundo at meteo.cat Wed May 23 04:58:05 2012 From: hsansegundo at meteo.cat (Helen San Segundo Navazo) Date: Wed, 23 May 2012 13:58:05 +0200 Subject: [mapserver-users] mapcache_seed and DIM variables - order of folders created In-Reply-To: References: Message-ID: <4FBCD0CD.2010903@meteo.cat> hi , after some problems installing mapcache now I can use it perfectly. I'm testing the mapcache_seed using dim variables and it works but when the folders are created I don't know if it's possible to create it in a determinate order. I have a mapfile that accepts runtime substitution variables (date, hour, minute) My mapcache.xml has defined the dimensions tag inside the tileset tag with the 3 variables if I execute mapcache as: sudo ./mapcache_seed -c /var/www/mapcache/mapcache.xml -t Meteosat_params -g WGS84 -z 0,3 -M 2,2 -D "minute=00" -D "hour=14" -D "date=20120314" I obtain: --Meteosat_params |-------WGS84 |-------00 (minute) |-------14 (hour) |-------20120314 (date) It would be better for what I need if the folder order could be date-hour-minute instead of minute-hour-date I've tried to change the order in the mapcache_seed request but the result is always the same, anybody knows if it's possible to define the folder's order. Thanks in advance, Helen From eric.lemoine at camptocamp.com Wed May 23 05:16:47 2012 From: eric.lemoine at camptocamp.com (Eric Lemoine) Date: Wed, 23 May 2012 14:16:47 +0200 Subject: [mapserver-users] WFS GetFeature issue with MS4W Message-ID: 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: 533307.287000,196036.205000 533337.719000,196067.143000 533333.496000,196036.205000 533337.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 533330.162000,196038.354000 533333.496000,196036.205000 <a href="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-bin>mapserv -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] geom533104.74107143,195925.49107143 533327.24107143,196115.49107143 [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.lemoine at camptocamp.com http://www.camptocamp.com From thomas.bonfort at gmail.com Wed May 23 05:25:12 2012 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Wed, 23 May 2012 14:25:12 +0200 Subject: [mapserver-users] mapcache_seed and DIM variables - order of folders created In-Reply-To: <4FBCD0CD.2010903@meteo.cat> References: <4FBCD0CD.2010903@meteo.cat> Message-ID: No, it's not possible to do this at the moment. You can contact me directly if you would like a quote on how much it would cost to have this implemented. regards, thomas On Wed, May 23, 2012 at 1:58 PM, Helen San Segundo Navazo wrote: > hi , > after some problems installing mapcache now I can use it perfectly. > > I'm testing the mapcache_seed using dim variables and it works but when the > folders are created I don't know if it's possible to create it in a > determinate order. > > I have a mapfile that accepts runtime substitution variables (date, hour, > minute) > > My mapcache.xml has defined the dimensions tag inside the tileset tag with > the 3 variables > > if I execute mapcache as: > sudo ./mapcache_seed -c /var/www/mapcache/mapcache.xml -t Meteosat_params -g > WGS84 -z 0,3 -M 2,2 ?-D "minute=00" -D "hour=14" ?-D "date=20120314" > I obtain: > > --Meteosat_params > ?|-------WGS84 > ? ? ? ? ? ?|-------00 (minute) > ? ? ? ? ? ? ? ? ? ? ?|-------14 (hour) > ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?|-------20120314 (date) > > > It would be better for what I need if the folder order could be > date-hour-minute instead of minute-hour-date > > I've tried to change the order in the mapcache_seed request but the result > is always the same, anybody knows if it's possible to define the folder's > order. > > Thanks in advance, > Helen > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From donald.kerr at dkerr.co.uk Wed May 23 05:38:34 2012 From: donald.kerr at dkerr.co.uk (Donald Kerr) Date: Wed, 23 May 2012 13:38:34 +0100 Subject: [mapserver-users] WFS GetFeature issue with MS4W In-Reply-To: Message-ID: <2C6DADD91BA745EB95B584B672846565@DELLM4500> Eric, I'm getting somwthing very similar but without any response when called via Apache. I have the same set up with IIS and Mapserver and that's working well. If everything is requested via IIS then it works. When I switch the WMS and WFS calls through to Apache on port 81 (main website still on port 80 and IIS), the WMS is fine but there's no response from the WFS post. Nothing in Mapserver logs so I'm pretty sure that it's not getting that far. A getcapabilities request on localhost:81 returns ok as well. So far, I cannot resolve this problem. I have also noticed a few similar posts indicating the same issue. I have cross-posted this to ms4w-users at lists.maptools.org. Regards, Donald -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Eric Lemoine Sent: 23 May 2012 13:17 To: mapserver-users Subject: [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: 533307.287000,196036.205000 533337.719000,196067.143000 533333.496000,196036.205000 533337.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 533330.162000,196038.354000 533333.496000,196036.205000 <a href="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-bin>mapserv -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] geom533104.74107143,195925.49107143 533327.24107143,196115.49107143 [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.lemoine at camptocamp.com http://www.camptocamp.com _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From schroete at iup.physik.uni-bremen.de Wed May 23 05:34:50 2012 From: schroete at iup.physik.uni-bremen.de (Heiko Schroeter) Date: Wed, 23 May 2012 14:34:50 +0200 Subject: [mapserver-users] Postgres/Postgis additonal variable request Message-ID: <3720701.IQQrI2MHr4@kahlo1> Hello, i need to select data from an array inside a table. I cannot get mapserver to create the correct select request statement. The problem i recognize is that the "unique" key is inserted in the Mapserver select request as ".... key from , ....". Basically i need something like this: select coords as geom, color from produkt_db using unique date using srid=-1 What do i have to do to request additional values in the mapserver DATA Line besides the "geom" and the "unique key" variables which are inserted automatically ? Thanks and Regards Heiko The Mapserver Postgres Docs says this: ..... The form of DATA is ?[geometry_column] from [table_name|sql_subquery] using unique [unique_key] using srid=[spatial_reference_id]?...... s/w versions: Postgres 9.1 MapServer version 6.0.1 OUTPUT=GIF 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=FASTCGI INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE Requesting the database manually this select statement works fine: select "datum", encode(ST_AsBinary(ST_Force_2D("rechteck"),'NDR'),'hex') as geom, HWFarbe[40] as farbe from produkt_20 where rechteck && GeomFromText('POLYGON((-269.711846318036 -138.025613660619,-269.711846318036 138.025613660619,269.711846318036 138.025613660619,269.711846318036 -138.025613660619,-269.711846318036 -138.025613660619))',-1) and ((date_trunc('minute', datum) >= '2006-08-02 00:00:00' AND date_trunc('minute', datum) <= '2006-08-02 23:59:00')); And this mapfile results in the query below (closest i could get to the working select statement above): LAYER EXTENT -180 -90 180 90 CONNECTIONTYPE POSTGIS NAME "PRODLAYER" PROCESSING "CLOSE_CONNECTION=DEFER" OPACITY 100 STATUS ON VALIDATION "produkt" "^[a-zA-Z0-9_]+$" "hoehe" "^[0-9]+$" END METADATA "wms_timeextent" "1970-01-01 00:00/2030-12-31 24:00" "wms_timeitem" "datum" #column in postgis table of type timestamp "wms_timedefault" "2007-12-10 00:00/2007-12-11 24:00" "wms_title" "%produkt%" "wms_srs" "init=epsg:4326" END PROJECTION "init=epsg:4326" END CONNECTION "user={97C559B77AE23F6F} password={53E7F71F40F9BD02} dbname={5A08CA2830DE1001} host=dw" DATA "rechteck from , HWFarbe[%hoehe%] as farbe from %produkt% using unique datum using srid=-1" TYPE POLYGON SIZEUNITS meters CLASS NAME "produkt_total_class" STYLE OUTLINECOLOR 0 0 0 COLOR [farbe] END END END # Layer Mapserver Error Log: [Wed May 23 14:10:15 2012].482261 msPostGISLayerWhichShapes(): Query error. Error (FEHLER: Syntaxfehler bei "," LINE 1: ...2D("rechteck"),'NDR'),'hex') as geom,"datum" from , HWFarbe[... ^ select "datum","farbe",encode(ST_AsBinary(ST_Force_2D("rechteck"),'NDR'),'hex') as geom,"datum" from , HWFarbe[40] as farbe from produkt_20 where rechteck && GeomFromText('POLYGON((-269.711846318036 -138.025613660619,-269.711846318036 138.025613660619,269.711846318036 138.025613660619,269.711846318036 -138.025613660619,-269.711846318036 -138.025613660619))',-1) and ((date_trunc('minute', datum) >= '2006-08-02 00:00:00' AND date_trunc('minute', datum) <= '2006-08-02 23:59:00')); [Wed May 23 14:10:15 2012].482294 msDrawMap(): Image handling error. Failed to draw layer named 'PRODLAYER'. From jmckenna at gatewaygeomatics.com Wed May 23 05:47:06 2012 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Wed, 23 May 2012 09:47:06 -0300 Subject: [mapserver-users] WFS GetFeature issue with MS4W In-Reply-To: <2C6DADD91BA745EB95B584B672846565@DELLM4500> References: <2C6DADD91BA745EB95B584B672846565@DELLM4500> Message-ID: <4FBCDC4A.2060901@gatewaygeomatics.com> Hello, Actually this is a sporadic problem (difficult to duplicate) that has existed for a while it seems, and has appeared on Windows and Linux. Here are some related open tickets, please join the discussions there and provide feedback: https://github.com/mapserver/mapserver/issues/3977 https://github.com/mapserver/mapserver/issues/4039 -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ > > -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Eric Lemoine > Sent: 23 May 2012 13:17 > To: mapserver-users > Subject: [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: > > > > > > 533307.287000,196036.205000 > 533337.719000,196067.143000 > > > > > > > 533333.496000,196036.205000 > 533337.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 > 533330.162000,196038.354000 533333.496000,196036.205000 > > > > > <a href="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-bin>mapserv -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] 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"> typeName="feature:mo9_immeubles"> xmlns:ogc="http://www.opengis.net/ogc">geom :PropertyName> xmlns:gml="http://www.opengis.net/gml"> ts=" ">533104.74107143,195925.49107143 > 533327.24107143,196115.49107143 Filter> > > [3] > CONFIG "MS_ERRORFILE" "D:/tmp/ms_error.txt" > DEBUG 5 > CONFIG "CPL_DEBUG" "ON" > CONFIG "PROJ_DEBUG" "ON" > > > From thomas.bonfort at gmail.com Wed May 23 05:58:02 2012 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Wed, 23 May 2012 14:58:02 +0200 Subject: [mapserver-users] Postgres/Postgis additonal variable request In-Reply-To: <3720701.IQQrI2MHr4@kahlo1> References: <3720701.IQQrI2MHr4@kahlo1> Message-ID: try this form: DATA "the_geom from (select id,coords as the_geom, *all_other_attributes_used_in_layer* from %farbe% join table2 on foo=bar where blabla) as foo using unique id using srid=xxx" On Wed, May 23, 2012 at 2:34 PM, Heiko Schroeter wrote: > Hello, > > i need to select data from an array inside a table. I cannot get mapserver to > create the correct select request statement. > The problem i recognize is that the "unique" key is inserted in the Mapserver > select request as ".... key from , ....". > > Basically i need something like this: > select coords as geom, color from produkt_db using unique date using srid=-1 > > What do i have to do to request additional values in the mapserver DATA Line > besides the "geom" and the "unique key" variables which are inserted > automatically ? > > Thanks and Regards > Heiko > > > The Mapserver Postgres Docs says this: > ?..... The form of DATA is ?[geometry_column] from [table_name|sql_subquery] > using unique [unique_key] using srid=[spatial_reference_id]?...... > > s/w versions: > Postgres 9.1 > MapServer version 6.0.1 > OUTPUT=GIF 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=FASTCGI INPUT=POSTGIS INPUT=OGR INPUT=GDAL > INPUT=SHAPEFILE > > > Requesting the database manually this select statement works fine: > select "datum", encode(ST_AsBinary(ST_Force_2D("rechteck"),'NDR'),'hex') as > geom, HWFarbe[40] as farbe from produkt_20 where rechteck && > GeomFromText('POLYGON((-269.711846318036 -138.025613660619,-269.711846318036 > 138.025613660619,269.711846318036 138.025613660619,269.711846318036 > -138.025613660619,-269.711846318036 -138.025613660619))',-1) and > ((date_trunc('minute', datum) >= '2006-08-02 00:00:00' AND > date_trunc('minute', datum) <= '2006-08-02 23:59:00')); > > > > And this mapfile results in the query below (closest i could get to the > working select statement above): > > ? ? ? ?LAYER > ? ? ? ? ? ? ? ?EXTENT -180 -90 180 90 > ? ? ? ? ? ? ? ?CONNECTIONTYPE POSTGIS > ? ? ? ? ? ? ? ?NAME "PRODLAYER" > ? ? ? ? ? ? ? ?PROCESSING "CLOSE_CONNECTION=DEFER" > ? ? ? ? ? ? ? ?OPACITY 100 > ? ? ? ? ? ? ? ?STATUS ON > ? ? ? ? ? ? ? ?VALIDATION > ? ? ? ? ? ? ? ? ? ? ? ?"produkt" "^[a-zA-Z0-9_]+$" > ? ? ? ? ? ? ? ? ? ? ? ?"hoehe" "^[0-9]+$" > ? ? ? ? ? ? ? ?END > ? ? ? ? ? ? ? ?METADATA > ? ? ? ? ? ? ? ? ? ? ? ?"wms_timeextent" "1970-01-01 00:00/2030-12-31 24:00" > ? ? ? ? ? ? ? ? ? ? ? ?"wms_timeitem" "datum" #column in postgis table of type timestamp > ? ? ? ? ? ? ? ? ? ? ? ?"wms_timedefault" "2007-12-10 00:00/2007-12-11 24:00" > ? ? ? ? ? ? ? ? ? ? ? ?"wms_title" "%produkt%" > ? ? ? ? ? ? ? ? ? ? ? ?"wms_srs" "init=epsg:4326" > ? ? ? ? ? ? ? ?END > ? ? ? ? ? ? ? ?PROJECTION > ? ? ? ? ? ? ? ? ? ? ? ?"init=epsg:4326" > ? ? ? ? ? ? ? ?END > ? ? ? ? ? ? ? ?CONNECTION "user={97C559B77AE23F6F} password={53E7F71F40F9BD02} > dbname={5A08CA2830DE1001} host=dw" > > DATA "rechteck from , HWFarbe[%hoehe%] as farbe from %produkt% using unique > datum using srid=-1" > > ? ? ? ? ? ? ? ?TYPE POLYGON > ? ? ? ? ? ? ? ?SIZEUNITS meters > ? ? ? ? ? ? ? ?CLASS > ? ? ? ? ? ? ? ? ? ? ? ?NAME "produkt_total_class" > ? ? ? ? ? ? ? ? ? ? ? ?STYLE > ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?OUTLINECOLOR 0 0 0 > ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?COLOR [farbe] > ? ? ? ? ? ? ? ? ? ? ? ?END > ? ? ? ? ? ? ? ?END > ? ? ? ?END # Layer > > > > Mapserver Error Log: > > [Wed May 23 14:10:15 2012].482261 msPostGISLayerWhichShapes(): Query error. > Error (FEHLER: ?Syntaxfehler bei "," > LINE 1: ...2D("rechteck"),'NDR'),'hex') as geom,"datum" from , HWFarbe[... > ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ^ > select > "datum","farbe",encode(ST_AsBinary(ST_Force_2D("rechteck"),'NDR'),'hex') as > geom,"datum" from , HWFarbe[40] as farbe from produkt_20 where rechteck && > GeomFromText('POLYGON((-269.711846318036 -138.025613660619,-269.711846318036 > 138.025613660619,269.711846318036 138.025613660619,269.711846318036 > -138.025613660619,-269.711846318036 -138.025613660619))',-1) and > ((date_trunc('minute', datum) >= '2006-08-02 00:00:00' AND > date_trunc('minute', datum) <= '2006-08-02 23:59:00')); > [Wed May 23 14:10:15 2012].482294 msDrawMap(): Image handling error. Failed to > draw layer named 'PRODLAYER'. > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From jmckenna at gatewaygeomatics.com Wed May 23 06:31:27 2012 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Wed, 23 May 2012 10:31:27 -0300 Subject: [mapserver-users] WFS GetFeature issue with MS4W In-Reply-To: References: Message-ID: <4FBCE6AF.4000004@gatewaygeomatics.com> 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. Other than what is written in those tickets I don't have any more ideas. -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ On 12-05-23 9:16 AM, Eric Lemoine wrote: > 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: > > > > > > 533307.287000,196036.205000 > 533337.719000,196067.143000 > > > > > > > 533333.496000,196036.205000 > 533337.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 > 533330.162000,196038.354000 533333.496000,196036.205000 > > > > > > <a href="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-bin>mapserv -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] 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"> typeName="feature:mo9_immeubles"> xmlns:ogc="http://www.opengis.net/ogc">geom xmlns:gml="http://www.opengis.net/gml"> cs="," ts=" ">533104.74107143,195925.49107143 > 533327.24107143,196115.49107143 > > [3] > CONFIG "MS_ERRORFILE" "D:/tmp/ms_error.txt" > DEBUG 5 > CONFIG "CPL_DEBUG" "ON" > CONFIG "PROJ_DEBUG" "ON" > > > From lgnemmi at rgd73-74.fr Wed May 23 06:55:07 2012 From: lgnemmi at rgd73-74.fr (Ludovic Gnemmi) Date: Wed, 23 May 2012 06:55:07 -0700 (PDT) Subject: [mapserver-users] MapCache - A way to reduce BerkeleyDB Cache size ? Message-ID: <1337781307047-4976403.post@n6.nabble.com> Hi list, I would like to experiment Berkeley DB cache type but i'm surprised of the resulting db size compared to sqlite cache type. Here is my results for about 13000 tiles: Total tiles size = 44 Mb Sqlite = 48 Mb Berkeley DB = 61 Mb Disk = 66 Mb (with 4kb filesystem block size) I thought i could reduce storage capacity with Berkeley DB cache type as with Sqlite but it seems there is not much difference with disk cache type. Is there a way to reduce Berkeley DB cache size ? Thanks for your help Ludovic -- View this message in context: http://osgeo-org.1560.n6.nabble.com/MapCache-A-way-to-reduce-BerkeleyDB-Cache-size-tp4976403.html Sent from the Mapserver - User mailing list archive at Nabble.com. From schroete at iup.physik.uni-bremen.de Wed May 23 07:19:21 2012 From: schroete at iup.physik.uni-bremen.de (Heiko Schroeter) Date: Wed, 23 May 2012 16:19:21 +0200 Subject: [mapserver-users] Postgres/Postgis additonal variable request In-Reply-To: References: <3720701.IQQrI2MHr4@kahlo1> Message-ID: <2860190.77NNgX8NBs@kahlo1> Am Mittwoch, 23. Mai 2012, 14:58:02 schrieben Sie: thanks for the hint. I had to extend a bit (by probably complete misunderstanding and misinterpreting), but it works ! : DATA "the_geom from (select coords as the_geom, datum, HWFarbe[25] as farbe from %produkt%) as farbe using unique farbe using srid=-1" Generates: select "datum", "farbe", encode(ST_AsBinary(ST_Force_2D("the_geom"),'NDR'),'hex') as geom , "farbe" from (select rechteck as the_geom, datum, HWFarbe[25] as farbe from produkt_20) as farbe where the_geom && GeomFromText('POLYGON((-269.711846318036 -138.025613660619,-269.711846318036 138.025613660619,269.711846318036 138.025613660619,269.711846318036 -138.025613660619,-269.711846318036 -138.025613660619))',-1) and ((date_trunc('minute', datum) >= '2006-08-02 00:00:00' AND date_trunc('minute', datum) <= '2006-08-02 23:59:00')) > try this form: > > DATA "the_geom from (select id,coords as the_geom, > *all_other_attributes_used_in_layer* from %farbe% join table2 on > foo=bar where blabla) as foo using unique id using srid=xxx" > > On Wed, May 23, 2012 at 2:34 PM, Heiko Schroeter > > wrote: > > Hello, > > > > i need to select data from an array inside a table. I cannot get > > mapserver to create the correct select request statement. > > The problem i recognize is that the "unique" key is inserted in the > > Mapserver select request as ".... key from , ....". > > > > Basically i need something like this: > > select coords as geom, color from produkt_db using unique date using > > srid=-1 > > > > What do i have to do to request additional values in the mapserver DATA > > Line besides the "geom" and the "unique key" variables which are > > inserted automatically ? > > > > Thanks and Regards > > Heiko > > > > > > The Mapserver Postgres Docs says this: > > ..... The form of DATA is ?[geometry_column] from > > [table_name|sql_subquery] using unique [unique_key] using > > srid=[spatial_reference_id]?...... > > > > s/w versions: > > Postgres 9.1 > > MapServer version 6.0.1 > > OUTPUT=GIF 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=FASTCGI INPUT=POSTGIS INPUT=OGR INPUT=GDAL > > INPUT=SHAPEFILE > > > > > > Requesting the database manually this select statement works fine: > > select "datum", encode(ST_AsBinary(ST_Force_2D("rechteck"),'NDR'),'hex') > > as geom, HWFarbe[40] as farbe from produkt_20 where rechteck && > > GeomFromText('POLYGON((-269.711846318036 > > -138.025613660619,-269.711846318036 138.025613660619,269.711846318036 > > 138.025613660619,269.711846318036 -138.025613660619,-269.711846318036 > > -138.025613660619))',-1) and ((date_trunc('minute', datum) >= > > '2006-08-02 00:00:00' AND > > date_trunc('minute', datum) <= '2006-08-02 23:59:00')); > > > > > > > > And this mapfile results in the query below (closest i could get to the > > working select statement above): > > > > LAYER > > EXTENT -180 -90 180 90 > > CONNECTIONTYPE POSTGIS > > NAME "PRODLAYER" > > PROCESSING "CLOSE_CONNECTION=DEFER" > > OPACITY 100 > > STATUS ON > > VALIDATION > > "produkt" "^[a-zA-Z0-9_]+$" > > "hoehe" "^[0-9]+$" > > END > > METADATA > > "wms_timeextent" "1970-01-01 00:00/2030-12-31 > > 24:00" "wms_timeitem" "datum" #column in postgis table of type > > timestamp "wms_timedefault" "2007-12-10 00:00/2007-12-11 24:00" > > "wms_title" "%produkt%" > > "wms_srs" "init=epsg:4326" > > END > > PROJECTION > > "init=epsg:4326" > > END > > CONNECTION "user={97C559B77AE23F6F} > > password={53E7F71F40F9BD02} dbname={5A08CA2830DE1001} host=dw" > > > > DATA "rechteck from , HWFarbe[%hoehe%] as farbe from %produkt% using > > unique datum using srid=-1" > > > > TYPE POLYGON > > SIZEUNITS meters > > CLASS > > NAME "produkt_total_class" > > STYLE > > OUTLINECOLOR 0 0 0 > > COLOR [farbe] > > END > > END > > END # Layer > > > > > > > > Mapserver Error Log: > > > > [Wed May 23 14:10:15 2012].482261 msPostGISLayerWhichShapes(): Query > > error. Error (FEHLER: Syntaxfehler bei "," > > LINE 1: ...2D("rechteck"),'NDR'),'hex') as geom,"datum" from , > > HWFarbe[... ^ > > select > > "datum","farbe",encode(ST_AsBinary(ST_Force_2D("rechteck"),'NDR'),'hex') > > as geom,"datum" from , HWFarbe[40] as farbe from produkt_20 where > > rechteck && GeomFromText('POLYGON((-269.711846318036 > > -138.025613660619,-269.711846318036 138.025613660619,269.711846318036 > > 138.025613660619,269.711846318036 -138.025613660619,-269.711846318036 > > -138.025613660619))',-1) and ((date_trunc('minute', datum) >= > > '2006-08-02 00:00:00' AND > > date_trunc('minute', datum) <= '2006-08-02 23:59:00')); > > [Wed May 23 14:10:15 2012].482294 msDrawMap(): Image handling error. > > Failed to draw layer named 'PRODLAYER'. > > > > > > _______________________________________________ > > mapserver-users mailing list > > mapserver-users at lists.osgeo.org > > http://lists.osgeo.org/mailman/listinfo/mapserver-users From gaston.lucero at sitrack.com Wed May 23 07:25:21 2012 From: gaston.lucero at sitrack.com (=?iso-8859-1?Q?Lucero=2C_Gast=F3n_=28SITRACK=29?=) Date: Wed, 23 May 2012 14:25:21 +0000 Subject: [mapserver-users] Tiles problem Message-ID: <4FBCF336.5030603@sitrack.com> Hi, i have this problem when i generate tiles with mapscript using java or php. My .map principal MAP NAME "Map STATUS on SIZE 256 256 EXTENT -20037508 -20037508 20037508 20037508 UNITS meters IMAGETYPE agg SHAPEPATH "data" FONTSET "/font/fonts.fnt" SYMBOLSET "/symbols.sym" IMAGECOLOR "#b3c6d4" OUTPUTFORMAT NAME agg DRIVER agg/png IMAGEMODE rgb FORMATOPTION "PALETTE_FORCE=TRUE" #es incompatible con la opcion anterior FORMATOPTION "PALETTE=/var/www/localhost/htdocs/rest/map/palette/map.palette" MIMETYPE "image/png" END INCLUDE routes.map ... END #map And routes.map MAP LAYER NAME routes STATUS on TYPE line DATA "from postgisDB" CLASSITEM "routestypegroupid" LABELITEM "name" MAXSCALEDENOM 14062500 MINSCALEDENOM 0 TOLERANCE 10 CLASS # Level 2 EXPRESSION /^4*$/ MAXSCALEDENOM 13732 MINSCALEDENOM 6867 STYLE WIDTH 4 COLOR "#ffffff" OUTLINECOLOR "#a09686" OUTLINEWIDTH 1 END LABEL FONT sans TYPE truetype SIZE 7 COLOR "#000000" OUTLINECOLOR "#ffffff" MINDISTANCE 100 BUFFER 5 PARTIALS false ANGLE follow OUTLINECOLOR "#ffffff" OUTLINEWIDTH 3 END END .... END Thanks. Disclaimer: This email and any attachments thereof may contain confidential, privileged, proprietary, or otherwise private information. This email is intended solely for the use of the individual to whom it is addressed. If you are not the intended recipient of the email and its attachments please inform the sender immediately and do not disclose the contents to any other person, use it for any purpose or store or copy the information in any way and delete this e-mail and its attachments from your system. Any views or opinions expressed are solely those of the author. -------------- next part -------------- A non-text attachment was scrubbed... Name: erro tiles.gif Type: image/gif Size: 4363 bytes Desc: erro tiles.gif URL: From anajera at bicimapas.com.mx Wed May 23 18:07:20 2012 From: anajera at bicimapas.com.mx (Alberto Najera) Date: Wed, 23 May 2012 20:07:20 -0500 Subject: [mapserver-users] RE: WFS set up Message-ID: <005c01cd3949$941d5ac0$bc581040$@com.mx> Hi all I have checked this all over again and the problem seems to be caused by the mapserv cgi build. I have configured it using "--with-wfs" and when done, the response shows WFS Server: -DUSE_WFS_SVR as expected, confirming this feature to be enabled in the build. I then run "make" and when testing the supported features with ./mapserv -v, it shows no support for WFS. Also when running the capabilities test, I got this response: "mapserv(): Web application error. Traditional BROWSE mode requires a TEMPLATE in the WEB section, but none was provided. msOWSDispatch(): WFS server error. SERVICE=WFS requested, but WFS support not configured in MapServer." Why is this happening? I am using Mapserver 6.0.1 in a Centos5 environment. Could this be a bug in Mapserver or am I missing something here? Your help is greatly appreciated Alberto Najera -----Mensaje original----- De: Alberto Najera [mailto:anajera at bicimapas.com.mx] Enviado el: martes, 22 de mayo de 2012 12:06 p.m. Para: 'mapserver-users' Asunto: WFS set up Hello I am setting up a map file for WFS access but I do not get a response when testing for capabilities, just a 404 error. Following the guidelines in the Mapserver documentation, the CGI was compiled using "-with-wfs" and I am using this URL to test capabilities: From Robert.Sanson at asurequality.com Wed May 23 18:39:20 2012 From: Robert.Sanson at asurequality.com (Robert Sanson) Date: Thu, 24 May 2012 13:39:20 +1200 Subject: [mapserver-users] Mapserver as cascading WMS for ArcGIS Rest? In-Reply-To: References: Message-ID: <4FBE3A08020000370000B93E@gate2.asurequality.com> Is it possible to have a layer in Mapserver pulling data from a ArcGIS Rest service? Thanks, Robert Sanson This email and any attachments are confidential and intended solely for the addressee(s). If you are not the intended recipient, please notify us immediately and then delete this email from your system. This message has been scanned for Malware and Viruses by Websense Hosted Security. www.websense.com From pcreso at pcreso.com Wed May 23 21:53:53 2012 From: pcreso at pcreso.com (pcreso at pcreso.com) Date: Wed, 23 May 2012 21:53:53 -0700 (PDT) Subject: [mapserver-users] RE: WFS set up In-Reply-To: <005c01cd3949$941d5ac0$bc581040$@com.mx> Message-ID: <1337835233.89588.YahooMailClassic@web160705.mail.bf1.yahoo.com> Not sure about the compilation problem, I have used prebuilt packages for years now... Regarding the error message, see http://mapserver.org/mapfile/web.html You still need an HTML template file specified, even if you don't use it. The file does not need to exist, unless you do use it. --- On Thu, 5/24/12, Alberto Najera wrote: From: Alberto Najera Subject: [mapserver-users] RE: WFS set up To: "'mapserver-users'" Date: Thursday, May 24, 2012, 1:07 PM Hi all I have checked this all over again and the problem seems to be caused by the mapserv cgi? build. I have configured it using "--with-wfs" and when done, the response shows WFS Server: -DUSE_WFS_SVR as expected, confirming this feature to be enabled in the build. I then run "make" and when testing the supported features with ./mapserv -v, it shows no support for WFS.? Also when running the capabilities test, I got this response: "mapserv(): Web application error. Traditional BROWSE mode requires a TEMPLATE in the WEB section, but none was provided. msOWSDispatch(): WFS server error. SERVICE=WFS requested, but WFS support not configured in MapServer." Why is this happening? I am using Mapserver 6.0.1 in a Centos5 environment.???Could this be a bug in Mapserver or am I missing something here? Your help is greatly appreciated? Alberto Najera -----Mensaje original----- De: Alberto Najera [mailto:anajera at bicimapas.com.mx] Enviado el: martes, 22 de mayo de 2012 12:06 p.m. Para: 'mapserver-users' Asunto: WFS set up Hello I am setting up a map file for WFS access but I do not get a response when testing for capabilities, just a 404 error.? Following the guidelines in the Mapserver documentation, the CGI was compiled using "-with-wfs" and? I am using this URL to test capabilities: _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From eric.lemoine at camptocamp.com Wed May 23 22:54:52 2012 From: eric.lemoine at camptocamp.com (Eric Lemoine) Date: Thu, 24 May 2012 07:54:52 +0200 Subject: [mapserver-users] Re: WFS GetFeature issue with MS4W In-Reply-To: <4FBCE6AF.4000004@gatewaygeomatics.com> References: <4FBCE6AF.4000004@gatewaygeomatics.com> Message-ID: 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.lemoine at camptocamp.com http://www.camptocamp.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From charlie.allgrove at connectionservices.com Thu May 24 03:34:42 2012 From: charlie.allgrove at connectionservices.com (Charlie Allgrove) Date: Thu, 24 May 2012 11:34:42 +0100 Subject: [mapserver-users] Cut off/missing tiles Message-ID: <004201cd3998$d57f14a0$807d3de0$@allgrove@connectionservices.com> Hi I have an issue which seems to relate to tile-edge buffering and world-view zoom levels. There's an example page at http://mapserver.magicsite.co.uk When you first visit the page, all seems normal, until you zoom out 1 level, at which point the tile which should sit over the west of the US doesn't display. >From what I can see, when tile-edge buffering is ON and the tile next tile wraps around the world, the tile in question is not rendered. Turn edge-buffering off and that tile is rendered correctly. Unfortunately, I'm in a position where I can't turn the buffering off. from the mapfile: WEB METADATA "wms_title" "xxxx" "wms_onlineresource" "xxxx" "wms_srs" "EPSG:4326" "tile_map_edge_buffer" "9" # 9 pixel rendering buffer "http_max_age" "86400" END END As far as I can tell, everything else is working correctly. What I'm not clear on - is this a bug in the edge buffering within the software, or am I doing something wrong? The server running the example URL is currently using version 5.7-dev, but the same issue is also apparent on a production server running v6.0.2 Interested to know if anyone else has experienced the same issue? Regards Charlie -- Charlie Allgrove Senior Developer Connection Services :: Business Mobility for a Wireless World Connection Services Ltd is a company incorporated under the laws of England and Wales with company number 6520674 whose registered office is at Griffins Court, 24-32 London Road, Newbury, Berkshire, RG14 1JX. The information in this e-mail and any attachments is confidential and may be legally privileged. It is intended solely for the addressee or addressees. If you are not an intended recipient, please delete the message and any attachments and notify the sender of misdelivery: any use or disclosure of the contents of either is unauthorised and may be unlawful. All liability for viruses is excluded to the fullest extent permitted by law. Any views expressed in this message are those of the individual sender. In accordance with the provisions of its Terms of Business the Company does not accept instructions or the creation of contractual obligations by unconfirmed electronic transmission. -------------- next part -------------- An HTML attachment was scrubbed... URL: From hsansegundo at meteo.cat Thu May 24 05:31:36 2012 From: hsansegundo at meteo.cat (Helen San Segundo Navazo) Date: Thu, 24 May 2012 14:31:36 +0200 Subject: [mapserver-users] mapcache_seed and DIM variables - order of folders created In-Reply-To: References: <4FBCD0CD.2010903@meteo.cat> Message-ID: <4FBE2A28.2020702@meteo.cat> Hi, at the moment I've found where I can control the folders order inside the mapcache.xml. The variables order inside the dimension tag define the order of the folders creation * my definition inside the mapcache.xml now is: 00,01,02,03,04,05,06,07,08,09,10, 11,12,13,14,15,16,17,18,19,20, 21,22,23,24,25,26,27,28,29,30, 31,32,33,34,35,36,37,38,39,40, 41,42,43,44,45,46,47,48,49,50, 51,52,53,54,55,56,57,58,59 00,01,02,03,04,05,06,07,08,09,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24 01,02,03,04,05,06,07,08,09,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31 01,02,03,04,05,06,07,08,09,10,11,12 2012,2103 * and I obtain --Meteosat_params |-------WGS84 |-------2012 (any, year) |-------03 (mes, month) |-------14 (dia, day) |-------18 (hora, hour) |-------00 (minut, minute) I've done some tests and it seems the folders are created in the inverse order as I define the variables inside, being carefull with this I can choose the order inside the cache folder _Apart from this I have a question:_ after all the params folders I obtain a estructure like |-------000 |-------000 |-------XX (x column tile) |-------000 |-------000 |-------YY (column tile) *.png which is the meaning of those*000* folders? Thanks, Helen El 23/05/12 14:25, thomas bonfort escribi?: > No, it's not possible to do this at the moment. You can contact me > directly if you would like a quote on how much it would cost to have > this implemented. > > regards, > thomas > > On Wed, May 23, 2012 at 1:58 PM, Helen San Segundo Navazo > wrote: >> hi , >> after some problems installing mapcache now I can use it perfectly. >> >> I'm testing the mapcache_seed using dim variables and it works but when the >> folders are created I don't know if it's possible to create it in a >> determinate order. >> >> I have a mapfile that accepts runtime substitution variables (date, hour, >> minute) >> >> My mapcache.xml has defined the dimensions tag inside the tileset tag with >> the 3 variables >> >> if I execute mapcache as: >> sudo ./mapcache_seed -c /var/www/mapcache/mapcache.xml -t Meteosat_params -g >> WGS84 -z 0,3 -M 2,2 -D "minute=00" -D "hour=14" -D "date=20120314" >> I obtain: >> >> --Meteosat_params >> |-------WGS84 >> |-------00 (minute) >> |-------14 (hour) >> |-------20120314 (date) >> >> >> It would be better for what I need if the folder order could be >> date-hour-minute instead of minute-hour-date >> >> I've tried to change the order in the mapcache_seed request but the result >> is always the same, anybody knows if it's possible to define the folder's >> order. >> >> Thanks in advance, >> Helen >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From amzilmus at gmail.com Thu May 24 07:20:55 2012 From: amzilmus at gmail.com (Mustapha AMZIL) Date: Thu, 24 May 2012 14:20:55 +0000 Subject: [mapserver-users] Re: mapserver-users Digest, Vol 52, Issue 54 In-Reply-To: <20120524104103.4256AE00ACD@lists.osgeo.org> References: <20120524104103.4256AE00ACD@lists.osgeo.org> Message-ID: Hello, thank you very much in advance for your attention my question is: I am currently working with *pmapper* ms4w on Windows 7, the problem is that does not load any *WMS*, I viewed the other *WMS* layers but not http://*wms *.jpl.nasa.gov/*wms*.cgi ?, only the poster is "loading." I've tried other local *WMS* services that I can see fat clients like qgis, but when try to *pmapper* the result is the same. Any help will be grateful. Sorry for if English is not good I'm using the *google* translator. ----------------------------------------------------------- -------------- next part -------------- An HTML attachment was scrubbed... URL: From aboudreault at mapgears.com Thu May 24 07:43:01 2012 From: aboudreault at mapgears.com (Alan Boudreault) Date: Thu, 24 May 2012 10:43:01 -0400 Subject: [mapserver-users] Mapserver as cascading WMS for ArcGIS Rest? In-Reply-To: <4FBE3A08020000370000B93E@gate2.asurequality.com> References: <4FBE3A08020000370000B93E@gate2.asurequality.com> Message-ID: <4FBE48F5.9000903@mapgears.com> I don't think so. MapServer only allows wms cascading using the http/wms requests. Alan On 12-05-23 09:39 PM, Robert Sanson wrote: > Is it possible to have a layer in Mapserver pulling data from a ArcGIS Rest service? > > Thanks, > > Robert Sanson > > > > > This email and any attachments are confidential and intended solely for the addressee(s). If you are not the intended recipient, please notify us immediately and then delete this email from your system. > > This message has been scanned for Malware and Viruses by Websense Hosted Security. > www.websense.com > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Alan Boudreault http://www.mapgears.com/ From Michael.Smith at usace.army.mil Thu May 24 08:15:41 2012 From: Michael.Smith at usace.army.mil (Smith, Michael ERDC-CRREL-NH) Date: Thu, 24 May 2012 15:15:41 +0000 Subject: [mapserver-users] Mapserver as cascading WMS for ArcGIS Rest? In-Reply-To: <4FBE48F5.9000903@mapgears.com> Message-ID: WMS is different from the REST services (enabled separately). MapServer can cascade ArcGIS Server WMS services. Mike On 5/24/12 7:43 AM, "Alan Boudreault" wrote: >I don't think so. MapServer only allows wms cascading using the http/wms >requests. > >Alan > >On 12-05-23 09:39 PM, Robert Sanson wrote: >> Is it possible to have a layer in Mapserver pulling data from a ArcGIS >>Rest service? >> >> Thanks, >> >> Robert Sanson >> >> >> >> >> This email and any attachments are confidential and intended solely for >>the addressee(s). If you are not the intended recipient, please notify >>us immediately and then delete this email from your system. >> >> This message has been scanned for Malware and Viruses by Websense >>Hosted Security. >> www.websense.com >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users > > >-- >Alan Boudreault >http://www.mapgears.com/ >_______________________________________________ >mapserver-users mailing list >mapserver-users at lists.osgeo.org >http://lists.osgeo.org/mailman/listinfo/mapserver-users From Jukka.Rahkonen at mmmtike.fi Thu May 24 08:28:29 2012 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Thu, 24 May 2012 15:28:29 +0000 Subject: [mapserver-users] Mapserver as cascading WMS for ArcGIS Rest? In-Reply-To: <4FBE48F5.9000903@mapgears.com> References: <4FBE3A08020000370000B93E@gate2.asurequality.com>, <4FBE48F5.9000903@mapgears.com> Message-ID: <84446DEF76453C439E9E97E438E13A63456080@suutari.haapa.mmm.fi> Hi, It might be possible to do through GDAL WMS driver. I do not know what ArcGIS MapServer Tiles are but they sound somehow promising. http://www.gdal.org/frmt_wms.html -Jukka Rahkonen- ________________________________________ Alan Boudreault wrote: > I don't think so. MapServer only allows wms cascading using the http/wms > requests. Alan On 12-05-23 09:39 PM, Robert Sanson wrote: >> Is it possible to have a layer in Mapserver pulling data from a ArcGIS Rest service? > > Thanks, > > Robert Sanson > > > > > This email and any attachments are confidential and intended solely for the addressee(s). If you are not the intended recipient, please notify us immediately and then delete this email from your system. > > This message has been scanned for Malware and Viruses by Websense Hosted Security. > www.websense.com > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Alan Boudreault http://www.mapgears.com/ _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From Michael.Smith at usace.army.mil Thu May 24 08:39:08 2012 From: Michael.Smith at usace.army.mil (Smith, Michael ERDC-CRREL-NH) Date: Thu, 24 May 2012 15:39:08 +0000 Subject: [mapserver-users] Mapserver as cascading WMS for ArcGIS Rest? In-Reply-To: <84446DEF76453C439E9E97E438E13A63456080@suutari.haapa.mmm.fi> Message-ID: You can also read the data from arcgis rest services using the gdal geojson driver. Its been updated to support ESRI json (which is not true geojson). On 5/24/12 8:28 AM, "Rahkonen Jukka" wrote: >Hi, > >It might be possible to do through GDAL WMS driver. I do not know what >ArcGIS MapServer Tiles are but they sound somehow promising. > >http://www.gdal.org/frmt_wms.html > >-Jukka Rahkonen- >________________________________________ >Alan Boudreault wrote: > >> I don't think so. MapServer only allows wms cascading using the http/wms >> requests. > >Alan > >On 12-05-23 09:39 PM, Robert Sanson wrote: >>> Is it possible to have a layer in Mapserver pulling data from a ArcGIS >>>Rest service? >> >> Thanks, >> >> Robert Sanson >> >> >> >> >> This email and any attachments are confidential and intended solely for >>the addressee(s). If you are not the intended recipient, please notify >>us immediately and then delete this email from your system. >> >> This message has been scanned for Malware and Viruses by Websense >>Hosted Security. >> www.websense.com >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users > > >-- >Alan Boudreault >http://www.mapgears.com/ >_______________________________________________ >mapserver-users mailing list >mapserver-users at lists.osgeo.org >http://lists.osgeo.org/mailman/listinfo/mapserver-users >_______________________________________________ >mapserver-users mailing list >mapserver-users at lists.osgeo.org >http://lists.osgeo.org/mailman/listinfo/mapserver-users From Robert.Burgholzer at deq.virginia.gov Thu May 24 08:54:07 2012 From: Robert.Burgholzer at deq.virginia.gov (Burgholzer, Robert (DEQ)) Date: Thu, 24 May 2012 15:54:07 +0000 Subject: [mapserver-users] Setting Classes for Dynamic Points (Rainfall Data) In-Reply-To: References: <84446DEF76453C439E9E97E438E13A63456080@suutari.haapa.mmm.fi> Message-ID: <77F5F8FA4B407F43BFCFD3FC347896911C2EC3@COVMSGCES-MBX01.cov.virginia.gov> I am working with some dynamic rainfall point data, and trying to display it with a graduated color ramp to indicate total rainfall. The ramp is based on the quartiles of the entire data set, hence the need to dynamically assign not only the points but also the classIndex. I have attempted with the following code which SUCCEEDS in drawing the points, but FAILS to change their classification (they are all the same color). The gist of my code is to set the class of each shape when setting the $shape->classIndex = whatever the quartile is (I have 4 classes defined in my ramp - mapfile CLASS excerpt follows code). Any insight would be most helpful. Thanks! foreach($qresult as $row) { $shape = ms_newShapeObj(MS_SHAPE_POINT); if ($row['total_precip_in'] > $max_precip) { $max_precip = $row['total_precip_in']; } $p = $row['total_precip_in']; if ($p < $q25) { $c = 1; } else { if ($p < $q50) { $c = 2; } else { if ($p < $q75) { $c = 3; } else { $c = 4; } } } $this->logDebug("Adding: " . $row['x'] . "," . $row['y'] . " with Precip = $p and Class = $c
\n"); $pt = ms_newPointObj(); $pt->setXY($row['x'], $row['y'], 0.0); $line = ms_newLineObj(); $line->add( $pt ); $shape->add($line); $shape->classIndex = $c; $layer->addFeature( $shape ); $i++; }
CLASS NAME "1st Quartile: 0.0 <= P <= 19.63" #EXPRESSION ( [globvalue] <= 19.63 ) SYMBOL 'circle' SIZE 2 COLOR 202 207 254 BACKGROUNDCOLOR 202 207 254 OUTLINECOLOR 202 207 254 END CLASS NAME "2nd Quartile: 19.63 < P <= 22.64" #EXPRESSION ( [globvalue] > 19.63 and [globvalue] <= 22.64 ) SYMBOL 'circle' SIZE 4 COLOR 137 148 253 BACKGROUNDCOLOR 137 148 253 OUTLINECOLOR 137 148 253 END CLASS NAME "3rd Quartile: 22.64 < P <= 25.6" #EXPRESSION ( [globvalue] > 22.64 and [globvalue] <= 25.6 ) SYMBOL 'circle' SIZE 6 COLOR 66 84 252 BACKGROUNDCOLOR 66 84 252 OUTLINECOLOR 66 84 252 END CLASS NAME "4th Quartile: P > 25.6" #EXPRESSION ( [globvalue] > 25.6 ) SYMBOL 'circle' SIZE 8 COLOR 4 26 236 BACKGROUNDCOLOR 4 26 236 OUTLINECOLOR 4 26 236 END CLASS NAME "No Data" SYMBOL 'circle' SIZE 2 COLOR 96 160 248 BACKGROUNDCOLOR 96 160 248 OUTLINECOLOR 96 160 248 END From steve at qpublic.net Thu May 24 09:00:30 2012 From: steve at qpublic.net (Steve Lehr) Date: Thu, 24 May 2012 12:00:30 -0400 Subject: [mapserver-users] I'll be out of the office till Tuesday May 28th. Any time critical requests should be f Message-ID: <11205241200.AA09457@qpublic.net> I'll be out of the office till Tuesday May 28th. Any time critical requests should be followed up with the qPublic office at 386-734-1954. From steve at qpublic.net Thu May 24 08:39:35 2012 From: steve at qpublic.net (Steve Lehr) Date: Thu, 24 May 2012 11:39:35 -0400 Subject: [mapserver-users] I'll be out of the office till Tuesday May 28th. Any time critical requests should be f Message-ID: <11205241139.AA07165@qpublic.net> I'll be out of the office till Tuesday May 28th. Any time critical requests should be followed up with the qPublic office at 386-734-1954. From anajera at bicimapas.com.mx Thu May 24 09:08:25 2012 From: anajera at bicimapas.com.mx (Alberto Najera) Date: Thu, 24 May 2012 11:08:25 -0500 Subject: [mapserver-users] RE: WFS set up In-Reply-To: <1337835233.89588.YahooMailClassic@web160705.mail.bf1.yahoo.com> References: <005c01cd3949$941d5ac0$bc581040$@com.mx> <1337835233.89588.YahooMailClassic@web160705.mail.bf1.yahoo.com> Message-ID: <000601cd39c7$7452f000$5cf8d000$@com.mx> Thanks for the response. I removed the template call in the mapfile to force the WFS call and check what was going on. It seems to be a compilation problem so I will start a new thread on the subject. Greetings Alberto Najera De: pcreso at pcreso.com [mailto:pcreso at pcreso.com] Enviado el: mi?rcoles, 23 de mayo de 2012 11:54 p.m. Para: Alberto Najera CC: mapserver-users at lists.osgeo.org Asunto: Re: [mapserver-users] RE: WFS set up Not sure about the compilation problem, I have used prebuilt packages for years now... Regarding the error message, see http://mapserver.org/mapfile/web.html You still need an HTML template file specified, even if you don't use it. The file does not need to exist, unless you do use it. --- On Thu, 5/24/12, Alberto Najera wrote: From: Alberto Najera Subject: [mapserver-users] RE: WFS set up To: "'mapserver-users'" Date: Thursday, May 24, 2012, 1:07 PM Hi all I have checked this all over again and the problem seems to be caused by the mapserv cgi? build. I have configured it using "--with-wfs" and when done, the response shows WFS Server: -DUSE_WFS_SVR as expected, confirming this feature to be enabled in the build. I then run "make" and when testing the supported features with ./mapserv -v, it shows no support for WFS.? Also when running the capabilities test, I got this response: "mapserv(): Web application error. Traditional BROWSE mode requires a TEMPLATE in the WEB section, but none was provided. msOWSDispatch(): WFS server error. SERVICE=WFS requested, but WFS support not configured in MapServer." Why is this happening? I am using Mapserver 6.0.1 in a Centos5 environment.???Could this be a bug in Mapserver or am I missing something here? Your help is greatly appreciated? Alberto Najera -----Mensaje original----- De: Alberto Najera [mailto:anajera at bicimapas.com.mx] Enviado el: martes, 22 de mayo de 2012 12:06 p.m. Para: 'mapserver-users' Asunto: WFS set up Hello I am setting up a map file for WFS access but I do not get a response when testing for capabilities, just a 404 error.? Following the guidelines in the Mapserver documentation, the CGI was compiled using "-with-wfs" and? I am using this URL to test capabilities: _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From anajera at bicimapas.com.mx Thu May 24 09:28:36 2012 From: anajera at bicimapas.com.mx (Alberto Najera) Date: Thu, 24 May 2012 11:28:36 -0500 Subject: [mapserver-users] Compilation error with WFS Message-ID: <000a01cd39ca$4690bc80$d3b23580$@com.mx> Hello list, I have compiled mapserver version 6.0.1 in a Centos5 environment and used is successfully for a couple of months, including the WMS server option. I want to add WFS server capability, which was not included in the initial compilation. So I added that feature in the configure call using "--with-wfs" and when done, the response shows WFS Server: -DUSE_WFS_SVR confirming this feature to be enabled in the build. I then run "make" and all seems to work well but when testing the supported features with ./mapserv -v, it shows no support for WFS server. After several attempts, I decided to install the recently released Mapserver version 6.0.3 and try it, using the same call for configure but an error shows during Make, as follows: mapwfs11.c.496:error conflicting types for ?msWFSGetCapabilities11? mapows.h:421: note: previous declaration of ?msWFSGetCapabilities11? was here make: *** [mapwfs11.o] Error 1 What does this error mean and how should this be fixed? Am I missing something to add WFS capability Thanks Alberto Najera From Robert.Burgholzer at deq.virginia.gov Thu May 24 09:32:45 2012 From: Robert.Burgholzer at deq.virginia.gov (Burgholzer, Robert (DEQ)) Date: Thu, 24 May 2012 16:32:45 +0000 Subject: [mapserver-users] RE: Setting Classes for Dynamic Points (Rainfall Data) In-Reply-To: <77F5F8FA4B407F43BFCFD3FC347896911C2EC3@COVMSGCES-MBX01.cov.virginia.gov> References: <84446DEF76453C439E9E97E438E13A63456080@suutari.haapa.mmm.fi> <77F5F8FA4B407F43BFCFD3FC347896911C2EC3@COVMSGCES-MBX01.cov.virginia.gov> Message-ID: <77F5F8FA4B407F43BFCFD3FC347896911C2F19@COVMSGCES-MBX01.cov.virginia.gov> Ahhh, here is the solution (not found anywhere on the interwebs tht I could discern - hope this helps someone in the future). In order to get the classindex change to be reflected in the map output, you need to use the "set()" method of the shape. In other words, I change: $shape->classIndex = $c; to $shape->set('classindex', $c); Note that I also made the mistake of spelling the object property with a capital I, "classIndex" instead of "classindex". Interestingly enough, when doing the direct setting method $shape->classindex = xx, no problems occur, but if you call the "set" method with a property name that does not exist, a fatal error will ensue. Cheers! r.b. -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Burgholzer, Robert (DEQ) Sent: Thursday, May 24, 2012 11:54 AM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] Setting Classes for Dynamic Points (Rainfall Data) I am working with some dynamic rainfall point data, and trying to display it with a graduated color ramp to indicate total rainfall. The ramp is based on the quartiles of the entire data set, hence the need to dynamically assign not only the points but also the classIndex. I have attempted with the following code which SUCCEEDS in drawing the points, but FAILS to change their classification (they are all the same color). The gist of my code is to set the class of each shape when setting the $shape->classIndex = whatever the quartile is (I have 4 classes defined in my ramp - mapfile CLASS excerpt follows code). Any insight would be most helpful. Thanks! foreach($qresult as $row) { $shape = ms_newShapeObj(MS_SHAPE_POINT); if ($row['total_precip_in'] > $max_precip) { $max_precip = $row['total_precip_in']; } $p = $row['total_precip_in']; if ($p < $q25) { $c = 1; } else { if ($p < $q50) { $c = 2; } else { if ($p < $q75) { $c = 3; } else { $c = 4; } } } $this->logDebug("Adding: " . $row['x'] . "," . $row['y'] . " with Precip = $p and Class = $c
\n"); $pt = ms_newPointObj(); $pt->setXY($row['x'], $row['y'], 0.0); $line = ms_newLineObj(); $line->add( $pt ); $shape->add($line); $shape->classIndex = $c; $layer->addFeature( $shape ); $i++; }
CLASS NAME "1st Quartile: 0.0 <= P <= 19.63" #EXPRESSION ( [globvalue] <= 19.63 ) SYMBOL 'circle' SIZE 2 COLOR 202 207 254 BACKGROUNDCOLOR 202 207 254 OUTLINECOLOR 202 207 254 END CLASS NAME "2nd Quartile: 19.63 < P <= 22.64" #EXPRESSION ( [globvalue] > 19.63 and [globvalue] <= 22.64 ) SYMBOL 'circle' SIZE 4 COLOR 137 148 253 BACKGROUNDCOLOR 137 148 253 OUTLINECOLOR 137 148 253 END CLASS NAME "3rd Quartile: 22.64 < P <= 25.6" #EXPRESSION ( [globvalue] > 22.64 and [globvalue] <= 25.6 ) SYMBOL 'circle' SIZE 6 COLOR 66 84 252 BACKGROUNDCOLOR 66 84 252 OUTLINECOLOR 66 84 252 END CLASS NAME "4th Quartile: P > 25.6" #EXPRESSION ( [globvalue] > 25.6 ) SYMBOL 'circle' SIZE 8 COLOR 4 26 236 BACKGROUNDCOLOR 4 26 236 OUTLINECOLOR 4 26 236 END CLASS NAME "No Data" SYMBOL 'circle' SIZE 2 COLOR 96 160 248 BACKGROUNDCOLOR 96 160 248 OUTLINECOLOR 96 160 248 END _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From Bob.Bistrais at maine.gov Thu May 24 10:43:45 2012 From: Bob.Bistrais at maine.gov (Bistrais, Bob) Date: Thu, 24 May 2012 13:43:45 -0400 Subject: [mapserver-users] legend not visible with maxscaledenom set Message-ID: <4EFF8BB964547748A07CA32961810C041DA67C2F@SOM-TEAQASMAIL1.som.w2k.state.me.us> This appears to be an old problem, but I am still having trouble with it in MapServer 6.0.2. If I have a layer without a Maxscaledenom set, the layer legend displays properly. But if I set the Maxscaledenom, the legend does not appear in my application. This happens when Maxscaledenom is set at the layer level or the class level. I've looked though the archives and have seen this problem since version 5, but don't see a resolution for MS 6. -------------- next part -------------- An HTML attachment was scrubbed... URL: From Steve.Toutant at inspq.qc.ca Thu May 24 11:51:33 2012 From: Steve.Toutant at inspq.qc.ca (Steve.Toutant at inspq.qc.ca) Date: Thu, 24 May 2012 14:51:33 -0400 Subject: [mapserver-users] CLASS NAME Runtime substitution Variable Message-ID: Hi My users will have the option to request a new map by changing YEAR. With Openlayers I use vendorParams to add new parameters in the getMap request. I use the YEAR parameters as a Runtime substitution Variable for FILTER in the mapfile, pretty simple My problem is for GetLegendGraphics because the class name will have to change on each request. I know that it is not possible yet to use Runtime substitution Variable on CLASS NAME. Is it because no one request for it or it is technically not possible? The thread below discuss on using CLASS TITLE to do that http://osgeo-org.1560.n6.nabble.com/runtime-substitution-class-name-td4228412.html the GetLegendGraphic request look like ...&map.layer[RSS_MPOC].class[classe1_sign]=TITLE+'>= 2.38 <=56' If I need to use this technique how can I send &map.layer[RSS_MPOC].class[classe1_sign]=TITLE+NEWTITLE as a parameter to the GetLegendGraphic request? thanks steve -------------- next part -------------- An HTML attachment was scrubbed... URL: From anajera at bicimapas.com.mx Thu May 24 16:03:59 2012 From: anajera at bicimapas.com.mx (Alberto Najera) Date: Thu, 24 May 2012 18:03:59 -0500 Subject: [mapserver-users] RE: Compilation error with WFS Message-ID: <00df01cd3a01$81cc7190$856554b0$@com.mx> Hello all, I downloaded version 5.6.8 and the configuration and compilation went very well and I got the WFS support. It seems to me that versions 6.XX may have a bug while compiling this feature. How can I report this incident to the developers? Alberto Najera ? -----Mensaje original----- De: Alberto Najera [mailto:anajera at bicimapas.com.mx] Enviado el: jueves, 24 de mayo de 2012 11:29 a.m. Para: 'mapserver-users at lists.osgeo.org' Asunto: Compilation error with WFS Hello list, I have compiled mapserver version 6.0.1 in a Centos5 environment and used is successfully for a couple of months, including the WMS server option. I want to add WFS server capability, which was not included in the initial compilation. So I added that feature in the configure call using "--with-wfs" and when done, the response shows WFS Server: -DUSE_WFS_SVR confirming this feature to be enabled in the build. I then run "make" and all seems to work well but when testing the supported features with ./mapserv -v, it shows no support for WFS server. After several attempts, I decided to install the recently released Mapserver version 6.0.3 and try it, using the same call for configure but an error shows during Make, as follows: mapwfs11.c.496:error conflicting types for ?msWFSGetCapabilities11? mapows.h:421: note: previous declaration of ?msWFSGetCapabilities11? was here make: *** [mapwfs11.o] Error 1 What does this error mean and how should this be fixed? Am I missing something to add WFS capability Thanks Alberto Najera From steve at qpublic.net Thu May 24 16:04:20 2012 From: steve at qpublic.net (Steve Lehr) Date: Thu, 24 May 2012 19:04:20 -0400 Subject: [mapserver-users] I'll be out of the office till Tuesday May 28th. Any time critical requests should be f Message-ID: <11205241904.AA58576@qpublic.net> I'll be out of the office till Tuesday May 28th. Any time critical requests should be followed up with the qPublic office at 386-734-1954. From Robert.Sanson at asurequality.com Thu May 24 20:06:31 2012 From: Robert.Sanson at asurequality.com (Robert Sanson) Date: Fri, 25 May 2012 15:06:31 +1200 Subject: [mapserver-users] Mapserver as cascading WMS for ArcGIS Rest? Message-ID: <4FBF9FF8020000370000B9BB@gate2.asurequality.com> Thanks for the heads-up about the JSON. In my case I am wanting to access a cached tile service. >>> "Smith, Michael ERDC-CRREL-NH" 05/25/12 3:40 AM >>> You can also read the data from arcgis rest services using the gdal geojson driver. Its been updated to support ESRI json (which is not true geojson). On 5/24/12 8:28 AM, "Rahkonen Jukka" wrote: >Hi, > >It might be possible to do through GDAL WMS driver. I do not know what >ArcGIS MapServer Tiles are but they sound somehow promising. > >http://www.gdal.org/frmt_wms.html > >-Jukka Rahkonen- >________________________________________ >Alan Boudreault wrote: > >> I don't think so. MapServer only allows wms cascading using the http/wms >> requests. > >Alan > >On 12-05-23 09:39 PM, Robert Sanson wrote: >>> Is it possible to have a layer in Mapserver pulling data from a ArcGIS >>>Rest service? >> >> Thanks, >> >> Robert Sanson >> >> >> >> >> This email and any attachments are confidential and intended solely for >>the addressee(s). If you are not the intended recipient, please notify >>us immediately and then delete this email from your system. >> >> This message has been scanned for Malware and Viruses by Websense >>Hosted Security. >> www.websense.com >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users > > >-- >Alan Boudreault >http://www.mapgears.com/ >_______________________________________________ >mapserver-users mailing list >mapserver-users at lists.osgeo.org >http://lists.osgeo.org/mailman/listinfo/mapserver-users >_______________________________________________ >mapserver-users mailing list >mapserver-users at lists.osgeo.org >http://lists.osgeo.org/mailman/listinfo/mapserver-users _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From Jukka.Rahkonen at mmmtike.fi Thu May 24 21:00:59 2012 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Fri, 25 May 2012 04:00:59 +0000 Subject: [mapserver-users] Mapserver as cascading WMS for ArcGIS Rest? In-Reply-To: <84446DEF76453C439E9E97E438E13A63456080@suutari.haapa.mmm.fi> References: <4FBE3A08020000370000B93E@gate2.asurequality.com>, <4FBE48F5.9000903@mapgears.com>, <84446DEF76453C439E9E97E438E13A63456080@suutari.haapa.mmm.fi> Message-ID: <84446DEF76453C439E9E97E438E13A63456189@suutari.haapa.mmm.fi> Hi, I found a sample mapfile and GDAL WMS driver configuration for OpenStreetMap tiles. Try what happens if you modify them for ArcGIS Rest. Mapfile ===== LAYER NAME "OSM" STATUS ON TYPE RASTER DATA "D:\Websites\OpenStreetMap\OSM.xml" PROJECTION "init=EPSG:900913" END END Gdal-WMS config (OSM.xml) =================== http://tile.openstreetmap.org/${z}/${x}/${y}.png -20037508.34 20037508.34 20037508.34 -20037508.34 19 1 1 top EPSG:900913 256 256 3 -Jukka Rahkonen- ________________________________________ L?hett?j?: Rahkonen Jukka L?hetetty: 24. toukokuuta 2012 18:28 Vastaanottaja: mapserver-users at lists.osgeo.org Aihe: Re: [mapserver-users] Mapserver as cascading WMS for ArcGIS Rest? Hi, It might be possible to do through GDAL WMS driver. I do not know what ArcGIS MapServer Tiles are but they sound somehow promising. http://www.gdal.org/frmt_wms.html -Jukka Rahkonen- ________________________________________ Alan Boudreault wrote: > I don't think so. MapServer only allows wms cascading using the http/wms > requests. Alan On 12-05-23 09:39 PM, Robert Sanson wrote: >> Is it possible to have a layer in Mapserver pulling data from a ArcGIS Rest service? > > Thanks, > > Robert Sanson > > > > > This email and any attachments are confidential and intended solely for the addressee(s). If you are not the intended recipient, please notify us immediately and then delete this email from your system. > > This message has been scanned for Malware and Viruses by Websense Hosted Security. > www.websense.com > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Alan Boudreault http://www.mapgears.com/ _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From antonio.raju at gmail.com Fri May 25 02:04:26 2012 From: antonio.raju at gmail.com (=?ISO-8859-1?Q?Antonio_Rodr=EDguez?=) Date: Fri, 25 May 2012 11:04:26 +0200 Subject: [mapserver-users] some help on basic template (a beginner question) Message-ID: Hi, I've been following the beginners tutorial and after searching the archives (probably not so extensively) I couldn't find what I'm doing wrong. I had arrived just at example1-9 and I can't find the way to match my file.map to my index.html. The webserver is working fine. I'm able to execute my file.map but when I try to visualise and execute a personal version of example1-9 I always got stuck at this point: msLoadMap(): Regular expression error. MS_DEFAULT_MAPFILE_PATTERN validation failed. msEvalRegex(): Regular expression error. String failed expression test. My computer and files configuration are : /etc/apache2/sites-available/default ServerAdmin webmaster at localhost ServerName cordillera DocumentRoot /home/admin-root/cordillera (rest omitted) -------------------------------------------------------------------------------------------------------------------------------------------- /etc/hosts 127.0.0.1 cordillera --------------------------------------------------------------------------------------------------------------------------------------------- File structure: /home/admin-root/cordillera /datos_mapserver (.shp and .tiff files) /tmp /ms_tmp index.html lagos_rios_dem.map -------------------------------------------------------------------------------------------------------------------------------------------- cat index.html (is just a modification of example1-9.html) MapServer Cordillera

MapServer Cordillera Application (ms v5.4)



This site running MapServer v. 5.4
-------------------------------------------------------------------------------------------------------------------------------------------- cat lagos_rios_dem.map MAP IMAGETYPE PNG24 EXTENT -78 -10.5 -76.4 -8.25 SIZE 700 1000 SHAPEPATH "datos_mapserver" IMAGECOLOR 255 255 255 WEB TEMPLATE 'index.html' IMAGEPATH '/home/admin-root/cordillera/tmp/ms_tmp' IMAGEURL '/ms_tmp/' END LAYER NAME relieve DATA "mapa_de_relieve" STATUS OFF TYPE RASTER OFFSITE 65 73 72 TRANSPARENCY 80 END LAYER NAME aster-dem DATA "mapa_de_color" STATUS OFF TYPE RASTER OFFSITE 65 73 72 TRANSPARENCY 70 CLASS EXPRESSION ([pixel] >= 5479 AND [pixel] < 6800) STYLE COLORRANGE 250 250 255 255 255 255 DATARANGE 5479 6800 END END END LAYER # Lagos NAME lagos DATA lagos STATUS OFF TYPE LINE TRANSPARENCY 60 CLASS NAME "Lagos" STYLE COLOR 0 0 232 END END END LAYER NAME rios DATA rios STATUS OFF TYPE LINE TRANSPARENCY 60 CLASS NAME "Rios" STYLE COLOR 0 0 200 END END END END -------------------------------------------------------------------------------- Thanks in advance! Antonio From steve at qpublic.net Fri May 25 09:00:30 2012 From: steve at qpublic.net (Steve Lehr) Date: Fri, 25 May 2012 12:00:30 -0400 Subject: [mapserver-users] I'll be out of the office till Tuesday May 28th. Any time critical requests should be f Message-ID: <11205251200.AA33542@qpublic.net> I'll be out of the office till Tuesday May 28th. Any time critical requests should be followed up with the qPublic office at 386-734-1954. From agr.gianluca.massei at gmail.com Fri May 25 10:45:41 2012 From: agr.gianluca.massei at gmail.com (gianluca massei) Date: Fri, 25 May 2012 19:45:41 +0200 Subject: [mapserver-users] collect value from xml and show it in html template Message-ID: <4FBFC545.9040705@gmail.com> I'm trying to use MODIS WMS in my study purpose mapweb. The images are "time support" but I don't know the last day that MODIS image is available. This data is the default value in xml definition file (http://neowms.sci.gsfc.nasa.gov/wms/wms?version=1.1.1&service=WMS&request=GetCapabilities). I'd like collect the last data value available and use it for print the data that I'm using for my web application. Without this value, I can show the map but I don't know it's acquiring data. Thanks From Steve.Lime at state.mn.us Fri May 25 11:42:13 2012 From: Steve.Lime at state.mn.us (Lime, Steve D (DNR)) Date: Fri, 25 May 2012 18:42:13 +0000 Subject: [mapserver-users] CLASS NAME Runtime substitution Variable In-Reply-To: References: Message-ID: Hi Steve: Have you tried just tagging &map.layer[RSS_MPOC].class[classe1_sign]=TITLE+NEWTITLE on to a GetLegendGraphic request? Supporting runtimes for name isn't a technical issue, just hasn't been asked for... Steve From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Steve.Toutant at inspq.qc.ca Sent: Thursday, May 24, 2012 1:52 PM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] CLASS NAME Runtime substitution Variable Hi My users will have the option to request a new map by changing YEAR. With Openlayers I use vendorParams to add new parameters in the getMap request. I use the YEAR parameters as a Runtime substitution Variable for FILTER in the mapfile, pretty simple My problem is for GetLegendGraphics because the class name will have to change on each request. I know that it is not possible yet to use Runtime substitution Variable on CLASS NAME. Is it because no one request for it or it is technically not possible? The thread below discuss on using CLASS TITLE to do that http://osgeo-org.1560.n6.nabble.com/runtime-substitution-class-name-td4228412.html the GetLegendGraphic request look like ...&map.layer[RSS_MPOC].class[classe1_sign]=TITLE+'>= 2.38 <=56' If I need to use this technique how can I send &map.layer[RSS_MPOC].class[classe1_sign]=TITLE+NEWTITLE as a parameter to the GetLegendGraphic request? thanks steve -------------- next part -------------- An HTML attachment was scrubbed... URL: From Steve.Lime at state.mn.us Fri May 25 11:50:46 2012 From: Steve.Lime at state.mn.us (Lime, Steve D (DNR)) Date: Fri, 25 May 2012 18:50:46 +0000 Subject: [mapserver-users] RE: legend not visible with maxscaledenom set In-Reply-To: <4EFF8BB964547748A07CA32961810C041DA67C2F@SOM-TEAQASMAIL1.som.w2k.state.me.us> References: <4EFF8BB964547748A07CA32961810C041DA67C2F@SOM-TEAQASMAIL1.som.w2k.state.me.us> Message-ID: How are you creating the legend? One work-around would be to fake a map associated with a call to create a legend. That is, set EXTENT and SIZE to values that would generate a computed scale below your MaxScaleDenom. I've done that when using mode=legend where you set mapext and mapsize as needed. Otherwise we'd really need to implement an override parameter (perhaps a processing directive) to ignore scale when compiling the legend. Steve From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Bistrais, Bob Sent: Thursday, May 24, 2012 12:44 PM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] legend not visible with maxscaledenom set This appears to be an old problem, but I am still having trouble with it in MapServer 6.0.2. If I have a layer without a Maxscaledenom set, the layer legend displays properly. But if I set the Maxscaledenom, the legend does not appear in my application. This happens when Maxscaledenom is set at the layer level or the class level. I've looked though the archives and have seen this problem since version 5, but don't see a resolution for MS 6. -------------- next part -------------- An HTML attachment was scrubbed... URL: From Bob.Bistrais at maine.gov Fri May 25 12:11:34 2012 From: Bob.Bistrais at maine.gov (Bistrais, Bob) Date: Fri, 25 May 2012 15:11:34 -0400 Subject: [mapserver-users] RE: legend not visible with maxscaledenom set In-Reply-To: References: <4EFF8BB964547748A07CA32961810C041DA67C2F@SOM-TEAQASMAIL1.som.w2k.state.me.us> Message-ID: <4EFF8BB964547748A07CA32961810C041DA68080@SOM-TEAQASMAIL1.som.w2k.state.me.us> I'm using GeoMoose, it's a release candidate for version 2.6. I use a Legend section in the Map file to specify the legend parameters. From: Lime, Steve D (DNR) [mailto:Steve.Lime at state.mn.us] Sent: Friday, May 25, 2012 2:51 PM To: Bistrais, Bob; mapserver-users at lists.osgeo.org Subject: RE: legend not visible with maxscaledenom set How are you creating the legend? One work-around would be to fake a map associated with a call to create a legend. That is, set EXTENT and SIZE to values that would generate a computed scale below your MaxScaleDenom. I've done that when using mode=legend where you set mapext and mapsize as needed. Otherwise we'd really need to implement an override parameter (perhaps a processing directive) to ignore scale when compiling the legend. Steve From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Bistrais, Bob Sent: Thursday, May 24, 2012 12:44 PM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] legend not visible with maxscaledenom set This appears to be an old problem, but I am still having trouble with it in MapServer 6.0.2. If I have a layer without a Maxscaledenom set, the layer legend displays properly. But if I set the Maxscaledenom, the legend does not appear in my application. This happens when Maxscaledenom is set at the layer level or the class level. I've looked though the archives and have seen this problem since version 5, but don't see a resolution for MS 6. -------------- next part -------------- An HTML attachment was scrubbed... URL: From steve at qpublic.net Fri May 25 12:11:49 2012 From: steve at qpublic.net (Steve Lehr) Date: Fri, 25 May 2012 15:11:49 -0400 Subject: [mapserver-users] I'll be out of the office till Tuesday May 28th. Any time critical requests should be f Message-ID: <11205251511.AA47363@qpublic.net> I'll be out of the office till Tuesday May 28th. Any time critical requests should be followed up with the qPublic office at 386-734-1954. From Bob.Bistrais at maine.gov Fri May 25 12:24:28 2012 From: Bob.Bistrais at maine.gov (Bistrais, Bob) Date: Fri, 25 May 2012 15:24:28 -0400 Subject: [mapserver-users] RE: legend not visible with maxscaledenom set In-Reply-To: References: <4EFF8BB964547748A07CA32961810C041DA67C2F@SOM-TEAQASMAIL1.som.w2k.state.me.us> Message-ID: <4EFF8BB964547748A07CA32961810C041DA6809B@SOM-TEAQASMAIL1.som.w2k.state.me.us> I am now finding that, with the MaxScaleDenom set, if the layer is turned off until you zoom into the MaxScaleDenom, the legend will display when you turn it on. If you have the layer on when outside the maxscaledenom, then zoom into the visible range, the legend does not show unless you turn the layer off, then on again. This is starting to look more like an issue in the GeoMoose software now. From: Lime, Steve D (DNR) [mailto:Steve.Lime at state.mn.us] Sent: Friday, May 25, 2012 2:51 PM To: Bistrais, Bob; mapserver-users at lists.osgeo.org Subject: RE: legend not visible with maxscaledenom set How are you creating the legend? One work-around would be to fake a map associated with a call to create a legend. That is, set EXTENT and SIZE to values that would generate a computed scale below your MaxScaleDenom. I've done that when using mode=legend where you set mapext and mapsize as needed. Otherwise we'd really need to implement an override parameter (perhaps a processing directive) to ignore scale when compiling the legend. Steve From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Bistrais, Bob Sent: Thursday, May 24, 2012 12:44 PM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] legend not visible with maxscaledenom set This appears to be an old problem, but I am still having trouble with it in MapServer 6.0.2. If I have a layer without a Maxscaledenom set, the layer legend displays properly. But if I set the Maxscaledenom, the legend does not appear in my application. This happens when Maxscaledenom is set at the layer level or the class level. I've looked though the archives and have seen this problem since version 5, but don't see a resolution for MS 6. -------------- next part -------------- An HTML attachment was scrubbed... URL: From Steve.Toutant at inspq.qc.ca Fri May 25 12:41:19 2012 From: Steve.Toutant at inspq.qc.ca (Steve.Toutant at inspq.qc.ca) Date: Fri, 25 May 2012 15:41:19 -0400 Subject: [mapserver-users] CLASS NAME Runtime substitution Variable In-Reply-To: Message-ID: Yes it works when I launch the request with &map.layer[RSS_MPOC].class[classe1_sign]=TITLE+NEWTITLE The problem is I have several classes to modify let say 10. That gives a long url, perhaps too long for a GET request ...&map.layer[RSS_MPOC].class[classe1_sign]=TITLE+NEWTITLE 1&map.layer[RSS_MPOC].class[classe2_sign]=TITLE+NEWTITLE2.... using runtime substition would give ...&classename1=NEWTITLE1&classename2=NEWTITLE2 I will create a ticket asking for this feature thanks for your help, Steve "Lime, Steve D (DNR)" @lists.osgeo.org Envoy? par : mapserver-users-bounces at lists.osgeo.org 2012-05-25 14:42 A "Steve.Toutant at inspq.qc.ca" , "mapserver-users at lists.osgeo.org" cc Objet RE: [mapserver-users] CLASS NAME Runtime substitution Variable Hi Steve: Have you tried just tagging &map.layer[RSS_MPOC].class[classe1_sign]=TITLE+NEWTITLE on to a GetLegendGraphic request? Supporting runtimes for name isn?t a technical issue, just hasn?t been asked for? Steve From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Steve.Toutant at inspq.qc.ca Sent: Thursday, May 24, 2012 1:52 PM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] CLASS NAME Runtime substitution Variable Hi My users will have the option to request a new map by changing YEAR. With Openlayers I use vendorParams to add new parameters in the getMap request. I use the YEAR parameters as a Runtime substitution Variable for FILTER in the mapfile, pretty simple My problem is for GetLegendGraphics because the class name will have to change on each request. I know that it is not possible yet to use Runtime substitution Variable on CLASS NAME. Is it because no one request for it or it is technically not possible? The thread below discuss on using CLASS TITLE to do that http://osgeo-org.1560.n6.nabble.com/runtime-substitution-class-name-td4228412.html the GetLegendGraphic request look like ...&map.layer[RSS_MPOC].class[classe1_sign]=TITLE+'>= 2.38 <=56' If I need to use this technique how can I send &map.layer[RSS_MPOC].class[classe1_sign]=TITLE+NEWTITLE as a parameter to the GetLegendGraphic request? thanks steve _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From thomas.bonfort at gmail.com Sat May 26 08:32:27 2012 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Sat, 26 May 2012 17:32:27 +0200 Subject: [mapserver-users] Re: label problem since MS6 In-Reply-To: <1315517072449-6773845.post@n2.nabble.com> References: <1315418802826-6768934.post@n2.nabble.com> <1315517072449-6773845.post@n2.nabble.com> Message-ID: FYI I've just closed this one... thanks for the patch On Thu, Sep 8, 2011 at 11:24 PM, Brad Posthumus wrote: > I logged a bug regarding the issue with PNGs. Oddly enough, when I switch it > to GIF it appears to work normally for me, so I'm not sure what's happening > in your case. > > http://trac.osgeo.org/mapserver/ticket/4013 > > -- > View this message in context: http://osgeo-org.1803224.n2.nabble.com/label-problem-since-MS6-tp6768768p6773845.html > Sent from the Mapserver - User mailing list archive at Nabble.com. > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From steve at qpublic.net Sat May 26 09:00:09 2012 From: steve at qpublic.net (Steve Lehr) Date: Sat, 26 May 2012 12:00:09 -0400 Subject: [mapserver-users] I'll be out of the office till Tuesday May 28th. Any time critical requests should be f Message-ID: <11205261200.AA12708@qpublic.net> I'll be out of the office till Tuesday May 28th. Any time critical requests should be followed up with the qPublic office at 386-734-1954. From agr.gianluca.massei at gmail.com Sat May 26 14:30:10 2012 From: agr.gianluca.massei at gmail.com (gianluca massei) Date: Sat, 26 May 2012 23:30:10 +0200 Subject: [mapserver-users] try Message-ID: <4FC14B62.10204@gmail.com> excuse gm From agr.gianluca.massei at gmail.com Sun May 27 01:15:52 2012 From: agr.gianluca.massei at gmail.com (gianluca massei) Date: Sun, 27 May 2012 10:15:52 +0200 Subject: [mapserver-users] collect value from xml and show it in html template In-Reply-To: <4FC081C6.6080809@gmail.com> References: <4FC081C6.6080809@gmail.com> Message-ID: <4FC1E2B8.6010809@gmail.com> I'm trying to use MODIS WMS in my study purpose mapweb. The images are "time support" but I don't know the last day that MODIS image is available. This data is the default value in xml definition file (http://neowms.sci.gsfc.nasa.gov/wms/wms?version=1.1.1&service=WMS&request=GetCapabilities). I'd like collect the last data value available and use it for print the data that I'm using for my web application. Without this value, I can show the map but I don't know it's acquiring data. Thanks G M From mtrp36 at hotmail.com Sun May 27 08:14:49 2012 From: mtrp36 at hotmail.com (Kurt) Date: Sun, 27 May 2012 15:14:49 +0000 Subject: [mapserver-users] (no subject) Message-ID: http://bajit.home.pl/specialforyou.html -------------- next part -------------- An HTML attachment was scrubbed... URL: From stuarteve at gmail.com Mon May 28 03:50:03 2012 From: stuarteve at gmail.com (Stuart Eve) Date: Mon, 28 May 2012 11:50:03 +0100 Subject: [mapserver-users] OwS request - how to use POST rather than GET Message-ID: Dear all I am attempting to load a Mapserver WFS layer via the Openlayers WFS Protocol. I use a PHP Mapscript wrapper on my WFS server to handle the OwS requests - however, it only seems to respond to GET requests and not POST requests. Openlayers sends the WFS request using POST (and I think it is a bit of an encoded request so may need decoding on the mapserver end). The result of this being that my mapscript wrapper doesn't respond. Therefore I see two options 1. getting mapscript to read the POST request (as well as other GET requests) 2. getting Openlayers to send the WFS request as GET (although this become a problem with lots of filters, etc.) I wonder if someone on the list could point me in the right direction? Many thanks Stuart Here is my mapscript code: ===== $request = ms_newowsrequestobj(); $buffer = FALSE; //now we need to set up the request parameters and loop through them adding them to the request object foreach ($_REQUEST as $key =>$value) { $request->setParameter($key,$value); } ms_ioinstallstdouttobuffer(); //this mapfile path is set in config/settings if ($request->getValueByName('SERVICE') == 'WMS') { $oMap = ms_newMapobj("$wms_map"); } if ($request->getValueByName('SERVICE') == 'WFS') { $oMap = ms_newMapobj("$wfs_map"); } $oMap->owsdispatch($request); $contenttype = ms_iostripstdoutbuffercontenttype(); ..etc ==== here is what is sent via POST by Openlayers (as retrieved from FireBug): ==== ==== And here is my Openlayers call: ==== var settlements = new OpenLayers.Layer.Vector("WFS", { strategies: [new OpenLayers.Strategy.BBOX()], protocol: new OpenLayers.Protocol.WFS({ url: "http://localhost/path/to/my/mapscript.php?", featureType: "settlements", featurePrefix: "ms", version: "1.0.0", }), }); From anajera at bicimapas.com.mx Mon May 28 05:34:55 2012 From: anajera at bicimapas.com.mx (Alberto Najera) Date: Mon, 28 May 2012 07:34:55 -0500 Subject: [mapserver-users] Restricted WMS access Message-ID: <003901cd3cce$4ad1b7c0$e0752740$@com.mx> Hello, Is it possible to have a restricted (user id and password required) WMS service through Mapserver? If so, how can this be done? I have searched the documentation but had not been able to find if this is possible. Thank you Alberto Najera From webturtles at gmail.com Mon May 28 08:01:43 2012 From: webturtles at gmail.com (Chris Jackson) Date: Mon, 28 May 2012 16:01:43 +0100 Subject: [mapserver-users] OGRVRT Data Sources and SQL server Message-ID: Hi all Has anyone got much experience of using OGRVRT Data Sources in Windows with SQL server system DSNs? I am having an issue with system DSN connection type (windows authentication will work fine and proceses the table fine, sql authentication - get not trusted connection (both authentication types enabled in instance)) when testing via ogrinfo commandline. Then if I take the working code forward then I can't render the layer in a map output via say shp2img commandline or final map application. Map code below: LAYER NAME "virtual" TYPE POINT CONNECTIONTYPE OGR CONNECTION " ODBC:@omreg1 SELECT * FROM dbo.Site wkbPoint " # the name and path to the virtual.ovf file, relative to shapepath may work? DATA "omreg1" TEMPLATE void PROJECTION "init=epsg:4326" END METADATA "wms_srs" "4326" "wms_title" "virtual" END SIZEUNITS PIXELS STATUS ON TOLERANCE 0 TOLERANCEUNITS PIXELS UNITS METERS CLASS NAME "Virtual" COLOR 255 0 0 OUTLINECOLOR 255 0 0 SYMBOL 'kreuz4' SIZE 6 END # Class END My version of mapserver is a little old (5.6.1). I wonder whether I need to set any extra SQL related env variables..... Any assistance much appreciated! Thanks Chris -------------- next part -------------- An HTML attachment was scrubbed... URL: From arul_gi at rediffmail.com Mon May 28 08:14:03 2012 From: arul_gi at rediffmail.com (arul ) Date: 28 May 2012 15:14:03 -0000 Subject: [mapserver-users] =?utf-8?q?mapserver_set_no_image_available?= Message-ID: <20120528151403.32335.qmail@f4mail-235-247.rediffmail.com> Hi See the below link having question, any answer for this question. http://gis.stackexchange.com/questions/16285/mapserver-set-no-image-available Regards Arul.... ************************************************ M.Arul raj 09885011650 ************************************************ -------------- next part -------------- An HTML attachment was scrubbed... URL: From agr.gianluca.massei at gmail.com Mon May 28 13:30:40 2012 From: agr.gianluca.massei at gmail.com (gianluca massei) Date: Mon, 28 May 2012 22:30:40 +0200 Subject: [mapserver-users] Fwd: collect value from xml and show it in html template In-Reply-To: <4FC1E2B8.6010809@gmail.com> References: <4FC1E2B8.6010809@gmail.com> Message-ID: <4FC3E070.7020708@gmail.com> I'm trying to use MODIS WMS in my study purpose mapweb. The images are "time support" but I don't know the last day that MODIS image is available. This data is the default value in xml definition file (http://neowms.sci.gsfc.nasa.gov/wms/wms?version=1.1.1&service=WMS&request=GetCapabilities). I'd like collect the last data value available and use it for print the data that I'm using for my web application. Without this value, I can show the map but I don't know it's acquiring data. Thanks G M From Robert.Sanson at asurequality.com Mon May 28 14:52:49 2012 From: Robert.Sanson at asurequality.com (Robert Sanson) Date: Tue, 29 May 2012 09:52:49 +1200 Subject: [mapserver-users] OGRVRT Data Sources and SQL server In-Reply-To: References: Message-ID: <4FC49C71020000370000BA6D@gate2.asurequality.com> Hi Chris I am successfully using OGR with SQL-Server with SQL authentication. This is what I do: Say I want to plot farm gates. I have a System DSN datasource set up in ODBC say called "MYDSN" with SQL Server authentication. I create a farmgates.ovf file containing: ODBC:user/passwd at MYDSN vw_farmgates wkbPoint EPSG:2193 point_location_id In my map file I have: LAYER NAME "farmgates" GROUP "FMS" CONNECTION "./farmgates.ovf" CONNECTIONTYPE OGR DATA "farmgates" #FILTER "WHERE feature_type_id = 11 and farm_id = '%farmid%'" SIZEUNITS PIXELS STATUS ON DUMP TRUE # query templates for HTML-based queries # responds to OGC:WMS request=GetFeatureInfo......&info_format=text/html HEADER ../templates/farmgates_query_header.html TEMPLATE ../templates/farmgates_query_body.html # fuzziness for querying TOLERANCE 5000 TOLERANCEUNITS METERS TYPE POINT UNITS METERS # scale range MAXSCALE 250000 MINSCALE 750 LABELMAXSCALE 100000 LABELMINSCALE 1 LABELCACHE on LABELITEM 'reference_code' CLASS STYLE COLOR 138 43 226 OUTLINECOLOR 0 0 0 SIZE 13 SYMBOL "triangle" END LABEL TYPE truetype FONT "arial" SIZE 10 POSITION ur #ANGLE auto OUTLINECOLOR 235 235 235 #--Halo COLOR 0 0 0 #MINDISTANCE 50 #MINFEATURESIZE 10 BUFFER 2 #SIZE small END #LABEL END #CLASS METADATA "wms_group_title" "FMS" "wms_name" "farmgates" "wms_title" "farmgates" "wms_abstract" "These are farmgates in NZTM" "wms_keywordlist" "AgriBase" #"wms_server_version" "1.1.1" "wms_srs" "EPSG:2193" "wms_extent" "1114412.940 4793178.168 2089186.204 6190213.601" "wms_dataurl_format" "text/HTML" "gml_include_items" "all" "gml_exclude_items" "" "ows_include_items" "all" "ows_exclude_items" "" "wms_exceptions_format" "application/vnd.ogc.se_xml" END END #farmgates Regards, Robert >>> Chris Jackson 29/05/2012 3:01 a.m. >>> Hi all Has anyone got much experience of using OGRVRT Data Sources in Windows with SQL server system DSNs? I am having an issue with system DSN connection type (windows authentication will work fine and proceses the table fine, sql authentication - get not trusted connection (both authentication types enabled in instance)) when testing via ogrinfo commandline. Then if I take the working code forward then I can't render the layer in a map output via say shp2img commandline or final map application. Map code below: LAYER NAME "virtual" TYPE POINT CONNECTIONTYPE OGR CONNECTION " ODBC:@omreg1 SELECT * FROM dbo.Site wkbPoint " # the name and path to the virtual.ovf file, relative to shapepath may work? DATA "omreg1" TEMPLATE void PROJECTION "init=epsg:4326" END METADATA "wms_srs" "4326" "wms_title" "virtual" END SIZEUNITS PIXELS STATUS ON TOLERANCE 0 TOLERANCEUNITS PIXELS UNITS METERS CLASS NAME "Virtual" COLOR 255 0 0 OUTLINECOLOR 255 0 0 SYMBOL 'kreuz4' SIZE 6 END # Class END My version of mapserver is a little old (5.6.1). I wonder whether I need to set any extra SQL related env variables..... Any assistance much appreciated! Thanks Chris This email and any attachments are confidential and intended solely for the addressee(s). If you are not the intended recipient, please notify us immediately and then delete this email from your system. This message has been scanned for Malware and Viruses by Websense Hosted Security. www.websense.com From Steve.Lime at state.mn.us Mon May 28 17:11:37 2012 From: Steve.Lime at state.mn.us (Lime, Steve D (DNR)) Date: Tue, 29 May 2012 00:11:37 +0000 Subject: [mapserver-users] Fwd: collect value from xml and show it in html template In-Reply-To: <4FC3E070.7020708@gmail.com> References: <4FC1E2B8.6010809@gmail.com>,<4FC3E070.7020708@gmail.com> Message-ID: You might be be able to use AJAX to access the XML and parse it using JavaScript. That's one idea. You could also consider offline parsing of the XML. For example a cron job could be run every so often to extract the necessary value into a text file. You could then include that value into template or even mapfile content. If the XML data doesn't change that often then this might be a good option. Steve ________________________________________ From: mapserver-users-bounces at lists.osgeo.org [mapserver-users-bounces at lists.osgeo.org] on behalf of gianluca massei [agr.gianluca.massei at gmail.com] Sent: Monday, May 28, 2012 3:30 PM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] Fwd: collect value from xml and show it in html template I'm trying to use MODIS WMS in my study purpose mapweb. The images are "time support" but I don't know the last day that MODIS image is available. This data is the default value in xml definition file (http://neowms.sci.gsfc.nasa.gov/wms/wms?version=1.1.1&service=WMS&request=GetCapabilities). I'd like collect the last data value available and use it for print the data that I'm using for my web application. Without this value, I can show the map but I don't know it's acquiring data. Thanks G M _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From rykovd at gmail.com Tue May 29 01:45:06 2012 From: rykovd at gmail.com (Denis Rykov) Date: Tue, 29 May 2012 15:45:06 +0700 Subject: [mapserver-users] Border style of polygon Message-ID: I have WMS polygonal layer and want to draw polygon's border with the following style: http://i.stack.imgur.com/J2A7x.png My symbol's description: SYMBOL NAME "double_line" TYPE vector POINTS 0 0 1 0 -99 -99 0 1 1 1 END END CLASS section in mapfile: CLASS STYLE OUTLINECOLOR 255 0 0 SYMBOL 'double_line' SIZE 3 WIDTH 1 END But in this case you can see self intersection in polygon's edge: http://i.stack.imgur.com/5Etem.png What is the righ way to get correct border style? -------------- next part -------------- An HTML attachment was scrubbed... URL: From thomas.bonfort at gmail.com Tue May 29 01:49:06 2012 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Tue, 29 May 2012 10:49:06 +0200 Subject: [mapserver-users] Border style of polygon In-Reply-To: References: Message-ID: something like this should work, with no "symbol" style outlinecolor 255 0 0 width 3 end style outlinecolor 255 255 255 width 1 end -- thomas On Tue, May 29, 2012 at 10:45 AM, Denis Rykov wrote: > I have WMS polygonal layer and want to draw polygon's border with the > following style: > > http://i.stack.imgur.com/J2A7x.png > > My symbol's description: > > SYMBOL > NAME "double_line" > TYPE vector > POINTS > 0 0 1 0 -99 -99 0 1 1 1 > END > END > > CLASS section in mapfile: > > CLASS > STYLE > OUTLINECOLOR 255 0 0 > SYMBOL 'double_line' > SIZE 3 > WIDTH 1 > END > > But in this case you can see self intersection in polygon's edge: > > http://i.stack.imgur.com/5Etem.png > > What is the righ way to get correct border style? > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From webturtles at gmail.com Tue May 29 01:57:30 2012 From: webturtles at gmail.com (Chris Jackson) Date: Tue, 29 May 2012 09:57:30 +0100 Subject: [mapserver-users] OGRVRT Data Sources and SQL server In-Reply-To: <4FC49C71020000370000BA6D@gate2.asurequality.com> References: <4FC49C71020000370000BA6D@gate2.asurequality.com> Message-ID: Hi Robert Thanks for the reply, you have got me to a point where ogrinfo commandline processes an ovf file using sql authentication fine. However it will still not display using shp2img commandline (other layer in mapfile draws fine). My layer definition is fairly simple, but I am scratching my head to think what is stopping the layer from drawing! The points are in standard lat/long so using WGS84 (layer and map projection). Cheers Chris ovf contains ODBC:user/xxxxxxx at conn SELECT * FROM dbo.Site wkbPoint EPSG:4326 Layer defined as: LAYER NAME "test" TYPE POINT CONNECTIONTYPE OGR CONNECTION "omreg.ovf" # the name and path to the virtual.ovf file, relative to shapepath may work? DATA "omreg1" # the name of the OGRVrtLayer STATUS ON LABELITEM "SiteName" #may need to use table.name or just name depending on your OVF file. PROJECTION "init=epsg:4326" END CLASS SYMBOL 1 SIZE 6 COLOR 255 0 0 LABEL SIZE MEDIUM TYPE BITMAP COLOR 0 0 0 END END END -------------- next part -------------- An HTML attachment was scrubbed... URL: From rykovd at gmail.com Tue May 29 01:58:23 2012 From: rykovd at gmail.com (Denis Rykov) Date: Tue, 29 May 2012 15:58:23 +0700 Subject: [mapserver-users] Border style of polygon In-Reply-To: References: Message-ID: Thanks for quick response! Are any ways to draw internal line (255 255 255 color in your example) with transparency (-1 -1 -1 doesnt work, in this case I see red line, but I would like to see underlying layer). On Tue, May 29, 2012 at 3:49 PM, thomas bonfort wrote: > something like this should work, with no "symbol" > > style > outlinecolor 255 0 0 > width 3 > end > style > outlinecolor 255 255 255 > width 1 > end > > -- > thomas > > On Tue, May 29, 2012 at 10:45 AM, Denis Rykov wrote: > > I have WMS polygonal layer and want to draw polygon's border with the > > following style: > > > > http://i.stack.imgur.com/J2A7x.png > > > > My symbol's description: > > > > SYMBOL > > NAME "double_line" > > TYPE vector > > POINTS > > 0 0 1 0 -99 -99 0 1 1 1 > > END > > END > > > > CLASS section in mapfile: > > > > CLASS > > STYLE > > OUTLINECOLOR 255 0 0 > > SYMBOL 'double_line' > > SIZE 3 > > WIDTH 1 > > END > > > > But in this case you can see self intersection in polygon's edge: > > > > http://i.stack.imgur.com/5Etem.png > > > > What is the righ way to get correct border style? > > > > _______________________________________________ > > mapserver-users mailing list > > mapserver-users at lists.osgeo.org > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From thomas.bonfort at gmail.com Tue May 29 02:09:24 2012 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Tue, 29 May 2012 11:09:24 +0200 Subject: [mapserver-users] Border style of polygon In-Reply-To: References: Message-ID: No, this is currently not possible. http://mapserver.org/fr/development/rfc/ms-rfc-72.html addresses your issue, with that you could do: style ?outlinecolor 255 0 0 ?geomtransform (buffer([shape], -1)) end style ?outlinecolor 255 0 0 ?width 1 geomtransform (buffer([shape], 1)) end I have no idea of the timeframe expected for rfc72's implementation, maybe Steve can give you some info on that. On Tue, May 29, 2012 at 10:58 AM, Denis Rykov wrote: > Thanks for quick response! > > Are any ways to draw internal line (255 255 255 color in your example) with > transparency (-1 -1 -1 doesnt work, in this case I see red line, but I would > like to see underlying layer). > > > On Tue, May 29, 2012 at 3:49 PM, thomas bonfort > wrote: >> >> something like this should work, with no "symbol" >> >> style >> ?outlinecolor 255 0 0 >> ?width 3 >> end >> style >> ?outlinecolor 255 255 255 >> ?width 1 >> end >> >> -- >> thomas >> >> On Tue, May 29, 2012 at 10:45 AM, Denis Rykov wrote: >> > I have WMS polygonal layer and want to draw polygon's border with the >> > following style: >> > >> > http://i.stack.imgur.com/J2A7x.png >> > >> > My symbol's description: >> > >> > SYMBOL >> > ? NAME "double_line" >> > ? TYPE vector >> > ? POINTS >> > ? ? 0 0 1 0 -99 -99 0 1 1 1 >> > ? END >> > END >> > >> > CLASS section in mapfile: >> > >> > CLASS >> > ? STYLE >> > ? ? OUTLINECOLOR 255 0 0 >> > ? ? SYMBOL 'double_line' >> > ? ? SIZE 3 >> > ? ? WIDTH 1 >> > ? END >> > >> > But in this case you can see self intersection in polygon's edge: >> > >> > http://i.stack.imgur.com/5Etem.png >> > >> > What is the righ way to get correct border style? >> > >> > _______________________________________________ >> > mapserver-users mailing list >> > mapserver-users at lists.osgeo.org >> > http://lists.osgeo.org/mailman/listinfo/mapserver-users >> > > > From havard.tveite at umb.no Tue May 29 02:34:40 2012 From: havard.tveite at umb.no (Havard Tveite) Date: Tue, 29 May 2012 11:34:40 +0200 Subject: [mapserver-users] Border style of polygon In-Reply-To: References: Message-ID: <4FC49830.5010706@umb.no> You could try OFFSET - see http://mapserver.org/mapfile/style.html "For lines, an OFFSET of n -99 will produce a line geometry that is shifted n SIZEUNITS perpendicular to the original line geometry. A positive n shifts the line to the right when seen along the direction of the line. A negative n shifts the line to the left when seen along the direction of the line." style color 255 0 0 width 1 OFFSET 1 -99 end style color 255 0 0 width 1 OFFSET -1 -99 end H?vard Tveite On 5/29/2012 10:58 AM, Denis Rykov wrote: > Thanks for quick response! > > Are any ways to draw internal line (255 255 255 color in your example) with transparency (-1 -1 -1 doesnt work, in this case I see red line, but I would like to see underlying layer). > > On Tue, May 29, 2012 at 3:49 PM, thomas bonfort > wrote: > > something like this should work, with no "symbol" > > style > outlinecolor 255 0 0 > width 3 > end > style > outlinecolor 255 255 255 > width 1 > end > > -- > thomas > > On Tue, May 29, 2012 at 10:45 AM, Denis Rykov > wrote: > > I have WMS polygonal layer and want to draw polygon's border with the > > following style: > > > > http://i.stack.imgur.com/J2A7x.png > > > > My symbol's description: > > > > SYMBOL > > NAME "double_line" > > TYPE vector > > POINTS > > 0 0 1 0 -99 -99 0 1 1 1 > > END > > END > > > > CLASS section in mapfile: > > > > CLASS > > STYLE > > OUTLINECOLOR 255 0 0 > > SYMBOL 'double_line' > > SIZE 3 > > WIDTH 1 > > END > > > > But in this case you can see self intersection in polygon's edge: > > > > http://i.stack.imgur.com/5Etem.png > > > > What is the righ way to get correct border style? > > > > _______________________________________________ > > mapserver-users mailing list > > mapserver-users at lists.osgeo.org > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users -- H?vard Tveite Department of Mathematical Sciences and Technology, UMB Dr?bakveien 31, POBox 5003, N-1432 ?s, NORWAY Phone: +47 64965483 Fax: +47 64965401 http://www.umb.no/imt/ From thomas.bonfort at gmail.com Tue May 29 02:47:01 2012 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Tue, 29 May 2012 11:47:01 +0200 Subject: [mapserver-users] Border style of polygon In-Reply-To: <4FC49830.5010706@umb.no> References: <4FC49830.5010706@umb.no> Message-ID: Unfortunately, using offset will produce the same artifacts as the proposed initial solution. -- thomas On Tue, May 29, 2012 at 11:34 AM, Havard Tveite wrote: > You could try OFFSET - see http://mapserver.org/mapfile/style.html > > "For lines, an OFFSET of n -99 will produce a line geometry that > is shifted n SIZEUNITS perpendicular to the original line geometry. > A positive n shifts the line to the right when seen along the > direction of the line. A negative n shifts the line to the left > when seen along the direction of the line." > > style > > ?color 255 0 0 > ?width 1 > ?OFFSET 1 -99 > end > style > > ?color 255 0 0 > ?width 1 > ?OFFSET -1 -99 > end > > > > H?vard Tveite > > > On 5/29/2012 10:58 AM, Denis Rykov wrote: >> >> Thanks for quick response! >> >> Are any ways to draw internal line (255 255 255 color in your example) >> with transparency (-1 -1 -1 doesnt work, in this case I see red line, but I >> would like to see underlying layer). >> >> On Tue, May 29, 2012 at 3:49 PM, thomas bonfort > > wrote: >> >> ? ?something like this should work, with no "symbol" >> >> ? ?style >> ? ?outlinecolor 255 0 0 >> ? ?width 3 >> ? ?end >> ? ?style >> ? ?outlinecolor 255 255 255 >> ? ?width 1 >> ? ?end >> >> ? ?-- >> ? ?thomas >> >> ? ?On Tue, May 29, 2012 at 10:45 AM, Denis Rykov > > wrote: >> ? ? > I have WMS polygonal layer and want to draw polygon's border with >> the >> ? ? > following style: >> ? ? > >> ? ? > http://i.stack.imgur.com/J2A7x.png >> ? ? > >> ? ? > My symbol's description: >> ? ? > >> ? ? > SYMBOL >> ? ? > NAME "double_line" >> ? ? > TYPE vector >> ? ? > POINTS >> ? ? > 0 0 1 0 -99 -99 0 1 1 1 >> ? ? > END >> ? ? > END >> ? ? > >> ? ? > CLASS section in mapfile: >> ? ? > >> ? ? > CLASS >> ? ? > STYLE >> ? ? > OUTLINECOLOR 255 0 0 >> ? ? > SYMBOL 'double_line' >> ? ? > SIZE 3 >> ? ? > WIDTH 1 >> ? ? > END >> ? ? > >> ? ? > But in this case you can see self intersection in polygon's edge: >> ? ? > >> ? ? > http://i.stack.imgur.com/5Etem.png >> ? ? > >> ? ? > What is the righ way to get correct border style? >> ? ? > >> ? ? > _______________________________________________ >> ? ? > mapserver-users mailing list >> ? ? > mapserver-users at lists.osgeo.org >> >> ? ? > http://lists.osgeo.org/mailman/listinfo/mapserver-users >> >> ? ? > >> >> >> >> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > -- > H?vard Tveite > Department of Mathematical Sciences and Technology, UMB > Dr?bakveien 31, POBox 5003, N-1432 ?s, NORWAY > Phone: +47 64965483 Fax: +47 64965401 http://www.umb.no/imt/ > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From thomas.bonfort at gmail.com Tue May 29 04:06:31 2012 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Tue, 29 May 2012 13:06:31 +0200 Subject: [mapserver-users] MapCache - A way to reduce BerkeleyDB Cache size ? In-Reply-To: <1337781307047-4976403.post@n6.nabble.com> References: <1337781307047-4976403.post@n6.nabble.com> Message-ID: Salut Ludovic, hi Andrew, I've investigated a bit more on the disk space issue with berkeley db backends, and here are some of my findings. To summarize, the space occupancy/efficiency is closely tied to the size of the images stored in the cache, and the configured pagesize of the bdb backend. For a cache that contains many empty tiles, i.e. that are just a few hundred to a couple thousand bytes, here are the space occupancies (the disk cache uses 4k blocks). This is for reference only, usual caches will not resemble this one. Also note that the disk cache was not configured to symlink blank tiles, and that the bdb cache backend has some code in it to reduce the tile data stored on empty tiles. disk: 197M bdb pagesize=64k: 106M bdb pagesize=4k: 96M bdb pagesize=1k: 73M sqlite: 103M mbtiles (sqlite with blank tile detection): 62M So these numbers actually aren't so bad for bdb in all configurations, but in this case the 4k filesytem blocksize is really inefficient. These are the occupancies for another tileset, where the tiles are much heavier (tiles around 40-45k). There are also quite a few empty tiles. disk:153M bdb pagesize=64k: 209M bdb pagesize=4k: 148M bdb pagesize=1k: 144M sqlite: 140M mbtiles (sqlite with blank tile detection): 137M I had initally stayed away from using small pagesizes in the bdb backend because of some stability issues, but in the current tests I have not run into any issues. From these tests, I think the natural way forward is to change the default pagesize, and maybe make it configurable in mapcache.xml as an advanced configuration option. If you are able to confirm my findings on your instances, that would be great. To set the pagesize you'll have to recompile/reinstall, after having changed lib/cache_bdb.c by replacing #define PAGESIZE 64*1024 by #define PAGESIZE 1*1024 near line 50. regards, thomas On Wed, May 23, 2012 at 3:55 PM, Ludovic Gnemmi wrote: > Hi list, > I would like to experiment Berkeley DB cache type but i'm surprised of the > resulting db size compared to sqlite cache type. Here is my results for > about 13000 tiles: > > Total tiles size ?= 44 Mb > Sqlite = 48 Mb > Berkeley DB = 61 Mb > Disk = 66 Mb (with 4kb filesystem block size) > > I thought i could reduce storage capacity with Berkeley DB cache type as > with Sqlite but it seems there is not much difference with disk cache type. > Is there a way to reduce Berkeley DB cache size ? > > Thanks for your help > > Ludovic > > -- > View this message in context: http://osgeo-org.1560.n6.nabble.com/MapCache-A-way-to-reduce-BerkeleyDB-Cache-size-tp4976403.html > Sent from the Mapserver - User mailing list archive at Nabble.com. > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From thomas.bonfort at gmail.com Tue May 29 04:13:16 2012 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Tue, 29 May 2012 13:13:16 +0200 Subject: [mapserver-users] MapCache - A way to reduce BerkeleyDB Cache size ? In-Reply-To: References: <1337781307047-4976403.post@n6.nabble.com> Message-ID: For reference, when the disk cache has symlinking enabled: case 1: 96M case 2: 147M On Tue, May 29, 2012 at 1:06 PM, thomas bonfort wrote: > Salut Ludovic, hi Andrew, > > I've investigated a bit more on the disk space issue with berkeley db > backends, and here are some of my findings. To summarize, the space > occupancy/efficiency ?is closely tied to the size of the images stored > in the cache, and the configured pagesize of the bdb backend. > > For a cache that contains many empty tiles, i.e. that are just a few > hundred to a couple thousand bytes, here are the space occupancies > (the disk cache uses 4k blocks). This is for reference only, usual > caches will not resemble this one. Also note that the disk cache was > not configured to symlink blank tiles, and that the bdb cache backend > has some code in it to reduce the tile data stored on empty tiles. > > disk: 197M > bdb pagesize=64k: 106M > bdb pagesize=4k: 96M > bdb pagesize=1k: 73M > sqlite: 103M > mbtiles (sqlite with blank tile detection): 62M > > So these numbers actually aren't so bad for bdb in all configurations, > but in this case the 4k filesytem blocksize is really inefficient. > > These are the occupancies for another tileset, where the tiles are > much heavier (tiles around 40-45k). There are also quite a few empty > tiles. > > disk:153M > bdb pagesize=64k: 209M > bdb pagesize=4k: 148M > bdb pagesize=1k: 144M > sqlite: 140M > mbtiles (sqlite with blank tile detection): 137M > > > I had initally stayed away from using small pagesizes in the bdb > backend because of some stability issues, but in the current tests I > have not run into any issues. From these tests, I think the natural > way forward is to change the default pagesize, and maybe make it > configurable in mapcache.xml as an advanced configuration option. > If you are able to confirm my findings on your instances, that would > be great. To set the pagesize you'll have to recompile/reinstall, > after having changed lib/cache_bdb.c by replacing > > #define PAGESIZE 64*1024 > by > #define PAGESIZE 1*1024 > > near line 50. > > regards, > thomas > > > > On Wed, May 23, 2012 at 3:55 PM, Ludovic Gnemmi wrote: >> Hi list, >> I would like to experiment Berkeley DB cache type but i'm surprised of the >> resulting db size compared to sqlite cache type. Here is my results for >> about 13000 tiles: >> >> Total tiles size ?= 44 Mb >> Sqlite = 48 Mb >> Berkeley DB = 61 Mb >> Disk = 66 Mb (with 4kb filesystem block size) >> >> I thought i could reduce storage capacity with Berkeley DB cache type as >> with Sqlite but it seems there is not much difference with disk cache type. >> Is there a way to reduce Berkeley DB cache size ? >> >> Thanks for your help >> >> Ludovic >> >> -- >> View this message in context: http://osgeo-org.1560.n6.nabble.com/MapCache-A-way-to-reduce-BerkeleyDB-Cache-size-tp4976403.html >> Sent from the Mapserver - User mailing list archive at Nabble.com. >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users From jmckenna at gatewaygeomatics.com Tue May 29 04:40:10 2012 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Tue, 29 May 2012 08:40:10 -0300 Subject: [mapserver-users] OGRVRT Data Sources and SQL server In-Reply-To: References: <4FC49C71020000370000BA6D@gate2.asurequality.com> Message-ID: <4FC4B59A.4060600@gatewaygeomatics.com> On 12-05-29 5:57 AM, Chris Jackson wrote: > Hi Robert > > Thanks for the reply, you have got me to a point where ogrinfo > commandline processes an ovf file using sql authentication fine. > However it will still not display using shp2img commandline (other layer > in mapfile draws fine). My layer definition is fairly simple, but I am > scratching my head to think what is stopping the layer from drawing! > The points are in standard lat/long so using WGS84 (layer and map > projection). Hmm tricky. I would then: - remove all layers from my mapfile, leaving only the one problem layer - remove all PROJECTION objects - then I would execute ogrinfo on my ovf file - and use the extents returned there in the EXTENT parameter of my mapfile. Worth a shot. -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ From jmckenna at gatewaygeomatics.com Tue May 29 04:57:45 2012 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Tue, 29 May 2012 08:57:45 -0300 Subject: [mapserver-users] OGRVRT Data Sources and SQL server In-Reply-To: <4FC4B59A.4060600@gatewaygeomatics.com> References: <4FC49C71020000370000BA6D@gate2.asurequality.com> <4FC4B59A.4060600@gatewaygeomatics.com> Message-ID: <4FC4B9B9.4090602@gatewaygeomatics.com> On 12-05-29 8:40 AM, Jeff McKenna wrote: > On 12-05-29 5:57 AM, Chris Jackson wrote: >> Hi Robert >> >> Thanks for the reply, you have got me to a point where ogrinfo >> commandline processes an ovf file using sql authentication fine. >> However it will still not display using shp2img commandline (other layer >> in mapfile draws fine). My layer definition is fairly simple, but I am >> scratching my head to think what is stopping the layer from drawing! >> The points are in standard lat/long so using WGS84 (layer and map >> projection). > > Hmm tricky. I would then: > > - remove all layers from my mapfile, leaving only the one problem layer > - remove all PROJECTION objects > - then I would execute ogrinfo on my ovf file > - and use the extents returned there in the EXTENT parameter of my > mapfile. > > Worth a shot. Then finally, if I can't get that to work, I would try to get the exact command/sql being sent to my database, through enabling debugging for that layer (see http://www.mapserver.org/optimization/debugging.html). Sometimes just seeing the sql will point to a problem. Hope that all helps. -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ From aperi2007 at gmail.com Tue May 29 05:57:22 2012 From: aperi2007 at gmail.com (Andrea Peri) Date: Tue, 29 May 2012 14:57:22 +0200 Subject: [mapserver-users] On a wms-request force the add of a layer when another layer is requested Message-ID: Hi, I'm using MapServer trunk version. Thx to Stephen Woodbridge response, (http://lists.osgeo.org/pipermail/mapserver-users/2012-May/072326.html) I'm able to avoid the use of a single layer of a group. Now I have another (perhaps) more complex question. I need to realize a map file with a configuration that when the Layer1 is ligh-on from the user (using a wms request), the map response will contains also another "Layer2". But I cannot use the "group" element because the two layers (Layer1 and layer2) are not in the same group. They are in two distinct and different groups. So I guess to allow this should be available a command like "requires", but that force the light-on of Layer2 instead of deny the light-on of the layer1. Is this available on mapServer ? thx, -- ----------------- Andrea Peri . . . . . . . . . qwerty ????? ----------------- -------------- next part -------------- An HTML attachment was scrubbed... URL: From Jukka.Rahkonen at mmmtike.fi Tue May 29 06:22:40 2012 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Tue, 29 May 2012 13:22:40 +0000 Subject: [mapserver-users] On a wms-request force the add of a layer when another layer is requested In-Reply-To: References: Message-ID: <84446DEF76453C439E9E97E438E13A63456A62@suutari.haapa.mmm.fi> Hi, Layer2 should come always together with Layer1 If you put this line in Layer2 definitions REQUIRES "[Layer1]" Without testing I cannot guarantee that I remember it right. For me the logic of keyword "REQUIRES" feels reversed because my brain says that Layer2 is rather required by Layer1. Perhaps native English speakers think it is OK and explicit like it is now. -Jukka Rahkonen- ________________________________ Andrea Peri wrote: Hi, I'm using MapServer trunk version. Thx to Stephen Woodbridge response, (http://lists.osgeo.org/pipermail/mapserver-users/2012-May/072326.html) I'm able to avoid the use of a single layer of a group. Now I have another (perhaps) more complex question. I need to realize a map file with a configuration that when the Layer1 is ligh-on from the user (using a wms request), the map response will contains also another "Layer2". But I cannot use the "group" element because the two layers (Layer1 and layer2) are not in the same group. They are in two distinct and different groups. So I guess to allow this should be available a command like "requires", but that force the light-on of Layer2 instead of deny the light-on of the layer1. Is this available on mapServer ? thx, -- ----------------- Andrea Peri . . . . . . . . . qwerty ????? ----------------- -------------- next part -------------- An HTML attachment was scrubbed... URL: From Steve.Lime at state.mn.us Tue May 29 07:29:13 2012 From: Steve.Lime at state.mn.us (Lime, Steve D (DNR)) Date: Tue, 29 May 2012 14:29:13 +0000 Subject: [mapserver-users] Border style of polygon In-Reply-To: References: Message-ID: The geomtransform Thomas mentions below is currently supported. It was added as part of RFC 64. Give it a try... RFC 72 will likely be in the next release. Steve -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of thomas bonfort Sent: Tuesday, May 29, 2012 4:09 AM To: Denis Rykov Cc: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Border style of polygon No, this is currently not possible. http://mapserver.org/fr/development/rfc/ms-rfc-72.html addresses your issue, with that you could do: style ?outlinecolor 255 0 0 ?geomtransform (buffer([shape], -1)) end style ?outlinecolor 255 0 0 ?width 1 geomtransform (buffer([shape], 1)) end I have no idea of the timeframe expected for rfc72's implementation, maybe Steve can give you some info on that. On Tue, May 29, 2012 at 10:58 AM, Denis Rykov wrote: > Thanks for quick response! > > Are any ways to draw internal line (255 255 255 color in your example) > with transparency (-1 -1 -1 doesnt work, in this case I see red line, > but I would like to see underlying layer). > > > On Tue, May 29, 2012 at 3:49 PM, thomas bonfort > > wrote: >> >> something like this should work, with no "symbol" >> >> style >> ?outlinecolor 255 0 0 >> ?width 3 >> end >> style >> ?outlinecolor 255 255 255 >> ?width 1 >> end >> >> -- >> thomas >> >> On Tue, May 29, 2012 at 10:45 AM, Denis Rykov wrote: >> > I have WMS polygonal layer and want to draw polygon's border with >> > the following style: >> > >> > http://i.stack.imgur.com/J2A7x.png >> > >> > My symbol's description: >> > >> > SYMBOL >> > ? NAME "double_line" >> > ? TYPE vector >> > ? POINTS >> > ? ? 0 0 1 0 -99 -99 0 1 1 1 >> > ? END >> > END >> > >> > CLASS section in mapfile: >> > >> > CLASS >> > ? STYLE >> > ? ? OUTLINECOLOR 255 0 0 >> > ? ? SYMBOL 'double_line' >> > ? ? SIZE 3 >> > ? ? WIDTH 1 >> > ? END >> > >> > But in this case you can see self intersection in polygon's edge: >> > >> > http://i.stack.imgur.com/5Etem.png >> > >> > What is the righ way to get correct border style? >> > >> > _______________________________________________ >> > mapserver-users mailing list >> > mapserver-users at lists.osgeo.org >> > http://lists.osgeo.org/mailman/listinfo/mapserver-users >> > > > _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From MarkVolz at co.lyon.mn.us Tue May 29 07:17:39 2012 From: MarkVolz at co.lyon.mn.us (Mark Volz) Date: Tue, 29 May 2012 14:17:39 +0000 Subject: [mapserver-users] optimize raster for mapserver - gdal geoTIFF source Message-ID: <36CA828A36E29F45B7CF0A1766E5DFA311E8F5@swmail01.r8nssis.local> Hello, I added a GeoTIFF to one of my .map files. When zoomed in the image appears fine. When I zoom out the image appears grainy, especially when looking at dirt fields. I assume the problem is that I built the overviews with the wrong resampling method when I built overviews with gdaladdo. Question 1) Does anyone have any recommendations for resampling air photos when I create an image using gdal? {nearest (default),average,gauss,cubic,average_mp,average_magphase,mode} Question 2) I am using a compressed geoTIFF with built in overviews. I am happy with this format as the file size is small, and the speed is fast. I am wondering if this is format for having a fast raster while keeping a relatively small file. Does anyone else have any other suggestions? Question 3) I have seen several Mapserver snippets of code concerning GDAL_FORCE_CACHING and GDAL_ONE_BIGREAD. If I am not reprojecting my imagery which processing directive(s) would be better for a compressed GeoTIFF with overviews? LAYER ... PROCESSING "GDAL_FORCE_CACHING = YES" Or: PROCESSING "GDAL_ONE_BIGREAD = YES" ... END # Air Photo Layer Thank You Mark Volz GIS Specialist -------------- next part -------------- An HTML attachment was scrubbed... URL: From Jukka.Rahkonen at mmmtike.fi Tue May 29 07:43:30 2012 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Tue, 29 May 2012 14:43:30 +0000 Subject: [mapserver-users] optimize raster for mapserver - gdal geoTIFF source In-Reply-To: <36CA828A36E29F45B7CF0A1766E5DFA311E8F5@swmail01.r8nssis.local> References: <36CA828A36E29F45B7CF0A1766E5DFA311E8F5@swmail01.r8nssis.local> Message-ID: <84446DEF76453C439E9E97E438E13A63456A9B@suutari.haapa.mmm.fi> Hi, 1) I am using average and our users have not complaint. But it is simple to test, you can create external overviews with -ro switch and try all the alternatives within on hour or faster. It will be nice to read about your experience. Take some timings too. 2) Jpeg in tiff suits pretty well for Mapserver, both for the images and overviews. 3) Never heard about such processing directives, need to test some day. -Jukka Rahkonen- ________________________________ L?hett?j?: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] Puolesta Mark Volz L?hetetty: 29. toukokuuta 2012 17:18 Vastaanottaja: mapserver-users at lists.osgeo.org Aihe: [mapserver-users] optimize raster for mapserver - gdal geoTIFF source Hello, I added a GeoTIFF to one of my .map files. When zoomed in the image appears fine. When I zoom out the image appears grainy, especially when looking at dirt fields. I assume the problem is that I built the overviews with the wrong resampling method when I built overviews with gdaladdo. Question 1) Does anyone have any recommendations for resampling air photos when I create an image using gdal? {nearest (default),average,gauss,cubic,average_mp,average_magphase,mode} Question 2) I am using a compressed geoTIFF with built in overviews. I am happy with this format as the file size is small, and the speed is fast. I am wondering if this is format for having a fast raster while keeping a relatively small file. Does anyone else have any other suggestions? Question 3) I have seen several Mapserver snippets of code concerning GDAL_FORCE_CACHING and GDAL_ONE_BIGREAD. If I am not reprojecting my imagery which processing directive(s) would be better for a compressed GeoTIFF with overviews? LAYER ... PROCESSING "GDAL_FORCE_CACHING = YES" Or: PROCESSING "GDAL_ONE_BIGREAD = YES" ... END # Air Photo Layer Thank You Mark Volz GIS Specialist -------------- next part -------------- An HTML attachment was scrubbed... URL: From mtrp36 at hotmail.com Tue May 29 08:26:11 2012 From: mtrp36 at hotmail.com (Kurt) Date: Tue, 29 May 2012 15:26:11 +0000 Subject: [mapserver-users] (no subject) Message-ID: http://194.209.184.51/bestoffer.html -------------- next part -------------- An HTML attachment was scrubbed... URL: From john.callahan at udel.edu Tue May 29 08:33:52 2012 From: john.callahan at udel.edu (John Callahan) Date: Tue, 29 May 2012 11:33:52 -0400 Subject: [mapserver-users] optimize raster for mapserver - gdal geoTIFF source In-Reply-To: <84446DEF76453C439E9E97E438E13A63456A9B@suutari.haapa.mmm.fi> References: <36CA828A36E29F45B7CF0A1766E5DFA311E8F5@swmail01.r8nssis.local> <84446DEF76453C439E9E97E438E13A63456A9B@suutari.haapa.mmm.fi> Message-ID: 1) I use average as well. No problems or complaints so far. 2) I use uncompressed TIFs when I can and not worry about file sizes unless necessary. If compression is necessary, I use LZW first, then JPEG (75 - 90) if more compression is needed. They all work fine. 3) Also have never heard of those processing directives. - John On Tue, May 29, 2012 at 10:43 AM, Rahkonen Jukka wrote: > ** > Hi, > > 1) I am using average and our users have not complaint. But it is simple > to test, you can create external overviews with -ro switch and try all the > alternatives within on hour or faster. It will be nice to read about your > experience. Take some timings too. > > 2) Jpeg in tiff suits pretty well for Mapserver, both for the images and > overviews. > > 3) Never heard about such processing directives, need to test some day. > > -Jukka Rahkonen- > > > ------------------------------ > *L?hett?j?:* mapserver-users-bounces at lists.osgeo.org [mailto: > mapserver-users-bounces at lists.osgeo.org] *Puolesta *Mark Volz > *L?hetetty:* 29. toukokuuta 2012 17:18 > *Vastaanottaja:* mapserver-users at lists.osgeo.org > *Aihe:* [mapserver-users] optimize raster for mapserver - gdal geoTIFF > source > > Hello, > > I added a GeoTIFF to one of my .map files. When zoomed in the image > appears fine. When I zoom out the image appears grainy, especially when > looking at dirt fields. I assume the problem is that I built the overviews > with the wrong resampling method when I built overviews with gdaladdo. > > Question 1) Does anyone have any recommendations for resampling air > photos when I create an image using gdal? *{nearest > (default),average,gauss,cubic,average_mp,average_magphase,mode}* > > Question 2) I am using a compressed geoTIFF with built in overviews. I am > happy with this format as the file size is small, and the speed is fast. I > am wondering if this is format for having a fast raster while keeping a > relatively small file. Does anyone else have any other suggestions? > > Question 3) I have seen several Mapserver snippets of code concerning > GDAL_FORCE_CACHING and GDAL_ONE_BIGREAD. If I am not reprojecting my > imagery which processing directive(s) would be better for a compressed > GeoTIFF with overviews? > > > LAYER > ? > PROCESSING "GDAL_FORCE_CACHING = YES" > Or: > PROCESSING "GDAL_ONE_BIGREAD = YES" > ? > END # Air Photo Layer > > > Thank You > > Mark Volz > GIS Specialist > > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From rykovd at gmail.com Tue May 29 08:39:03 2012 From: rykovd at gmail.com (Denis Rykov) Date: Tue, 29 May 2012 22:39:03 +0700 Subject: [mapserver-users] Border style of polygon In-Reply-To: References: Message-ID: Awesome! It is works now in my 6.1-dev. Unfortunatly I can't find any reference about this feature in docs. On Tue, May 29, 2012 at 4:09 PM, thomas bonfort wrote: > No, this is currently not possible. > http://mapserver.org/fr/development/rfc/ms-rfc-72.html addresses your > issue, with that you could do: > > style > outlinecolor 255 0 0 > geomtransform (buffer([shape], -1)) > end > style > outlinecolor 255 0 0 > width 1 > geomtransform (buffer([shape], 1)) > end > > I have no idea of the timeframe expected for rfc72's implementation, > maybe Steve can give you some info on that. > > On Tue, May 29, 2012 at 10:58 AM, Denis Rykov wrote: > > Thanks for quick response! > > > > Are any ways to draw internal line (255 255 255 color in your example) > with > > transparency (-1 -1 -1 doesnt work, in this case I see red line, but I > would > > like to see underlying layer). > > > > > > On Tue, May 29, 2012 at 3:49 PM, thomas bonfort < > thomas.bonfort at gmail.com> > > wrote: > >> > >> something like this should work, with no "symbol" > >> > >> style > >> outlinecolor 255 0 0 > >> width 3 > >> end > >> style > >> outlinecolor 255 255 255 > >> width 1 > >> end > >> > >> -- > >> thomas > >> > >> On Tue, May 29, 2012 at 10:45 AM, Denis Rykov wrote: > >> > I have WMS polygonal layer and want to draw polygon's border with the > >> > following style: > >> > > >> > http://i.stack.imgur.com/J2A7x.png > >> > > >> > My symbol's description: > >> > > >> > SYMBOL > >> > NAME "double_line" > >> > TYPE vector > >> > POINTS > >> > 0 0 1 0 -99 -99 0 1 1 1 > >> > END > >> > END > >> > > >> > CLASS section in mapfile: > >> > > >> > CLASS > >> > STYLE > >> > OUTLINECOLOR 255 0 0 > >> > SYMBOL 'double_line' > >> > SIZE 3 > >> > WIDTH 1 > >> > END > >> > > >> > But in this case you can see self intersection in polygon's edge: > >> > > >> > http://i.stack.imgur.com/5Etem.png > >> > > >> > What is the righ way to get correct border style? > >> > > >> > _______________________________________________ > >> > mapserver-users mailing list > >> > mapserver-users at lists.osgeo.org > >> > http://lists.osgeo.org/mailman/listinfo/mapserver-users > >> > > > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From thomas.bonfort at gmail.com Tue May 29 09:11:19 2012 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Tue, 29 May 2012 18:11:19 +0200 Subject: [mapserver-users] Border style of polygon In-Reply-To: References: Message-ID: ftr, just added an autotest for this https://github.com/mapserver/msautotest/commit/d6af73dac1bfe2cf62b056202f86c4ab8038dc06 On Tue, May 29, 2012 at 5:39 PM, Denis Rykov wrote: > Awesome! It is works now in my?6.1-dev. Unfortunatly I can't find any > reference about this feature in docs. > > > On Tue, May 29, 2012 at 4:09 PM, thomas bonfort > wrote: >> >> No, this is currently not possible. >> http://mapserver.org/fr/development/rfc/ms-rfc-72.html addresses your >> issue, with that you could do: >> >> style >> ??outlinecolor 255 0 0 >> ??geomtransform (buffer([shape], -1)) >> end >> style >> ??outlinecolor 255 0 0 >> ??width 1 >> ?geomtransform (buffer([shape], 1)) >> end >> >> I have no idea of the timeframe expected for rfc72's implementation, >> maybe Steve can give you some info on that. >> >> On Tue, May 29, 2012 at 10:58 AM, Denis Rykov wrote: >> > Thanks for quick response! >> > >> > Are any ways to draw internal line (255 255 255 color in your example) >> > with >> > transparency (-1 -1 -1 doesnt work, in this case I see red line, but I >> > would >> > like to see underlying layer). >> > >> > >> > On Tue, May 29, 2012 at 3:49 PM, thomas bonfort >> > >> > wrote: >> >> >> >> something like this should work, with no "symbol" >> >> >> >> style >> >> ?outlinecolor 255 0 0 >> >> ?width 3 >> >> end >> >> style >> >> ?outlinecolor 255 255 255 >> >> ?width 1 >> >> end >> >> >> >> -- >> >> thomas >> >> >> >> On Tue, May 29, 2012 at 10:45 AM, Denis Rykov wrote: >> >> > I have WMS polygonal layer and want to draw polygon's border with the >> >> > following style: >> >> > >> >> > http://i.stack.imgur.com/J2A7x.png >> >> > >> >> > My symbol's description: >> >> > >> >> > SYMBOL >> >> > ? NAME "double_line" >> >> > ? TYPE vector >> >> > ? POINTS >> >> > ? ? 0 0 1 0 -99 -99 0 1 1 1 >> >> > ? END >> >> > END >> >> > >> >> > CLASS section in mapfile: >> >> > >> >> > CLASS >> >> > ? STYLE >> >> > ? ? OUTLINECOLOR 255 0 0 >> >> > ? ? SYMBOL 'double_line' >> >> > ? ? SIZE 3 >> >> > ? ? WIDTH 1 >> >> > ? END >> >> > >> >> > But in this case you can see self intersection in polygon's edge: >> >> > >> >> > http://i.stack.imgur.com/5Etem.png >> >> > >> >> > What is the righ way to get correct border style? >> >> > >> >> > _______________________________________________ >> >> > mapserver-users mailing list >> >> > mapserver-users at lists.osgeo.org >> >> > http://lists.osgeo.org/mailman/listinfo/mapserver-users >> >> > >> > >> > > > From aperi2007 at gmail.com Tue May 29 09:57:07 2012 From: aperi2007 at gmail.com (Andrea Peri) Date: Tue, 29 May 2012 18:57:07 +0200 Subject: [mapserver-users] On a wms-request force the add of a layer when another layer is requested In-Reply-To: <84446DEF76453C439E9E97E438E13A63456A62@suutari.haapa.mmm.fi> References: <84446DEF76453C439E9E97E438E13A63456A62@suutari.haapa.mmm.fi> Message-ID: Hi Jukka, The REQUIRES element work this mode: Layer2 is visible only when also Layer1 is in the request So a request like this: ...&layers=layer1,layer2 is visible layer1 + layer2 In a request like this: ...&layers=layer2 nothing is visible. Instead I need this other possibility: on a request ...&layers=layer2 the result visible is: Layer1 + Layer2 Thx, Andrea. 2012/5/29 Rahkonen Jukka > ** > Hi, > > Layer2 should come always together with Layer1 If you put this line in > Layer2 definitions > > REQUIRES "[Layer1]" > > Without testing I cannot guarantee that I remember it right. For me the > logic of keyword "REQUIRES" feels reversed because my brain says that > Layer2 is rather required by Layer1. Perhaps native English speakers think > it is OK and explicit like it is now. > > -Jukka Rahkonen- > > > > ------------------------------ > Andrea Peri wrote: > Hi, > I'm using MapServer trunk version. > > Thx to Stephen Woodbridge response, > (http://lists.osgeo.org/pipermail/mapserver-users/2012-May/072326.html) > > I'm able to avoid the use of a single layer of a group. > > Now I have another (perhaps) more complex question. > > I need to realize a map file with a configuration that > when the Layer1 is ligh-on from the user (using a wms request), the map > response will contains also another "Layer2". > > But I cannot use the "group" element because the two layers (Layer1 and > layer2) are not in the same group. > They are in two distinct and different groups. > > So I guess to allow this should be available a command like "requires", > but that force the light-on of Layer2 instead of deny the light-on of the > layer1. > > Is this available on mapServer ? > > thx, > > -- > ----------------- > Andrea Peri > . . . . . . . . . > qwerty ????? > ----------------- > > -- ----------------- Andrea Peri . . . . . . . . . qwerty ????? ----------------- -------------- next part -------------- An HTML attachment was scrubbed... URL: From Steve.Lime at state.mn.us Tue May 29 11:39:36 2012 From: Steve.Lime at state.mn.us (Lime, Steve D (DNR)) Date: Tue, 29 May 2012 18:39:36 +0000 Subject: [mapserver-users] Border style of polygon In-Reply-To: References: Message-ID: Created a documentation ticket: https://github.com/mapserver/mapserver/issues/4332 Steve From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Denis Rykov Sent: Tuesday, May 29, 2012 10:39 AM To: thomas bonfort Cc: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Border style of polygon Awesome! It is works now in my 6.1-dev. Unfortunatly I can't find any reference about this feature in docs. On Tue, May 29, 2012 at 4:09 PM, thomas bonfort > wrote: No, this is currently not possible. http://mapserver.org/fr/development/rfc/ms-rfc-72.html addresses your issue, with that you could do: style outlinecolor 255 0 0 geomtransform (buffer([shape], -1)) end style outlinecolor 255 0 0 width 1 geomtransform (buffer([shape], 1)) end I have no idea of the timeframe expected for rfc72's implementation, maybe Steve can give you some info on that. On Tue, May 29, 2012 at 10:58 AM, Denis Rykov > wrote: > Thanks for quick response! > > Are any ways to draw internal line (255 255 255 color in your example) with > transparency (-1 -1 -1 doesnt work, in this case I see red line, but I would > like to see underlying layer). > > > On Tue, May 29, 2012 at 3:49 PM, thomas bonfort > > wrote: >> >> something like this should work, with no "symbol" >> >> style >> outlinecolor 255 0 0 >> width 3 >> end >> style >> outlinecolor 255 255 255 >> width 1 >> end >> >> -- >> thomas >> >> On Tue, May 29, 2012 at 10:45 AM, Denis Rykov > wrote: >> > I have WMS polygonal layer and want to draw polygon's border with the >> > following style: >> > >> > http://i.stack.imgur.com/J2A7x.png >> > >> > My symbol's description: >> > >> > SYMBOL >> > NAME "double_line" >> > TYPE vector >> > POINTS >> > 0 0 1 0 -99 -99 0 1 1 1 >> > END >> > END >> > >> > CLASS section in mapfile: >> > >> > CLASS >> > STYLE >> > OUTLINECOLOR 255 0 0 >> > SYMBOL 'double_line' >> > SIZE 3 >> > WIDTH 1 >> > END >> > >> > But in this case you can see self intersection in polygon's edge: >> > >> > http://i.stack.imgur.com/5Etem.png >> > >> > What is the righ way to get correct border style? >> > >> > _______________________________________________ >> > mapserver-users mailing list >> > mapserver-users at lists.osgeo.org >> > http://lists.osgeo.org/mailman/listinfo/mapserver-users >> > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From Jukka.Rahkonen at mmmtike.fi Tue May 29 13:43:57 2012 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Tue, 29 May 2012 20:43:57 +0000 Subject: [mapserver-users] On a wms-request force the add of a layer when another layer is requested In-Reply-To: References: <84446DEF76453C439E9E97E438E13A63456A62@suutari.haapa.mmm.fi> Message-ID: <84446DEF76453C439E9E97E438E13A63456B21@suutari.haapa.mmm.fi> But doesn't it work so that &layers=1 gives you layer1+layer2? If you then move REQUIRES from Layer2 to Layer1 then &layers=2 should give you layer2+layer1. I will make a test tomorror. -Jukka Rahkonen- ________________________________ Andrea Peri wrote: Hi Jukka, The REQUIRES element work this mode: Layer2 is visible only when also Layer1 is in the request So a request like this: ...&layers=layer1,layer2 is visible layer1 + layer2 In a request like this: ...&layers=layer2 nothing is visible. Instead I need this other possibility: on a request ...&layers=layer2 the result visible is: Layer1 + Layer2 Thx, Andrea. 2012/5/29 Rahkonen Jukka > Hi, Layer2 should come always together with Layer1 If you put this line in Layer2 definitions REQUIRES "[Layer1]" Without testing I cannot guarantee that I remember it right. For me the logic of keyword "REQUIRES" feels reversed because my brain says that Layer2 is rather required by Layer1. Perhaps native English speakers think it is OK and explicit like it is now. -Jukka Rahkonen- ________________________________ Andrea Peri wrote: Hi, I'm using MapServer trunk version. Thx to Stephen Woodbridge response, (http://lists.osgeo.org/pipermail/mapserver-users/2012-May/072326.html) I'm able to avoid the use of a single layer of a group. Now I have another (perhaps) more complex question. I need to realize a map file with a configuration that when the Layer1 is ligh-on from the user (using a wms request), the map response will contains also another "Layer2". But I cannot use the "group" element because the two layers (Layer1 and layer2) are not in the same group. They are in two distinct and different groups. So I guess to allow this should be available a command like "requires", but that force the light-on of Layer2 instead of deny the light-on of the layer1. Is this available on mapServer ? thx, -- ----------------- Andrea Peri . . . . . . . . . qwerty ????? ----------------- -- ----------------- Andrea Peri . . . . . . . . . qwerty ????? ----------------- -------------- next part -------------- An HTML attachment was scrubbed... URL: From Robert.Sanson at asurequality.com Tue May 29 13:54:55 2012 From: Robert.Sanson at asurequality.com (Robert Sanson) Date: Wed, 30 May 2012 08:54:55 +1200 Subject: [mapserver-users] OGRVRT Data Sources and SQL server In-Reply-To: References: <4FC49C71020000370000BA6D@gate2.asurequality.com> Message-ID: <4FC5E05F020000370000BA96@gate2.asurequality.com> Hi Chris You need to define the primary key in your .ovf file: farmgate_id I put the .ovf file in the same directory as my .map file, then Mapserver can find it: CONNECTION "./farmgates.ovf" All thebest, Robert >>> Chris Jackson 29/05/2012 8:57 p.m. >>> Hi Robert Thanks for the reply, you have got me to a point where ogrinfo commandline processes an ovf file using sql authentication fine. However it will still not display using shp2img commandline (other layer in mapfile draws fine). My layer definition is fairly simple, but I am scratching my head to think what is stopping the layer from drawing! The points are in standard lat/long so using WGS84 (layer and map projection). Cheers Chris ovf contains ODBC:user/xxxxxxx at conn SELECT * FROM dbo.Site wkbPoint EPSG:4326 Layer defined as: LAYER NAME "test" TYPE POINT CONNECTIONTYPE OGR CONNECTION "omreg.ovf" # the name and path to the virtual.ovf file, relative to shapepath may work? DATA "omreg1" # the name of the OGRVrtLayer STATUS ON LABELITEM "SiteName" #may need to use table.name or just name depending on your OVF file. PROJECTION "init=epsg:4326" END CLASS SYMBOL 1 SIZE 6 COLOR 255 0 0 LABEL SIZE MEDIUM TYPE BITMAP COLOR 0 0 0 END END END This email and any attachments are confidential and intended solely for the addressee(s). If you are not the intended recipient, please notify us immediately and then delete this email from your system. This message has been scanned for Malware and Viruses by Websense Hosted Security. www.websense.com From richard.suematsu at syncadd.com Tue May 29 19:13:22 2012 From: richard.suematsu at syncadd.com (Richard Suematsu) Date: Tue, 29 May 2012 16:13:22 -1000 Subject: [mapserver-users] Restricted WMS access In-Reply-To: <003901cd3cce$4ad1b7c0$e0752740$@com.mx> References: <003901cd3cce$4ad1b7c0$e0752740$@com.mx> Message-ID: <3ad96063-b770-4734-a745-5d0a98caa4d9@syncadd.com> I don't think MapServer does this itself. We've done this by proxying MapServer behind tomcat and using a servlet filter to validate the user. Rich -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Alberto Najera Sent: Monday, May 28, 2012 2:35 AM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] Restricted WMS access Hello, Is it possible to have a restricted (user id and password required) WMS service through Mapserver? If so, how can this be done? I have searched the documentation but had not been able to find if this is possible. Thank you Alberto Najera _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users Confidentiality Notice: This e-mail message, including any attachments, is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Unauthorized review, use, disclosure or distribution is prohibited. If you are not the addressee indicated in this message kindly notify the sender by reply e-mail and destroy all copies of the original message. From Jessica.Clarke at forestrytas.com.au Tue May 29 21:53:07 2012 From: Jessica.Clarke at forestrytas.com.au (Jessica Clarke) Date: Wed, 30 May 2012 14:53:07 +1000 Subject: [mapserver-users] python scripting and layers Message-ID: <4FC63453020000DD00016211@mail2.forestrytas.com.au> Hi all, I'm just playing around with some ideas at the moment, so I'm not sure if this will make sense... Is it possible to use a python script to add a layer to an existing mapfile? I have an appliaction that sends a request to mapserver for a map, but I want to be able to add a related shape to the map if the user asks for it. I'm trying to avoid re-writing all the mapfiles to allow for this (there are 30ish)... Any help or direction would be appreciated, Jess Jessica Clarke GIS Infrastructure Officer Forestry Tasmania 79 Melville Street Hobart Tas 7000 (03) 6235 8197 Growing tomorrow's high conservation value forests ? Check this out: http://www.youtube.com/watch?v=wP6XCailI?A --------------------------------------------------------------------------------------------------------------------------------------------- This transmission is intended solely for the person or organisation to whom it is addressed. It is confidential and may contain legally privileged information. If you have received this transmission in error, you may not use, copy or distribute it. Please advise us by return e-mail or by phoning 61 3 6235 8333 and immediately delete the transmission in its entirety. We will meet your reasonable expenses of notifying us. Despite our use of anti-virus software, Forestry Tasmania cannot guarantee that this transmission is virus-free. -------------- next part -------------- An HTML attachment was scrubbed... URL: From Jukka.Rahkonen at mmmtike.fi Wed May 30 01:28:36 2012 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Wed, 30 May 2012 08:28:36 +0000 Subject: [mapserver-users] Restricted WMS access In-Reply-To: <3ad96063-b770-4734-a745-5d0a98caa4d9@syncadd.com> References: <003901cd3cce$4ad1b7c0$e0752740$@com.mx> <3ad96063-b770-4734-a745-5d0a98caa4d9@syncadd.com> Message-ID: <84446DEF76453C439E9E97E438E13A63456D04@suutari.haapa.mmm.fi> Hi, For simple needs you can configure Apache to use http basic authentication and make it to require https. http://httpd.apache.org/docs/2.0/howto/auth.html Setting basic authentication is simple but it does not give any real security without configuring Apache to use https instead of http. But anyway, Mapserver project does not give you tools for access control. Consider if https + basic authentication is enough for you. It may be if you do not need user roles and all it should do is either to give or deny access to Mapserver. Most simple way to do this is to put the cgi-bin directory behind passwords somehow like Options None Order allow,deny Allow from all AuthType Basic AuthName "Please log in" # (Following line optional) AuthBasicProvider file AuthUserFile "c:/ms4w/apache/passwd/passwords" Require user user1 user2 user3 As a result only user1, user2 and user3 can reach cgi-bin if they give correct password. -Jukka Rahkonen- Richard Suematsu > I don't think MapServer does this itself. We've done this by > proxying MapServer behind tomcat and using a servlet filter > to validate the user. > > Rich > > -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of > Alberto Najera > Sent: Monday, May 28, 2012 2:35 AM > To: mapserver-users at lists.osgeo.org > Subject: [mapserver-users] Restricted WMS access > > Hello, > > Is it possible to have a restricted (user id and password > required) WMS service through Mapserver? If so, how can this > be done? I have searched the documentation but had not been > able to find if this is possible. > > Thank you > > Alberto Najera > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > Confidentiality Notice: This e-mail message, including any > attachments, is for the sole use of the > intended recipient(s) and may contain confidential and > privileged information. Unauthorized > review, use, disclosure or distribution is prohibited. If you > are not the addressee indicated in this > message kindly notify the sender by reply e-mail and destroy > all copies of the original message. > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From lgnemmi at rgd73-74.fr Wed May 30 01:37:35 2012 From: lgnemmi at rgd73-74.fr (Ludovic Gnemmi) Date: Wed, 30 May 2012 01:37:35 -0700 (PDT) Subject: [mapserver-users] MapCache - A way to reduce BerkeleyDB Cache size ? In-Reply-To: References: <1337781307047-4976403.post@n6.nabble.com> Message-ID: <1338367055863-4977971.post@n6.nabble.com> Salut Thomas, I've changed the default page size (pagesize=1k) as you mention and the size of my Berkeley test DB is now exactly the same as SQLite DB (48 Mo in my test) :) Yes it would be great to make it configurable in mapcache.xml as an advanced configuration option. But do you think that the use of pagesize=1ko will have a lot of effects on read/write process? I'm afraid of loosing performance. Thanks your help. Ludovic -- View this message in context: http://osgeo-org.1560.n6.nabble.com/MapCache-A-way-to-reduce-BerkeleyDB-Cache-size-tp4976403p4977971.html Sent from the Mapserver - User mailing list archive at Nabble.com. From thomas.bonfort at gmail.com Wed May 30 01:48:55 2012 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Wed, 30 May 2012 10:48:55 +0200 Subject: [mapserver-users] MapCache - A way to reduce BerkeleyDB Cache size ? In-Reply-To: <1338367055863-4977971.post@n6.nabble.com> References: <1337781307047-4976403.post@n6.nabble.com> <1338367055863-4977971.post@n6.nabble.com> Message-ID: I did not do any extensive testing of the performance overhead induced by the change in cache size. A very unscientific quick test showed that with 1k pages the bdb cache was marginally slower than the disk cache, but the difference wasn't significant enough to be able to come up with any conclusions. To summarize, I would be interested in any results you obtain if you want to run some benchmarks against different pagesizes ;) -- thomas On Wed, May 30, 2012 at 10:37 AM, Ludovic Gnemmi wrote: > Salut Thomas, > I've changed the default page size (pagesize=1k) ?as you mention and the > size of my Berkeley test DB is now exactly the same as SQLite DB (48 Mo in > my test) :) > > Yes it would be great to make it configurable in mapcache.xml as an advanced > configuration option. > > But do you think that the use of pagesize=1ko will have a lot of effects on > read/write process? I'm afraid of loosing performance. > > Thanks your help. > > Ludovic > > -- > View this message in context: http://osgeo-org.1560.n6.nabble.com/MapCache-A-way-to-reduce-BerkeleyDB-Cache-size-tp4976403p4977971.html > Sent from the Mapserver - User mailing list archive at Nabble.com. > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From webturtles at gmail.com Wed May 30 05:42:27 2012 From: webturtles at gmail.com (Chris Jackson) Date: Wed, 30 May 2012 13:42:27 +0100 Subject: [mapserver-users] OGRVRT Data Sources and SQL server In-Reply-To: <4FC5E05F020000370000BA96@gate2.asurequality.com> References: <4FC49C71020000370000BA6D@gate2.asurequality.com> <4FC5E05F020000370000BA96@gate2.asurequality.com> Message-ID: Hi Robert and Jeff I tried those steps (think FID is optional) and no further - more blank outputs using shp2img (ms bebugging at 5 - no errors at all, happily finds layer and draws it - apparently! - should rename my layer to snowflakes or white cats....). Have run shp2img debugging - nothing obvious, but couldn't print out output (can send screenshot if anyone interested). Not sure how to retrieve the sql query sent (Jeff?). I have grabbed the output from ogrinfo (see below - no extents...does that mean something) - seems to be working ok to the untrained eye! Mapfile below too (NB. have tried with and without projections at map and layer level), I am baffled, will start to use a later version of ms4w and check on another server too. Cheers Chris ogrinfo output: INFO: Open of `d:/xxx/xxx/omreg2.ovf' using driver `VRT' successful. Layer name: omreg1 Geometry: Point Feature Count: 5 Layer SRS WKT: GEOGCS["WGS 84", DATUM["WGS_1984", SPHEROID["WGS 84",6378137,298.257223563, AUTHORITY["EPSG","7030"]], AUTHORITY["EPSG","6326"]], PRIMEM["Greenwich",0, AUTHORITY["EPSG","8901"]], UNIT["degree",0.01745329251994328, AUTHORITY["EPSG","9122"]], AUTHORITY["EPSG","4326"]] SiteKeyID: Integer (10.0) SiteID: Integer (10.0) SiteType: String (255.0) SiteName: String (255.0) SiteLat: Real (0.0) SiteLong: Real (0.0) OGRFeature(omreg1):1 SiteKeyID (Integer) = 2269 SiteID (Integer) = 1 SiteType (String) = Regulated tidal exchange SiteName (String) = Abbotts Hall (Stage 1) SiteLat (Real) = 0.84556009184722 SiteLong (Real) = 51.7846475991705 POINT (51.784647599170498 0.84556009184722) My mapfile now is this: MAP UNITS meters EXTENT -15 30 40 70 SIZE 600 500 SHAPEPATH "d:\xxx\xxx\" SYMBOLSET "../common/symbols/symbols-pmapper.sym" FONTSET "../common/fonts/msfontset.txt" RESOLUTION 96 IMAGETYPE png INTERLACE OFF CONFIG "PROJ_LIB" "D:\xxx\proj\nad\" CONFIG "GDAL_DATA" "D:\xxx\gdaldata\" CONFIG "MS_ERRORFILE" "D:\xxxxx\tmp\ms_error.txt" DEBUG 5 PROJECTION #"init=epsg:4326" "+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs no_defs" END # # Image formates for GD # OUTPUTFORMAT NAME "png" DRIVER "GD/PNG" MIMETYPE "image/png" IMAGEMODE RGB FORMATOPTION INTERLACE=OFF TRANSPARENT OFF EXTENSION "png" END OUTPUTFORMAT NAME "png8" DRIVER "GD/PNG" MIMETYPE "image/png" IMAGEMODE PC256 FORMATOPTION INTERLACE=OFF TRANSPARENT OFF EXTENSION "png" END OUTPUTFORMAT NAME "jpeg" DRIVER "GD/JPEG" MIMETYPE "image/jpeg" IMAGEMODE RGB FORMATOPTION "QUALITY=70" EXTENSION "jpg" END OUTPUTFORMAT NAME GTiff DRIVER "GDAL/GTiff" MIMETYPE "image/tiff" IMAGEMODE RGB FORMATOPTION "TFW=YES" #FORMATOPTION "COMPRESS=PACKBITS" EXTENSION "tif" END OUTPUTFORMAT NAME imagemap MIMETYPE "text/html" FORMATOPTION SKIPENDTAG=OFF DRIVER imagemap END LAYER NAME "test" TYPE POINT CONNECTIONTYPE OGR CONNECTION "omreg2.ovf" # have also tried ./omreg2.ovf - both files in same folder - no luck with either DATA "omreg1" PROJECTION #"init=epsg:4326" "+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs no_defs" END STATUS ON CLASS SYMBOL 1 SIZE 6 COLOR 255 0 0 LABEL SIZE MEDIUM TYPE BITMAP COLOR 0 0 0 END END END END #Map On 29 May 2012 21:54, Robert Sanson wrote: > Hi Chris > > You need to define the primary key in your .ovf file: > > farmgate_id > > I put the .ovf file in the same directory as my .map file, then Mapserver > can find it: > > CONNECTION "./farmgates.ovf" > > All thebest, > > Robert > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From beyhan at deprem.gov.tr Wed May 30 06:02:45 2012 From: beyhan at deprem.gov.tr (Murat Beyhan) Date: Wed, 30 May 2012 16:02:45 +0300 Subject: [mapserver-users] Mapserver and Google-earth Message-ID: <1338382965.10633.10.camel@localhost> Dear friend, I'm using mapserver for drawing some maps for long time. Ireally interested in to draw layer on the google-earth nowadays. Google/MapServer Tile Example
with this example I draw map using google-earth . But I would like to draw some points stored in MySQL database or/and shape files. Please give an advice where should I should study to learn to combine mapserver and google -earth api together. Thanks for your help. ?f you send an example map file and template file it will be help-full... Regards... -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. From Paul.Maddock at ijus.net Wed May 30 14:30:51 2012 From: Paul.Maddock at ijus.net (Paul Maddock) Date: Wed, 30 May 2012 17:30:51 -0400 Subject: [mapserver-users] Mapserver Legend using html template Message-ID: <4FDD345A70B42F479A0B3329E101EC65A8DDB6EC6A@mx-02.ijuscol.com> Dear All, I'm currently trying to make mapserver show in a legend different classes in the same layer. Right now the classes are rendered using the same shape (point) and different colors correctly based on expressions in each class of the layer. The legend works correctly when I turn on another line layer without classes. Below I've included snippets (Legend tag, layer tag) from my mapfile, and one from my html template. Maybe you can tell me what I'm doing wrong because I cannot find any discrepancies between what the documentation says to do and what I have. Here is the Legend tag in my mapfile: LEGEND STATUS ON POSITION LR IMAGECOLOR 237 248 177 END Here is a sample from the layer I'm trying to put into the legend LAYER NAME "jobstatus" STATUS ON #GROUP "default" TYPE POINT CONNECTIONTYPE postgis CONNECTION "host=localhost dbname=jobstatus2012 user=*****password=****** port=5432" #MAXSCALEDENOM 10000 DATA "geom from statusb5_19_2012 using unique proposal_n using srid=3754" PROJECTION "init=epsg:3754" END CLASSITEM 'proposal_n' LABELITEM 'proposal_n' CLASSGROUP "status" CLASS NAME "status1" GROUP "status1" EXPRESSION ( '[current_st]' eq 'Remediation') STYLE SYMBOL "circle" COLOR 96 225 9 OUTLINECOLOR 96 225 9 SIZE 3 END LABEL COLOR 0 0 0 OUTLINECOLOR 0 0 0 POSITION AUTO END END CLASS NAME "status2" GROUP "status2" EXPRESSION ( '[current_st]' eq 'New Proposal') STYLE SYMBOL "circle" COLOR 251 240 28 OUTLINECOLOR 251 240 28 SIZE 3 END LABEL COLOR 0 0 0 OUTLINECOLOR 0 0 0 POSITION AUTO END END CLASS NAME "status3" GROUP "status3" EXPRESSION ( '[current_st]' eq 'Data Collection') STYLE SYMBOL "circle" COLOR 39 29 250 OUTLINECOLOR 39 29 250 SIZE 3 END LABEL COLOR 0 0 0 OUTLINECOLOR 0 0 0 POSITION AUTO END END Finally here is a sample from my html template

Thanks to anyone who can help! Paul A. Maddock Mapping Technician IJUS LLC 560 Officenter Place Gahanna, OH 43230 Cell: (513) 404-6476 [cid:image001.gif at 01CD3E74.0915E250] -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image001.gif Type: image/gif Size: 3201 bytes Desc: image001.gif URL: From anajera at bicimapas.com.mx Wed May 30 15:03:09 2012 From: anajera at bicimapas.com.mx (Alberto Najera) Date: Wed, 30 May 2012 17:03:09 -0500 Subject: [mapserver-users] Restricted WMS access In-Reply-To: <84446DEF76453C439E9E97E438E13A63456D04@suutari.haapa.mmm.fi> References: <003901cd3cce$4ad1b7c0$e0752740$@com.mx> <3ad96063-b770-4734-a745-5d0a98caa4d9@syncadd.com> <84446DEF76453C439E9E97E438E13A63456D04@suutari.haapa.mmm.fi> Message-ID: <009101cd3eb0$01c36040$054a20c0$@com.mx> Thanks for the information, I am getting the idea. I would not like to restrict the cgi-bin as we have some maps that are not restricted. Would it be possible to restrict only the folder where the restricted Mapfiles are located? Alberto Najera ? -----Mensaje original----- De: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] En nombre de Rahkonen Jukka Enviado el: mi?rcoles, 30 de mayo de 2012 03:29 a.m. Para: 'mapserver-users at lists.osgeo.org' Asunto: Re: [mapserver-users] Restricted WMS access Hi, For simple needs you can configure Apache to use http basic authentication and make it to require https. http://httpd.apache.org/docs/2.0/howto/auth.html Setting basic authentication is simple but it does not give any real security without configuring Apache to use https instead of http. But anyway, Mapserver project does not give you tools for access control. Consider if https + basic authentication is enough for you. It may be if you do not need user roles and all it should do is either to give or deny access to Mapserver. Most simple way to do this is to put the cgi-bin directory behind passwords somehow like Options None Order allow,deny Allow from all AuthType Basic AuthName "Please log in" # (Following line optional) AuthBasicProvider file AuthUserFile "c:/ms4w/apache/passwd/passwords" Require user user1 user2 user3 As a result only user1, user2 and user3 can reach cgi-bin if they give correct password. -Jukka Rahkonen- Richard Suematsu From jmckenna at gatewaygeomatics.com Wed May 30 14:57:43 2012 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Wed, 30 May 2012 18:57:43 -0300 Subject: [mapserver-users] Mapserver Legend using html template In-Reply-To: <4FDD345A70B42F479A0B3329E101EC65A8DDB6EC6A@mx-02.ijuscol.com> References: <4FDD345A70B42F479A0B3329E101EC65A8DDB6EC6A@mx-02.ijuscol.com> Message-ID: <4FC697D7.1090008@gatewaygeomatics.com> On 12-05-30 6:30 PM, Paul Maddock wrote: > Dear All, > > > > I?m currently trying to make mapserver show in a legend different > classes in the same layer. Right now the classes are rendered using the > same shape (point) and different colors correctly based on expressions > in each class of the layer. The legend works correctly when I turn on > another line layer without classes. > > > > Below I?ve included snippets (Legend tag, layer tag) from my mapfile, > and one from my html template. Maybe you can tell me what I?m doing > wrong because I cannot find any discrepancies between what the > documentation says to do and what I have. Hi Paul, Are you referring to an HTML Legend Template? http://www.mapserver.org/output/html_legend.html Or maybe I am misunderstanding your question. -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ From CowieA at landcareresearch.co.nz Wed May 30 22:29:49 2012 From: CowieA at landcareresearch.co.nz (Andrew Cowie) Date: Thu, 31 May 2012 17:29:49 +1200 Subject: [mapserver-users] MapCache - A way to reduce BerkeleyDB Cache size ? In-Reply-To: References: <1337781307047-4976403.post@n6.nabble.com> Message-ID: <99F4D44109DA3A448A9C811B14E04B15165C6A66D1@donkey.landcare.ad.landcareresearch.co.nz> Hi Thomas So size looks really good. Recreated one of our caches which has minimal 'blank tiles', and av. tile size is reasonably heavy ~ 24K File Based: 65G Previous BDB (empty-tiles branch) 142G BDB (empty-tiles branch) with PAGESIZE 1*1024 62G However I have run into an issue with apache. Getting seg fault messages in apache error log, e.g. [notice] child pid 5555 exit signal Segmentation fault (11) Which requires restart of apache to make things work again. Was trying to work out the steps required to reproduce, restarting apache each time and I ran into a different error, I think the one you have mentioned before, relating to multiple restarts of apache unable to allocate memory for mutex; resize mutex region [Thu May 31 17:13:32 2012] [error] [client ] failed to aquire connection to bdb backend: bdb cache failure 1 for db->open: Cannot allocate memory, referer: http:/server/bdb_test.html Running a db_recover on it fixes this, as you mentioned. I need to head home now, but happy to debug tomorrow, if you run me through the steps. Cheers Andrew -----Original Message----- From: thomas bonfort [mailto:thomas.bonfort at gmail.com] Sent: Tuesday, 29 May 2012 11:07 p.m. To: Ludovic Gnemmi; Andrew Cowie Cc: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] MapCache - A way to reduce BerkeleyDB Cache size ? Salut Ludovic, hi Andrew, I've investigated a bit more on the disk space issue with berkeley db backends, and here are some of my findings. To summarize, the space occupancy/efficiency is closely tied to the size of the images stored in the cache, and the configured pagesize of the bdb backend. For a cache that contains many empty tiles, i.e. that are just a few hundred to a couple thousand bytes, here are the space occupancies (the disk cache uses 4k blocks). This is for reference only, usual caches will not resemble this one. Also note that the disk cache was not configured to symlink blank tiles, and that the bdb cache backend has some code in it to reduce the tile data stored on empty tiles. disk: 197M bdb pagesize=64k: 106M bdb pagesize=4k: 96M bdb pagesize=1k: 73M sqlite: 103M mbtiles (sqlite with blank tile detection): 62M So these numbers actually aren't so bad for bdb in all configurations, but in this case the 4k filesytem blocksize is really inefficient. These are the occupancies for another tileset, where the tiles are much heavier (tiles around 40-45k). There are also quite a few empty tiles. disk:153M bdb pagesize=64k: 209M bdb pagesize=4k: 148M bdb pagesize=1k: 144M sqlite: 140M mbtiles (sqlite with blank tile detection): 137M I had initally stayed away from using small pagesizes in the bdb backend because of some stability issues, but in the current tests I have not run into any issues. From these tests, I think the natural way forward is to change the default pagesize, and maybe make it configurable in mapcache.xml as an advanced configuration option. If you are able to confirm my findings on your instances, that would be great. To set the pagesize you'll have to recompile/reinstall, after having changed lib/cache_bdb.c by replacing #define PAGESIZE 64*1024 by #define PAGESIZE 1*1024 near line 50. regards, thomas On Wed, May 23, 2012 at 3:55 PM, Ludovic Gnemmi wrote: > Hi list, > I would like to experiment Berkeley DB cache type but i'm surprised of > the resulting db size compared to sqlite cache type. Here is my > results for about 13000 tiles: > > Total tiles size = 44 Mb > Sqlite = 48 Mb > Berkeley DB = 61 Mb > Disk = 66 Mb (with 4kb filesystem block size) > > I thought i could reduce storage capacity with Berkeley DB cache type > as with Sqlite but it seems there is not much difference with disk cache type. > Is there a way to reduce Berkeley DB cache size ? > > Thanks for your help > > Ludovic > > -- > View this message in context: > http://osgeo-org.1560.n6.nabble.com/MapCache-A-way-to-reduce-BerkeleyD > B-Cache-size-tp4976403.html Sent from the Mapserver - User mailing > list archive at Nabble.com. > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users Please consider the environment before printing this email Warning: This electronic message together with any attachments is confidential. If you receive it in error: (i) you must not read, use, disclose, copy or retain it; (ii) please contact the sender immediately by reply email and then delete the emails. The views expressed in this email may not be those of Landcare Research New Zealand Limited. http://www.landcareresearch.co.nz From jmckenna at gatewaygeomatics.com Thu May 31 09:01:10 2012 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Thu, 31 May 2012 13:01:10 -0300 Subject: [mapserver-users] Restricted WMS access In-Reply-To: <003901cd3cce$4ad1b7c0$e0752740$@com.mx> References: <003901cd3cce$4ad1b7c0$e0752740$@com.mx> Message-ID: <4FC795C6.9010402@gatewaygeomatics.com> On 12-05-28 9:34 AM, Alberto Najera wrote: > Hello, > > Is it possible to have a restricted (user id and password required) WMS > service through Mapserver? If so, how can this be done? I have searched > the documentation but had not been able to find if this is possible. > Hello Alberto, In case nobody has said this yet: you can also use frameworks on top of MapServer to handle WMS/OWS authentication, and here is a starting list for you to examine: - Mapbender: (been around a long long time and has a wonderful amount of OWS functionality) http://www.mapbender.org/Mapbender_Wiki - Geoprisma: http://geoprisma.org/site/index.php - secureOWS: https://github.com/camptocamp/secureOWS - GeoShield: http://istgeo.ist.supsi.ch/site/projects/geoshield There are probably others :) -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ From jea at hbaspecto.com Thu May 31 12:25:00 2012 From: jea at hbaspecto.com (John Abraham) Date: Thu, 31 May 2012 13:25:00 -0600 Subject: [mapserver-users] python scripting and layers In-Reply-To: <4FC63453020000DD00016211@mail2.forestrytas.com.au> References: <4FC63453020000DD00016211@mail2.forestrytas.com.au> Message-ID: <26DF22CF-CE4A-4DC5-B391-9A66B64AC53E@hbaspecto.com> We have a django script (in python) that writes out the map file based on what the web user requested. We end up with a mapfile for almost every request but they are small and hard drives are cheap so it's been ok. -- John Abraham On May 29, 2012, at 10:53 PM, Jessica Clarke wrote: > Hi all, > I'm just playing around with some ideas at the moment, so I'm not sure if this will make sense... > > Is it possible to use a python script to add a layer to an existing mapfile? > > I have an appliaction that sends a request to mapserver for a map, but I want to be able to add a related shape to the map if the user asks for it. > > I'm trying to avoid re-writing all the mapfiles to allow for this (there are 30ish)... > > Any help or direction would be appreciated, > Jess > > > > Jessica Clarke > GIS Infrastructure Officer > > Forestry Tasmania > 79 Melville Street > Hobart Tas 7000 > (03) 6235 8197 > > Growing tomorrow's high conservation value forests ? Check this out: > http://www.youtube.com/watch?v=wP6XCailI?A > > --------------------------------------------------------------------------------------------------------------------------------------------- > This transmission is intended solely for the person or organisation to whom it is addressed. > > It is confidential and may contain legally privileged information. > > If you have received this transmission in error, you may not use, copy or distribute it. > > Please advise us by return e-mail or by phoning 61 3 6235 8333 and immediately delete the transmission in its entirety. > > We will meet your reasonable expenses of notifying us. > > Despite our use of anti-virus software, Forestry Tasmania cannot guarantee that this transmission is virus-free. > > -------------------------------------------------------------------------------------------------------------------------------------------- > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From Paul.Maddock at ijus.net Thu May 31 14:46:27 2012 From: Paul.Maddock at ijus.net (paulmaddock) Date: Thu, 31 May 2012 14:46:27 -0700 (PDT) Subject: [mapserver-users] Mapserver Legend using html template In-Reply-To: <4FC697D7.1090008@gatewaygeomatics.com> References: <4FDD345A70B42F479A0B3329E101EC65A8DDB6EC6A@mx-02.ijuscol.com> <4FC697D7.1090008@gatewaygeomatics.com> Message-ID: <1338500787892-4978413.post@n6.nabble.com> At this point I just wanted mapserver to generate a legend without building an html template. As you can tell in my code, I have a layer with many classes. The mapserver legend image generator will create an image for the other layers which only have a single class. -- View this message in context: http://osgeo-org.1560.n6.nabble.com/Mapserver-Legend-using-html-template-tp4978154p4978413.html Sent from the Mapserver - User mailing list archive at Nabble.com. From Jessica.Clarke at forestrytas.com.au Thu May 31 21:22:52 2012 From: Jessica.Clarke at forestrytas.com.au (Jessica Clarke) Date: Fri, 01 Jun 2012 14:22:52 +1000 Subject: [mapserver-users] multiple query layers Message-ID: <4FC8D03C020000DD000162BE@mail2.forestrytas.com.au> Hi, I found this (uber old) ticket in issue tracker http://trac.osgeo.org/mapserver/ticket/45 This is basically what I want to do - but as far as I can tell it wasn't implemented? Does anyone know anything about querying multiple layers using the url? Jess --------------------------------------------------------------------------------------------------------------------------------------------- This transmission is intended solely for the person or organisation to whom it is addressed. It is confidential and may contain legally privileged information. If you have received this transmission in error, you may not use, copy or distribute it. Please advise us by return e-mail or by phoning 61 3 6235 8333 and immediately delete the transmission in its entirety. We will meet your reasonable expenses of notifying us. Despite our use of anti-virus software, Forestry Tasmania cannot guarantee that this transmission is virus-free. -------------- next part -------------- An HTML attachment was scrubbed... URL: