Re: [mapserver-users] Point between 2 tiles disappearing
Hello, I forgot to say that Leaflet access to MapServer via WMS. Here is a copy of the MAP file : MAP NAME SEVESO STATUS ON SIZE 500 500 EXTENT -50 -50 50 50 IMAGECOLOR 255 255 255 SYMBOLSET C:/Program Files/Apache Software Foundation/Apache2.4/cgi-bin/mapserv_6_4/ms/symbols.txt FONTSET C:/Program Files/Apache Software Foundation/Apache2.4/cgi-bin/mapserv_6_4/ms/fonts.txt PROJ_LIB C:/Program Files/Apache Software Foundation/Apache2.4/cgi-bin/mapserv_6_4/proj/SHARE/ PROJECTION init=epsg:31370 END WEB IMAGEPATH C:/Temp/ IMAGEURL /Temp/ METADATA wms_title Seveso wms_enable_request * wms_srs EPSG:31370 wms_feature_info_mime_type text/plain END END LEGEND STATUS ON IMAGECOLOR 255 255 255 LABEL TYPE truetype FONT verdana SIZE 8 COLOR 80 80 80 END END LAYER NAME SevesoSites STATUS ON TYPE POINT CONNECTIONTYPE OGR CONNECTION C:/Seveso.tab TOLERANCE 10 TOLERANCEUNITS PIXELS DUMP TRUE TEMPLATE dummy.html METADATA wms_title Seveso wms_enable_request * wms_include_items all END CLASS NAME Seuil haut / Hoge drempel EXPRESSION ([Type] = 2) STYLE SYMBOL square COLOR 255 0 0 SIZE 8 END END CLASS NAME Seuil bas / Lage drempel EXPRESSION ([Type] = 1) STYLE SYMBOL square COLOR 255 128 0 SIZE 6 END END END #LAYER END #MAP Thanks J Jonathan Beliën Geo-6 De : Lime, Steve D (MNIT) [mailto:steve.l...@state.mn.us] Envoyé : vendredi 17 janvier 2014 00:28 À : Geo-6; mapserver-users@lists.osgeo.org Cc : ms4w-us...@lists.maptools.org Objet : RE: [mapserver-users] Point between 2 tiles disappearing Whats the layer definition look like? From: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Geo-6 Sent: Thursday, January 16, 2014 11:06 AM To: mapserver-users@lists.osgeo.org Cc: ms4w-us...@lists.maptools.org Subject: [mapserver-users] Point between 2 tiles disappearing Hi everyone, I use MS4W (see below for more information on my version of MapServer) with Leaflet. The projection system I use is EPSG:31370 (see below for proj4 definition). Sometimes, at certain zoom level, when a point is between 2 tiles, the point is not shown. Here are some screenshots : Resolution = 10 Resolution = 5 Resolution = 2 Resolution = 1 You can see at resolution = 1 that the symbol is cut. How can I fix this ? Thanks a lot for your help and sorry for my English. MS4W: MapServer version 6.4.1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=KML SUPPORTS=PROJ SUPPORTS=GD SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=CAIRO SUPPORTS=SVG_SYMBOLS SUPPORTS=SVGCAIRO SUPPORTS=ICONV SUPPORTS=FRIBIDI SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=SOS_SERVER SUPPORTS=FASTCGI SUPPORTS=THREADS SUPPORTS=GEOS INPUT=JPEG INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE] EPSG:31370: +proj=lcc +lat_1=51.172333 +lat_2=49.839 +lat_0=90 +lon_0=4.3674866 +x_0=15.013 +y_0=5400088.438 +ellps=intl +towgs84=-106.869,52.2978,-103.724,0.3366,-0.457,1.8422,-1.2747 +units=m +no_defs Jonathan Beliën Geo-6 ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] Mapserver WMS time support with Oracle
Hi there, I couldn't figure out how to solve this. I have a layer so configured: LAYER NAME layer TYPE point CONNECTION conn_string CONNECTIONTYPE ORACLESPATIAL TEMPLATE templates/hotspot_template.html DATA SHAPE FROM (SELECT POINT as SHAPE, ACQ_DATE, ACQ_TIME, SATELLITE, CONFIDENCE, VERSION, BRIGHT_T31, FRP FROM gwsprd.HOT_SPOTS_MODIS) using unique OGR_FID METADATA wms_title WMS test wms_srs EPSG:4326 wms_extent-180 -90 180 90 wms_timeextent 2000-01-01/2020-12-31 wms_timeitem acq_date wms_timedefault 2014-01-01 wms_timeformat -MM-DD wms_enable_request * END CLASS SYMBOL 'circle' SIZE 2 COLOR255 0 0 END END Now, the date column in the oracle table is the acq_date field. The problem is that Mapserver translates that with a wrong oracle query (which it works in postgreslq, I guess): SELECT OGR_FID,rownum, SHAPE FROM (SELECT OGR_FID, POINT as SHAPE, ACQ_DATE, ACQ_TIME, SATELLITE, CONFIDENCE, VERSION, BRIGHT_T31, FRP FROM gwsprd.HOT_SPOTS_MODIS) WHERE acq_date = '2014-01-16' The query above uses a wrong filter and it gives the error: ORA-01861: literal does not match format string How can I tell to Mapserver to use a correct query??? Or do I missing anyhting??? Something like: WHERE acq_date = to_date('2014-01-16','-MM-DD') ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] featureInfo data mapping
The templating supports some basic functionality like this, for example: [item name=foo pattern=1 value=bar] so where foo=1 we see bar. If the pattern doesn't march nothing is output. You can have multiple occurrences to mimic an if-then-else construct. Steve From: mapserver-users-boun...@lists.osgeo.org [mapserver-users-boun...@lists.osgeo.org] on behalf of martijnvdp [mart...@weer.nl] Sent: Monday, January 20, 2014 9:01 AM To: mapserver-users@lists.osgeo.org Subject: [mapserver-users] featureInfo data mapping Hi, I'd like to map the $value parameters to Strings in the feature info templates. Is there a way to get that done? For example, when $value == 1 I want to output 'bla' -- View this message in context: http://osgeo-org.1560.x6.nabble.com/featureInfo-data-mapping-tp5099014.html Sent from the Mapserver - User mailing list archive at Nabble.com. ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Mapserver WMS time support with Oracle
On Mon, Jan 20, 2014 at 2:44 PM, D. Nappo domenico.na...@gmail.com wrote: Hi there, I couldn't figure out how to solve this. I have a layer so configured: LAYER NAME layer TYPE point CONNECTION conn_string CONNECTIONTYPE ORACLESPATIAL TEMPLATE templates/hotspot_template.html DATA SHAPE FROM (SELECT POINT as SHAPE, ACQ_DATE, ACQ_TIME, SATELLITE, CONFIDENCE, VERSION, BRIGHT_T31, FRP FROM gwsprd.HOT_SPOTS_MODIS) using unique OGR_FID METADATA wms_title WMS test wms_srs EPSG:4326 wms_extent-180 -90 180 90 wms_timeextent 2000-01-01/2020-12-31 wms_timeitem acq_date wms_timedefault 2014-01-01 wms_timeformat -MM-DD Try with this: wms_timeformat DD-MM-YY it is the default format Oracle expects when converting a string to a date and no format has been explicitly provided. Hth, Umberto wms_enable_request * END CLASS SYMBOL 'circle' SIZE 2 COLOR255 0 0 END END Now, the date column in the oracle table is the acq_date field. The problem is that Mapserver translates that with a wrong oracle query (which it works in postgreslq, I guess): SELECT OGR_FID,rownum, SHAPE FROM (SELECT OGR_FID, POINT as SHAPE, ACQ_DATE, ACQ_TIME, SATELLITE, CONFIDENCE, VERSION, BRIGHT_T31, FRP FROM gwsprd.HOT_SPOTS_MODIS) WHERE acq_date = '2014-01-16' The query above uses a wrong filter and it gives the error: ORA-01861: literal does not match format string How can I tell to Mapserver to use a correct query??? Or do I missing anyhting??? Something like: WHERE acq_date = to_date('2014-01-16','-MM-DD') ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Point between 2 tiles disappearing
MapServer expands the search extent slightly based on feature definitions (e.g. marker size, etc...) so that partial features are captured and rendered. That should take care of a case like this. What are you using to do the tiling (i.e. mapcache, tilecache, mode=tile)? Steve From: mapserver-users-boun...@lists.osgeo.org [mapserver-users-boun...@lists.osgeo.org] on behalf of Geo-6 [supp...@geo6.be] Sent: Monday, January 20, 2014 4:13 AM To: mapserver-users@lists.osgeo.org Subject: Re: [mapserver-users] Point between 2 tiles disappearing Hello, I forgot to say that Leaflet access to MapServer via WMS. Here is a copy of the MAP file : MAP NAME SEVESO STATUS ON SIZE 500 500 EXTENT -50 -50 50 50 IMAGECOLOR 255 255 255 SYMBOLSET C:/Program Files/Apache Software Foundation/Apache2.4/cgi-bin/mapserv_6_4/ms/symbols.txt FONTSET C:/Program Files/Apache Software Foundation/Apache2.4/cgi-bin/mapserv_6_4/ms/fonts.txt PROJ_LIB C:/Program Files/Apache Software Foundation/Apache2.4/cgi-bin/mapserv_6_4/proj/SHARE/ PROJECTION init=epsg:31370 END WEB IMAGEPATH C:/Temp/ IMAGEURL /Temp/ METADATA wms_title Seveso wms_enable_request * wms_srs EPSG:31370 wms_feature_info_mime_type text/plain END END LEGEND STATUS ON IMAGECOLOR 255 255 255 LABEL TYPE truetype FONT verdana SIZE 8 COLOR 80 80 80 END END LAYER NAME SevesoSites STATUS ON TYPE POINT CONNECTIONTYPE OGR CONNECTION C:/Seveso.tab TOLERANCE 10 TOLERANCEUNITS PIXELS DUMP TRUE TEMPLATE dummy.html METADATA wms_title Seveso wms_enable_request * wms_include_items all END CLASS NAME Seuil haut / Hoge drempel EXPRESSION ([Type] = 2) STYLE SYMBOL square COLOR 255 0 0 SIZE 8 END END CLASS NAME Seuil bas / Lage drempel EXPRESSION ([Type] = 1) STYLE SYMBOL square COLOR 255 128 0 SIZE 6 END END END #LAYER END #MAP Thanks :) Jonathan Beliën Geo-6 De : Lime, Steve D (MNIT) [mailto:steve.l...@state.mn.us] Envoyé : vendredi 17 janvier 2014 00:28 À : Geo-6; mapserver-users@lists.osgeo.org Cc : ms4w-us...@lists.maptools.org Objet : RE: [mapserver-users] Point between 2 tiles disappearing What’s the layer definition look like? From: mapserver-users-boun...@lists.osgeo.orgmailto:mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Geo-6 Sent: Thursday, January 16, 2014 11:06 AM To: mapserver-users@lists.osgeo.orgmailto:mapserver-users@lists.osgeo.org Cc: ms4w-us...@lists.maptools.orgmailto:ms4w-us...@lists.maptools.org Subject: [mapserver-users] Point between 2 tiles disappearing Hi everyone, I use MS4W (see below for more information on my version of MapServer) with Leaflet. The projection system I use is EPSG:31370 (see below for proj4 definition). Sometimes, at certain zoom level, when a point is between 2 tiles, the point is not shown. Here are some screenshots : Resolution = 10 Resolution = 5 Resolution = 2 Resolution = 1 You can see at resolution = 1 that the symbol is “cut”. How can I fix this ? Thanks a lot for your help and sorry for my English. MS4W: MapServer version 6.4.1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=KML SUPPORTS=PROJ SUPPORTS=GD SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=CAIRO SUPPORTS=SVG_SYMBOLS SUPPORTS=SVGCAIRO SUPPORTS=ICONV SUPPORTS=FRIBIDI SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=SOS_SERVER SUPPORTS=FASTCGI SUPPORTS=THREADS SUPPORTS=GEOS INPUT=JPEG INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE] EPSG:31370: +proj=lcc +lat_1=51.172333 +lat_2=49.839 +lat_0=90 +lon_0=4.3674866 +x_0=15.013 +y_0=5400088.438 +ellps=intl +towgs84=-106.869,52.2978,-103.724,0.3366,-0.457,1.8422,-1.2747 +units=m +no_defs Jonathan Beliën Geo-6 ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users