Re: [mapserver-users] Mapcache dimensions and Apache module

2014-01-21 Thread Thomas Bonfort
Hi,
The gmaps service does not support specifying dimensions. WMTS is iirc the only 
service that will support that with a x,y,z addressing scheme. The demo/wmts 
service should get you started as to which url templates you should be using.

--
thomas

On 21 janv. 2014, at 14:32, Fredéric Ameye frederic.am...@infoclimat.fr wrote:

 Hi,
 
 I'm trying to use the dimensions functionality in my mapcache.xml. For 
 example :
 
 dimensions
 dimension type=values name=INFILE 
 default=default.tifdefault.tif,2014.tif/dimension
 /dimensions
 
 I don't know how to get gmaps tiles with INFILE=2014.tif instead of 
 default.tif. 
 
 I've tried 2 things :
 http://localhost/mapcache/gmaps/test/0/0/0.png?INFILE=2014.tif
 but it doesnt work and show me default.tif instead of 2014.tif
 
 And :
 SetEnv INFILE 2014.tif
 in apache configuration. But it doesnt work either.
 
 I've also tried Nginx module and FASTCGI variables, but it doesnt work...
 
 My aim is to propose to navigate data archives. My files are updated every 30 
 minutes or less.
 
 Can you help me please ?
 
 Thank you !
 
 Frederic
 ___
 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] Mapcache dimensions and Apache module

2014-01-21 Thread Fredéric Ameye
Hi Thomas,

Thank you for your help, it works like a charm now, and I can access my
data archive !

Frederic


2014/1/21 Thomas Bonfort thomas.bonf...@gmail.com

 Hi,
 The gmaps service does not support specifying dimensions. WMTS is iirc the
 only service that will support that with a x,y,z addressing scheme. The
 demo/wmts service should get you started as to which url templates you
 should be using.

 --
 thomas

 On 21 janv. 2014, at 14:32, Fredéric Ameye frederic.am...@infoclimat.fr
 wrote:

  Hi,
 
  I'm trying to use the dimensions functionality in my mapcache.xml. For
 example :
 
  dimensions
  dimension type=values name=INFILE
 default=default.tifdefault.tif,2014.tif/dimension
  /dimensions
 
  I don't know how to get gmaps tiles with INFILE=2014.tif instead of
 default.tif.
 
  I've tried 2 things :
  http://localhost/mapcache/gmaps/test/0/0/0.png?INFILE=2014.tif
  but it doesnt work and show me default.tif instead of 2014.tif
 
  And :
  SetEnv INFILE 2014.tif
  in apache configuration. But it doesnt work either.
 
  I've also tried Nginx module and FASTCGI variables, but it doesnt work...
 
  My aim is to propose to navigate data archives. My files are updated
 every 30 minutes or less.
 
  Can you help me please ?
 
  Thank you !
 
  Frederic
  ___
  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

2014-01-21 Thread D. Nappo
...but unfortunately MapServer wms time support doesn't include that format:

http://mapserver.org/it/ogc/wms_time.html


2014/1/21 D. Nappo domenico.na...@gmail.com

 Many thanks!
 It helped: the default date format in our system is DD-Mon-RR and I found
 it out with SELECT * FROM nls_database_parameters WHERE parameter LIKE
 '%DATE%'



 2014/1/20 Umberto Nicoletti umberto.nicole...@gmail.com

 On Mon, Jan 20, 2014 at 2:44 PM, D. Nappo domenico.na...@gmail.comwrote:

 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] Mapserver WMS time support with Oracle

2014-01-21 Thread Rahkonen Jukka (Tike)
Hi,

Perhaps you can select the time into a format that Mapserver likes in your DATA 
by using to_char?
http://docs.oracle.com/cd/B19306_01/server.102/b14200/functions180.htm

-Jukka Rahkonen-


D. Nappo wrote

...but unfortunately MapServer wms time support doesn't include that format:

http://mapserver.org/it/ogc/wms_time.html

2014/1/21 D. Nappo domenico.na...@gmail.commailto:domenico.na...@gmail.com
Many thanks!
It helped: the default date format in our system is DD-Mon-RR and I found it 
out with SELECT * FROM nls_database_parameters WHERE parameter LIKE '%DATE%'


2014/1/20 Umberto Nicoletti 
umberto.nicole...@gmail.commailto:umberto.nicole...@gmail.com
On Mon, Jan 20, 2014 at 2:44 PM, D. Nappo 
domenico.na...@gmail.commailto: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.orgmailto:mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users



___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users

[mapserver-users] Hiring: Mapping software developer at FlightAware

2014-01-21 Thread James Sulak
Hello all, 

FlightAware, the leading flight-tracking provider, is looking for a great, 
maps-obsessed developer to take our flight maps to the next level. Experience 
with MapServer or OpenLayers is a plus. Any work you do extending core 
MapServer or OpenLayers will be open-sourced and contributed back to the 
project.

For more details, email me or see: 
https://flightaware.com/about/careers/position/mapping_software_developer

Cheers,

James

---
James Sulak
Lead Software Developer
FlightAware

___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


[mapserver-users] Mapcache: error with Berkeley DB and display tiles

2014-01-21 Thread samuelm...@gmail.com
Hi, I am creating a cache with Berkeley DB, mapcache_seed successfully
generate tiles, but when it display the tiles, reports the following
error:

failed to aquire connection to bdb backend: unknown error

How can I fix or connect to the Berkeley DB?. I'm using Ubuntu Server 12.05
and Berkeley 5.1 (libdb5.1)


Thanks,  SamTux

-- 
---
.~.
   / v \
  //\\
 /(  )\
   ^`~'^
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users

[mapserver-users] How to use/offer multiple projections in mapfile for WMS

2014-01-21 Thread Stefan Schwarzer
Hi there,

I'd like to offer multiple projections for my WMS layers. But it doesn't work 
the way I want. 

The EPSG:4326 works well. But when I change it to, for example, EPSG: 3395, I 
get an empty image (the legend shows).

I have to define the projection at various places - already a bit confusing for 
me. And I have a projection in the SQL query: …. USING srid= 4326. Tried to 
replace that one too, but didn't change anything.

Thanks for any suggestions!

Stefan

 
MAP

# Map definition -

NAME wms_test.map
STATUS ON
SIZE 600 300
EXTENT -180 -90 180 90
UNITS DD
IMAGECOLOR 255 255 255
SHAPEPATH 'xx' 
FONTSET 'xx' 
SYMBOLSET 'xx' 
IMAGETYPE png
DATAPATTERN '^[0-9]'


PROJECTION
'init=epsg:4326'
END



WEB
IMAGEPATH '/www/geodataportal/temp/'
IMAGEURL 'http://129.194.231.185/temp/'
METADATA
'wms_title' 'Environmental Data 
Explorer WMS Server'
'wms_service_onlineresource'
'http://129.194.231.185/cgi-bin.main?map=/www/geodataportal/htdocs/mod_map/wms_test.map;'
'wms_getfeatureinfo'
'http://129.194.231.185/cgi-bin.main?map=/www/geodataportal/htdocs/mod_map/wms_test.map;'
'wms_featureinfoformat' 'text/plain'
'wms_abstract'  '...'
'wms_accessconstraints' '...'
'wms_country'   'Switzerland'
'wms_city'  'Geneva'
'wms_postcode'  '1211'
'wms_address'   '11, Chemin des 
Anémones'
'wms_contactperson' '-'
'wms_addresstype'   '-'
'wms_stateorprovince'   'Geneva'
'wms_contactelectronicmaliaddress' 'geo_team ---at--- 
grid.unep.ch'
'wms_contactorganization'   'UNEP/DEWA/GRID-Europe'
'wms_keywordlist'   'download, environment, 
geo, data, water, map, graph, world, population, unep, emission, temperature, 
biodiversity, forest, consumption, vegetation, land, statistics, energy, soil'
'ows_enable_request''*' 
'wms_srs'   'EPSG:4326 EPSG:3395'
'ows_srs'   'EPSG:4326 EPSG:3395'
END
END




LAYER
NAME agri_area  
METADATA 
'wms_title' 'Agricultural Area'
'wms_abstract'   'Units: Square Kilometers'
'wms_timeextent''2011'
'wms_extent''-180 -90 180 90' 
'wms_srs'   'EPSG:4326 EPSG:3395' 
'wms_include_items' 'name,value' 
END # METADATA
#PROJECTION
#'init=epsg:4326'
#END
STATUS OFF
CONNECTIONTYPE postgis
CONNECTION 'user=xx password=xx dbname=xx'   
TYPE POLYGON
DATA geom FROM (query-here) AS foo USING UNIQUE uid USING srid= 
4326 
TEMPLATE 'dummy'
DUMP TRUE
CLASSITEM 'value'
CLASS
NAME 'Agricultural Area [2011]'
EXPRESSION ([value]=-10001)
TEMPLATE 'empty space'
END  # CLASS 
CLASS
NAME 'Square Kilometers' 
EXPRESSION ([value]=-110003)
TEMPLATE 'units as title in legend'
END  # CLASS
CLASS
NAME 'no data'
EXPRESSION ([value]=-)
COLOR 230 230 230
OUTLINECOLOR 150 150 150
TEMPLATE 'dummy'
END  # CLASS
CLASS 
NAME '4 to 1038299'
EXPRESSION ([value]=1038299)
COLOR 255 255 178
OUTLINECOLOR 150 150 150
TEMPLATE 'dummy'
LABEL
FONT arial
TYPE truetype
ANTIALIAS false
SIZE 8
COLOR 0 0 0
POSITION AUTO
PARTIALS FALSE
FORCE true
OFFSET 0 5
#OUTLINECOLOR 150 150 150
END
END  # CLASS 
CLASS 
NAME '1038299 to 2076594'
EXPRESSION ([value]=2076594)
COLOR