Re: [mapserver-users] geotiff 48bit with mapserver 7 wms

2017-04-14 Thread Stephen Woodbridge
Yeah, technically a geotiff can be any format, but mapserver only 
supports a limit set for band widths.


A new version of Mapcache was just released and it has GDAL support in 
it  and serves WMS, but I'm not sure if it will do what you want.


Sorry, I'm out of ideas on this.

-Steve W

On 4/14/2017 6:56 PM, David F. wrote:

I did not reply after my latest test, sorry.
I tried all tiff IMAGEMODE for my data set. None gave me 16 bit at the 
gis client.

As far as I understand gtiff is 8 bit.
The only IMAGEMODE for integer is signed INT16 , which is unfortunately 
the only supported integer data type. For RGB data unsigned integer is 
the only integer data type that makes sense. Just if i change the 
IMAGEMODE to FLOAT32 mapserver will serve more than 8 bit per band.
I think i will give gdal and float32 bit a try nevertheless it will 
double the image size.

Maybe someone else has an idea.





On April 14, 2017 1:43:09 PM Stephen Woodbridge 
 wrote:



http://mapserver.org/mapfile/outputformat.html

Why not serve them a GTiff format for qgis?

You can define multiple output formats in the mapfile, and let the
browser use the 8bit png and have qgis request images in gtiff format.

-Steve

On 4/13/2017 11:03 AM, David wrote:

Hi Steve,

thank you very much for your help. The Mapserver is serving the tiles
with the correct RGB values now. The problem is, that it is serving 8
bit per band and not 16 bit.
I need the 16bit because i want to use the wms as a base layer for some
further processing with qgis or another gis client. So no problem
regarding browsers for me.

I will take a look and change the data type to float32 for the tiff
files. At least this is an supported OUTPUTFORMAT for mapserver.
Any suggestions on this matter are highly appreciated.

Cheers,
David

-- Original Message --
From: mapserver-users-requ...@lists.osgeo.org
To: mapserver-users@lists.osgeo.org
Sent: 4/12/2017 4:00:02 PM
Subject: mapserver-users Digest, Vol 111, Issue 5


Send mapserver-users mailing list submissions to
 mapserver-users@lists.osgeo.org

To subscribe or unsubscribe via the World Wide Web, visit
 https://lists.osgeo.org/mailman/listinfo/mapserver-users
or, via email, send a message with subject or body 'help' to
 mapserver-users-requ...@lists.osgeo.org

You can reach the person managing the list at
 mapserver-users-ow...@lists.osgeo.org

When replying, please edit your Subject line so it is more specific
than "Re: Contents of mapserver-users digest..."


Today's Topics:

   1. geotiff 48bit with mapserver 7 wms (David)
   2. Re: geotiff 48bit with mapserver 7 wms (Stephen Woodbridge)


--

Message: 1
Date: Wed, 12 Apr 2017 00:22:12 +
From: David 
To: mapserver-users@lists.osgeo.org
Subject: [mapserver-users] geotiff 48bit with mapserver 7 wms
Message-ID: 
Content-Type: text/plain; charset="utf-8"; Format="flowed"

Hi there,

iam having some trouble to serve 48 bit geotiff images with a mapserver
7 wms. I created to layers for speed purposes with scale limiters. The
lowres layer is served well and looks good, it is 24bit geotiff
data(8bit per channel). But if the layer changes to the highres, 48bit
geotiff data(16bit per channel), the data is shown wrong.
I searched for some hints regarding a similar issue but could not find
something.

This is a screenshot of the loaded highres layer. It does not matter if
i load a bbox inside the browser, qgis or another wms client. The
highres data looks always the same.

image loaded from highres layer:
http://imgur.com/a/B65cp

the mapfile:
https://pastebin.com/4G2DZErZ

the gdalinfo for one 16bit 3-band tile:
https://pastebin.com/kfS0BjmE

Best Regards,
David
-- next part --
An HTML attachment was scrubbed...
URL:
 




--

Message: 2
Date: Tue, 11 Apr 2017 21:25:01 -0400
From: Stephen Woodbridge 
To: mapserver-users@lists.osgeo.org
Subject: Re: [mapserver-users] geotiff 48bit with mapserver 7 wms
Message-ID: 
Content-Type: text/plain; charset=utf-8; format=flowed

Read this:
http://mapserver.org/input/raster.html

You need to add to your highres layer

PROCESSING "SCALE=AUTO"

Or per band scaling. I done thing most browsers know what to do with 16
bits per channel.

-Steve W

On 4/11/2017 8:22 PM, David wrote:

 Hi there,

 iam having some trouble to serve 48 bit geotiff images with a 
mapserver
 7 wms. I created to layers for speed purposes with scale limiters. 
The

 lowres layer is served well and looks good, it is 24bit geotiff
 data(8bit per channel). But if the layer changes to the highres, 
48bit

 geotiff data(16bit per channel), the data is shown wrong.
 I 

Re: [mapserver-users] geotiff 48bit with mapserver 7 wms

2017-04-14 Thread David F.

I did not reply after my latest test, sorry.
I tried all tiff IMAGEMODE for my data set. None gave me 16 bit at the gis 
client.

As far as I understand gtiff is 8 bit.
The only IMAGEMODE for integer is signed INT16 , which is unfortunately the 
only supported integer data type. For RGB data unsigned integer is the only 
integer data type that makes sense. Just if i change the IMAGEMODE to 
FLOAT32 mapserver will serve more than 8 bit per band.
I think i will give gdal and float32 bit a try nevertheless it will double 
the image size.

Maybe someone else has an idea.





On April 14, 2017 1:43:09 PM Stephen Woodbridge  
wrote:



http://mapserver.org/mapfile/outputformat.html

Why not serve them a GTiff format for qgis?

You can define multiple output formats in the mapfile, and let the
browser use the 8bit png and have qgis request images in gtiff format.

-Steve

On 4/13/2017 11:03 AM, David wrote:

Hi Steve,

thank you very much for your help. The Mapserver is serving the tiles
with the correct RGB values now. The problem is, that it is serving 8
bit per band and not 16 bit.
I need the 16bit because i want to use the wms as a base layer for some
further processing with qgis or another gis client. So no problem
regarding browsers for me.

I will take a look and change the data type to float32 for the tiff
files. At least this is an supported OUTPUTFORMAT for mapserver.
Any suggestions on this matter are highly appreciated.

Cheers,
David

-- Original Message --
From: mapserver-users-requ...@lists.osgeo.org
To: mapserver-users@lists.osgeo.org
Sent: 4/12/2017 4:00:02 PM
Subject: mapserver-users Digest, Vol 111, Issue 5


Send mapserver-users mailing list submissions to
 mapserver-users@lists.osgeo.org

To subscribe or unsubscribe via the World Wide Web, visit
 https://lists.osgeo.org/mailman/listinfo/mapserver-users
or, via email, send a message with subject or body 'help' to
 mapserver-users-requ...@lists.osgeo.org

You can reach the person managing the list at
 mapserver-users-ow...@lists.osgeo.org

When replying, please edit your Subject line so it is more specific
than "Re: Contents of mapserver-users digest..."


Today's Topics:

   1. geotiff 48bit with mapserver 7 wms (David)
   2. Re: geotiff 48bit with mapserver 7 wms (Stephen Woodbridge)


--

Message: 1
Date: Wed, 12 Apr 2017 00:22:12 +
From: David 
To: mapserver-users@lists.osgeo.org
Subject: [mapserver-users] geotiff 48bit with mapserver 7 wms
Message-ID: 
Content-Type: text/plain; charset="utf-8"; Format="flowed"

Hi there,

iam having some trouble to serve 48 bit geotiff images with a mapserver
7 wms. I created to layers for speed purposes with scale limiters. The
lowres layer is served well and looks good, it is 24bit geotiff
data(8bit per channel). But if the layer changes to the highres, 48bit
geotiff data(16bit per channel), the data is shown wrong.
I searched for some hints regarding a similar issue but could not find
something.

This is a screenshot of the loaded highres layer. It does not matter if
i load a bbox inside the browser, qgis or another wms client. The
highres data looks always the same.

image loaded from highres layer:
http://imgur.com/a/B65cp

the mapfile:
https://pastebin.com/4G2DZErZ

the gdalinfo for one 16bit 3-band tile:
https://pastebin.com/kfS0BjmE

Best Regards,
David
-- next part --
An HTML attachment was scrubbed...
URL:



--

Message: 2
Date: Tue, 11 Apr 2017 21:25:01 -0400
From: Stephen Woodbridge 
To: mapserver-users@lists.osgeo.org
Subject: Re: [mapserver-users] geotiff 48bit with mapserver 7 wms
Message-ID: 
Content-Type: text/plain; charset=utf-8; format=flowed

Read this:
http://mapserver.org/input/raster.html

You need to add to your highres layer

PROCESSING "SCALE=AUTO"

Or per band scaling. I done thing most browsers know what to do with 16
bits per channel.

-Steve W

On 4/11/2017 8:22 PM, David wrote:

 Hi there,

 iam having some trouble to serve 48 bit geotiff images with a mapserver
 7 wms. I created to layers for speed purposes with scale limiters. The
 lowres layer is served well and looks good, it is 24bit geotiff
 data(8bit per channel). But if the layer changes to the highres, 48bit
 geotiff data(16bit per channel), the data is shown wrong.
 I searched for some hints regarding a similar issue but could not find
 something.

 This is a screenshot of the loaded highres layer. It does not matter if
 i load a bbox inside the browser, qgis or another wms client. The
 highres data looks always the same.

 image loaded from highres layer:
 http://imgur.com/a/B65cp

 the mapfile:
 

Re: [mapserver-users] styling point shapefile for wms

2017-04-14 Thread John Morgan

Hello, Jeff.

You were spot on! I had the lat/long's reversed as I was using 4326. 
Also, I looked at the warning and fixed those to.


Thanks so much for you help and service on this message board. Folks 
like you that make open source community work!


Cheers,
Derek
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users

Re: [mapserver-users] geotiff 48bit with mapserver 7 wms

2017-04-14 Thread Stephen Woodbridge

http://mapserver.org/mapfile/outputformat.html

Why not serve them a GTiff format for qgis?

You can define multiple output formats in the mapfile, and let the 
browser use the 8bit png and have qgis request images in gtiff format.


-Steve

On 4/13/2017 11:03 AM, David wrote:

Hi Steve,

thank you very much for your help. The Mapserver is serving the tiles 
with the correct RGB values now. The problem is, that it is serving 8 
bit per band and not 16 bit.
I need the 16bit because i want to use the wms as a base layer for some 
further processing with qgis or another gis client. So no problem 
regarding browsers for me.


I will take a look and change the data type to float32 for the tiff 
files. At least this is an supported OUTPUTFORMAT for mapserver.

Any suggestions on this matter are highly appreciated.

Cheers,
David

-- Original Message --
From: mapserver-users-requ...@lists.osgeo.org
To: mapserver-users@lists.osgeo.org
Sent: 4/12/2017 4:00:02 PM
Subject: mapserver-users Digest, Vol 111, Issue 5


Send mapserver-users mailing list submissions to
 mapserver-users@lists.osgeo.org

To subscribe or unsubscribe via the World Wide Web, visit
 https://lists.osgeo.org/mailman/listinfo/mapserver-users
or, via email, send a message with subject or body 'help' to
 mapserver-users-requ...@lists.osgeo.org

You can reach the person managing the list at
 mapserver-users-ow...@lists.osgeo.org

When replying, please edit your Subject line so it is more specific
than "Re: Contents of mapserver-users digest..."


Today's Topics:

   1. geotiff 48bit with mapserver 7 wms (David)
   2. Re: geotiff 48bit with mapserver 7 wms (Stephen Woodbridge)


--

Message: 1
Date: Wed, 12 Apr 2017 00:22:12 +
From: David 
To: mapserver-users@lists.osgeo.org
Subject: [mapserver-users] geotiff 48bit with mapserver 7 wms
Message-ID: 
Content-Type: text/plain; charset="utf-8"; Format="flowed"

Hi there,

iam having some trouble to serve 48 bit geotiff images with a mapserver
7 wms. I created to layers for speed purposes with scale limiters. The
lowres layer is served well and looks good, it is 24bit geotiff
data(8bit per channel). But if the layer changes to the highres, 48bit
geotiff data(16bit per channel), the data is shown wrong.
I searched for some hints regarding a similar issue but could not find
something.

This is a screenshot of the loaded highres layer. It does not matter if
i load a bbox inside the browser, qgis or another wms client. The
highres data looks always the same.

image loaded from highres layer:
http://imgur.com/a/B65cp

the mapfile:
https://pastebin.com/4G2DZErZ

the gdalinfo for one 16bit 3-band tile:
https://pastebin.com/kfS0BjmE

Best Regards,
David
-- next part --
An HTML attachment was scrubbed...
URL: 
 



--

Message: 2
Date: Tue, 11 Apr 2017 21:25:01 -0400
From: Stephen Woodbridge 
To: mapserver-users@lists.osgeo.org
Subject: Re: [mapserver-users] geotiff 48bit with mapserver 7 wms
Message-ID: 
Content-Type: text/plain; charset=utf-8; format=flowed

Read this:
http://mapserver.org/input/raster.html

You need to add to your highres layer

PROCESSING "SCALE=AUTO"

Or per band scaling. I done thing most browsers know what to do with 16
bits per channel.

-Steve W

On 4/11/2017 8:22 PM, David wrote:

 Hi there,

 iam having some trouble to serve 48 bit geotiff images with a mapserver
 7 wms. I created to layers for speed purposes with scale limiters. The
 lowres layer is served well and looks good, it is 24bit geotiff
 data(8bit per channel). But if the layer changes to the highres, 48bit
 geotiff data(16bit per channel), the data is shown wrong.
 I searched for some hints regarding a similar issue but could not find
 something.

 This is a screenshot of the loaded highres layer. It does not matter if
 i load a bbox inside the browser, qgis or another wms client. The
 highres data looks always the same.

 image loaded from highres layer:
 http://imgur.com/a/B65cp

 the mapfile:
 https://pastebin.com/4G2DZErZ

 the gdalinfo for one 16bit 3-band tile:
 https://pastebin.com/kfS0BjmE

 Best Regards,
 David


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




---
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus



--

Subject: Digest Footer

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


Re: [mapserver-users] styling point shapefile for wms

2017-04-14 Thread Jeff McKenna

Hi Derek,

Since your request is using WMS 1.3.0, the issue could be specifying 
long/lat vs lat/long in your CRS parameter of the WMS GetMap request 
(see example requests at 
http://mapserver.org/ogc/wms_server.html#coordinate-systems-and-axis-orientation).


I would also check the GetCapabilities response for any warnings.

Also, another option for testing your mapfile styling instead of your 
first link (CGI method) is to use the shp2img commandline utlity, that 
comes ready for your use in MS4W as well (see 
http://mapserver.org/utilities/shp2img.html).


Happy mapserving :)

-jeff



--
Jeff McKenna
MapServer Consulting and Training Services
http://www.gatewaygeomatics.com/




On 2017-04-13 10:29 PM, jmorgan3 wrote:

Hello,

I am attempting to set up a basic MapServer environment and finding
myself such at what I think is a styling through WMS issue. I am finding
if I call up a WMS via the following URL I get the expected results


http://127.0.0.1:8080/cgi-bin/mapserv.exe?map=/ms4w/apps/wq/wq.map=wq_stations=map


However, if I call the same WMS using

http://127.0.0.1:8080/cgi-bin/mapserv.exe?map=/ms4w/apps/wq/wq.map=WMS=/ms4w/apps/wq/wq.map=WMS=1.3.0=GetMap=wq_stations=EPSG:4326=-87.6,30.00,-87.26,31.00==600=600=image/png

I get a blank page. Perhaps in the first URL I am not actually using
WMS, but I am thinking the issue is more to do with how I setup or
incorrectly my STYLE. Here is my map file for reference:

#
# Start of map file
#
MAP
NAME WQ
STATUS ON
SIZE 600 600
EXTENT -87.6 30.00 -87.26 31.00
#EXTENT -87.60 28.67 -82.65 31.07 # [minx] [miny] [maxx] [maxy]
IMAGETYPE PNG
CONFIG "MS_ERRORFILE" "/ms4w/tmp/ms_error.txt"
DEBUG 5
PROJECTION
"init=epsg:4326"
END
WEB
# change the next two lines to match your setup
IMAGEPATH "C:/ms4w/tmp/ms_tmp/"
IMAGEURL "/ms_tmp/"
METADATA
WMS_TITLE "WQ Demo"
WMS_ABSTRACT "This is WQ Demo"
WMS_ENABLE_REQUEST "*"
WMS_ACCESSCONSTRAINTS "none"
# change this value to match your setup
WMS_ONLINERESOURCE
"http://127.0.0.1:8080/cgi-bin/mapserv.exe?map=/ms4w/apps/wq/wq.map;
WMS_SRS "EPSG:4326"
END
END
#Circle symbol
#Ref:
http://osgeo-org.1560.x6.nabble.com/Can-t-draw-points-from-shapefile-td5070300.html

SYMBOL
NAME 'CIRCLE'
TYPE ellipse
FILLED true
POINTS
  1 1
END
END
#
# Start of layer definitions
#
LAYER
NAME "wq_stations"
DATA 'data/ewqma_stations4326.shp'
STATUS ON
TYPE POINT
CLASS
STYLE
SYMBOL 'CIRCLE'
COLOR   255 1 1
END
END # CLASS
END # LAYER
END # LAYER
END # Map File

Any pointers on what I am doing or interpreting incorrectly would be
greatly appreciated.

Thanks,
Derek






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

Re: [mapserver-users] styling point shapefile for wms

2017-04-14 Thread Jeff McKenna
I can imagine after you do a GetCapabilities request you will notice 
many warnings in that response: be sure to get rid of all warnings, or 
else there will be problems in clients downstream (QGIS etc).  For 
example, be sure to add metadata for all layers, and a projection object 
to all layers, etc etc.  Best/easiest to just follow a working example 
mapfile:  http://mapserver.org/ogc/wms_server.html#sample-wms-server-mapfile


Have a nice easter,

-jeff



--
Jeff McKenna
MapServer Consulting and Training Services
http://www.gatewaygeomatics.com/



On 2017-04-14 1:13 PM, Jeff McKenna wrote:

Hi Derek,

Since your request is using WMS 1.3.0, the issue could be specifying
long/lat vs lat/long in your CRS parameter of the WMS GetMap request
(see example requests at
http://mapserver.org/ogc/wms_server.html#coordinate-systems-and-axis-orientation).


I would also check the GetCapabilities response for any warnings.

Also, another option for testing your mapfile styling instead of your
first link (CGI method) is to use the shp2img commandline utlity, that
comes ready for your use in MS4W as well (see
http://mapserver.org/utilities/shp2img.html).

Happy mapserving :)

-jeff





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