Re: [MAPSERVER-USERS] PostGIS data in EPSG:31300 using for Google Maps overlay
Hi Steven, I had the same problems, my data were in EPSG:23030 but when I wanted to overlay my WMS in Google Earth, even If I'd included EPSG:4326 in the wms_srs list, It showed a difference between my map and Google. So, first of all, you must include the 4326 in your wms_srs list (in the header and in the layers), then you must set EPSG:4326 as your projection object in the header, leaving the layers projections as 31300, and then you must look at the epsg file in the PROJ library (\\ms4w\proj\nad), because probably your EPSG code (31300) asn't all the parameters needed to reproject correctly the data... Look something like +towgs84, and try to find some parameter that help MapServer to reproject better the data...like this you won't have to reproject your original data Regards gisaalter wrote: Hi list, I have some data in PostGIS I wish to overlay in Google Maps using WMS I'm using the same data in a mapserver application, where EPSG code 31300 is used. Now for overlay in Google Maps, 4326 is required. I have made a copy of my map-file and specified 4326 as projection system.Yet, non of my data is showing up. Do I need to reproject my data for this use ? I thought PostGIS was capable of doing reprojection on the fly ? Can someone with some more experience help me out ? Thanks Steven ___ 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/PostGIS-data-in-EPSG%3A31300-using-for-Google-Maps-overlay-tp16562400p16580808.html Sent from the Mapserver - User mailing list archive at Nabble.com. ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [MAPSERVER-USERS] PostGIS data in EPSG:31300 using for Google Maps overlay
thanks Carla, although I'm not sure about that last bit. So I have searched for the epsg parameters of 31300 (Belge Lambert 72), and now I have to add some parameters ? I'm not sure which parameters I have to add/adjust.. 31300 +proj=lcc +lat_1=49.84 +lat_2=51.16 +lat_0=90 +lon_0=4.3569397 +x_0=15.01256 +y_0=5400088.4378 +ellps=intl +units=m +no_defs no_defs Thanks Steven On Wed, Apr 9, 2008 at 9:04 AM, cfb [EMAIL PROTECTED] wrote: Hi Steven, I had the same problems, my data were in EPSG:23030 but when I wanted to overlay my WMS in Google Earth, even If I'd included EPSG:4326 in the wms_srs list, It showed a difference between my map and Google. So, first of all, you must include the 4326 in your wms_srs list (in the header and in the layers), then you must set EPSG:4326 as your projection object in the header, leaving the layers projections as 31300, and then you must look at the epsg file in the PROJ library (\\ms4w\proj\nad), because probably your EPSG code (31300) asn't all the parameters needed to reproject correctly the data... Look something like +towgs84, and try to find some parameter that help MapServer to reproject better the data...like this you won't have to reproject your original data Regards gisaalter wrote: Hi list, I have some data in PostGIS I wish to overlay in Google Maps using WMS I'm using the same data in a mapserver application, where EPSG code 31300 is used. Now for overlay in Google Maps, 4326 is required. I have made a copy of my map-file and specified 4326 as projection system.Yet, non of my data is showing up. Do I need to reproject my data for this use ? I thought PostGIS was capable of doing reprojection on the fly ? Can someone with some more experience help me out ? Thanks Steven ___ 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/PostGIS-data-in-EPSG%3A31300-using-for-Google-Maps-overlay-tp16562400p16580808.html Sent from the Mapserver - User mailing list archive at Nabble.com. ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] PostGIS data in EPSG:31300 using for GoogleMaps overlay
--- Rahkonen Jukka [EMAIL PROTECTED] wrote: Hi, In this: DATA new_geom from (select gid, transform(the_geom,4326) as new_geom from table) as mytable using unique gid using srid=4326 First, (select gid ... is selecting the unique column of your table. Change gid to suit your table. Then using unique gid is referring to what was selected in the inner query. If the query is done in this way you must use the name of your unique column instead of gid also here. Perhaps more clear would be to write (SELECT my_unique_column AS gid,... and using unique gid I am not an experienced PostGIS user, let's hope this information is correct. Hi Jukka, Indeed it is. I used gid as a default geom id column, but could have been more explicit. Brent, Maybe quite a basic question, but I'm not used to define my data syntax as the one you propose. Can you help me out with the gid declaration. I'm quite confused what to fill in for gid Do I leave it like it is and just write gid or doi I have or do I have to define my primary key column (f.i.: tbl_b_cabu_pkey). For both I get an error message, saying either column OID does not exist or column tbl_b_cabu_pkey does not exist. However there are both there... DATA new_geom from (select gid, transform(the_geom,4326) as new_geom from table) as mytable using unique gid using srid=4326 Try: DATA new_geom from (select tbl_b_cabu_pkey, transform(the_geom,4326) as new_geom from table) as mytable using unique tbl_b_cabu_pkey using srid=4326 This is effectively the same as: DATA new_geom from (select tbl_b_cabu_pkey as gid, transform(the_geom,4326) as new_geom from table) as mytable unique gid using srid=4326 Hopefully the two examples show how this works. Note that mytable is an arbitrary name, and you can call it anything you want to. Similarly, the new_geom is used as an alias in the SQL, so it becomes the name of the geometry collumn in the virtual table, so this is the name mapserver is given in the DATA statement. Again you can use whatever name you like, provided the same one is used in both places. If you need other columns for labels, or classes, etc., just add them to the SQL that generates mytable. This facility does not just allow reprojection by PostGIS, which doesn't offer much really as mapserver can do the same thing, but allows the mytable to be the result of a complex join accross tables, etc, thus supporting the power of SQL a relational database behind the mapping engine. Thanks for helping out ! You're welcome, Brent ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] PostGIS data in EPSG:31300 using for Google Maps overlay
Hi Steven, Just to add some thoughts: As Brent suggests, both postgis and mapserver can reproject. What you are doing now is let postgis (or actually the proj-library that's doing the hardwork for the transform(..)-function). But mapserver is also able to do the 'on the fly' projection (and also using a proj-lib for that). Difference for this two methods is that if you let mapserver do it, then you can use wms-service (one mapfile with one layer definition) be used for several different projection requests. So using brents example, you can do: METADATA wms_title My WMS Server wms_srs EPSG:4326 EPSG:28992 EPSG:900913 EPSG 31300 END and mapserver has to know the 'native' projection as brent said: LAYER ... PROJECTION init=epsg:31300 END ... END In this way mapserver's proj is doing the heavy lifting and you can use different clients using different projections to connect to the same wms service. The tricky stuff here is to know which proj (or actually which epsg file) is used for which library/component. For example postgis has it's proj parameters in a table 'spatial_ref_sys', so when you want to use a exotic projection you have to add it here. But if you want to use this exotic projection for mapserver/ms4w, you have to add it to: C:\ms4w\proj\nad\epsg Groet Richard Duivenvoorde Steven De Vriendt wrote: Brent, Maybe quite a basic question, but I'm not used to define my data syntax as the one you propose. Can you help me out with the gid declaration. I'm quite confused what to fill in for gid Do I leave it like it is and just write gid or doi I have or do I have to define my primary key column (f.i.: tbl_b_cabu_pkey). For both I get an error message, saying either column OID does not exist or column tbl_b_cabu_pkey does not exist. However there are both there... DATA new_geom from (select gid, transform(the_geom,4326) as new_geom from table) as mytable using unique gid using srid=4326 Thanks for helping out ! On Tue, Apr 8, 2008 at 8:25 PM, Steven De Vriendt [EMAIL PROTECTED] wrote: Brent, Very, very usefull info. Thanks. I was just about to reprojecting my data :-) I thought the SRID table was constrained to the geometry and you couldn't change it. Seems like that's why the 'virtual' table is there for. Ok, well, I'll give it a try. Thanks for your input ! Regards, Steven On Tue, Apr 8, 2008 at 7:58 PM, Brent Wood [EMAIL PROTECTED] wrote: --- Steven De Vriendt [EMAIL PROTECTED] wrote: Hi list, I have some data in PostGIS I wish to overlay in Google Maps using WMS I'm using the same data in a mapserver application, where EPSG code 31300 is used. Now for overlay in Google Maps, 4326 is required. I have made a copy of my map-file and specified 4326 as projection system.Yet, non of my data is showing up. Do I need to reproject my data for this use ? I thought PostGIS was capable of doing reprojection on the fly ? Hi Steven, Both mapserver POstGIS can reproject the data on the fly, but they need to be told the input output projections. As your data is all displayed via mapserver, the instructions either way will be in your mapfile. To reproject using PostGIS, edit the SQL command in your data statement which retrieves the PostGIS data. You need to tell PostGIS to return a virtual table to mapserver, and transform the data to the required projection in this. Edit the data line in the layer something like this: DATA new_geom from (select gid, transform(the_geom,4326) as new_geom from table) as mytable using unique gid using srid=4326 To reproject in mapserver, you need to set the main mapfile projection to EPSG:4326, using, in the global header part of the mapfile: UNITS DD PROJECTION init=epsg:4326 END In the METADATA section, you'll need to set the output projection for WMS, eg: METADATA wms_title My WMS Server wms_srs EPSG:4326 END Then in the layer definition, you specify the layer's native projection, so mapserver can reproject from one to the other: LAYER ... PROJECTION init=epsg:31300 END ... END Note that to reproject in PostGIS, Proj.4 support must be compiled into PostGIS, and similarly for mapserver if you do the reprojection there. If you compiled these from source, this is not done by default, you'll need to run configure with the appropriate flag. If you installed from a package, or on Windows, proj support is generally built in. HTH, Brent Wood ___ 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] About Dynamic Charting
Dear All, I am developing an web application based on C# asp.net.I have one requirement that is generating Pie Charts.I have done same with using mapfile .it is working fine.What i need is Mapserver does any class for work with chart(pie or bar) Like layerObject for Layer and mapObj for map etc. Please any one can help me.I am waiting for your great response. Advanced Thanks Regards Venkat. Here is example is working fine :- LAYER NAME Papulation TYPE CHART CONNECTIONTYPE POSTGIS CONNECTION host=localhost dbname=GIS password=administrator user=postgres port=5432 DATA the_geom from world PROCESSING CHART_TYPE=pie PROCESSING CHART_SIZE=30 STATUS ON CLASS NAME Population Age 0-19 STYLE SIZE [3000] COLOR 125 147 225 END END CLASS NAME Population Age 20-39 STYLE SIZE [4000] COLOR 197 0 255 END END CLASS NAME Population Age 40-59 STYLE SIZE [5000] COLOR 0 197 255 END END END ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] Zoomscale doesn't work properly
Hi, my name's Carlo. I use MapServer4.10 with PHPMapscript on a Debian Etch system with PHP5.2. I have a problem with zoomscale(): when I use it, the system ignores minscale limitation. I've defined minscale directly in the mapfile (see below) ... WEB MINSCALE 1000 ... and also in the php script (see below) ... $map-web-set('minscale',1000); // I've tried also $map-web-set(minscale,1000); ... and it works fine with simple zoomin/out (if I ask a zoom in when I'm near to 1:1000 - for example 1:1020 - the map reaches 1:1000, and no more). But when I use zoomscale(), I can reach also 1:919 for example. I've discovered this problem zooming (with zoomscale) to a single feature found as response of a queryByAttribute. Is this a known bug or I am wrong with something? Thank you very much for the attention. Best Regards, Carlo -- Carlo Pelliconi [EMAIL PROTECTED] SIS.TER S.p.A. www.sis-ter.it via Mentana, 10 40026 Imola (BO) Italy -- ATTENZIONE! Questo documento è indirizzato esclusivamente al destinatario. Tutte le informazioni ivi contenute, compresi eventuali allegati, sono soggette a riservatezza secondo i termini del D.Lgs. 196/2003 in materia di privacy e ne è proibita l'utilizzazione da parte di altri soggetti. Si ricorda che la diffusione l'utilizzo e/o la conservazione dei dati ricevuti per errore costituisce violazione di carattere penale ai sensi dell'art. 616 Codice penale (Violazione, sottrazione e soppressione di corrispondenza). Se avesse ricevuto per errore questo messaggio, La preghiamo cortesemente di contattare il mittente al più presto e di cancellare il messaggio subito dopo. Grazie. ATTENTION! This message is being sent from Sis.Ter S.p.A. and may contain information which is confidential or privileged. If you are not the intended recipient, please advise the sender immediately by reply e-mail and delete this message and any attachments without retaining a copy. Any unauthorized use of the content of this message is a breach of your duty to respect the confidentiality of the correspondence between other persons and can expose the responsible party to civil and/or criminal penalties (D.Lgs. 196/2003 Tutela della privacy e art. 616 Codice penale Violazione, sottrazione e soppressione di corrispondenza), and may constitute a more serious offence. Thanks. ACHTUNG! Dieses Dokument ist ausschließlich dem Empfänger vorbehalten. Die darin enthaltenen Informationen, auch jene in etwaigen Anlagen, gelten im Sinne des Dekrets Nr. 196/2003 in Sachen Privacy als streng vertraulich und dürfen von anderen Personen nicht verwende werden. Wer diese Mitteilung irrtümlicherweise erhält ist gebeten uns umgehend zu informieren und anschließend die Mitteilung zu vernichten. Vielen Dank. ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[MAPSERVER-USERS] Elevation model
Dear Reader, Please shed some lights on elevation models supported by mapserver. Elevations in cases of bridges, mountains, buildings,etc. Any steps to follow DEM (digital elevation model) in mapserver? Your suggestions/tips will be highly appreciated. Thanks and Regards, Ambastha -- View this message in context: http://www.nabble.com/Elevation-model-tp16584563p16584563.html Sent from the Mapserver - User mailing list archive at Nabble.com. ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] using gdalinfo.exe
Frank, Thank you for the response. Is there some other way to get some of the gdal info with a simple query? I'm not stuck on using gdalinfo... it just seemed like a good idea. What I need is the UTM Zone -- that's already specified (I guess) in the EPSG statement in the mapfile. Can it be extracted from there over the web by way of a URL / query? Ken - Original Message - From: Frank Warmerdam [EMAIL PROTECTED] To: Ken S. Elvehjem [EMAIL PROTECTED] Cc: mapserver-users@lists.osgeo.org Sent: Tuesday, April 08, 2008 9:25 PM Subject: Re: [mapserver-users] using gdalinfo.exe Ken S. Elvehjem wrote: Hi, I'm currently generating a query from my software to access a MrSid file that I have on my MapServer; here's the link: http://206.183.188.202/cgi-bin/mapserv.exe?map=c:\ms4w\Apache\htdocs\SD\mccook-wms.mapSERVICE=WMSVERSION=1.1.1REQUEST=GetMapLAYERS=NAIP2006STYLES=SRS=EPSG:4269BBOX=611300,4815500,613300,4817500WIDTH=800HEIGHT=800FORMAT=image/jpeg http://206.183.188.202/cgi-bin/mapserv.exe?map=c:\ms4w\Apache\htdocs\SD\mccook-wms.mapSERVICE=WMSVERSION=1.1.1REQUEST=GetMapLAYERS=NAIP2006STYLES=SRS=EPSG:4269BBOX=611300,4815500,613300,4817500WIDTH=800HEIGHT=800FORMAT=image/jpeg I'd like to be able to generate a URL that will get me the gdalinfo on that file... Here's what doesn't work: http://206.183.188.202/cgi-bin/gdalinfo.exe?c:\ms4w\Apache\htdocs\SD\mccook\mccook2006.sid Could someone point out A.) if I'm barking up the wrong tree completetely, and if not, B.) what does that kind of query/URL need to look like? Ken, I'm not aware of anyone doing anything quite like this. gdalinfo isn't setup to be used as a cgi, and doesn't return things html encoded or with a content-type header. And MapServer does not have an equivelent functionality. But, in theory, you could write a little gdalinfo script in php/perl/python that would execute gdalinfo on a passed argument filename and then return the result with a proper Content-type: text/plain header. 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] OSS application to serve file based images
IMHO, I believe that you can replicate the functionalities of those two commercial software products by writing your own scripts in whatever OSS solution you choose. Lots of work and know-how is required. While in Image Server for example, you just run some wizard-like UIs and get the job done much easier. But don't take my word for that, I'm one of the experts that believe that you *can* load and server images from a database server. Best regards, Ivan Intengu Technologies wrote: Hello I understand that most experts are saying it is far better not to load images in a database but rather to serve them from a file based system. There are two commercial products that I know of ER Mapper - Image Web Server and ArcGIS Image Server what OSS products provide comparable functionalities. If these are available are there any bench mark studies done and also I would like to integrate such products with ArcGIS Server. ___ 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] Getting a WMS service up and running from shape data
I think you need to set the status of your hvalross layer to ON LAYER NAME hvalross TYPE POLYGON DATA hvalross/hvalross_utbredelse STATUS ON From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Lid Sjur Ringheim Sent: Wednesday, April 09, 2008 6:57 AM To: mapserver-users@lists.osgeo.org Subject: [mapserver-users] Getting a WMS service up and running from shape data Hi, I have currently compiled and installed Mapserver 5.0.2 and are trying to set up a WMS service on it. I got the demo working but are now having problems getting my own shape files rendrered, the only output I get is a white picture. You can get the capabilities file here http://talos.nodc.no/cgi-bin/mapserv?map=wms/sonate.map http://talos.nodc.no/cgi-bin/mapserv?map=wms/sonate.mapSERVICE=WMSVERSION =1.1.1REQUEST=GetCapabilities SERVICE=WMSVERSION=1.1.1REQUEST=GetCapabilities The Map file im using looks like this: MAP NAME SONATE STATUS ON SIZE 600 600 EXTENT 388107.6334400378 5203120.88405952 500896.339019834 5310243.30613897 UNITS METERS SHAPEPATH /var/www/wmsdata/sonate IMAGECOLOR 255 255 255 PROJECTION proj=latlong ellps=WGS84 datum=WGS84 END WEB METADATA WMS_TITLE sonate WMS_ONLINERESOURCE http://talos.nodc.no/cgi-bin/mapserv?map=wms/sonate.map; WMS_SRSepsg:4326 epsg:42304 #north pole stereographic END LOG /var/www/cgi-bin/test.log END LAYER NAME hvalross TYPE POLYGON DATA hvalross/hvalross_utbredelse STATUS OFF PROJECTION proj=latlong ellps=WGS84 END METADATA WMS_TITLE Hvalross WMS_SRSepsg:4326 END CLASS NAMEDYREGRUPPE DEBUG ON STYLE COLOR 255 0 255 OUTLINECOLOR 255 0 0 END END #DUMP TRUE END END But when I try to render the map all I get is a white picture. The shape file im trying to render contains polygons with a WGS84 (North Pole Stereographic) projection. Do anyone have a tip as to where I should be looking to get more information about this problem/know what might be wrong? Best Regards Sjur ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] using gdalinfo.exe
Ken S. Elvehjem wrote: Frank, Thank you for the response. Is there some other way to get some of the gdal info with a simple query? I'm not stuck on using gdalinfo... it just seemed like a good idea. What I need is the UTM Zone -- that's already specified (I guess) in the EPSG statement in the mapfile. Can it be extracted from there over the web by way of a URL / query? Ken, There is no stock mechanism for this, but you could write a custom mapscript application to pick this information out of the map file and return it as a web service. I would note though that MapServer does not normally provide access to stuff like file bounds to mapscript so there it is hard to provide very much information using mapscript itself. You could try setting up the dataset as WCS accessable, and then the WCS DescribeCoverage method would provide a variety of information about the file. 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
[MAPSERVER-USERS] SLD ignored / External Graphic ignored
I'll start off with some background of what I'm trying to do: I want to define SVGs as external graphic in an SLD to use these as PointSymbolizers and LineSymbolizers. Firstly I tried GeoServer and it worked quite fine, the only problem was, that it wasn't rendered very good. So I thought of trying MapServer, but then the problems came... I'm running the latest ms4w on Windows 2000 with Apache 2.2.8. Here's link to my mapfile: http://sicky.i-networx.de/temp/mapserv/test.map That's the SLD file I let create with the GetStyles request and just changed a color and width to see if it was recognized: http://sicky.i-networx.de/temp/mapserv/test.sld GetStyles document here: http://sicky.i-networx.de/temp/mapserv/GetStyles.txt The important part of the GetCapabilities request is: UserDefinedSymbolization SupportSLD=1 UserLayer=0 UserStyle=1 RemoteWFS=0/ (the whole one is located here: http://sicky.i-networx.de/temp/mapserv/GetCapabilities.txt) Since GetStyles is working fine and the wms server supports SLD I don't see a problem there (I searched the net for hours and hours to solve the problem and tried any suggestion..). But when I request a map with an SLD like this: http://localhost:8080/cgi-bin/mapserv.exe?map=/program%20files/ms4w/apps/blp/test.mapREQUEST=getMapSERVICE=WMSVERSION=1.1.1SRS=EPSG:4326BBOX=3954683.0884047896,5499947.559657593,3954754.5911026173,5499966.522156349WIDTH=600HEIGHT=700LAYERS=Baugrenze,AllgWohngebieteSTYLES=SLD=http://localhost:8080/test.sldFORMAT=image/png it just ignores the sld and shows this: http://sicky.i-networx.de/temp/mapserv/sld.png http://localhost:8080/test.sld itself is viewable in the browser without any problems and the names of the layers are mathcing those in the mapfile (note: in my mapfile i commented out the style for one layer to see if a style in a mapfile overrides a sld) I played around with this a bit, e.g. naming it 'test.xml', removing 'STYLES=' and so on... but nothing helped :( The I thought of the other method to use SLDs, with SLD_BODY. My request is as follows: http://localhost:8080/cgi-bin/mapserv.exe?map=/program%20files/ms4w/apps/blp/test.mapREQUEST=getMapSERVICE=WMSVERSION=1.1.1SRS=EPSG:4326BBOX=3954683.0884047896,5499947.559657593,3954754.5911026173,5499966.522156349LAYERS=Baugrenze,AllgWohngebieteSLD_BODY=%3C%3Fxml+version%3D%221.0%22+encoding%3D%22UTF-8%22%3F%3E%3CStyledLayerDescriptor+version%3D%221.1.0%22%3E%3CNamedLayer%3E%3CName%3EBaugrenze%3C%2FName%3E%3CUserStyle%3E%3CFeatureTypeStyle%3E%3CRule%3E%3CName%3EBaugrenze%3C%2FName%3E%3CLineSymbolizer%3E%3CStroke%3E%3CCssParameter+name%3D%22stroke%22%3E%2300%3C%2FCssParameter%3E%3CCssParameter+name%3D%22stroke-opacity%22%3E1.00%3C%2FCssParameter%3E%3CCssParameter+name%3D%22stroke-width%22%3E5%3C%2FCssParameter%3E%3C%2FStroke%3E%3C%2FLineSymbolizer%3E%3C%2FRule%3E%3C%2FFeatureTypeStyle%3E%3C%2FUserStyle%3E%3C%2FNamedLayer%3E%3CNamedLayer%3E%3CName%3EAllgWohngebiete%3C%2FName%3E%3CUserStyle%3E%3CFeatureTypeStyle%3E%3CRule%3E%3CName%3EAllgWohngebiete%3C%2FName%3E%3CLineSymbolizer%3E%3CStroke%3E%3CCssParameter+name%3D%22stroke%22%3E%23ff00ff%3C%2FCssParameter%3E%3CCssParameter+name%3D%22stroke-opacity%22%3E1.00%3C%2FCssParameter%3E%3CCssParameter+name%3D%22stroke-width%22%3E5%3C%2FCssParameter%3E%3C%2FStroke%3E%3C%2FLineSymbolizer%3E%3C%2FRule%3E%3C%2FFeatureTypeStyle%3E%3C%2FUserStyle%3E%3C%2FNamedLayer%3E%3C%2FStyledLayerDescriptor%3EWIDTH=600HEIGHT=700FORMAT=image/png the sld_body part in plain text looks like this: ?xml version=1.0 encoding=UTF-8? StyledLayerDescriptor version=1.1.0 NamedLayer NameBaugrenze/Name UserStyleFeatureTypeStyle RuleNameBaugrenze/Name LineSymbolizer Stroke CssParameter name=stroke#00/CssParameter CssParameter name=stroke-opacity1.00/CssParameter CssParameter name=stroke-width5/CssParameter /Stroke /LineSymbolizer /Rule /FeatureTypeStyle /UserStyle /NamedLayer NamedLayer NameAllgWohngebiete/Name UserStyle FeatureTypeStyle Rule NameAllgWohngebiete/Name LineSymbolizer Stroke CssParameter name=stroke#ff00ff/CssParameter CssParameter name=stroke-opacity1.00/CssParameter CssParameter name=stroke-width5/CssParameter /Stroke /LineSymbolizer /Rule /FeatureTypeStyle /UserStyle /NamedLayer /StyledLayerDescriptor the result made me happy: http://sicky.i-networx.de/temp/mapserv/sld_body.png at least now i know that my mapserver definately works with SLDs. but this wouldn't be a solution since I really need to define a SLD file because it's gonna be very big. So i really want 'SLD=' to work instead of 'SLD_BODY'. But 'SLD_BODY' doesn't work fine either :( when I try to use an external graphic like in this request:
Re: [MAPSERVER-USERS] Elevation model
Give the Raster Data Access document a good thorough read: http://mapserver.gis.umn.edu/docs/howto/raster_data (it will answer your data format/steps questions) -jeff On Wed, Apr 9, 2008 at 7:37 AM, Ritesh Ambastha [EMAIL PROTECTED] wrote: Dear Reader, Please shed some lights on elevation models supported by mapserver. Elevations in cases of bridges, mountains, buildings,etc. Any steps to follow DEM (digital elevation model) in mapserver? Your suggestions/tips will be highly appreciated. Thanks and Regards, Ambastha ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] help: load a static map
Hi I'm a student and I’m starting my first application of MapServer with my own data following the tutorial and I already have the following problem. I have a very simple shape data in geographic/WGS84 and also UTM/WGS84 format; I have picked the extension using ARCGIS and I have tried a static visualization of my map as it is shown in the first example of the tutorial. MAP IMAGETYPE PNG # EXTENT -97.348976 41.619778 -82.122902 49.385620 #geo states EXTENT 12.238976 41.619778 13.122902 49.385620 #geo rieti # EXTENT 73306.04 -295414.39 1501200.05 614634.59 #laea states # EXTENT 28.0 466.0 376000.0 4735000.0 #UTM/WGS84 rieti SIZE 1000 1000 SHAPEPATH /ms4w/apps/marco/data IMAGECOLOR 255 255 255 # Start of LAYER DEFINITIONS - LAYER # States polygon layer begins here NAME comuni DATA comuni_rieti_ll STATUS OFF TYPE POLYGON CLASS NAME comuni STYLE COLOR232 232 232 OUTLINECOLOR 32 32 32 END END END # States polygon layer ends here I have tried the following things: - load my data using the geographic coordinates (and corresponding extension); - load my data using the UTM/WGS84 coordinates (and corresponding extension); - read the data through the html-page or entering the URL (http://localhost/cgi- bin/mapserv.exe?map=/ms4w/apps/marco/htdocs/example1-1. maplayer=statesmode=map) I always don’t have any error, but I only see the window in which the data should be visualised. It’s looks like the extension is wrong, but I have checked my shape with ArcGis and also with Ogrinfo …. INFO: Open of `comuni_rieti_ll.shp' using driver `ESRI Shapefile' successful. Layer name: comuni_rieti_ll Geometry: Polygon Feature Count: 73 Extent: (12.436251, 42.089346) - (13.409627, 42.740986) Layer SRS WKT: GEOGCS[GCS_WGS_1984, DATUM [WGS_1984, SPHEROID[WGS_1984,6378137,298.257223563]], PRIMEM[Greenwich,0], UNIT[Degree,0.0174532925199433]] AREA: Real (15.3) PERIMETER: Real (15.3) COD_AMM: Integer (9.0) COMUNE: String (35.0) PROVINCIA: String (20.0) CS_15: Integer (2.0) COD_REG: Integer (3.0) COD_PRO: Integer (3.0) COD_COM: Integer (3.0) What can be wrong and what other can be done to solve the problem? Can anybody, please, help me? Bye Marco ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [MAPSERVER-USERS] SLD ignored / External Graphic ignored
Christian, I did a quick test using you sld at (http://sicky.i-networx.de/temp/mapserv/test.sld) with local data (adapted to fit the sld : http://localhost/cgi-bin/mapserv.exe?map=f:/msapps/world_testdata/map/sicky.mapSERVICE=WMSVeRsIoN=1.1.1Request=GetMapLAYERS=BaugrenzeBBOX=-81.366241839,42.39269586,-77.8780568047,44.13861927SLD=http://sicky.i-networx.de/temp/mapserv/test.sldFORMAT=pngWIDTH=400HEIGHT=300SRS=EPSG:4326FORMAT=pngWIDTH=400HEIGHT=300STYLES= and I was able to render the layer Baugrenze using the styles defined in the sld. So I believe there is no issue with the sld. Common error is usually the SLD is not accessible but you mentioned that you already verified that 2nd point is that external graphics can only be of type png or gif (and not SVG). The reason being is that currently MapServer does not support SVG symbols. I am using Mapserver svn. If you want me to do local tests with your map/data, you could zip and send it to me and I will give it a try. Best Regards, Sicky wrote: I'll start off with some background of what I'm trying to do: I want to define SVGs as external graphic in an SLD to use these as PointSymbolizers and LineSymbolizers. Firstly I tried GeoServer and it worked quite fine, the only problem was, that it wasn't rendered very good. So I thought of trying MapServer, but then the problems came... I'm running the latest ms4w on Windows 2000 with Apache 2.2.8. Here's link to my mapfile: http://sicky.i-networx.de/temp/mapserv/test.map That's the SLD file I let create with the GetStyles request and just changed a color and width to see if it was recognized: http://sicky.i-networx.de/temp/mapserv/test.sld GetStyles document here: http://sicky.i-networx.de/temp/mapserv/GetStyles.txt The important part of the GetCapabilities request is: UserDefinedSymbolization SupportSLD=1 UserLayer=0 UserStyle=1 RemoteWFS=0/ (the whole one is located here: http://sicky.i-networx.de/temp/mapserv/GetCapabilities.txt) Since GetStyles is working fine and the wms server supports SLD I don't see a problem there (I searched the net for hours and hours to solve the problem and tried any suggestion..). But when I request a map with an SLD like this: http://localhost:8080/cgi-bin/mapserv.exe?map=/program%20files/ms4w/apps/blp/test.mapREQUEST=getMapSERVICE=WMSVERSION=1.1.1SRS=EPSG:4326BBOX=3954683.0884047896,5499947.559657593,3954754.5911026173,5499966.522156349WIDTH=600HEIGHT=700LAYERS=Baugrenze,AllgWohngebieteSTYLES=SLD=http://localhost:8080/test.sldFORMAT=image/png it just ignores the sld and shows this: http://sicky.i-networx.de/temp/mapserv/sld.png http://localhost:8080/test.sld itself is viewable in the browser without any problems and the names of the layers are mathcing those in the mapfile (note: in my mapfile i commented out the style for one layer to see if a style in a mapfile overrides a sld) I played around with this a bit, e.g. naming it 'test.xml', removing 'STYLES=' and so on... but nothing helped :( The I thought of the other method to use SLDs, with SLD_BODY. My request is as follows: http://localhost:8080/cgi-bin/mapserv.exe?map=/program%20files/ms4w/apps/blp/test.mapREQUEST=getMapSERVICE=WMSVERSION=1.1.1SRS=EPSG:4326BBOX=3954683.0884047896,5499947.559657593,3954754.5911026173,5499966.522156349LAYERS=Baugrenze,AllgWohngebieteSLD_BODY=%3C%3Fxml+version%3D%221.0%22+encoding%3D%22UTF-8%22%3F%3E%3CStyledLayerDescriptor+version%3D%221.1.0%22%3E%3CNamedLayer%3E%3CName%3EBaugrenze%3C%2FName%3E%3CUserStyle%3E%3CFeatureTypeStyle%3E%3CRule%3E%3CName%3EBaugrenze%3C%2FName%3E%3CLineSymbolizer%3E%3CStroke%3E%3CCssParameter+name%3D%22stroke%22%3E%2300%3C%2FCssParameter%3E%3CCssParameter+name%3D%22stroke-opacity%22%3E1.00%3C%2FCssParameter%3E%3CCssParameter+name%3D%22stroke-width%22%3E5%3C%2FCssParameter%3E%3C%2FStroke%3E%3C%2FLineSymbolizer%3E%3C%2FRule%3E%3C%2FFeatureTypeStyle%3E%3C%2FUserStyle%3E%3C%2FNamedLayer%3E%3CNamedLayer%3E%3CName%3EAllgWohngebiete%3C%2FName%3E%3CUserStyle%3E%3CFeatureTypeStyle%3E%3CRule%3E%3CName%3EAllgWohngebiete%3C%2FName%3E%3 CLineSymbolizer%3E%3CStroke%3E%3CCssParameter+name%3D%22stroke%22%3E%23ff00ff%3C%2FCssParameter%3E%3CCssParameter+name%3D%22stroke-opacity%22%3E1.00%3C%2FCssParameter%3E%3CCssParameter+name%3D%22stroke-width%22%3E5%3C%2FCssParameter%3E%3C%2FStroke%3E%3C%2FLineSymbolizer%3E%3C%2FRule%3E%3C%2FFeatureTypeStyle%3E%3C%2FUserStyle%3E%3C%2FNamedLayer%3E%3C%2FStyledLayerDescriptor%3EWIDTH=600HEIGHT=700FORMAT=image/png the sld_body part in plain text looks like this: ?xml version=1.0 encoding=UTF-8? StyledLayerDescriptor version=1.1.0 NamedLayer NameBaugrenze/Name UserStyleFeatureTypeStyle RuleNameBaugrenze/Name LineSymbolizer Stroke CssParameter name=stroke#00/CssParameter CssParameter name=stroke-opacity1.00/CssParameter CssParameter name=stroke-width5/CssParameter /Stroke /LineSymbolizer /Rule /FeatureTypeStyle /UserStyle /NamedLayer NamedLayer NameAllgWohngebiete/Name UserStyle FeatureTypeStyle Rule
Re: [MAPSERVER-USERS] SLD ignored / External Graphic ignored
Thanks for you quick reply and testing it :-) 1st: Ok, now I know that the SLD is working, but why not here? 2nd: Really? SVG isn't supported by MapServer? Then the use of it would be quite senseless for me. Or will MapServer render lines/outlines of polygones with PNGs or GIFs nicely? Because GeoServer doesn't (lots of gaps in the lines etc.)! Cheers and thanks again, Christian. Yewondwossen Assefa-2 wrote: Christian, I did a quick test using you sld at (http://sicky.i-networx.de/temp/mapserv/test.sld) with local data (adapted to fit the sld : http://localhost/cgi-bin/mapserv.exe?map=f:/msapps/world_testdata/map/sicky.mapSERVICE=WMSVeRsIoN=1.1.1Request=GetMapLAYERS=BaugrenzeBBOX=-81.366241839,42.39269586,-77.8780568047,44.13861927SLD=http://sicky.i-networx.de/temp/mapserv/test.sldFORMAT=pngWIDTH=400HEIGHT=300SRS=EPSG:4326FORMAT=pngWIDTH=400HEIGHT=300STYLES= and I was able to render the layer Baugrenze using the styles defined in the sld. So I believe there is no issue with the sld. Common error is usually the SLD is not accessible but you mentioned that you already verified that 2nd point is that external graphics can only be of type png or gif (and not SVG). The reason being is that currently MapServer does not support SVG symbols. I am using Mapserver svn. If you want me to do local tests with your map/data, you could zip and send it to me and I will give it a try. Best Regards, Sicky wrote: I'll start off with some background of what I'm trying to do: I want to define SVGs as external graphic in an SLD to use these as PointSymbolizers and LineSymbolizers. Firstly I tried GeoServer and it worked quite fine, the only problem was, that it wasn't rendered very good. So I thought of trying MapServer, but then the problems came... I'm running the latest ms4w on Windows 2000 with Apache 2.2.8. Here's link to my mapfile: http://sicky.i-networx.de/temp/mapserv/test.map That's the SLD file I let create with the GetStyles request and just changed a color and width to see if it was recognized: http://sicky.i-networx.de/temp/mapserv/test.sld GetStyles document here: http://sicky.i-networx.de/temp/mapserv/GetStyles.txt The important part of the GetCapabilities request is: UserDefinedSymbolization SupportSLD=1 UserLayer=0 UserStyle=1 RemoteWFS=0/ (the whole one is located here: http://sicky.i-networx.de/temp/mapserv/GetCapabilities.txt) Since GetStyles is working fine and the wms server supports SLD I don't see a problem there (I searched the net for hours and hours to solve the problem and tried any suggestion..). But when I request a map with an SLD like this: http://localhost:8080/cgi-bin/mapserv.exe?map=/program%20files/ms4w/apps/blp/test.mapREQUEST=getMapSERVICE=WMSVERSION=1.1.1SRS=EPSG:4326BBOX=3954683.0884047896,5499947.559657593,3954754.5911026173,5499966.522156349WIDTH=600HEIGHT=700LAYERS=Baugrenze,AllgWohngebieteSTYLES=SLD=http://localhost:8080/test.sldFORMAT=image/png it just ignores the sld and shows this: http://sicky.i-networx.de/temp/mapserv/sld.png http://localhost:8080/test.sld itself is viewable in the browser without any problems and the names of the layers are mathcing those in the mapfile (note: in my mapfile i commented out the style for one layer to see if a style in a mapfile overrides a sld) I played around with this a bit, e.g. naming it 'test.xml', removing 'STYLES=' and so on... but nothing helped :( The I thought of the other method to use SLDs, with SLD_BODY. My request is as follows: http://localhost:8080/cgi-bin/mapserv.exe?map=/program%20files/ms4w/apps/blp/test.mapREQUEST=getMapSERVICE=WMSVERSION=1.1.1SRS=EPSG:4326BBOX=3954683.0884047896,5499947.559657593,3954754.5911026173,5499966.522156349LAYERS=Baugrenze,AllgWohngebieteSLD_BODY=%3C%3Fxml+version%3D%221.0%22+encoding%3D%22UTF-8%22%3F%3E%3CStyledLayerDescriptor+version%3D%221.1.0%22%3E%3CNamedLayer%3E%3CName%3EBaugrenze%3C%2FName%3E%3CUserStyle%3E%3CFeatureTypeStyle%3E%3CRule%3E%3CName%3EBaugrenze%3C%2FName%3E%3CLineSymbolizer%3E%3CStroke%3E%3CCssParameter+name%3D%22stroke%22%3E%2300%3C%2FCssParameter%3E%3CCssParameter+name%3D%22stroke-opacity%22%3E1.00%3C%2FCssParameter%3E%3CCssParameter+name%3D%22stroke-width%22%3E5%3C%2FCssParameter%3E%3C%2FStroke%3E%3C%2FLineSymbolizer%3E%3C%2FRule%3E%3C%2FFeatureTypeStyle%3E%3C%2FUserStyle%3E%3C%2FNamedLayer%3E%3CNamedLayer%3E%3CName%3EAllgWohngebiete%3C%2FName%3E%3CUserStyle%3E%3CFeatureTypeStyle%3E%3CRule%3E%3CName%3EAllgWohngebiete%3C%2FName%3E%3 CLineSymbolizer%3E%3CStroke%3E%3CCssParameter+name%3D%22stroke%22%3E%23ff00ff%3C%2FCssParameter%3E%3CCssParameter+name%3D%22stroke-opacity%22%3E1.00%3C%2FCssParameter%3E%3CCssParameter+name%3D%22stroke-width%22%3E5%3C%2FCssParameter%3E%3C%2FStroke%3E%3C%2FLineSymbolizer%3E%3C%2FRule%3E%3C%2FFeatureTypeStyle%3E%3C%2FUserStyle%3E%3C%2FNamedLayer%3E%3C%2FStyledLayerDescriptor%3EWIDTH=600HEIGHT=700FORMAT=image/png the sld_body
Re: [MAPSERVER-USERS] SLD ignored / External Graphic ignored
Hi, I never tried the external SVG graphics, but the SLD problem sounds very familiar. Almost always I find this kind of problem having not much to do with the SLDs themselves, but with TMP file settings. This is certainly more likely if you say sending the SLD it in SLD-BODY works. Using SLDs is dependent on the correct setting of the two settings IMAGEPATH -- where the mapserver software puts the SLD and other temporary files IMAGEURL -- where the web browser and other http services pick them up. Setting these incorrectly, and more importantly their security setting incorrrectly, will normally give no problems, but when using SLDs (and also in other cases, eg. when chaining Mapserver to external WMS and WFS services), they will make MS malfunction, but SILENTLY (ie. No error messages). Eg. in our set ups of a WMS with external SLD they are set as follows: For a *nix setup ( MacOSX) with Mapserver CGI 'behind' Apache: WEB IMAGEPATH /Users/kobben/Sites/ms_tmp/ IMAGEURL http://localhost/~kobben/ms_tmp/; ## METADATA [all your web metadata...] END #metadata END #web For a Win box with Mapserver CGI 'behind' IIS: IMAGEPATH C:/tmp/ms_tmp/ IMAGEURL http://geoserver.itc.nl/ms_tmp/; The IMAGEPATh is a directory that is reacheable by Mapserver at this real location (in this case expressed as Unix BSD path on my MacOSX or as UNC path on Win) and that has read write access set for the Mapserver process. Eg. on the Winbox it should have write access for the anonymous system service account under which Mapserver runs (usually something like SERVERNAME\IWAM_SERVERNAME). You can test this by seeing if files with names like) are being created when you request the WMS with external SLD. If they are the IMAGEPATH celarly works. Then test if you can point a browser to the IMAGEURL and pick up the tmp file. If that worsk the IMAGEURL is also OK. Now it should work... Hope this helps. International Institute for Geo-Information Science and Earth Observation (ITC) Chamber of Commerce: 410 27 560 E-mail disclaimer The information in this e-mail, including any attachments, is intended for the addressee only. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or action in relation to the content of this information is strictly prohibited. If you have received this e-mail by mistake, please delete the message and any attachment and inform the sender by return e-mail. ITC accepts no liability for any error or omission in the message content or for damage of any kind that may arise as a result of e-mail transmission. ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [MAPSERVER-USERS] SLD ignored / External Graphic ignored
Barend Kobben wrote: Setting these incorrectly, and more importantly their security setting incorrrectly, will normally give no problems, but when using SLDs (and also in other cases, eg. when chaining Mapserver to external WMS and WFS services), they will make MS malfunction, but SILENTLY (ie. No error messages). Barend I added a bug and a fix in mapserver svn for it to generate an error. See bug http://trac.osgeo.org/mapserver/ticket/2573 Best Regards -- Assefa Yewondwossen Software Analyst Email: [EMAIL PROTECTED] http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [MAPSERVER-USERS] SLD ignored / External Graphic ignored
Sicky wrote: Thanks for you quick reply and testing it :-) 1st: Ok, now I know that the SLD is working, but why not here? Barend comments could maybe explain you problem? If all is as expected, as I said I am willing to give it a try provided a test sample. 2nd: Really? SVG isn't supported by MapServer? Then the use of it would be quite senseless for me. Or will MapServer render lines/outlines of polygones with PNGs or GIFs nicely? Because GeoServer doesn't (lots of gaps in the lines etc.)! SVG symbols are not supported (SVG as an output format is). I have not seen GeoServer rendering for this particular case so I can not compare. I guess you need to try it locally and see for yourself if it is acceptable. Cheers and thanks again, Christian. -- Assefa Yewondwossen Software Analyst Email: [EMAIL PROTECTED] http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Mapserver 5 and Openlayers 2.5 passing of parameters.
Hi Aileen: The direct setting of class expressions using via the syntax you're trying is no longer supported. It's not possible to apply any validation rules in this case. There is a work around using runtime substitution though. For example, if your mapfile looks like this: LAYER NAME 'foo' ... CLASS EXPRESSION '%foo_value%' ... END END Then you can set the expression like so: ...foo_value=makati... You can also validate the input using a regex, just add a metadata block like this to the layer above: METADATA # allow foo_value to be a string 1 to 10 chars in length, no special characters foo_value_validation_pattern '^[a-z]{1,10}$' END This applies to FILTERs as well. The syntax to change a class color is documented in the examples you've already seen. Steve On 4/8/2008 at 8:25 PM, in message [EMAIL PROTECTED], Aileen [EMAIL PROTECTED] wrote: - Original Message - From: Aileen [EMAIL PROTECTED] To: mapserver-users@lists.osgeo.org Sent: Wednesday, April 09, 2008 8:28 AM Subject: Mapserver 5 and Openlayers 2.5 passing of parameters. Hi all, We are currently using the latest release of Mapserver, the 5.0.2 version and Openlayers 2.5 We are having problems with rendering lines and polygons because although it worked for us in Mapserver 4.10, we are told that there's a new syntax for passing values to mapserver. Currently, here's part of the url that we are using to pass to mapserver: map_layer_class_expression=makatimap_layer_class_color=255 0 0. We already have looked at your samples but with no avail. Can you help us with the new syntax? ___ 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] help: load a static map
Hi Marco: The name of the States layer in your mapfile is 'comuni' yet you're turning on a layer with a different name (layer=states) in your URL. I imagine that's the problem. Steve On 4/9/2008 at 10:47 AM, in message [EMAIL PROTECTED], [EMAIL PROTECTED] wrote: Hi I'm a student and I’m starting my first application of MapServer with my own data following the tutorial and I already have the following problem. I have a very simple shape data in geographic/WGS84 and also UTM/WGS84 format; I have picked the extension using ARCGIS and I have tried a static visualization of my map as it is shown in the first example of the tutorial. MAP IMAGETYPE PNG # EXTENT -97.348976 41.619778 -82.122902 49.385620 #geo states EXTENT 12.238976 41.619778 13.122902 49.385620 #geo rieti # EXTENT 73306.04 -295414.39 1501200.05 614634.59 #laea states # EXTENT 28.0 466.0 376000.0 4735000.0 #UTM/WGS84 rieti SIZE 1000 1000 SHAPEPATH /ms4w/apps/marco/data IMAGECOLOR 255 255 255 # Start of LAYER DEFINITIONS - LAYER # States polygon layer begins here NAME comuni DATA comuni_rieti_ll STATUS OFF TYPE POLYGON CLASS NAME comuni STYLE COLOR232 232 232 OUTLINECOLOR 32 32 32 END END END # States polygon layer ends here I have tried the following things: - load my data using the geographic coordinates (and corresponding extension); - load my data using the UTM/WGS84 coordinates (and corresponding extension); - read the data through the html-page or entering the URL (http://localhost/cgi- bin/mapserv.exe?map=/ms4w/apps/marco/htdocs/example1-1. maplayer=statesmode=map) I always don’t have any error, but I only see the window in which the data should be visualised. It’s looks like the extension is wrong, but I have checked my shape with ArcGis and also with Ogrinfo …. INFO: Open of `comuni_rieti_ll.shp' using driver `ESRI Shapefile' successful. Layer name: comuni_rieti_ll Geometry: Polygon Feature Count: 73 Extent: (12.436251, 42.089346) - (13.409627, 42.740986) Layer SRS WKT: GEOGCS[GCS_WGS_1984, DATUM [WGS_1984, SPHEROID[WGS_1984,6378137,298.257223563]], PRIMEM[Greenwich,0], UNIT[Degree,0.0174532925199433]] AREA: Real (15.3) PERIMETER: Real (15.3) COD_AMM: Integer (9.0) COMUNE: String (35.0) PROVINCIA: String (20.0) CS_15: Integer (2.0) COD_REG: Integer (3.0) COD_PRO: Integer (3.0) COD_COM: Integer (3.0) What can be wrong and what other can be done to solve the problem? Can anybody, please, help me? Bye Marco ___ 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