Re: [mapserver-users] GetFeatureInfo-Capabilites of WMS-mapfiles

2009-12-09 Thread Stephan Holl
Hello Bart,

Bart van den Eijnden , [20091208 - 18:56:15]

> Why do you want to remove it? It just shows that the service is
> capable of handling that request. If there are no queryable layers I
> client won't attempt the request.

Yes, I know, but a customer was worried about that, because it could
lead to false conclusions :-/


Best

Stephan

> 
> Best regards,
> Bart
> 
> On Dec 8, 2009, at 5:18 PM, Stephan Holl wrote:
> 
> > Dear mapserver-users,
> > 
> > I am inspecting the Capabilities-document of my WMS-Server-mapfile.
> > 
> > None of my layers do have GetFeatureInfo-possibilities
> > (queryable="0"), but my Capabilities also contain the following
> > passage:
> > 
> > 
> >  text/plain
> >  application/vnd.ogc.gml
> >  
> >
> >  
> > > xmlns:xlink="http://www.w3.org/1999/xlink";
> > xlink:href="http://sercer.tld?";
> > xlink:type="simple"/> 
> >  
> > > xmlns:xlink="http://www.w3.org/1999/xlink";
> > xlink:href="http://server.tld?";
> > xlink:type="simple"/> 
> >
> >  
> >
> > 
> > which is IMO useless.
> > 
> > Is there a possibility to reduce this if no queryable layers are
> > there? I cannot find any configuration hints right now. Thanks for
> > any hints.
> > 
> > TIA.
> > 
> > Best
> > 
> > Stephan
> > 
> > -- 
> > Stephan Holl  | Tel.: +49 (0)541-33 508
> > 3663 Intevation GmbH, Neuer Graben 17, 49074 OS  |  AG Osnabrück -
> > HR B 18998 Geschäftsführer:  Frank Koormann, Bernhard Reiter, Dr.
> > Jan-Oliver Wagner ___
> > mapserver-users mailing list
> > mapserver-users@lists.osgeo.org
> > http://lists.osgeo.org/mailman/listinfo/mapserver-users
> 


-- 
Stephan Holl  | Tel.: +49 (0)541-33 508 3663
Intevation GmbH, Neuer Graben 17, 49074 OS  |  AG Osnabrück - HR B 18998
Geschäftsführer:  Frank Koormann, Bernhard Reiter, Dr. Jan-Oliver Wagner


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


RE: [mapserver-users] Shapefile, itemnquery and HTML image map generation problem

2009-12-09 Thread W.John Guineau
Hi Steve,

Ok, I took the time to clean up the map file and make a simpler case for you
to look at.

Here is the archive:

http://CoyoteTechnology.com/ms/shape.zip

It's about 4 meg. If you unzip that to C:\ all the paths in the mapfile
should work (except the MS4w path to Apache's temp directory). Otherwise it
should be pretty straight-forward to get it going.

I left 4 example layers that exhibit the problem. Each layer has an example
URL to use to get it to render the map.

Let me know if I missed anything.

Thanks for the help!

john


-Original Message-
From: mapserver-users-boun...@lists.osgeo.org
[mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Steve Lime
Sent: Tuesday, December 08, 2009 9:26 AM
To: guin...@earthlink.net; mapserver-users@lists.osgeo.org;
steve.l...@state.mn.us
Subject: RE: [mapserver-users] Shapefile,itemnquery and HTML image map
generation problem

Seems like an extent problem to me - the way the results are clustered in
the
center of the image. MapServer does apply a spatial pre-filter for attribute
queries. However, the searchmap=true should compute a proper extent based
on your image properties (extent, size) before doing the query.

John, what are the changes you could zip up your data and mapfile for me?

Steve

>>> W.John Guineau  12/08/09 7:05 AM >>>
Ok, try this:

 



 

-Original Message-
From: Steve Lime [mailto:steve.l...@state.mn.us] 
Sent: Monday, December 07, 2009 7:57 PM
To: W.John Guineau; mapserver-users@lists.osgeo.org; 'Steve Lime'
Subject: RE: [mapserver-users] Shapefile,itemnquery and HTML image map
generation problem

 

Do the ones not selected fall at the end of your qstring? I'm wondering if
something is getting truncated. I'd think

you'd get a parsing error in that case, but perhaps not. Can you label the
polygons with the value for MLRARSYM?

 

Steve

 

>>> On 12/7/2009 at 6:19 PM, in message
<01dc01ca779c$2c19eae0$844dc0...@net>,

W.John Guineau  wrote:

> Hi Steve,

> 

>  

> 

> OK, I added the QUERYMAP section and changed the URL:

> 

>  

> 

> http://localhost/cgi-bin/mapserv?map=/NWPL_CRREL/MLRA/mlra.map 

>

&mode=itemnquerymap&searchmap=true&layer=states&mapext=-91+34+-89+49&mapsize

>
=600+400&qitem=MLRARSYM&qstring=(%22%5bMLRARSYM%5d%22%20in%20%22102A,102B,10

>
2C,103,104,105,106,107A,107B,108A,108B,108C,108D,109,110,111A,111B,111C,111D

> ,111E,112,113,114A,114B,115A,115B,115C%22)>

>
&qlayer=coe_m&mode=itemnquerymap&searchmap=true&layer=states&mapext=-91+34+-

>
89+49&mapsize=600+400&qitem=MLRARSYM&qstring=("[MLRARSYM]"%20in%20"102A,102B

>
,102C,103,104,105,106,107A,107B,108A,108B,108C,108D,109,110,111A,111B,111C,1

> 11D,111E,112,113,114A,114B,115A,115B,115C")

> 

>  

> 

>  

> 

> Now I get the map with some of the items highlighted in yellow, and the
rest

> green:

> 

>  

> 

> 

> 

>  

> 

> -Original Message-

> From: Steve Lime [mailto:steve.l...@state.mn.us] 

> Sent: Monday, December 07, 2009 7:04 PM

> To: W.John Guineau; mapserver-users@lists.osgeo.org; 'Steve Lime'

> Subject: RE: [mapserver-users] Shapefile,itemnquery and HTML image map

> generation problem

> 

>  

> 

> Just add a querymap object to your mapfile, like so:

> 

>  

> 

> QUERYMAP

> 

>   STATUS ON

> 

> END

> 

>  

> 

> Then change your URL to use the mode itemnquerymap and that should return

> just an image with the

> 

> selected features highlighted in yellow.

> 

>  

> 

> Steve

> 

>  

> 

 On 12/7/2009 at 5:56 PM, in message

> <01ce01ca7798$dd4b89d0$97e29d...@net>,

> 

> W.John Guineau  wrote:

> 

>> I'm new to mapserver, how do I quickly generate a querymap?

> 

>> 

> 

>> I'm using mapserver 5.4.2 from the latest MS4W on Windows 7 x64. I've
also

> 

>> tried 5.2.1 that I compiled myself.

> 

>> 

> 

>> john

> 

>> 

> 

>> 

> 

>> -Original Message-

> 

>> From: Steve Lime [mailto:steve.l...@state.mn.us] 

> 

>> Sent: Monday, December 07, 2009 6:40 PM

> 

>> To: 'W.John Guineau'; mapserver-users@lists.osgeo.org 

> 

>> Subject: RE: [mapserver-users] Shapefile,itemnquery and HTML image map

> 

>> generation problem

> 

>> 

> 

>> GDAL's not in play here at all. If you generate a query map instead of an

> 

>> html image map does

> 

>> the output map look ok? What version are you using?

> 

>> 

> 

>> Steve

> 

>> 

> 

> On 12/4/2009 at 8:11 AM, in message

> 

>> <04e001ca74eb$bc473400$34d59c...@net>,

> 

>> W.John Guineau  wrote:

> 

>>> How would I go about debugging this? 

> 

>>> 

> 

>>>  

> 

>>> 

> 

>>> I think this is GDAL and its query of shapefiles, right?

> 

>>> 

> 

>>>  

> 

>>> 

> 

>>> The bottom line is that MapServer finds all the items when it is

> rendering

> 

>>> the map by layer/class EXPRESSION, but the qstring in a URL using the

> 

>> exact

> 

>>> same EXPRESSION string misses some of the items.

> 

>>> 

> 

>>>  

> 

>>

RE: [mapserver-users] Shapefile, itemnquery and HTML image map generation problem

2009-12-09 Thread W.John Guineau
Hmm, based on your comments about extent below, I just noticed that if I
expand the extents well outside the area of interest, it renders more of the
missing areas! Not all of them though. So it does seem extent related. You
were right that it seems to favor the areas on the very interior of the
extents.

Unfortunately I then get a map that is too zoomed-out to be usable.

But this seems to be the sensitivity!

john

-Original Message-
From: mapserver-users-boun...@lists.osgeo.org
[mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of W.John Guineau
Sent: Wednesday, December 09, 2009 6:33 AM
To: 'Steve Lime'; mapserver-users@lists.osgeo.org
Subject: RE: [mapserver-users] Shapefile, itemnquery and HTML image map
generation problem

Hi Steve,

Ok, I took the time to clean up the map file and make a simpler case for you
to look at.

Here is the archive:

http://CoyoteTechnology.com/ms/shape.zip

It's about 4 meg. If you unzip that to C:\ all the paths in the mapfile
should work (except the MS4w path to Apache's temp directory). Otherwise it
should be pretty straight-forward to get it going.

I left 4 example layers that exhibit the problem. Each layer has an example
URL to use to get it to render the map.

Let me know if I missed anything.

Thanks for the help!

john


-Original Message-
From: mapserver-users-boun...@lists.osgeo.org
[mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Steve Lime
Sent: Tuesday, December 08, 2009 9:26 AM
To: guin...@earthlink.net; mapserver-users@lists.osgeo.org;
steve.l...@state.mn.us
Subject: RE: [mapserver-users] Shapefile,itemnquery and HTML image map
generation problem

Seems like an extent problem to me - the way the results are clustered in
the
center of the image. MapServer does apply a spatial pre-filter for attribute
queries. However, the searchmap=true should compute a proper extent based
on your image properties (extent, size) before doing the query.

John, what are the changes you could zip up your data and mapfile for me?

Steve

>>> W.John Guineau  12/08/09 7:05 AM >>>
Ok, try this:

 



 

-Original Message-
From: Steve Lime [mailto:steve.l...@state.mn.us] 
Sent: Monday, December 07, 2009 7:57 PM
To: W.John Guineau; mapserver-users@lists.osgeo.org; 'Steve Lime'
Subject: RE: [mapserver-users] Shapefile,itemnquery and HTML image map
generation problem

 

Do the ones not selected fall at the end of your qstring? I'm wondering if
something is getting truncated. I'd think

you'd get a parsing error in that case, but perhaps not. Can you label the
polygons with the value for MLRARSYM?

 

Steve

 

>>> On 12/7/2009 at 6:19 PM, in message
<01dc01ca779c$2c19eae0$844dc0...@net>,

W.John Guineau  wrote:

> Hi Steve,

> 

>  

> 

> OK, I added the QUERYMAP section and changed the URL:

> 

>  

> 

> http://localhost/cgi-bin/mapserv?map=/NWPL_CRREL/MLRA/mlra.map 

>

&mode=itemnquerymap&searchmap=true&layer=states&mapext=-91+34+-89+49&mapsize

>
=600+400&qitem=MLRARSYM&qstring=(%22%5bMLRARSYM%5d%22%20in%20%22102A,102B,10

>
2C,103,104,105,106,107A,107B,108A,108B,108C,108D,109,110,111A,111B,111C,111D

> ,111E,112,113,114A,114B,115A,115B,115C%22)>

>
&qlayer=coe_m&mode=itemnquerymap&searchmap=true&layer=states&mapext=-91+34+-

>
89+49&mapsize=600+400&qitem=MLRARSYM&qstring=("[MLRARSYM]"%20in%20"102A,102B

>
,102C,103,104,105,106,107A,107B,108A,108B,108C,108D,109,110,111A,111B,111C,1

> 11D,111E,112,113,114A,114B,115A,115B,115C")

> 

>  

> 

>  

> 

> Now I get the map with some of the items highlighted in yellow, and the
rest

> green:

> 

>  

> 

> 

> 

>  

> 

> -Original Message-

> From: Steve Lime [mailto:steve.l...@state.mn.us] 

> Sent: Monday, December 07, 2009 7:04 PM

> To: W.John Guineau; mapserver-users@lists.osgeo.org; 'Steve Lime'

> Subject: RE: [mapserver-users] Shapefile,itemnquery and HTML image map

> generation problem

> 

>  

> 

> Just add a querymap object to your mapfile, like so:

> 

>  

> 

> QUERYMAP

> 

>   STATUS ON

> 

> END

> 

>  

> 

> Then change your URL to use the mode itemnquerymap and that should return

> just an image with the

> 

> selected features highlighted in yellow.

> 

>  

> 

> Steve

> 

>  

> 

 On 12/7/2009 at 5:56 PM, in message

> <01ce01ca7798$dd4b89d0$97e29d...@net>,

> 

> W.John Guineau  wrote:

> 

>> I'm new to mapserver, how do I quickly generate a querymap?

> 

>> 

> 

>> I'm using mapserver 5.4.2 from the latest MS4W on Windows 7 x64. I've
also

> 

>> tried 5.2.1 that I compiled myself.

> 

>> 

> 

>> john

> 

>> 

> 

>> 

> 

>> -Original Message-

> 

>> From: Steve Lime [mailto:steve.l...@state.mn.us] 

> 

>> Sent: Monday, December 07, 2009 6:40 PM

> 

>> To: 'W.John Guineau'; mapserver-users@lists.osgeo.org 

> 

>> Subject: RE: [mapserver-users] Shapefile,itemnquery and HTML image map

> 

>> generation problem

> 

>> 

> 

>> GDAL

RE: [mapserver-users] Shapefile, itemnquery and HTML image map generation problem

2009-12-09 Thread W.John Guineau
Yup, that was it. I had some crazy extents defined for the URL strings.
Apparently the "center of gravity" of my URL extents combined with the map
image size gave me the false impression in the rendered map image that I had
the region covered. It showed the region of interest, but selected a small
area for actual query.

Thanks for the critical bit of insight Steve - extents. And the querymap
piece to easily show me what was actually being selected from the URL
itemlist.

john



-Original Message-
From: W.John Guineau [mailto:guin...@earthlink.net] 
Sent: Wednesday, December 09, 2009 6:51 AM
To: 'W.John Guineau'; 'Steve Lime'; mapserver-users@lists.osgeo.org
Subject: RE: [mapserver-users] Shapefile, itemnquery and HTML image map
generation problem

Hmm, based on your comments about extent below, I just noticed that if I
expand the extents well outside the area of interest, it renders more of the
missing areas! Not all of them though. So it does seem extent related. You
were right that it seems to favor the areas on the very interior of the
extents.

Unfortunately I then get a map that is too zoomed-out to be usable.

But this seems to be the sensitivity!

john

-Original Message-
From: mapserver-users-boun...@lists.osgeo.org
[mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of W.John Guineau
Sent: Wednesday, December 09, 2009 6:33 AM
To: 'Steve Lime'; mapserver-users@lists.osgeo.org
Subject: RE: [mapserver-users] Shapefile, itemnquery and HTML image map
generation problem

Hi Steve,

Ok, I took the time to clean up the map file and make a simpler case for you
to look at.

Here is the archive:

http://CoyoteTechnology.com/ms/shape.zip

It's about 4 meg. If you unzip that to C:\ all the paths in the mapfile
should work (except the MS4w path to Apache's temp directory). Otherwise it
should be pretty straight-forward to get it going.

I left 4 example layers that exhibit the problem. Each layer has an example
URL to use to get it to render the map.

Let me know if I missed anything.

Thanks for the help!

john


-Original Message-
From: mapserver-users-boun...@lists.osgeo.org
[mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Steve Lime
Sent: Tuesday, December 08, 2009 9:26 AM
To: guin...@earthlink.net; mapserver-users@lists.osgeo.org;
steve.l...@state.mn.us
Subject: RE: [mapserver-users] Shapefile,itemnquery and HTML image map
generation problem

Seems like an extent problem to me - the way the results are clustered in
the
center of the image. MapServer does apply a spatial pre-filter for attribute
queries. However, the searchmap=true should compute a proper extent based
on your image properties (extent, size) before doing the query.

John, what are the changes you could zip up your data and mapfile for me?

Steve

>>> W.John Guineau  12/08/09 7:05 AM >>>
Ok, try this:

 



 

-Original Message-
From: Steve Lime [mailto:steve.l...@state.mn.us] 
Sent: Monday, December 07, 2009 7:57 PM
To: W.John Guineau; mapserver-users@lists.osgeo.org; 'Steve Lime'
Subject: RE: [mapserver-users] Shapefile,itemnquery and HTML image map
generation problem

 

Do the ones not selected fall at the end of your qstring? I'm wondering if
something is getting truncated. I'd think

you'd get a parsing error in that case, but perhaps not. Can you label the
polygons with the value for MLRARSYM?

 

Steve

 

>>> On 12/7/2009 at 6:19 PM, in message
<01dc01ca779c$2c19eae0$844dc0...@net>,

W.John Guineau  wrote:

> Hi Steve,

> 

>  

> 

> OK, I added the QUERYMAP section and changed the URL:

> 

>  

> 

> http://localhost/cgi-bin/mapserv?map=/NWPL_CRREL/MLRA/mlra.map 

>

&mode=itemnquerymap&searchmap=true&layer=states&mapext=-91+34+-89+49&mapsize

>
=600+400&qitem=MLRARSYM&qstring=(%22%5bMLRARSYM%5d%22%20in%20%22102A,102B,10

>
2C,103,104,105,106,107A,107B,108A,108B,108C,108D,109,110,111A,111B,111C,111D

> ,111E,112,113,114A,114B,115A,115B,115C%22)>

>
&qlayer=coe_m&mode=itemnquerymap&searchmap=true&layer=states&mapext=-91+34+-

>
89+49&mapsize=600+400&qitem=MLRARSYM&qstring=("[MLRARSYM]"%20in%20"102A,102B

>
,102C,103,104,105,106,107A,107B,108A,108B,108C,108D,109,110,111A,111B,111C,1

> 11D,111E,112,113,114A,114B,115A,115B,115C")

> 

>  

> 

>  

> 

> Now I get the map with some of the items highlighted in yellow, and the
rest

> green:

> 

>  

> 

> 

> 

>  

> 

> -Original Message-

> From: Steve Lime [mailto:steve.l...@state.mn.us] 

> Sent: Monday, December 07, 2009 7:04 PM

> To: W.John Guineau; mapserver-users@lists.osgeo.org; 'Steve Lime'

> Subject: RE: [mapserver-users] Shapefile,itemnquery and HTML image map

> generation problem

> 

>  

> 

> Just add a querymap object to your mapfile, like so:

> 

>  

> 

> QUERYMAP

> 

>   STATUS ON

> 

> END

> 

>  

> 

> Then change your URL to use the mode itemnquerymap and that should return

> just an image with the

> 

Re: [mapserver-users] ttf symbols worked in windows but not linux

2009-12-09 Thread Jeff McKenna

kall...@gmail.com wrote:

I have been using a MS4W setup for some time and have finally talked the
people I worked for to let me set up a testing server on a linux box.
This has worked out great as all of the maps have had a massive speed
gain compared to windows. However I have a problem with the ttf symbols.
They will display normally in windows but only one will display in
linux. I am sure it is a simple issue but I have not been able to find
it. The linux set up is HostGIS which uses Slackware 12 and I believe
Mapserver 5.2 anyone have any suggestions?


Hmm.  Do you get any errors when trying to create a map image?  You can 
test this by using the shp2img commandline utility 
(http://www.mapserver.org/utilities/shp2img.html).  If MapServer can't 
find the font you should get an error such as "TrueType Font error. 
Could not find/open font".


If you don't get any errors I'm not sure what the issue is.

-jeff



--
Jeff McKenna
FOSS4G 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


[mapserver-users] How do I use ASRP maps in mapserver?

2009-12-09 Thread Alans

Can anyone tell me how to use ASRP maps in mapserver, or point me at some
relevant documentation. The GDAL list of supported raster formats indicates
that this should be possible (http://www.gdal.org/frmt_various.html#SRP) but
I can't find any instructions as to how to specify this format in a LAYER of
a .map file.
-- 
View this message in context: 
http://n2.nabble.com/How-do-I-use-ASRP-maps-in-mapserver-tp4139935p4139935.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] How do I use ASRP maps in mapserver?

2009-12-09 Thread Jeff McKenna

Alans wrote:

Can anyone tell me how to use ASRP maps in mapserver, or point me at some
relevant documentation. The GDAL list of supported raster formats indicates
that this should be possible (http://www.gdal.org/frmt_various.html#SRP) but
I can't find any instructions as to how to specify this format in a LAYER of
a .map file.


Hello Alans,

Interesting.  I have never used that format but I can give some hints.

First, you should execute 'gdalinfo --formats' on your server to check
if you has SRP support.  Look for something like "SRP (ro) : Standard 
Raster Product (ASRP/USRP)" in the returned list of formats; this will 
verify that your local MapServer/GDAL build can read the ASRP format.


Next, you can point to the image in your mapfile layer, such as (and I'm 
guessing this, as I don't have your data to test):


LAYER
  NAME "ASRP"
  DATA "myfile.img"
  TYPE RASTER
  STATUS ON
END

(a good document for you to read about raster support in MapServer is 
http://www.mapserver.org/input/raster.html)


Finally, you could test your mapfile with the shp2img commandline 
utility, to see any error reports 
(http://www.mapserver.org/utilities/shp2img.html)


I hope this helps you a little.

-jeff

--
Jeff McKenna
FOSS4G 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] Question on the layer order impact in a Getmap(WMS) call

2009-12-09 Thread Ted Spradley


Barend Kobben wrote:
> 
> The WMS GetMap interface standard requires layers to be drawn in order
> (bottom to top) they appear in the LAYERS= statement in the request. So
> that
> overrides the order in the MAP file...
> 
> 

By observation, I might add to this that if layer STATUS is DEFAULT, the
layer order does not appear to be affected by the order in the WMS call.  If
any layers are STATUS DEFAULT, LAYER rendering in a WMS call appears to be
ordered by DEFAULT layers drawn in their map file order, then other layers
by order in the WMS call.

Am I correct in this observation?

Ted S

-- 
View this message in context: 
http://n2.nabble.com/Question-on-the-layer-order-impact-in-a-Getmap-WMS-call-tp4108819p4140188.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] How do I use ASRP maps in mapserver?

2009-12-09 Thread Jeff McKenna

Jeff McKenna wrote:

Alans wrote:

Can anyone tell me how to use ASRP maps in mapserver, or point me at some
relevant documentation. The GDAL list of supported raster formats 
indicates
that this should be possible 
(http://www.gdal.org/frmt_various.html#SRP) but
I can't find any instructions as to how to specify this format in a 
LAYER of

a .map file.


Hello Alans,

Interesting.  I have never used that format but I can give some hints.

First, you should execute 'gdalinfo --formats' on your server to check
if you has SRP support.  Look for something like "SRP (ro) : Standard 
Raster Product (ASRP/USRP)" in the returned list of formats; this will 
verify that your local MapServer/GDAL build can read the ASRP format.


Next, you can point to the image in your mapfile layer, such as (and I'm 
guessing this, as I don't have your data to test):


LAYER
  NAME "ASRP"
  DATA "myfile.img"
  TYPE RASTER
  STATUS ON
END

(a good document for you to read about raster support in MapServer is 
http://www.mapserver.org/input/raster.html)


Finally, you could test your mapfile with the shp2img commandline 
utility, to see any error reports 
(http://www.mapserver.org/utilities/shp2img.html)


I hope this helps you a little.

-jeff



Sorry Alans,

I forgot an import step:

After verifying SRP support with 'gdalinfo --formats', next step is to 
see if GDAL can read your exact file, by using gdalinfo again:


  gdalinfo myfile.img

You should see some info returned such as Size, Pixel Size, 
Coordinates...etc.


Then you can focus on your mapfile layer.

-jeff



--
Jeff McKenna
FOSS4G 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] How do I use ASRP maps in mapserver?

2009-12-09 Thread Alans



Jeff McKenna wrote:
> 
> 
> First, you should execute 'gdalinfo --formats' on your server to check
> if you has SRP support.  Look for something like "SRP (ro) : Standard 
> Raster Product (ASRP/USRP)" in the returned list of formats; this will 
> verify that your local MapServer/GDAL build can read the ASRP format.
> 

Thanks Jeff,

It looks like my GDAL is out of date. 'gdal --version' reports:

  GDAL 1.6.0dev, FWTools 2.0.6, released 2008/02/03

'gdalinfo --formats' does not list SRP as a supported format.

My GDAL came as part of FWTools. I will attempt to update GDAL and try
again.

Alan
-- 
View this message in context: 
http://n2.nabble.com/How-do-I-use-ASRP-maps-in-mapserver-tp4139935p4140373.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] How do I use ASRP maps in mapserver?

2009-12-09 Thread Jeff McKenna

Alans wrote:



Jeff McKenna wrote:


First, you should execute 'gdalinfo --formats' on your server to check
if you has SRP support.  Look for something like "SRP (ro) : Standard 
Raster Product (ASRP/USRP)" in the returned list of formats; this will 
verify that your local MapServer/GDAL build can read the ASRP format.




Thanks Jeff,

It looks like my GDAL is out of date. 'gdal --version' reports:

  GDAL 1.6.0dev, FWTools 2.0.6, released 2008/02/03

'gdalinfo --formats' does not list SRP as a supported format.

My GDAL came as part of FWTools. I will attempt to update GDAL and try
again.

Alan


No problem.  If you are on Windows, MS4W does come with SRP support by 
default (http://www.maptools.org/ms4w/).


You can ask question related to MS4W on its email list (subscribe at 
http://lists.maptools.org/mailman/listinfo/ms4w-users)


-jeff



--
Jeff McKenna
FOSS4G 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] How do I use ASRP maps in mapserver?

2009-12-09 Thread Even Rouault

Alan,

SRP driver has been added into GDAL SVN trunk a few months ago, so it 
will be part of the GDAL 1.7.0 release.


Alans a écrit :


Jeff McKenna wrote:
  

First, you should execute 'gdalinfo --formats' on your server to check
if you has SRP support.  Look for something like "SRP (ro) : Standard 
Raster Product (ASRP/USRP)" in the returned list of formats; this will 
verify that your local MapServer/GDAL build can read the ASRP format.





Thanks Jeff,

It looks like my GDAL is out of date. 'gdal --version' reports:

  GDAL 1.6.0dev, FWTools 2.0.6, released 2008/02/03

'gdalinfo --formats' does not list SRP as a supported format.

My GDAL came as part of FWTools. I will attempt to update GDAL and try
again.

Alan
  



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


[mapserver-users] Label polygon borders?

2009-12-09 Thread Ted Spradley

Hi everyone,

Is there a way to have labels follow polygon borders?

i.e. when zoomed in on a border between states/countries, etc. can MS render
a label just inside the polygons and following the polygon border?

Thanks, Ted S.
-- 
View this message in context: 
http://n2.nabble.com/Label-polygon-borders-tp4141024p4141024.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] advertise more than one SRS for WFS

2009-12-09 Thread Holger Porath

Hi all,

mapserver's documentation states that "Contrary to WMS, the OGC WFS  
specification doesn’t allow a layer (feature type) to be advertised in  
more than one SRS".


But the OGC WFS 1.1 spec states that "The optional srsName attribute  
of the  element is used to specify a specific WFS-supported SRS  
to be used for returned feature geometries".


As mapserver supports WFS 1.1 since versin 5.2, how do I configure a  
layer to advertise more than one SRS?


Any help much appreciated.

Cheers
Holger Porath___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] advertise more than one SRS for WFS

2009-12-09 Thread Bart van den Eijnden
Use the ows_srs metadata on a layer.

So:

METADATA
  ..
  ows_srs "EPSG:28992 EPSG:4326"
  ..
END

Best regards,
Bart

On Dec 9, 2009, at 8:00 PM, Holger Porath wrote:

> Hi all,
> 
> mapserver's documentation states that "Contrary to WMS, the OGC WFS 
> specification doesn’t allow a layer (feature type) to be advertised in more 
> than one SRS".
> 
> But the OGC WFS 1.1 spec states that "The optional srsName attribute of the 
>  element is used to specify a specific WFS-supported SRS to be used 
> for returned feature geometries".
> 
> As mapserver supports WFS 1.1 since versin 5.2, how do I configure a layer to 
> advertise more than one SRS?
> 
> Any help much appreciated.
> 
> Cheers
> Holger Porath___
> 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] Label polygon borders?

2009-12-09 Thread Stephen Woodbridge

Ted Spradley wrote:

Hi everyone,

Is there a way to have labels follow polygon borders?

i.e. when zoomed in on a border between states/countries, etc. can MS render
a label just inside the polygons and following the polygon border?

Thanks, Ted S.


No, unfortunately not yet. I raised this as an enhancement

http://trac.osgeo.org/mapserver/ticket/1592
http://trac.osgeo.org/mapserver/ticket/2856 (closed as dup)

Please jump on #1592 and add a comment about your needs.

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


[mapserver-users] MS4W: Curve Label not work

2009-12-09 Thread Alphatran

Dear everyone,

I'm new to MS4W and do not know how to make Curve Label working. I already
set ANGLE FOLLOW in Label Section in MAP file but all label is placed
horizontal. I hope you can help me to solve this problem.

Thank you very much for your attention!


-- 
View this message in context: 
http://n2.nabble.com/MS4W-Curve-Label-not-work-tp4141898p4141898.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


AW: [mapserver-users] How do I Control QUERY Output?

2009-12-09 Thread Arnd Wippermann
Hi,

You cann't insert html to a html document by using a url. There is nothing
like the img tag for pictures.
You have to use ajax to request your query. Then you can put the result with
innerHTML to your element. 

Arnd 

-Ursprüngliche Nachricht-
Von: mapserver-users-boun...@lists.osgeo.org
[mailto:mapserver-users-boun...@lists.osgeo.org] Im Auftrag von Bill Thoen
Gesendet: Mittwoch, 9. Dezember 2009 00:53
An: mapserver-users@lists.osgeo.org
Betreff: [mapserver-users] How do I Control QUERY Output?

 From a simple MapServer HTML interface I switch to Query mode and click on
a map feature, and templates I've assigned to the layer fill with data ...
and display in a new page. What I'd like is for the info to display in a
floating div and not disrupt the view by clearing the map just to display a
small window of data. I'd also prefer to not use frames as well.

With JavaScript I can make a floating drag-able div box, but I can't figure
out how to get the template to send its table of data to the div. 
I've tried removing the HTML header and just appending the table to the div
using innerHTML, but I keep getting null elements or other errors. 
Is this approach right and I'm just missing something, or is this done
another way? I spent the better part of an hour today searching for docs
and/or examples, but either it wasn't to be found or my google-fu was
inferior today. Can someone point me to an example or explain how you can
put query output anywhere on the map page?

--
Bill Thoen
GISnet -  www.gisnet.com
1401 Walnut St., Suite C
Boulder, CO 80302
303-786-9961 tel
303-443-4856 fax

___
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] MS4W: Curve Label not work

2009-12-09 Thread Stephen Woodbridge

Alphatran wrote:

Dear everyone,

I'm new to MS4W and do not know how to make Curve Label working. I already
set ANGLE FOLLOW in Label Section in MAP file but all label is placed
horizontal. I hope you can help me to solve this problem.

Thank you very much for your attention!



You have to use a truetype font for that to work.

If you did show us you LAYER definition from your mapfile.

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


Re: AW: [mapserver-users] How do I Control QUERY Output?

2009-12-09 Thread Bill Thoen

Thanks again, Arnd.
That solution occurred to me this morning, so I'm going to try that out 
next. The other acceptable solution would be to open a new pop-up window 
and send the output there, but I think the AJAX method will be the 
better one for what I want it to do.


Arnd Wippermann wrote:

Hi,

You cann't insert html to a html document by using a url. There is nothing
like the img tag for pictures.
You have to use ajax to request your query. Then you can put the result with
innerHTML to your element. 

Arnd 


-Ursprüngliche Nachricht-
Von: mapserver-users-boun...@lists.osgeo.org
[mailto:mapserver-users-boun...@lists.osgeo.org] Im Auftrag von Bill Thoen
Gesendet: Mittwoch, 9. Dezember 2009 00:53
An: mapserver-users@lists.osgeo.org
Betreff: [mapserver-users] How do I Control QUERY Output?

 From a simple MapServer HTML interface I switch to Query mode and click on
a map feature, and templates I've assigned to the layer fill with data ...
and display in a new page. What I'd like is for the info to display in a
floating div and not disrupt the view by clearing the map just to display a
small window of data. I'd also prefer to not use frames as well.

With JavaScript I can make a floating drag-able div box, but I can't figure
out how to get the template to send its table of data to the div. 
I've tried removing the HTML header and just appending the table to the div
using innerHTML, but I keep getting null elements or other errors. 
Is this approach right and I'm just missing something, or is this done

another way? I spent the better part of an hour today searching for docs
and/or examples, but either it wasn't to be found or my google-fu was
inferior today. Can someone point me to an example or explain how you can
put query output anywhere on the map page?

--
Bill Thoen
GISnet -  www.gisnet.com
1401 Walnut St., Suite C
Boulder, CO 80302
303-786-9961 tel
303-443-4856 fax
  


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


Re: [mapserver-users] Label polygon borders?

2009-12-09 Thread Steve Lime
If your polygons are consistently clockwise or counter-clockwise, you may be 
able
to use a LINE layer to do this. The label positions UC or LC should consistently
place the label in the polygon depending on orientation of the vertices.

Try it and see what happens...

Steve

>>> On 12/9/2009 at 2:04 PM, in message <4b2002d5.3090...@swoodbridge.com>, 
>>> Stephen
Woodbridge  wrote:
> Ted Spradley wrote:
>> Hi everyone,
>> 
>> Is there a way to have labels follow polygon borders?
>> 
>> i.e. when zoomed in on a border between states/countries, etc. can MS render
>> a label just inside the polygons and following the polygon border?
>> 
>> Thanks, Ted S.
> 
> No, unfortunately not yet. I raised this as an enhancement
> 
> http://trac.osgeo.org/mapserver/ticket/1592 
> http://trac.osgeo.org/mapserver/ticket/2856 (closed as dup)
> 
> Please jump on #1592 and add a comment about your needs.
> 
> Thanks,
>-Steve W
> ___
> 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: AW: [mapserver-users] How do I Control QUERY Output?

2009-12-09 Thread Steve Lime
The AJAX method will work nicely. This site does just that:

  http://www.dnr.state.mn.us/waters/csg/index.html 

If you use the identify tool to click on a point the query output is
placed in an Ext window. If
you hover over a point very simple query output is stuffed in a div.

Steve

>>> On 12/9/2009 at 3:59 PM, in message <4b201dba.9090...@gisnet.com>,
Bill Thoen
 wrote:
> Thanks again, Arnd.
> That solution occurred to me this morning, so I'm going to try that
out 
> next. The other acceptable solution would be to open a new pop-up
window 
> and send the output there, but I think the AJAX method will be the 
> better one for what I want it to do.
> 
> Arnd Wippermann wrote:
>> Hi,
>>
>> You cann't insert html to a html document by using a url. There is
nothing
>> like the img tag for pictures.
>> You have to use ajax to request your query. Then you can put the
result with
>> innerHTML to your element. 
>>
>> Arnd 
>>
>> -Ursprüngliche Nachricht-
>> Von: mapserver-users-boun...@lists.osgeo.org 
>> [mailto:mapserver-users-boun...@lists.osgeo.org] Im Auftrag von Bill
Thoen
>> Gesendet: Mittwoch, 9. Dezember 2009 00:53
>> An: mapserver-users@lists.osgeo.org 
>> Betreff: [mapserver-users] How do I Control QUERY Output?
>>
>>  From a simple MapServer HTML interface I switch to Query mode and
click on
>> a map feature, and templates I've assigned to the layer fill with
data ...
>> and display in a new page. What I'd like is for the info to display
in a
>> floating div and not disrupt the view by clearing the map just to
display a
>> small window of data. I'd also prefer to not use frames as well.
>>
>> With JavaScript I can make a floating drag-able div box, but I can't
figure
>> out how to get the template to send its table of data to the div. 
>> I've tried removing the HTML header and just appending the table to
the div
>> using innerHTML, but I keep getting null elements or other errors. 
>> Is this approach right and I'm just missing something, or is this
done
>> another way? I spent the better part of an hour today searching for
docs
>> and/or examples, but either it wasn't to be found or my google-fu
was
>> inferior today. Can someone point me to an example or explain how
you can
>> put query output anywhere on the map page?
>>
>> --
>> Bill Thoen
>> GISnet -  www.gisnet.com 
>> 1401 Walnut St., Suite C
>> Boulder, CO 80302
>> 303-786-9961 tel
>> 303-443-4856 fax
>>   
> 
> ___
> 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