Re: [MAPSERVER-USERS] Connecting to PostGIS only one time for all the layers

2008-04-21 Thread rich.fromm


Emilio Ponce wrote:
> 
> I want to connect only one time to a PostGIS database, in order to
> improve the efficiency of my mapfile. Now I'm connecting in every
> layer with this lines:
> 
> "
> CONNECTIONTYPE postgis
> CONNECTION "host= ... "
> DATA "the_geom from comarcas
> "
> 
> Is there a way to do this only one time in all the mapfile using more
> than one layer?
> 

In each LAYER, add:

PROCESSING  "CLOSE_CONNECTION=DEFER"

This tells mapserver not to close the connection.  So you still need to
specify the connection multiply, but that's not that big of a deal, and you
will get the performance gain.  This is documented here:

http://mapserver.gis.umn.edu/docs/reference/mapfile/layer

But there are some caveats, and you might find yourself needing to apply a
local patch.  For more details, see:

http://www.nabble.com/CLOSE_CONNECTION%3DDEFERSegmentation-fault-to15786741.html
http://trac.osgeo.org/mapserver/ticket/2497

- Rich

-- 
View this message in context: 
http://www.nabble.com/Connecting-to-PostGIS-only-one-time-for-all-the-layers-tp16816322p16817687.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] ArcGIS Image Server

2008-04-21 Thread Florin A.
The 9.3 version of ArcGIS will be able to serve Image Server services as WMS.
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [MAPSERVER-USERS] ASCII -> UTF-8 convert problems for importing (GIS) data

2008-04-21 Thread rich.fromm


Emilio Ponce wrote:
> 
> I had the same problem, to convert Charset you can use this option of
> the Shp2pgsql tool
> 
> shp2pgsql shapefile_name table_name | iconv -f LATIN1 -t UTF-8 | psql -d
> db_name
> 
> It converts the charset of the shapefile from LATIN1 to UTF-8
> 

I think you're doing an unneccessary step here.  Assuming LATIN1 is a valid
alias for ISO-8859-1 as recognized by shp2pgsql, just use shp2pgsql -W
LATIN1 to do the conversion to UTF-8.  (Or if that doesn't work, use -W
ISO-8859-1.)

But my main point is that you can have shp2pgsql do the conversion, and
there's no need to pipe it to iconv.

- Rich

-- 
View this message in context: 
http://www.nabble.com/ASCII--%3E-UTF-8-convert-problems-for-importing-%28GIS%29-data-tp16768968p16817682.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] ArcGIS Image Server

2008-04-21 Thread Dean Gadoury
I don't know if you can connect directly, but are you able to serve the
rasters through WMS from the ArcGIS Server? If so, you can make WMS requests
with your UMN MapServer and get the imagery that way.
DG

On Mon, Apr 21, 2008 at 5:46 PM, Lee <[EMAIL PROTECTED]> wrote:

> Greetings,
> Is it possible to connect to an ESRI ArcGIS Image Server using UMN
> Mapserver?
> I can curently use vector data from the SDE, but their raster data is
> served from an ArcGIS Image Server.
> Any suggestions or examples, would be appreciated.
>
> Thanks
> Lee
>
>
>
>  
> 
> Be a better friend, newshound, and
> know-it-all with Yahoo! Mobile.  Try it now.
> http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ
> ___
> 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] ArcGIS Image Server

2008-04-21 Thread Lee
Greetings,
Is it possible to connect to an ESRI ArcGIS Image Server using UMN Mapserver?  
I can curently use vector data from the SDE, but their raster data is served 
from an ArcGIS Image Server.  
Any suggestions or examples, would be appreciated.

Thanks
Lee


  

Be a better friend, newshound, and 
know-it-all with Yahoo! Mobile.  Try it now.  
http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] grayscale shaded relief in mapserver

2008-04-21 Thread Guillaume Sueur
I've done a tileindex, and when I set the layer to polygon and data to 
my tileindex shape, it displays well. So I think it's not a 
georeferencing problem.


Does anything could render as null (transparent or white, depending of 
outputformat) some raster layer without any error ?


Thanks

Guillaume

Jeff McKenna a écrit :

my thoughts:

- make a tiny version of your mapfile with only that one problem layer
- remove all projection objects
- post this small mapfile and your shp2img output (with the -map_debug 
switch) to this email list



-jeff




On 21-Apr-08, at 12:34 PM, Guillaume Sueur wrote:

the main projection is the same. Extents are ok, the tif being much 
wider than the rest of the dataset. I'm explicitly calling it, and it 
returns a white image. shp2img on this specific layer does the same.
The raster values range from 0 to 255, but on my particuliar mapping 
zone, the are few differences between pixel values. I'm using GIF 
PC256 for output.



Fawcett, David a écrit :
Have you ruled out a problem with projection or extent?  I was hoping 
to see the top of the map file too, to see what the output 
projection, extent, and units lines looked like.  Also, are you 
calling the layer name explicitly in the cgi request?  If not, try 
setting the layer status to DEFAULT for testing purposes.

David.
-Original Message-
From: [EMAIL PROTECTED] 
[mailto:[EMAIL PROTECTED] On Behalf Of 
Guillaume Sueur

Sent: Monday, April 21, 2008 11:17 AM
To: Fawcett, David; mapserver-users@lists.osgeo.org
Subject: Re: [mapserver-users] grayscale shaded relief in mapserver
the TIF goes with a .TAB and its georeferencing informations. It 
looks ok with Qgis.

The mapfile is straight-forward :
 LAYER
 DATA "uploaded/AUbwV8_32.TIF"
 NAME "shaded"
 PROCESSING "COLOR_MATCH_THRESHOLD=3"
 PROJECTION
   "init=epsg:27563"
 END
 STATUS ON
 TYPE RASTER
 UNITS METERS
END
Thanks for your interest,
Guillaume
Fawcett, David a écrit :
Have you stripped out all of the projection, etc.  and just tried to 
output the image?


What does your map file look like?

David.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of 
Guillaume Sueur

Sent: Monday, April 21, 2008 3:48 AM
To: mapserver-users@lists.osgeo.org
Subject: [mapserver-users] grayscale shaded relief in mapserver


Hi list,

I've got a grayscale TIF showing shaded relief which I can't manage to
display properly with mapserver. The image is just white. gdalinfo 
gives
: Band 1 Block=4367x1 Type=Byte, ColorInterp=Gray I assume the 
georef is
ok. I tried few things like resampling it to 32 colors, or 
"PROCESSING "COLOR_MATCH_THRESHOLD=3" as I've found in mails 
archives, but without any luck.


Any clue ?

Thanks


___
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 mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


[mapserver-users] Connecting to PostGIS only one time for all the layers

2008-04-21 Thread Emilio Ponce
I want to connect only one time to a PostGIS database, in order to
improve the efficiency of my mapfile. Now I'm connecting in every
layer with this lines:

"
CONNECTIONTYPE postgis
CONNECTION "host= ... "
DATA "the_geom from comarcas
"

Is there a way to do this only one time in all the mapfile using more
than one layer?

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


Re: [MAPSERVER-USERS] ASCII -> UTF-8 convert problems for importing (GIS) data

2008-04-21 Thread Emilio Ponce
I had the same problem, to convert Charset you can use this option of
the Shp2pgsql tool

shp2pgsql shapefile_name table_name | iconv -f LATIN1 -t UTF-8 | psql -d db_name

It converts the charset of the shapefile from LATIN1 to UTF-8


2008/4/21 rich.fromm <[EMAIL PROTECTED]>:
>
>
>  Stefan Schwarzer wrote:
>  >
>  >
>  >>> hmm I have a shapefile, which has some unorthodox characters (Ç,
>  >>> ì, ...). Now, when importing the file (via shp2pgsql) into postgres,
>  >>> it complains about it not being UTF-8 (my database has that format).
>  >>>
>  >>> So, how can I convert either the dbf file or than in a later stage
>  >>> the
>  >>> created text file from (I guess) ASCII into UTF-8?
>  >
>  >> You have an option for shp2pgsql (-W I think) to tell shp2pgsql to
>  >> convert
>  >> your data into this encoding:
>  >
>  > Yep, tried that too. But I get this message:
>  >
>  > shp2pgsql -s 4326 -I -W UTF-8 -D countries.shp gis.countries_new >
>  > countries_new.sql
>  > Shapefile type: Polygon
>  > Postgis type: MULTIPOLYGON[2]
>  > utf8: Invalid or incomplete multibyte or wide character
>  >
>  > We didn't really understand if the "-W" is to specify what the format
>  > is (which we assumed) or into which format it has to be transformed.
>  >
>  > So, we would need something  like transform ASCII into UTF-8.
>  >
>
>  -W describes the input format.  The output format if you use it will be
>  UTF-8.  From the shp2pgsql(1) man page:
>
>  ---
>-W 
>   Specify the character encoding of Shapefile $-1òùs attributes.
>  If this option is used the output will be encoded in UTF-8.
>  ---
>
>  So no, you don't want to transform it from ASCII, because you clearly don't
>  have ASCII input, as ASCII does not have the characters you describe.
>
>  You need to find out what the input data is encoded in.  A very likely
>  candidate is ISO-8859-1 (aka Latin-1).
>
>  Take a look at the actual hex values of some of the non-English characters.
>  (I use hexl-mode in emacs to do this, but there are plenty of other ways.)
>  Compare them to ISO-8859-1, for example at either of these:
>
>  http://en.wikipedia.org/wiki/ISO_8859-1
>  http://anubis.dkuug.dk/JTC1/SC2/WG3/docs/n411.pdf
>
>  For the two examples you cite, we have:
>
>  0xC7 LATIN CAPITAL C WITH CEDILLA
>  0xEC LATIN SMALL I WITH GRAVE
>
>  Do they match?  But this is still a bit of a guessing game, because you
>  could find many matches and still not be right, e.g. ISO-8859-15 is very
>  similar.  A better way would be to look at the documentation for your input
>  data, or ask the provider of the data.
>
>  - Rich
>
>  --
>  View this message in context: 
> http://www.nabble.com/ASCII--%3E-UTF-8-convert-problems-for-importing-%28GIS%29-data-tp16768968p16808302.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
>



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


Re: [MAPSERVER-USERS] ASCII -> UTF-8 convert problems for importing (GIS) data

2008-04-21 Thread rich.fromm


Stefan Schwarzer wrote:
> 
> 
>>> hmm I have a shapefile, which has some unorthodox characters (Ç,
>>> ì, ...). Now, when importing the file (via shp2pgsql) into postgres,
>>> it complains about it not being UTF-8 (my database has that format).
>>>
>>> So, how can I convert either the dbf file or than in a later stage  
>>> the
>>> created text file from (I guess) ASCII into UTF-8?
> 
>> You have an option for shp2pgsql (-W I think) to tell shp2pgsql to  
>> convert
>> your data into this encoding:
> 
> Yep, tried that too. But I get this message:
> 
> shp2pgsql -s 4326 -I -W UTF-8 -D countries.shp gis.countries_new >  
> countries_new.sql
> Shapefile type: Polygon
> Postgis type: MULTIPOLYGON[2]
> utf8: Invalid or incomplete multibyte or wide character
> 
> We didn't really understand if the "-W" is to specify what the format  
> is (which we assumed) or into which format it has to be transformed.
> 
> So, we would need something  like transform ASCII into UTF-8.
> 

-W describes the input format.  The output format if you use it will be
UTF-8.  From the shp2pgsql(1) man page:

---
   -W 
  Specify the character encoding of Shapefile$-1òùs attributes. 
If this option is used the output will be encoded in UTF-8.
---

So no, you don't want to transform it from ASCII, because you clearly don't
have ASCII input, as ASCII does not have the characters you describe.

You need to find out what the input data is encoded in.  A very likely
candidate is ISO-8859-1 (aka Latin-1).

Take a look at the actual hex values of some of the non-English characters. 
(I use hexl-mode in emacs to do this, but there are plenty of other ways.) 
Compare them to ISO-8859-1, for example at either of these:

http://en.wikipedia.org/wiki/ISO_8859-1
http://anubis.dkuug.dk/JTC1/SC2/WG3/docs/n411.pdf

For the two examples you cite, we have:

0xC7 LATIN CAPITAL C WITH CEDILLA
0xEC LATIN SMALL I WITH GRAVE

Do they match?  But this is still a bit of a guessing game, because you
could find many matches and still not be right, e.g. ISO-8859-15 is very
similar.  A better way would be to look at the documentation for your input
data, or ask the provider of the data.

- Rich

-- 
View this message in context: 
http://www.nabble.com/ASCII--%3E-UTF-8-convert-problems-for-importing-%28GIS%29-data-tp16768968p16808302.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] Mapserver & Cartograms

2008-04-21 Thread Christian Kaiser

Sorry for the late answer.

We did release today a new Java application for cartogram creation 
(). I think the main problem for 
an implementation in an online MapServer application will be the 
computation time needed to create the cartogram. Technically, it should 
be possible to find a solution using one of the known algorithms. But 
you will have to handle a computation process which can take several 
minutes...


Christian




[EMAIL PROTECTED] wrote:

Hi there,

do you know of anybody or any mechanism to implement some cartogram 
functionality into mapserver? You'll perhaps know the worldmapper site - nice 
examples. We've developed a couple of other ones for a specific project; and 
I thought about using an exisiting mapserver site to draw these kind of 
cartograms dynamically. That would be really cool...


Thanks for any ideas,

Stef



___
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] Large Shape File Performance: Testers wanted!

2008-04-21 Thread Paul Ramsey
I'm looking for folks comfortable with patching and compiling to test
out a couple speed improvements in shape file access. Please leave
your comments on the ticket, thanks :)

Two performance patches at: http://trac.osgeo.org/mapserver/ticket/2282

Summary:

Performance patches radically improved the selective case and
left the un-selective case in reasonable shape.

Definitions of tests:

o Indexed: Render 20 features of 1.8M, using an index scan to only
 pull the features needed from the SHP file.  Tests the selective
data access case.
o Unindexed: Render 20 features of 1.8M, using no index. Forces
bounds from every feature to be read.  Tests the un-selective
data access case

Mapserver 5.0

  Indexed: 164ms
  Unindexed: 990ms

Mapserver SVN + SHX Patch

  Indexed: 48ms
  Unindexed: 1015ms

Mapserver SVN + Bitmap Patch

  Indexed: 143ms
  Unindexed: 975ms

Mapserver SVN + Bitmap Patch + SVN Patch

  Indexed: 28ms
  Unindexed: 991ms
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] grayscale shaded relief in mapserver

2008-04-21 Thread Jeff McKenna

my thoughts:

- make a tiny version of your mapfile with only that one problem layer
- remove all projection objects
- post this small mapfile and your shp2img output (with the -map_debug  
switch) to this email list



-jeff




On 21-Apr-08, at 12:34 PM, Guillaume Sueur wrote:

the main projection is the same. Extents are ok, the tif being much  
wider than the rest of the dataset. I'm explicitly calling it, and  
it returns a white image. shp2img on this specific layer does the  
same.
The raster values range from 0 to 255, but on my particuliar mapping  
zone, the are few differences between pixel values. I'm using GIF  
PC256 for output.



Fawcett, David a écrit :
Have you ruled out a problem with projection or extent?  I was  
hoping to see the top of the map file too, to see what the output  
projection, extent, and units lines looked like.  Also, are you  
calling the layer name explicitly in the cgi request?  If not, try  
setting the layer status to DEFAULT for testing purposes.

David.
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
] On Behalf Of Guillaume Sueur

Sent: Monday, April 21, 2008 11:17 AM
To: Fawcett, David; mapserver-users@lists.osgeo.org
Subject: Re: [mapserver-users] grayscale shaded relief in mapserver
the TIF goes with a .TAB and its georeferencing informations. It  
looks ok with Qgis.

The mapfile is straight-forward :
 LAYER
 DATA "uploaded/AUbwV8_32.TIF"
 NAME "shaded"
 PROCESSING "COLOR_MATCH_THRESHOLD=3"
 PROJECTION
   "init=epsg:27563"
 END
 STATUS ON
 TYPE RASTER
 UNITS METERS
END
Thanks for your interest,
Guillaume
Fawcett, David a écrit :
Have you stripped out all of the projection, etc.  and just tried  
to output the image?


What does your map file look like?

David.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of  
Guillaume Sueur

Sent: Monday, April 21, 2008 3:48 AM
To: mapserver-users@lists.osgeo.org
Subject: [mapserver-users] grayscale shaded relief in mapserver


Hi list,

I've got a grayscale TIF showing shaded relief which I can't  
manage to
display properly with mapserver. The image is just white. gdalinfo  
gives
: Band 1 Block=4367x1 Type=Byte, ColorInterp=Gray I assume the  
georef is
ok. I tried few things like resampling it to 32 colors, or  
"PROCESSING "COLOR_MATCH_THRESHOLD=3" as I've found in mails  
archives, but without any luck.


Any clue ?

Thanks


___
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] grayscale shaded relief in mapserver

2008-04-21 Thread Guillaume Sueur
the main projection is the same. Extents are ok, the tif being much 
wider than the rest of the dataset. I'm explicitly calling it, and it 
returns a white image. shp2img on this specific layer does the same.
The raster values range from 0 to 255, but on my particuliar mapping 
zone, the are few differences between pixel values. I'm using GIF PC256 
for output.



Fawcett, David a écrit :
Have you ruled out a problem with projection or extent?  

I was hoping to see the top of the map file too, to see what the output projection, extent, and units lines looked like.  


Also, are you calling the layer name explicitly in the cgi request?  If not, 
try setting the layer status to DEFAULT for testing purposes.

David.

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Guillaume Sueur
Sent: Monday, April 21, 2008 11:17 AM
To: Fawcett, David; mapserver-users@lists.osgeo.org
Subject: Re: [mapserver-users] grayscale shaded relief in mapserver


the TIF goes with a .TAB and its georeferencing informations. It looks 
ok with Qgis.

The mapfile is straight-forward :
  LAYER
  DATA "uploaded/AUbwV8_32.TIF"
  NAME "shaded"
  PROCESSING "COLOR_MATCH_THRESHOLD=3"
  PROJECTION
"init=epsg:27563"
  END
  STATUS ON

  TYPE RASTER
  UNITS METERS
END

Thanks for your interest,

Guillaume

Fawcett, David a écrit :
Have you stripped out all of the projection, etc.  and just tried to 
output the image?


What does your map file look like?

David.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of 
Guillaume Sueur

Sent: Monday, April 21, 2008 3:48 AM
To: mapserver-users@lists.osgeo.org
Subject: [mapserver-users] grayscale shaded relief in mapserver


Hi list,

I've got a grayscale TIF showing shaded relief which I can't manage to
display properly with mapserver. The image is just white. gdalinfo gives
: Band 1 Block=4367x1 Type=Byte, ColorInterp=Gray I assume the georef is
ok. I tried few things like resampling it to 32 colors, or "PROCESSING 
"COLOR_MATCH_THRESHOLD=3" as I've found in mails archives, but without 
any luck.


Any clue ?

Thanks




___
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] grayscale shaded relief in mapserver

2008-04-21 Thread Fawcett, David
Have you ruled out a problem with projection or extent?  

I was hoping to see the top of the map file too, to see what the output 
projection, extent, and units lines looked like.  

Also, are you calling the layer name explicitly in the cgi request?  If not, 
try setting the layer status to DEFAULT for testing purposes.

David.

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Guillaume Sueur
Sent: Monday, April 21, 2008 11:17 AM
To: Fawcett, David; mapserver-users@lists.osgeo.org
Subject: Re: [mapserver-users] grayscale shaded relief in mapserver


the TIF goes with a .TAB and its georeferencing informations. It looks 
ok with Qgis.
The mapfile is straight-forward :
  LAYER
  DATA "uploaded/AUbwV8_32.TIF"
  NAME "shaded"
  PROCESSING "COLOR_MATCH_THRESHOLD=3"
  PROJECTION
"init=epsg:27563"
  END
  STATUS ON

  TYPE RASTER
  UNITS METERS
END

Thanks for your interest,

Guillaume

Fawcett, David a écrit :
> Have you stripped out all of the projection, etc.  and just tried to 
> output the image?
> 
> What does your map file look like?
> 
> David.
> 
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of 
> Guillaume Sueur
> Sent: Monday, April 21, 2008 3:48 AM
> To: mapserver-users@lists.osgeo.org
> Subject: [mapserver-users] grayscale shaded relief in mapserver
> 
> 
> Hi list,
> 
> I've got a grayscale TIF showing shaded relief which I can't manage to
> display properly with mapserver. The image is just white. gdalinfo gives
> : Band 1 Block=4367x1 Type=Byte, ColorInterp=Gray I assume the georef is
> ok. I tried few things like resampling it to 32 colors, or "PROCESSING 
> "COLOR_MATCH_THRESHOLD=3" as I've found in mails archives, but without 
> any luck.
> 
> Any clue ?
> 
> Thanks
> 


___
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] postgis layer and ogr

2008-04-21 Thread HERMANGE Albin
hi,

i want to display a postgis layer using the ogr driver

the mapserver native postgis connection works very well
CONNECTION "user=myuser password=mypwd dbname=mydb 
host=127.0.0.1 port=5432"
CONNECTIONTYPE POSTGIS
DATA "geom from (select * from mytable) as foo using unique gid 
using SRID=-1"


but when i want to display the same layer with the gr driver , mapserver crash
CONNECTIONTYPE OGR
CONNECTION "PG:user=myuser password=mypwd dbname=mydb 
host=127.0.0.1 port=5432"
DATA "SELECT * FROM mytable "



i think the CONNECTION string is wrong but i cannot find the correct one


can u help me with this connectionstring ?




thx,

albin


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


Re: [mapserver-users] grayscale shaded relief in mapserver

2008-04-21 Thread Guillaume Sueur
the TIF goes with a .TAB and its georeferencing informations. It looks 
ok with Qgis.

The mapfile is straight-forward :
 LAYER
 DATA "uploaded/AUbwV8_32.TIF"
 NAME "shaded"
 PROCESSING "COLOR_MATCH_THRESHOLD=3"
 PROJECTION
   "init=epsg:27563"
 END
 STATUS ON

 TYPE RASTER
 UNITS METERS
END

Thanks for your interest,

Guillaume

Fawcett, David a écrit :

Have you stripped out all of the projection, etc.  and just tried to
output the image?

What does your map file look like?

David.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Guillaume
Sueur
Sent: Monday, April 21, 2008 3:48 AM
To: mapserver-users@lists.osgeo.org
Subject: [mapserver-users] grayscale shaded relief in mapserver


Hi list,

I've got a grayscale TIF showing shaded relief which I can't manage to 
display properly with mapserver. The image is just white. gdalinfo gives

: Band 1 Block=4367x1 Type=Byte, ColorInterp=Gray I assume the georef is
ok. I tried few things like resampling it to 32 colors, or "PROCESSING 
"COLOR_MATCH_THRESHOLD=3" as I've found in mails archives, but without 
any luck.


Any clue ?

Thanks




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


Re: [mapserver-users] Raster problems

2008-04-21 Thread David Martinez Morata
Thanks for your help!

But now I have a question?

I put my layer definitions and the SCALE values but...

When I use ArcGis to show my layers the SCALE values are not the same of the
values I define.

Example:
My Layer:

LAYER
NAME "RGV2_L2e_05kFR_Contenu"
 GROUP "Fond_Carto"
  STATUS ON
  TILEINDEX "RGV2_L2e_05kFR_Contenu/RGV2_L2e_05kFR_Contenu.shp"
  TILEITEM "Location"
  TYPE RASTER
  MAXSCALE 15001
#Definiftion du systeme de projection Lambert II Etendue code EPSG
PROJECTION
  "init=epsg:27572"
END
#Metadonnes du serveur wms
METADATA
"wms_title""Raster_05K"
"wms_srs""EPSG:27572"
END
END

Scale of View in ArcGIS 9.0 SP2 1:21
Sclae of view in gvSIG 1:20021
AutoCadMap I search the Scale but some times puts one Layer an sometimes
other ( random )

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


Re: [mapserver-users] error_output

2008-04-21 Thread Jeff McKenna
I don't think anyone got back to you...but maybe you should be  
including your .map file in your message so everyone can see it.  I'm  
not sure what the problem is with your 'client', but I would make sure  
you use the mapserver utility sh2img to test your mapfile.  http://mapserver.gis.umn.edu/docs/reference/utilityreference/shp2img


-jeff


On 14-Apr-08, at 5:36 AM, Petra Pietrasová wrote:

Good morning,
I am a student of geoinformatics in the Czech Republic.
I am just finishing my diploma thesis about a map server and I have  
a problem with my aplication.
Sometimes there is an error in my client. The error of client is in  
displaying received images (they look like those saved in computer).


I am sending you four  images for illustration :
data- this is how  I can see an orthophoto map in my  
aplication
data_png- this is the image of orthophoto map how is saved in my  
computer


Can you write me please  where the problem is?
Or what do you think I should change?

Thank you best regards

Petra Pietrasova
Czech Republic


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


Re: [MAPSERVER-USERS] Multiple GetFeatureInfo on Raster Data [SEC=UNCLASSIFIED]

2008-04-21 Thread Frank Warmerdam

Matthew Doyle wrote:

Hi Frank,

Thanks for getting back to me. A few questions:
A) where can I file this ticket? Do I need certain privileges to do so?


Matt,

You would file the ticket in the MapServer bug tracker:

  http://trac.osgeo.org/mapserver

That page includes a link to get your own OSGeo userid.


B) I have contacted our Data Services team and they will providing the
slimmed down MapFile with only two raster layers. It will be accessible
via a URL on our server, and queryable - I am assuming this is ok?


No, I'm afraid not.  I want a map + raster files in a form that I can run
locally on my system.  So it needs to be streamlined for it to be easy for
me to run at my end, and you need to ensure the data is not private.

Best regards,
--
---+--
I set the clouds in motion - turn up   | Frank Warmerdam, [EMAIL PROTECTED]
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush| President OSGeo, http://osgeo.org

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


RE: [mapserver-users] Displaying points & label

2008-04-21 Thread Fawcett, David
Clement, 
 
Please post the content of your map file.  It should be easier to clear this up 
if we can see what you are sending to mapserv.
 
David.

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Clemiou
Sent: Friday, April 18, 2008 4:29 PM
To: mapserver-users@lists.osgeo.org
Subject: RE: [mapserver-users] Displaying points & label





Hi,
 
Now I have the good projections I think but I don't see the points.
I have:
 
WGS84 for my map.
EPSG:27582 for my map Layer
WGS84 for my label layer.

What do you think about that? Is it Ok with my datas (WGS84 for 
database datas and Lambert II for my Map).
 
Thanks for you answer
 
Clement





> Date: Fri, 18 Apr 2008 18:25:01 +0200
> From: [EMAIL PROTECTED]
> To: mapserver-users@lists.osgeo.org
> Subject: Re: [mapserver-users] Displaying points & label
> 
> Hi,
> 
> in your ovf as well as in the layer definition you claim your data to
> be in EPSG:27582, if it is actually in epsg:4326 then it should say so
> in both places. The layer projection defines in which system your data
> is in, the map projection defines in what system your image is
> rendered (and your data projected to on the fly if necessary).
> 
> Cheers, Michael
> 
> 2008/4/18 Clemiou <[EMAIL PROTECTED]>:
> >
> > Hi!
> >
> > Still no points!
> > But I found perhaps something...
> > My datas are in WGS84 format and my map in Lambert II.
> > So, in my mapfile, my Map object has WGS84 projection, the layer of 
my Map, Lambert II format and the layer of my points the WGS84 format.
> > But still no points.
> > I don't know why. ^^
> >
> > Thanks for your help.
> > Clement
> > _
> > Découvrez les profils Messenger de vos amis !
> > 
http://home.services.spaces.live.com/___
> >
> >
> > mapserver-users mailing list
> > mapserver-users@lists.osgeo.org
> > http://lists.osgeo.org/mailman/listinfo/mapserver-users
> >
> 
> 
> 
> -- 
> ---
> Michael Schulz
> [EMAIL PROTECTED]
> 
> in medias res
> Gesellschaft für Informationstechnologie mbH
> 
> In den Weihermatten 66
> 79108 Freiburg
> 
> Tel +49 (0)761 556959-5
> Fax +49 (0)761 556959-6
> 
> http://www.webgis.de / http://www.zopecms.de
> ---
> ___
> mapserver-users mailing list
> mapserver-users@lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users





Plus de 15 millions de français utilisent Windows Live Messenger ! 
Téléchargez Messenger, c'est gratuit !   

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


Re: [mapserver-users] How to tile a large TIF image?

2008-04-21 Thread Doug_Newcomb
Tormod,

>I'm also looking for a complete example on how to split large rasters
>1-5GB ECW and RIK's into tif tiles (10k x 10k px). Large files are
>usually not favored by filesystem cache.


  Use gdal_translate, http://www.gdal.org/gdal_translate.html, to chop
up your ECW files and output your parts as tiff.  I'd suggest using python
to get the extent and pixel size ( in projection coordinates) of each image
and have gdal_translate grab a 10k X 10k chunk starting at the lower left
corner of the image, incrementing the x coordinate by (10k * number of
units per pixel) as you work left to right.  After you finish that row,
start back at the origin x coordinate and increment the y coordinate by
(10k * number of units per pixel).  Rinse and repeat until you finish the
whole image.

  It might be worthwhile to implement a bit of overlap ( 10-15 pixels)
in the x and y direction as you chop.

Doug



Doug Newcomb
USFWS
Raleigh, NC
919-856-4520 ext. 14 [EMAIL PROTECTED]
-

The opinions I express are my own and are not representative of the
official policy of the U.S.Fish and Wildlife Service or Dept. of Interior.
Life is too short for undocumented, proprietary data formats.


   
 Tormod Brunsby
 <[EMAIL PROTECTED]>
 
 Sent by:   To 
 mapserver-users-b mapserver-users@lists.osgeo.org 
 [EMAIL PROTECTED]  cc 
 o.org 
   Subject 
   Re: [mapserver-users] How to tile a 
 04/21/2008 07:46  large TIF image?
 AM
   
   
   
   
   




> Dejan -
>
> I NEVER say "always"...
>
> But no, I do not think one could state that one approach (a single TIFF
with
> overviews vs. multiple TIFFs at different resolutions) is ALWAYS better
than
> the other.  There are a number of factors involved, some of which depend
on
> your filesystem and disk hardware characteristics.
>
Still no good examples on how to do this i see.

I'm also looking for a complete example on how to split large rasters
1-5GB ECW and RIK's into tif tiles (10k x 10k px). Large files are
usually not favored by filesystem cache.

--
Tormod

___
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 v. 4.10.0 featureid problem

2008-04-21 Thread Kralidis,Tom [Burlington]

To add, note that the forthcoming WFS 1.2 (which will then be an OGC/ISO 
standard) will support paging.  This could be awhile, but at least this feature 
is acknowledged by the spec editors/community.

..Tom



-Original Message-
From: [EMAIL PROTECTED] on behalf of Rahkonen Jukka
Sent: Sun 20-Apr-08 17:36
To: Brian Mixon; mapserver-users@lists.osgeo.org
Subject: Re: [mapserver-users] MapServer v. 4.10.0 featureid problem
 



-Alkuperäinen viesti-
Lähettäjä: [EMAIL PROTECTED] puolesta: Brian Mixon

> Tom,

> Perhaps I should tell you why I'm after the (or any) unique AND
sequential id field for a service's features. I'm trying to page the
feature data in a UI and started designing my solution after having read
the WFS v 1.0.0 spec. I assumed (yes, I know what happens when one does
that (;>)) that I'd just use feature ids. 

> I should have asked what mechanism MapServer employs to allow me to do
something like this (the partial retrieval of features from a large
dataset on some service somewhere). I'm going to bring back a certain
number of features with each call to a WFS and as the user scrolls
through this data I will make subsequent calls to the same service and
ask for the next batch of features.

> Does this make sense and can you point me in the right direction for
getting MapServer to do this?

I fear that WFS itself does not support this well.  WFS does have a setting for 
maximum number of features returned by one request, but there is no way to ask 
for the following set of features starting from, let's say, feature number 
11. But if you take the WFS fid from sequential database field and sort 
that somehow then it should be possible to reach what you wand by addind a WFS 
filter like "AND fid>max_fid_from_last_request" to the next WFS request.  I can 
imagine that this could lead to most unuseful result if bounding box is also a 
part of a filter and user is panning around on the map between the requests 
(area unvisited before can have features with lower fid values).

-Jukka Rahkonen-





___
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] QueryByPoint problem: why always the same feature?

2008-04-21 Thread Pietro Giannini
Carlo,
I think the cache is refreshed each call of $layer->queryByPoint(point,
mode, buffer).
Remember to set the "mode" = MS_MULTIPLE to obtain more than one result,
the point is a $pointObj in GEOGRAPHIC coordinates, the buffer set to 0
get the default of the TOLERANCE (in pixels) of the mapfile, otherwise you
can specify in ground units a circle around the point for obtain the
results.

Look here:
http://mapserver.gis.umn.edu/docs/reference/phpmapscript-class
for a good guide about.

here a piece of code (it work):

$res = @$layer->queryByPoint($qpoint,MS_MULTIPLE,0);
if (@$layer->getNumResults() > 0) {
$layer->open();
for ($i=0;$i<$layer->getNumResults();$i++) {
$resCache = $layer->getResult($i);
$shape = $layer->getShape(-1,$resCache->shapeindex);
echo $shape->values['fieldname']."";
//  etc.
}
$layer->close();
}

ciao
..pg


-- 
Pietro Giannini
Bytewise srl - Area GIS
41°50'38.58"N 12°29'13.39"E





On Lun, Aprile 21, 2008 13:20, Carlo Pelliconi wrote:
> Hi all.
> I use PHPMapScritp with Mapserver 4.10 on Debian Etch.
> I do a series of querybypoint, but the answer is always the first feature!
> I think it could be a resultCacheMember problem. How can I free all
> cache about previous query results?
> New results of next query are appended to previous results or getResult
> goes to a new set at any new query?
> It is sufficient to close the queried layer ad to free the
> $shp=getResult(...)?
> Thank you very much.
> Carlo
>
> --
> ing. Carlo Pelliconi
> [EMAIL PROTECTED]
> SIS.TER S.p.A.
> www.sis-ter.it
> via Mentana, 10
> 40026 Imola (BO) Italy
> tel +39 0542 364034
> fax +39 0542 612130
>
>
>
>
> ATTENZIONE!
> Questo documento è indirizzato esclusivamente al destinatario. Tutte le
> informazioni ivi contenute, compresi eventuali allegati, sono soggette
> a riservatezza secondo i termini del D.Lgs. 196/2003 in materia di
> "privacy" e ne è proibita l'utilizzazione da parte di altri soggetti. Si
> ricorda che la diffusione l'utilizzo e/o la conservazione dei dati
> ricevuti per errore costituisce violazione di carattere penale ai sensi
> dell'art. 616 Codice penale (Violazione, sottrazione e soppressione di
> corrispondenza). Se avesse ricevuto per errore questo messaggio, La
> preghiamo cortesemente di contattare il mittente al più presto e di
> cancellare il messaggio subito dopo. Grazie.
>
> ATTENTION!
> This message is being sent from Sis.Ter S.p.A. and may contain information
> which is confidential or privileged. If you are not the intended
> recipient, please advise the sender immediately by reply e-mail and delete
> this message and any attachments without retaining a copy. Any
> unauthorized use of the content of this message is a breach of your duty
> to respect the confidentiality of the correspondence between other persons
> and can expose the responsible party to civil and/or criminal penalties
> (D.Lgs. 196/2003 "Tutela della privacy" e art. 616 Codice penale
> "Violazione, sottrazione e soppressione di corrispondenza"), and may
> constitute a more serious offence. Thanks.
>
> ACHTUNG!
> Dieses Dokument ist ausschließlich dem Empfänger vorbehalten. Die darin
> enthaltenen Informationen, auch jene in etwaigen Anlagen, gelten im Sinne
> des Dekrets Nr. 196/2003 in Sachen "Privacy" als streng vertraulich und
> dürfen von anderen Personen nicht verwende werden. Wer diese Mitteilung
> irrtümlicherweise erhält ist gebeten uns umgehend zu informieren und
> anschließend die Mitteilung zu vernichten. Vielen Dank.
>
>
> ___
> mapserver-users mailing list
> mapserver-users@lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>


-- 
Pietro Giannini
Bytewise srl - Area GIS
41°50'38.58"N 12°29'13.39"E

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


Re: [mapserver-users] How to tile a large TIF image?

2008-04-21 Thread Tormod Brunsby
> Dejan -
> 
> I NEVER say "always"...
> 
> But no, I do not think one could state that one approach (a single TIFF with
> overviews vs. multiple TIFFs at different resolutions) is ALWAYS better than
> the other.  There are a number of factors involved, some of which depend on
> your filesystem and disk hardware characteristics.
> 
Still no good examples on how to do this i see.

I'm also looking for a complete example on how to split large rasters
1-5GB ECW and RIK's into tif tiles (10k x 10k px). Large files are
usually not favored by filesystem cache.

-- 
Tormod

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


[mapserver-users] QueryByPoint problem: why always the same feature?

2008-04-21 Thread Carlo Pelliconi

Hi all.
I use PHPMapScritp with Mapserver 4.10 on Debian Etch.
I do a series of querybypoint, but the answer is always the first feature!
I think it could be a resultCacheMember problem. How can I free all 
cache about previous query results?
New results of next query are appended to previous results or getResult 
goes to a new set at any new query?  
It is sufficient to close the queried layer ad to free the 
$shp=getResult(...)?

Thank you very much.
Carlo

--
ing. Carlo Pelliconi
[EMAIL PROTECTED]
SIS.TER S.p.A.
www.sis-ter.it
via Mentana, 10
40026 Imola (BO) Italy
tel +39 0542 364034
fax +39 0542 612130




ATTENZIONE!
Questo documento è indirizzato esclusivamente al destinatario. Tutte le
informazioni ivi contenute, compresi eventuali allegati, sono soggette
a riservatezza secondo i termini del D.Lgs. 196/2003 in materia di
"privacy" e ne è proibita l'utilizzazione da parte di altri soggetti. Si 
ricorda che la diffusione l'utilizzo e/o la conservazione dei dati ricevuti per errore 
costituisce violazione di carattere penale ai sensi dell'art. 616 Codice penale 
(Violazione, sottrazione e soppressione di corrispondenza). Se avesse ricevuto per errore 
questo messaggio, La preghiamo cortesemente di contattare il mittente al più presto e di 
cancellare il messaggio subito dopo. Grazie.

ATTENTION!
This message is being sent from Sis.Ter S.p.A. and may contain information which is confidential or 
privileged. If you are not the intended recipient, please advise the sender immediately by reply 
e-mail and delete this message and any attachments without retaining a copy. Any unauthorized use 
of the content of this message is a breach of your duty to respect the confidentiality of the 
correspondence between other persons and can expose the responsible party to civil and/or criminal 
penalties (D.Lgs. 196/2003 "Tutela della privacy" e art. 616 Codice penale 
"Violazione, sottrazione e soppressione di corrispondenza"), and may constitute a more 
serious offence. Thanks.

ACHTUNG!
Dieses Dokument ist ausschließlich dem Empfänger vorbehalten. Die darin enthaltenen 
Informationen, auch jene in etwaigen Anlagen, gelten im Sinne des Dekrets Nr. 196/2003 in 
Sachen "Privacy" als streng vertraulich und dürfen von anderen Personen nicht 
verwende werden. Wer diese Mitteilung irrtümlicherweise erhält ist gebeten uns umgehend 
zu informieren und anschließend die Mitteilung zu vernichten. Vielen Dank.


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


[mapserver-users] grayscale shaded relief in mapserver

2008-04-21 Thread Guillaume Sueur

Hi list,

I've got a grayscale TIF showing shaded relief which I can't manage to 
display properly with mapserver. The image is just white.

gdalinfo gives : Band 1 Block=4367x1 Type=Byte, ColorInterp=Gray
I assume the georef is ok.
I tried few things like resampling it to 32 colors, or "PROCESSING 
"COLOR_MATCH_THRESHOLD=3" as I've found in mails archives, but without 
any luck.


Any clue ?

Thanks

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


Re: [mapserver-users] PHPmapscript mouse click

2008-04-21 Thread Carlo Pelliconi

Ok, grazie
Carlo

Pietro Giannini ha scritto:

Hi Carlo,
on Php you can get the mouse click coordinates on a 
tag in a  on your html code, where you show the map image.

The coordinates, in pixels, can be intercepted on the $_GET['inputname_x']
and $_GET['inputname_y'] variables (or $_POST, depending on method of the
).

e.g.:

draw();
$mapimgurl = $mapimg->saveWebImage();
?>








last click was:
";
echo "Y = ".$_GET['mapimage_y'];
?>

ciao
...pg

  



--
ing. Carlo Pelliconi
[EMAIL PROTECTED]
SIS.TER S.p.A.
www.sis-ter.it
via Mentana, 10
40026 Imola (BO) Italy
tel +39 0542 364034
fax +39 0542 612130




ATTENZIONE!
Questo documento è indirizzato esclusivamente al destinatario. Tutte le
informazioni ivi contenute, compresi eventuali allegati, sono soggette
a riservatezza secondo i termini del D.Lgs. 196/2003 in materia di
"privacy" e ne è proibita l'utilizzazione da parte di altri soggetti. Si 
ricorda che la diffusione l'utilizzo e/o la conservazione dei dati ricevuti per errore 
costituisce violazione di carattere penale ai sensi dell'art. 616 Codice penale 
(Violazione, sottrazione e soppressione di corrispondenza). Se avesse ricevuto per errore 
questo messaggio, La preghiamo cortesemente di contattare il mittente al più presto e di 
cancellare il messaggio subito dopo. Grazie.

ATTENTION!
This message is being sent from Sis.Ter S.p.A. and may contain information which is confidential or 
privileged. If you are not the intended recipient, please advise the sender immediately by reply 
e-mail and delete this message and any attachments without retaining a copy. Any unauthorized use 
of the content of this message is a breach of your duty to respect the confidentiality of the 
correspondence between other persons and can expose the responsible party to civil and/or criminal 
penalties (D.Lgs. 196/2003 "Tutela della privacy" e art. 616 Codice penale 
"Violazione, sottrazione e soppressione di corrispondenza"), and may constitute a more 
serious offence. Thanks.

ACHTUNG!
Dieses Dokument ist ausschließlich dem Empfänger vorbehalten. Die darin enthaltenen 
Informationen, auch jene in etwaigen Anlagen, gelten im Sinne des Dekrets Nr. 196/2003 in 
Sachen "Privacy" als streng vertraulich und dürfen von anderen Personen nicht 
verwende werden. Wer diese Mitteilung irrtümlicherweise erhält ist gebeten uns umgehend 
zu informieren und anschließend die Mitteilung zu vernichten. Vielen Dank.


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


[mapserver-users] WMS with selected country rectangle box display?

2008-04-21 Thread Stefan Schwarzer

Hi there,

we have developed a WMS which receives a parameter for a selected  
country, producing a map which highlights the selected country, and  
masks a bit the neighboring ones. Now, I would like to create in  
conjunction with this one another WMS, which shows the world as a  
whole, and - as any overview map is doing - displays just a rectangle  
to locate the selected country on the map.


Is this possible as WMS? I have no idea how this would work...

Thanks for any hints,

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


Re: [mapserver-users] PHPmapscript mouse click

2008-04-21 Thread Pietro Giannini
Hi Carlo,
on Php you can get the mouse click coordinates on a 
tag in a  on your html code, where you show the map image.

The coordinates, in pixels, can be intercepted on the $_GET['inputname_x']
and $_GET['inputname_y'] variables (or $_POST, depending on method of the
).

e.g.:

draw();
$mapimgurl = $mapimg->saveWebImage();
?>








last click was:
";
echo "Y = ".$_GET['mapimage_y'];
?>

ciao
...pg

-- 
Pietro Giannini
Bytewise srl - Area GIS
41°50'38.58"N 12°29'13.39"E


On Lun, Aprile 21, 2008 09:57, Carlo Pelliconi wrote:
> Hi all.
> I'm using PHPMapscript on Mapserver 4.10.
> I'm not able to get mouse click coordinates (in pixel).
> Anyone knows how to obtain these values?
> Thank you very much
>
> --
> ing. Carlo Pelliconi
> [EMAIL PROTECTED]
> SIS.TER S.p.A.
> www.sis-ter.it
> via Mentana, 10
> 40026 Imola (BO) Italy
> tel +39 0542 364034
> fax +39 0542 612130
>
>
>
>
> ATTENZIONE!
> Questo documento è indirizzato esclusivamente al destinatario. Tutte le
> informazioni ivi contenute, compresi eventuali allegati, sono soggette
> a riservatezza secondo i termini del D.Lgs. 196/2003 in materia di
> "privacy" e ne è proibita l'utilizzazione da parte di altri soggetti. Si
> ricorda che la diffusione l'utilizzo e/o la conservazione dei dati
> ricevuti per errore costituisce violazione di carattere penale ai sensi
> dell'art. 616 Codice penale (Violazione, sottrazione e soppressione di
> corrispondenza). Se avesse ricevuto per errore questo messaggio, La
> preghiamo cortesemente di contattare il mittente al più presto e di
> cancellare il messaggio subito dopo. Grazie.
>
> ATTENTION!
> This message is being sent from Sis.Ter S.p.A. and may contain information
> which is confidential or privileged. If you are not the intended
> recipient, please advise the sender immediately by reply e-mail and delete
> this message and any attachments without retaining a copy. Any
> unauthorized use of the content of this message is a breach of your duty
> to respect the confidentiality of the correspondence between other persons
> and can expose the responsible party to civil and/or criminal penalties
> (D.Lgs. 196/2003 "Tutela della privacy" e art. 616 Codice penale
> "Violazione, sottrazione e soppressione di corrispondenza"), and may
> constitute a more serious offence. Thanks.
>
> ACHTUNG!
> Dieses Dokument ist ausschließlich dem Empfänger vorbehalten. Die darin
> enthaltenen Informationen, auch jene in etwaigen Anlagen, gelten im Sinne
> des Dekrets Nr. 196/2003 in Sachen "Privacy" als streng vertraulich und
> dürfen von anderen Personen nicht verwende werden. Wer diese Mitteilung
> irrtümlicherweise erhält ist gebeten uns umgehend zu informieren und
> anschließend die Mitteilung zu vernichten. Vielen Dank.
>
>
> ___
> 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] PHPmapscript mouse click

2008-04-21 Thread Carlo Pelliconi

Hi all.
I'm using PHPMapscript on Mapserver 4.10.
I'm not able to get mouse click coordinates (in pixel).
Anyone knows how to obtain these values?
Thank you very much

--
ing. Carlo Pelliconi
[EMAIL PROTECTED]
SIS.TER S.p.A.
www.sis-ter.it
via Mentana, 10
40026 Imola (BO) Italy
tel +39 0542 364034
fax +39 0542 612130




ATTENZIONE!
Questo documento è indirizzato esclusivamente al destinatario. Tutte le
informazioni ivi contenute, compresi eventuali allegati, sono soggette
a riservatezza secondo i termini del D.Lgs. 196/2003 in materia di
"privacy" e ne è proibita l'utilizzazione da parte di altri soggetti. Si 
ricorda che la diffusione l'utilizzo e/o la conservazione dei dati ricevuti per errore 
costituisce violazione di carattere penale ai sensi dell'art. 616 Codice penale 
(Violazione, sottrazione e soppressione di corrispondenza). Se avesse ricevuto per errore 
questo messaggio, La preghiamo cortesemente di contattare il mittente al più presto e di 
cancellare il messaggio subito dopo. Grazie.

ATTENTION!
This message is being sent from Sis.Ter S.p.A. and may contain information which is confidential or 
privileged. If you are not the intended recipient, please advise the sender immediately by reply 
e-mail and delete this message and any attachments without retaining a copy. Any unauthorized use 
of the content of this message is a breach of your duty to respect the confidentiality of the 
correspondence between other persons and can expose the responsible party to civil and/or criminal 
penalties (D.Lgs. 196/2003 "Tutela della privacy" e art. 616 Codice penale 
"Violazione, sottrazione e soppressione di corrispondenza"), and may constitute a more 
serious offence. Thanks.

ACHTUNG!
Dieses Dokument ist ausschließlich dem Empfänger vorbehalten. Die darin enthaltenen 
Informationen, auch jene in etwaigen Anlagen, gelten im Sinne des Dekrets Nr. 196/2003 in 
Sachen "Privacy" als streng vertraulich und dürfen von anderen Personen nicht 
verwende werden. Wer diese Mitteilung irrtümlicherweise erhält ist gebeten uns umgehend 
zu informieren und anschließend die Mitteilung zu vernichten. Vielen Dank.


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