Re: [mapserver-users] Creating and editing UTF8 shape files

2010-12-16 Thread Tom van der Putte
Hi
Ian,
 It is also possible to save shapefiles in UTF8 in ArcMap by changing
a registry entry (a little user-unfriendly, but it works). See
http://resources.arcgis.com/content/kbase?fa=articleShowd=21106 [1] .
 Tom van der Putte
 

Links:
--
[1]
http://resources.arcgis.com/content/kbase?fa=articleShowamp;d=21106
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] Accessing NearMap tile server through MapServer

2010-12-16 Thread Michael Shishcu
Hi Neil

Actually EPSG 4326 has extent +/- 90, +/- 180. Think you do not have blank
map, but everything in a single pixel in the center ;-)
try EPSG:900913 instead

hope this helps, regards, michael

On 16 December 2010 07:49, Neil Mercer
neil.mer...@douglaspartners.com.auwrote:

  Hi,



 I’m attempting to access the NearMap service through MapServer.  Based on
 the documentation on the NearMap web site I have successfully created an XML
 file for GDAL to source imagery.  Testing via gdal_translate shows I can
 pull imagery OK.



 I’ve added the GDAL source to my mapfile as shown below, and have been able
 to have the layer show in a GetCapabilities request.  However if I attempt
 to request a map I get a blank image back from MapServer – no error, just a
 blank image.  Is there something obvious wrong?  Is there a way to verify
 the request being passed from MapServer to GDAL?



 Here’s my layer definition:



 LAYER

 NAME NearMap

 METADATA

 wms_title NearMap

 END

 TYPE RASTER

 DATA data/nearmap.xml

 STATUS ON

 PROJECTION

 init=epsg:4326

 END

 EXTENT -20037508.34 -20037508.34 20037508.34 20037508.34

 UNITS meters

 END



 Thanks,

 Neil.

 ___
 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] Re: Fwd: Hiding Layers in OGC We b Services ¶

2010-12-16 Thread tellett

Hi Tanya,

You have a couple of options here depending on whether you want the
individual layer metadata to be visible in the capabilities file or not. 

The first option is to assign no NAME attribute to the individual layers but
have a GROUP attribute. This would allow the individual layers to be seen in
the capabilities file, with all their associated metadata (metadata which
the group layer would not have), but they would not be queryable in an OGC
request.

Option 2 is to use the ows_hidden_layer true attribute and code. This is
slightly different in that you use this with the REQUIRES attribute to 'tie'
layers together. This has the downside that no group layer is created as
such, just a kind of 'master' layer that all other layers are tied to, so
that if the 'master' layer is requested all other layers tied to it are
automatically requested.That probably made no sense so an example:

LAYER
 NAME master
 .
 .
END

LAYER
 NAME sublayer1
 ...
 REQUIRES [master]
METADATA
 ows_hidden_layer true
END
END

LAYER
 NAME sublayer2
 .
 REQUIRES [master]
METADATA
 ows_hidden_layer true
END
END


In this example, sublayer1 and sublayer2 will not be seen in a
capabilities file and cannot be queried. However, they are 'tied' to the
master layer so that if this layer is requested, sublayer1 and
sublayer2 are also requested.

Hope this might help a bit!!

To be honest we're not that happy with the options available for hiding
layers and the control over nested layers, especially as the current options
don't fulfill our needs over here in Europe with regards the INSPIRE
specifications. So we've written an RFC if you're interested with regards
container layers that would give you a lot more control over layer
behaviour, we're still hoping someone is interested enough to make the, not
insignificant, coding changes!

http://osgeo-org.1803224.n2.nabble.com/INSPIRE-compliancy-A-request-for-comments-on-a-possible-RFC-td5661761.html#a5661761
'

http://trac.osgeo.org/mapserver/ticket/3608 

Cheers

Tom

-- 
View this message in context: 
http://osgeo-org.1803224.n2.nabble.com/Fwd-Hiding-Layers-in-OGC-Web-Services-tp5840585p5841309.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] draw hatch pattern with image file (ex. gif, etc)

2010-12-16 Thread Isao NASUNO

Hello all,

Is it possible to draw hatch pattern without symbol (vector)
but using small image file which have tranparency like gif etc ?
Layer type is polygon.


  :
type polygon
  :
class
  name x
  expression x
  color 255 200 200
  style
image smallimage.gif   # -- like this..
  end
end


Thanks,

Isao NASUNO

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


Re: [mapserver-users] draw hatch pattern with image file (ex. gif, etc)

2010-12-16 Thread thomas bonfort
if your image contains a hatch, yes, it's possible, although you can't
change the color.
if you want to create a hatch, use:

symbol
 name hatch
 type hatch
end

layer
...
 style
   symbol hatch
   color 0 0 0
   angle 45 #hatch orientation
   width 1  #line width
   size 10  #spacing between lines
 end
end

--
thomas

On Thu, Dec 16, 2010 at 10:46, Isao NASUNO isao.nas...@ctc-g.co.jp wrote:
 Hello all,

 Is it possible to draw hatch pattern without symbol (vector)
 but using small image file which have tranparency like gif etc ?
 Layer type is polygon.

 
  :
 type polygon
  :
 class
  name x
  expression x
  color 255 200 200
  style
    image smallimage.gif   # -- like this..
  end
 end
 

 Thanks,

 Isao NASUNO

 ___
 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] OGR data layer type - points and lines

2010-12-16 Thread Stephen Woodbridge

I do not believe that this is possible.
If you want to draw lines you have to create a data source the returns 
lines not points.


The problem is that mapserver draws features and each point is a 
feature. It does not have a mechanism that can read a data source and 
aggregate the point features into a single line feature.


I have seen posts on the PostGIS list for SQL that can do this. You 
might ask on the GDAL list if there is a way to do this. Or if you can 
use PostGIS, then you can find the SQL in the archives or ask again.


-Steve W

On 12/16/2010 1:00 AM, Ian Walberg wrote:

Hello list,

Using an OGR connection to an sqlite data file we can get point and
labels to draw successfully.

However when we try and draw a line using the point data we do not get
anything drawn.

Layer details below.

Thanks

Ian

LAYER

NAME ogr_points

STATUS DEFAULT

TYPE point

CONNECTIONTYPE OGR

CONNECTION points.sqlite

DATA DataPoints

CLASS

NAME From OGR

COLOR 255 0 0

STYLE

SYMBOL 'City'

SIZE 5

COLOR 0 255 255

END

LABEL

COLOR 255 255 255

OUTLINECOLOR 0 0 0

TYPE truetype

FONT Unicode

SIZE 16

ANTIALIAS TRUE

POSITION AUTO

END # end of label

END

END

LAYER

NAME ogr_line

STATUS OFF

TYPE line

CONNECTIONTYPE OGR

CONNECTION points.sqlite

DATA DataPoints

CLASS

STYLE

COLOR 255 22 22

WIDTH 2

END

END

END



___
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] OGR data layer type - points and lines

2010-12-16 Thread Ian Walberg
Ah, ok let us look at that.

I do believe the data source we have has data in the format POINT
(-118.55000305194 34.0141239).

What is the format for line data?

Thanks

Ian

-Original Message-
From: mapserver-users-boun...@lists.osgeo.org
[mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Stephen
Woodbridge
Sent: Thursday, December 16, 2010 6:57 AM
To: mapserver-users@lists.osgeo.org
Subject: Re: [mapserver-users] OGR data layer type - points and lines

I do not believe that this is possible.
If you want to draw lines you have to create a data source the returns 
lines not points.

The problem is that mapserver draws features and each point is a 
feature. It does not have a mechanism that can read a data source and 
aggregate the point features into a single line feature.

I have seen posts on the PostGIS list for SQL that can do this. You 
might ask on the GDAL list if there is a way to do this. Or if you can 
use PostGIS, then you can find the SQL in the archives or ask again.

-Steve W

On 12/16/2010 1:00 AM, Ian Walberg wrote:
 Hello list,

 Using an OGR connection to an sqlite data file we can get point and
 labels to draw successfully.

 However when we try and draw a line using the point data we do not get
 anything drawn.

 Layer details below.

 Thanks

 Ian

 LAYER

 NAME ogr_points

 STATUS DEFAULT

 TYPE point

 CONNECTIONTYPE OGR

 CONNECTION points.sqlite

 DATA DataPoints

 CLASS

 NAME From OGR

 COLOR 255 0 0

 STYLE

 SYMBOL 'City'

 SIZE 5

 COLOR 0 255 255

 END

 LABEL

 COLOR 255 255 255

 OUTLINECOLOR 0 0 0

 TYPE truetype

 FONT Unicode

 SIZE 16

 ANTIALIAS TRUE

 POSITION AUTO

 END # end of label

 END

 END

 LAYER

 NAME ogr_line

 STATUS OFF

 TYPE line

 CONNECTIONTYPE OGR

 CONNECTION points.sqlite

 DATA DataPoints

 CLASS

 STYLE

 COLOR 255 22 22

 WIDTH 2

 END

 END

 END



 ___
 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


[mapserver-users] [MAPFILE] How to display Logos above Labels ?

2010-12-16 Thread Lordnecron

Hi, 

I'm currently writing a mapfile.
I'm trying to display my point layer with the following CLASS :

LAYER
NAME LAYER_DN
DATA D:\Data\DN
TYPE POINT
STATUS   ON
CLASS
SYMBOL 'D:\temp\Telecom_1_20px.png'
SIZE 15
END
END

This LAYER is placed ABOVE a Road Layer - GOOD
This LAYER is displayed ABOVE the Road Layer BUT UNDER the Road Labels.
- NOT GOOD

Is there a way to display the POINT above the labels ?
If not, is there a way to manage the conflict between the Road Labels  my
point symbol ?

Thanks a lot for your help,

Best regards, 

Julien
-- 
View this message in context: 
http://osgeo-org.1803224.n2.nabble.com/MAPFILE-How-to-display-Logos-above-Labels-tp5842449p5842449.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


Re: [mapserver-users] [MAPFILE] How to display Logos above Labels ?

2010-12-16 Thread Michael Shishcu
maybe POSTLABELCACHE ?

On 16 December 2010 17:57, Lordnecron julien.bey...@caramail.com wrote:


 Hi,

 I'm currently writing a mapfile.
 I'm trying to display my point layer with the following CLASS :

 LAYER
NAME LAYER_DN
DATA D:\Data\DN
TYPE POINT
STATUS   ON
CLASS
SYMBOL 'D:\temp\Telecom_1_20px.png'
SIZE 15
END
 END

 This LAYER is placed ABOVE a Road Layer - GOOD
 This LAYER is displayed ABOVE the Road Layer BUT UNDER the Road Labels.
 - NOT GOOD

 Is there a way to display the POINT above the labels ?
 If not, is there a way to manage the conflict between the Road Labels  my
 point symbol ?

 Thanks a lot for your help,

 Best regards,

 Julien
 --
 View this message in context:
 http://osgeo-org.1803224.n2.nabble.com/MAPFILE-How-to-display-Logos-above-Labels-tp5842449p5842449.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] OGR data layer type - points and lines

2010-12-16 Thread Stephen Woodbridge

On 12/16/2010 10:51 AM, Ian Walberg wrote:

Ah, ok let us look at that.

I do believe the data source we have has data in the format POINT
(-118.55000305194 34.0141239).

What is the format for line data?


I'm not sure, I have not used the OGR connection. Assuming it is 
returning WKT where points are:


POINT(-118.55000305194 34.0141239)

then lines would be:

LINESTRING(-118.55000305194 34.0141239,-118.56000305194 
34.0141239,...)


-Steve


Thanks

Ian

-Original Message-
From: mapserver-users-boun...@lists.osgeo.org
[mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Stephen
Woodbridge
Sent: Thursday, December 16, 2010 6:57 AM
To: mapserver-users@lists.osgeo.org
Subject: Re: [mapserver-users] OGR data layer type - points and lines

I do not believe that this is possible.
If you want to draw lines you have to create a data source the returns
lines not points.

The problem is that mapserver draws features and each point is a
feature. It does not have a mechanism that can read a data source and
aggregate the point features into a single line feature.

I have seen posts on the PostGIS list for SQL that can do this. You
might ask on the GDAL list if there is a way to do this. Or if you can
use PostGIS, then you can find the SQL in the archives or ask again.

-Steve W

On 12/16/2010 1:00 AM, Ian Walberg wrote:

Hello list,

Using an OGR connection to an sqlite data file we can get point and
labels to draw successfully.

However when we try and draw a line using the point data we do not get
anything drawn.

Layer details below.

Thanks

Ian

LAYER

NAME ogr_points

STATUS DEFAULT

TYPE point

CONNECTIONTYPE OGR

CONNECTION points.sqlite

DATA DataPoints

CLASS

NAME From OGR

COLOR 255 0 0

STYLE

SYMBOL 'City'

SIZE 5

COLOR 0 255 255

END

LABEL

COLOR 255 255 255

OUTLINECOLOR 0 0 0

TYPE truetype

FONT Unicode

SIZE 16

ANTIALIAS TRUE

POSITION AUTO

END # end of label

END

END

LAYER

NAME ogr_line

STATUS OFF

TYPE line

CONNECTIONTYPE OGR

CONNECTION points.sqlite

DATA DataPoints

CLASS

STYLE

COLOR 255 22 22

WIDTH 2

END

END

END



___
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] WMS image doesn't shows at major scales

2010-12-16 Thread Carlos Ruiz
After several tests, spliting in 4 file the original ECW file and using 
gdaltindex, solved the problem. The original 

ECW sizes 1.99 GB (2147420380 bytes) so I guess it was a memory matter.

Thanks to all

Cheers from Guadalajara, México
 

IC Carlos Ruiz




From: Smith, Michael D ERDC-CRREL-NH michael.sm...@usace.army.mil
To: Carlos Ruiz boolean10...@yahoo.com; mapserver-users 
mapserver-users@lists.osgeo.org
Sent: Mon, December 6, 2010 2:45:18 PM
Subject: Re: [mapserver-users] WMS image doesn't shows at major scales

Re: [mapserver-users] WMS image doesn't shows at major scales It appears that 
it 
is reading the data. Could be be that the color values are not between 0 and 
255? Perhaps you need to add a PROCESSING section?
Does this display properly is another viewer?

Also, you should reply back to the list as well. There are many people that may 
be able to help.

M


-- 
Michael Smith
Remote Sensing/GIS Center
US Army Corps of Engineers
Hanover, NH


On 12/6/10  3:29 PM, Carlos Ruiz boolean10...@yahoo.com wrote:


Michael,

Thanks for the reply. I've set the DEBUG 5 config key at the LAYER section, 
I've 
reproduced 

the steps to get nothing and this is the log's contents:


mapserv request processing time (msLoadMap not incl.): 0.084s
msFreeMap(): freeing map at 0xa029150.
freeLayer(): freeing layer at 0xa030a28.
mapserv request processing time (msLoadMap not incl.): 0.083s
msFreeMap(): freeing map at 0x9dd6150.
freeLayer(): freeing layer at 0x9ddda28.
msDrawMap(): kicking into non-square pixel preserving mode.
msDrawRasterLayerLow(imagen): entering.
msResampleGDALToMap in effect: cellsize = 298.004345
msDrawGDAL(imagen): using RAW_WINDOW=0 0 192034 184370, dst=0,0,1611,1546
msDrawGDAL(): red,green,blue,alpha bands = 1,2,3,0
msDrawMap(): Layer 0 (imagen), 0.897s
msDrawMap(): Drawing Label Cache, 0.000s
msDrawMap() total time: 0.898s
msSaveImage() total time: 3.291s
mapserv request processing time (msLoadMap not incl.): 4.214s
msFreeMap(): freeing map at 0x92376f0.
freeLayer(): freeing layer at 0x923efc8.
msDrawMap(): kicking into non-square pixel preserving mode.
msDrawRasterLayerLow(imagen): entering.
msResampleGDALToMap in effect: cellsize = 22.479058
msDrawGDAL(imagen): using RAW_WINDOW=70800 88927 17174 14962, dst=0,0,1910,1664
msDrawGDAL(): red,green,blue,alpha bands = 1,2,3,0
msDrawMap(): Layer 0 (imagen), 0.525s
msDrawMap(): Drawing Label Cache, 0.000s
msDrawMap() total time: 0.525s
msSaveImage() total time: 1.415s
mapserv request processing time (msLoadMap not incl.): 1.967s
msFreeMap(): freeing map at 0x8bc96f0.
freeLayer(): freeing layer at 0x8bd0fc8.
msDrawMap(): kicking into non-square pixel preserving mode.
msDrawRasterLayerLow(imagen): entering.
msResampleGDALToMap in effect: cellsize = 22.479058
msDrawGDAL(imagen): using RAW_WINDOW=70800 88927 17174 14962, dst=0,0,1910,1664
msDrawGDAL(): red,green,blue,alpha bands = 1,2,3,0
msDrawMap(): Layer 0 (imagen), 0.524s
msDrawMap(): Drawing Label Cache, 0.000s
msDrawMap() total time: 0.524s
msSaveImage() total time: 1.528s
mapserv request processing time (msLoadMap not incl.): 2.078s
msFreeMap(): freeing map at 0x99ca6f0.
freeLayer(): freeing layer at 0x99d1fc8.


I didn't noticed about the EPSG matters, thanks, I just change it using 
init=epsg:32613.

IC Carlos Ruiz



From:Smith, Michael D ERDC-CRREL-NH michael.sm...@usace.army.mil
To: Carlos Ruiz boolean10...@yahoo.com; mapserver-users 
mapserver-users@lists.osgeo.org
Sent: Mon, December 6, 2010 1:23:35 PM
Subject: Re: [mapserver-users] WMS image doesn't shows at major scales

Re: [mapserver-users] WMS image doesn't shows at major scales Carlos,

Can you set DEBUG 5 at both the LAYER and MAP level and see what shows up in 
the 
error log?

Also I note that you are specifying the projection at the WMS level in EPSG 
terms but not at the MAP and LAYER levels. You should use the EPSG code at the 
MAP and LAYER projection blocks as MapServer does not know that your 
projection 
text and the EPSG codes are equivalent so you will be undergoing reprojection 
on 
each call.

Mike




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


RE: [mapserver-users] [MAPFILE] How to display Logos above Labels ?

2010-12-16 Thread Lime, Steve D (DNR)
You probably want to look at annotation layers. Those layers treat icons/text 
as labels and as a result they go through the same collision avoidance as any 
label.

Steve

From: mapserver-users-boun...@lists.osgeo.org 
[mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Michael Shishcu
Sent: Thursday, December 16, 2010 10:05 AM
To: Lordnecron
Cc: mapserver-users@lists.osgeo.org
Subject: Re: [mapserver-users] [MAPFILE] How to display Logos above Labels ?

maybe POSTLABELCACHE ?
On 16 December 2010 17:57, Lordnecron 
julien.bey...@caramail.commailto:julien.bey...@caramail.com wrote:

Hi,

I'm currently writing a mapfile.
I'm trying to display my point layer with the following CLASS :

LAYER
   NAME LAYER_DN
   DATA D:\Data\DN
   TYPE POINT
   STATUS   ON
   CLASS
   SYMBOL 'D:\temp\Telecom_1_20px.png'
   SIZE 15
   END
END

This LAYER is placed ABOVE a Road Layer - GOOD
This LAYER is displayed ABOVE the Road Layer BUT UNDER the Road Labels.
- NOT GOOD

Is there a way to display the POINT above the labels ?
If not, is there a way to manage the conflict between the Road Labels  my
point symbol ?

Thanks a lot for your help,

Best regards,

Julien
--
View this message in context: 
http://osgeo-org.1803224.n2.nabble.com/MAPFILE-How-to-display-Logos-above-Labels-tp5842449p5842449.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] GetFeatureInfo

2010-12-16 Thread David Hildebrand
I have several WMS layers.  One is a polygon layer and the other two are
line and point layer.  I have HTML templates for each layer which are
very similar.  All the layers are being drawn but when I run a
REQUEST=GetFeatureInfo on a location which has features from all three
layers I only get a return from the polygon layer.  I have the following
debug statements in my mapfile.

 

CONFIG MS_ERRORFILE stdout

DEBUG 5

CONFIG CPL_DEBUG ON

CONFIG PROJ_DEBUG ON

CONFIG ON_MISSING_DATA WARN

 

I get the following output after the polygon information output.

 

[Thu Dec 16 13:34:17 2010].658000 mapserv request processing time
(msLoadMap not incl.): 3.766s [Thu Dec 16 13:34:17 2010].658000
msFreeMap(): freeing map at 015266A8.

 

There are no errors showing up in the apache logs.  Is it possible that
the GetFeatureInfo request in MapServer is only supported for polygon
layers?  

 

 

===

David V. Hildebrand

Agriculture Financial Services Corporation

(403) 782-8239   

 

www.afsc.ca http://www.afsc.ca

This communication is intended for the use of the recipient to which it
is addressed, and may contain confidential, personal and/or privileged
information. Please contact Agriculture Financial Services Corporation
immediately if you are not the intended recipient of this communication,
and do not copy, distribute, or take action relying on it. Any
communication received in error, or subsequent reply, should be deleted
or destroyed. Please consider the environment before printing this
email.

 

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


Re: [mapserver-users] GetFeatureInfo

2010-12-16 Thread Jeff McKenna

On 10-12-16 4:41 PM, David Hildebrand wrote:

I have several WMS layers. One is a polygon layer and the other two are
line and point layer. I have HTML templates for each layer which are
very similar. All the layers are being drawn but when I run a
REQUEST=GetFeatureInfo on a location which has features from all three
layers I only get a return from the polygon layer. I have the following
debug statements in my mapfile.



Hi,

Just a quick note, that the WMS Server doc gives a working example of a 
GetFeatureInfo request on a point layer: 
http://demo.mapserver.org/cgi-bin/wms?SERVICE=WMSVERSION=1.1.1REQUEST=GetFeatureInfoBBOX=-11.332970,24.121208,47.584718,57.965035SRS=EPSG:4326WIDTH=1001HEIGHT=575LAYERS=citiesSTYLES=FORMAT=image/pngTRANSPARENT=trueQUERY_LAYERS=citiesINFO_FORMAT=text/plainX=229Y=280


I would make sure your layers have a template set, as well as modify the 
tolerance parameter possibly.


-jeff



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


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


Re: [mapserver-users] PNG Optimization

2010-12-16 Thread Ivan Mincik
2010/12/10 Cédric MOULLET cedric.moul...@gmail.com:
 Hi,
 We are using MapServer to generate tiles and the following ouptut format is
 used:

 OUTPUTFORMAT
  NAME pnga
  MIMETYPE image/pnga
  DRIVER AGG/PNG
  EXTENSION png
  IMAGEMODE RGBA
  TRANSPARENT TRUE
  FORMATOPTION INTERLACE=OFF
 END

 We observe that the size of the tiles can be reduced by a at least factor 2
 if we use a tool like optipng.
 Is it possible to configure MapServer in order to optimize the file output
 (and for example use optipng)  ? Or do you see another way to optimize the
 image (I'd like to do that on the MapServer side in order to avoid a
 postprocessing) ?
 Thanks in advance for any hints.
 Cédric

Hi Cedric,
when You compile Your Mapserver with –with-experimental-png option
You can have very nice quantized PNG images, which can be much more
smaller. We are using this option for all our projects for few years
now.

Configuration example:

IMAGETYPE 'AGG_PNG'
OUTPUTFORMAT
NAME 'AGG_PNG'
DRIVER 'AGG/PNG'
MIMETYPE 'image/png'
IMAGEMODE RGBA
FORMATOPTION 'QUANTIZE_FORCE=ON'
FORMATOPTION 'QUANTIZE_DITHER=OFF'
FORMATOPTION 'QUANTIZE_COLORS=256'
FORMATOPTION 'INTERLACE=OFF'
EXTENSION 'png'
END

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

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


Re: [mapserver-users] draw hatch pattern with image file (ex. gif, etc)

2010-12-16 Thread Isao NASUNO

Hi, Thomas,
Thank you for your response.
But, my question was wrong, I am sorry. What I want to do is filling up
polygon with a pattern using image file with transparency attribute.

Finally I found how to do it as following.


  :
type polygon
class
  name x
  expression x
  color 255 200 200
  style
symbol pattern  #
  end
end

SYMBOL
NAME pattern
TYPE pixmap
image /home/myhome/pattern.gif
transparent 1  # color index
END


It's closed, thank you,

Isao NASUNO


(2010/12/16 18:59), thomas bonfort wrote:

if your image contains a hatch, yes, it's possible, although you can't
change the color.
if you want to create a hatch, use:

symbol
  name hatch
  type hatch
end

layer
...
  style
symbol hatch
color 0 0 0
angle 45 #hatch orientation
width 1  #line width
size 10  #spacing between lines
  end
end

--
thomas

On Thu, Dec 16, 2010 at 10:46, Isao NASUNOisao.nas...@ctc-g.co.jp  wrote:

Hello all,

Is it possible to draw hatch pattern without symbol (vector)
but using small image file which have tranparency like gif etc ?
Layer type is polygon.


  :
type polygon
  :
class
  name x
  expression x
  color 255 200 200
  style
image smallimage.gif   #-- like this..
  end
end


Thanks,

Isao NASUNO


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