Re: [mapserver-users] Projection Issues

2008-03-27 Thread Milo van der Linden
The problem might be that in your mapserver proj4 implementation; the 
epsg:20355 is missing towgs84 parameters. These parameters tell 
mapserver the shift that is present between the wgs84 ellipsoid and the 
greenwich ellipsoid.


Could you check out the epsg file in your proj/nad directory; look up 
<20355> there and see if you have something like 
+towgs84=-70.9,-151.8,-41.4,0,0,0,0 default it says something like no_defs.

You can find a description on ellipsoid differences here:
http://www.remotesensing.org/proj/gen_parms.html

I looked up this somewhere on a mailinglist: ellps=aust_SA 
towgs84=-133,-48148,0,0,0,0


See if it can help you.

Good luck

Milo van der Linden



Gabe schreef:

Hi

I am having trouble with the projection on a raster image.  The map is being
displayed but the raster layer is shifted by about 210m.

The mapfiles main projection is EPSG:4326

I have a .ecw file with this gdalinfo:

Driver: ECW/ERMapper Compressed Wavelets
Files: aerial_photo_2003.ecw
Size is 53334, 53334
Coordinate System is:
PROJCS["TMAMG55",
GEOGCS["AUSTRALIAN GEODETIC",
DATUM["AGD84",
SPHEROID["ANS",6378160,298.25]],
PRIMEM["Greenwich",0],
UNIT["degree",0.0174532925199433]],
PROJECTION["Transverse_Mercator"],
PARAMETER["latitude_of_origin",0],
PARAMETER["central_meridian",147],
PARAMETER["scale_factor",0.9996],
PARAMETER["false_easting",50],
PARAMETER["false_northing",1000],
UNIT["Meter",1]]
Origin = (655179.380,7701896.290)
Pixel Size = (1.500,-1.500)
Corner Coordinates:
Upper Left  (  655179.380, 7701896.290) (148d29'26.84"E, 20d46'34.32"S)
Lower Left  (  655179.380, 7621895.290) (148d29'52.92"E, 21d29'55.68"S)
Upper Right (  735180.380, 7701896.290) (149d15'32.31"E, 20d46'4.13"S)
Lower Right (  735180.380, 7621895.290) (149d16'11.81"E, 21d29'24.34"S)
Center  (  695179.880, 7661895.790) (148d52'45.97"E, 21d 8'1.22"S)
Band 1 Block=53334x1 Type=Byte, ColorInterp=Red
  Overviews: arbitrary
Band 2 Block=53334x1 Type=Byte, ColorInterp=Green
  Overviews: arbitrary
Band 3 Block=53334x1 Type=Byte, ColorInterp=Blue
  Overviews: arbitrary


I have a vector layer which was a tab file with the projection AMG Zone
55(AGD 84).  This was loaded into postgis with ogr2ogr using these options
ogr2ogr -overwrite -f "PostgreSQL" PG:"" thefile.tab -nln
t_table -lco "GEOMETRY_NAME=the_geom" -t_srs EPSG:4326 -skipfailures.  I
have done this before on different installations and it usually gives me a
table where srid =4326 however in this case it is giving me a newly created
srid = 32772 (this installation is different in that we are using postgres
8.3 and ms4w 2.2.7).  I have checked and as far as I can tell this layer is
being displayed correctly.

here are the relevant layers from my mapfile

LAYER
  NAME "Photography_2003"
  GROUP "Photography_2003"
  DATA "mackay/Images/aerial_photo_2003.ecw"
  TYPE RASTER
  STATUS ON
  PROJECTION
"init=epsg:20355"
  END
  METADATA
"DESCRIPTION""Photography 2003"
  END
END

And

  LAYER
NAME "Paddocks"
GROUP "Paddocks"
STATUS ON
DATA "the_geom from t_the_table using unique oid using SRID=32772"
TYPE POLYGON
CONNECTIONTYPE postgis
CONNECTION ""
MAXSCALE 200
CLASS
  NAME "Paddock"
  STYLE
ANGLE 120
WIDTH 1
SIZE 13
COLOR 0 128 0
OUTLINECOLOR 0 128 0
SYMBOL "hatched"
  END
END
  END

Any help would be appreciated.

Gabriel


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

  


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


[mapserver-users] Re: [mapserver-dev] Build with AGG support at windows

2008-03-27 Thread thomas bonfort
Johan:

* you're posting to the devellopment mailing list which is a low
traffic list aimed at working on the internals of mapserver. your
message belongs to the users mailing list (which I've forwarded it to)
* be specific if you want people to be able to help. I happen to know
your architecture, but others don't:
  - your question is how to build on a *windows* platform
  - the version you're trying to build is *trunk*

please keep these recommendations in mind for your next messages.

cheers,
thomas

--
Thomas Bonfort

Camptocamp France SAS
Tel : +33 (0)4 79 26 57 97
thomas dot bonfort at camptocamp dot com
http://www.camptocamp.com
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Rép. : [mapserver-users] Problem crea ting WMS

2008-03-27 Thread SIMON MERCIER
Hi bernardo
for your layer, you need a "wms_name"... to use a getFeatureInfo you
need to add (DUMP TRUE) and (TEMPLATE "../templates/todo.html")... the
html file dont need to exist...!  it's a good idea to specify a
TOLERENCE to restrict the search in the map... and use
"gml_include_items" and "ows_exclude_items" in metadata..  if you work
with a RDBMS(postgis or Oracle) dont forget to add your primary key
field off your feature class( ... USING UNIQUE ID ...  ) in your DATA
tag layer... good luck 
 
   LAYER
NAME "LEP_V_MUNICIPALITE_GEO"
GROUP "DGEQ"
CONNECTIONTYPE oraclespatial
CONNECTION "{..}"
PROCESSING "CLOSE_CONNECTION=DEFER"
DATA "geom_s FROM ADMGEO1.LEP_V_MUNICIPALITE_GEO USING UNIQUE
ID SRID 32198"
TYPE POLYGON
DUMP TRUE
TEMPLATE "../templates/todo.html"
TOLERANCE 10
TOLERANCEUNITS PIXELS
MAXSCALE 70
MINSCALE 1
LABELMAXSCALE 20
LABELMINSCALE 1
LABELITEM "NM_MUNCP"
METADATA
"wms_group_title"   "Référentiel d'adresse"
"wms_name"  "LEP_V_MUNICIPALITE_GEO"
"wms_title" "Municipalité"
"wms_keywordlist"   ""
"wms_server_version""1.1.1"
"wms_abstract"  "(1/700 000)"
"wms_srs"   "EPSG:2036 EPSG:2037 EPSG:2148
EPSG:2149 EPSG:2150 EPSG:4269 EPSG:4326 EPSG:26917 EPSG:26918 EPSG:26919
EPSG:26920 EPSG:32183 EPSG:32184 EPSG:32185 EPSG:32186 EPSG:32187
EPSG:32188 EPSG:32189 EPSG:32190 EPSG:32198 EPSG:42105 EPSG:42304"
"wms_extent""-110 -23500 110 2253500"
"gml_include_items" "all"
"gml_exclude_items" "ID" 
"ows_include_items" "all" 
"ows_exclude_items" "ID" 
END
PROJECTION
"init=epsg:32198"
END
CLASS
NAME "Municipalité"
LABEL
OUTLINECOLOR 235 235 235#--Halo
TYPE TRUETYPE
FONT "vera"
SIZE 8
POSITION AUTO
COLOR 123 104 238
MINDISTANCE 5
BUFFER 10
END
STYLE
SYMBOL 'line_solid'
OUTLINECOLOR 123 104 238
SIZE 1
END
END
END
 
Simon mercier
Ministère de la Sécurité publique

>>> "bernardo" <[EMAIL PROTECTED]> 25/3/2008 18:35 >>>

Hello all:
 
I'm trying to create a WMS, but i need to use it with a client named
"gvSIG". This program cannot read feature info in type "text/html", only
"gml"
 
   METADATA
  "wms_title"   "Layer"
  "wms_srs" "EPSG:23030"
  "wms_abstract" "Layer"
  "wms_feature_info_mime_type"  "gml"
  #"wms_feature_info_mime_type"  "text/html"
  END
 
That i wanna do is to show a web page or url for "feature info".
 
Any ideas?
 
Bernardo Martín García
Director Técnico 
iNCARGiS, C.I.G., S.L. 

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


Re: [mapserver-users] upload/stream data from GPS unit?

2008-03-27 Thread Bill Wordsworth
Please let's not hijack my poor thread :)! Anyway, here's my original
question:

"How can I upload/stream near-real-time GPS data from on-site to
webserver/MapServer (MapServer 5.x can read *.gpx)?"

I've been referred to http://franson.com/gpsgate/ from the usenet groups. I
am looking for something with WPA.
Cheers, Bill
On Wed, Mar 26, 2008 at 11:39 AM, Carlos Pinto <[EMAIL PROTECTED]> wrote:

>
> Hi all,
>
> I'm new in MapServer and I'm using Openlayers that can be a client of
> MapServer.
>
> What I'm trying to set-up is a grid that is in GML file. And I want
> MapServer to build the layer reading the GML file and give it to OpenLayers
> (javascript API) would read it as WMS.
>
> I have instaled MapServer in C#  so I'm using MapScript. Is this possible?
>
> Thanks
>
> Carlos
>
> ___
> mapserver-users mailing list
> mapserver-users@lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users


 On Wed, Mar 26, 2008 at 11:25 AM, Bill Wordsworth <
[EMAIL PROTECTED]> wrote:

>  How can I upload/stream near-real-time GPS data from on-site to
> webserver/MapServer (MapServer 5.x can read *.gpx)?
> Cheers, Bill
>
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] upload/stream data from GPS unit?

2008-03-27 Thread Stephen Woodbridge

Bill,

There are probably many solutions available depending on the various 
technical components that you might have in the solution. One possible 
solution might be something along these lines:


1) stream data to some service that you probably have to build
2) have said service load the points into a postgres/postgis database
3) create a mapfile with a LAYER to disply the data from postgis
4) Use a client like OpenLayers to render you map from mapserver
5) add a timer event to refresh your map every X secs

-Steve W
 http://imaptools.com/

Bill Wordsworth wrote:
Please let's not hijack my poor thread :)! Anyway, here's my original 
question:
 
"How can I upload/stream near-real-time GPS data from on-site to 
webserver/MapServer (MapServer 5.x can read *.gpx)?"
 
I've been referred to http://franson.com/gpsgate/ from the usenet 
groups. I am looking for something with WPA.

Cheers, Bill
On Wed, Mar 26, 2008 at 11:39 AM, Carlos Pinto <[EMAIL PROTECTED] 
> wrote:



Hi all,

I'm new in MapServer and I'm using Openlayers that can be a client
of MapServer.

What I'm trying to set-up is a grid that is in GML file. And I want
MapServer to build the layer reading the GML file and give it to
OpenLayers (javascript API) would read it as WMS.

I have instaled MapServer in C#  so I'm using MapScript. Is this
possible?

Thanks

Carlos

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

 
On Wed, Mar 26, 2008 at 11:25 AM, Bill Wordsworth 
<[EMAIL PROTECTED] > wrote:


How can I upload/stream near-real-time GPS data from on-site to
webserver/MapServer (MapServer 5.x can read *.gpx)?
Cheers, Bill




___
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] MapServer 4.8.3: MapScript setProjection

2008-03-27 Thread Simon Greig
Hi,

This is a follow up to a question a colleague asked a few weeks ago:
http://lists.osgeo.org/pipermail/mapserver-users/2008-March/054772.html

To summarise:

In order to improve performance in our java application that uses the 
mapscript API we have replaced:

mapobj.setProjection("init=epsg:27700");

with

private static final String PROJECTION_WK_EPSG_27700 = "PROJCS[\"OSGB 1936 
/ British National Grid\",GEOGCS[\"OSGB 
1936\",DATUM[\"OSGB_1936\",SPHEROID[\"Airy 
1830\",6377563.396,299.3249646,AUTHORITY[\"EPSG\",\"7001\"]],AUTHORITY[\"EPSG\",\"6277\"]],PRIMEM[\"Greenwich\",0,AUTHORITY[\"EPSG\",\"8901\"]],UNIT[\"degree\",0.01745329251994328,AUTHORITY[\"EPSG\",\"9122\"]],AUTHORITY[\"EPSG\",\"4277\"]],UNIT[\"metre\",1,AUTHORITY[\"EPSG\",\"9001\"]],PROJECTION[\"Transverse_Mercator\"],PARAMETER[\"latitude_of_origin\",49],PARAMETER[\"central_meridian\",-2],PARAMETER[\"scale_factor\",0.9996012717],PARAMETER[\"false_easting\",40],PARAMETER[\"false_northing\",-10],AUTHORITY[\"EPSG\",\"27700\"]]";

...

mapobj.setWKTProjection(PROJECTION_WK_EPSG_27700);


We have also changed the code to use the WKT projection method for each 
layer.

As Rob says the performance improvement is way better and we thought we 
had a winner. 
Unfortunately we have a problem based on the size of the image and 
bounding box. 

If we ask for a small bounding box (roughly 1 mile by 1 mile) with a 
1000x800 PNG image then it works
If we ask for a large bounding box (roughly 500 miles by 500 miles) with a 
200x200 PNG image then it works
If we ask for a large bounding box with a 300x300 PNG image then we get 
this error:

"Layer must have an EPSG or AUTO projection code (in its PROJECTION object 
or wms_srs metadata)"


Unfortunately Rob is on leave and I am looking after things in his 
absence.  Any help is much appreciated :-)






Unless stated otherwise above:
IBM United Kingdom Limited - Registered in England and Wales with number 
741598. 
Registered office: PO Box 41, North Harbour, Portsmouth, Hampshire PO6 3AU





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


Re: Rép. : [mapserver-users] Pr oblem creating WMS

2008-03-27 Thread Daniel Morissette
There seems to be lots of confusion around wms_name these days... just 
to clarify: when setting up a WMS service, it is the layer's NAME member 
that is used as the name in the GetCapabilities output. The wms_name 
metadata has no effect on WMS servers, it is a WMS client (i.e. 
CONNECTIONTYPE WMS) parameter only.


Daniel


SIMON MERCIER wrote:

Hi bernardo
for your layer, you need a "wms_name"... to use a getFeatureInfo you 
need to add (DUMP TRUE) and (TEMPLATE "../templates/todo.html")... the 
html file dont need to exist...!  it's a good idea to specify a 
TOLERENCE to restrict the search in the map... and use 
"gml_include_items" and "ows_exclude_items" in metadata..  if you work 
with a RDBMS(postgis or Oracle) dont forget to add your primary key 
field off your feature class( ... USING UNIQUE ID ...  ) in your DATA 
tag layer... good luck 
 
   LAYER

NAME "LEP_V_MUNICIPALITE_GEO"
GROUP "DGEQ"
CONNECTIONTYPE oraclespatial
CONNECTION "{..}"
PROCESSING "CLOSE_CONNECTION=DEFER"
DATA "geom_s FROM ADMGEO1.LEP_V_MUNICIPALITE_GEO USING UNIQUE ID 
SRID 32198"

TYPE POLYGON
DUMP TRUE
TEMPLATE "../templates/todo.html"
TOLERANCE 10
TOLERANCEUNITS PIXELS
MAXSCALE 70
MINSCALE 1
LABELMAXSCALE 20
LABELMINSCALE 1
LABELITEM "NM_MUNCP"
METADATA
"wms_group_title"   "Référentiel d'adresse"
"wms_name"  "LEP_V_MUNICIPALITE_GEO"
"wms_title" "Municipalité"
"wms_keywordlist"   ""
"wms_server_version""1.1.1"
"wms_abstract"  "(1/700 000)"
"wms_srs"   "EPSG:2036 EPSG:2037 EPSG:2148 
EPSG:2149 EPSG:2150 EPSG:4269 EPSG:4326 EPSG:26917 EPSG:26918 EPSG:26919 
EPSG:26920 EPSG:32183 EPSG:32184 EPSG:32185 EPSG:32186 EPSG:32187 
EPSG:32188 EPSG:32189 EPSG:32190 EPSG:32198 EPSG:42105 EPSG:42304"

"wms_extent""-110 -23500 110 2253500"
"gml_include_items" "all"
"gml_exclude_items" "ID"
"ows_include_items" "all"
"ows_exclude_items" "ID"
END
PROJECTION
"init=epsg:32198"
END
CLASS
NAME "Municipalité"
LABEL
OUTLINECOLOR 235 235 235#--Halo
TYPE TRUETYPE
FONT "vera"
SIZE 8
POSITION AUTO
COLOR 123 104 238
MINDISTANCE 5
BUFFER 10
END
STYLE
SYMBOL 'line_solid'
OUTLINECOLOR 123 104 238
SIZE 1
END
END
END
 
Simon mercier

Ministère de la Sécurité publique


 >>> "bernardo" <[EMAIL PROTECTED]> 25/3/2008 18:35 >>>
Hello all:
 
I'm trying to create a WMS, but i need to use it with a client named 
"gvSIG". This program cannot read feature info in type "text/html", only 
"gml"
 
   METADATA

  "wms_title"   "Layer"
  "wms_srs" "EPSG:23030"
  "wms_abstract" "Layer"
  "wms_feature_info_mime_type"  "gml"
  #"wms_feature_info_mime_type"  "text/html"
  END
 
That i wanna do is to show a web page or url for "feature info".
 
Any ideas?
 
Bernardo Martín García

Director Técnico
iNCARGiS, C.I.G., S.L.




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



--
Daniel Morissette
http://www.mapgears.com/
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] upload/stream data from GPS unit?

2008-03-27 Thread Bill Wordsworth
Thanks Steve. I am clear about the mapping part. I am not so sure about
streaming/uploading near-real-time GPS data from on-site to webserver across
WPA?
Cheers, Bill
On Thu, Mar 27, 2008 at 3:10 PM, Stephen Woodbridge <[EMAIL PROTECTED]>
wrote:

> Bill,
>
> There are probably many solutions available depending on the various
> technical components that you might have in the solution. One possible
> solution might be something along these lines:
>
> 1) stream data to some service that you probably have to build
> 2) have said service load the points into a postgres/postgis database
> 3) create a mapfile with a LAYER to disply the data from postgis
> 4) Use a client like OpenLayers to render you map from mapserver
> 5) add a timer event to refresh your map every X secs
>
> -Steve W
>  http://imaptools.com/
>
> Bill Wordsworth wrote:
> > Please let's not hijack my poor thread :)! Anyway, here's my original
> > question:
> >
> > "How can I upload/stream near-real-time GPS data from on-site to
> > webserver/MapServer (MapServer 5.x can read *.gpx)?"
> >
> > I've been referred to http://franson.com/gpsgate/ from the usenet
> > groups. I am looking for something with WPA.
> > Cheers, Bill
> > On Wed, Mar 26, 2008 at 11:39 AM, Carlos Pinto <[EMAIL PROTECTED]
> > > wrote:
> >
> >
> > Hi all,
> >
> > I'm new in MapServer and I'm using Openlayers that can be a client
> > of MapServer.
> >
> > What I'm trying to set-up is a grid that is in GML file. And I want
> > MapServer to build the layer reading the GML file and give it to
> > OpenLayers (javascript API) would read it as WMS.
> >
> > I have instaled MapServer in C#  so I'm using MapScript. Is this
> > possible?
> >
> > Thanks
> >
> > Carlos
> >
> > ___
> > mapserver-users mailing list
> > mapserver-users@lists.osgeo.org  mapserver-users@lists.osgeo.org>
> > http://lists.osgeo.org/mailman/listinfo/mapserver-users
> >
> >
> > On Wed, Mar 26, 2008 at 11:25 AM, Bill Wordsworth
> > <[EMAIL PROTECTED] > wrote:
> >
> > How can I upload/stream near-real-time GPS data from on-site to
> > webserver/MapServer (MapServer 5.x can read *.gpx)?
> > Cheers, Bill
> >
> >
> > 
>  >
> > ___
> > 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 4.8.3: MapScript setProjection

2008-03-27 Thread Daniel Morissette

Simon Greig wrote:


If we ask for a large bounding box with a 300x300 PNG image then we get 
this error:


"Layer must have an EPSG or AUTO projection code (in its PROJECTION 
object or wms_srs metadata)"





Sounds like you may have a layer which uses CONNECTIONTYPE WMS. This is 
a layer that is actually a connection to a remote WMS service, and one 
of the things MapServer needs to know in order to build a succesful 
GetMap request to that remote server is the SRS supported by that server.


The simple fix should be to add the following metadata entry in that layer:

LAYER
  ...
  METADATA
"wms_srs" "EPSG:27700"
...
  END
  ...
END

There is no way around using EPSG codes with WMS connections... you have 
to use them, that's part of the protocol.


Also, your use of WKT projections instead of EPSG codes for the 
top-level PROJECTION in the mapfile is probably going to defeat 
MapServer's ability to detect that the layer projection and the oputput 
map projection are the same and will probably result in the on-the-fly 
reprojection code kicking in for that WMS layer and causing a 
performance hit.


Since you are using WMS services in some of your layers then you may be 
better use an "init=epsg:27700" definition for the top-level projection 
block in your mapfile (and move that definition to the top of the epsg 
file to reduce the performance hit). This way MapServer will detect that 
the is in the same projection as the output map and no reprojection of 
the WMS GetMap image will happen.


You also wrote that you set a projection on all your layers. This may 
not be necessary if the data in all layers is already in the same 
projection as the output map, and actually, you are better not set a 
projection on your layers unless you really need one, otherwise the 
reprojection code may kick in to reproject the data in all layers from 
the WKT projection to EPSG:27700 which are really the same things and 
don't require reprojection.


The reprojection of layer data happens only if (1) the map has a 
projection set and (2) the layer has a projection set and (3) the two 
projection definitions are not identical. The test to detect identical 
projections if fairly simplistic and will be unable to detect that your 
WKT definition is identical to EPSG:27700 ... that's why mixing both 
definition types will defeat MapServer and result in unnecessary 
reprojection of layer data.


I hope that makes some sense and doesn't just add to the confusion...

Daniel
--
Daniel Morissette
http://www.mapgears.com/
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] upload/stream data from GPS unit?

2008-03-27 Thread Brent Fraser
Bill,

  Maybe.  It depends what your expectations are with respect
to Near-Real-Time.  Mapserver can support GDAL/OGR layers if
Mapserver is built with GDAL+Expat (not uncommon, but my
version isn't built with Expat).  I think the layer
definition might look something like:

LAYER
NAME "gps"
TYPE point
STATUS DEFAULT
CONNECTIONTYPE OGR
CONNECTION "mygps.gpx"
CLASS
STYLE
COLOR 0 0 255
END
END
END

Hopefully (!) there won't be any file access problems if
your GPS s/w is creating the gpx file the same time
Mapserver/GDAL is trying to read it.

We implemented a tracking system a few years ago by writing
a program to insert/update positions (received every 30
minutes per gps unit by email) into a PostgreSQL database
and have Mapserver read the positions from there.  Using a
relational database avoids the file locking problem and
provided a few other benefits.

Another limitation of Mapserver is the fact that is doesn't
push any data to the end application (e.g. browser, WMS/WFS
client) until it is requested.  For example if you show a
raster map in a browser and don't refresh it for an hour,
your positions as displayed in the browser are an hour old.
Of course it is possible to code some html/javascript to
request a new map every so often.

If your main interest is in how to get the positions from
the GPS receivers into a database, as far as I know there
are no open standards used directly by the GPS vendors.  One
open project is http://www.opendmtp.org/.  Another effort is
the Ham radio APRS (while the radio part is for
non-commercial use only, you might be able to use some the
ideas in the upper levels of the protocol). In any case,
you'll likely need to do some programming/scripting...

Brent Fraser
GeoAnalytic Inc.
Calgary, Alberta

- Original Message - 
From: "Bill Wordsworth" <[EMAIL PROTECTED]>
To: 
Sent: Thursday, March 27, 2008 11:52 AM
Subject: Re: [mapserver-users] upload/stream data from GPS
unit?


> Please let's not hijack my poor thread :)! Anyway, here's
my original
> question:
>
> "How can I upload/stream near-real-time GPS data from
on-site to
> webserver/MapServer (MapServer 5.x can read *.gpx)?"
>
> I've been referred to http://franson.com/gpsgate/ from the
usenet groups. I
> am looking for something with WPA.
> Cheers, Bill
> On Wed, Mar 26, 2008 at 11:39 AM, Carlos Pinto
<[EMAIL PROTECTED]> wrote:
>
> >
> > Hi all,
> >
> > I'm new in MapServer and I'm using Openlayers that can
be a client of
> > MapServer.
> >
> > What I'm trying to set-up is a grid that is in GML file.
And I want
> > MapServer to build the layer reading the GML file and
give it to OpenLayers
> > (javascript API) would read it as WMS.
> >
> > I have instaled MapServer in C#  so I'm using MapScript.
Is this possible?
> >
> > Thanks
> >
> > Carlos
> >
> > ___
> > mapserver-users mailing list
> > mapserver-users@lists.osgeo.org
> > http://lists.osgeo.org/mailman/listinfo/mapserver-users
>
>
>  On Wed, Mar 26, 2008 at 11:25 AM, Bill Wordsworth <
> [EMAIL PROTECTED]> wrote:
>
> >  How can I upload/stream near-real-time GPS data from
on-site to
> > webserver/MapServer (MapServer 5.x can read *.gpx)?
> > Cheers, Bill
> >
>






> ___
> 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] upload/stream data from GPS unit?

2008-03-27 Thread Ken S. Elvehjem
Bill,

Am still not particularly proficient with MapServer to help with the "how" -- 
instead, I'm curious about the "how near" real time.  Within 10 seconds or 10 
minutes?  

Also,  how much data?  if it is just x,y,z info  could you have the machine 
that's reading the GPS append points to a (say) ShapeFile, and send the whole 
thing?  This would work if your ShapeFile held the last couple of hundred 
points;  Then it might be possible to display those points + another layer that 
would have an accumulation of the points, and a process on the server that 
would append the newest points to the accumulated file.

I'll confess to being more than a little curious about what you are doing...

Ken




  - Original Message - 
  From: Bill Wordsworth 
  To: mapserver-users@lists.osgeo.org 
  Sent: Thursday, March 27, 2008 1:21 PM
  Subject: Re: [mapserver-users] upload/stream data from GPS unit?


  Thanks Steve. I am clear about the mapping part. I am not so sure about 
streaming/uploading near-real-time GPS data from on-site to webserver across 
WPA?
  Cheers, Bill

  On Thu, Mar 27, 2008 at 3:10 PM, Stephen Woodbridge <[EMAIL PROTECTED]> wrote:

Bill,

There are probably many solutions available depending on the various
technical components that you might have in the solution. One possible
solution might be something along these lines:

1) stream data to some service that you probably have to build
2) have said service load the points into a postgres/postgis database
3) create a mapfile with a LAYER to disply the data from postgis
4) Use a client like OpenLayers to render you map from mapserver
5) add a timer event to refresh your map every X secs

-Steve W
 http://imaptools.com/


Bill Wordsworth wrote:
> Please let's not hijack my poor thread :)! Anyway, here's my original
> question:
>
> "How can I upload/stream near-real-time GPS data from on-site to
> webserver/MapServer (MapServer 5.x can read *.gpx)?"
>
> I've been referred to http://franson.com/gpsgate/ from the usenet
> groups. I am looking for something with WPA.
> Cheers, Bill
> On Wed, Mar 26, 2008 at 11:39 AM, Carlos Pinto <[EMAIL PROTECTED]

> > wrote:
>
>
> Hi all,
>
> I'm new in MapServer and I'm using Openlayers that can be a client
> of MapServer.
>
> What I'm trying to set-up is a grid that is in GML file. And I want
> MapServer to build the layer reading the GML file and give it to
> OpenLayers (javascript API) would read it as WMS.
>
> I have instaled MapServer in C#  so I'm using MapScript. Is this
> possible?
>
> Thanks
>
> Carlos
>
> ___
> mapserver-users mailing list

> mapserver-users@lists.osgeo.org 


> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>
>
> On Wed, Mar 26, 2008 at 11:25 AM, Bill Wordsworth

> <[EMAIL PROTECTED] > wrote:
>
> How can I upload/stream near-real-time GPS data from on-site to
> webserver/MapServer (MapServer 5.x can read *.gpx)?
> Cheers, Bill
>
>

> 

>
> ___
> 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] upload/stream data from GPS unit?

2008-03-27 Thread Fawcett, David
My guess is that you will need some sort of device to log the data from
the GPS and then transmit it across a wireless network (pager, SMS, cell
phone).  At your base station, you would have capture the messages,
parse them, and then probably stuff the data into a database (PostGIS?).

 
Your MapServer map file could then point to the spatial data layer in
PostGIS.  Every hit to MapServer would show the latest data.  
 
David.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Bill
Wordsworth
Sent: Thursday, March 27, 2008 12:52 PM
To: mapserver-users@lists.osgeo.org
Subject: Re: [mapserver-users] upload/stream data from GPS unit?


Please let's not hijack my poor thread :)! Anyway, here's my
original question:
 
"How can I upload/stream near-real-time GPS data from on-site to
webserver/MapServer (MapServer 5.x can read *.gpx)?"
 
I've been referred to http://franson.com/gpsgate/ from the
usenet groups. I am looking for something with WPA.
Cheers, Bill

On Wed, Mar 26, 2008 at 11:39 AM, Carlos Pinto
<[EMAIL PROTECTED]> wrote:



Hi all, 

I'm new in MapServer and I'm using Openlayers that can
be a client of MapServer. 

What I'm trying to set-up is a grid that is in GML file.
And I want MapServer to build the layer reading the GML file and give it
to OpenLayers (javascript API) would read it as WMS. 

I have instaled MapServer in C#  so I'm using MapScript.
Is this possible?

Thanks

Carlos

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

 
On Wed, Mar 26, 2008 at 11:25 AM, Bill Wordsworth
<[EMAIL PROTECTED]> wrote:


How can I upload/stream near-real-time GPS data from
on-site to webserver/MapServer (MapServer 5.x can read *.gpx)?
Cheers, Bill

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


Re: [mapserver-users] upload/stream data from GPS unit?

2008-03-27 Thread Jeshua Lacock


On Mar 27, 2008, at 12:43 PM, Fawcett, David wrote:
My guess is that you will need some sort of device to log the data  
from the GPS and then transmit it across a wireless network (pager,  
SMS, cell phone).  At your base station, you would have capture the  
messages, parse them, and then probably stuff the data into a  
database (PostGIS?).


Your MapServer map file could then point to the spatial data layer  
in PostGIS.  Every hit to MapServer would show the latest data.


Bill,

I would just like to mention that if help with automating this is  
needed, I could easily develop a solution for Mac OS X.


GIS automation on the Mac is my specialty. ;)


Cheers,

Jeshua Lacock, Owner

phone: 877.240.1364

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


Re: [mapserver-users] upload/stream data from GPS unit?

2008-03-27 Thread Stephen Woodbridge

Bill Wordsworth wrote:
Thanks Steve. I am clear about the mapping part. I am not so sure about 
streaming/uploading near-real-time GPS data from on-site to webserver 
across WPA?


I can not speak to WPA, I'm not sure I know that protocol, but if have a 
cell phone that that can do HTTP GET requests to a server, you can 
trivially write a php page the gets the url and writes the fields to a 
database and have mapserver display that. So that is pretty real-time.


So you phone would ping a url like 
http://yourserver.com/track.php?lat=&lon=&device=&...


And then write a track.php to fetch the paramaters and stuff them into 
the DB.


-Steve W


Cheers, Bill
On Thu, Mar 27, 2008 at 3:10 PM, Stephen Woodbridge 
<[EMAIL PROTECTED] > wrote:


Bill,

There are probably many solutions available depending on the various
technical components that you might have in the solution. One possible
solution might be something along these lines:

1) stream data to some service that you probably have to build
2) have said service load the points into a postgres/postgis database
3) create a mapfile with a LAYER to disply the data from postgis
4) Use a client like OpenLayers to render you map from mapserver
5) add a timer event to refresh your map every X secs

-Steve W
 http://imaptools.com/

Bill Wordsworth wrote:
 > Please let's not hijack my poor thread :)! Anyway, here's my original
 > question:
 >
 > "How can I upload/stream near-real-time GPS data from on-site to
 > webserver/MapServer (MapServer 5.x can read *.gpx)?"
 >
 > I've been referred to http://franson.com/gpsgate/ from the usenet
 > groups. I am looking for something with WPA.
 > Cheers, Bill
 > On Wed, Mar 26, 2008 at 11:39 AM, Carlos Pinto
<[EMAIL PROTECTED] 
 > >> wrote:
 >
 >
 > Hi all,
 >
 > I'm new in MapServer and I'm using Openlayers that can be a
client
 > of MapServer.
 >
 > What I'm trying to set-up is a grid that is in GML file. And
I want
 > MapServer to build the layer reading the GML file and give it to
 > OpenLayers (javascript API) would read it as WMS.
 >
 > I have instaled MapServer in C#  so I'm using MapScript. Is this
 > possible?
 >
 > Thanks
 >
 > Carlos
 >
 > ___
 > mapserver-users mailing list
 > mapserver-users@lists.osgeo.org

>
 > http://lists.osgeo.org/mailman/listinfo/mapserver-users
 >
 >
 > On Wed, Mar 26, 2008 at 11:25 AM, Bill Wordsworth
 > <[EMAIL PROTECTED] 
>> wrote:
 >
 > How can I upload/stream near-real-time GPS data from on-site to
 > webserver/MapServer (MapServer 5.x can read *.gpx)?
 > Cheers, Bill
 >
 >
 >

 >
 > ___
 > mapserver-users mailing list
 > mapserver-users@lists.osgeo.org

 > http://lists.osgeo.org/mailman/listinfo/mapserver-users




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


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


Re: [mapserver-users] MapServer 4.8.3: MapScript setProjection

2008-03-27 Thread Frank Warmerdam

Simon Greig wrote:

Hi,

This is a follow up to a question a colleague asked a few weeks ago:
http://lists.osgeo.org/pipermail/mapserver-users/2008-March/054772.html

To summarise:

In order to improve performance in our java application that uses the 
mapscript API we have replaced:


mapobj.setProjection("init=epsg:27700");

with

private static final String PROJECTION_WK_EPSG_27700 = "PROJCS[\"OSGB 1936 
/ British National Grid\",GEOGCS[\"OSGB 
1936\",DATUM[\"OSGB_1936\",SPHEROID[\"Airy 
1830\",6377563.396,299.3249646,AUTHORITY[\"EPSG\",\"7001\"]],AUTHORITY[\"EPSG\",\"6277\"]],PRIMEM[\"Greenwich\",0,AUTHORITY[\"EPSG\",\"8901\"]],UNIT[\"degree\",0.01745329251994328,AUTHORITY[\"EPSG\",\"9122\"]],AUTHORITY[\"EPSG\",\"4277\"]],UNIT[\"metre\",1,AUTHORITY[\"EPSG\",\"9001\"]],PROJECTION[\"Transverse_Mercator\"],PARAMETER[\"latitude_of_origin\",49],PARAMETER[\"central_meridian\",-2],PARAMETER[\"scale_factor\",0.9996012717],PARAMETER[\"false_easting\",40],PARAMETER[\"false_northing\",-10],AUTHORITY[\"EPSG\",\"27700\"]]";


...

mapobj.setWKTProjection(PROJECTION_WK_EPSG_27700);


We have also changed the code to use the WKT projection method for each 
layer.


As Rob says the performance improvement is way better and we thought we 
had a winner. 
Unfortunately we have a problem based on the size of the image and 
bounding box. 

If we ask for a small bounding box (roughly 1 mile by 1 mile) with a 
1000x800 PNG image then it works
If we ask for a large bounding box (roughly 500 miles by 500 miles) with a 
200x200 PNG image then it works
If we ask for a large bounding box with a 300x300 PNG image then we get 
this error:


"Layer must have an EPSG or AUTO projection code (in its PROJECTION object 
or wms_srs metadata)"



Unfortunately Rob is on leave and I am looking after things in his 
absence.  Any help is much appreciated :-)


Simon,

I'm not sure what is going on here exactly.  I *suspect* that your bigger
window is the first time some of this data is getting pulled in but I'm not
sure.  Do you still set the corresponding epsg code in the wms_srs metadata?

It may be that you could skip the WKT operations and just re-order the
epsg init file so that 27700 is at the top to get equally good speed up
with lets side effects.

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] upload/stream data from GPS unit?

2008-03-27 Thread Brent Wood
 
> On Mar 27, 2008, at 12:43 PM, Fawcett, David wrote:
> My guess is that you will need some sort of device to log the data  
> from the GPS and then transmit it across a wireless network (pager,  
> SMS, cell phone).  At your base station, you would have capture the  
> messages, parse them, and then probably stuff the data into a  
> database (PostGIS?).
>
> Your MapServer map file could then point to the spatial data layer  
> in PostGIS.  Every hit to MapServer would show the latest data.


This is exactly the approach I have taken in providing similar data showing
vessel movements & track. It works well.

Database views & queries provide a simple latest (ie, current) position as well
as easily permitting automated building of objects like daily paths, etc, for
long term warehousing of conveniently packaged path data.


Cheers,

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


Re: [MAPSERVER-USERS] CLOSE_CONNECTION=DEFER - Segmentation fault

2008-03-27 Thread Carlos_Molina


Dave Fuhry wrote:
> 
> Ivan,
> 
>p.mapper seems to use the typical php
> {map,layer}Obj_queryBy{Point,Rect,etc.} functions.  These calls end up
> calling the same msPOSTGIS* functions as everything else.
> 
>I can't seem to reproduce your problem with a simple testcase
> (basically, the attached files).  It might help if you can set
> log_min_duration_statement = 0 in your postgresql.conf, reproduce the
> problem, and send the output from your postgresql log file.  It will
> show all commands issued to the database, including the BEGIN, and the
> DECLARE CURSOR ..., and FETCH for every layer.
> 
>I can setup p.mapper if that's necessary to reproduce the problem.
> 
>   (By the way, I assume you're not using an ancient version of
> postgis, in the 0.5 - 0.6 era.  There is an alternate codepath for
> that, which I have not tested.)
> 
> Thanks,
> 
> Dave
> 

Hello Dave,

I've tried first and second version of your patch and both resolved my first
issue of many many BEGIN statements being issued by cursors so my
application went back to running smoothly. The sad part is that another
issued arised from this patch and It's when using python mapscript and the
drawQuery call. 
If i just render my .map file with draw() I get no trouble, but if I open my
map file, get a single layer from it, query the layer, open the layer to
retrieve results and call drawQuery() afterwards to render everything like I
used to do before the patch, I get the following error(I resumed the sql
statements):

BEGIN
DECLARE mycursor BINARY CURSOR FOR SELECT...  // queryByPoint
FETCH ALL in mycursor
CLOSE mycursor
SELECT * FROM... "same as above" WHILE false LIMIT 0 // Dont know why this
is issued, might be openLayer or just to get the field names of the table
WARNING:  there is already a transaction in progress
BEGIN
DECLARE mycursor2 BINARY CURSOR FOR SELECT... // getShape(0)
FETCH ALL in mycursor2
CLOSE mycursor2
ROLLBACK
BEGIN
DECLARE mycursor2 BINARY CURSOR FOR SELECT... // getShape(1)
FETCH ALL in mycursor2
CLOSE mycursor2
ROLLBACK
ERROR:  DECLARE CURSOR may only be used in transaction blocks
WARNING:  there is no transaction in progress
statement: rollback
statement: begin
ERROR:  cursor "mycursor" does not exist
ABORT

Regards

Carlos Molina
-- 
View this message in context: 
http://www.nabble.com/CLOSE_CONNECTION%3DDEFERSegmentation-fault-tp15786741p16333076.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: AW: [MAPSERVER-USERS] Hiding overviews

2008-03-27 Thread Pål Kristensen

Thanks!

I really appreciate the quick response, and the effort you developers put in
to meet the needs of the MapServer community users. 

Regards,
Pål Kristensen


Daniel Morissette-2 wrote:
> 
> 
> FYI I have created a ticket for this:
> http://trac.osgeo.org/mapserver/ticket/2562
> 
> I can't commit this to SVN right now (I'm in the middle of other changes 
> in my source tree) but will try to get back at it ASAP.
> 
> Daniel
> -- 
> Daniel Morissette
> http://www.mapgears.com/
> ___
> mapserver-users mailing list
> mapserver-users@lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Hiding-overviews-tp15845320p16335723.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] Polygon labeling

2008-03-27 Thread Thomas Campitelli
Howdy Folks,

I would like to label the polygons in my map, however none of the labels seem 
to fall within my polygons. Instead, they are labeled outside of each shape. I 
am displaying the polygons as lines in the map. Is that my problem? If so, how 
do I get around it. I have no wish to fill my polygons with color. Thanks in 
advance for any help. The relevant portion of my map file is shown below:

LAYER # Counties polygon layer begins here
  
NAME CountyLine
DATA pgn_ca_county
STATUS   DEFAULT
TYPE LINE

LABELITEM"Name"


 CLASS
NAME   "County Boundary"
STYLE
  COLOR0 115 76
  WIDTH1
END
  
  
  LABEL# Labeling Test
COLOR 132 31 31
#SHADOWCOLOR 218 218 218
#SHADOWSIZE 2 2
TYPE TRUETYPE
FONT arial
SIZE 8
ANTIALIAS TRUE
POSITION AUTO
PARTIALS FALSE
MINDISTANCE 200
BUFFER 4
END 
END
END




  

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] Polygon labeling

2008-03-27 Thread Stephen Woodbridge

Try TYPE POLYGON instead.

Thomas Campitelli wrote:


Howdy Folks,

I would like to label the polygons in my map, however none of the labels 
seem to fall within my polygons. Instead, they are labeled outside of 
each shape. I am displaying the polygons as lines in the map. Is that my 
problem? If so, how do I get around it. I have no wish to fill my 
polygons with color. Thanks in advance for any help. The relevant 
portion of my map file is shown below:


LAYER # Counties polygon layer begins here
 
NAME CountyLine

DATA pgn_ca_county
STATUS   DEFAULT
TYPE LINE
   
LABELITEM"Name"
   
   
 CLASS

NAME   "County Boundary"
STYLE
  COLOR0 115 76
  WIDTH1
END
 
 
  LABEL# Labeling Test

COLOR 132 31 31
#SHADOWCOLOR 218 218 218
#SHADOWSIZE 2 2
TYPE TRUETYPE
FONT arial
SIZE 8
ANTIALIAS TRUE
POSITION AUTO
PARTIALS FALSE
MINDISTANCE 200
BUFFER 4
END
END

END

Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try 
it now. 






___
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] Polygon labeling

2008-03-27 Thread Thomas Campitelli
Many thanks for the response. However, it still did not fix this issue. It just 
puts the label directly on one of the border lines. I suspect that I need to 
include the county boundaries as a polygon layer and label them. I will see if 
that gets me anywhere.

- Original Message 
From: "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
To: Thomas Campitelli <[EMAIL PROTECTED]>
Sent: Thursday, March 27, 2008 7:06:18 PM
Subject: Re: [mapserver-users] Polygon labeling


Try:

POSITION CC


-Original Message-
From: Thomas Campitelli <[EMAIL PROTECTED]>

Date: Thu, 27 Mar 2008 17:51:41 
To:mapserver-users@lists.osgeo.org
Subject: [mapserver-users] Polygon labeling


Howdy Folks,

I would like to label the polygons in my map, however none of the labels seem 
to fall within my polygons. Instead, they are labeled outside of each shape. I 
am displaying the polygons as lines in the map. Is that my problem? If so, how 
do I get around it. I have no wish to fill my polygons with color. Thanks in 
advance for any help. The relevant portion of my map file is shown below:

LAYER # Counties polygon layer begins here
  
NAME CountyLine
DATA pgn_ca_county
STATUS   DEFAULT
TYPE LINE

LABELITEM"Name"


 CLASS
NAME   "County Boundary"
STYLE
  COLOR0 115 76
  WIDTH1
END
  
  
  LABEL# Labeling Test
COLOR 132 31 31
#SHADOWCOLOR 218 218 218
#SHADOWSIZE 2 2
TYPE TRUETYPE
FONT arial
SIZE 8
ANTIALIAS TRUE
POSITION AUTO
PARTIALS FALSEMINDISTANCE 200
BUFFER 4
END 
ENDEND

 

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








  

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] Resampling and image quality?

2008-03-27 Thread Gregor Mosheh
Hi, all. We're seeing some distortion in an image, a loss of viewing 
quality, and am hoping that y'all can provide some insight into what may 
be the issue.


Here are the URLs:
   http://dev.geowake.com/chart.test/index.php
   http://ms2.geowake.com/
Yes, it's Google Maps, but bear with me. :)
The "dev" one is using a PNG sliced for use in Google Maps.
The "ms2" one is Mapserver WMS, using the same PNG but with a worldfile 
and without slicing since the idea here is to use WMS and save a lot of 
work as well as being vendor-neutral.


You'll see that the "dev" one has a much "smoother" look to it. If you 
zoom in three notches, you can read the map's title clearly. The 
Mapserver WMS version, the text is very obviously blocky even if you 
zoom in 4 notches. As you keep zooming in, the quality difference 
becomes more obvious as you can read the PNG's smaller text but not the 
WMS's.



So, what to do? I have tried and eliminated several possibilities, and 
am stumped.


- Source image quality; the PNGs on both sides are visually identical in 
an image viewer. I have tried the source image in TIFF and PNG with 
various options.


- Bad world file; the spatial extent matches that of the other map, and 
I've checked the math repeatedly and found it A-OK


- Image format options; I have tried every image format supported, and 
the image always comes out looking the same, so it's not interlacing 
gone wrong, nor lossy JPEG compression, etc. The outputformat block is 
set to generate PNG-24 RGBA, and I have verified by downloading from the 
WMS that it is doing so.


Possibilities I've not yet exhausted:

- Resampling; using PROCESSING "RESAMPLE=AVERAGE" improved the image 
quality but only very slightly.


- Reprojection; the images are in WGS84 (EPSG 4326) and I know that 
Google uses their weird Mercator (54004). I added 54004 to our EPSG 
file, and have tried various approaches such as reprojecting the image 
to 54004 ahead of time, and using 54004's numbers in a worldfile so 
there'd be no reprojection at all, but the effect is always the same.



Any ideas what's up here?

--
Gregor Mosheh / Greg Allensworth, BS, A+
System Administrator
HostGIS cartographic development & hosting services
http://www.HostGIS.com/

"Remember that no one cares if you can back up,
 only if you can restore." - AMANDA
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


[mapserver-users] Label Follows streets alignment issue

2008-03-27 Thread Stephen Woodbridge

Hi Thomas,

I have noticed that labels in a google style symbology that follow a 
straight line segment at approximately 45 degrees upper left to lower 
right and slightly off being aligned with the street.


It is just enough to be annoying once you notice it.

Have you noticed this?
Can this be fixed?

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


[mapserver-users] Label Follows streets alignment issue

2008-03-27 Thread Stephen Woodbridge

Hi Thomas,

I have noticed that labels in a google style symbology that follow a 
straight line segment at approximately 45 degrees upper left to lower 
right and slightly off being aligned with the street.


It is just enough to be annoying once you notice it.

Have you noticed this?
Can this be fixed?

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


Re: [mapserver-users] Resampling and image quality?

2008-03-27 Thread P Kishor
On 3/27/08, Gregor Mosheh <[EMAIL PROTECTED]> wrote:
> Hi, all. We're seeing some distortion in an image, a loss of viewing
>  quality, and am hoping that y'all can provide some insight into what may
>  be the issue.
>
>  Here are the URLs:
> http://dev.geowake.com/chart.test/index.php
> http://ms2.geowake.com/
>  Yes, it's Google Maps, but bear with me. :)
>  The "dev" one is using a PNG sliced for use in Google Maps.
>  The "ms2" one is Mapserver WMS, using the same PNG but with a worldfile
>  and without slicing since the idea here is to use WMS and save a lot of
>  work as well as being vendor-neutral.
>
>  You'll see that the "dev" one has a much "smoother" look to it. If you
>  zoom in three notches, you can read the map's title clearly. The
>  Mapserver WMS version, the text is very obviously blocky even if you
>  zoom in 4 notches. As you keep zooming in, the quality difference
>  becomes more obvious as you can read the PNG's smaller text but not the
>  WMS's.

yikes! The ms2 version is fugly.


>
>
>  So, what to do? I have tried and eliminated several possibilities, and
>  am stumped.

This sounds really silly, but have you tried with exactly the same
image in both instances? That is, not the sliced version for
MapServer, but exactly the same one you have for Google Maps?

>
>  - Source image quality; the PNGs on both sides are visually identical in
>  an image viewer. I have tried the source image in TIFF and PNG with
>  various options.
>
>  - Bad world file; the spatial extent matches that of the other map, and
>  I've checked the math repeatedly and found it A-OK
>
>  - Image format options; I have tried every image format supported, and
>  the image always comes out looking the same, so it's not interlacing
>  gone wrong, nor lossy JPEG compression, etc. The outputformat block is
>  set to generate PNG-24 RGBA, and I have verified by downloading from the
>  WMS that it is doing so.
>
>  Possibilities I've not yet exhausted:
>
>  - Resampling; using PROCESSING "RESAMPLE=AVERAGE" improved the image
>  quality but only very slightly.
>
>  - Reprojection; the images are in WGS84 (EPSG 4326) and I know that
>  Google uses their weird Mercator (54004). I added 54004 to our EPSG
>  file, and have tried various approaches such as reprojecting the image
>  to 54004 ahead of time, and using 54004's numbers in a worldfile so
>  there'd be no reprojection at all, but the effect is always the same.
>
>
>  Any ideas what's up here?
>
>  --
>  Gregor Mosheh / Greg Allensworth, BS, A+
>  System Administrator
>  HostGIS cartographic development & hosting services
>  http://www.HostGIS.com/
>
>  "Remember that no one cares if you can back up,
>   only if you can restore." - AMANDA
>  ___
>  mapserver-users mailing list
>  mapserver-users@lists.osgeo.org
>  http://lists.osgeo.org/mailman/listinfo/mapserver-users
>


-- 
Puneet Kishor http://punkish.eidesis.org/
Nelson Institute for Environmental Studies http://www.nelson.wisc.edu/
Open Source Geospatial Foundation (OSGeo) http://www.osgeo.org/
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] Resampling and image quality?

2008-03-27 Thread Gregor Mosheh
I'll be on the plane all day tomorrow, on my way to DC for the 
PostgreSQL East conference. If I don't reply, it's not personal. :)



P Kishor wrote:

yikes! The ms2 version is fugly.


M hm. This is the first time we've ever compared the PNG with the 
Mapserver output side by side, especially in a situation where the 
raster has text in it, so I'm also surprised!




This sounds really silly, but have you tried with exactly the same
image in both instances? That is, not the sliced version for
MapServer, but exactly the same one you have for Google Maps?


The one I'm given for use in Mapserver, is the same PNG except left 
whole and with a world file added. The "plain PNG" version is sliced for 
use in a GTileoverlay, but is otherwise the same.


Or did I misunderstand the question?

--
Gregor Mosheh / Greg Allensworth, BS, A+
System Administrator
HostGIS cartographic development & hosting services
http://www.HostGIS.com/

"Remember that no one cares if you can back up,
 only if you can restore." - AMANDA
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] Resampling and image quality?

2008-03-27 Thread Gregor Mosheh

Frank Warmerdam wrote:
> I zoomed in on both, and I don't see the effect you are talking about.
> Perhaps you need something a little less error prone, like screen
> snaps that demonstrate what you are talking about!

Sure thing:

http://ms2.geowake.com/ms_fullview.png
http://ms2.geowake.com/ms_3_notches_in.png
http://ms2.geowake.com/ms_5_notches_in.png

http://ms2.geowake.com/png_fullview.png
http://ms2.geowake.com/png_3_notches_in.png
http://ms2.geowake.com/png_5_notches_in.png


Note how the png ones lack the jagged "crunchy" quality, how even the 
smaller text is legible and smooth at the tighter zoomlevels. The 
Mapserver one, though, is illegible and looks as if it's been downsized 
or something.


--
Gregor Mosheh / Greg Allensworth, BS, A+
System Administrator
HostGIS cartographic development & hosting services
http://www.HostGIS.com/

"Remember that no one cares if you can back up,
 only if you can restore." - AMANDA
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] Resampling and image quality?

2008-03-27 Thread P Kishor
On 3/27/08, Gregor Mosheh <[EMAIL PROTECTED]> wrote:
> I'll be on the plane all day tomorrow, on my way to DC for the
>  PostgreSQL East conference. If I don't reply, it's not personal. :)
>
>
>
>  P Kishor wrote:
>  > yikes! The ms2 version is fugly.
>
>
> M hm. This is the first time we've ever compared the PNG with the
>  Mapserver output side by side, especially in a situation where the
>  raster has text in it, so I'm also surprised!
>
>
>
>  > This sounds really silly, but have you tried with exactly the same
>  > image in both instances? That is, not the sliced version for
>  > MapServer, but exactly the same one you have for Google Maps?
>
>
> The one I'm given for use in Mapserver, is the same PNG except left
>  whole and with a world file added. The "plain PNG" version is sliced for
>  use in a GTileoverlay, but is otherwise the same.
>
>  Or did I misunderstand the question?

Actually, I misspoke, nevertheless, you misunderstood as well.

I understand that you start with the same PNG, then you duplicate it,
slice one of them up for GMaps, and serve the whole one to MapServer.

What I meant to say was -- use exactly the same PNG for both tests;
that is, either use the sliced one for both GMaps and MapServer, or
the whole one for both.

I know this sounds silly, but hey, it eliminates even that remote possibility.

In any case, the problem is probably somewhere else.


>
>
>  --
>
> Gregor Mosheh / Greg Allensworth, BS, A+
>  System Administrator
>  HostGIS cartographic development & hosting services
>  http://www.HostGIS.com/
>
>  "Remember that no one cares if you can back up,
>   only if you can restore." - AMANDA
>
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] Resampling and image quality?

2008-03-27 Thread Frank Warmerdam

Gregor Mosheh wrote:
Hi, all. We're seeing some distortion in an image, a loss of viewing 
quality, and am hoping that y'all can provide some insight into what may 
be the issue.


Here are the URLs:
   http://dev.geowake.com/chart.test/index.php
   http://ms2.geowake.com/
Yes, it's Google Maps, but bear with me. :)
The "dev" one is using a PNG sliced for use in Google Maps.
The "ms2" one is Mapserver WMS, using the same PNG but with a worldfile 
and without slicing since the idea here is to use WMS and save a lot of 
work as well as being vendor-neutral.


Gregor,

Thanks for the direct pngs.

I know it is was really obvious to you, but there wasn't enough of the
maps paged in before I started zooming for me to even realize there was
a subregion that was different.

You'll see that the "dev" one has a much "smoother" look to it. If you 
zoom in three notches, you can read the map's title clearly. The 
Mapserver WMS version, the text is very obviously blocky even if you 
zoom in 4 notches. As you keep zooming in, the quality difference 
becomes more obvious as you can read the PNG's smaller text but not the 
WMS's.



So, what to do? I have tried and eliminated several possibilities, and 
am stumped.


- Source image quality; the PNGs on both sides are visually identical in 
an image viewer. I have tried the source image in TIFF and PNG with 
various options.


- Bad world file; the spatial extent matches that of the other map, and 
I've checked the math repeatedly and found it A-OK


- Image format options; I have tried every image format supported, and 
the image always comes out looking the same, so it's not interlacing 
gone wrong, nor lossy JPEG compression, etc. The outputformat block is 
set to generate PNG-24 RGBA, and I have verified by downloading from the 
WMS that it is doing so.


Possibilities I've not yet exhausted:

- Resampling; using PROCESSING "RESAMPLE=AVERAGE" improved the image 
quality but only very slightly.


- Reprojection; the images are in WGS84 (EPSG 4326) and I know that 
Google uses their weird Mercator (54004). I added 54004 to our EPSG 
file, and have tried various approaches such as reprojecting the image 
to 54004 ahead of time, and using 54004's numbers in a worldfile so 
there'd be no reprojection at all, but the effect is always the same.


I guess I don't get the process that the nice image is going through.
Are you having to pre-reproject it to Mercator before slicing it
up for the exact Google maps zoom levels?  Or do you just provide
it in 4326 and google maps takes care of reprojecting it?

Are the source PNGs paletted or RGB 24bit?  Paletted images won't
respond well to alternative resampling algorithms.  I'm guessing
that the nice images are effectively bilinearly interpolated in
RGB space though I'm not clear on where that is happening.
Selecting PROCESSING "RESAMPLE=BILINEAR" and giving it 24bit RGB
input files should give something fairly similar I'd think.

One problem is that Mapserver actually leaves it to GDAL to do much
of the downsampling in highly decimated situations.  So it is also
important to build overview levels in some appropriate fashion.
Likely you will need to do this with -r average for gdaladdo.

It *might* be possible to fool with the OVERSAMPLE_RATIO processing
option in your map to give a better bilinear resampling without
having to pre-build overviews.  This might also improve the appearance
of average resampling.  Something like:

  PROCESSING "OVERSAMPLE_RATIO=16"

But basically, resampling fine text like this (or delicate linework)
from a raster source is just a crappy situation to be in.  Even the
good results are pretty crappy in my opinion.

Good luck,
--
---+--
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