Heyser Sylvain | 8 Jan 03:46 2015

How can I read Z coordinates in a shape file ?

Dear Mapserver community,

I try to read the value of the Z coordinate in an Esri Shape file 
without success.

I want to get the Z values through an url request (WFS) like this : 
http://my_server_ip/cgi-bin/mapserv?map=/var/www/data/mapfile.map&SERVICE=WFS&VERSION=1.0.0&REQUEST=GetFeature&SRS=EPSG:3163&BBOX=458692.315380274,394716.36951207,460607.98862158,395413.707691068&TYPENAME=Piste

But I only get output data without Z values.
<gml:featureMember><ms:Piste fid="Piste.1"><gml:boundedBy><gml:Box 
srsName="EPSG:3163"><gml:coordinates>459689.471118,394821.251944

459699.341118,394828.476944</gml:coordinates></gml:Box></gml:boundedBy><ms:msGeometry><gml:LineString 
srsName="EPSG:3163"><gml:coordinates>459699.341118,394821.251944 
459693.717118,394828.476944 459689.471118,394825.098944 
</gml:coordinates></gml:LineString></ms:msGeometry><ms:PISTAER_ID>1</ms:PISTAER_ID></ms:Piste></gml:featureMember><gml:featureMember>

The OGRINFO of the data is :
Layer name: PISTAERO_line
Geometry: 3D Line String
Feature Count: 2
Extent: (459349.927521, 394583.151000) - (460037.901778, 395483.896917)
Layer SRS WKT:
(unknown)
PISTAER_ID: Integer (5.0)

I have configure my map file as follow :
MAP
     NAME DACDEV_map
     STATUS ON
(Continue reading)

geo.graefin | 7 Jan 16:33 2015
Picon

map file with connection to postgis

Dear community,
 
I checked my map file with the tool shp2img, but it detected an error:
 
msDrawMap(): Image handling error. Failed to draw layer named 'unterkunft'. <br>
msPostGISLayerOpen(): Query error. Database connection failed (invalid connectio
n option "schema"
) with connect string 'host=localhost dbname=postgis_testdb schema=public user=p
ostgres password=******** port=5432'
Is the database running? Is it allowing connections? Does the specified user exi
st? Is the password valid? Is the database on the standard port? <br>
 
But I am connecting with the database.
 
When I leave out "schema=public" in the string of "DATA" in my map file then i get the following message:
 
ëPNG

IHDR  ♥Þ  ♥Þ☺♥   wmFº   ♥PLTE   ºz=┌   ☺tRNS <at> µÏf   æIDATx£Ý┴1☺   ┬á§Om

                                            ¥♠ý? ☺°1ù!    IEND«B`é
 
So shall I leave in the schema attribut?
 
Any ideas for solving the problem?
 
In appendix there is my map file.
 
Thank you in advance!
 
Greetings, Geograefin
Attachment (unterkunft.map): application/octet-stream, 3478 bytes
_______________________________________________
mapserver-users mailing list
mapserver-users <at> lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users
Bill Hudspeth | 6 Jan 15:58 2015
Picon

Return pixel values from raster layers served by mapserver

Hello,

I previously wrote about this issue, but have not found a solution yet. I am running Mapserver 6.4.1, and am
using Postgres/Postgis to display a time series of geotiff images. I would like to know the best way for a
user to submit a given x,y coordinate pair and return the pixel value for a given image. Is this possible
using only the mapserver api? or must I absolutely use mapscript?

Currently, I use a PostgreSQL/PostGIS time-enabled table to store the information about the location of
the geotiffs and the timestamp associated with them:

pm25_monthly=# \d pm25_monthly_global

  Table
"public.pm25_monthly_global"

   Column  |            Type             |
Modifiers

----------+-----------------------------+-----------------------------------------------

oid | integer | default nextval('pm25_monthly_seq'::regclass)
  rundate | timestamp with time zone |
  datetime    | timestamp with time zone    |
  location    | text                        |
  timezone    | timestamp without time zone |
  the_geom     | geometry(MultiPolygon,4326) |

Indexes:
     "pm25_monthly_global_oid_key"
UNIQUE CONSTRAINT, btree (oid)

The 'location' field simply gives the full path to the relevant geotiff on the file system. And, I define the
index in the mapfile:

#**********LAYER - TILE INDEX FOR PM2.5 RASTERS
(Time sensitive)**** 
LAYER
   STATUS ON
   NAME "pm25_time_index"
   TYPE POLYGON
   DATA "the_geom from pm25_monthly_global using unique oid using SRID=4326"
   METADATA
     "ows_title" "PM25 TIME INDEX"
     "ows_srs" "EPSG:4326"
     "ows_extent" "-180 -90 180 90" #[minx][miny][maxx][maxy]
     "wms_timeformat" "YYYY-MM-DDTHH:MM:SS"
     "wms_timeextent" "2011-01-01T00:00:00/2012-12-01T00:00:00"
     "wms_timeitem" "timezone"
     "wms_timedefault" "2011-01-01T00:00:00"
     wcs_resolution '0:10 0:10'
   END

   #CONNECTION "user=wilbur dbname=pm25_monthly host=localhost password=iiiiiiiiii"
   #CONNECTIONTYPE postgis
   CONNECTIONTYPE POSTGIS
   CONNECTION "host=127.0.0.1 dbname=pm25_monthly user=wilbur password=EUR2_live port=5432"

   DATA "the_geom from pm25_monthly_global using unique oid using srid=4326"
END

#*******LAYER - MONTHLY PM2.5 (Time Sensitive)*********************************

LAYER
     NAME 'pm25_monthly'
     TYPE RASTER
     STATUS ON
     DEBUG OFF
     DUMP TRUE
     #TRANSPARENCY 50
     #FILTER ""

     METADATA
         "ows_keywordlist" 'PM2.5 (ug/m3), Global' #wms_keywordlist (Keywordlist)
         "ows_description" "Global monthly mean PM 2.5 (ug/m3)concentration"
         "ows_name" "Global monthly mean PM2.5 - Concentration Values (ug/m3)"
         "ows_label" "Global PM 2.5 (ug/m3)"
         "ows_srs" "EPSG:4326 EPSG:900913"
         "ows_extent" "-180 -90 180 90" #[minx][miny][maxx][maxy]
         "ows_formats" "GEOTIFF"
         "ows_nativeformat" "8-bit GeoTIF"
         "ows_timeitem" "timezone"
         "wms_onlineresource" "http://localhost/cgi-bin/mapserv?map=/var/www/pm25_mapserver/public_html/pm25_ogc_services.map"
         "wms_abstract" 'Global monthly mean PM 2.5 (ug/m3)concentration'  #wms_abstract(Abstract)
         "wms_opaque" '0' #wms_opaque(layer)
         "wms_title" "Global monthly mean PM 2.5 (ug/m3)concentration"
         "ows_timeformat" "YYYY-MM-DDTHH:MM:SSZ"
         "ows_timeextent" "2011-01-01T00:00:00Z/2012-12-01T00:00:00Z"
         "ows_timedefault" "2011-01-01T00:00:00Z"
         "wms_enable_request" "*"
         "wcs_resolution" "0:10 0:10"
         "wcs_bandcount" "1"
         "wcs_size" "3600 1800"
         layer_name pm25_monthly

     END   #METADATA
     PROJECTION
         "init=epsg:4326"     #WGS84 Decimal Degrees
     END  #PROJECTION

     TILEITEM "location"
     TILEINDEX "pm25_time_index"

END  #LAYER

Thanks
_______________________________________________
mapserver-users mailing list
mapserver-users <at> lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users

mark kellermann | 6 Jan 13:10 2015

Beschriftung Objekte mit gleicher Lage


Hallo,

ich möchte Punkte (Schilder) beschriften mit Ihrer Nummer.
An manchen Standorten (Masten) hängen teilweise vier Schilder.
Wenn ich die Schilder Beschriftung erzwinge (FORCE TRUE), liegt die Beschriftung übereinander!

Wie kann ich dies ändern, dass man die Beschriftung aller Punkte lesen kann?

MfG
Mark Kellermann

_______________________________________________
mapserver-users mailing list
mapserver-users <at> lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users
Stephen Woodbridge | 6 Jan 00:36 2015

mapcache compile issue on cygwin posted on stackoverflow

I saw this issue come up on stackoverflow:
http://stackoverflow.com/questions/27755442/compiling-error-core-c-in-mapcache-with-cygwin/27760401

Anyone have any other ideas?

-Steve W
_______________________________________________
mapserver-users mailing list
mapserver-users <at> lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users

Basques, Bob (CI-StPaul | 5 Jan 17:55 2015
Picon
Picon

ColorRange Legends.

All,

 

Is there any progress on generating a legend icon for color ranges?  I’m using colorrange to color in a GPS trail based on age.  I would like to generate a legend icon for the coloring.  A bit of a complication is that I’m doing a double transistion, one class for green à orange, and then a class for orange à red.  I could make two different legend items for these if need be though.

 

I get the NAME value to pop out, but no Icon for the color values.

 

Thanks

 

Bobb

 

 

_______________________________________________
mapserver-users mailing list
mapserver-users <at> lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users
Basques, Bob (CI-StPaul | 31 Dec 22:53 2014
Picon
Picon

Mapserver VIM syntax file (map.vim)

All,

 

“RANGEITEM” seems to be missing from the newest “map.vim” file . . . should it be??

 

Who should I tell/ask about this ?

 

Thanks

 

Bobb

 

 

_______________________________________________
mapserver-users mailing list
mapserver-users <at> lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users
Joe Franklin | 31 Dec 17:54 2014
Picon

Probably should update the link in the Mapcache Windows compilation section on mapserver.org

The link to http://vbkto.dyndns.org/sdk/ listed on the help page for Mapcache windows documentation at http://mapserver.org/mapcache/install.html should be replaced with http://www.gisinternals.com/sdk/.  Don't click the old link - you've been warned :)
 

 
_______________________________________________
mapserver-users mailing list
mapserver-users <at> lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users
Lars Fricke | 29 Dec 12:34 2014

Setting up a JSONP service

Dear List,

I have a WFS service running under MapServer that I would like to 
operate as JSONP service. I managed to set GEOJSON as output format but 
I get "Cross-Origin-Request Blocked" if I try to call it with a 
Javascript client (using Leaflet L.layerJSON.
The question is: Is it possible to set up a JSONP service from Mapserver 
and if yes, how? My current mapfile looks like this (relevant parts):

"
# in WEB - METADATA
"wfs_getfeature_formatlist" "geojson,csv,ogrgml"

OUTPUTFORMAT
    NAME "geojson"
    DRIVER "OGR/GEOJSON"
    MIMETYPE "application/json; subtype=geojson; charset=utf-8"
    FORMATOPTION "STORAGE=stream"
    FORMATOPTION "FORM=SIMPLE"
    FORMATOPTION "LCO:COORDINATE_PRECISION=5"
   END
"
If this would already be a correct JSONP service, I have to look on the 
Leaflet side for the error...
Thanks for your help.

Cheers

Lars
_______________________________________________
mapserver-users mailing list
mapserver-users <at> lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users

Re: [EXTERNAL] Re: Mapserver as WFS 1.1.0 client

Lars,

You can create a layer for mapserver that is an OGR layer (part of the
GDAL library). 

LAYER
  ...
  CONNECTIONTYPE OGR
DATA "..."
  ...
END

The DATA definition can be a OGR VRT that points to a WFS 1.1.0 layer, See
http://www.gdal.org/drv_wfs.html

Mike

On 12/23/14, 12:32 PM, "Lars Fricke" <lars.fricke <at> skendata.de> wrote:

>Hello Michael,
>
>I'm not sure I understand what you mean?
>
>Best
>
>Lars
>
>
>Am 23.12.2014 um 18:19 schrieb Smith, Michael ERDC-RDE-CRREL-NH:
>> Lars,
>>
>> Could you add a gdal layer into mapserver and use gdal to make the wfs
>> 1.1.0 request?
>>
>> Mike
>>
>

_______________________________________________
mapserver-users mailing list
mapserver-users <at> lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users

Is there a way to use REMOTE_USER environment variable in RunTime Substitution?

I'm using apache basic auth to filter results. I have been able to use mod_rewrite to create a cookie with the authenticated username and use that in runtime subst but it would be much simpler and cleaner to just do it reading the environment variable. So far, I haven't found a way to do this in current master. Any ideas?

-- 
Michael Smith
US Army Corps
Remote Sensing GIS/Center
_______________________________________________
mapserver-users mailing list
mapserver-users <at> lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users

Gmane