From douguoli@yahoo.com.cn Thu Jul 1 01:38:44 2004
From: douguoli@yahoo.com.cn (=?gb2312?q?guoloi=20dou?=)
Date: Thu, 1 Jul 2004 08:38:44 +0800 (CST)
Subject: [Mapserver-users] projection problems
Message-ID: <20040701003844.91510.qmail@web15206.mail.bjs.yahoo.com>
--0-1203949747-1088642324=:71588
Content-Type: text/plain; charset=gb2312
Content-Transfer-Encoding: 8bit
Hi, I am trying view a .shp file. But only an image with background color defined in the map object is obtained. I'm not sure how to write the projection. Could somebody help me? Below are the info got from ogrinfo and my mapfile.
INFO: Open of `c:\Proj\TopographicArea_area.shp'
using driver `ESRI Shapefile' successful.
Layer name: TopographicArea_area
Geometry: Polygon
Feature Count: 10261
Extent: (350137.990000, 168102.400000) - (356541.550000, 174643.090000)
Layer SRS WKT:
PROJCS["British_National_Grid",
GEOGCS["GCS_OSGB_1936",
DATUM["OSGB_1936",
SPHEROID["Airy_1830",6377563.396,299.3249646]],
PRIMEM["Greenwich",0],
UNIT["Degree",0.017453292519943295]],
PROJECTION["Transverse_Mercator"],
PARAMETER["False_Easting",400000],
PARAMETER["False_Northing",-100000],
PARAMETER["Central_Meridian",-2],
PARAMETER["Scale_Factor",0.999601272],
PARAMETER["Latitude_Of_Origin",49],
UNIT["Meter",1]]
MAPFILE
MAP
IMAGETYPE PNG
EXTENT 350137.990000 168102.400000 356541.550000 174643.090000
#EXTENT -8000000 300000 5000000 1500000
#EXTENT 24.995716 46.984584 26.008563 47.353092
UNITS METERS
SIZE 1000 1000
IMAGECOLOR 255 255 255
PROJECTION
#"proj=tmerc"
#"ellps=airy"
#"lat_0=49"
"init=epsg:2163"
END
WEB
IMAGEPATH "/Proj/img/"
IMAGEURL "/img/"
END
# Start of LAYER DEFINITIONS ---------------------------------------------
LAYER # States polygon layer begins here
NAME TopographicArea_area
#CONNECTIONTYPE OGR
#CONNECTION "data/BoundaryLine.tab"
#CONNECTION "D:\Project\tab\LN352890.tab"
DATA TopographicArea_area
STATUS ON
TYPE POLYGON
PROJECTION
"init=epsg:4269"
END
CLASS
COLOR 180 180 0
OUTLINECOLOR 32 32 32
END
END # States polygon layer ends here
# End of LAYER DEFINITIONS -------------------------------
END # end of map file/object
Regards,
Zhengda Lu
---------------------------------
Do You Yahoo!?
100Õ×ÓÊÏä¹»²»¹»Óã¿ÑÅ»¢µçÓÊ×ÔÖúÀ©ÈÝ£¡
--0-1203949747-1088642324=:71588
Content-Type: text/html; charset=gb2312
Content-Transfer-Encoding: 8bit
Hi, I am trying view a .shp file. But only an image with background color defined in the map object is obtained. I'm not sure how to write the projection. Could somebody help me? Below are the info got from ogrinfo and my mapfile.
INFO: Open of `c:\Proj\TopographicArea_area.shp'
using driver `ESRI Shapefile' successful.
Layer name: TopographicArea_area
Geometry: Polygon
Feature Count: 10261
Extent: (350137.990000, 168102.400000) - (356541.550000, 174643.090000)
Layer SRS WKT:
PROJCS["British_National_Grid",
GEOGCS["GCS_OSGB_1936",
DATUM["OSGB_1936",
SPHEROID["Airy_1830",6377563.396,299.3249646]],
PRIMEM["Greenwich",0],
UNIT["Degree",0.017453292519943295]],
PROJECTION["Transverse_Mercator"],
PARAMETER["False_Easting",400000],
PARAMETER["False_Northing",-100000],
PARAMETER["Central_Meridian",-2],
PARAMETER["Scale_Factor",0.999601272],
PARAMETER["Latitude_Of_Origin",49],
UNIT["Meter",1]]
MAPFILE
MAP
IMAGETYPE PNG
EXTENT 350137.990000 168102.400000 356541.550000 174643.090000
#EXTENT -8000000 300000 5000000 1500000
#EXTENT 24.995716 46.984584 26.008563 47.353092
UNITS METERS
SIZE 1000 1000
IMAGECOLOR 255 255 255
PROJECTION
#"proj=tmerc"
#"ellps=airy"
#"lat_0=49"
"init=epsg:2163"
END
WEB
IMAGEPATH "/Proj/img/"
IMAGEURL "/img/"
END
# Start of LAYER DEFINITIONS ---------------------------------------------
LAYER # States polygon layer begins here
NAME TopographicArea_area
#CONNECTIONTYPE OGR
#CONNECTION "data/BoundaryLine.tab"
#CONNECTION "D:\Project\tab\LN352890.tab"
DATA
TopographicArea_area
STATUS ON
TYPE POLYGON
PROJECTION
"init=epsg:4269"
END
CLASS
COLOR 180 180 0
OUTLINECOLOR 32 32 32
END
END # States polygon layer ends here
# End of LAYER DEFINITIONS -------------------------------
END # end of map file/object
Regards,
Zhengda Lu
Do You Yahoo!?
100Õ×ÓÊÏä¹»²»¹»Óã¿ÑÅ»¢µçÓÊ×ÔÖúÀ©ÈÝ£¡
--0-1203949747-1088642324=:71588--
From John.Hockaday@ga.gov.au Thu Jul 1 06:07:34 2004
From: John.Hockaday@ga.gov.au (John.Hockaday@ga.gov.au)
Date: Thu, 1 Jul 2004 15:07:34 +1000
Subject: [Mapserver-users] Reference map to show bounding coordinates extent not map extent works in 3.5 but ont 3.6
Message-ID:
Hi,
A while ago this list, especially Steve Lime, helped me solve the problem of
showing a reference map indicating the raw bounding coordinates and not the
map extent coordinates. This works beautifully on mapserv3.5 but now that I
have to go to mapserv3.6 it doesn't seem to work.
Can anyone help me with this please? Any help is much appreciated. Thanks.
A typical call to mapserv3.5 uses the following URL:
http://www-b.ga.gov.au/bin/mapserv35?map=%2Fpublic%2Fhttp%2Fwww%2Fdocs%2Fasdd
%2Fref.map&mode=map&layer=box&map_box_feature=new&map_box_feature_points=109.
%20-12.%20159.%20-12.%20159.%20-43.%20109.%20-43.%20109.%20-12
If I replace mapserv35 with mapserv36 in the above URL I get a "Premature end
of script headers: /public/http/www/cgi-bin/mapserv36" in the web server
error file. The URL is:
http://www-b.ga.gov.au/bin/mapserv36?map=%2Fpublic%2Fhttp%2Fwww%2Fdocs%2Fasdd
%2Fref.map&mode=map&layer=box&map_box_feature=new&map_box_feature_points=109.
%20-12.%20159.%20-12.%20159.%20-43.%20109.%20-43.%20109.%20-12.
My map file looks like this:
MAP
NAME "REF"
SIZE 200 132
UNITS dd
EXTENT 44.000000 -90.000000 180.000000 0.000000
STATUS OFF
REFERENCE
SIZE 200 132
EXTENT 44.000000 -90.000000 180.000000 0.000000
IMAGE aus200x132.png
STATUS OFF
END
LAYER
NAME background
TYPE RASTER
DATA aus200x132.png
STATUS DEFAULT
TRANSFORM OFF
END
LAYER
NAME box
STATUS OFF
# TRANSPARENCY 40
# TYPE LINE
TYPE line
CLASS
COLOR 255 0 0
OUTLINECOLOR 0 0 0
OVERLAYSYMBOL 'circle'
OVERLAYSIZE 8
END
END
LAYER
NAME pnt
STATUS OFF
TYPE POINT
CLASS
SYMBOL "star"
COLOR 255 0 0
OUTLINECOLOR 0 0 0
SIZE 15
END
END
SYMBOL
NAME 'star'
TYPE VECTOR
FILLED TRUE
POINTS
0 .375
.35 .375
.5 0
.65 .375
1 .375
.75 .625
.875 1
.5 .75
.125 1
.25 .625
END
END
SYMBOL
NAME 'circle'
TYPE ELLIPSE
FILLED FALSE
POINTS
1 1
END
END
END
From sp_ml@sourcepole.com Thu Jul 1 08:19:31 2004
From: sp_ml@sourcepole.com (Markus Schnider)
Date: Thu, 1 Jul 2004 09:19:31 +0200
Subject: [Mapserver-users] query with php mapscript
Message-ID: <200407010919.32101.sp_ml@sourcepole.com>
Hi all
I have a table with over 2'000'000 tuples. I would search in these table with
php mapscript. (I search the full_name column.)
How could I create a very fast query with php mapscript and a postgresql?
What should I make: create indexes, and which indexes, ... ?
What's the difference to a ARCsde (oracle)?
What should I make with ARCsde, oracle?
Could somebody give me an example?
Thanks in advance
Markus Schnider
From John.Hockaday@ga.gov.au Thu Jul 1 08:13:34 2004
From: John.Hockaday@ga.gov.au (John.Hockaday@ga.gov.au)
Date: Thu, 1 Jul 2004 17:13:34 +1000
Subject: [Mapserver-users] How to set the reference map type in mapserv 3.6
Message-ID:
Hi,
In the documentation at the following URL:
http://mapserver.gis.umn.edu/doc36/mapfile-reference.html#referencemap
It mentions that there are different types of reference maps. I would like
to return the type that
"depict[s] the extent of the area of interest."
Can I do this by setting a "TYPE" in the map file under a "REFERENCE" object
or in a CGI reference?
Thanks.
John
From sp_ml@sourcepole.com Thu Jul 1 08:48:14 2004
From: sp_ml@sourcepole.com (Markus Schnider)
Date: Thu, 1 Jul 2004 09:48:14 +0200
Subject: [Mapserver-users] wms server projection
Message-ID: <200407010948.14168.sp_ml@sourcepole.com>
Hi all
I have a umn mapserver 4.2 wms-server and chameleon.
I would include a layer of this wms server. The projection of the layer has an
alpha value of 90 (init=epsg:21781), which produces an error.
<21781> +proj=omerc +lat_0=46.95240555555556 +lonc=7.439583333333333 +alpha=90
+k=1 +x_0=600000 +y_0=200000 +ellps=bessel +units=m +no_defs no_defs <>
so I would change the alpha value to 89, but how can I include the projection
in the mapfile withaout an entry like
"init=epsg:21781"
?
Is it possible to create my own projection in the web part of the mapfile?
Should I create an own file with my own projection like a 'epsg', 'esri', ...
file (the server and the client could then use the same projection file)?
Which is the best way?
Thanks in advance
Markus Schnider
PS: Chameleon or the wms-server works at this time only if the alpha value is
different of 90. So I changed the projection to this values.
From mh@svaj.dk Thu Jul 1 10:21:28 2004
From: mh@svaj.dk (=?ISO-8859-1?Q?Martin_H=F8gh?=)
Date: Thu, 01 Jul 2004 11:21:28 +0200
Subject: [Mapserver-users] Timeout for wms layer
Message-ID: <40E3D798.4050601@svaj.dk>
Dear List
I've posted this message
http://mapserver.gis.umn.edu/data2/wilma/mapserver-users/0406/msg00759.html
earlier without much luck., so I'll try again.
I'm trying to use Mapserver as a wms client for this server
http://www.moeldrup.dk/scripts/mapserv.exe?map=d:/www/website/Ortofoto/moeldrup.map
I am administrating this server so I can alter the settings if necessary.
The problem is that when the layer from this server is requested by a
Mapserver client it will timeout. A .img.tmp of 0k file is created and
no errors from the client.
I've tested with ms3.6.6 (both php/mapscript and cgi) on linux and ms4.0
on winxp with same result
The projection for all is set to "epsg:32632". But actually the data
projected in a odd Danish system which can not be reprojected. But I
believe that an epsg or auto code must be specified.
My map-file (client)
#
# Start of map file
#
NAME Province
STATUS ON
SIZE 700 440
EXTENT -277553.292530 232924.427400 -252200.662530 251396.532600
UNITS METERS
#SHAPEPATH "../data/grundkort"
IMAGECOLOR 215 226 233
FONTSET "../etc/fonts.txt"
IMAGETYPE png
PROJECTION
"init=epsg:32632"
END
WEB
#
# On Windows systems, /tmp and /tmp/ms_tmp/ should be created at the root
# of the drive where the .MAP file resides.
#
IMAGEPATH "C:\Programmer\EasyPHP1-7\www\wms\ms_tmp\"
IMAGEURL "http://localhost/wms/ms_tmp/"
LOG "C:\Programmer\EasyPHP1-7\www\wms\map.log"
END
LAYER
NAME orto
METADATA
"wms_srs" "EPSG:32632"
"wms_connectiontimeout" "15"
END
TYPE RASTER
STATUS default
CONNECTIONTYPE WMS
CONNECTION
"http://www.moeldrup.dk/scripts/mapserv.exe?map=d:/www/website/Ortofoto/moeldrup.map&WMTVER=1.0.0&FORMAT=image/jpeg&"
END
end #mapfile
mapfile (server)
#
# Start of map file
#
NAME Moeldrup_WMS
STATUS ON
EXTENT -277553.292530 232924.427400 -252200.662530 251396.532600
UNITS METERS
#SHAPEPATH "../data/grundkort"
IMAGECOLOR 255 255 255
IMAGETYPE png
PROJECTION
"init=epsg:32632"
END
SIZE 700 440
#
# Start of web interface definition
#
# On Windows systems, /tmp and /tmp/ms_tmp/ should be created at the root
# of the drive where the .MAP file resides.
#
web
IMAGEPATH "D:\www\website\ms_tmp\"
IMAGEURL "http://http://www.moeldrup.dk/ms_tmp/"
LOG "map.log"
METADATA
"wms_title" "Møldrup ortofoto WMS server"
"wms_onlineresource"
"http://www.moeldrup.dk/scripts/mapserv.exe?map=d:/www/website/Ortofoto/moeldrup.map&WMTVER=1.0.0&"
"wms_srs" "EPSG:32632"
END
END
#
# Start of layer definitions
#
LAYER
NAME "Ortofoto"
STATUS default
TILEINDEX "KX-1569_Index.shp"
TILEITEM "location"
TYPE RASTER
PROJECTION
"init=epsg:32632"
END
END
END # Map File
Best regards
Martin
From eric.belenfant@ac-orleans-tours.fr Thu Jul 1 10:55:41 2004
From: eric.belenfant@ac-orleans-tours.fr (eric.belenfant)
Date: Thu, 01 Jul 2004 11:55:41 +0200
Subject: [Mapserver-users] creating a new layer with PHP/Mapscript
Message-ID: <40E3DF9D.6060606@ac-orleans-tours.fr>
Hi,
i'm using php mapscript 4.0 and .tab files from MAPINFO.
I try to generate some layers on the fly with php.
Here is the piece of code
$couche_modele = $map->getLayerByName("couche_modele");
$modele_classe = $couche_modele->getClass(0);
/////////////////////////////////////////////
// Affichage/Masquage des couches
/////////////////////////////////////////////
$layer = *ms_newLayerObj*($map,$couche_modele);
$layer->set("name","total_sts");
$layer->set("classitem","total_sts");
$class = ms_newClassObj($layer);
$class->setexpression("[total_sts]>0");
$style = ms_newStyleObj($class);
$style->color->setRGB(255,255,200);
$colorSTS = rgb2html(Array( $style->color->red,
$style->color->green,
$style->color->blue));
if (isset($HTTP_POST_VARS["total_sts"])){
print_r($map->getLayersdrawingorder());
$layer->set("status",MS_ON);
$checkSTS="CHECKED";
}else
$layer->set("status",MS_OFF);
The new layer i create is not visible, however all the propoerties of
the layer are OK when i echo them .
What is wrong in my code ?
Am i missing something ?
eric
From Stephen.Savage@asu.edu Thu Jul 1 13:59:49 2004
From: Stephen.Savage@asu.edu (Stephen H. Savage)
Date: Thu, 01 Jul 2004 05:59:49 -0700 (MST)
Subject: [Mapserver-users] DRGs in MapServer
Message-ID: <1088686789.40e40ac5855d7@webmail.asu.edu>
Greetings,
In AZ we have nearly 2,000 DRG's at 1:24,000 scale. We would like to have
these maps displayed as the background for our web site that serves
archaeological sites and projects. However, in ArcIMS, which we are currently
using, all these image layers would have to be pre-loaded into the map; this is
clearly out of the question. What we need to do is add and subtract image
layers from the map on-the-fly, as a user pans or zooms around the map. Is
this something that MapServer can do? Ideally, at the scale at which we want
the DRGs to be displayed, portions of no more than 4 map tiles would be
displayed at any time.
Basically, ArcIMS defines the map once, with all its layers loaded. Then,
for each user session, the map server sends out session data such as the view
extent, which layers are on, etc. You can't redefine the map's layers because
it involves a situation where each user would get a different map definition
rather than a different instance of the same map. Is the the same way thet
MapServer works?
Thanks,
-Steve
Stephen H. Savage, Ph.D.
Department of Anthropology
Box 872402
Arizona State University
Tempe, AZ 85287-2402
shsavage@asu.edu
http://archaeology.asu.edu/Jordan
----- End forwarded message -----
Stephen H. Savage, Ph.D.
Department of Anthropology
Box 872402
Arizona State University
Tempe, AZ 85287-2402
shsavage@asu.edu
http://archaeology.asu.edu/Jordan
----- End forwarded message -----
Stephen H. Savage, Ph.D.
Department of Anthropology
Box 872402
Arizona State University
Tempe, AZ 85287-2402
shsavage@asu.edu
http://archaeology.asu.edu/Jordan
----- End forwarded message -----
Stephen H. Savage, Ph.D.
Department of Anthropology
Box 872402
Arizona State University
Tempe, AZ 85287-2402
shsavage@asu.edu
http://archaeology.asu.edu/Jordan
----- End forwarded message -----
Stephen H. Savage, Ph.D.
Department of Anthropology
Box 872402
Arizona State University
Tempe, AZ 85287-2402
shsavage@asu.edu
http://archaeology.asu.edu/Jordan
From ed@topozone.com Thu Jul 1 14:52:10 2004
From: ed@topozone.com (Ed McNierney)
Date: Thu, 1 Jul 2004 09:52:10 -0400
Subject: [Mapserver-users] DRGs in MapServer
Message-ID: <2A6FDD75AE04BE4A9E8C918D3C09FB070B3729@ptolemy.topozone.com>
Steve -
I've got over 59,000 DRGs loaded and served by MapServer at
www.topozone.com (along with over a quarter of a million aerial photos
and several other data types). MapServer handles them just fine through
its TILEINDEX mechanism, by which many different raster (or vector)
files can be combined into one single logical layer.
We also provide this data to customers through ArcIMS and OGC WMS
interfaces, so if you're interested in going that route (we host and
serve the images for you), please contact me off-list.
Otherwise, you should have no trouble using MapServer doing what you
want. There's no "redefinition" of layers involved, beause the one
layer that uses a TILEINDEX tells MapServer to consult the TILEINDEX
file - a table of polygons describing the outlines of each of the
individual raster files - and use that to calculate which raster images
are needed for any image request.
- Ed
Ed McNierney
President and Chief Mapmaker
TopoZone.com / Maps a la carte, Inc.
73 Princeton Street, Suite 305
North Chelmsford, MA 01863
ed@topozone.com
(978) 251-4242
-----Original Message-----
From: mapserver-users-admin@lists.gis.umn.edu
[mailto:mapserver-users-admin@lists.gis.umn.edu] On Behalf Of Stephen H.
Savage
Sent: Thursday, July 01, 2004 9:00 AM
To: mapserver-users@lists.gis.umn.edu
Subject: [Mapserver-users] DRGs in MapServer
Greetings,
In AZ we have nearly 2,000 DRG's at 1:24,000 scale. We would like to
have these maps displayed as the background for our web site that serves
archaeological sites and projects. However, in ArcIMS, which we are
currently using, all these image layers would have to be pre-loaded into
the map; this is clearly out of the question. What we need to do is add
and subtract image layers from the map on-the-fly, as a user pans or
zooms around the map. Is this something that MapServer can do?
Ideally, at the scale at which we want the DRGs to be displayed,
portions of no more than 4 map tiles would be displayed at any time.
Basically, ArcIMS defines the map once, with all its layers loaded.
Then, for each user session, the map server sends out session data such
as the view extent, which layers are on, etc. You can't redefine the
map's layers because it involves a situation where each user would get a
different map definition rather than a different instance of the same
map. Is the the same way thet MapServer works?
Thanks,
-Steve
Stephen H. Savage, Ph.D.
Department of Anthropology
Box 872402
Arizona State University
Tempe, AZ 85287-2402
shsavage@asu.edu
http://archaeology.asu.edu/Jordan
----- End forwarded message -----
Stephen H. Savage, Ph.D.
Department of Anthropology
Box 872402
Arizona State University
Tempe, AZ 85287-2402
shsavage@asu.edu
http://archaeology.asu.edu/Jordan
----- End forwarded message -----
Stephen H. Savage, Ph.D.
Department of Anthropology
Box 872402
Arizona State University
Tempe, AZ 85287-2402
shsavage@asu.edu
http://archaeology.asu.edu/Jordan
----- End forwarded message -----
Stephen H. Savage, Ph.D.
Department of Anthropology
Box 872402
Arizona State University
Tempe, AZ 85287-2402
shsavage@asu.edu
http://archaeology.asu.edu/Jordan
----- End forwarded message -----
Stephen H. Savage, Ph.D.
Department of Anthropology
Box 872402
Arizona State University
Tempe, AZ 85287-2402
shsavage@asu.edu
http://archaeology.asu.edu/Jordan
_______________________________________________
Mapserver-users mailing list
Mapserver-users@lists.gis.umn.edu
http://lists.gis.umn.edu/mailman/listinfo/mapserver-users
From markadams@cuestasys.com Thu Jul 1 14:44:15 2004
From: markadams@cuestasys.com (Mark Adams)
Date: Thu, 1 Jul 2004 09:44:15 -0400
Subject: [Mapserver-users] DRGs in MapServer
In-Reply-To: <1088686789.40e40ac5855d7@webmail.asu.edu>
Message-ID: <000201c45f71$7ff6f250$1300a8c0@cuestasys.com>
I will let more knowledgeable folks correct me on the mapserver stuff,
but I think you want to create a tileindex of your catalog of raster
images, and add that index to your map file. Mapserver will take care of
the rest.
For ArcIMS, I believe you can do the same thing. If your catalog of
raster images are in one folder for example, reference the folder in
your .AXL file instead of individual images, and ArcIMS should load the
correct images as the user pans and zooms around. I seem to remember
seeing something about creating an explicit catalog of images as well,
but that may have only been for ArcSDE as a data source.
Hope that helps a little.
------------------------------
Mark Adams
Business & Systems Analyst
Cuesta Systems Inc.
5230 South Service Road
Burlington, ON L7L 5K2
Phone: 905-333-4544 x14
Fax: 905-333-0455
Email: markadams@cuestasys.com
-----Original Message-----
From: mapserver-users-admin@lists.gis.umn.edu
[mailto:mapserver-users-admin@lists.gis.umn.edu] On Behalf Of Stephen H.
Savage
Sent: Thursday, July 01, 2004 9:00 AM
To: mapserver-users@lists.gis.umn.edu
Subject: [Mapserver-users] DRGs in MapServer
Greetings,
In AZ we have nearly 2,000 DRG's at 1:24,000 scale. We would like to
have
these maps displayed as the background for our web site that serves
archaeological sites and projects. However, in ArcIMS, which we are
currently
using, all these image layers would have to be pre-loaded into the map;
this is
clearly out of the question. What we need to do is add and subtract
image
layers from the map on-the-fly, as a user pans or zooms around the map.
Is
this something that MapServer can do? Ideally, at the scale at which we
want
the DRGs to be displayed, portions of no more than 4 map tiles would be
displayed at any time.
Basically, ArcIMS defines the map once, with all its layers loaded.
Then,
for each user session, the map server sends out session data such as the
view
extent, which layers are on, etc. You can't redefine the map's layers
because
it involves a situation where each user would get a different map
definition
rather than a different instance of the same map. Is the the same way
thet
MapServer works?
Thanks,
-Steve
Stephen H. Savage, Ph.D.
Department of Anthropology
Box 872402
Arizona State University
Tempe, AZ 85287-2402
shsavage@asu.edu
http://archaeology.asu.edu/Jordan
----- End forwarded message -----
Stephen H. Savage, Ph.D.
Department of Anthropology
Box 872402
Arizona State University
Tempe, AZ 85287-2402
shsavage@asu.edu
http://archaeology.asu.edu/Jordan
----- End forwarded message -----
Stephen H. Savage, Ph.D.
Department of Anthropology
Box 872402
Arizona State University
Tempe, AZ 85287-2402
shsavage@asu.edu
http://archaeology.asu.edu/Jordan
----- End forwarded message -----
Stephen H. Savage, Ph.D.
Department of Anthropology
Box 872402
Arizona State University
Tempe, AZ 85287-2402
shsavage@asu.edu
http://archaeology.asu.edu/Jordan
----- End forwarded message -----
Stephen H. Savage, Ph.D.
Department of Anthropology
Box 872402
Arizona State University
Tempe, AZ 85287-2402
shsavage@asu.edu
http://archaeology.asu.edu/Jordan
_______________________________________________
Mapserver-users mailing list
Mapserver-users@lists.gis.umn.edu
http://lists.gis.umn.edu/mailman/listinfo/mapserver-users
From bitner@macnoise.com Thu Jul 1 14:59:26 2004
From: bitner@macnoise.com (David Bitner)
Date: Thu, 1 Jul 2004 08:59:26 -0500
Subject: [Mapserver-users] DRGs in MapServer
In-Reply-To: <1088686789.40e40ac5855d7@webmail.asu.edu>
Message-ID:
This can be done in both ArcIMS and in Mapserver.
In ArcIMS all you need to do is put all the DRGs in a directory and call it
as an Image Catalog and it will index and only read the images that are in
the current view (you can set min/max scale to limit when they are shown).
In Mapserver, you will need to create a tile index and then call that in
your map file. (Instructions here:
http://mapserver.gis.umn.edu/doc42/raster-howto.html#)
***********************************
David W Bitner
GIS Specialist
Metropolitan Airports Comission
-----Original Message-----
From: mapserver-users-admin@lists.gis.umn.edu
[mailto:mapserver-users-admin@lists.gis.umn.edu]On Behalf Of Stephen H.
Savage
Sent: Thursday, July 01, 2004 8:00 AM
To: mapserver-users@lists.gis.umn.edu
Subject: [Mapserver-users] DRGs in MapServer
Greetings,
In AZ we have nearly 2,000 DRG's at 1:24,000 scale. We would like to
have
these maps displayed as the background for our web site that serves
archaeological sites and projects. However, in ArcIMS, which we are
currently
using, all these image layers would have to be pre-loaded into the map; this
is
clearly out of the question. What we need to do is add and subtract image
layers from the map on-the-fly, as a user pans or zooms around the map. Is
this something that MapServer can do? Ideally, at the scale at which we
want
the DRGs to be displayed, portions of no more than 4 map tiles would be
displayed at any time.
Basically, ArcIMS defines the map once, with all its layers loaded.
Then,
for each user session, the map server sends out session data such as the
view
extent, which layers are on, etc. You can't redefine the map's layers
because
it involves a situation where each user would get a different map definition
rather than a different instance of the same map. Is the the same way thet
MapServer works?
Thanks,
-Steve
Stephen H. Savage, Ph.D.
Department of Anthropology
Box 872402
Arizona State University
Tempe, AZ 85287-2402
shsavage@asu.edu
http://archaeology.asu.edu/Jordan
----- End forwarded message -----
Stephen H. Savage, Ph.D.
Department of Anthropology
Box 872402
Arizona State University
Tempe, AZ 85287-2402
shsavage@asu.edu
http://archaeology.asu.edu/Jordan
----- End forwarded message -----
Stephen H. Savage, Ph.D.
Department of Anthropology
Box 872402
Arizona State University
Tempe, AZ 85287-2402
shsavage@asu.edu
http://archaeology.asu.edu/Jordan
----- End forwarded message -----
Stephen H. Savage, Ph.D.
Department of Anthropology
Box 872402
Arizona State University
Tempe, AZ 85287-2402
shsavage@asu.edu
http://archaeology.asu.edu/Jordan
----- End forwarded message -----
Stephen H. Savage, Ph.D.
Department of Anthropology
Box 872402
Arizona State University
Tempe, AZ 85287-2402
shsavage@asu.edu
http://archaeology.asu.edu/Jordan
_______________________________________________
Mapserver-users mailing list
Mapserver-users@lists.gis.umn.edu
http://lists.gis.umn.edu/mailman/listinfo/mapserver-users
From pdrake@gmail.com Thu Jul 1 14:58:48 2004
From: pdrake@gmail.com (Peter Drake)
Date: Thu, 1 Jul 2004 09:58:48 -0400
Subject: [Mapserver-users] mygis segfault
Message-ID: <6ca1256e040701065810b0d951@mail.gmail.com>
I am getting a segfault whenever I try to query a MySQL layer.
mapserver will display these layers fine but queries end up in a
segfault. I don't know enough about programming to find a solution to
the problem on my own. Can someone point me in the right direction?
Thanks!
Here is the command I am executing through gdb:
./map QUERY_STRING="map=/home/virtual/datashed.org/var/www/html/63data/sri.map&img.x=267&img.y=184&imgext=-175215.839633+222601.687635+-136511.908365+250694.301873&mode=nquery&zoomdir=&program=/cgi-bin/maps&map_web_imagepath=/home/virtual/datashed.org/var/www/html/gis/&map_web_imageurl=gis/&map_imagetype=jpeg80&qlayer=Projects+in+Progress"
The results returned (it fills out the query header template but then
segfaults before filling out the query template):
Content-type: text/html
Program received signal SIGSEGV, Segmentation fault.
0xb7115d33 in strlen () from /lib/tls/libc.so.6
The backtrace from gdb:
#0 0xb7115d33 in strlen () from /lib/tls/libc.so.6
#1 0xb7115a75 in strdup () from /lib/tls/libc.so.6
#2 0x08079723 in msMYGISLayerOpen (layer=0x8120874) at mapmygis.c:318
#3 0x0807bca6 in msLayerOpen (layer=0x8120874) at maplayer.c:150
#4 0x080595dc in msReturnQuery (msObj=0x8105e08,
pszMimeType=0x8127938 "text/html", papszBuffer=0x0) at maptemplate.c:2730
#5 0x0805313f in msReturnTemplateQuery (msObj=0x8105e08,
pszMimeType=0x8127938 "text/html", papszBuffer=0x0) at maptemplate.c:212
#6 0x0805074b in main (argc=-1227358200, argv=0xbfffe554) at mapserv.c:1338
From nacional@cbs.umn.edu Thu Jul 1 17:27:08 2004
From: nacional@cbs.umn.edu (Pericles Nacionales)
Date: Thu, 1 Jul 2004 11:27:08 -0500 (CDT)
Subject: [Mapserver-users] Timeout for wms layer
In-Reply-To: <40E3D798.4050601@svaj.dk>
References: <40E3D798.4050601@svaj.dk>
Message-ID:
Martin,
First, remove "http://localhost" from your client's IMAGEURL value. It
should be like this: IMAGEURL "/wms/ms_tmp/"
Also, remove "http://http://www.moeldrup.dk" from your server's IMAGEURL
path. It should be: IMAGEURL "/ms_tmp"
If that still doesn't work, review
http://mapserver.gis.umn.edu/doc42/wms-server-howto.html and
http://mapserver.gis.umn.edu/doc42/wms-client-howto.html.
Good luck!
-Perry
Pericles S. Nacionales
nacional@biosci.umn.edu
On Thu, 1 Jul 2004, [ISO-8859-1] Martin Høgh wrote:
> Dear List
>
> I've posted this message
> http://mapserver.gis.umn.edu/data2/wilma/mapserver-users/0406/msg00759.html
> earlier without much luck., so I'll try again.
>
> I'm trying to use Mapserver as a wms client for this server
> http://www.moeldrup.dk/scripts/mapserv.exe?map=d:/www/website/Ortofoto/moeldrup.map
> I am administrating this server so I can alter the settings if necessary.
>
> The problem is that when the layer from this server is requested by a
> Mapserver client it will timeout. A .img.tmp of 0k file is created and
> no errors from the client.
>
> I've tested with ms3.6.6 (both php/mapscript and cgi) on linux and ms4.0
> on winxp with same result
>
> The projection for all is set to "epsg:32632". But actually the data
> projected in a odd Danish system which can not be reprojected. But I
> believe that an epsg or auto code must be specified.
>
> My map-file (client)
>
> #
> # Start of map file
> #
>
> NAME Province
> STATUS ON
> SIZE 700 440
>
> EXTENT -277553.292530 232924.427400 -252200.662530 251396.532600
>
> UNITS METERS
> #SHAPEPATH "../data/grundkort"
> IMAGECOLOR 215 226 233
> FONTSET "../etc/fonts.txt"
> IMAGETYPE png
>
> PROJECTION
> "init=epsg:32632"
> END
>
> WEB
> #
> # On Windows systems, /tmp and /tmp/ms_tmp/ should be created at the root
> # of the drive where the .MAP file resides.
> #
> IMAGEPATH "C:\Programmer\EasyPHP1-7\www\wms\ms_tmp\"
> IMAGEURL "http://localhost/wms/ms_tmp/"
> LOG "C:\Programmer\EasyPHP1-7\www\wms\map.log"
>
> END
>
> LAYER
> NAME orto
> METADATA
> "wms_srs" "EPSG:32632"
> "wms_connectiontimeout" "15"
> END
> TYPE RASTER
> STATUS default
> CONNECTIONTYPE WMS
> CONNECTION
> "http://www.moeldrup.dk/scripts/mapserv.exe?map=d:/www/website/Ortofoto/moeldrup.map&WMTVER=1.0.0&FORMAT=image/jpeg&"
> END
> end #mapfile
>
> mapfile (server)
>
> #
> # Start of map file
> #
>
> NAME Moeldrup_WMS
> STATUS ON
> EXTENT -277553.292530 232924.427400 -252200.662530 251396.532600
>
> UNITS METERS
> #SHAPEPATH "../data/grundkort"
> IMAGECOLOR 255 255 255
> IMAGETYPE png
>
> PROJECTION
> "init=epsg:32632"
> END
>
> SIZE 700 440
> #
> # Start of web interface definition
> #
> # On Windows systems, /tmp and /tmp/ms_tmp/ should be created at the root
> # of the drive where the .MAP file resides.
> #
> web
> IMAGEPATH "D:\www\website\ms_tmp\"
> IMAGEURL "http://http://www.moeldrup.dk/ms_tmp/"
> LOG "map.log"
>
> METADATA
> "wms_title" "Møldrup ortofoto WMS server"
> "wms_onlineresource"
> "http://www.moeldrup.dk/scripts/mapserv.exe?map=d:/www/website/Ortofoto/moeldrup.map&WMTVER=1.0.0&"
> "wms_srs" "EPSG:32632"
> END
> END
>
>
> #
> # Start of layer definitions
> #
>
> LAYER
> NAME "Ortofoto"
> STATUS default
> TILEINDEX "KX-1569_Index.shp"
> TILEITEM "location"
> TYPE RASTER
> PROJECTION
> "init=epsg:32632"
> END
> END
> END # Map File
>
> Best regards
>
> Martin
>
>
>
>
> _______________________________________________
> Mapserver-users mailing list
> Mapserver-users@lists.gis.umn.edu
> http://lists.gis.umn.edu/mailman/listinfo/mapserver-users
>
From nacional@cbs.umn.edu Thu Jul 1 18:04:23 2004
From: nacional@cbs.umn.edu (Pericles Nacionales)
Date: Thu, 1 Jul 2004 12:04:23 -0500 (CDT)
Subject: [Mapserver-users] Timeout for wms layer
In-Reply-To:
References: <40E3D798.4050601@svaj.dk>
Message-ID:
Oops! A small error on my previous post, your WMS server's IMAGEURL
should be "/ms_tmp/", with the slash at the end. It's required.
-Perry
On Thu, 1 Jul 2004, Pericles Nacionales wrote:
> Martin,
>
> First, remove "http://localhost" from your client's IMAGEURL value. It
> should be like this: IMAGEURL "/wms/ms_tmp/"
>
> Also, remove "http://http://www.moeldrup.dk" from your server's IMAGEURL
> path. It should be: IMAGEURL "/ms_tmp"
>
> If that still doesn't work, review
> http://mapserver.gis.umn.edu/doc42/wms-server-howto.html and
> http://mapserver.gis.umn.edu/doc42/wms-client-howto.html.
>
> Good luck!
> -Perry
>
> Pericles S. Nacionales
> nacional@biosci.umn.edu
>
>
> On Thu, 1 Jul 2004, [ISO-8859-1] Martin Høgh wrote:
>
> > Dear List
> >
> > I've posted this message
> > http://mapserver.gis.umn.edu/data2/wilma/mapserver-users/0406/msg00759.html
> > earlier without much luck., so I'll try again.
> >
> > I'm trying to use Mapserver as a wms client for this server
> > http://www.moeldrup.dk/scripts/mapserv.exe?map=d:/www/website/Ortofoto/moeldrup.map
> > I am administrating this server so I can alter the settings if necessary.
> >
> > The problem is that when the layer from this server is requested by a
> > Mapserver client it will timeout. A .img.tmp of 0k file is created and
> > no errors from the client.
> >
> > I've tested with ms3.6.6 (both php/mapscript and cgi) on linux and ms4.0
> > on winxp with same result
> >
> > The projection for all is set to "epsg:32632". But actually the data
> > projected in a odd Danish system which can not be reprojected. But I
> > believe that an epsg or auto code must be specified.
> >
> > My map-file (client)
> >
> > #
> > # Start of map file
> > #
> >
> > NAME Province
> > STATUS ON
> > SIZE 700 440
> >
> > EXTENT -277553.292530 232924.427400 -252200.662530 251396.532600
> >
> > UNITS METERS
> > #SHAPEPATH "../data/grundkort"
> > IMAGECOLOR 215 226 233
> > FONTSET "../etc/fonts.txt"
> > IMAGETYPE png
> >
> > PROJECTION
> > "init=epsg:32632"
> > END
> >
> > WEB
> > #
> > # On Windows systems, /tmp and /tmp/ms_tmp/ should be created at the root
> > # of the drive where the .MAP file resides.
> > #
> > IMAGEPATH "C:\Programmer\EasyPHP1-7\www\wms\ms_tmp\"
> > IMAGEURL "http://localhost/wms/ms_tmp/"
> > LOG "C:\Programmer\EasyPHP1-7\www\wms\map.log"
> >
> > END
> >
> > LAYER
> > NAME orto
> > METADATA
> > "wms_srs" "EPSG:32632"
> > "wms_connectiontimeout" "15"
> > END
> > TYPE RASTER
> > STATUS default
> > CONNECTIONTYPE WMS
> > CONNECTION
> > "http://www.moeldrup.dk/scripts/mapserv.exe?map=d:/www/website/Ortofoto/moeldrup.map&WMTVER=1.0.0&FORMAT=image/jpeg&"
> > END
> > end #mapfile
> >
> > mapfile (server)
> >
> > #
> > # Start of map file
> > #
> >
> > NAME Moeldrup_WMS
> > STATUS ON
> > EXTENT -277553.292530 232924.427400 -252200.662530 251396.532600
> >
> > UNITS METERS
> > #SHAPEPATH "../data/grundkort"
> > IMAGECOLOR 255 255 255
> > IMAGETYPE png
> >
> > PROJECTION
> > "init=epsg:32632"
> > END
> >
> > SIZE 700 440
> > #
> > # Start of web interface definition
> > #
> > # On Windows systems, /tmp and /tmp/ms_tmp/ should be created at the root
> > # of the drive where the .MAP file resides.
> > #
> > web
> > IMAGEPATH "D:\www\website\ms_tmp\"
> > IMAGEURL "http://http://www.moeldrup.dk/ms_tmp/"
> > LOG "map.log"
> >
> > METADATA
> > "wms_title" "Møldrup ortofoto WMS server"
> > "wms_onlineresource"
> > "http://www.moeldrup.dk/scripts/mapserv.exe?map=d:/www/website/Ortofoto/moeldrup.map&WMTVER=1.0.0&"
> > "wms_srs" "EPSG:32632"
> > END
> > END
> >
> >
> > #
> > # Start of layer definitions
> > #
> >
> > LAYER
> > NAME "Ortofoto"
> > STATUS default
> > TILEINDEX "KX-1569_Index.shp"
> > TILEITEM "location"
> > TYPE RASTER
> > PROJECTION
> > "init=epsg:32632"
> > END
> > END
> > END # Map File
> >
> > Best regards
> >
> > Martin
> >
> >
> >
> >
> > _______________________________________________
> > Mapserver-users mailing list
> > Mapserver-users@lists.gis.umn.edu
> > http://lists.gis.umn.edu/mailman/listinfo/mapserver-users
> >
>
> _______________________________________________
> Mapserver-users mailing list
> Mapserver-users@lists.gis.umn.edu
> http://lists.gis.umn.edu/mailman/listinfo/mapserver-users
>
From DOtt@PALATINE.IL.US Thu Jul 1 18:16:18 2004
From: DOtt@PALATINE.IL.US (Dale Ott)
Date: Thu, 01 Jul 2004 12:16:18 -0500
Subject: [Mapserver-users] Re: Mapserver-users digest, Vol 1 #569 - 17 msgs (Auto Reply.)
Message-ID:
Sorry but I will be out of the Office until Tuesday, July 6th, 2004 . I will be checking my email as soon as I return and will get back to you as soon as possible. Sorry for any inconvenience. Thanks!
From eduardo@consultoria.eti.br Thu Jul 1 21:59:02 2004
From: eduardo@consultoria.eti.br (Eduardo Patto Kanegae)
Date: Thu, 01 Jul 2004 17:59:02 -0300
Subject: [Mapserver-users] can't view 2 WMS layers(from 2 different servers)
Message-ID: <40E47B16.9000109@consultoria.eti.br>
Hi,
I set up two WMS mapfile server and installed Intereoperability Tools
for ArcGIS 8.x but I can't view the both layers together in ArcGIS ( one
over the other - one is a point layer and the other is polygon layer).
Here's the first mapfile:
1 --------------
MAP
NAME "wmsserver"
EXTENT -73.991 -33.751 -32.378 5.272
SHAPEPATH "C:/local/mapas/mapasBrasil/"
SIZE 600 400
IMAGECOLOR -1 -1 -1
IMAGETYPE PNG
OUTPUTFORMAT
NAME PNG
DRIVER "GD/PNG"
MIMETYPE "image/png"
IMAGEMODE PC256
EXTENSION "png"
TRANSPARENT ON
END
PROJECTION
"init=epsg:4291"
END
WEB
METADATA
"wms_title" "Teste1"
"wms_onlineresource"
"http://localhost/cgi-bin/mapserv.exe?map=C:/local/web/testewms/wms1.map&"
"wms_srs" "EPSG:4291"
END
END
LAYER
NAME "estados"
PROJECTION
"init=epsg:4291"
END
METADATA
"wms_title" "Estados"
"wms_srs" "EPSG:4291"
"wms_group_title" "Todos"
END
TRANSPARENCY 50
TYPE POLYGON
DATA "br_uf"
CLASS
COLOR 128 128 192
OUTLINECOLOR 0 0 0
END
DUMP TRUE
END
END
------------------
and here's the 2nd one:
2-----------
MAP
NAME "wmsserver"
EXTENT -73.991 -33.751 -32.378 5.272
SHAPEPATH "C:/local/mapas/mapasBrasil/"
SIZE 600 400
IMAGECOLOR -1 -1 -1
IMAGETYPE PNG
OUTPUTFORMAT
NAME PNG
DRIVER "GD/PNG"
MIMETYPE "image/png"
IMAGEMODE PC256
EXTENSION "png"
TRANSPARENT ON
END
PROJECTION
"init=epsg:4291"
END
WEB
METADATA
"wms_title" "Teste2"
"wms_onlineresource"
"http://localhost/cgi-bin/mapserv.exe?map=C:/local/web/testewms/wms2.map&"
"wms_srs" "EPSG:4291"
END
END
SYMBOL
NAME 'ponto'
TYPE ELLIPSE
FILLED TRUE
POINTS
1 1
END
END
LAYER
DUMP TRUE
NAME "sedes"
PROJECTION
"init=epsg:4291"
END
METADATA
"wms_title" "Sedes"
"wms_srs" "EPSG:4291"
"wms_group_title" "Todos"
END
TYPE POINT
DATA "br_sede"
TRANSPARENCY 50
CLASS
COLOR 255 0 0
OUTLINECOLOR 255 0 0
SYMBOL "ponto"
SIZE 2
END
END
END
------------
in ArcGIS when I load
http://localhost/cgi-bin/mapserv.exe?map=C:/local/web/testewms/wms1.map&
and
http://localhost/cgi-bin/mapserv.exe?map=C:/local/web/testewms/wms2.map&
connection I can't view one over the other. only top layer appears.
what is wrong?
--
Eduardo Patto Kanegae
http://www.consultoria.eti.br
UIN: 303747254
Treinamento em UMN MapServer - http://www.consultoria.eti.br/ptbr/?menuoption=mapserver
I Encontro Nacional de Usuários MapServer - http://mapserver.cttmar.univali.br/encontro2004
Fórum MapServer Brasil - http://mapserver.cttmar.univali.br/forum
***Fim da Mensagem / End of Message ***
From william@javamonkeys.co.uk Thu Jul 1 22:01:53 2004
From: william@javamonkeys.co.uk (William White)
Date: Thu, 01 Jul 2004 22:01:53 +0100
Subject: [Mapserver-users] SLD and mapserver...
Message-ID: <40E47BC1.5010509@javamonkeys.co.uk>
Hello mapserver enthusiasts,
I am interested in displaying a very simple world political map on my
global financial markets page
(http://www.zenfinder.com/finance/globalMarkets.php). I would like to
fill specific countries with different colours based upon the percentage
change of that country's major securities index.
From what I can gather - I should be able to do this pretty easily
using SLD, assuming I can find a server with a world politcal map which
supports SLD for that particular layer.
I found a world political map that appears to have SLD enabled:
http://www2.dmsolutions.ca/cgi-bin/mswms_world?SERVICE=WMS&VeRsIoN=1.1.1&Request=GetMap&LAYERS=WorldPolitical
but when I pass in my XML doc (see below) it doesn't appear to be
working. My syntax may be incorrect or potentially this server does not
accept this type of SLD? I am assuming if I download the mapserver
software, I should be able to render the desired map on my home computer
but I would much prefer to be able to leverage an existing server.
Since my requirements are quite simple (I just need to be able to colour
a world map) - I am hoping there is an existing server which I can
reference and simply pass in the various style descriptors (of the
countries that need to be filled in) via the querystring or an xml doc
referenced in the querystring.
Does anyone know of a server that would allow me to do this/what I'm
doing wrong with this one? Any guidance or advice regarding this or
perhaps a simpler solution would be extremely appreciated!!!
Thanks in advance.
William.
This is the xml doc I'm currently passing in as an SLD.
WorldPolitical
StyleName1
NAME
'Brazil'
NAME
'Canada'
#FF0000
1.0
#FF0000
1.0
1
butt
From tjmitchell@riverside.bc.ca Fri Jul 2 00:04:01 2004
From: tjmitchell@riverside.bc.ca (Tyler Mitchell)
Date: Thu, 1 Jul 2004 16:04:01 -0700
Subject: [Mapserver-users] wms server projection
In-Reply-To: <200407010948.14168.sp_ml@sourcepole.com>
Message-ID:
I'm not exactly sure what you mean, but maybe this will help.
Are you only using EPSG codes in your PROJECTION objects of the map file?
You don't have to! You can use all the parameters that an EPSG
encapsulates. For example, these two entries are identical:
PROJECTION
"proj=omerc"
"lat_0=46.9524056"
"lon_c=7.4395833"
"alpha=90"
"k=1"
"x_0=600000"
"y_0=200000"
"ellps=bessel"
"units=m"
"no_defs"
END
PROJECTION
"init=EPSG:21781"
END
You can see why the later is often used :)
You should then be able to modify any of those parameters to suit your
likings.
Hope that helps.
Tyler
mapserver-users-admin@lists.gis.umn.edu wrote on 07/01/2004 12:48:14 AM:
> Hi all
>
> I have a umn mapserver 4.2 wms-server and chameleon.
> I would include a layer of this wms server. The projection of the
> layer has an
> alpha value of 90 (init=epsg:21781), which produces an error.
> <21781> +proj=omerc +lat_0=46.95240555555556
+lonc=7.439583333333333+alpha=90
> +k=1 +x_0=600000 +y_0=200000 +ellps=bessel +units=m +no_defs no_defs <>
>
> so I would change the alpha value to 89, but how can I include the
> projection
> in the mapfile withaout an entry like
> "init=epsg:21781"
> ?
>
> Is it possible to create my own projection in the web part of the
mapfile?
> Should I create an own file with my own projection like a 'epsg',
'esri', ...
> file (the server and the client could then use the same projection
file)?
>
> Which is the best way?
>
> Thanks in advance
>
> Markus Schnider
>
> PS: Chameleon or the wms-server works at this time only if the
alphavalue is
> different of 90. So I changed the projection to this values.
> _______________________________________________
> Mapserver-users mailing list
> Mapserver-users@lists.gis.umn.edu
> http://lists.gis.umn.edu/mailman/listinfo/mapserver-users
From tjmitchell@riverside.bc.ca Fri Jul 2 00:31:27 2004
From: tjmitchell@riverside.bc.ca (Tyler Mitchell)
Date: Thu, 1 Jul 2004 16:31:27 -0700
Subject: [Mapserver-users] projection problems
In-Reply-To: <20040701003844.91510.qmail@web15206.mail.bjs.yahoo.com>
Message-ID:
Were you able to get it working without using any projection settings?
That's what I would try first.
[It also looks like you've had some trouble getting the tab file to load,
you may want to reference this document for some more discussion/examples
on using them.
http://www.maptools.org/dl_scripts/redirector.php?path=omsug/osgis2004/MsTutorialGuide.doc]
Here's the stripped down map file I would try:
> Layer name: TopographicArea_area
> Extent: (350137.990000, 168102.400000) - (356541.550000, 174643.090000)
> MAP
> IMAGETYPE PNG
> EXTENT 350137.990000 168102.400000 356541.550000 174643.090000
> SIZE 1000 1000
> IMAGECOLOR 255 255 255
> WEB
> IMAGEPATH "/Proj/img/"
> IMAGEURL "/img/"
> END
> # Start of LAYER DEFINITIONS
---------------------------------------------
> LAYER # States polygon layer begins here
> NAME TopographicArea_area
> DATA TopographicArea_area
> STATUS ON
> TYPE POLYGON
> CLASS
> COLOR 180 180 0
> OUTLINECOLOR 32 32 32
> END
> END # States polygon layer ends here
> # End of LAYER DEFINITIONS -------------------------------
> END # end of map file/object
From Tom.Kralidis@ec.gc.ca Fri Jul 2 03:51:09 2004
From: Tom.Kralidis@ec.gc.ca (Kralidis,Tom [Burlington])
Date: Thu, 1 Jul 2004 22:51:09 -0400
Subject: [Mapserver-users] SLD and mapserver...
Message-ID: <2576812186CDD411BF1500508B6DCE9507367139@ecnwri1.ontario.int.ec.gc.ca>
This is a multi-part message in MIME format.
------_=_NextPart_001_01C45FDF.6DA8A342
Content-Type: text/plain;
charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
> -----Original Message-----
> From: mapserver-users-admin@lists.gis.umn.edu=20
> [mailto:mapserver-users-admin@lists.gis.umn.edu] On Behalf Of=20
> William White
> Sent: Thursday, July 01, 2004 5:02 PM
> To: mapserver-users@lists.gis.umn.edu
> Subject: [Mapserver-users] SLD and mapserver...
>=20
>=20
> Hello mapserver enthusiasts,
>=20
> I am interested in displaying a very simple world political map on my=20
> global financial markets page=20
> (http://www.zenfinder.com/finance/globalMarkets.php). I=20
> would like to=20
> fill specific countries with different colours based upon the=20
> percentage=20
> change of that country's major securities index.
> From what I can gather - I should be able to do this pretty easily=20
> using SLD, assuming I can find a server with a world politcal=20
> map which=20
> supports SLD for that particular layer.
>=20
> I found a world political map that appears to have SLD enabled:
>=20
> http://www2.dmsolutions.ca/cgi-bin/mswms_world?SERVICE=3DWMS&VeR
> sIoN=3D1.1.1&Request=3DGetMap&LAYERS=3DWorldPolitical=20
>=20
>=20
> but when I pass in my XML doc (see below) it doesn't appear to be=20
> working. My syntax may be incorrect or potentially this=20
> server does not=20
> accept this type of SLD? I am assuming if I download the mapserver=20
> software, I should be able to render the desired map on my=20
> home computer=20
> but I would much prefer to be able to leverage an existing server.=20
Very good choice!
> Since my requirements are quite simple (I just need to be=20
> able to colour=20
> a world map) - I am hoping there is an existing server which I can=20
> reference and simply pass in the various style descriptors (of the=20
> countries that need to be filled in) via the querystring or=20
> an xml doc=20
> referenced in the querystring.
>=20
> Does anyone know of a server that would allow me to do this/what I'm=20
> doing wrong with this one? Any guidance or advice regarding this or=20
> perhaps a simpler solution would be extremely appreciated!!!
>=20
A couple of issues:
- you don't need the 'sld:' prefix in your XML elements. The default
namespace of the SLD document should be the same as xmlns:sld
- you don't need to put quotes around the Literal values
I've attached a file which works with this WMS if you pass, along with
your GetMap request:
"SLD=3D"
> Thanks in advance.
>=20
> William.
>=20
> This is the xml doc I'm currently passing in as an SLD.
> =20
> xmlns:sld=3D"http://www.opengis.net/sld"=20
> xmlns:ogc=3D"http://www.opengis.net/ogc"=20
> xmlns:gml=3D"http://www.opengis.net/gml"=20
> xmlns:xsi=3D"http://www.w3.org/2001/XMLSchema-instance">
>
> WorldPolitical
>
> StyleName1
>
>
>
>
> NAME
> 'Brazil'
>
> NAME
> 'Canada'
>
>
>
>
>
> #FF0000
> 1.0
>
>
> #FF0000
> 1.0
> 1
> butt
>
>
>
>
>
>
>
>=20
>=20
>=20
> _______________________________________________
> Mapserver-users mailing list
> Mapserver-users@lists.gis.umn.edu=20
> http://lists.gis.umn.edu/mailman/listinfo/maps> erver-users
>=20
------_=_NextPart_001_01C45FDF.6DA8A342
Content-Type: application/octet-stream;
name="world_filter.sld"
Content-Transfer-Encoding: base64
Content-Description: world_filter.sld
Content-Disposition: attachment;
filename="world_filter.sld"
PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4NCjxTdHlsZWRMYXllckRlc2Ny
aXB0b3IgdmVyc2lvbj0iMS4wLjAiIHhtbG5zPSJodHRwOi8vd3d3Lm9wZW5naXMubmV0L3NsZCIg
eG1sbnM6b2djPSJodHRwOi8vd3d3Lm9wZW5naXMubmV0L29nYyIgeG1sbnM6eGxpbms9Imh0dHA6
Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHhtbG5zOnhzaT0iaHR0cDovL3d3dy53My5vcmcvMjAw
MS9YTUxTY2hlbWEtaW5zdGFuY2UiIHhzaTpzY2hlbWFMb2NhdGlvbj0iaHR0cDovL3d3dy5vcGVu
Z2lzLm5ldC9zbGQgaHR0cDovL3NjaGVtYXMub3Blbmdpcy5uZXQvc2xkLzEuMC4wL1N0eWxlZExh
eWVyRGVzY3JpcHRvci54c2QiPg0KICAgICAgICA8TmFtZWRMYXllcj4NCiAgICAgICAgICAgICAg
ICA8TmFtZT5Xb3JsZFBvbGl0aWNhbDwvTmFtZT4NCiAgICAgICAgICAgICAgICA8VXNlclN0eWxl
Pg0KICAgICAgICAgICAgICAgICAgICAgICAgPE5hbWU+U3R5bGVOYW1lMTwvTmFtZT4NCiAgICAg
ICAgICAgICAgICAgICAgICAgIDxGZWF0dXJlVHlwZVN0eWxlPg0KICAgICAgICAgICAgICAgICAg
ICAgICAgICAgICAgICA8UnVsZT4NCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg
ICAgICA8b2djOkZpbHRlcj4NCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg
ICAgICAgICAgIDxvZ2M6T3I+DQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg
ICAgICAgICAgICAgICAgICAgIDxvZ2M6UHJvcGVydHlJc0VxdWFsVG8+DQogICAgICAgICAgICAg
ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPG9nYzpQ
cm9wZXJ0eU5hbWU+TkFNRTwvb2djOlByb3BlcnR5TmFtZT4NCiAgICAgICAgICAgICAgICAgICAg
ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8b2djOkxpdGVyYWw+
QnJhemlsPC9vZ2M6TGl0ZXJhbD4NCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg
ICAgICAgICAgICAgICAgICAgICAgPC9vZ2M6UHJvcGVydHlJc0VxdWFsVG8+DQogICAgICAgICAg
ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxvZ2M6UHJvcGVy
dHlJc0VxdWFsVG8+DQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg
ICAgICAgICAgICAgICAgICAgICAgPG9nYzpQcm9wZXJ0eU5hbWU+TkFNRTwvb2djOlByb3BlcnR5
TmFtZT4NCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg
ICAgICAgICAgICAgICA8b2djOkxpdGVyYWw+Q2FuYWRhPC9vZ2M6TGl0ZXJhbD4NCiAgICAgICAg
ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPC9vZ2M6UHJv
cGVydHlJc0VxdWFsVG8+DQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg
ICAgICAgICA8L29nYzpPcj4NCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg
ICA8L29nYzpGaWx0ZXI+DQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg
PFBvbHlnb25TeW1ib2xpemVyPg0KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg
ICAgICAgICAgICAgPEZpbGw+DQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg
ICAgICAgICAgICAgICAgICAgIDxDc3NQYXJhbWV0ZXIgbmFtZT0iZmlsbCI+I0ZGMDAwMDwvQ3Nz
UGFyYW1ldGVyPg0KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg
ICAgICAgICAgICA8Q3NzUGFyYW1ldGVyIG5hbWU9ImZpbGwtb3BhY2l0eSI+MS4wPC9Dc3NQYXJh
bWV0ZXI+DQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8
L0ZpbGw+DQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8
U3Ryb2tlPg0KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg
ICAgICAgICA8Q3NzUGFyYW1ldGVyIG5hbWU9InN0cm9rZSI+I0ZGMDAwMDwvQ3NzUGFyYW1ldGVy
Pg0KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg
ICA8Q3NzUGFyYW1ldGVyIG5hbWU9InN0cm9rZS1vcGFjaXR5Ij4xLjA8L0Nzc1BhcmFtZXRlcj4N
CiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg
PENzc1BhcmFtZXRlciBuYW1lPSJzdHJva2Utd2lkdGgiPjE8L0Nzc1BhcmFtZXRlcj4NCiAgICAg
ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPENzc1Bh
cmFtZXRlciBuYW1lPSJzdHJva2UtbGluZWNhcCI+YnV0dDwvQ3NzUGFyYW1ldGVyPg0KICAgICAg
ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPC9TdHJva2U+DQogICAg
ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPC9Qb2x5Z29uU3ltYm9saXplcj4N
CiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPC9SdWxlPg0KICAgICAgICAgICAgICAg
ICAgICAgICAgPC9GZWF0dXJlVHlwZVN0eWxlPg0KICAgICAgICAgICAgICAgIDwvVXNlclN0eWxl
Pg0KICAgICAgICA8L05hbWVkTGF5ZXI+DQo8L1N0eWxlZExheWVyRGVzY3JpcHRvcj4=
------_=_NextPart_001_01C45FDF.6DA8A342--
From Geoffrey.Tuckerman@ga.gov.au Fri Jul 2 06:06:06 2004
From: Geoffrey.Tuckerman@ga.gov.au (Geoffrey.Tuckerman@ga.gov.au)
Date: Fri, 2 Jul 2004 15:06:06 +1000
Subject: [Mapserver-users] Dynamically change FILTER object using OGR connection to Oracle Spatial
Message-ID: <777867D84476EF4699A89D95064E89240164FF5A@mail1.agso.gov.au>
This is a multi-part message in MIME format.
------_=_NextPart_001_01C45FF2.47CA4D42
Content-Type: text/plain;
charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
We currently can dynamically change the FILTER object in the map file =
when
using a shapefile, however when we use the same code to change the =
FILTER
object when connected to an Oracle database it doesn't do anything. The
FILTER object is being used to draw the map if you hard code the =
FILTERITEM
and FILTER objects in the map file (and displays correctly) but nothing
happens at all when it is changed dynamically.
=20
Eg in the map file the following displays the two geometries for the =
enos
given. The connection type is OGR to an Oracle database with the DATA =
object
being an SQL statement to select the geometry field and a unique number =
(ie
eno) identifying the row. LAYER "surveys" FILTERITEM "eno" FILTER
/51378|51397/
=20
But when we use the dynamic call
"mapserv?map=3Dmars.map&layer=3Dsurveys&template=3Dframe_map.html&map_sur=
veys_filte
r=3D/51397/", it continues to draw both the geometries given in the map =
file
and not draw only the geometry given in the call above.
=20
Does anyone know if changing the FILTER object dynamically only works =
when
the data is coming from a shapefile?=20
Or does it work direct from the database but we have it wrong somehow?
=20
=20
=20
------_=_NextPart_001_01C45FF2.47CA4D42
Content-Type: text/html;
charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
We currently can =
dynamically
change the FILTER object in the map file when using a shapefile, however =
when
we use the same code to change the FILTER object when connected to an =
Oracle
database it doesn't do anything. The FILTER object is being used to draw =
the
map if you hard code the FILTERITEM and FILTER objects in the map file =
(and
displays correctly) but nothing happens at all when it is changed =
dynamically.
Eg in the map file =
the
following displays the two geometries for the enos given. The connection =
type
is OGR to an Oracle database with the DATA object being an SQL statement =
to
select the geometry field and a unique number (ie eno) identifying the =
row.
LAYER "surveys" FILTERITEM "eno" FILTER =
/51378|51397/
But when we use the =
dynamic
call =
"mapserv?map=3Dmars.map&layer=3Dsurveys&template=3Dframe_map=
.html&map_surveys_filter=3D/51397/",
it continues to draw both the geometries given in the map file and not =
draw
only the geometry given in the call above.
Does anyone know if =
changing
the FILTER object dynamically only works when the data is coming from a =
shapefile?
Or does it work =
direct from
the database but we have it wrong somehow?
=00
------_=_NextPart_001_01C45FF2.47CA4D42--
From bartvde@xs4all.nl Fri Jul 2 07:00:15 2004
From: bartvde@xs4all.nl (bartvde@xs4all.nl)
Date: Fri, 2 Jul 2004 08:00:15 +0200 (CEST)
Subject: [Mapserver-users] can't view 2 WMS layers(from 2 different
servers)
In-Reply-To: <40E47B16.9000109@consultoria.eti.br>
References: <40E47B16.9000109@consultoria.eti.br>
Message-ID: <15476.212.238.227.182.1088748015.squirrel@webmail.xs4all.nl>
Hi,
Can you check which format ArcGIS is requesting, e.g. by logging the
GetMap URL? Maybe it is requesting the images in jpeg?
Best regards,
Bart
> Hi,
>
> I set up two WMS mapfile server and installed Intereoperability Tools
> for ArcGIS 8.x but I can't view the both layers together in ArcGIS ( one
> over the other - one is a point layer and the other is polygon layer).
>
> Here's the first mapfile:
>
> 1 --------------
> MAP
> NAME "wmsserver"
> EXTENT -73.991 -33.751 -32.378 5.272
> SHAPEPATH "C:/local/mapas/mapasBrasil/"
> SIZE 600 400
> IMAGECOLOR -1 -1 -1
> IMAGETYPE PNG
> OUTPUTFORMAT
> NAME PNG
> DRIVER "GD/PNG"
> MIMETYPE "image/png"
> IMAGEMODE PC256
> EXTENSION "png"
> TRANSPARENT ON
> END
> PROJECTION
> "init=epsg:4291"
> END
>
> WEB
> METADATA
> "wms_title" "Teste1"
> "wms_onlineresource"
> "http://localhost/cgi-bin/mapserv.exe?map=C:/local/web/testewms/wms1.map&"
> "wms_srs" "EPSG:4291"
> END
> END
>
>
> LAYER
> NAME "estados"
> PROJECTION
> "init=epsg:4291"
> END
> METADATA
> "wms_title" "Estados"
> "wms_srs" "EPSG:4291"
> "wms_group_title" "Todos"
> END
> TRANSPARENCY 50
> TYPE POLYGON
> DATA "br_uf"
> CLASS
> COLOR 128 128 192
> OUTLINECOLOR 0
> END
> DUMP TRUE
> END
>
>
>
> END
> ------------------
>
> and here's the 2nd one:
>
> 2-----------
> MAP
> NAME "wmsserver"
> EXTENT -73.991 -33.751 -32.378 5.272
> SHAPEPATH "C:/local/mapas/mapasBrasil/"
> SIZE 600 400
> IMAGECOLOR -1 -1 -1
> IMAGETYPE PNG
> OUTPUTFORMAT
> NAME PNG
> DRIVER "GD/PNG"
> MIMETYPE "image/png"
> IMAGEMODE PC256
> EXTENSION "png"
> TRANSPARENT ON
> END
> PROJECTION
> "init=epsg:4291"
> END
>
> WEB
> METADATA
> "wms_title" "Teste2"
> "wms_onlineresource"
> "http://localhost/cgi-bin/mapserv.exe?map=C:/local/web/testewms/wms2.map&"
> "wms_srs" "EPSG:4291"
> END
> END
>
> SYMBOL
> NAME 'ponto'
> TYPE ELLIPSE
> FILLED TRUE
> POINTS
> 1 1
> END
> END
>
> LAYER
> DUMP TRUE
> NAME "sedes"
> PROJECTION
> "init=epsg:4291"
> END
> METADATA
> "wms_title" "Sedes"
> "wms_srs" "EPSG:4291"
> "wms_group_title" "Todos"
> END
> TYPE POINT
> DATA "br_sede"
> TRANSPARENCY 50
> CLASS
> COLOR 255 0
> OUTLINECOLOR 255 0
> SYMBOL "ponto"
> SIZE 2
> END
> END
>
> END
> ------------
>
> in ArcGIS when I load
> http://localhost/cgi-bin/mapserv.exe?map=C:/local/web/testewms/wms1.map&
> and
> http://localhost/cgi-bin/mapserv.exe?map=C:/local/web/testewms/wms2.map&
> connection I can't view one over the other. only top layer appears.
>
> what is wrong?
>
> --
> Eduardo Patto Kanegae
> http://www.consultoria.eti.br
> UIN: 303747254
>
>
> Treinamento em UMN MapServer -
> http://www.consultoria.eti.br/ptbr/?menuoption=mapserver
> I Encontro Nacional de Usuários MapServer -
> http://mapserver.cttmar.univali.br/encontro2004
> Fórum MapServer Brasil - http://mapserver.cttmar.univali.br/forum
>
>
From sp_ml@sourcepole.com Fri Jul 2 07:09:50 2004
From: sp_ml@sourcepole.com (Markus Schnider)
Date: Fri, 2 Jul 2004 08:09:50 +0200
Subject: [Mapserver-users] wms server projection
In-Reply-To:
References:
Message-ID: <200407020809.50375.sp_ml@sourcepole.com>
Thanks
This works fine.
The it exists also a WEB part. I would write the projection like you wrote in
the WEB part:
WEB
IMAGEPATH "/var/lib/gisdata/ms_tmp/"
IMAGEURL "/ms_tmp/"
MINSCALE 25000
METADATA
"WMS_TITLE" "WMS test"
"WMS_ABSTRACT" "test on postgis"
"WMS_ACCESSCONSTRAINTS" none
"wms_onlineresource" "http://something/cgi-bin/wms?"
"wms_srs" "EPSG:4326 AUTO:42001"
END
#QUERYFORMAT text/html # version 4.2 of mapserver
END
I mean: How could I write my own projection with the variabel WMS_SRS?
Or: Do I need this entry?
Thanks
Markus Schnider
On Friday 02 July 2004 01:04, Tyler Mitchell wrote:
> I'm not exactly sure what you mean, but maybe this will help.
>
> Are you only using EPSG codes in your PROJECTION objects of the map file?
> You don't have to! You can use all the parameters that an EPSG
> encapsulates. For example, these two entries are identical:
>
> PROJECTION
> "proj=omerc"
> "lat_0=46.9524056"
> "lon_c=7.4395833"
> "alpha=90"
> "k=1"
> "x_0=600000"
> "y_0=200000"
> "ellps=bessel"
> "units=m"
> "no_defs"
> END
>
>
> PROJECTION
> "init=EPSG:21781"
> END
>
> You can see why the later is often used :)
>
> You should then be able to modify any of those parameters to suit your
> likings.
>
> Hope that helps.
> Tyler
>
> mapserver-users-admin@lists.gis.umn.edu wrote on 07/01/2004 12:48:14 AM:
> > Hi all
> >
> > I have a umn mapserver 4.2 wms-server and chameleon.
> > I would include a layer of this wms server. The projection of the
> > layer has an
> > alpha value of 90 (init=epsg:21781), which produces an error.
> > <21781> +proj=omerc +lat_0=46.95240555555556
>
> +lonc=7.439583333333333+alpha=90
>
> > +k=1 +x_0=600000 +y_0=200000 +ellps=bessel +units=m +no_defs no_defs <>
> >
> > so I would change the alpha value to 89, but how can I include the
> > projection
> > in the mapfile withaout an entry like
> > "init=epsg:21781"
> > ?
> >
> > Is it possible to create my own projection in the web part of the
>
> mapfile?
>
> > Should I create an own file with my own projection like a 'epsg',
>
> 'esri', ...
>
> > file (the server and the client could then use the same projection
>
> file)?
>
> > Which is the best way?
> >
> > Thanks in advance
> >
> > Markus Schnider
> >
> > PS: Chameleon or the wms-server works at this time only if the
>
> alphavalue is
>
> > different of 90. So I changed the projection to this values.
> > _______________________________________________
> > Mapserver-users mailing list
> > Mapserver-users@lists.gis.umn.edu
> > http://lists.gis.umn.edu/mailman/listinfo/mapserver-users
>
> _______________________________________________
> Mapserver-users mailing list
> Mapserver-users@lists.gis.umn.edu
> http://lists.gis.umn.edu/mailman/listinfo/mapserver-users
From gheysen.t@skynet.be Fri Jul 2 09:58:15 2004
From: gheysen.t@skynet.be (gheysen.t@skynet.be)
Date: Fri, 02 Jul 2004 10:58:15 +0200
Subject: [Mapserver-users] Convert bil to tif with gdal_translate
Message-ID: <200407020858.i628wFH4027911@outmx005.isp.belgacom.be>
-------boundalter150977
Content-Type: text/plain
Content-Transfer-Encoding: 8bit
Hello,
I have very large raster in bil format. I want to convert it to tiled tif. For this, I have used gdal_translate. But, when I do this the result are in black and white. I have the same result when I draw directly the bil in mapserver.
I think that the problem is that the color information are in a single file (for example, raster.clr).
Somebody have an idea to solve this problem.
Thanks in advance. Best regards.
Thibaut.
-------boundalter150977
Content-Type: text/html
Content-Transfer-Encoding: 8bit
Content-Disposition: inline
Hello,
I have very large raster in bil format. I want to convert it to tiled tif. For this, I have used gdal_translate. But, when I do this the result are in black and white. I have the same result when I draw directly the bil in mapserver.
I think that the problem is that the color information are in a single file (for example, raster.clr).
Somebody have an idea to solve this problem.
Thanks in advance. Best regards.
Thibaut.
-------boundalter150977--
From jcastil1@tragsa.es Fri Jul 2 10:16:45 2004
From: jcastil1@tragsa.es (Javier Castillejo Montes)
Date: Fri, 2 Jul 2004 11:16:45 +0200
Subject: [Mapserver-users] Different colors in different layers
Message-ID:
This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.
------_=_NextPart_000_01C46015.4E5E37D6
Content-Type: multipart/alternative;
boundary="----_=_NextPart_001_01C46015.4E5E37D6"
------_=_NextPart_001_01C46015.4E5E37D6
Content-Type: text/plain;
charset="iso-8859-1"
Hi!
First of all Im very bad english writer (its not my language so please
forgive my mistakes
and im really new at mapserver
I'll try to make myself clear
I have differents layers and one of then is a layer a field , this field has
various divisions(layer 1) and inside each division(divi A) there is one
more division (layer 1) (divi AA,AB,AC). Can anybody tell me how can I put a
different color for each diviA and a different color for divi AA,AB,AC
Thanks a lot
------_=_NextPart_001_01C46015.4E5E37D6
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
TRAGSA Dise=F1o de fondo
Hi!
First =
of all =20
Im very bad english writer (its not my language so please forgive =
my=20
mistakes
and im really=20
new at mapserver
I'll =
try to make=20
myself clear
I have=20
differents layers and one of then is a layer a field , this field has various =
divisions(layer=20
1) and inside each division(divi A) there is =
one more=20
division (layer 1) (divi =
AA,AB,AC).=20
Can anybody tell me how can I =
put a=20
different color for each diviA and a different color for divi AA,AB,AC=
FONT>
Thanks a=20
lot
------_=_NextPart_001_01C46015.4E5E37D6--
------_=_NextPart_000_01C46015.4E5E37D6
Content-Type: image/jpeg;
name="pictogramatragsa.jpg"
Content-Transfer-Encoding: base64
Content-Disposition: attachment;
filename="pictogramatragsa.jpg"
Content-ID: <233281508@02072004-308e>
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
------_=_NextPart_000_01C46015.4E5E37D6--
From gis@gmunden.ooe.gv.at Fri Jul 2 10:44:22 2004
From: gis@gmunden.ooe.gv.at (Hochegger Helmut)
Date: Fri, 2 Jul 2004 11:44:22 +0200
Subject: [Mapserver-users] Help- Queryproglems
Message-ID: <9E663CFAA95EE2409ACC286FA0383054B0DE2E@gmdmail.gmunden.ooe.gv.at>
Hi all
I got a little problem with itemqueries because mapserver returns ..
msQueryByAttributes(): Search returned no results. No matching record(s)
found.. but there are existing and matching records in the .dbf (shape)
file.
!-- MapServer Version 4.0.1 OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=PDF
OUTPUT=SWF SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER
SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT INPUT=EPPL7
INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE -->
The query is starting from the index.html with following script:
.....