Re: [mapserver-users] MapServer and 24bit Images

2012-12-07 Thread José Pedro Santos

Hi Steve, 

Thanks for the information. Basically I want only to display the layer (as WMS 
service) in the browser for testing or a real client. The layer have 3 bands 
and is a 24bit image

My MAPFILE is this one(OUTPUTFORMAT and LAYER parameters):

OUTPUTFORMAT # Parameter Outputformat
 NAME png24
 DRIVER GD/PNG
 MIMETYPE image/png;mode=24bit
 EXTENSION PNG
 IMAGEMODE RGB
END # End parameter Outputformat

LAYER # beginning of the layer parameter
 NAME fapartest
 TYPE RASTER
 STATUS ON
 DATA PG:host=localhost port=5432 dbname='mydb' user='postgres' 
password='' schema='public' table='mytable' mode='2'
 PROCESSING NODATA=0
 PROCESSING SCALE=AUTO
 PROCESSING BANDS=1,2,3
.

I don't have class parameter since I don't want to classify the map just 
visualize the information. Any idea?

Best Regards and thanks,

José Santos 



 From: steve.l...@state.mn.us
 To: zpsant...@hotmail.com; mapserver-users@lists.osgeo.org
 Subject: RE: [mapserver-users] MapServer and 24bit Images
 Date: Tue, 4 Dec 2012 19:26:01 +
 
 I display true-color imagery all the time. I suspect that's not what you're 
 trying to do though. You'll have to be more specific on format, perhaps post 
 a layer definition?
 
 Steve
 
 -Original Message-
 From: mapserver-users-boun...@lists.osgeo.org 
 [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Saint
 Sent: Monday, December 03, 2012 10:06 AM
 To: mapserver-users@lists.osgeo.org
 Subject: [mapserver-users] MapServer and 24bit Images
 
 Dear all, 
 
 I would like to have this confirmation, MapServer support 24bit image with 3 
 bands? I have one 24bit image 1 band and I can see in the browser but the 
 other with 3 bands I can't. Only appear the the outline line of the class e 
 not the image. 
 
 Many thanks
 José Santos  
 
 
 
 -
 José Santos
 GIS Analyst
 --
 View this message in context: 
 http://osgeo-org.1560.n6.nabble.com/MapServer-and-24bit-Images-tp5020409.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 and 24bit Images

2012-12-07 Thread Carlos Ruiz
José,

Yo presento imágenes de 3 bandas como WMS sin problema alguno. Debo decir que 
no uso de OUTPUTFORMAT en estos casos ya que desde los parámetros del URL se 
especifica el formato de salida (parámetro FORMAT).


Por lo que veo, estás queriendo acceder a una capa tipo raster desde una base 
de datos en Postgres.

¿ Integraste una capa raster a Postgres (gracias a que en las ultimas versiones 
de PostGIS se incluyó lo que era el proyecto WKTRaster) ? ¿ O estás queriendo 
acceder a un archivo raster directamente ? 


Desconozco si las directivas PROCESSING aplican para una capa raster en 
PostGIS, nunca he intentado trabajar con esto.


Saludos desde México



José,

I work with 3 bands images as WMS with no problem at all. I must say that i 
didn't use the OUTPUTFORMAT because I can specify the output format in the URL 
(FORMAT parameter).

As I see, you want to show a raster layer from a Postgres database.

¿ Do you added a raster layer into Postgres (thanks to the latest versions of 
PostGIS which added the WKTRaster project) ? or ¿ Do you want to access 
directly to a raster file ?

I don't know if the PROCESSING directives apply to a PostGIS raster layer, I've 
never tried to work with this.


Cheers from México

 
IC Carlos Ruiz




 From: José Pedro Santos zpsant...@hotmail.com
To: steve.l...@state.mn.us; mapserver-users@lists.osgeo.org 
Sent: Friday, December 7, 2012 8:35 AM
Subject: Re: [mapserver-users] MapServer and 24bit Images
 

 
Hi Steve, 

Thanks for the information. Basically I want only to display the layer (as WMS 
service) in the browser for testing or a real client. The layer have 3 bands 
and is a 24bit image

My MAPFILE is this one(OUTPUTFORMAT and LAYER parameters):

OUTPUTFORMAT # Parameter Outputformat
 NAME png24
 DRIVER GD/PNG
 MIMETYPE image/png;mode=24bit
 EXTENSION PNG
 IMAGEMODE RGB
END # End parameter Outputformat

LAYER # beginning of the layer parameter
 NAME fapartest
 TYPE RASTER
 STATUS ON
 DATA PG:host=localhost port=5432 dbname='mydb' user='postgres' 
password='' schema='public' table='mytable' mode='2'
 PROCESSING NODATA=0
 PROCESSING SCALE=AUTO
 PROCESSING BANDS=1,2,3
.

I don't have class parameter since I don't want to classify the map just 
visualize the information. Any idea?

Best Regards and thanks,

José Santos 




 From: steve.l...@state.mn.us
 To: zpsant...@hotmail.com; mapserver-users@lists.osgeo.org
 Subject: RE: [mapserver-users] MapServer and 24bit Images
 Date: Tue, 4 Dec 2012 19:26:01 +
 
 I display true-color imagery all the time. I suspect that's not what you're 
 trying to do though. You'll have to be more specific on format, perhaps post 
 a layer definition?
 
 Steve
 
 -Original Message-
 From: mapserver-users-boun...@lists.osgeo.org 
 [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Saint
 Sent: Monday, December 03, 2012 10:06 AM
 To: mapserver-users@lists.osgeo.org
 Subject: [mapserver-users] MapServer and 24bit Images
 
 Dear all, 
 
 I would like to have this confirmation, MapServer support 24bit image with 3 
 bands? I have one 24bit image 1 band and I can see in the browser but the 
 other with 3 bands I can't. Only appear the the outline line of the class e 
 not the image. 
 
 Many thanks
 José Santos 
 
 
 
 -
 José Santos
 GIS Analyst
 --
 View this message in context: 
 http://osgeo-org.1560.n6.nabble.com/MapServer-and-24bit-Images-tp5020409.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___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] MapServer and 24bit Images

2012-12-07 Thread Lime, Steve D (DNR)
I'm assuming you're using MapServer 6.x... If so then your output format may be 
the issue. GD doesn't support 24-bit output, just 8-bit. Try deleting the 
OUTPUTFORMAT
and setting IMAGETYPE PNG24 and see if that works.

Steve

From: José Pedro Santos [mailto:zpsant...@hotmail.com]
Sent: Friday, December 07, 2012 8:36 AM
To: Lime, Steve D (DNR); mapserver-users@lists.osgeo.org
Subject: RE: [mapserver-users] MapServer and 24bit Images

Hi Steve,

Thanks for the information. Basically I want only to display the layer (as WMS 
service) in the browser for testing or a real client. The layer have 3 bands 
and is a 24bit image

My MAPFILE is this one(OUTPUTFORMAT and LAYER parameters):

OUTPUTFORMAT # Parameter Outputformat
 NAME png24
 DRIVER GD/PNG
 MIMETYPE image/png;mode=24bit
 EXTENSION PNG
 IMAGEMODE RGB
END # End parameter Outputformat

LAYER # beginning of the layer parameter
 NAME fapartest
 TYPE RASTER
 STATUS ON
 DATA PG:host=localhost port=5432 dbname='mydb' user='postgres' 
password='' schema='public' table='mytable' mode='2'
 PROCESSING NODATA=0
 PROCESSING SCALE=AUTO
 PROCESSING BANDS=1,2,3
.

I don't have class parameter since I don't want to classify the map just 
visualize the information. Any idea?

Best Regards and thanks,

José Santos


 From: steve.l...@state.mn.usmailto:steve.l...@state.mn.us
 To: zpsant...@hotmail.commailto:zpsant...@hotmail.com; 
 mapserver-users@lists.osgeo.orgmailto:mapserver-users@lists.osgeo.org
 Subject: RE: [mapserver-users] MapServer and 24bit Images
 Date: Tue, 4 Dec 2012 19:26:01 +

 I display true-color imagery all the time. I suspect that's not what you're 
 trying to do though. You'll have to be more specific on format, perhaps post 
 a layer definition?

 Steve

 -Original Message-
 From: 
 mapserver-users-boun...@lists.osgeo.orgmailto:mapserver-users-boun...@lists.osgeo.org
  [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Saint
 Sent: Monday, December 03, 2012 10:06 AM
 To: mapserver-users@lists.osgeo.orgmailto:mapserver-users@lists.osgeo.org
 Subject: [mapserver-users] MapServer and 24bit Images

 Dear all,

 I would like to have this confirmation, MapServer support 24bit image with 3 
 bands? I have one 24bit image 1 band and I can see in the browser but the 
 other with 3 bands I can't. Only appear the the outline line of the class e 
 not the image.

 Many thanks
 José Santos



 -
 José Santos
 GIS Analyst
 --
 View this message in context: 
 http://osgeo-org.1560.n6.nabble.com/MapServer-and-24bit-Images-tp5020409.html
 Sent from the Mapserver - User mailing list archive at Nabble.com.
 ___
 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] Help - debug error

2012-12-07 Thread Lin, Joyce
Hello,

Can somepone help me or explain me the error please:


getString(): Symbol definition error. Parsing error near (2013):(line 38)


and my mapfile is below

MAP
   CONFIG MS_ERRORFILE /ms4w/tmp/ms_tmp/ms_error_well.txt
   DEBUG 5
   NAME '2013_PXD_Wells'
   SIZE 800 650
   STATUS ON
   EXTENT  2016274.741485 176555.010138 2688771.295454 620600.467750
   UNITS FEET

   INCLUDE /ms4w/apps/geomoose2/maps/geomoose_globals.map

  WEB
 METADATA
   'ows_title' '2013 Pioneer Drilling Program'
   'ows_srs' 'EPSG:4267 EPSG:4326 EPSG:900913 EPSG:3857'
   'ows_enable_request' '*'
   'ows_onlineresource' 'http://www.pxd.com'
 END
  END

  PROJECTION
 'init=epsg:3857'
  END


  LEGEND
   STATUS ON
   LABEL
   TYPE TRUETYPE
   FONT vera_sans
   SIZE 8
   COLOR 0 0 0
   END
  END


  LAYER
 NAME 2013_PXD_Wells
 DATA './2013_PXD_Wells.shp'
 STATUS ON
 TYPE LINE
 LABELITEM 'Well_Name'
 LABELCACHE ON
 LABELMAXSCALE 2


 PROJECTION
'init=epsg:32040'
 END


   CLASS
  NAME '2013_PXD_Wells'
  STYLE
  #  WIDTH 1
 COLOR 0 0 0

  #  MAXSCALEDENOM 5
  END
  #STYLE
  #  SIZE 1
  #  COLOR -1 -1 -1
  #  OUTLINECOLOR 255 204 153
  #END

  LABEL
 TYPE TRUETYPE
 FONT vera_sans
 SIZE 8
 ANGLE FOLLOW
 OUTLINECOLOR 254 254 200
 BUFFER 4
 MINFEATURESIZE auto
 PARTIALS FALSE
  #  POSITION cc
  END
   END


   METADATA
  # drill-down identify service record.
  'identify_record''templates/identify.html'

  # query.php / Search Lease functionality.
  'itemquery'   'templates/search_result.html'
  'itemquery-filter'   '/.*[qstring].*/i'
  'qstring_validation_pattern' '.'

  # Feature reports are stored in the 
conf/feature_report directory.
  'feature_report' 'Lease.xml'

'select_record'  'templates/select_result.html'
  'select_header' 'templates/select_header.html'
  'popups' 'Welle_popup.html'

   END



END

END ## end Map






Statement of Confidentiality:
This message may contain information that is privileged or confidential. If you 
receive this transmission in error, please notify the sender by reply e-mail 
and delete the message and any attachments.___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] Help - debug error

2012-12-07 Thread Brent Fraser

try putting your layer name in quotes

*  LAYER
 NAME '2013_PXD_Wells*'

Best Regards,
Brent Fraser

On 12/7/2012 4:14 PM, Lin, Joyce wrote:


Hello,

Can somepone help me or explain me the error please:

getString(): Symbol definition error. Parsing error near (2013):(line 38)

/_and my mapfile is below _/

MAP

   CONFIG MS_ERRORFILE /ms4w/tmp/ms_tmp/ms_error_well.txt

   DEBUG 5

   NAME '2013_PXD_Wells'

   SIZE 800 650

   STATUS ON

   EXTENT 2016274.741485 176555.010138 2688771.295454 620600.467750

   UNITS FEET

   INCLUDE /ms4w/apps/geomoose2/maps/geomoose_globals.map

WEB

METADATA

'ows_title' '2013 Pioneer Drilling Program'

'ows_srs' 'EPSG:4267 EPSG:4326 EPSG:900913 EPSG:3857'

'ows_enable_request' '*'

'ows_onlineresource' 'http://www.pxd.com'

END

END

PROJECTION

'init=epsg:3857'

END

LEGEND

  STATUS ON

  LABEL

TYPE TRUETYPE

FONT vera_sans

SIZE 8

COLOR 0 0 0

  END

END

LAYER

NAME 2013_PXD_Wells

DATA './2013_PXD_Wells.shp'

STATUS ON

TYPE LINE

LABELITEM 'Well_Name'

LABELCACHE ON

LABELMAXSCALE 2

PROJECTION

 'init=epsg:32040'

END

CLASS

NAME '2013_PXD_Wells'

STYLE

#  WIDTH 1

COLOR 0 0 0

#  MAXSCALEDENOM 5

END

#STYLE

#  SIZE 1

#  COLOR -1 -1 -1

#  OUTLINECOLOR 255 204 153

#END

LABEL

TYPE TRUETYPE

FONT vera_sans

SIZE 8

ANGLE FOLLOW

OUTLINECOLOR 254 254 200

BUFFER 4

MINFEATURESIZE auto

PARTIALS FALSE

#  POSITION cc

END

END

METADATA

# drill-down identify service record.

 'identify_record' 'templates/identify.html'

# query.php / Search Lease functionality.

'itemquery'   'templates/search_result.html'

'itemquery-filter'   '/.*[qstring].*/i'

'qstring_validation_pattern' '.'

# Feature reports are stored in the conf/feature_report directory.

'feature_report' 'Lease.xml'

   'select_record' 'templates/select_result.html'

'select_header' 'templates/select_header.html'

'popups' 'Welle_popup.html'

END

  END

END ## end Map




Statement of Confidentiality:
This message may contain information that is privileged or 
confidential. If you receive this transmission in error, please notify 
the sender by reply e-mail and delete the message and any attachments.



___
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] Help - debug error

2012-12-07 Thread Lin, Joyce
Thank you! That fixed my issue.

From: Brent Fraser [mailto:bfra...@geoanalytic.com]
Sent: Friday, December 07, 2012 5:35 PM
To: Lin, Joyce
Cc: mapserver-users@lists.osgeo.org
Subject: Re: [mapserver-users] Help - debug error

try putting your layer name in quotes

  LAYER
 NAME '2013_PXD_Wells'


Best Regards,

Brent Fraser
On 12/7/2012 4:14 PM, Lin, Joyce wrote:
Hello,

Can somepone help me or explain me the error please:


getString(): Symbol definition error. Parsing error near (2013):(line 38)


and my mapfile is below

MAP
   CONFIG MS_ERRORFILE /ms4w/tmp/ms_tmp/ms_error_well.txt
   DEBUG 5
   NAME '2013_PXD_Wells'
   SIZE 800 650
   STATUS ON
   EXTENT  2016274.741485 176555.010138 2688771.295454 620600.467750
   UNITS FEET

   INCLUDE /ms4w/apps/geomoose2/maps/geomoose_globals.map

  WEB
 METADATA
   'ows_title' '2013 Pioneer Drilling Program'
   'ows_srs' 'EPSG:4267 EPSG:4326 EPSG:900913 EPSG:3857'
   'ows_enable_request' '*'
   'ows_onlineresource' 'http://www.pxd.com'
 END
  END

  PROJECTION
 'init=epsg:3857'
  END


  LEGEND
   STATUS ON
   LABEL
   TYPE TRUETYPE
   FONT vera_sans
   SIZE 8
   COLOR 0 0 0
   END
  END


  LAYER
 NAME 2013_PXD_Wells
 DATA './2013_PXD_Wells.shp'
 STATUS ON
 TYPE LINE
 LABELITEM 'Well_Name'
 LABELCACHE ON
 LABELMAXSCALE 2


 PROJECTION
'init=epsg:32040'
 END


   CLASS
  NAME '2013_PXD_Wells'
  STYLE
  #  WIDTH 1
 COLOR 0 0 0

  #  MAXSCALEDENOM 5
  END
  #STYLE
  #  SIZE 1
  #  COLOR -1 -1 -1
  #  OUTLINECOLOR 255 204 153
  #END

  LABEL
 TYPE TRUETYPE
 FONT vera_sans
 SIZE 8
 ANGLE FOLLOW
 OUTLINECOLOR 254 254 200
 BUFFER 4
 MINFEATURESIZE auto
 PARTIALS FALSE
  #  POSITION cc
  END
   END


   METADATA
  # drill-down identify service record.
  'identify_record''templates/identify.html'

  # query.php / Search Lease functionality.
  'itemquery'   'templates/search_result.html'
  'itemquery-filter'   '/.*[qstring].*/i'
  'qstring_validation_pattern' '.'

  # Feature reports are stored in the 
conf/feature_report directory.
  'feature_report' 'Lease.xml'

'select_record'  'templates/select_result.html'
  'select_header' 'templates/select_header.html'
  'popups' 'Welle_popup.html'

   END



END

END ## end Map




Statement of Confidentiality:
This message may contain information that is privileged or confidential. If you 
receive this transmission in error, please notify the sender by reply e-mail 
and delete the message and any attachments.




___

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


Re: [mapserver-users] Help - debug error

2012-12-07 Thread Rahkonen Jukka
Hi,

It can be good to know that according to OGC standards the layer names must not 
start with a number or underscore. Most WMS clients do not care but there are 
some schema validating WMS clients and more schema validating WFS clients 
around which do not accept such names.

-Jukka Rahkonen-


Brent Fraser

 try putting your layer name in quotes

  LAYER
 NAME '2013_PXD_Wells'

Best Regards,
Brent Fraser

On 12/7/2012 4:14 PM, Lin, Joyce wrote:
Hello,

Can somepone help me or explain me the error please:


getString(): Symbol definition error. Parsing error near (2013):(line 38)


and my mapfile is below

MAP
   CONFIG MS_ERRORFILE /ms4w/tmp/ms_tmp/ms_error_well.txt
   DEBUG 5
   NAME '2013_PXD_Wells'
   SIZE 800 650
   STATUS ON
   EXTENT  2016274.741485 176555.010138 2688771.295454 620600.467750
   UNITS FEET

   INCLUDE /ms4w/apps/geomoose2/maps/geomoose_globals.map

  WEB
 METADATA
   'ows_title' '2013 Pioneer Drilling Program'
   'ows_srs' 'EPSG:4267 EPSG:4326 EPSG:900913 EPSG:3857'
   'ows_enable_request' '*'
   'ows_onlineresource' 'http://www.pxd.com'
 END
  END

  PROJECTION
 'init=epsg:3857'
  END


  LEGEND
   STATUS ON
   LABEL
   TYPE TRUETYPE
   FONT vera_sans
   SIZE 8
   COLOR 0 0 0
   END
  END


  LAYER
 NAME 2013_PXD_Wells
 DATA './2013_PXD_Wells.shp'
 STATUS ON
 TYPE LINE
 LABELITEM 'Well_Name'
 LABELCACHE ON
 LABELMAXSCALE 2


 PROJECTION
'init=epsg:32040'
 END


   CLASS
  NAME '2013_PXD_Wells'
  STYLE
  #  WIDTH 1
 COLOR 0 0 0

  #  MAXSCALEDENOM 5
  END
  #STYLE
  #  SIZE 1
  #  COLOR -1 -1 -1
  #  OUTLINECOLOR 255 204 153
  #END

  LABEL
 TYPE TRUETYPE
 FONT vera_sans
 SIZE 8
 ANGLE FOLLOW
 OUTLINECOLOR 254 254 200
 BUFFER 4
 MINFEATURESIZE auto
 PARTIALS FALSE
  #  POSITION cc
  END
   END


   METADATA
  # drill-down identify service record.
  'identify_record''templates/identify.html'

  # query.php / Search Lease functionality.
  'itemquery'   'templates/search_result.html'
  'itemquery-filter'   '/.*[qstring].*/i'
  'qstring_validation_pattern' '.'

  # Feature reports are stored in the 
conf/feature_report directory.
  'feature_report' 'Lease.xml'

'select_record'  'templates/select_result.html'
  'select_header' 'templates/select_header.html'
  'popups' 'Welle_popup.html'

   END



END

END ## end Map





Statement of Confidentiality:
This message may contain information that is privileged or confidential. If you 
receive this transmission in error, please notify the sender by reply e-mail 
and delete the message and any attachments.



___
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