From trondmm-mapserver at CRUSADERS.NO Sat Jul 1 01:40:10 2006 From: trondmm-mapserver at CRUSADERS.NO (Trond Michelsen) Date: Sat, 1 Jul 2006 10:40:10 +0200 Subject: How do you get or use fontsets In-Reply-To: <20060630204025.39346.qmail@web55702.mail.re3.yahoo.com> Message-ID: On Fri, Jun 30, 2006 at 01:40:25PM -0700, Albert Anderson wrote: > Where Do I put the tff's at. Wherever you want. > In var/www/htdocs/fonts in the fonts? If you want. > where my fontset.txt is? If you use relative paths, they are considered to be relative to the location of the fontset. > I put > arial var/www/htdocs/fonts/arial.ttf > arial-bd var/www/htdocs/fonts/arialbd.tff > in the fontset.txt and it still shows up the error message > msGetLabelSize(): TrueType Font error. Requested font (arialbd) not > found. I'm I putting something in the wrong place? Well, there are three things that could be wrong here. First, you're requesting a font that hasn't been defined. Your fontset.txt defines "arial" and "arial-bd", while your mapfile requests "arialbd". Second, the "arial-bd" definition points to a file ending in .tff, while I'm pretty sure it's supposed to end in .ttf Finally, you are using relative paths, and my guess is that this isn't what you wanted. Try to change the fontlist to this: arial /var/www/htdocs/fonts/arial.ttf arial-bd /var/www/htdocs/fonts/arialbd.tff If you want to test if your paths are correct, here's what you do: First go to the directory where the fontlist is. If the fontlist is /var/www/htdocs/fontset.txt , do this: cd /var/www/htdocs then check each font from the fontlist with ls, like this: ls -l var/www/htdocs/fonts/arial.ttf ls -l var/www/htdocs/fonts/arialbd.tff If these commands doesn't find any files, your paths are wrong, and mapserver won't find the fonts either. -- Trond Michelsen From hydromap at GMAIL.COM Sat Jul 1 06:26:49 2006 From: hydromap at GMAIL.COM (Shoaib Burq) Date: Sat, 1 Jul 2006 23:26:49 +1000 Subject: Mapscript mapObj.save() to write out multiple outputformats Message-ID: Hi all we are trying to create a mapfile on the fly and need to add multiple outputformats to the mapfile. we can use the appendOutputFormat(new_OF) in python-mapscript. However when using the mapObj.save(mymapfile.map) to write our map object to file, it only writes-out the last format appened. The only relavent code i found was in: mapserver/mapscript/python/tests/cases/outputformattest.py But this only tests if the current outputformat is defined correctly ... Does anyone know if we can use the mapObj.save() function to create mapfiles with multiple OUTPUTFORMAT definitions and if not anyone know where the save() function's defined and if its easy to extend it to do this? thanks heaps shoaib -- http://nomad-labs.com From pneal at MBL.EDU Sat Jul 1 07:00:24 2006 From: pneal at MBL.EDU (Phillip Neal) Date: Sat, 1 Jul 2006 10:00:24 -0400 Subject: Sigh... How do I make an OGR connection with mysql ? Message-ID: Dear Mapserver people, I am trying to serve some data by WFS. I want to get the data directly out of a mysql database table. I have read the wiki , etc and searched around on the web for some answers but nothing seems to help. Here is my layer: LAYER NAME "sites" METADATA "wfs_title" "sites" ## REQUIRED "gml_include_items" "all" ## Optional (serves all attributes for layer) END STATUS ON TYPE POINT DUMP TRUE CONNECTIONTYPE OGR CONNECTION "/var/www/docs/sites.ovf" DATA "sites" CLASS STYLE COLOR 0 0 0 END #style END #class END #layer Here is my ovf file: MYSQL:mydb,user=myuser,password=mypasswd,port=3306,tables =sites SELECT * FROM sites wkbPoint Here is my output (view sourced) missing OGRINFO says everything is ok: >$ ./ogrinfo sites.ovf ERROR 4: Update access not supported for VRT datasources. Had to open data source read-only. INFO: Open of `sites.ovf' using driver `VRT' successful. 1: sites (Point) and >$ ./ogrinfo sites.ovf -al ERROR 4: Update access not supported for VRT datasources. Had to open data source read-only. INFO: Open of `sites.ovf' using driver `VRT' successful. Layer name: sites Geometry: Point Feature Count: 8 Extent: (45.916000, -129.985000) - (60.900000, -25.000000) Layer SRS WKT: (unknown) id: Integer (20.0) sample_id: String (255.0) latitude: Real (22.0) longitude: Real (22.0) depth: Real (22.0) temp: Real (22.0) cell_conc: Real (22.0) description: String (255.0) notes: String (0.0) date_collected: DateTime (0.0) OGRFeature(sites):2 id (Integer) = 2 sample_id (String) = 53 latitude (Real) = 58 longitude (Real) = -29 depth (Real) = 1400 temp (Real) = 4 cell_conc (Real) = 64000 description (String) = (Labrador Sea Water), Eastern Atlantic Basin notes (String) = The water masses were identified based on the Sal, Temp characteristics. date_collected (DateTime) = 2002/09/16 0:00:00 POINT (58.299999999999997 -29.132999999999999 0) and a curl result returns: curl http://somewhere/cgi-bin/mapserv-4.8.3?map=/var/www/docs/ sites_wfs.map&SERVICE=WFS&VERSION=1.0.0&REQUEST=getfeature&TYPENAME=site s [1] 18085 [2] 18086 [3] 18087 [4] 18088 $ MapServer Message mapserv(): Web application error. No template provided.
[1] Done curl http://somewhere/cgi-bin/ mapserv-4.8.3?map=/var/www/docs/sites_wfs.map [2] Done SERVICE=WFS [3]- Done VERSION=1.0.0 [4]+ Done REQUEST=getfeature What am I doing wrong ? Best regards, Phil Neal Phillip Neal pneal at mbl.edu "An ocean without its unnamed monsters would be like a completely dreamless sleep." John Steinbeck - 'The Log from the Sea of Cortez' -------------- next part -------------- An HTML attachment was scrubbed... URL: From pneal at MBL.EDU Sat Jul 1 07:20:03 2006 From: pneal at MBL.EDU (Phillip Neal) Date: Sat, 1 Jul 2006 10:20:03 -0400 Subject: Sigh... How do I make an OGR connection with mysql ? In-Reply-To: <00a401c69d18$0d0d7700$0501a8c0@toshiba> Message-ID: Hi Mike, Thank you for your response. On Jul 1, 2006, at 10:10 AM, Mike D'Ambrogia wrote: > offlist reply... have you tried naming the fields in the select vs > using * in the ovf file? Yep. I just tried that and I get the same 'missing' message. Phil > > i.e. select id, latitude, longitude FROM sites > -----Original Message----- > From: UMN MapServer Users List [mailto:MAPSERVER- > USERS at LISTS.UMN.EDU] On Behalf Of Phillip Neal > Sent: Saturday, July 01, 2006 7:00 AM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: [UMN_MAPSERVER-USERS] Sigh... How do I make an OGR > connection with mysql ? > > Dear Mapserver people, > > I am trying to serve some data by WFS. I want to get the data > directly out of a mysql database > table. > > I have read the wiki , etc and searched around on the web for some > answers but nothing > seems to help. Here is my layer: > > LAYER > NAME "sites" > METADATA > "wfs_title" "sites" ## REQUIRED > "gml_include_items" "all" ## Optional (serves all > attributes for layer) > > END > STATUS ON > TYPE POINT > DUMP TRUE > CONNECTIONTYPE OGR > CONNECTION "/var/www/docs/sites.ovf" > DATA "sites" > CLASS > STYLE > COLOR 0 0 0 > END #style > END #class > END #layer > > Here is my ovf file: > > > > > MYSQL:mydb,user=myuser,password=mypasswd,port=3306,tabl > es > =sites > SELECT * FROM sites > wkbPoint > y="longitude"/> > > > > Here is my output (view sourced) > > > xmlns:ms="http://mapserver.gis.umn.edu/mapserver" > xmlns:wfs="http://www.opengis.net/wfs" > xmlns:gml="http://www.opengis.net/gml" > xmlns:ogc="http://www.opengis.net/ogc" > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > xsi:schemaLocation="http://www.opengis.net/wfs http:// > schemas.opengeospatial.net/wfs/1.0.0/WFS-basic.xsd > http://mapserver.gis.umn.edu/mapserver > http://somewhere/cgi-bin/mapserv-4.8.3? > SERVICE=WFS&VERSION=1.0.0&REQUEST=DescribeFeatureType&TYPE > NAME=sites&OUTPUTFORMAT=XMLSCHEMA"> > > missing > > > > OGRINFO says everything is ok: > > >$ ./ogrinfo sites.ovf > ERROR 4: Update access not supported for VRT datasources. > Had to open data source read-only. > INFO: Open of `sites.ovf' > using driver `VRT' successful. > 1: sites (Point) > > and > > >$ ./ogrinfo sites.ovf -al > ERROR 4: Update access not supported for VRT datasources. > Had to open data source read-only. > INFO: Open of `sites.ovf' > using driver `VRT' successful. > > Layer name: sites > Geometry: Point > Feature Count: 8 > Extent: (45.916000, -129.985000) - (60.900000, -25.000000) > Layer SRS WKT: > (unknown) > id: Integer (20.0) > sample_id: String (255.0) > latitude: Real (22.0) > longitude: Real (22.0) > depth: Real (22.0) > temp: Real (22.0) > cell_conc: Real (22.0) > description: String (255.0) > notes: String (0.0) > date_collected: DateTime (0.0) > OGRFeature(sites):2 > id (Integer) = 2 > sample_id (String) = 53 > latitude (Real) = 58 > longitude (Real) = -29 > depth (Real) = 1400 > temp (Real) = 4 > cell_conc (Real) = 64000 > description (String) = (Labrador Sea Water), Eastern Atlantic Basin > notes (String) = The water masses were identified based on the > Sal, Temp characteristics. > date_collected (DateTime) = 2002/09/16 0:00:00 > POINT (58.299999999999997 -29.132999999999999 0) > > > and a curl result returns: > curl http://somewhere/cgi-bin/mapserv-4.8.3?map=/var/www/docs/ > sites_wfs.map&SERVICE=WFS&VERSION=1.0.0&REQUEST=getfeature&TYPENAME=si > tes > [1] 18085 > [2] 18086 > [3] 18087 > [4] 18088 > $ > MapServer Message > > > mapserv(): Web application error. No template provided.
> > [1] Done curl http://somewhere/cgi-bin/ > mapserv-4.8.3?map=/var/www/docs/sites_wfs.map > [2] Done SERVICE=WFS > [3]- Done VERSION=1.0.0 > [4]+ Done REQUEST=getfeature > > What am I doing wrong ? > > Best regards, > > Phil Neal > > > > Phillip Neal > pneal at mbl.edu > > "An ocean without its unnamed monsters would be like a completely > dreamless sleep." > > John Steinbeck - 'The Log from the Sea of Cortez' > > > Phillip Neal pneal at mbl.edu "An ocean without its unnamed monsters would be like a completely dreamless sleep." John Steinbeck - 'The Log from the Sea of Cortez' -------------- next part -------------- An HTML attachment was scrubbed... URL: From n.gilbert at SURREY.AC.UK Sun Jul 2 08:55:28 2006 From: n.gilbert at SURREY.AC.UK (Nigel Gilbert) Date: Sun, 2 Jul 2006 16:55:28 +0100 Subject: Assorted formatting queries In-Reply-To: Message-ID: I?m just finishing the first iteration of a Mapserver template and have a number of small queries that I cannot find the answers to in the documentation: 1. I am using [scale] to insert the current map scale (as ?1:[scale]?). However, the value inserted by mapserver includes many decimal places and would be better rounded to a reasonable number of significant figures before it is displayed. Is there any easier way of doing this than writing a rounding routine in Javascript? 2. I am using [scalebar] to insert a scalebar. However, when the end of the scalebar should be showing a scale larger than about 10^6, the image generated by mapserver collapses into a mess of overlapping characters, all in an image only about 10 pixels across, although the scalebar at smaller scales is 200 pixels wide. Is this a bug in mapserver, or should I be doing something different? The HTML is: ?scalebar? and the map entry is: SCALEBAR IMAGECOLOR 255 255 255 LABEL COLOR 0 0 0 SIZE SMALL END STYLE 1 SIZE 200 4 COLOR 0 0 0 UNITS METERS INTERVALS 2 TRANSPARENT FALSE STATUS ON END 3. I am displaying a Grid (Graticule) on the map, following the example in the Mapfile Reference document, which uses a separate Grid layer. However, the Grid layer is included in the layers shown in the Legend, which I don?t want. How can I exclude the Grid layer from the Legend? 4. The Map being displayed is not a ?real world? map, but a map of a virtual environment. This environment is square, of side 2^32 ?1 units. Mapserver manages to display this effectively, I am pleased to say. However, this virtual world has no units of distance (well, at least not meters or miles), but the scalebar seems to insist on there being some distance unit (meters by default). Is there a way of tell the scalebar generation routine not to show a unit at all at the end of the scalebar? Thanks for any hints about any of these queries! Nigel -------------- next part -------------- An HTML attachment was scrubbed... URL: From perrygeo at GMAIL.COM Sun Jul 2 09:35:00 2006 From: perrygeo at GMAIL.COM (Matthew Perry) Date: Sun, 2 Jul 2006 09:35:00 -0700 Subject: Assorted formatting queries In-Reply-To: Message-ID: On 7/2/06, Nigel Gilbert wrote: > > I'm just finishing the first iteration of a Mapserver template and have a > number of small queries that I cannot find the answers to in the > documentation: > > 1. I am using [scale] to insert the current map scale (as "1:[scale]"). > However, the value inserted by mapserver includes many decimal places and > would be better rounded to a reasonable number of significant figures before > it is displayed. Is there any easier way of doing this than writing a > rounding routine in Javascript? > You can use javascript to store scale as a variable and then do the rounding: var scale = [scale]; var scale_round = Math.round(scale * 1000) / 1000; document.write(scale); -- Matt Perry perrygeo at gmail.com http://www.perrygeo.net From bfraser at GEOANALYTIC.COM Sun Jul 2 09:12:46 2006 From: bfraser at GEOANALYTIC.COM (Brent Fraser) Date: Sun, 2 Jul 2006 10:12:46 -0600 Subject: Image tilling In-Reply-To: <1151698192.44a5851034af6@webmail.oregonstate.edu> Message-ID: Ryan, The most important thing for a project like this is (I think you want to display the imagery, not just the index of the imagery) to pick a coordinate system to display your data in. Typically "unprojected" (also known as Geographic) is used. For performance reasons, it's best to have your source data in the same coordinate system (so mapserver does not have to re-project the data). Once you've decided on the coordinate systems, set the EXTENT and PROJECTION in the map file: EXTENT -180 -90 180 90 UNITS 'dd' PROJECTION "proj=latlong" "ellps=WGS84" "datum=WGS84" END And if the source data is in a different coordinate system you need to specify it in the LAYER definition. Brent Fraser > What I am trying to do is to georeference aerial photos of a large area, > eventually the entire earth. So what I need is to be able to specify the > lat/long of each photo (which I have) using only the lat/long coordinate > system. I would like the user to be able to specify a bounding box > (lat/long) > for a given area then have my mapserver return all the available images > for > that given area. Currently I think that I can use: > > gdal_translate -a_ullr 180 0 210 -30 thm_dir_N-30_180.png > thm_dir_N-30_180.tiff > > To georeference all of my photos, then: > > gdaltindex thm_dir.shp *.tif > > To create a shape file with an index of all the photos, then I can specify > my > layer in the mapfile as: > > LAYER > NAME "tileindex" > STATUS ON > TILEINDEX "thm_dir.shp" > TILEITEM "Location" > TYPE RASTER > END > > But when I display this layer in MapServer I get a blank image, and when > I try > to view the shape file in ArcMap I can see my tiles but they are just > displayed > as blank polygons with no images. I think that my problem is incorrectly > specifying the EXTENT in the map file, but i am not sure what i should put > if i > want my tiles to eventually cover then entire world. > > Thanks, > -Ryan > > Here is my entire map file incase that helps any: > NAME WMSDEMO > STATUS ON > SIZE 500 400 > #EXTENT 0 0 2800 2800 > #EXTENT -180 -90 180 90 > EXTENT -9200000 -912631 3072800 3840000 > #UNITS METERS > SHAPEPATH "../data" > IMAGECOLOR 255 255 255 > > WEB > TEMPLATE test_template.html > IMAGEPATH "/tmp/ms_tmp/" > IMAGEURL "/ms_tmp/" > METADATA > WMS_TITLE "WMS test mapserver" > WMS_ACCESSCONSTRAINTS "none" > #WMS_ONLINERESOURCE "http://neuron/cgi-bin/mapserv?map=display.map&" > WMS_SRS "EPSG:4326" #"AUTO:42003" > END > END > > PROJECTION > "init=epsg:4326" > END > > LAYER # Shaded Relief Raster > NAME test_layer > DATA bath_mapserver.tif > STATUS ON > TYPE RASTER > END > > LAYER > NAME "hpool" > STATUS ON > #DATA "thm_dir_00_030.tiff" > TILEINDEX "thm_dir.shp" > #TILEITEM "Location" > TYPE RASTER > END > > > END # of map file > From umberto.nicoletti at GMAIL.COM Sun Jul 2 23:56:01 2006 From: umberto.nicoletti at GMAIL.COM (Umberto Nicoletti) Date: Mon, 3 Jul 2006 08:56:01 +0200 Subject: Mapscript mapObj.save() to write out multiple outputformats In-Reply-To: <60c6835d0607010626y6abbad25hc25fe9109208f8b8@mail.gmail.com> Message-ID: You probably have to loop over all the formats you need and for every format do something like: map.setOutputFormat map.draw hth, Umberto On 7/1/06, Shoaib Burq wrote: > Hi all > > we are trying to create a mapfile on the fly and need to add multiple > outputformats to the mapfile. we can use the > appendOutputFormat(new_OF) in python-mapscript. However when using the > mapObj.save(mymapfile.map) to write our map object to file, it only > writes-out the last format appened. > > The only relavent code i found was in: > mapserver/mapscript/python/tests/cases/outputformattest.py > But this only tests if the current outputformat is defined correctly ... > > Does anyone know if we can use the mapObj.save() function to create > mapfiles with multiple OUTPUTFORMAT definitions and if not anyone know > where the save() function's defined and if its easy to extend it to do > this? > > thanks heaps > shoaib > -- > http://nomad-labs.com > From jmsrf_hoboy at YAHOO.COM.AU Mon Jul 3 01:11:46 2006 From: jmsrf_hoboy at YAHOO.COM.AU (John Ho) Date: Mon, 3 Jul 2006 18:11:46 +1000 Subject: WFS GetFeature produces Not valid GML Message-ID: Hello, I Just noticed that Mapserver 4.6.2 is giving me invalid GML for a polygon with one inner ring. Here is a snippet of the GML code: The error is an empty MultiPolygon. There are no other errors produced by MapServer. I have also noticed that GML that is produced, only Filled Polygon (no inner rings) are declared under the Polygon element, while a Polygon with inner rings are declared as a Polygon under MultiPolygon. Anyone has any explaination for this? This does not conform to the OGC GML standard. I have also tried using ogr2ogr tool on the shapefile, and converted it to a GML. Upon inspection, the GML conforms to the OGC GML standard and the missing feature is declared correctly. I tried changing my map file to use a OGR connection to the GML file and I still get the same GML by Mapserver. Is this a known bug of Mapserver? I have also tried the same shapefile on GeoServer and GEOServer produced valid GML for the feature. If anyone can tell me why I can't get the GML to produce correctly please let me know. It would be a GREAT help if you are able help. Email me if you would like me to send the shape file and mapfile. Regards, John Send instant messages to your online friends http://au.messenger.yahoo.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From bartvde at XS4ALL.NL Mon Jul 3 01:35:19 2006 From: bartvde at XS4ALL.NL (Bart van den Eijnden (OSGIS)) Date: Mon, 3 Jul 2006 10:35:19 +0200 Subject: WFS GetFeature produces Not valid GML In-Reply-To: <20060703081146.35388.qmail@web38113.mail.mud.yahoo.com> Message-ID: Are you able to check with Mapserver 4.8.3 and confirm the bug is also in there? If so please file a bugzilla report with the necessary info to reproduce. Best regards, Bart > Hello, > > I Just noticed that Mapserver 4.6.2 is giving me invalid GML for a polygon > with one inner ring. > > Here is a snippet of the GML code: > > > > > > > The error is an empty MultiPolygon. There are no other errors produced by > MapServer. I have also noticed that GML that is produced, only Filled > Polygon (no inner rings) are declared under the Polygon element, while a > Polygon with inner rings are declared as a Polygon under MultiPolygon. > Anyone has any explaination for this? This does not conform to the OGC > GML standard. > > I have also tried using ogr2ogr tool on the shapefile, and converted it to > a GML. Upon inspection, the GML conforms to the OGC GML standard and the > missing feature is declared correctly. I tried changing my map file to > use a OGR connection to the GML file and I still get the same GML by > Mapserver. Is this a known bug of Mapserver? > > I have also tried the same shapefile on GeoServer and GEOServer produced > valid GML for the feature. > > If anyone can tell me why I can't get the GML to produce correctly please > let me know. It would be a GREAT help if you are able help. Email me if > you would like me to send the shape file and mapfile. > > Regards, > John > Send instant messages to your online friends > http://au.messenger.yahoo.com From hydromap at GMAIL.COM Mon Jul 3 01:46:23 2006 From: hydromap at GMAIL.COM (Shoaib Burq) Date: Mon, 3 Jul 2006 18:46:23 +1000 Subject: Mapscript mapObj.save() to write out multiple outputformats In-Reply-To: <75b4b93e0607022356l246d1313yff51578688dc8e33@mail.gmail.com> Message-ID: Humm... not so sure if the map.draw applies to what we are trying to do... according to the Mapscript API docs map.draw() returns an imageObj, while we are trying to write-out a mapfile with multiple outputFormat definitions in it. This functionality should be part of the map.save() method but I am beginning to think it's not implemented. On 7/3/06, Umberto Nicoletti wrote: > You probably have to loop over all the formats you need and for every > format do something like: > > map.setOutputFormat > map.draw > > hth, > Umberto > > On 7/1/06, Shoaib Burq wrote: > > Hi all > > > > we are trying to create a mapfile on the fly and need to add multiple > > outputformats to the mapfile. we can use the > > appendOutputFormat(new_OF) in python-mapscript. However when using the > > mapObj.save(mymapfile.map) to write our map object to file, it only > > writes-out the last format appened. > > > > The only relavent code i found was in: > > mapserver/mapscript/python/tests/cases/outputformattest.py > > But this only tests if the current outputformat is defined correctly ... > > > > Does anyone know if we can use the mapObj.save() function to create > > mapfiles with multiple OUTPUTFORMAT definitions and if not anyone know > > where the save() function's defined and if its easy to extend it to do > > this? > > > > thanks heaps > > shoaib > > -- > > http://nomad-labs.com > > > From umberto.nicoletti at GMAIL.COM Mon Jul 3 01:55:51 2006 From: umberto.nicoletti at GMAIL.COM (Umberto Nicoletti) Date: Mon, 3 Jul 2006 10:55:51 +0200 Subject: Mapscript mapObj.save() to write out multiple outputformats In-Reply-To: <60c6835d0607030146w19f801d7pa2fcb614b04262c6@mail.gmail.com> Message-ID: Gee, sorry I misread your question (it's monday morning....) Dunno why it doesn't work tough. Umberto On 7/3/06, Shoaib Burq wrote: > Humm... not so sure if the map.draw applies to what we are trying to > do... according to the Mapscript API docs map.draw() returns an > imageObj, while we are trying to write-out a mapfile with multiple > outputFormat definitions in it. > > This functionality should be part of the map.save() method but I am > beginning to think it's not implemented. > > On 7/3/06, Umberto Nicoletti wrote: > > You probably have to loop over all the formats you need and for every > > format do something like: > > > > map.setOutputFormat > > map.draw > > > > hth, > > Umberto > > > > On 7/1/06, Shoaib Burq wrote: > > > Hi all > > > > > > we are trying to create a mapfile on the fly and need to add multiple > > > outputformats to the mapfile. we can use the > > > appendOutputFormat(new_OF) in python-mapscript. However when using the > > > mapObj.save(mymapfile.map) to write our map object to file, it only > > > writes-out the last format appened. > > > > > > The only relavent code i found was in: > > > mapserver/mapscript/python/tests/cases/outputformattest.py > > > But this only tests if the current outputformat is defined correctly ... > > > > > > Does anyone know if we can use the mapObj.save() function to create > > > mapfiles with multiple OUTPUTFORMAT definitions and if not anyone know > > > where the save() function's defined and if its easy to extend it to do > > > this? > > > > > > thanks heaps > > > shoaib > > > -- > > > http://nomad-labs.com > > > > > > From warmerdam at POBOX.COM Mon Jul 3 02:52:51 2006 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Mon, 3 Jul 2006 05:52:51 -0400 Subject: Mapscript mapObj.save() to write out multiple outputformats In-Reply-To: <60c6835d0607010626y6abbad25hc25fe9109208f8b8@mail.gmail.com> Message-ID: Shoaib Burq wrote: > Hi all > > we are trying to create a mapfile on the fly and need to add multiple > outputformats to the mapfile. we can use the > appendOutputFormat(new_OF) in python-mapscript. However when using the > mapObj.save(mymapfile.map) to write our map object to file, it only > writes-out the last format appened. > > The only relavent code i found was in: > mapserver/mapscript/python/tests/cases/outputformattest.py > But this only tests if the current outputformat is defined correctly ... > > Does anyone know if we can use the mapObj.save() function to create > mapfiles with multiple OUTPUTFORMAT definitions and if not anyone know > where the save() function's defined and if its easy to extend it to do > this? Shoaib, I think this is a bug. If you could submit a bugzilla entry on this and ensure it is assigned to me I'll look into fixing it. At least in 4.9. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | President OSGF, http://osgeo.org From baas at SPEERIT.NL Mon Jul 3 03:14:12 2006 From: baas at SPEERIT.NL (Jelmer Baas) Date: Mon, 3 Jul 2006 12:14:12 +0200 Subject: Searching for closest object in mapserver Message-ID: Hi all, Is there any way to let mapserver determine what object is closest to a point I specify? I basicly have a set of coordinates and what to know which (part of an) object is closest to that point, meaning I also need to test lines. In my desktop app this is handled by Oracle spatial, but I don't have that here and don't want to use it as well. Any suggestions would be more than welcome. -- With kind Regards Jelmer Baas From kobben at ITC.NL Mon Jul 3 04:43:22 2006 From: kobben at ITC.NL (=?iso-8859-1?Q?Barend_K=F6bben?=) Date: Mon, 3 Jul 2006 13:43:22 +0200 Subject: Cascading WMS - WFS Message-ID: Hi, this seems to have to do with the settings of IMAGEPATH and IMAGEURL in the WEB object in your mapfile. The WFS stores it's GML there (using the IMAGEPATH) for the WMS to retrieve (using either the IMAGEURL or IMAGEPATH, not entirely clear to me). Somewhere in the docs is a note that this should probably change, as it exposes the GML to malicious downloading, but at the moment it's like that. -- Barend K?bben International Institute for Geo-information Sciences and Earth Observation (ITC) PO Box 6, 7500AA Enschede (The Netherlands) ph: +31 (0)53 4874253; fax: +31 (0)53 4874335 > -----Original Message----- > From: UMN MapServer Users List > [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Fabio D'Ovidio > Sent: 30 June 2006 15:53 > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: [UMN_MAPSERVER-USERS] Cascading WMS - WFS > > Dear ML, > I have a problem. > > > Some Months ago I have configured MapServer as WMS service > where one layers was taken from another apServer configured as WFS. > > > It worked fine and i was able to display gml format returned > ny WFS MapServer as an image in WMS MapServer ! > > > Now I have tried to request for the same map and I have > received the following error : > > > > "http://schemas.opengeospatial.net/wms/1.1.1/exception_1_1_1.dtd"> > > > msHTTPExecuteRequests(): HTTP request error. Can't open > output file > \\naru04\Inetpub\wwwroot\applicazioni\tmp\b4b1804569004f917244 > a03b13bd0963.tmp.gml. > msBuildWFSLayerPostRequest(): WFS connection error. Metadata > wfs_service must be set in the layer > > > > > I have tried also to set metadata wfs parameters in the layer > and not in the CONNECTION tag but it's the same !!! > > > why ? > > > > > Thanks > ************************************************************** > ****************************** > graphic > > > Eng. Fabio D'Ovidio > WebGIS Staff > Planetek Italia Srl > via Massaua, 12 - 70123 Bari - Italy > web : http ://www.planetek.it > e-mail : dovidio at planetek.it > > > ************************************************************** > ****************************** > From lucamarle at GMAIL.COM Mon Jul 3 05:45:14 2006 From: lucamarle at GMAIL.COM (luca marletta) Date: Mon, 3 Jul 2006 14:45:14 +0200 Subject: vector over raster not displayed correctly Message-ID: Hi All, I have several vector layer and some raster, a map and an orthophoto, TIF format, I'm using mapserver 4.8. When I overlap vector to raster (they are in different layers and groups) I have just labels shown above and I cannot get why I'm not able to see line and polygons. My question is there is some rules to respect for such overlaying? Thanks for any suggestions luca -- luca marletta From David.Fawcett at STATE.MN.US Mon Jul 3 06:02:32 2006 From: David.Fawcett at STATE.MN.US (Fawcett, David) Date: Mon, 3 Jul 2006 08:02:32 -0500 Subject: Image tilling In-Reply-To: A<1151698192.44a5851034af6@webmail.oregonstate.edu> Message-ID: Ryan, There may be additional issues, but if you are not explicitly calling this layer by name in the URL or post request, you need to set the layer status to DEFAULT to make the layer visible. David. -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Ryan Ollerenshaw Sent: Friday, June 30, 2006 3:10 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Image tilling What I am trying to do is to georeference aerial photos of a large area, eventually the entire earth. So what I need is to be able to specify the lat/long of each photo (which I have) using only the lat/long coordinate system. I would like the user to be able to specify a bounding box (lat/long) for a given area then have my mapserver return all the available images for that given area. Currently I think that I can use: gdal_translate -a_ullr 180 0 210 -30 thm_dir_N-30_180.png thm_dir_N-30_180.tiff To georeference all of my photos, then: gdaltindex thm_dir.shp *.tif To create a shape file with an index of all the photos, then I can specify my layer in the mapfile as: LAYER NAME "tileindex" STATUS ON TILEINDEX "thm_dir.shp" TILEITEM "Location" TYPE RASTER END But when I display this layer in MapServer I get a blank image, and when I try to view the shape file in ArcMap I can see my tiles but they are just displayed as blank polygons with no images. I think that my problem is incorrectly specifying the EXTENT in the map file, but i am not sure what i should put if i want my tiles to eventually cover then entire world. Thanks, -Ryan Here is my entire map file incase that helps any: NAME WMSDEMO STATUS ON SIZE 500 400 #EXTENT 0 0 2800 2800 #EXTENT -180 -90 180 90 EXTENT -9200000 -912631 3072800 3840000 #UNITS METERS SHAPEPATH "../data" IMAGECOLOR 255 255 255 WEB TEMPLATE test_template.html IMAGEPATH "/tmp/ms_tmp/" IMAGEURL "/ms_tmp/" METADATA WMS_TITLE "WMS test mapserver" WMS_ACCESSCONSTRAINTS "none" #WMS_ONLINERESOURCE "http://neuron/cgi-bin/mapserv?map=display.map&" WMS_SRS "EPSG:4326" #"AUTO:42003" END END PROJECTION "init=epsg:4326" END LAYER # Shaded Relief Raster NAME test_layer DATA bath_mapserver.tif STATUS ON TYPE RASTER END LAYER NAME "hpool" STATUS ON #DATA "thm_dir_00_030.tiff" TILEINDEX "thm_dir.shp" #TILEITEM "Location" TYPE RASTER END END # of map file From mhwang4 at UIUC.EDU Mon Jul 3 06:28:57 2006 From: mhwang4 at UIUC.EDU (Myunghwa Hwang) Date: Mon, 3 Jul 2006 08:28:57 -0500 Subject: How to make a layer without extra file or table column Message-ID: Hello, lists! I'm trying to do some analysis and then show its results as a new layer. Source data for analysis is in a shp file or a postgis data table. In my case, I don't need to make new feature and I want to use analysis results as a new column. Till now, for this, I made a new dbf file or inserted the results to a new data table. But it's kind of slow. So what I want to know is if there is a way that directly use data in memory for data source for a new layer, and if so, how to do. If there is anyone who already experienced this problem, please help me. Thank you in advance. From aiandolo at GRUPPOAS.IT Mon Jul 3 06:23:12 2006 From: aiandolo at GRUPPOAS.IT (Antonio Iandolo) Date: Mon, 3 Jul 2006 15:23:12 +0200 Subject: Oracle10g and queryByAttributes Message-ID: I'm querying Oracle10g with phpmapscript (MapServer 4.8.3) but I can't browse the result set... Here it is my code: $myresult=$mylayer->queryByAttributes($queryItem,$queryString,MS_SINGLE) ; var_dump($myresult); if ($mylayer->getNumResults() > 0){ $mylayer->open(); $result=$mylayer->getResult($i); $shp=$mylayer->getShape(-1,$myresult->shapeindex); var_dump($shp); } From e.witteveen at HAWARIT.COM Mon Jul 3 06:38:59 2006 From: e.witteveen at HAWARIT.COM (Eduard Witteveen) Date: Mon, 3 Jul 2006 15:38:59 +0200 Subject: a layer from multiple datasources (similar to mapguide's secondary table) Message-ID: Hello list, How do use multiple datasources (oracle-database-table and esri-shapefile) in the same layer? I want to give colors based upon the values defined in oracle, and also specify a filter on the dataset in oracle. The shape of the area's is stored in the esri-shapefile. Both the oracle database and shape file's have the same value in their data, so this should be used for the reference. I looked at "ogr-join", but i'm not sure if it is the tool for me? -- Ing. Eduard Yeb Witteveen Software Engineer Hawar Information Technology bv lid Dijkoraad Groep De Wymerts 7 8701 WT Bolsward Tel: +31 (0)515 570333 Fax: +31 (0)515 570335 http://www.hawarit.com/ nl_NL fy_NL en_US From fsimon at UNIVALI.BR Mon Jul 3 06:48:38 2006 From: fsimon at UNIVALI.BR (Fernando Simon) Date: Mon, 3 Jul 2006 10:48:38 -0300 Subject: Oracle10g and queryByAttributes In-Reply-To: <002f01c69ea3$d5a44bd0$5d00a8c0@aiandolo> Message-ID: Hi Antonio, How did you defined your DATA parameter for you layer? The extents for your query are right? Here I use this code as example: // Performing the query and returning only a single record @$qlayer->queryByAttributes($nm_field_query, $regex, MS_SINGLE); $numresults = $qlayer->getNumResults(); if ($numresults > 0) { for($f = 0; $f < $numresults ; $f++) { // Opening the layer to return data $qlayer->open(); // Getting the object that store the results $indexResult = $qlayer->getResult($i); $qresult = $qlayer->getShape(-1,$indexResult->shapeindex); // Getting the data from object // The "values" contains the data // for all columns that are in layer data definition // You can get all columns that are in data definition $dataResult = array($qresult->values[STATE]); // Cleaning and closing objects $qresult->free(); $qlayer->close(); } return $dataResult[0]; } And my DATA definition: data "geo_column from (SELECT geo_id, state, totpop, geo_column FROM tb_states) USING UNIQUE geo_id FILTER" Best regards. ------------------------------------------------------------------------ Fernando Simon Mapserver and Oracle Spatial developer G10 - Laboratorio de Computacao Aplicada - Brazil http://g10.cttmar.univali.br - UNIVALI/CTTMAR ------------------------------------------------------------------------ Antonio Iandolo wrote: > I'm querying Oracle10g with phpmapscript (MapServer 4.8.3) but I can't > browse the result set... > > Here it is my code: > > $myresult=$mylayer->queryByAttributes($queryItem,$queryString,MS_SINGLE) > ; > var_dump($myresult); > if ($mylayer->getNumResults() > 0){ > $mylayer->open(); > $result=$mylayer->getResult($i); > $shp=$mylayer->getShape(-1,$myresult->shapeindex); > var_dump($shp); > } > > >From the output I can see that: > > 1) var_dump($myresult) is "object(stdClass)(3) { ["shapeindex"]=> > int(-2028233538) ["tileindex"]=> int(-1) ["classindex"]=> int(0) }" > > 2) var_dump($shp) is "False" > > It displays numresults=1 but it $myresult->shapeindex is negative... > > What's wrong? Maybe this is not the right way to query Oracle > (queryByAttributes) to get data? > > Thanks in advance, > Antonio > > From byhisdeeds at GMAIL.COM Mon Jul 3 07:07:08 2006 From: byhisdeeds at GMAIL.COM (John Preston) Date: Mon, 3 Jul 2006 09:07:08 -0500 Subject: Correct use of maxscale and minscale Message-ID: I have a geotiff raster map server layer working and want to use the maxscale and minscale parameters to have it only display at certain times. How do I calculate what the scale factor should be for the image. The image is a geotiff with 1 pixel equals to 1 meter. From abe.gillespie at GMAIL.COM Mon Jul 3 07:15:20 2006 From: abe.gillespie at GMAIL.COM (Abe Gillespie) Date: Mon, 3 Jul 2006 10:15:20 -0400 Subject: Searching for closest object in mapserver In-Reply-To: <44A8EDF4.3020807@speerit.nl> Message-ID: I'm not sure if you're using CGI (in which case I'm not sure) or not ... but if you are from the docs for layerObj: int queryByPoint(pointObj point, int mode, double buffer) Query layer at point location specified in georeferenced map coordinates (i.e. not pixels). The query is performed on all the shapes that are part of a CLASS that contains a TEMPLATE value or that match any class in a layer that contains a LAYER TEMPLATE value. Mode is MS_SINGLE or MS_MULTIPLE depending on number of results you want. Passing buffer <=0 defaults to tolerances set in the map file (in pixels) but you can use a constant buffer (specified in ground units) instead. Returns MS_SUCCESS if shapes were found or MS_FAILURE if nothing was found or if some other error happened (note that the error message in case nothing was found can be avoided in PHP using the '@' control operator). The docs are somewhat confusing here but if you use MS_SINGLE for "mode" then you'll get exactly what you're asking for. Like this: $layer->queryByPoint($myPoint, MS_SINGLE, $myBufferRadius); Hope this helps! -Abe On 7/3/06, Jelmer Baas wrote: > Hi all, > > Is there any way to let mapserver determine what object is closest to a > point I specify? > > I basicly have a set of coordinates and what to know which (part of an) > object is closest to that point, meaning I also need to test lines. > > In my desktop app this is handled by Oracle spatial, but I don't have > that here and don't want to use it as well. > > Any suggestions would be more than welcome. > > > > -- > With kind Regards > Jelmer Baas > From baas at SPEERIT.NL Mon Jul 3 07:19:04 2006 From: baas at SPEERIT.NL (Jelmer Baas) Date: Mon, 3 Jul 2006 16:19:04 +0200 Subject: Searching for closest object in mapserver In-Reply-To: Message-ID: Abe Gillespie wrote: > I'm not sure if you're using CGI (in which case I'm not sure) or not > ... but if you are from the docs for layerObj: > > int queryByPoint(pointObj point, int mode, double buffer) > $layer->queryByPoint($myPoint, MS_SINGLE, $myBufferRadius); Thanks for your answer, but DANG!. After I read your first sentence I knew that I forgot to add this. I *AM* using the CGI mapserver, on Windows with IIS and ASP. I'm not using the PHP stuff at all. My next idea is to manually query mapserver and then parse the results with javascript. The problem is that I only get the beginning and end points of lines, so I have no clue how the line itself moves ;( I'm still hoping that what I want is possible with CGI mapserver. -- With kind regards, Jelmer Baas From abe.gillespie at GMAIL.COM Mon Jul 3 07:27:15 2006 From: abe.gillespie at GMAIL.COM (Abe Gillespie) Date: Mon, 3 Jul 2006 10:27:15 -0400 Subject: Searching for closest object in mapserver In-Reply-To: <44A92758.5030206@speerit.nl> Message-ID: It most likely is possible with CGI ... I just can't help you here. Maybe looking through the docs at mapserver.gis.umn.edu will get you what you need. -Abe On 7/3/06, Jelmer Baas wrote: > Abe Gillespie wrote: > > I'm not sure if you're using CGI (in which case I'm not sure) or not > > ... but if you are from the docs for layerObj: > > > > int queryByPoint(pointObj point, int mode, double buffer) > > > > $layer->queryByPoint($myPoint, MS_SINGLE, $myBufferRadius); > > Thanks for your answer, but DANG!. After I read your first sentence I > knew that I forgot to add this. I *AM* using the CGI mapserver, on > Windows with IIS and ASP. I'm not using the PHP stuff at all. > > My next idea is to manually query mapserver and then parse the results > with javascript. The problem is that I only get the beginning and end > points of lines, so I have no clue how the line itself moves ;( > > I'm still hoping that what I want is possible with CGI mapserver. > > > -- > With kind regards, > Jelmer Baas > From earevaloch at GMAIL.COM Mon Jul 3 08:28:46 2006 From: earevaloch at GMAIL.COM (=?ISO-8859-1?Q?Eduardo_Ar=E9valo?=) Date: Mon, 3 Jul 2006 10:28:46 -0500 Subject: Error in WMS server Message-ID: Hello list: I receive this error when I try load my WMS msWMSLoadGetMapParams(): WMS server error. Invalid layer(s) given in the LAYERS parameter. with http://10.1.6.46/cgi-bin/mapserv?map=mapwms.map&SERVICE=WMS&VERSION=1.1.1&REQUEST=getmap&LAYER=Mosaico_Peru My mapfile is : MAP NAME DEMO PROJECTION "init=epsg:2163" END WEB METADATA "wms_title" "Server_WMS" "wms_onlineresource" "http://10.1.6.46/cgi-bin/mapserv?map=mapwms.map&" "wms_srs" "EPSG:4269 EPSG:4326" END END END LAYER NAME Mosaico_Peru DATA "/home/postgres/raster/PERU300DPI.tif" STATUS OFF TYPE RASTER PROCESSING "BANDS=1,2,3" OFFSITE 71 74 65 PROJECTION "init=epsg:4326" END END END END please help. -------------- next part -------------- An HTML attachment was scrubbed... URL: From Steve.Lime at DNR.STATE.MN.US Mon Jul 3 08:32:21 2006 From: Steve.Lime at DNR.STATE.MN.US (Steve Lime) Date: Mon, 3 Jul 2006 10:32:21 -0500 Subject: Searching for closest object in mapserver Message-ID: It is possible with the CGI. A straight mode=query will give you the closest feature in qlayer or across mulitiple layers if qlayer is not specified. The search will respect any tolerances set within a particular layer. Steve >>> Abe Gillespie 7/3/2006 9:27:15 AM >>> It most likely is possible with CGI ... I just can't help you here. Maybe looking through the docs at mapserver.gis.umn.edu will get you what you need. -Abe On 7/3/06, Jelmer Baas wrote: > Abe Gillespie wrote: > > I'm not sure if you're using CGI (in which case I'm not sure) or not > > ... but if you are from the docs for layerObj: > > > > int queryByPoint(pointObj point, int mode, double buffer) > > > > $layer->queryByPoint($myPoint, MS_SINGLE, $myBufferRadius); > > Thanks for your answer, but DANG!. After I read your first sentence I > knew that I forgot to add this. I *AM* using the CGI mapserver, on > Windows with IIS and ASP. I'm not using the PHP stuff at all. > > My next idea is to manually query mapserver and then parse the results > with javascript. The problem is that I only get the beginning and end > points of lines, so I have no clue how the line itself moves ;( > > I'm still hoping that what I want is possible with CGI mapserver. > > > -- > With kind regards, > Jelmer Baas > From baas at SPEERIT.NL Mon Jul 3 08:39:50 2006 From: baas at SPEERIT.NL (Jelmer Baas) Date: Mon, 3 Jul 2006 17:39:50 +0200 Subject: Searching for closest object in mapserver In-Reply-To: Message-ID: Steve Lime wrote: > It is possible with the CGI. A straight mode=query will give you the closest > feature in qlayer or across mulitiple layers if qlayer is not specified. The search > will respect any tolerances set within a particular layer. Thanks, Steve, Though, I can't seem to find the right combination of which CGI switches to use. Would you be able to provide me with an example? -- Jelmer Baas From Steve.Lime at DNR.STATE.MN.US Mon Jul 3 09:02:10 2006 From: Steve.Lime at DNR.STATE.MN.US (Steve Lime) Date: Mon, 3 Jul 2006 11:02:10 -0500 Subject: PERL interface trouble Message-ID: You can get at the MapServer error stack with a call like: my $map = new mapscript::mapObj( $mapfile ) or mapscript::msGetErrorString("\n"); That may help, or be something to try. I use perl MapScript with 4.8 and the CVS version all the time with good results. Steve >>> Joseph Bussell 6/30/2006 2:09:06 PM >>> Does anyone use the latest code with PERL Mapscript? If shp2img works with my mapfile, is there anything else I can do to understand why my new call for the mapObj fails? Joe Bussell On Time Systems Joseph Bussell wrote: > I have verified that shp2img constructs an image that derives form my > mapfile. This part looks good. My mapscript code was written for > 4.4.2, but the one function that is failing does not appear to have > significantly changed. I am not getting past construction of the > basic mapObj from the mapfile. Specifically, the call to : > > my $map = new mapscript::mapObj( $mapfile ) or carp "Could not create > mapscript object from mapfile: $mapfile"; > > produces the error message. I also went into mapscript.pm and added > debug code there to be sure I was using the correct module. The low > level call is producing an unusable result. > Joe Bussell > On Time Systems > > > Stephen Woodbridge wrote: > >> Hi Joe, >> >> A couple of things. >> >> 1) what version does you existing code work on? >> 2) There are probably two areas that you will need to change >> a) the mapfile >> b) the perl >> >> I would start with using shp2img to make sure you mapfile can load. >> It will at least print errors that you can read. >> >> shp2img -m /path/to/file.map -o junk.png ... >> >> Once you can get an image then you will probably have more luck >> tracking down the various mapscript changes. These will depend on >> what version of mapscript your code was written for. >> >> -Steve W. >> >> Joseph Bussell wrote: >> >>> Greetings Listers, >>> It has been a while since I deployed a new Mapserver application. >>> I have been leaning on old source on an old box to get the work >>> done. I have been given a new server to set up for our Air Force >>> project and have had some issues with getting my code to work. >>> First of all I am using Mapscript ala PERL. I recognize that the >>> PERL interface has not been updated due to a lack of user interest, >>> but I am still partial to using it if it can still be done (mostly >>> since I will not have to rewrite my routing path functionality). >>> >>> My problem is getting the actual mapObj to construct from my >>> mapfile. I have not been able to get any debug information our by >>> checking /tmp/mserrors, which used to work nicely in such cases. >>> All I get is an undefined reference. My code for construction is >>> simple: >>> >>> my $map = new mapscript::mapObj( $mapfile ) or carp "Could not >>> create mapscript object from mapfile: $mapfile"; >>> >>> in my httpd.conf I define >>> MS_ERRORFILE /tmp/mserrors.txt >>> >>> My mapfile exists and is very simple. >>> I am running: >>> CentOS release 4.3 >>> AMD64, dual core machine >>> Apache/2.0.52 >>> mapserver-4.8.3.tar.gz >>> perl, v5.8.5 built for x86_64-linux-thread-multi >>> >>> Thank you for your time. >>> >>> Joe Bussell >>> On Time Systems >>> >> >> > From roxana.sevciuc at GMAIL.COM Mon Jul 3 09:04:01 2006 From: roxana.sevciuc at GMAIL.COM (Roxana Sevciuc) Date: Mon, 3 Jul 2006 18:04:01 +0200 Subject: Labeling with ANGLE follow parameter Message-ID: Hello list, I'm trying to display some road labels using a PostGIS database and the SVG output format file. It is mandatory for me that the labels follow the line (roads) curves, as well as the use of the SVG format. Until now, I managed to do this only with the PNG output format by using the "ANGLE follow" facility, as I'm using the latest version of MapServer. My question is: is there possible to get the same result for the "IMAGETYPE svg"? Is this option also available for the SVG? If YES, why's that my mapfile (extract attached bellow) act like an "ANGLE auto" setup? I have complex LINESTRING in my database, so MapServer should be able to compute, for mostly all roads, the necessary paths for labels. Is there someone able to link me to the source code which take into account the labeling position issue and the generation of the SVG file? Thanks a lot for helping me Roxana SEVCIUC -------------- next part -------------- An HTML attachment was scrubbed... URL: From roxana.sevciuc at GMAIL.COM Mon Jul 3 09:14:37 2006 From: roxana.sevciuc at GMAIL.COM (Roxana Sevciuc) Date: Mon, 3 Jul 2006 18:14:37 +0200 Subject: labeling with ANGLE follow parameter Message-ID: Sory for forgetting the mapfile ... Here it is! MAP NAME "Ma carte" FONTSET "C:\Program Files\FWTools1.0.0\Fonts\fonts.txt" SIZE 15000 9550 EXTENT 2.666432 48.798993 2.750456 48.852482 IMAGETYPE svg LAYER #road layer CONNECTIONTYPE postgis TYPE LINE NAME "routes" CONNECTION "user=a password=a dbname=bussy host=localhost" DATA "wkb_geometry FROM bussy_saint_georges_routier_total using unique id" STATUS ON CLASS COLOR 0 0 255 END END LAYER #label layer CONNECTIONTYPE postgis TYPE ANNOTATION NAME "labels_local" CONNECTION "user=a password=a dbname=bussy host=localhost" DATA "wkb_geometry FROM (SELECT Collect(wkb_geometry) as wkb_geometry, nom, code_insee_l, min(id) as id FROM bussy_saint_georges_routier_local WHERE nom <> '' GROUP BY nom, code_insee_l) as test using unique id" STATUS ON LABELITEM 'NOM' CLASS STYLE COLOR -1 -1 -1 #the layer must be transparent END LABEL COLOR 100 100 100 #only features are drawn TYPE truetype FONT arial SIZE 10 POSITION cc ANGLE follow FORCE true END #label END #class END #layer END #map From hydromap at GMAIL.COM Mon Jul 3 09:16:10 2006 From: hydromap at GMAIL.COM (Shoaib Burq) Date: Tue, 4 Jul 2006 02:16:10 +1000 Subject: Mapscript mapObj.save() to write out multiple outputformats In-Reply-To: <44A8E8F3.9060906@pobox.com> Message-ID: ok all done, I've also added a script to reproduce the problem http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=1816 thanks Frank On 7/3/06, Frank Warmerdam wrote: > Shoaib Burq wrote: > > Hi all > > > > we are trying to create a mapfile on the fly and need to add multiple > > outputformats to the mapfile. we can use the > > appendOutputFormat(new_OF) in python-mapscript. However when using the > > mapObj.save(mymapfile.map) to write our map object to file, it only > > writes-out the last format appened. > > > > The only relavent code i found was in: > > mapserver/mapscript/python/tests/cases/outputformattest.py > > But this only tests if the current outputformat is defined correctly ... > > > > Does anyone know if we can use the mapObj.save() function to create > > mapfiles with multiple OUTPUTFORMAT definitions and if not anyone know > > where the save() function's defined and if its easy to extend it to do > > this? > > Shoaib, > > I think this is a bug. If you could submit a bugzilla entry on this and > ensure it is assigned to me I'll look into fixing it. At least in 4.9. > > Best regards, > -- > ---------------------------------------+-------------------------------------- > I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com > light and sound - activate the windows | http://pobox.com/~warmerdam > and watch the world go round - Rush | President OSGF, http://osgeo.org > > From jsievers at CO.LINN.OR.US Mon Jul 3 09:19:23 2006 From: jsievers at CO.LINN.OR.US (Sievers, Jason) Date: Mon, 3 Jul 2006 09:19:23 -0700 Subject: Legend works in 4.4, but not in 4.6 and above Message-ID: I have an HTML legend template file that works wonderfully in MapServer 4.4 and below. However when using MapServer 4.6 and above my legend breaks. I have thoroughly searched and tested for other possible problems but I have concluded that the problem must lie somewhere in MapServer. Either MapServer 4.6 and above reads HTML Legend template files differently than older versions, or this is a bug in MapServer 4.6 and above. MapServer 4.6 and above handle the legend well when the mapfile contains a few layers. But when the number of layers gets large (~10-15), the legend file's code is never even entered. The CGI legend tag in my HTML file is simply skipped. I have included my template file below. I am fairly desperate so any thoughts are helpful. I would like to move to MapServer 4.8 but need the legend to work first. Thanks. [leg_layer_html order_metadata=orderby opt_flag=15] [if name=display oper=isset] [if name=grp oper=isset] [/if] [if name=layer_type oper=neq value=3] [/if] [if name=layer_type oper=eq value=3] [/if] [if name=layer_status oper=eq value=1] [/if] [if name=href oper=isset] [/if] [if name=desc oper=isset] [/if] [/if] [/leg_layer_html] [leg_class_html opt_flag=15] [if name=display oper=isset] [/if] [/leg_class_html] Jason Sievers Linn County, Oregon -------------- next part -------------- An HTML attachment was scrubbed... URL: From bartvde at XS4ALL.NL Mon Jul 3 09:32:12 2006 From: bartvde at XS4ALL.NL (Bart van den Eijnden (OSGIS)) Date: Mon, 3 Jul 2006 18:32:12 +0200 Subject: Error in WMS server In-Reply-To: <95f68e530607030828i693fe925o4f7ffea3ccec1128@mail.gmail.com> Message-ID: The parameter is called LAYERS and not LAYER. Best regards, Bart Eduardo Ar?valo wrote: > Hello list: > I receive this error when I try load my WMS > > msWMSLoadGetMapParams(): WMS server error. Invalid layer(s) given in > the LAYERS parameter. > with > http://10.1.6.46/cgi-bin/mapserv?map=mapwms.map&SERVICE=WMS&VERSION=1.1.1&REQUEST=getmap&LAYER=Mosaico_Peru > > My mapfile is : > > MAP > NAME DEMO > PROJECTION > "init=epsg:2163" > END > WEB > METADATA > "wms_title" "Server_WMS" > "wms_onlineresource" > "http://10.1.6.46/cgi-bin/mapserv?map=mapwms.map& > " > "wms_srs" "EPSG:4269 EPSG:4326" > END > END > END > > LAYER > NAME Mosaico_Peru > DATA "/home/postgres/raster/PERU300DPI.tif" > STATUS OFF > TYPE RASTER > PROCESSING "BANDS=1,2,3" > OFFSITE 71 74 65 > PROJECTION > "init=epsg:4326" > END > END > END > END > > please help. > > -- Bart van den Eijnden OSGIS, Open Source GIS http://www.osgis.nl From dovidio at PLANETEK.IT Mon Jul 3 09:33:24 2006 From: dovidio at PLANETEK.IT (Fabio D'Ovidio) Date: Mon, 3 Jul 2006 18:33:24 +0200 Subject: Dynamic GML with MapServer Message-ID: Hi all, I 'm trying to configure two MapServer : a cascading between WMS & WFS. Data are in WFS while WMS displays the map. I want WMS MapServer directly draws query_results from WFS without downloading all of the GML file. So, I'd like to add a spatial filter in the WMS Request and display only the result of the query from this. I don't want to add my filter in the WFS request ! Is it possible ? Thanks ******************************************************************************************** Eng. Fabio D'Ovidio WebGIS Staff Planetek Italia Srl via Massaua, 12 - 70123 Bari - Italy web : http ://www.planetek.it e-mail : dovidio at planetek.it ******************************************************************************************** -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- The following section of this message contains a file attachment prepared for transmission using the Internet MIME message format. If you are using Pegasus Mail, or any other MIME-compliant system, you should be able to save it or view it from within your mailer. If you cannot, please ask your system administrator for assistance. ---- File information ----------- File: planetek.gif Date: 28 Feb 2006, 16:15 Size: 1899 bytes. Type: Unknown -------------- next part -------------- A non-text attachment was scrubbed... Name: planetek.gif Type: application/octet-stream Size: 1899 bytes Desc: not available URL: From cavallini at FAUNALIA.IT Mon Jul 3 09:43:04 2006 From: cavallini at FAUNALIA.IT (Paolo Cavallini) Date: Mon, 3 Jul 2006 18:43:04 +0200 Subject: [GRASS-user] ogr-grass In-Reply-To: <20060630125436.69741c4b@butan.gdf-hannover.de> Message-ID: -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Further testing. Now www-data can do whatherver with ogr, eg. ogrinfo -so -where atc_num=13 /home/Documenti/datigrass/Toscana/PERMANENT/vector/t_comuni_2003/head 1 gives: Layer name: 1 Geometry: Polygon Feature Count: 18 Extent: (1554732.664063, 4678313.000000) - (1771665.406250, 4924775.960937) Layer SRS WKT: PROJCS["Transverse Mercator", GEOGCS["international", DATUM["Monte_Mario", ... but if we use a string, eg ogrinfo -so -where nomemin='lucca' /home/Documenti/datigrass/Toscana/PERMANENT/vector/t_comuni_2003/head 1 we get: Warning 1: GRASS warning: GISBASE enviroment variable was not set, using: /usr/lib/grass INFO: Open of `/home/Documenti/datigrass/Toscana/PERMANENT/vector/t_comuni_2003/head' using driver `GRASS' successful. DBMI-Postgres driver error: Cannot select: SELECT * FROM t_comuni_2003 WHERE nomemin=lucca ORDER BY cat ERROR: la colonna "lucca" non esiste ERROR 1: Cannot open cursor. Layer name: 1 Geometry: Polygon Feature Count: 313 Extent: (1554732.664063, 4678313.000000) - (1771665.406250, 4924775.960937) Layer SRS WKT: PROJCS["Transverse Mercator", GEOGCS["international", DATUM["Monte_Mario", ... as we can see, there is an error with the database connection (possibly due to the removal of ' ?) Maybe related to this, mapserver cannot connect to the DB; grass layers are loaded and shown, but if we try connecting to PostgreSQL (e.g. LABELITEM, EXPRESSION...) we get an errore: [Mon Jul 03 18:15:45 2006] [error] [client 192.168.0.110] PHP Warning: [MapServer Error]: msDrawMap(): Failed to draw layer named 'grass_POSTGRES'. \n in /home/Documenti/pub/prove_w/visuo_map_file.php on line 6 [Mon Jul 03 18:15:45 2006] [error] [client 192.168.0.110] PHP Warning: [MapServer Error]: msOGRLayerInitItemInfo(): Invalid Field name: atc_num\n in /home/Documenti/pub/prove_w/visuo_map_file.php on line 6 [Mon Jul 03 18:15:45 2006] [error] [client 192.168.0.110] PHP Fatal error: Call to a member function on a non-object in /home/Documenti/pub/prove_w/visuo_map_file.php on line 8 The mapfile is like: LAYER NAME "grass_POSTGRES" TYPE POLYGON CONNECTIONTYPE OGR CONNECTION "/home/Documenti/datigrass/Toscana/PERMANENT/vector/t_comuni_2003/head" DATA "1" STATUS ON LABELITEM "atc_num" CLASS NAME "Ne so veramente troppe" # EXPRESSION ([atc_num]=13) STYLE COLOR 0 240 0 OUTLINECOLOR 0 100 0 END LABEL COLOR 200 0 0 BUFFER 2 END END END Quite frustrating. All the best. pc Stephan Holl wrote: > Hello Paolo, > > On Fri, 30 Jun 2006 10:24:14 +0200 Paolo Cavallini > wrote: > >> -----BEGIN PGP SIGNED MESSAGE----- >> Hash: SHA1 >> >> Hi Stephen. >> In fact, www-data accesses the db; it does not seem able to use the >> .grasslogin6. >> Anybody has a hint? >> Many thanks. >> pc > > have you set the HOME variable for user www-data using apaches > SetEnv-stuff in apache.conf? > > Perhaps this might help? > > Best > Stephan > - -- Paolo Cavallini email+jabber: cavallini at faunalia.it www.faunalia.it Piazza Garibaldi 5 - 56025 Pontedera (PI), Italy Tel: (+39)348-3801953 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.3 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFEqUkX/NedwLUzIr4RAv2/AKCBoWG4XqLBfhudIyZslfxbZofeIgCeOLGP p8sZMWAUtjgTGlBND8PYoZ0= =nY2N -----END PGP SIGNATURE----- From avltrack at YAHOO.COM Mon Jul 3 09:39:11 2006 From: avltrack at YAHOO.COM (E Services) Date: Mon, 3 Jul 2006 09:39:11 -0700 Subject: Suggestions for street finder examples In-Reply-To: <8292E3D1E5E2EF4A94C36FE80D2443A803877CE1@linnms,> Message-ID: I am new to map web servers, but have some HTML, C/C++ under my belt. My target is to develop a street finder and point finder intranet / internet site with ESRI shapefiles (one with streets, and one with points of interest)that I already have. I have been searching and found some usefull stuff, but am sending this email to find out if anyone can point me in some direction that would make life much easier.! :) Thanks __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com From Steve.Lime at DNR.STATE.MN.US Mon Jul 3 11:11:10 2006 From: Steve.Lime at DNR.STATE.MN.US (Steve Lime) Date: Mon, 3 Jul 2006 13:11:10 -0500 Subject: Labeling with ANGLE follow parameter Message-ID: As it sits now the path following text support is for raster output only. Perhaps Assefa ( the SVG support developer) could comment futher. The path support currently available is highly dependent on GD so I'm not sure how well it will translate. Ideally SVG (or PDF) renderer would be able to do this sort of thing indendent of MapServer. That is, MapServer kicks out the shape and the label and leaves the rest to the client. As for source code, mapsvg.c contains all the necessary code. Mapgd.c and maplabel.c contains the path processing support for GD output. Steve >>> Roxana Sevciuc 7/3/2006 11:04:01 AM >>> Hello list, I'm trying to display some road labels using a PostGIS database and the SVG output format file. It is mandatory for me that the labels follow the line (roads) curves, as well as the use of the SVG format. Until now, I managed to do this only with the PNG output format by using the "ANGLE follow" facility, as I'm using the latest version of MapServer. My question is: is there possible to get the same result for the "IMAGETYPE svg"? Is this option also available for the SVG? If YES, why's that my mapfile (extract attached bellow) act like an "ANGLE auto" setup? I have complex LINESTRING in my database, so MapServer should be able to compute, for mostly all roads, the necessary paths for labels. Is there someone able to link me to the source code which take into account the labeling position issue and the generation of the SVG file? Thanks a lot for helping me Roxana SEVCIUC From Steve.Lime at DNR.STATE.MN.US Mon Jul 3 11:16:08 2006 From: Steve.Lime at DNR.STATE.MN.US (Steve Lime) Date: Mon, 3 Jul 2006 13:16:08 -0500 Subject: Searching for closest object in mapserver Message-ID: The normal MapServer Itasca demo does this as does: http://maps.dnr.state.mn.us/cgi-bin/mapserv46?map=/usr/local/www/docs_maps/mapserver_demos/tests46/query/test.map&program=/cgi-bin/mapserv46&htmlroot=/mapserver_demos/tests46&map_web_imagepath=/usr/local/www/docs_maps/tmp/&map_web_imageurl=/tmp/ The relevant parameters are mode=query and qlayer=[some layer name] (optional). The other piece is submitting a point to use for the query and there are several ways to do that. Most often you use imxy/imgext but can also simply send a point in map coordinates using mapxy. Steve >>> Jelmer Baas 7/3/2006 10:39:50 AM >>> Steve Lime wrote: > It is possible with the CGI. A straight mode=query will give you the closest > feature in qlayer or across mulitiple layers if qlayer is not specified. The search > will respect any tolerances set within a particular layer. Thanks, Steve, Though, I can't seem to find the right combination of which CGI switches to use. Would you be able to provide me with an example? -- Jelmer Baas From Steve.Lime at DNR.STATE.MN.US Mon Jul 3 11:17:28 2006 From: Steve.Lime at DNR.STATE.MN.US (Steve Lime) Date: Mon, 3 Jul 2006 13:17:28 -0500 Subject: Legend works in 4.4, but not in 4.6 and above Message-ID: Can you post the legend output from each version? Steve >>> "Sievers, Jason" 7/3/2006 11:19:23 AM >>> I have an HTML legend template file that works wonderfully in MapServer 4.4 and below. However when using MapServer 4.6 and above my legend breaks. I have thoroughly searched and tested for other possible problems but I have concluded that the problem must lie somewhere in MapServer. Either MapServer 4.6 and above reads HTML Legend template files differently than older versions, or this is a bug in MapServer 4.6 and above. MapServer 4.6 and above handle the legend well when the mapfile contains a few layers. But when the number of layers gets large (~10-15), the legend file's code is never even entered. The CGI legend tag in my HTML file is simply skipped. I have included my template file below. I am fairly desperate so any thoughts are helpful. I would like to move to MapServer 4.8 but need the legend to work first. Thanks. [leg_layer_html order_metadata=orderby opt_flag=15] [if name=display oper=isset] [if name=grp oper=isset] [/if] [if name=layer_type oper=neq value=3] [/if] [if name=layer_type oper=eq value=3] [/if] [if name=layer_status oper=eq value=1] [/if] [if name=href oper=isset] [/if] [if name=desc oper=isset] [/if] [/if] [/leg_layer_html] [leg_class_html opt_flag=15] [if name=display oper=isset] [/if] [/leg_class_html] Jason Sievers Linn County, Oregon From holl at GDF-HANNOVER.DE Mon Jul 3 12:09:32 2006 From: holl at GDF-HANNOVER.DE (Stephan Holl) Date: Mon, 3 Jul 2006 21:09:32 +0200 Subject: [GRASS-user] ogr-grass In-Reply-To: <44A94918.3010904@faunalia.it> Message-ID: Hello Paolo, On Mon, 03 Jul 2006 18:43:04 +0200 Paolo Cavallini wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Further testing. > Now www-data can do whatherver with ogr, eg. Did you use SetEnv HOME for www-data? > ogrinfo -so -where atc_num=13 > /home/Documenti/datigrass/Toscana/PERMANENT/vector/t_comuni_2003/head > 1 > > gives: > > Layer name: 1 > Geometry: Polygon > Feature Count: 18 > Extent: (1554732.664063, 4678313.000000) - (1771665.406250, > 4924775.960937) Layer SRS WKT: > PROJCS["Transverse Mercator", > GEOGCS["international", > DATUM["Monte_Mario", > ... > > but if we use a string, eg > ogrinfo -so -where nomemin='lucca' > /home/Documenti/datigrass/Toscana/PERMANENT/vector/t_comuni_2003/head > 1 > > we get: > > Warning 1: GRASS warning: GISBASE enviroment variable was not set, > using: /usr/lib/grass > INFO: Open of > `/home/Documenti/datigrass/Toscana/PERMANENT/vector/t_comuni_2003/head' > using driver `GRASS' successful. > DBMI-Postgres driver error: > Cannot select: > SELECT * FROM t_comuni_2003 WHERE nomemin=lucca ORDER BY cat > ERROR: la colonna "lucca" non esiste AFAIK this should be SELECT * FROM t_comuni_2003 WHERE nomemin='lucca' ORDER BY cat; assuming column nomein is a varchar/char column. So probably a bug in GRASS postgres implementation?! > > ERROR 1: Cannot open cursor. > > Layer name: 1 > Geometry: Polygon > Feature Count: 313 > Extent: (1554732.664063, 4678313.000000) - (1771665.406250, > 4924775.960937) Layer SRS WKT: > PROJCS["Transverse Mercator", > GEOGCS["international", > DATUM["Monte_Mario", > ... > > as we can see, there is an error with the database connection > (possibly due to the removal of ' ?) > > Maybe related to this, mapserver cannot connect to the DB; grass > layers are loaded and shown, but if we try connecting to PostgreSQL > (e.g. LABELITEM, EXPRESSION...) we get an errore: I think this is because of the missing ''-signs in the SQL-querry. Have you inverstigated the Postgresql-driver-bindings in the sources where the SQL is generated? > > [Mon Jul 03 18:15:45 2006] [error] [client 192.168.0.110] PHP Warning: > [MapServer Error]: msDrawMap(): Failed to draw layer named > 'grass_POSTGRES'. \n > in /home/Documenti/pub/prove_w/visuo_map_file.php on line 6 [Mon Jul > 03 18:15:45 2006] [error] [client 192.168.0.110] PHP Warning: > [MapServer Error]: msOGRLayerInitItemInfo(): Invalid Field name: > atc_num\n in /home/Documenti/pub/prove_w/visuo_map_file.php on line 6 > [Mon Jul 03 18:15:45 2006] [error] [client 192.168.0.110] PHP Fatal > error: Call to a member function on a non-object > in /home/Documenti/pub/prove_w/visuo_map_file.php on line 8 [...] > > Quite frustrating. Yes, I can imagine. Hope this will be sorted out soon. Best regards Stephan > > > Stephan Holl wrote: > > Hello Paolo, > > > > On Fri, 30 Jun 2006 10:24:14 +0200 Paolo Cavallini > > wrote: > > > >> -----BEGIN PGP SIGNED MESSAGE----- > >> Hash: SHA1 > >> > >> Hi Stephen. > >> In fact, www-data accesses the db; it does not seem able to use the > >> .grasslogin6. > >> Anybody has a hint? > >> Many thanks. > >> pc > > > > have you set the HOME variable for user www-data using apaches > > SetEnv-stuff in apache.conf? > > > > Perhaps this might help? > > > > Best > > Stephan > > > > - -- > Paolo Cavallini > email+jabber: cavallini at faunalia.it > www.faunalia.it > Piazza Garibaldi 5 - 56025 Pontedera (PI), Italy Tel: > (+39)348-3801953 -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.4.3 (GNU/Linux) > Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org > > iD8DBQFEqUkX/NedwLUzIr4RAv2/AKCBoWG4XqLBfhudIyZslfxbZofeIgCeOLGP > p8sZMWAUtjgTGlBND8PYoZ0= > =nY2N > -----END PGP SIGNATURE----- -- GDF Hannover - Solutions for spatial data analysis and remote sensing Hannover Office - Mengendamm 16d - D-30177 Hannover Internet: www.gdf-hannover.de - Email: holl at gdf-hannover.de Phone : ++49-(0)511.39088507 - Fax: ++49-(0)511.39088508 From ollerery at ENGR.ORST.EDU Mon Jul 3 12:52:56 2006 From: ollerery at ENGR.ORST.EDU (Ryan Ollerenshaw) Date: Mon, 3 Jul 2006 12:52:56 -0700 Subject: WMS image download In-Reply-To: <20060703210932.3b864b74@localhost> Message-ID: I am looking for a way to download the images returned from a WMS. Does anyone know a good way to go about doing this? I would prefer to create a custom web interface that would allow the user to select the layer and long/lat boundingbox for the area that they are interested in. Thank you, -Ryan From kenlord at GMAIL.COM Mon Jul 3 13:15:17 2006 From: kenlord at GMAIL.COM (Ken Lord) Date: Mon, 3 Jul 2006 13:15:17 -0700 Subject: Legend works in 4.4, but not in 4.6 and above In-Reply-To: Message-ID: Hi Jason, Your problem may have to do with how you have symbolized features on your map, rather than with the HTML Legend template. I had the same problem with my legends with the same symptoms, with mapserver 4.6, and 4.8 (i think 4.4 was affected too). I think I went about a year with only 2 or 3 others reporting a problem like this on the list, so it doesn't seem to affect everyone. Check how you've symbolized layers with Line features, or layers that have styles that specificly symbolize outlines of polygons in your map layers. If any are lines are symbolized using a cartoline symbol with ANTIALIAS TRUE within the style object of that layer class mapserver will crash in an unpredictable manner, usually not when the main page and map are drawn, but when the HTML Legend is being produced. Sometimes it will work, sometimes it won't. Sometimes it will report one of those infamous CGI script header errors. Hit refresh a few times and you will probably see each variation. I filed Bug report on this at least a year ago with more recent updates, and brought it up when a major testing of the symbolization system was announced in March of this year. Test your system by removing (or # -ing out) all your map layers and add them back one by one until it starts failing. The documentation (last time i checked) does not say to avoid using ANTIALIAS on cartoline symbols. I it would be a great help if the gods above added a check in the code to ignore ANTIALIAS in the case of cartoline symbols if it can't be made to work properly. Cheers, Ken Lord Vancouver BC On 7/3/06, Steve Lime wrote: > Can you post the legend output from each version? > > Steve > > >>> "Sievers, Jason" 7/3/2006 11:19:23 AM >>> > I have an HTML legend template file that works wonderfully in MapServer 4.4 > and below. However when using MapServer 4.6 and above my legend breaks. I > have thoroughly searched and tested for other possible problems but I have > concluded that the problem must lie somewhere in MapServer. Either > MapServer 4.6 and above reads HTML Legend template files differently than > older versions, or this is a bug in MapServer 4.6 and above. MapServer 4.6 > and above handle the legend well when the mapfile contains a few layers. > But when the number of layers gets large (~10-15), the legend file's code is > never even entered. The CGI legend tag in my HTML file is simply skipped. > I have included my template file below. I am fairly desperate so any > thoughts are helpful. I would like to move to MapServer 4.8 but need the > legend to work first. Thanks. > > > > > [leg_layer_html order_metadata=orderby opt_flag=15] > > [if name=display oper=isset] > > > > [if name=grp oper=isset] > > > > [/if] > > [if name=layer_type oper=neq value=3] > > > > [/if] > > [if name=layer_type oper=eq value=3] > > > > [/if] > > [if name=layer_status oper=eq value=1] > > > > [/if] > > [if name=href oper=isset] > > > > [/if] > > [if name=desc oper=isset] > > > > [/if] > > [/if] > > [/leg_layer_html] > > > > [leg_class_html opt_flag=15] > > [if name=display oper=isset] > > > > [/if] > > [/leg_class_html] > > > > > > Jason Sievers > Linn County, Oregon > From Jukka.Rahkonen at MMMTIKE.FI Mon Jul 3 13:21:16 2006 From: Jukka.Rahkonen at MMMTIKE.FI (Rahkonen Jukka) Date: Mon, 3 Jul 2006 23:21:16 +0300 Subject: vector over raster not displayed correctly Message-ID: Hi, That should not be any problem. I suppose you have already tested your layers one by one to see that they all work individually, some style is defined etc.? If layers have also been ordered so that the raster layer is drawn first I fear not much could be said without seeing your mapfile and request. Regards, -Jukka Rahkonen- -----Original Message----- From: UMN MapServer Users List on behalf of luca marletta Sent: Mon 3.7.2006 15:45 To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] vector over raster not displayed correctly Hi All, I have several vector layer and some raster, a map and an orthophoto, TIF format, I'm using mapserver 4.8. When I overlap vector to raster (they are in different layers and groups) I have just labels shown above and I cannot get why I'm not able to see line and polygons. My question is there is some rules to respect for such overlaying? Thanks for any suggestions luca -- luca marletta From iansgis at GMAIL.COM Mon Jul 3 14:28:40 2006 From: iansgis at GMAIL.COM (Ian) Date: Mon, 3 Jul 2006 14:28:40 -0700 Subject: Image map generation Message-ID: I'm able to get query results with the following CGI controls: **
However when I make slight modifications to try to create an image map of the results with these controls:
each result's coordinate values goes to "-2147483648,-2147483648,7" Am I missing something? I'm trying to pass the same parameters that we pass in our web application of MS, but to no avail so far. Thank you. Ian -------------- next part -------------- An HTML attachment was scrubbed... URL: From lucamarle at GMAIL.COM Mon Jul 3 14:35:04 2006 From: lucamarle at GMAIL.COM (luca marletta) Date: Mon, 3 Jul 2006 23:35:04 +0200 Subject: vector over raster not displayed correctly In-Reply-To: Message-ID: Thanks for reply Jukka, Yes all layers works individually but generally I putted my raster layer at the end of map file. Because I had the strange idea that ms start to draw from the bottom. So now works well Thanks a lot luca On 7/3/06, Rahkonen Jukka wrote: > That should not be any problem. I suppose you have already tested your layers one by one to see that they all work individually, some style is defined etc.? If layers have also been ordered so that the raster layer is drawn first I fear not much could be said without seeing your mapfile and request. -- luca marletta From adoyle at EOGEO.ORG Mon Jul 3 14:17:37 2006 From: adoyle at EOGEO.ORG (Allan Doyle) Date: Mon, 3 Jul 2006 17:17:37 -0400 Subject: WMS image download In-Reply-To: <1151956376.44a9759843720@webmail.oregonstate.edu> Message-ID: http://viewer.digitalearth.gov/ is an example of how to do this. Each layer can be viewed individually by clicking on it in the layer list. Saving that image allows you to save that layer. You can also save the layer's URL. Allan On Jul 3, 2006, at 15:52, Ryan Ollerenshaw wrote: > I am looking for a way to download the images returned from a WMS. > Does anyone > know a good way to go about doing this? I would prefer to create a > custom web > interface that would allow the user to select the layer and long/lat > boundingbox for the area that they are interested in. > > Thank you, > -Ryan > -- Allan Doyle +1.781.433.2695 adoyle at eogeo.org From lucamarle at GMAIL.COM Mon Jul 3 15:08:36 2006 From: lucamarle at GMAIL.COM (luca marletta) Date: Tue, 4 Jul 2006 00:08:36 +0200 Subject: Suggestions for street finder examples In-Reply-To: <20060703163911.14011.qmail@web55707.mail.re3.yahoo.com> Message-ID: The best way in my opinion for street finder is drawing a line along the street, in the middle, and attach the name of the street to it in dbf after you can manage with your mapserver client to make a search by attribute for street name. In map file you can also use the option ANGLE AUTO and the labels with street names will be parallel to the street. I use pmapper and here you can find a demonstration of what I told with pmapper http://lazzate.homelinux.org/ Hope it can give some hints to you regards luca On 7/3/06, E Services wrote: > I am new to map web servers, but have some HTML, C/C++ > under my belt. > > My target is to develop a street finder and point > finder intranet / internet site with ESRI shapefiles > (one with streets, and one with points of > interest)that I already have. > > I have been searching and found some usefull stuff, > but am sending this email to find out if anyone can > point me in some direction that would make life much > easier.! :) > > Thanks > > __________________________________________________ > Do You Yahoo!? > Tired of spam? Yahoo! Mail has the best spam protection around > http://mail.yahoo.com > -- luca marletta From julien.63 at FREE.FR Mon Jul 3 15:41:25 2006 From: julien.63 at FREE.FR (Julien Bessiere) Date: Tue, 4 Jul 2006 00:41:25 +0200 Subject: [phpMapscript]display the layer but not the label Message-ID: Hi, I'm building and displaying a layer from php mapscript. That's work fine except the label that doesn't show up. No error message. Here is my code, any idea of what i've done wrong? *************************************************** **** NEW LAYER ************************************ $ilayer = ms_newLayerObj($map); $ilayer->set("name",$layer_name); $ilayer->set("type",MS_POINT); $ilayer->set("status",MS_ON); $labelitem = "test"; $ilayer->set("labelitem",$labelitem); $ilayer->setprojection($projType); **************************************************** ***** NEW CLASS ************************************ $classpoint = ms_newClassObj($ilayer); ***** NEW LABEL ************************************ $label = $classpoint->label; $label->set("position", MS_CC); $label->set("font","sans"); $label->set("type",MS_TRUEYPE); $label->set("size",MS_MEDIUM); $label->color->setRGB(22,8,3); $label->backgroundcolor->setRGB(0,0,0); $label->set(minsize,4); $label->set(maxsize,100000); ***** NEW STYLE ************************************* $stylepoint = ms_newStyleObj($classpoint); $stylepoint->set("symbolname","rond"); $stylepoint->set("size",10); $stylepoint->color->setRGB($R,$G,$B); ***** LOOP DRAWING THE POINTS ************************ foreach ($row[4] as $coord){ $poi[$i] = ms_newPointObj(); $long = $coord[0]; $lat = $coord[1]; $poi[$i]->setXY($long,$lat); $poi[$i]->draw($map, $ilayer, $image, 0, "id"); } Thx for your help. Julien From jsievers at CO.LINN.OR.US Mon Jul 3 16:01:06 2006 From: jsievers at CO.LINN.OR.US (Sievers, Jason) Date: Mon, 3 Jul 2006 16:01:06 -0700 Subject: Limit Number of Results with QSTRING? Message-ID: I would like to know if it is possible to limit the number of results using QSTRING in CGI MapServer. I can use MAXFEATURES when doing a spatial search, but this does not seem to work for attribute queries (at least for me). This is a problem when there is a large results set and MapServer has to draw every feature matching the expression. I've noticed that the maximum number of records ([nr]) is 148 but this still will draw on the map every feature matching the QSTRING expression. Thanks for the help. Jason Sievers Linn County, Oregon -------------- next part -------------- An HTML attachment was scrubbed... URL: From willianrp at RC.UNESP.BR Mon Jul 3 16:54:38 2006 From: willianrp at RC.UNESP.BR (Willian Rampazzo) Date: Mon, 3 Jul 2006 20:54:38 -0300 Subject: Problem plotting Age column on a dbf database Message-ID: Hello everyone, I've sent this mail to maplab group but got no answer, let me see you someone here can help me. I'm implementing a new project and i'm having some problems plotting an Age column from a dbf database like a label. First problem is: The column have a lot of zeros values and these values don't need to be plotted. Is there a way to specify it at the map file ? Second problem is: When i plot the values, it is ploted on scientific notation. Is there a way to specify it to plot values like %3.2f notation ? Thanks in advance, Willian Rampazzo Laborat?rio de GeoModelagem 3D UNESP - Rio Claro From tylermitchell at SHAW.CA Mon Jul 3 19:44:46 2006 From: tylermitchell at SHAW.CA (Tyler Mitchell) Date: Mon, 3 Jul 2006 19:44:46 -0700 Subject: Problem plotting Age column on a dbf database In-Reply-To: <44A9AE3E.7020800@rc.unesp.br> Message-ID: On 3-Jul-06, at 4:54 PM, Willian Rampazzo wrote: > I'm implementing a new project and i'm having some problems > plotting an Age column from a dbf > database like a label. > First problem is: The column have a lot of zeros values and these > values don't need to be plotted. Is > there a way to specify it at the map file ? Hi William, I'd create a second layer that is only for the annotation. Then you can add a WHERE clause in your CONNECTIONSTRING to only include values > 0. > Second problem is: When i plot the values, it is ploted on > scientific notation. Is there a way to specify > it to plot values like %3.2f notation ? You could try to find what the postgresql function you need to do the conversion, then explicitly request that field, with that function in your CONNECTIONSTRING as well. Casting/converting the field using the NUMERIC function allows you to specify scale and precision like % 3.2f does. For example, "the_geom, age::numeric(3,2) as AGE FROM mypoints where age >0; Probably a better way, but I thought I'd through a quick idea out to you. Good luck, Tyler From Steve.Lime at DNR.STATE.MN.US Mon Jul 3 22:32:24 2006 From: Steve.Lime at DNR.STATE.MN.US (Steve Lime) Date: Tue, 4 Jul 2006 00:32:24 -0500 Subject: Limit Number of Results with QSTRING? Message-ID: Strange as it sounds there is no way to limit the number of features returned (unless you are using straight mode=query). I guess I always figured why would you want to do that. It's not like a Google search where results are sorted by relevance, so stopping at some limit didn't make much sense. Sorry (please file a bug and I'll try to address the problem). I do believe the WFS server does have that ability if you really need it right away. There is no reason [nr] should max out at 148. Perhaps you've uncovered a bug? Or something else is going on. Steve >>> "Sievers, Jason" 07/03/06 6:01 PM >>> I would like to know if it is possible to limit the number of results using QSTRING in CGI MapServer. I can use MAXFEATURES when doing a spatial search, but this does not seem to work for attribute queries (at least for me). This is a problem when there is a large results set and MapServer has to draw every feature matching the expression. I've noticed that the maximum number of records ([nr]) is 148 but this still will draw on the map every feature matching the QSTRING expression. Thanks for the help. Jason Sievers Linn County, Oregon From vulukut at TESCILTURK.COM Tue Jul 4 00:18:53 2006 From: vulukut at TESCILTURK.COM (Volkan Ulukut) Date: Tue, 4 Jul 2006 10:18:53 +0300 Subject: ANGLE FOLLOW requirements? Message-ID: Hi list, I'm trying to get ANGLE follow support in my mapfiles. But appearantly version 4.8.3 does not include that. So i downloaded nightly build and tried to compile it without success . I guess i don't have some libs i need about gd, but i have it most recent version (cvs actually). Here is the error i get when trying to "make" gcc -c -O2 -fPIC -Wall -DIGNORE_MISSING_DATA -DHAVE_VSNPRINTF -DNEED_STRLCAT -DUSE_PROJ -DUSE_WMS_SVR -DUSE_WMS_LYR -DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_GDIMAGEGIFPTR -DGD_HAS_GETBITMAPFONTS -DUSE_OGR -DUSE_GDAL -DUSE_ICONV -DUSE_THREAD -DUSE_ZLIB -I/usr/include -I/usr/local/include maplabel.c -o maplabel.o maplabel.c: In function `msGetLabelSizeEx': maplabel.c:420: error: `gdFTEX_XSHOW' undeclared (first use in this function) maplabel.c:420: error: (Each undeclared identifier is reported only once maplabel.c:420: error: for each function it appears in.) maplabel.c:429: error: structure has no member named `xshow' make: *** [maplabel.o] Error 1 here is my config string: ./configure --without-tiff --without-eppl --with-threads --with-proj --with-gdal --with-ogr --with-php=/usr/local/php433 --with-gd --with-pdf --with-wmsclient --enable-force-freetype1 What could be the reason for this error? Is this a bug for this nightly build or i miss some required libraries? -------------- next part -------------- An HTML attachment was scrubbed... URL: From cavallini at FAUNALIA.IT Tue Jul 4 00:46:13 2006 From: cavallini at FAUNALIA.IT (Paolo Cavallini) Date: Tue, 4 Jul 2006 09:46:13 +0200 Subject: [GRASS-user] ogr-grass In-Reply-To: <20060703210932.3b864b74@localhost> Message-ID: -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi Stephan, it is not an ogr bug. ' should be escaped \'. The correct command is: ogrinfo -so -where nomemin=\'Lucca\' /home/Documenti/datigrass/Toscana/PERMANENT/vector/t_comuni_2003/head 1Further testing underway. More about this later. pc Stephan Holl wrote: ... > DBMI-Postgres driver error: > Cannot select: > SELECT * FROM t_comuni_2003 WHERE nomemin=lucca ORDER BY cat > ERROR: la colonna "lucca" non esiste > >> AFAIK this should be >> SELECT * FROM t_comuni_2003 WHERE nomemin='lucca' ORDER BY >> cat; > >> assuming column nomein is a varchar/char column. >> So probably a bug in GRASS postgres implementation?! ... - -- Paolo Cavallini email+jabber: cavallini at faunalia.it www.faunalia.it Piazza Garibaldi 5 - 56025 Pontedera (PI), Italy Tel: (+39)348-3801953 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.3 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFEqhy4/NedwLUzIr4RAgcgAKCAxMKFXdgVlIGGHwDgUhfPgrnPaQCbBzt6 9r0GE8juZLk7ad6zYvojh7M= =Mopf -----END PGP SIGNATURE----- From dovidio at PLANETEK.IT Tue Jul 4 00:51:36 2006 From: dovidio at PLANETEK.IT (Fabio D'Ovidio) Date: Tue, 4 Jul 2006 09:51:36 +0200 Subject: Dynamic GML with MapServer Message-ID: Hi all, I 'm trying to configure two MapServer : a cascading between WMS & WFS. Data are in WFS while WMS displays the map. I want WMS MapServer directly draws query_results from WFS without downloading all of the GML file. So, I'd like to add a spatial filter in the WMS Request and display only the result of the query from this. I don't want to add my filter in the WFS request ! Is it possible ? Thanks ******************************************************************************************** Eng. Fabio D'Ovidio WebGIS Staff Planetek Italia Srl via Massaua, 12 - 70123 Bari - Italy web : http ://www.planetek.it e-mail : dovidio at planetek.it ********************************************************************************************* From baas at SPEERIT.NL Tue Jul 4 01:36:46 2006 From: baas at SPEERIT.NL (Jelmer Baas) Date: Tue, 4 Jul 2006 10:36:46 +0200 Subject: Searching for closest object in mapserver In-Reply-To: Message-ID: Steve Lime wrote: > The relevant parameters are mode=query and qlayer=[some layer name] > (optional). The other piece is submitting a point to use for the > query and there are several ways to do that. Most often you use > imxy/imgext but can also simply send a point in map coordinates using > mapxy. I'm still at a loss. I checked out the demo, and it works OK. I also changed some stuff to use coordinates instead of image x/y, this works. But I'm not clicking inside a big area, I'm clicking *SOMEWERE* and then need to find out which cable is closest to the point where I clicked. I use this now: scripts/mapserv.exe?mode=query&map=test.map&imgext=-70000+280000+400000+630000&layers=TABCAB&mapxy=5000+290000&qlayer=TABCAB but this ofcourse gives me "No results" message, because I'm not clicking directly on a cable. Any thoughts how to do what I want? -- Jelmer Baas From siukola.antti at GMAIL.COM Tue Jul 4 01:37:03 2006 From: siukola.antti at GMAIL.COM (antti siukola) Date: Tue, 4 Jul 2006 11:37:03 +0300 Subject: Problem with shape files Message-ID: Hi! I'm have an issue with shape files not showing any images that should be in it. I made the shape file with gdaltindex out of a bunch of TIFFs and all the shapes (checked with a shape viewer and it doesn't show the images) are fine except that output doesn't show any images. What could I do? I'm on php mapscript. AnttiS From Jukka.Rahkonen at MMMTIKE.FI Tue Jul 4 02:41:30 2006 From: Jukka.Rahkonen at MMMTIKE.FI (Rahkonen Jukka) Date: Tue, 4 Jul 2006 12:41:30 +0300 Subject: Problem with shape files Message-ID: Hi, I am not sure if I totally understood your problem, but I'll try to guess what might be wrong. First, tileindex is a catalog for Mapserver so that it can find correct physical images from a certain area. A field in a dbf file (default name "location") gives the path to physical images. Check this field and think if Mapserver should be able to find the images by that. If your images are not located in the same directory as your SHAPEPATH is you must create tileindex so that it includes the whole path to images (for example: gdaltindex catalog.shp c:\imagery\*.tif) Next thing might be to compare the extents in the mapfile and in the tileindex shapefile informed by ogrinfo. If these things are ok and you have created a raster layer with reference to correct tileindex file and having correct projection I cannot say why you cannot get your images visible. If you have very many big images included in tileindex you might reach the server timeout limit. For me with tiff files without overviews the 300 second timeout hits if my request means rendering some 10 gigabytes of original imagery. Regards, -Jukka- -----Original Message----- From: UMN MapServer Users List on behalf of antti siukola Sent: Tue 4.7.2006 11:37 To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Problem with shape files Hi! I'm have an issue with shape files not showing any images that should be in it. I made the shape file with gdaltindex out of a bunch of TIFFs and all the shapes (checked with a shape viewer and it doesn't show the images) are fine except that output doesn't show any images. What could I do? I'm on php mapscript. AnttiS From zhonghaiw at GMAIL.COM Tue Jul 4 02:48:11 2006 From: zhonghaiw at GMAIL.COM (Zhonghai Wang) Date: Tue, 4 Jul 2006 11:48:11 +0200 Subject: Change the map size -- C# MapScript Message-ID: Hi guys, To get maps with different map size, I am trying to change the SIZE of the mapobject like this: map.setSize(200,150), where map is a defined mapobject but this seems not to work in my application. I am using: 1. MS4W1.5.3 (directly downloaded from the web site. ) 2. VS2005 no ideas what happened with the setSize(). Could you guys give me some suggestions? kind regards zhonghai -------------- next part -------------- An HTML attachment was scrubbed... URL: From siukola.antti at GMAIL.COM Tue Jul 4 03:01:03 2006 From: siukola.antti at GMAIL.COM (antti siukola) Date: Tue, 4 Jul 2006 13:01:03 +0300 Subject: Problem with shape files In-Reply-To: Message-ID: Hi! In the index the shape table shows that the location column has a value that is the name of the image and the shape file is in the same dir as the images. Loading just one tile as a raster layer works so the extent should be ok. When viewing the shape and some of the images on separate layers I see that they are in right places. All tiles together are about 3GB. AnttiS On 7/4/06, Rahkonen Jukka wrote: > Hi, > > I am not sure if I totally understood your problem, but I'll try to guess what might be wrong. > > First, tileindex is a catalog for Mapserver so that it can find correct physical images from a certain area. A field in a dbf file (default name "location") gives the path to physical images. Check this field and think if Mapserver should be able to find the images by that. If your images are not located in the same directory as your SHAPEPATH is you must create tileindex so that it includes the whole path to images (for example: gdaltindex catalog.shp c:\imagery\*.tif) > > Next thing might be to compare the extents in the mapfile and in the tileindex shapefile informed by ogrinfo. > > If these things are ok and you have created a raster layer with reference to correct tileindex file and having correct projection I cannot say why you cannot get your images visible. If you have very many big images included in tileindex you might reach the server timeout limit. For me with tiff files without overviews the 300 second timeout hits if my request means rendering some 10 gigabytes of original imagery. > > Regards, > > -Jukka- > > > > -----Original Message----- > From: UMN MapServer Users List on behalf of antti siukola > Sent: Tue 4.7.2006 11:37 > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: [UMN_MAPSERVER-USERS] Problem with shape files > > Hi! > > I'm have an issue with shape files not showing any images that should > be in it. I made the shape file with gdaltindex out of a bunch of > TIFFs and all the shapes (checked with a shape viewer and it doesn't > show the images) are fine except that output doesn't show any images. > What could I do? I'm on php mapscript. > > AnttiS > From aiandolo at GRUPPOAS.IT Tue Jul 4 03:02:03 2006 From: aiandolo at GRUPPOAS.IT (Antonio Iandolo) Date: Tue, 4 Jul 2006 12:02:03 +0200 Subject: R: [UMN_MAPSERVER-USERS] Oracle10g and queryByAttributes In-Reply-To: <44A92036.70902@univali.br> Message-ID: Hi all Thanks for the answer, Fernando, but I still can't get the solution... My DATA are the following: DATA "GEOM FROM mytable USING UNIQUE myidcolumn SRID 8307" (Note: myidcolumn is a VARCHAR2(16), is it a problem? Should it be numeric?) Why did you use a nested select in the DATA? Is it an old bug solved in 4.8.3 MapServer version? I've tried all the following settings, getting always the same result (shapeindex < 0): DATA "GEOM FROM mytable USING UNIQUE idcolumn SRID 8307 FILTER" DATA "GEOM FROM mytable USING UNIQUE SRID 8307 FILTER" DATA "GEOM FROM mytable USING UNIQUE SRID 8307 VERSION 10g FILTER" The query returns 1 shape (i.e. $layer->getNumResults() = 1), but after these statements $layer->open(); $result=$layer->getResult(0); I do a simple var_dump($result) and I get: result=object(stdClass)(3) { ["shapeindex"]=> int(-2028233538) ["tileindex"]=> int(-1) ["classindex"]=> int(0) } That is $result->shapeindex < 0!! So the following $shape is "False": $shape=$layer->getShape(-1,$result->shapeindex); ...I don't think that $result->shapeindex should be negative... My software environment is: - Windows XP Professional SP1 - Apache 2.0.55 - MapServer 4.8.3 - php 4.4.3-dev (MS4W 1.5.3) - php_mapscript_48.dll (232Kb - 09/05/2006 17.22) - Oracle10g (XE) I have both Oracle8i and Oracle10g installed (server and client), but I've renamed the Oracle8i's home directory. May I know your MapServer version, Php version and php_mapscript's version (maybe also php_mapscript.dll's size and date)? Maybe the problem is the php's "dev" version...(I'll "downgrade" to a stable version) Any further hint? Thanks in advance, Antonio > Hi Antonio, > How did you defined your DATA parameter for you layer? > The extents for your query are right? > Here I use this code as example: > // Performing the query and returning only a single record > @$qlayer->queryByAttributes($nm_field_query, $regex, > MS_SINGLE); > $numresults = $qlayer->getNumResults(); > if ($numresults > 0) > { > for($f = 0; $f < $numresults ; $f++) > { > // Opening the layer to return data > $qlayer->open(); > // Getting the object that store the results > $indexResult = $qlayer->getResult($i); > $qresult = > $qlayer->getShape(-1,$indexResult->shapeindex); > > // Getting the data from object > // The "values" contains the data > // for all columns that are in layer > data definition > // You can get all columns that are > in data definition > $dataResult = array($qresult->values[STATE]); > > // Cleaning and closing objects > $qresult->free(); > $qlayer->close(); > } > return $dataResult[0]; > } > > And my DATA definition: > data "geo_column from (SELECT geo_id, state, totpop, > geo_column FROM tb_states) USING UNIQUE geo_id FILTER" > From cavallini at FAUNALIA.IT Tue Jul 4 03:27:17 2006 From: cavallini at FAUNALIA.IT (Paolo Cavallini) Date: Tue, 4 Jul 2006 12:27:17 +0200 Subject: [GRASS-user] ogr-grass In-Reply-To: <44A94918.3010904@faunalia.it> Message-ID: -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Our conclusions: - - ogr-grass (ogrinfo, ogr2ogr) works - - mapserver cannot access grass data (either LABELITEM or EXPRESSION) when stored in postgresql We would appreciate any hint. All the best. pc Paolo Cavallini wrote: > > Maybe related to this, mapserver cannot connect to the DB; grass layers > are loaded and shown, but if we try connecting to PostgreSQL (e.g. > LABELITEM, EXPRESSION...) we get an errore: > > [Mon Jul 03 18:15:45 2006] [error] [client 192.168.0.110] PHP Warning: > [MapServer Error]: msDrawMap(): Failed to draw layer named 'grass_POSTGRES'. > \n in /home/Documenti/pub/prove_w/visuo_map_file.php on line 6 > [Mon Jul 03 18:15:45 2006] [error] [client 192.168.0.110] PHP Warning: > [MapServer Error]: msOGRLayerInitItemInfo(): Invalid Field name: atc_num\n > in /home/Documenti/pub/prove_w/visuo_map_file.php on line 6 > [Mon Jul 03 18:15:45 2006] [error] [client 192.168.0.110] PHP Fatal error: > Call to a member function on a non-object > in /home/Documenti/pub/prove_w/visuo_map_file.php on line 8 > > The mapfile is like: > > LAYER > NAME "grass_POSTGRES" > TYPE POLYGON > CONNECTIONTYPE OGR > > CONNECTION > "/home/Documenti/datigrass/Toscana/PERMANENT/vector/t_comuni_2003/head" > DATA "1" > STATUS ON > LABELITEM "atc_num" > > CLASS > NAME "Ne so veramente troppe" > # EXPRESSION ([atc_num]=13) > STYLE > COLOR 0 240 0 > OUTLINECOLOR 0 100 0 > END > LABEL > COLOR 200 0 0 > BUFFER 2 > END > END > END - -- Paolo Cavallini email+jabber: cavallini at faunalia.it www.faunalia.it Piazza Garibaldi 5 - 56025 Pontedera (PI), Italy Tel: (+39)348-3801953 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.3 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFEqkKF/NedwLUzIr4RArs5AKCzKxZPD5LIBoAzF8Vz2tFWPiPA3gCfRVTf l6+mDudIRf2bUPzrfHCq/FY= =T3Y7 -----END PGP SIGNATURE----- From e.witteveen at HAWARIT.COM Tue Jul 4 03:36:49 2006 From: e.witteveen at HAWARIT.COM (Eduard Witteveen) Date: Tue, 4 Jul 2006 12:36:49 +0200 Subject: Change the map size -- C# MapScript In-Reply-To: <2534c4120607040248x6928c42fn19f1a95024c68a@mail.gmail.com> Message-ID: Zhonghai Wang schreef: > To get maps with different map size, I am trying to change the SIZE of the > mapobject like this: > > map.setSize(200,150), where map is a defined mapobject First of all, i dont know if you are trying this for the first time, or you if you are trying to upgrade an application. I assume that you are doing the first. I use the following code: > mapObj map = new mapObj(mapfilename); > map.setImageType(filetype); > map.setSize(pbMapImage.Width, pbMapImage.Height); > imageObj image = map.draw(); > image.save(imagefilename, map); > pbMapImage.ImageLocation = imagefilename; > but this seems not to work in my application. > > I am using: > 1. MS4W1.5.3 (directly downloaded from the web site. ) > 2. VS2005 > > no ideas what happened with the setSize(). You can look at my test-code at: http://nergens.org/projects/mapviewer/, the file Mapviewer.NET.2.0_1.1.zip contains a vs2005 project. I've had some trouble with using the correct version of mapserver (http://comments.gmane.org/gmane.comp.gis.mapserver.user/16866 ) Maybe this code can get you started (and help you test where things go wrong) -- Ing. Eduard Yeb Witteveen Software Engineer Hawar Information Technology bv lid Dijkoraad Groep De Wymerts 7 8701 WT Bolsward Tel: +31 (0)515 570333 Fax: +31 (0)515 570335 http://www.hawarit.com/ nl_NL fy_NL en_US From siukola.antti at GMAIL.COM Tue Jul 4 03:55:46 2006 From: siukola.antti at GMAIL.COM (antti siukola) Date: Tue, 4 Jul 2006 13:55:46 +0300 Subject: Problem with shape files In-Reply-To: Message-ID: Hi! The problem was with the missing absolute path in shape table. Thanks Jukka. AnttiS On 7/4/06, antti siukola wrote: > Hi! > > In the index the shape table shows that the location column has a > value that is the name of the image and the shape file is in the same > dir as the images. Loading just one tile as a raster layer works so > the extent should be ok. When viewing the shape and some of the images > on separate layers I see that they are in right places. All tiles > together are about 3GB. > > AnttiS > > On 7/4/06, Rahkonen Jukka wrote: > > Hi, > > > > I am not sure if I totally understood your problem, but I'll try to guess what might be wrong. > > > > First, tileindex is a catalog for Mapserver so that it can find correct physical images from a certain area. A field in a dbf file (default name "location") gives the path to physical images. Check this field and think if Mapserver should be able to find the images by that. If your images are not located in the same directory as your SHAPEPATH is you must create tileindex so that it includes the whole path to images (for example: gdaltindex catalog.shp c:\imagery\*.tif) > > > > Next thing might be to compare the extents in the mapfile and in the tileindex shapefile informed by ogrinfo. > > > > If these things are ok and you have created a raster layer with reference to correct tileindex file and having correct projection I cannot say why you cannot get your images visible. If you have very many big images included in tileindex you might reach the server timeout limit. For me with tiff files without overviews the 300 second timeout hits if my request means rendering some 10 gigabytes of original imagery. > > > > Regards, > > > > -Jukka- > > > > > > > > -----Original Message----- > > From: UMN MapServer Users List on behalf of antti siukola > > Sent: Tue 4.7.2006 11:37 > > To: MAPSERVER-USERS at LISTS.UMN.EDU > > Subject: [UMN_MAPSERVER-USERS] Problem with shape files > > > > Hi! > > > > I'm have an issue with shape files not showing any images that should > > be in it. I made the shape file with gdaltindex out of a bunch of > > TIFFs and all the shapes (checked with a shape viewer and it doesn't > > show the images) are fine except that output doesn't show any images. > > What could I do? I'm on php mapscript. > > > > AnttiS > > > From fsimon at UNIVALI.BR Tue Jul 4 04:28:56 2006 From: fsimon at UNIVALI.BR (Fernando Simon) Date: Tue, 4 Jul 2006 08:28:56 -0300 Subject: R: [UMN_MAPSERVER-USERS] Oracle10g and queryByAttributes In-Reply-To: <002101c69f50$e684f0f0$5d00a8c0@aiandolo> Message-ID: Hi Antonio, Yes, the idcolumn must be a numeric type, I just used the nested select to restrict the number of columns that are used by Mapserver. I believe that the problem in your case is the numeric column, can you define a numeric column in UNIQUE definition? Best regards. ------------------------------------------------------------------------ Fernando Simon Mapserver and Oracle Spatial developer G10 - Laboratorio de Computacao Aplicada - Brazil http://www.univali.br/g10 - UNIVALI/CTTMAR ------------------------------------------------------------------------ Antonio Iandolo wrote: > Hi all > > Thanks for the answer, Fernando, but I still can't get the solution... > My DATA are the following: > DATA "GEOM FROM mytable USING UNIQUE myidcolumn SRID 8307" > > (Note: myidcolumn is a VARCHAR2(16), is it a problem? Should it be > numeric?) > > Why did you use a nested select in the DATA? Is it an old bug solved in > 4.8.3 MapServer version? > > I've tried all the following settings, getting always the same result > (shapeindex < 0): > > DATA "GEOM FROM mytable USING UNIQUE idcolumn SRID 8307 FILTER" > DATA "GEOM FROM mytable USING UNIQUE SRID 8307 FILTER" > DATA "GEOM FROM mytable USING UNIQUE SRID 8307 VERSION 10g FILTER" > > The query returns 1 shape (i.e. $layer->getNumResults() = 1), but after > these statements > > $layer->open(); > $result=$layer->getResult(0); > > I do a simple var_dump($result) and I get: > > result=object(stdClass)(3) { ["shapeindex"]=> int(-2028233538) > ["tileindex"]=> int(-1) ["classindex"]=> int(0) } > > That is $result->shapeindex < 0!! So the following $shape is "False": > $shape=$layer->getShape(-1,$result->shapeindex); > > ...I don't think that $result->shapeindex should be negative... > > My software environment is: > - Windows XP Professional SP1 > - Apache 2.0.55 > - MapServer 4.8.3 > - php 4.4.3-dev (MS4W 1.5.3) > - php_mapscript_48.dll (232Kb - 09/05/2006 17.22) > - Oracle10g (XE) > > I have both Oracle8i and Oracle10g installed (server and client), but > I've renamed the Oracle8i's home directory. > > May I know your MapServer version, Php version and php_mapscript's > version (maybe also php_mapscript.dll's size and date)? > Maybe the problem is the php's "dev" version...(I'll "downgrade" to a > stable version) > > Any further hint? > > Thanks in advance, > Antonio > > > > >> Hi Antonio, >> How did you defined your DATA parameter for you layer? >> The extents for your query are right? >> Here I use this code as example: >> // Performing the query and returning only a single record >> @$qlayer->queryByAttributes($nm_field_query, $regex, >> MS_SINGLE); >> $numresults = $qlayer->getNumResults(); >> if ($numresults > 0) >> { >> for($f = 0; $f < $numresults ; $f++) >> { >> // Opening the layer to return data >> $qlayer->open(); >> // Getting the object that store the results >> $indexResult = $qlayer->getResult($i); >> $qresult = >> $qlayer->getShape(-1,$indexResult->shapeindex); >> >> // Getting the data from object >> // The "values" contains the data >> // for all columns that are in layer >> data definition >> // You can get all columns that are >> in data definition >> $dataResult = array($qresult->values[STATE]); >> >> // Cleaning and closing objects >> $qresult->free(); >> $qlayer->close(); >> } >> return $dataResult[0]; >> } >> >> And my DATA definition: >> data "geo_column from (SELECT geo_id, state, totpop, >> geo_column FROM tb_states) USING UNIQUE geo_id FILTER" >> >> > > From crschmidt at CRSCHMIDT.NET Tue Jul 4 07:43:20 2006 From: crschmidt at CRSCHMIDT.NET (Christopher Schmidt) Date: Tue, 4 Jul 2006 10:43:20 -0400 Subject: Boston Free Map Message-ID: It is my distinct pleasure to announce the redesign of the Boston Free Map: http://boston.freemap.in/ This map is powered by ka-Map and OpenLayers, using Mapserver as a rendering engine. More information about the map is available from http://boston.freemap.in/about.html Including a link to the mapfile: http://boston.freemap.in/basemap.map This map is served through the support of the Free Map project. The Free Map System is designed to run as an open hosted service for mapping applications using free and open source software, public and copyleft geographic data, and community information anywhere in the world. All data for the Boston Free Map is available under an attribution license from MassGIS. The mapfile is similarly released under an attribution license by the Free Map Project. Mapserver has proved to be a hugely useful tool for rendering, and ka-Map has successfully solved many of the issues related to creating and caching tiled images from Mapserver. Many thanks to all participating members of the Mapserver and ka-Map projects for creating the software which allows the generation of this map. Regards, -- Christopher Schmidt Web Developer From earevaloch at GMAIL.COM Tue Jul 4 08:02:53 2006 From: earevaloch at GMAIL.COM (=?ISO-8859-1?Q?Eduardo_Ar=E9valo?=) Date: Tue, 4 Jul 2006 10:02:53 -0500 Subject: Error in WMS server In-Reply-To: <44A9468C.704@xs4all.nl> Message-ID: thanks Bart Already there am proford your sugrerencia but it continues leaving he himself error. I need one helps in the configuration of the Layer. 2006/7/3, Bart van den Eijnden (OSGIS) : > > The parameter is called LAYERS and not LAYER. > > Best regards, > Bart > > Eduardo Ar?valo wrote: > > > Hello list: > > I receive this error when I try load my WMS > > > > msWMSLoadGetMapParams(): WMS server error. Invalid layer(s) given in > > the LAYERS parameter. > > with > > > http://10.1.6.46/cgi-bin/mapserv?map=mapwms.map&SERVICE=WMS&VERSION=1.1.1&REQUEST=getmap&LAYER=Mosaico_Peru > > < > http://10.1.6.46/cgi-bin/mapserv?map=mapwms.map&SERVICE=WMS&VERSION=1.1.1&REQUEST=getmap&LAYER=Mosaico_Peru > > > > My mapfile is : > > > > MAP > > NAME DEMO > > PROJECTION > > "init=epsg:2163" > > END > > WEB > > METADATA > > "wms_title" "Server_WMS" > > "wms_onlineresource" > > "http://10.1.6.46/cgi-bin/mapserv?map=mapwms.map& > > " > > "wms_srs" "EPSG:4269 EPSG:4326" > > END > > END > > END > > > > LAYER > > NAME Mosaico_Peru > > DATA "/home/postgres/raster/PERU300DPI.tif" > > STATUS OFF > > TYPE RASTER > > PROCESSING "BANDS=1,2,3" > > OFFSITE 71 74 65 > > PROJECTION > > "init=epsg:4326" > > END > > END > > END > > END > > > > please help. > > > > > > > -- > Bart van den Eijnden > OSGIS, Open Source GIS > http://www.osgis.nl > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From Jukka.Rahkonen at MMMTIKE.FI Tue Jul 4 09:31:47 2006 From: Jukka.Rahkonen at MMMTIKE.FI (Rahkonen Jukka) Date: Tue, 4 Jul 2006 19:31:47 +0300 Subject: Error in WMS server Message-ID: Hi, You seem to have layer status OFF. Try with ON or DEFAULT. -Jukka- -----Original Message----- From: UMN MapServer Users List on behalf of Eduardo Ar?valo Sent: Tue 4.7.2006 18:02 To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] Error in WMS server thanks Bart Already there am proford your sugrerencia but it continues leaving he himself error. I need one helps in the configuration of the Layer. 2006/7/3, Bart van den Eijnden (OSGIS) : > > The parameter is called LAYERS and not LAYER. > > Best regards, > Bart > > Eduardo Ar?valo wrote: > > > Hello list: > > I receive this error when I try load my WMS > > > > msWMSLoadGetMapParams(): WMS server error. Invalid layer(s) given in > > the LAYERS parameter. > > with > > > http://10.1.6.46/cgi-bin/mapserv?map=mapwms.map&SERVICE=WMS&VERSION=1.1.1&REQUEST=getmap&LAYER=Mosaico_Peru > > < > http://10.1.6.46/cgi-bin/mapserv?map=mapwms.map&SERVICE=WMS&VERSION=1.1.1&REQUEST=getmap&LAYER=Mosaico_Peru > > > > My mapfile is : > > > > MAP > > NAME DEMO > > PROJECTION > > "init=epsg:2163" > > END > > WEB > > METADATA > > "wms_title" "Server_WMS" > > "wms_onlineresource" > > "http://10.1.6.46/cgi-bin/mapserv?map=mapwms.map& > > " > > "wms_srs" "EPSG:4269 EPSG:4326" > > END > > END > > END > > > > LAYER > > NAME Mosaico_Peru > > DATA "/home/postgres/raster/PERU300DPI.tif" > > STATUS OFF > > TYPE RASTER > > PROCESSING "BANDS=1,2,3" > > OFFSITE 71 74 65 > > PROJECTION > > "init=epsg:4326" > > END > > END > > END > > END > > > > please help. > > > > > > > -- > Bart van den Eijnden > OSGIS, Open Source GIS > http://www.osgis.nl > > From trente at UMN.EDU Wed Jul 5 00:07:58 2006 From: trente at UMN.EDU (Trent Erickson) Date: Wed, 5 Jul 2006 02:07:58 -0500 Subject: mapserver.gis.umn.edu website downtime July 6th for 1 hour Message-ID: On July 6th at 21:00 (9pm Central time / GMT + 5:00) the mapserver.gis.umn.edu web server will be unavailable for an hour. It will be undergoing a upgrade an will be available by 22:00. Also a note and explanation: On July 4th from about 8:00 to 13:00 Central time (GMT + 5:00) The mapserver.gis.umn.edu web server had problems and was unavailable. These two occurrences are unrelated. -Trent From siukola.antti at GMAIL.COM Wed Jul 5 00:27:07 2006 From: siukola.antti at GMAIL.COM (antti siukola) Date: Wed, 5 Jul 2006 10:27:07 +0300 Subject: Improving performance when using raster image tiles assembled with shape file Message-ID: Hi! What is the best way to improve performance when using large tif tiles assembled with shape files. Now my response time is about 20 sec. per page load when viewing the whole map since the whole size of the map is about 3.3GB. Is pre-built overviews the solution (gdaladdo)? AnttiS From Jukka.Rahkonen at MMMTIKE.FI Wed Jul 5 04:12:40 2006 From: Jukka.Rahkonen at MMMTIKE.FI (Rahkonen Jukka) Date: Wed, 5 Jul 2006 14:12:40 +0300 Subject: Improving performance when using raster image tiles assembled with shape file Message-ID: Hi, I am usually creating a quick look image of size 1000 by 1000 or 2000 by 2000 pixels first over my whole site first and make a separate layer from that. By playing with maxscale and minscale I show first the quick look and switch to tileindex when the resolution is not good enough any more. I set imageformat to GeoTIFF and save the resulting image on disk by asking the layer through wget so creating the quick look image does not take many minutes. Gdaladdo overviews are good for fine tuning but they do not remove the need to go through every image your request concerns. -Jukka- -----Original Message----- From: UMN MapServer Users List on behalf of antti siukola Sent: Wed 5.7.2006 10:27 To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Improving performance when using raster image tiles assembled with shape file Hi! What is the best way to improve performance when using large tif tiles assembled with shape files. Now my response time is about 20 sec. per page load when viewing the whole map since the whole size of the map is about 3.3GB. Is pre-built overviews the solution (gdaladdo)? AnttiS From David.Fawcett at STATE.MN.US Wed Jul 5 05:52:03 2006 From: David.Fawcett at STATE.MN.US (Fawcett, David) Date: Wed, 5 Jul 2006 07:52:03 -0500 Subject: Searching for closest object in mapserver In-Reply-To: A<44AA289E.3000206@speerit.nl> Message-ID: Jelmer, You may want to set a TOLERANCE value (and possibly TOLERANCEUNITS) at the layer level. Take a look at the documentation: http://mapserver.gis.umn.edu/docs/reference/mapfile/layer David -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Jelmer Baas Sent: Tuesday, July 04, 2006 3:37 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] Searching for closest object in mapserver Steve Lime wrote: > The relevant parameters are mode=query and qlayer=[some layer name] > (optional). The other piece is submitting a point to use for the query > and there are several ways to do that. Most often you use imxy/imgext > but can also simply send a point in map coordinates using mapxy. I'm still at a loss. I checked out the demo, and it works OK. I also changed some stuff to use coordinates instead of image x/y, this works. But I'm not clicking inside a big area, I'm clicking *SOMEWERE* and then need to find out which cable is closest to the point where I clicked. I use this now: scripts/mapserv.exe?mode=query&map=test.map&imgext=-70000+280000+400000+ 630000&layers=TABCAB&mapxy=5000+290000&qlayer=TABCAB but this ofcourse gives me "No results" message, because I'm not clicking directly on a cable. Any thoughts how to do what I want? -- Jelmer Baas From Chip.Hankley at RMTINC.COM Wed Jul 5 06:01:28 2006 From: Chip.Hankley at RMTINC.COM (Chip Hankley) Date: Wed, 5 Jul 2006 08:01:28 -0500 Subject: Improving performance when using raster image tiles assembled with shape file In-Reply-To: Message-ID: Your question probably covers too many topics to be adequately addressed. Performance issues with large raster datasets are related to hardware, image format, as well as all of the intricacies of how you set up your tileindex. This issue comes up VERY frequently on the list. Ed McNierney has a lot of experience serving HUGE raster data sets through MapServer... his responses to raster performance questions are generally very detailed and offer good information, insight, and options for improving performance. The following query of the archives returned a bunch of great hits: Raster AND Performance AND Ed HTH! Chip >>> antti siukola 7/5/2006 2:27:07 AM >>> Hi! What is the best way to improve performance when using large tif tiles assembled with shape files. Now my response time is about 20 sec. per page load when viewing the whole map since the whole size of the map is about 3.3GB. Is pre-built overviews the solution (gdaladdo)? AnttiS Outgoing messages, along with any attachments, are scanned for viruses prior to sending. ------------------------------------------------------------------------------ NOTICE--This email may contain confidential and privileged information for the sole use of the intended recipient. Any review or distribution by others is strictly prohibited. If you are not the intended recipient, please contact the sender immediately and delete all copies. -------------- next part -------------- An HTML attachment was scrubbed... URL: From baas at SPEERIT.NL Wed Jul 5 06:37:33 2006 From: baas at SPEERIT.NL (Jelmer Baas) Date: Wed, 5 Jul 2006 15:37:33 +0200 Subject: Searching for closest object in mapserver In-Reply-To: <6246727221874A4FB8D3F9BBC37D9BD5FB0793@s-sp22.pca.state.mn.us> Message-ID: Fawcett, David wrote: > Jelmer, > > You may want to set a TOLERANCE value (and possibly TOLERANCEUNITS) at > the layer level. Take a look at the documentation: > http://mapserver.gis.umn.edu/docs/reference/mapfile/layer Thanks. I have my - rather simple - query running now. Guess I was messing around too much with the parameters. The only thing left now is the distance from the point that I specified to the point where the resulting cable is closest. In the Template Reference I see no mention of this. -- Jelmer Baas From aiandolo at GRUPPOAS.IT Wed Jul 5 06:42:39 2006 From: aiandolo at GRUPPOAS.IT (Antonio Iandolo) Date: Wed, 5 Jul 2006 15:42:39 +0200 Subject: R: [UMN_MAPSERVER-USERS] Oracle10g and queryByAttributes In-Reply-To: <44AA50F8.7030207@univali.br> Message-ID: I've changed my idcolumn to NUMBER(16) but it still doesn't work...and I already have defined a UNIQUE INDEX on that column... Moreover the same script works fine both with ESRI shapefiles and with MapInfo tables... Now some further questions: 1) I query (queryByAttributes) on a POINT layer and there is another POINT layer for the same oracle table (in order to handle different symbols for different zoom levels); each of these layers has 2 classes (one for the selected point and one for all the other "unselected" points): do you think this could be a problem for the queryByAttributes method? Of course only one layer is queried, depending on the zoom level.... Other suggestions to solve this problem? Thanks again, Antonio > > I've tried all the following settings, getting always the > same result > > (shapeindex < 0): > > > > DATA "GEOM FROM mytable USING UNIQUE idcolumn SRID 8307 > FILTER" DATA > > "GEOM FROM mytable USING UNIQUE SRID 8307 FILTER" DATA "GEOM FROM > > mytable USING UNIQUE SRID 8307 VERSION 10g FILTER" > > > > The query returns 1 shape (i.e. $layer->getNumResults() = 1), but > > after these statements > > > > $layer->open(); > > $result=$layer->getResult(0); > > > > I do a simple var_dump($result) and I get: > > > > result=object(stdClass)(3) { ["shapeindex"]=> int(-2028233538) > > ["tileindex"]=> int(-1) ["classindex"]=> int(0) } > > > > That is $result->shapeindex < 0!! So the following $shape > is "False": > > $shape=$layer->getShape(-1,$result->shapeindex); > > > > ...I don't think that $result->shapeindex should be negative... > > > > My software environment is: > > - Windows XP Professional SP1 > > - Apache 2.0.55 > > - MapServer 4.8.3 > > - php 4.4.3-dev (MS4W 1.5.3) > > - php_mapscript_48.dll (232Kb - 09/05/2006 17.22) > > - Oracle10g (XE) > > > > I have both Oracle8i and Oracle10g installed (server and > client), but > > I've renamed the Oracle8i's home directory. > > > > May I know your MapServer version, Php version and php_mapscript's > > version (maybe also php_mapscript.dll's size and date)? Maybe the > > problem is the php's "dev" version...(I'll "downgrade" to a stable > > version) > > > > Any further hint? > > > > Thanks in advance, > > Antonio > > > > > > > > > >> Hi Antonio, > >> How did you defined your DATA parameter for you layer? > >> The extents for your query are right? > >> Here I use this code as example: > >> // Performing the query and returning only a single record > >> @$qlayer->queryByAttributes($nm_field_query, $regex, > >> MS_SINGLE); > >> $numresults = $qlayer->getNumResults(); > >> if ($numresults > 0) > >> { > >> for($f = 0; $f < $numresults ; $f++) > >> { > >> // Opening the layer to return data > >> $qlayer->open(); > >> // Getting the object that store > the results > >> $indexResult = $qlayer->getResult($i); > >> $qresult = > >> $qlayer->getShape(-1,$indexResult->shapeindex); > >> > >> // Getting the data from object > >> // The "values" contains the data > >> // for all columns that are in layer > >> data definition > >> // You can get all columns that are > >> in data definition > >> $dataResult = > array($qresult->values[STATE]); > >> > >> // Cleaning and closing objects > >> $qresult->free(); > >> $qlayer->close(); > >> } > >> return $dataResult[0]; > >> } > >> > >> And my DATA definition: > >> data "geo_column from (SELECT geo_id, state, totpop, > >> geo_column FROM tb_states) USING UNIQUE geo_id FILTER" > >> > >> > > > > > From ollerery at ENGR.ORST.EDU Wed Jul 5 07:48:08 2006 From: ollerery at ENGR.ORST.EDU (Ryan Ollerenshaw) Date: Wed, 5 Jul 2006 07:48:08 -0700 Subject: WMS image download In-Reply-To: <34FA0E56-1E25-4057-9308-17F41D663334@eogeo.org> Message-ID: This is a great app but it does not allow you to download the high resolution .tiffs that are used to generate the images. Are there any ways to download the .tiffs that are used to generat the images for a WMS? Thanks. Quoting Allan Doyle : > http://viewer.digitalearth.gov/ is an example of how to do this. > > Each layer can be viewed individually by clicking on it in the layer > list. Saving that image allows you to save that layer. You can also > save the layer's URL. > > Allan > > On Jul 3, 2006, at 15:52, Ryan Ollerenshaw wrote: > > > I am looking for a way to download the images returned from a WMS. > > Does anyone > > know a good way to go about doing this? I would prefer to create a > > custom web > > interface that would allow the user to select the layer and long/lat > > boundingbox for the area that they are interested in. > > > > Thank you, > > -Ryan > > > > -- > Allan Doyle > +1.781.433.2695 > adoyle at eogeo.org > From bart_doggers at YAHOO.COM Wed Jul 5 08:10:20 2006 From: bart_doggers at YAHOO.COM (Albert Anderson) Date: Wed, 5 Jul 2006 08:10:20 -0700 Subject: nothing shows up! no image or error? Message-ID: Hi, I am making my own map file. It looks all right but when I click the button it doesnt show an image or any kind of errors. Here is my map code. #This is Richland County Map Server NAME "Richland" SIZE 100 100 IMAGECOLOR 255 255 255 IMAGETYPE JPEG SHAPEPATH "/home/mapdata/" EXTENT -50.00 20.00 -10.00 90.00 WEB TEMPLATE '/var/www/htdocs/richland.html' IMAGEPATH '/var/www/htdocs/tmp' IMAGEURL '/tmp/' END LAYER NAME "Richland" STATUS default TYPE polygon DATA "RICH_bndy" CLASS STYLE COLOR 0 0 0 END END END END here is my html code Richland County MapServer
I really dont know whats could be wrong. Maybe the extent of it? Can anyone help me? Thanks, Albert --------------------------------- How low will we go? Check out Yahoo! Messenger?s low PC-to-Phone call rates. -------------- next part -------------- An HTML attachment was scrubbed... URL: From David.Fawcett at STATE.MN.US Wed Jul 5 08:27:37 2006 From: David.Fawcett at STATE.MN.US (Fawcett, David) Date: Wed, 5 Jul 2006 10:27:37 -0500 Subject: nothing shows up! no image or error? In-Reply-To: A<20060705151020.84162.qmail@web55703.mail.re3.yahoo.com> Message-ID: You may want to take a look at your extent. Do you really intend to show a primarily empty stretch of the northern Atlantic Ocean (apologies to Canary Islanders...)? You are telling MapServer that your map area is contained within a box from 50 deg. west longitude to 10 deg. west longitude and 20 to 90 degrees north latitude. If the name of your mapfile relates to the data, I am guessing that Richland County isn't in this box. Use ogrinfo or a desktop GIS app to look at the extent of your data. Also, the extent needs to be in the units of the spatial reference system that your data is in. David. -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Albert Anderson Sent: Wednesday, July 05, 2006 10:10 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] nothing shows up! no image or error? Hi, I am making my own map file. It looks all right but when I click the button it doesnt show an image or any kind of errors. Here is my map code. #This is Richland County Map Server NAME "Richland" SIZE 100 100 IMAGECOLOR 255 255 255 IMAGETYPE JPEG SHAPEPATH "/home/mapdata/" EXTENT -50.00 20.00 -10.00 90.00 WEB TEMPLATE '/var/www/htdocs/richland.html' IMAGEPATH '/var/www/htdocs/tmp' IMAGEURL '/tmp/' END LAYER NAME "Richland" STATUS default TYPE polygon DATA "RICH_bndy" CLASS STYLE COLOR 0 0 0 END END END END here is my html code Richland County MapServer
I really dont know whats could be wrong. Maybe the extent of it? Can anyone help me? Thanks, Albert ________________________________ How low will we go? Check out Yahoo! Messenger's low PC-to-Phone call rates. -------------- next part -------------- An HTML attachment was scrubbed... URL: From bartvde at XS4ALL.NL Wed Jul 5 09:14:51 2006 From: bartvde at XS4ALL.NL (Bart van den Eijnden (OSGIS)) Date: Wed, 5 Jul 2006 18:14:51 +0200 Subject: WMS image download In-Reply-To: <1152110888.44abd128694d4@webmail.oregonstate.edu> Message-ID: A way to do this is to associate your WMS with a WCS (Mapserver supports both), or you can even use Geotiff as an output format for WMS. See also: http://www.osgis.nl/G-delivery.pdf Best regards, Bart Ryan Ollerenshaw wrote: >This is a great app but it does not allow you to download the high resolution >.tiffs that are used to generate the images. Are there any ways to download >the .tiffs that are used to generat the images for a WMS? > >Thanks. > >Quoting Allan Doyle : > > > >>http://viewer.digitalearth.gov/ is an example of how to do this. >> >>Each layer can be viewed individually by clicking on it in the layer >>list. Saving that image allows you to save that layer. You can also >>save the layer's URL. >> >> Allan >> >>On Jul 3, 2006, at 15:52, Ryan Ollerenshaw wrote: >> >> >> >>>I am looking for a way to download the images returned from a WMS. >>>Does anyone >>>know a good way to go about doing this? I would prefer to create a >>>custom web >>>interface that would allow the user to select the layer and long/lat >>>boundingbox for the area that they are interested in. >>> >>>Thank you, >>>-Ryan >>> >>> >>> >>-- >>Allan Doyle >>+1.781.433.2695 >>adoyle at eogeo.org >> >> >> > > > > -- Bart van den Eijnden OSGIS, Open Source GIS http://www.osgis.nl From bart_doggers at YAHOO.COM Wed Jul 5 09:58:25 2006 From: bart_doggers at YAHOO.COM (Albert Anderson) Date: Wed, 5 Jul 2006 09:58:25 -0700 Subject: nothing shows up! no image or error? In-Reply-To: <6246727221874A4FB8D3F9BBC37D9BD5FB079B@s-sp22.pca.state.mn.us> Message-ID: Hi, I was using a projection file UTM Zone 14n Nad_83. Then I switch to an unprojective file and I saw my data show up. What would be the first best step for setting a projection file? Thanks Albert "Fawcett, David" wrote:Message You may want to take a look at your extent. Do you really intend to show a primarily empty stretch of the northern Atlantic Ocean (apologies to Canary Islanders...)? You are telling MapServer that your map area is contained within a box from 50 deg. west longitude to 10 deg. west longitude and 20 to 90 degrees north latitude. If the name of your mapfile relates to the data, I am guessing that Richland County isn't in this box. Use ogrinfo or a desktop GIS app to look at the extent of your data. Also, the extent needs to be in the units of the spatial reference system that your data is in. David. -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Albert Anderson Sent: Wednesday, July 05, 2006 10:10 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] nothing shows up! no image or error? Hi, I am making my own map file. It looks all right but when I click the button it doesnt show an image or any kind of errors. Here is my map code. #This is Richland County Map Server NAME "Richland" SIZE 100 100 IMAGECOLOR 255 255 255 IMAGETYPE JPEG SHAPEPATH "/home/mapdata/" EXTENT -50.00 20.00 -10.00 90.00 WEB TEMPLATE '/var/www/htdocs/richland.html' IMAGEPATH '/var/www/htdocs/tmp' IMAGEURL '/tmp/' END LAYER NAME "Richland" STATUS default TYPE polygon DATA "RICH_bndy" CLASS STYLE COLOR 0 0 0 END END END END here is my html code Richland County MapServer
I really dont know whats could be wrong. Maybe the extent of it? Can anyone help me? Thanks, Albert --------------------------------- How low will we go? Check out Yahoo! Messenger???s low PC-to-Phone call rates. __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From joe at OTSYS.COM Wed Jul 5 10:18:48 2006 From: joe at OTSYS.COM (Joe Bussell) Date: Wed, 5 Jul 2006 10:18:48 -0700 Subject: PERL interface trouble In-Reply-To: Message-ID: Thank you! I have mode some progress. The fact that my fonts/ directory was not readable escaped my notice. The msGetErrorString function provided that data right away. I have still have some undesired behavior however. I added $img->save( $outfile ); carp mapscript::msGetErrorString("\n"); And it indicates that my image file is not openable for write. I have verified that the entire directory chain indicated in the message is world writable. Is there something else that I need to do? [Mon Jul 3 15:52:17 2006] -e: Failure: msSaveImageGD(): Unable to access file. Unable to open file /usr/routing/routes/Route1151967137028128.223.40.5.png for writing at /usr/routing/perl/dwarp/mapdrawing.pm line 515 I changed my write directory to be a child of /tmp, and everything worked out just fine. I verified that the directory permissions matched and could not find any reference in my httpd.conf that would preclude writing to a directory off of /usr. Any ideas as to why this is? Joe Bussell On Time Systems Steve Lime wrote: > You can get at the MapServer error stack with a call like: > > my $map = new mapscript::mapObj( $mapfile ) or mapscript::msGetErrorString("\n"); > > That may help, or be something to try. I use perl MapScript with 4.8 and the CVS version all the time with good results. > > Steve > > >>>>Joseph Bussell 6/30/2006 2:09:06 PM >>> > > Does anyone use the latest code with PERL Mapscript? If shp2img works > with my mapfile, is there anything else I can do to understand why my > new call for the mapObj fails? > > Joe Bussell > On Time Systems > > > Joseph Bussell wrote: > > >>I have verified that shp2img constructs an image that derives form my >>mapfile. This part looks good. My mapscript code was written for >>4.4.2, but the one function that is failing does not appear to have >>significantly changed. I am not getting past construction of the >>basic mapObj from the mapfile. Specifically, the call to : >> >>my $map = new mapscript::mapObj( $mapfile ) or carp "Could not create >>mapscript object from mapfile: $mapfile"; >> >>produces the error message. I also went into mapscript.pm and added >>debug code there to be sure I was using the correct module. The low >>level call is producing an unusable result. >>Joe Bussell >>On Time Systems >> >> >>Stephen Woodbridge wrote: >> >> >>>Hi Joe, >>> >>>A couple of things. >>> >>>1) what version does you existing code work on? >>>2) There are probably two areas that you will need to change >>> a) the mapfile >>> b) the perl >>> >>>I would start with using shp2img to make sure you mapfile can load. >>>It will at least print errors that you can read. >>> >>>shp2img -m /path/to/file.map -o junk.png ... >>> >>>Once you can get an image then you will probably have more luck >>>tracking down the various mapscript changes. These will depend on >>>what version of mapscript your code was written for. >>> >>>-Steve W. >>> >>>Joseph Bussell wrote: >>> >>> >>>>Greetings Listers, >>>> It has been a while since I deployed a new Mapserver application. >>>>I have been leaning on old source on an old box to get the work >>>>done. I have been given a new server to set up for our Air Force >>>>project and have had some issues with getting my code to work. >>>>First of all I am using Mapscript ala PERL. I recognize that the >>>>PERL interface has not been updated due to a lack of user interest, >>>>but I am still partial to using it if it can still be done (mostly >>>>since I will not have to rewrite my routing path functionality). >>>> >>>> My problem is getting the actual mapObj to construct from my >>>>mapfile. I have not been able to get any debug information our by >>>>checking /tmp/mserrors, which used to work nicely in such cases. >>>>All I get is an undefined reference. My code for construction is >>>>simple: >>>> >>>>my $map = new mapscript::mapObj( $mapfile ) or carp "Could not >>>>create mapscript object from mapfile: $mapfile"; >>>> >>>>in my httpd.conf I define >>>>MS_ERRORFILE /tmp/mserrors.txt >>>> >>>>My mapfile exists and is very simple. >>>>I am running: >>>>CentOS release 4.3 >>>>AMD64, dual core machine >>>>Apache/2.0.52 >>>>mapserver-4.8.3.tar.gz >>>>perl, v5.8.5 built for x86_64-linux-thread-multi >>>> >>>>Thank you for your time. >>>> >>>>Joe Bussell >>>>On Time Systems >>>> >>> >>> > From banders at REFRACTIONS.NET Wed Jul 5 10:29:24 2006 From: banders at REFRACTIONS.NET (Brock Anderson) Date: Wed, 5 Jul 2006 10:29:24 -0700 Subject: nothing shows up! no image or error? In-Reply-To: <20060705165825.48286.qmail@web55705.mail.re3.yahoo.com> Message-ID: Albert, For each layer it's important to tell mapserver which projection your data is stored in. In your case: LAYER ... PROJECTION "init=epsg:26914" END #PROJECTION END #LAYER The epsg code 26914 represents "NAD83 / UTM zone 14N". I think that's what you're looking for. Brock Albert Anderson wrote: > Hi, > > I was using a projection file UTM Zone 14n Nad_83. Then I switch to an > unprojective file and I saw my data show up. What would be the first > best step for setting a projection file? > > Thanks > Albert > > */"Fawcett, David" /* wrote: > > You may want to take a look at your extent. > Do you really intend to show a primarily empty stretch of the > northern Atlantic Ocean (apologies to Canary Islanders...)? > You are telling MapServer that your map area is contained within a > box from 50 deg. west longitude to 10 deg. west longitude and 20 > to 90 degrees north latitude. If the name of your mapfile relates > to the data, I am guessing that Richland County isn't in this box. > Use ogrinfo or a desktop GIS app to look at the extent of your > data. Also, the extent needs to be in the units of the spatial > reference system that your data is in. > David. > > -----Original Message----- > *From:* UMN MapServer Users List > [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] *On Behalf Of *Albert > Anderson > *Sent:* Wednesday, July 05, 2006 10:10 AM > *To:* MAPSERVER-USERS at LISTS.UMN.EDU > *Subject:* [UMN_MAPSERVER-USERS] nothing shows up! no image or > error? > > Hi, > > I am making my own map file. It looks all right but when I > click the button it doesnt show an image or any kind of errors. > > Here is my map code. > #This is Richland County Map Server > NAME "Richland" > SIZE 100 100 > IMAGECOLOR 255 255 255 > IMAGETYPE JPEG > SHAPEPATH "/home/mapdata/" > EXTENT -50.00 20.00 -10.00 90.00 > WEB > TEMPLATE '/var/www/htdocs/richland.html' > IMAGEPATH '/var/www/htdocs/tmp' > IMAGEURL '/tmp/' > END > LAYER > NAME "Richland" > STATUS default > TYPE polygon > DATA "RICH_bndy" > CLASS > STYLE > COLOR 0 0 0 > END > END > END > END > > here is my html code > > Richland County MapServer > >
> value="/home/mapdata/richland.map"> > value="/var/www/htdocs/tmp/"> > >
> > > > >
> >
> > > > I really dont know whats could be wrong. Maybe the extent of > it? Can anyone help me? > > Thanks, > Albert > How low will we go? Check out Yahoo! Messenger???s low > PC-to-Phone call rates. > > > > __________________________________________________ > Do You Yahoo!? > Tired of spam? Yahoo! Mail has the best spam protection around > http://mail.yahoo.com > From drewsimpson at BELLSOUTH.NET Wed Jul 5 11:17:52 2006 From: drewsimpson at BELLSOUTH.NET (Simpson) Date: Wed, 5 Jul 2006 13:17:52 -0500 Subject: PERL interface trouble In-Reply-To: <44ABF478.70307@otsys.com> Message-ID: Is /usr an automount? -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]On Behalf Of Joe Bussell Sent: Wednesday, July 05, 2006 12:19 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] PERL interface trouble Thank you! I have mode some progress. The fact that my fonts/ directory was not readable escaped my notice. The msGetErrorString function provided that data right away. I have still have some undesired behavior however. I added $img->save( $outfile ); carp mapscript::msGetErrorString("\n"); And it indicates that my image file is not openable for write. I have verified that the entire directory chain indicated in the message is world writable. Is there something else that I need to do? [Mon Jul 3 15:52:17 2006] -e: Failure: msSaveImageGD(): Unable to access file. Unable to open file /usr/routing/routes/Route1151967137028128.223.40.5.png for writing at /usr/routing/perl/dwarp/mapdrawing.pm line 515 I changed my write directory to be a child of /tmp, and everything worked out just fine. I verified that the directory permissions matched and could not find any reference in my httpd.conf that would preclude writing to a directory off of /usr. Any ideas as to why this is? Joe Bussell On Time Systems Steve Lime wrote: > You can get at the MapServer error stack with a call like: > > my $map = new mapscript::mapObj( $mapfile ) or mapscript::msGetErrorString("\n"); > > That may help, or be something to try. I use perl MapScript with 4.8 and the CVS version all the time with good results. > > Steve > > >>>>Joseph Bussell 6/30/2006 2:09:06 PM >>> > > Does anyone use the latest code with PERL Mapscript? If shp2img works > with my mapfile, is there anything else I can do to understand why my > new call for the mapObj fails? > > Joe Bussell > On Time Systems > > > Joseph Bussell wrote: > > >>I have verified that shp2img constructs an image that derives form my >>mapfile. This part looks good. My mapscript code was written for >>4.4.2, but the one function that is failing does not appear to have >>significantly changed. I am not getting past construction of the >>basic mapObj from the mapfile. Specifically, the call to : >> >>my $map = new mapscript::mapObj( $mapfile ) or carp "Could not create >>mapscript object from mapfile: $mapfile"; >> >>produces the error message. I also went into mapscript.pm and added >>debug code there to be sure I was using the correct module. The low >>level call is producing an unusable result. >>Joe Bussell >>On Time Systems >> >> >>Stephen Woodbridge wrote: >> >> >>>Hi Joe, >>> >>>A couple of things. >>> >>>1) what version does you existing code work on? >>>2) There are probably two areas that you will need to change >>> a) the mapfile >>> b) the perl >>> >>>I would start with using shp2img to make sure you mapfile can load. >>>It will at least print errors that you can read. >>> >>>shp2img -m /path/to/file.map -o junk.png ... >>> >>>Once you can get an image then you will probably have more luck >>>tracking down the various mapscript changes. These will depend on >>>what version of mapscript your code was written for. >>> >>>-Steve W. >>> >>>Joseph Bussell wrote: >>> >>> >>>>Greetings Listers, >>>> It has been a while since I deployed a new Mapserver application. >>>>I have been leaning on old source on an old box to get the work >>>>done. I have been given a new server to set up for our Air Force >>>>project and have had some issues with getting my code to work. >>>>First of all I am using Mapscript ala PERL. I recognize that the >>>>PERL interface has not been updated due to a lack of user interest, >>>>but I am still partial to using it if it can still be done (mostly >>>>since I will not have to rewrite my routing path functionality). >>>> >>>> My problem is getting the actual mapObj to construct from my >>>>mapfile. I have not been able to get any debug information our by >>>>checking /tmp/mserrors, which used to work nicely in such cases. >>>>All I get is an undefined reference. My code for construction is >>>>simple: >>>> >>>>my $map = new mapscript::mapObj( $mapfile ) or carp "Could not >>>>create mapscript object from mapfile: $mapfile"; >>>> >>>>in my httpd.conf I define >>>>MS_ERRORFILE /tmp/mserrors.txt >>>> >>>>My mapfile exists and is very simple. >>>>I am running: >>>>CentOS release 4.3 >>>>AMD64, dual core machine >>>>Apache/2.0.52 >>>>mapserver-4.8.3.tar.gz >>>>perl, v5.8.5 built for x86_64-linux-thread-multi >>>> >>>>Thank you for your time. >>>> >>>>Joe Bussell >>>>On Time Systems >>>> >>> >>> > From David.Fawcett at STATE.MN.US Wed Jul 5 11:25:49 2006 From: David.Fawcett at STATE.MN.US (Fawcett, David) Date: Wed, 5 Jul 2006 13:25:49 -0500 Subject: nothing shows up! no image or error? In-Reply-To: <20060705165825.48286.qmail@web55705.mail.re3.yahoo.com> Message-ID: Albert, Projection in MapServer isn't handled with an external file, like in ArcMap. It is done in the map file. Take a look at the Mapfile documentation to see how to do projection. http://mapserver.gis.umn.edu/docs/reference/mapfile/projection/view You need to define a projection block in the MAP block of the map file, this is set to the projection that you want your data output in. You would then define a projection block in each layer, this is set to the projection that the original data for that layer is in. It is easiest to use epsg codes, look at example 2 in the link above. The epsg code for UTM zone 14N nad83 is 26914 and 4326 can be used for you lat/long data. David. -----Original Message----- From: Albert Anderson [mailto:bart_doggers at yahoo.com] Sent: Wednesday, July 05, 2006 11:58 AM To: Fawcett, David; MAPSERVER-USERS at lists.umn.edu Subject: RE: [UMN_MAPSERVER-USERS] nothing shows up! no image or error? Hi, I was using a projection file UTM Zone 14n Nad_83. Then I switch to an unprojective file and I saw my data show up. What would be the first best step for setting a projection file? Thanks Albert "Fawcett, David" wrote: You may want to take a look at your extent. Do you really intend to show a primarily empty stretch of the northern Atlantic Ocean (apologies to Canary Islanders...)? You are telling MapServer that your map area is contained within a box from 50 deg. west longitude to 10 deg. west longitude and 20 to 90 degrees north latitude. If the name of your mapfile relates to the data, I am guessing that Richland County isn't in this box. Use ogrinfo or a desktop GIS app to look at the extent of your data. Also, the extent needs to be in the units of the spatial reference system that your data is in. David. -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Albert Anderson Sent: Wednesday, July 05, 2006 10:10 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] nothing shows up! no image or error? Hi, I am making my own map file. It looks all right but when I click the button it doesnt show an image or any kind of errors. Here is my map code. #This is Richland County Map Server NAME "Richland" SIZE 100 100 IMAGECOLOR 255 255 255 IMAGETYPE JPEG SHAPEPATH "/home/mapdata/" EXTENT -50.00 20.00 -10.00 90.00 WEB TEMPLATE '/var/www/htdocs/richland.html' IMAGEPATH '/var/www/htdocs/tmp' IMAGEURL '/tmp/' END LAYER NAME "Richland" STATUS default TYPE polygon DATA "RICH_bndy" CLASS STYLE COLOR 0 0 0 END END END END here is my html code Richland County MapServer
I really dont know whats could be wrong. Maybe the extent of it? Can anyone help me? Thanks, Albert ________________________________ How low will we go? Check out Yahoo! Messenger???s low PC-to-Phone call rates. __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From wchoonhooi at GMAIL.COM Wed Jul 5 11:30:48 2006 From: wchoonhooi at GMAIL.COM (Hooi) Date: Thu, 6 Jul 2006 02:30:48 +0800 Subject: Raster image issue In-Reply-To: <44A2071E.2090801@pobox.com> Message-ID: Frank, I follow all ur suggestions but seems not working. I access http://localhost/cgi-bin/mapserv?map=jpg.map&layer=lakespy&mode=map My intention is to get map.jpg displayed, but what I get is a purple rectangular shape. Below is output gdalinfo map.jpg. I simplified the map file too. Hope you able to spot the mistake? #gdalinfo map.jpg Driver: JPEG/JPEG JFIF Size is 2524, 1738 Coordinate System is `' Corner Coordinates: Upper Left ( 0.0, 0.0) Lower Left ( 0.0, 1738.0) Upper Right ( 2524.0, 0.0) Lower Right ( 2524.0, 1738.0) Center ( 1262.0, 869.0) Band 1 Block=2524x1 Type=Byte, ColorInterp=Red Band 2 Block=2524x1 Type=Byte, ColorInterp=Green Band 3 Block=2524x1 Type=Byte, ColorInterp=Blue "jpg.map" MAP NAME ITASCA STATUS ON SIZE 2524 1738 EXTENT 388107.634400379 5203120.88405952 500896.339019834 5310243.30613897 #SHAPEPATH "/var/www/cgi-bin/data" IMAGECOLOR 255 0 255 TRANSPARENT TRUE IMAGETYPE JPEG LAYER NAME lakespy TYPE RASTER STATUS ON DATA "/var/www/cgi-bin/data/map.jpg" END On 6/28/06, Frank Warmerdam wrote: > > Hooi wrote: > > Hi, all. I am new here. > > I access to > > http://localhost/cgi-bin/mapserv?map=test.map&layer=lakespy2&mode=map > > > > but JPEG was displayed. FYI, I able to see vector image. Need help on > > this, thanks. > > > > Below is my mapserver version output:- > > MapServer version 4.8.3 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP > > OUTPUT=SVG SUPPORTS=FREETYPE INPUT=EPPL7 INPUT=OGR INPUT=GDAL > > INPUT=SHAPEFILE > > Hooi, > > I skimmed through your whole email message but was unable to determine > what sort of problem you are having. You mention a jpeg was > displayed. What something wrong with it? > > I am guessing that your raster layer didn't display properly, is that > right? > > It is a bit odd to have a single class for a raster layer. As far as I > know the current arrangement would just cause the whole raster to > be render in color 49 117 185. Is that your intention? > > If the problem is with your raster layer it might also be helpful > to see a gdalinfo report on the raster file (map.tif) as opposed > to map.jpg. Was map.jpg the output file? > > PS. I often try with full absolute paths when I suspect problems with > how the data is being found. You might want to try that. > > Best regards, > -- > > ---------------------------------------+-------------------------------------- > I set the clouds in motion - turn up | Frank Warmerdam, > warmerdam at pobox.com > light and sound - activate the windows | http://pobox.com/~warmerdam > and watch the world go round - Rush | President OSGF, http://osgeo.org > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From BLC at JUB.COM Wed Jul 5 11:22:10 2006 From: BLC at JUB.COM (Bruce Cheney) Date: Wed, 5 Jul 2006 12:22:10 -0600 Subject: PERL interface trouble Message-ID: Joe, I am not answering your question - I have the same problem and am hoping to get some help. I am having the same problem using PHP and mapscript. I am able to open a file for reading and writing from PHP in the temporary folder, but always get the error "unable to open file for writing" when using the same directory with mapscript. If I eliminate the path in the 'image->save' command then the image is written to the 'cgi-bin' directory successfully. This location is not where we would like to read and write files from. I assume there is just some setting that I have missed that would allow writing to the temporary folder. We have the alias to that folder defined in the apache conf file. I have the same question that Joe has. Is there something else I need to do? Bruce Cheney -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Joe Bussell Sent: Wednesday, July 05, 2006 11:19 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] PERL interface trouble Thank you! I have mode some progress. The fact that my fonts/ directory was not readable escaped my notice. The msGetErrorString function provided that data right away. I have still have some undesired behavior however. I added $img->save( $outfile ); carp mapscript::msGetErrorString("\n"); And it indicates that my image file is not openable for write. I have verified that the entire directory chain indicated in the message is world writable. Is there something else that I need to do? [Mon Jul 3 15:52:17 2006] -e: Failure: msSaveImageGD(): Unable to access file. Unable to open file /usr/routing/routes/Route1151967137028128.223.40.5.png for writing at /usr/routing/perl/dwarp/mapdrawing.pm line 515 I changed my write directory to be a child of /tmp, and everything worked out just fine. I verified that the directory permissions matched and could not find any reference in my httpd.conf that would preclude writing to a directory off of /usr. Any ideas as to why this is? Joe Bussell On Time Systems Steve Lime wrote: > You can get at the MapServer error stack with a call like: > > my $map = new mapscript::mapObj( $mapfile ) or > mapscript::msGetErrorString("\n"); > > That may help, or be something to try. I use perl MapScript with 4.8 and the CVS version all the time with good results. > > Steve > > >>>>Joseph Bussell 6/30/2006 2:09:06 PM >>> > > Does anyone use the latest code with PERL Mapscript? If shp2img works > with my mapfile, is there anything else I can do to understand why my > new call for the mapObj fails? > > Joe Bussell > On Time Systems > > > Joseph Bussell wrote: > > >>I have verified that shp2img constructs an image that derives form my >>mapfile. This part looks good. My mapscript code was written for >>4.4.2, but the one function that is failing does not appear to have >>significantly changed. I am not getting past construction of the >>basic mapObj from the mapfile. Specifically, the call to : >> >>my $map = new mapscript::mapObj( $mapfile ) or carp "Could not create >>mapscript object from mapfile: $mapfile"; >> >>produces the error message. I also went into mapscript.pm and added >>debug code there to be sure I was using the correct module. The low >>level call is producing an unusable result. >>Joe Bussell >>On Time Systems >> >> >>Stephen Woodbridge wrote: >> >> >>>Hi Joe, >>> >>>A couple of things. >>> >>>1) what version does you existing code work on? >>>2) There are probably two areas that you will need to change >>> a) the mapfile >>> b) the perl >>> >>>I would start with using shp2img to make sure you mapfile can load. >>>It will at least print errors that you can read. >>> >>>shp2img -m /path/to/file.map -o junk.png ... >>> >>>Once you can get an image then you will probably have more luck >>>tracking down the various mapscript changes. These will depend on >>>what version of mapscript your code was written for. >>> >>>-Steve W. >>> >>>Joseph Bussell wrote: >>> >>> >>>>Greetings Listers, >>>> It has been a while since I deployed a new Mapserver application. >>>>I have been leaning on old source on an old box to get the work >>>>done. I have been given a new server to set up for our Air Force >>>>project and have had some issues with getting my code to work. >>>>First of all I am using Mapscript ala PERL. I recognize that the >>>>PERL interface has not been updated due to a lack of user interest, >>>>but I am still partial to using it if it can still be done (mostly >>>>since I will not have to rewrite my routing path functionality). >>>> >>>> My problem is getting the actual mapObj to construct from my >>>>mapfile. I have not been able to get any debug information our by >>>>checking /tmp/mserrors, which used to work nicely in such cases. >>>>All I get is an undefined reference. My code for construction is >>>>simple: >>>> >>>>my $map = new mapscript::mapObj( $mapfile ) or carp "Could not >>>>create mapscript object from mapfile: $mapfile"; >>>> >>>>in my httpd.conf I define >>>>MS_ERRORFILE /tmp/mserrors.txt >>>> >>>>My mapfile exists and is very simple. >>>>I am running: >>>>CentOS release 4.3 >>>>AMD64, dual core machine >>>>Apache/2.0.52 >>>>mapserver-4.8.3.tar.gz >>>>perl, v5.8.5 built for x86_64-linux-thread-multi >>>> >>>>Thank you for your time. >>>> >>>>Joe Bussell >>>>On Time Systems >>>> >>> >>> > From bart_doggers at YAHOO.COM Wed Jul 5 11:17:06 2006 From: bart_doggers at YAHOO.COM (Albert Anderson) Date: Wed, 5 Jul 2006 11:17:06 -0700 Subject: nothing shows up! no image or error? In-Reply-To: <44ABF6F4.6060504@refractions.net> Message-ID: Hi, This is what my map code look like #This is Richland County Map Server NAME "Richland" SIZE 800 600 IMAGECOLOR 255 255 255 IMAGETYPE JPEG SHAPEPATH "/home/mapdata/" EXTENT -97.502192 45.947754 -96.330315 46.826661 WEB TEMPLATE '/var/www/htdocs/richland.html' IMAGEPATH '/var/www/htdocs/tmp' IMAGEURL '/tmp/' END LAYER NAME "Richland" STATUS default TYPE polygon DATA "RICH_bndy" PROJECTION "init=epsq:26914" END END END I get this error now msProcessProjection(): Projection library error. no system list, errno: 2 ? What does that mean? How can I fix it? Albert Brock Anderson wrote: Albert, For each layer it's important to tell mapserver which projection your data is stored in. In your case: LAYER ... PROJECTION "init=epsg:26914" END #PROJECTION END #LAYER The epsg code 26914 represents "NAD83 / UTM zone 14N". I think that's what you're looking for. Brock Albert Anderson wrote: > Hi, > > I was using a projection file UTM Zone 14n Nad_83. Then I switch to an > unprojective file and I saw my data show up. What would be the first > best step for setting a projection file? > > Thanks > Albert > > */"Fawcett, David" /* wrote: > > You may want to take a look at your extent. > Do you really intend to show a primarily empty stretch of the > northern Atlantic Ocean (apologies to Canary Islanders...)? > You are telling MapServer that your map area is contained within a > box from 50 deg. west longitude to 10 deg. west longitude and 20 > to 90 degrees north latitude. If the name of your mapfile relates > to the data, I am guessing that Richland County isn't in this box. > Use ogrinfo or a desktop GIS app to look at the extent of your > data. Also, the extent needs to be in the units of the spatial > reference system that your data is in. > David. > > -----Original Message----- > *From:* UMN MapServer Users List > [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] *On Behalf Of *Albert > Anderson > *Sent:* Wednesday, July 05, 2006 10:10 AM > *To:* MAPSERVER-USERS at LISTS.UMN.EDU > *Subject:* [UMN_MAPSERVER-USERS] nothing shows up! no image or > error? > > Hi, > > I am making my own map file. It looks all right but when I > click the button it doesnt show an image or any kind of errors. > > Here is my map code. > #This is Richland County Map Server > NAME "Richland" > SIZE 100 100 > IMAGECOLOR 255 255 255 > IMAGETYPE JPEG > SHAPEPATH "/home/mapdata/" > EXTENT -50.00 20.00 -10.00 90.00 > WEB > TEMPLATE '/var/www/htdocs/richland.html' > IMAGEPATH '/var/www/htdocs/tmp' > IMAGEURL '/tmp/' > END > LAYER > NAME "Richland" > STATUS default > TYPE polygon > DATA "RICH_bndy" > CLASS > STYLE > COLOR 0 0 0 > END > END > END > END > > here is my html code > Richland County MapServer> > > > [input] > [input] > value="/home/mapdata/richland.map"> > [input] > value="/var/www/htdocs/tmp/"> > > > > > > > > > > > > > I really dont know whats could be wrong. Maybe the extent of > it? Can anyone help me? > > Thanks, > Albert > How low will we go? Check out Yahoo! Messenger???s low > PC-to-Phone call rates. > > > > __________________________________________________ > Do You Yahoo!? > Tired of spam? Yahoo! Mail has the best spam protection around > http://mail.yahoo.com > --------------------------------- Want to be your own boss? Learn how on Yahoo! Small Business. -------------- next part -------------- An HTML attachment was scrubbed... URL: From mreyes at SISCAT.COM.AR Wed Jul 5 12:28:03 2006 From: mreyes at SISCAT.COM.AR (Reyes, Mariano) Date: Wed, 5 Jul 2006 16:28:03 -0300 Subject: BUG -- JAVA MAPSCRIPT !!!!! Message-ID: Hi, I found a problem in line 1937 of ./mapscript/java/mapscript_wrap.c file: OLD: if (poPixRect->maxy >= poPixRect->miny) { msSetError(12, "Georeferenced coordinates miny <= maxy", "mapscript::mapObj::zoomRectangle()"); Return MS_FAILURE; } NEW: if (poPixRect->miny >= poPixRect->maxy) { msSetError(12, "Georeferenced coordinates miny >= maxy", "mapscript::mapObj::zoomRectangle()"); Return MS_FAILURE; } Please check this Mariano A. Reyes Sistemas Catastrales S.A. Buenos Aires - Argentina -------------- next part -------------- An HTML attachment was scrubbed... URL: From bart_doggers at YAHOO.COM Wed Jul 5 11:49:18 2006 From: bart_doggers at YAHOO.COM (Albert Anderson) Date: Wed, 5 Jul 2006 11:49:18 -0700 Subject: nothing shows up! no image or error? In-Reply-To: <6246727221874A4FB8D3F9BBC37D9BD5FB079E@s-sp22.pca.state.mn.us> Message-ID: , Hi, I am still having problems with not seeing anything. Is this what my code should look like? LAYER NAME "Richland" STATUS default TYPE polygon DATA "RICH_bndy" PROJECTION "init=epsg:26914" END CLASS STYLE COLOR 0 0 0 END END END END I also change my entext too. Thanks, Albert "Fawcett, David" wrote:Message Albert, Projection in MapServer isn't handled with an external file, like in ArcMap. It is done in the map file. Take a look at the Mapfile documentation to see how to do projection. http://mapserver.gis.umn.edu/docs/reference/mapfile/projection/view You need to define a projection block in the MAP block of the map file, this is set to the projection that you want your data output in. You would then define a projection block in each layer, this is set to the projection that the original data for that layer is in. It is easiest to use epsg codes, look at example 2 in the link above. The epsg code for UTM zone 14N nad83 is 26914 and 4326 can be used for you lat/long data. David. -----Original Message----- From: Albert Anderson [mailto:bart_doggers at yahoo.com] Sent: Wednesday, July 05, 2006 11:58 AM To: Fawcett, David; MAPSERVER-USERS at lists.umn.edu Subject: RE: [UMN_MAPSERVER-USERS] nothing shows up! no image or error? Hi, I was using a projection file UTM Zone 14n Nad_83. Then I switch to an unprojective file and I saw my data show up. What would be the first best step for setting a projection file? Thanks Albert "Fawcett, David" wrote: You may want to take a look at your extent. Do you really intend to show a primarily empty stretch of the northern Atlantic Ocean (apologies to Canary Islanders...)? You are telling MapServer that your map area is contained within a box from 50 deg. west longitude to 10 deg. west longitude and 20 to 90 degrees north latitude. If the name of your mapfile relates to the data, I am guessing that Richland County isn't in this box. Use ogrinfo or a desktop GIS app to look at the extent of your data. Also, the extent needs to be in the units of the spatial reference system that your data is in. David. -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Albert Anderson Sent: Wednesday, July 05, 2006 10:10 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] nothing shows up! no image or error? Hi, I am making my own map file. It looks all right but when I click the button it doesnt show an image or any kind of errors. Here is my map code. #This is Richland County Map Server NAME "Richland" SIZE 100 100 IMAGECOLOR 255 255 255 IMAGETYPE JPEG SHAPEPATH "/home/mapdata/" EXTENT -50.00 20.00 -10.00 90.00 WEB TEMPLATE '/var/www/htdocs/richland.html' IMAGEPATH '/var/www/htdocs/tmp' IMAGEURL '/tmp/' END LAYER NAME "Richland" STATUS default TYPE polygon DATA "RICH_bndy" CLASS STYLE COLOR 0 0 0 END END END END here is my html code Richland County MapServer
I really dont know whats could be wrong. Maybe the extent of it? Can anyone help me? Thanks, Albert --------------------------------- How low will we go? Check out Yahoo! Messenger???s low PC-to-Phone call rates. __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com --------------------------------- Do you Yahoo!? Get on board. You're invited to try the new Yahoo! Mail Beta. -------------- next part -------------- An HTML attachment was scrubbed... URL: From joe at OTSYS.COM Wed Jul 5 12:48:15 2006 From: joe at OTSYS.COM (Joe Bussell) Date: Wed, 5 Jul 2006 12:48:15 -0700 Subject: PERL interface trouble In-Reply-To: Message-ID: Nope, same logical volume. Identical results from `df` verify this. Joe Bussell On Time Systems Simpson wrote: >Is /usr an automount? > >-----Original Message----- >From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]On >Behalf Of Joe Bussell >Sent: Wednesday, July 05, 2006 12:19 PM >To: MAPSERVER-USERS at LISTS.UMN.EDU >Subject: Re: [UMN_MAPSERVER-USERS] PERL interface trouble > > >Thank you! I have mode some progress. The fact that my fonts/ >directory was not readable escaped my notice. The msGetErrorString >function provided that data right away. > >I have still have some undesired behavior however. I added >$img->save( $outfile ); >carp mapscript::msGetErrorString("\n"); >And it indicates that my image file is not openable for write. I have >verified that the entire directory chain indicated in the message is >world writable. Is there something else that I need to do? > >[Mon Jul 3 15:52:17 2006] -e: Failure: msSaveImageGD(): Unable to >access file. >Unable to open file >/usr/routing/routes/Route1151967137028128.223.40.5.png for writing at >/usr/routing/perl/dwarp/mapdrawing.pm line 515 > >I changed my write directory to be a child of /tmp, and everything >worked out just fine. I verified that the directory permissions matched >and could not find any reference in my httpd.conf that would preclude >writing to a directory off of /usr. Any ideas as to why this is? > >Joe Bussell >On Time Systems > > > >Steve Lime wrote: > > >>You can get at the MapServer error stack with a call like: >> >> my $map = new mapscript::mapObj( $mapfile ) or >> >> >mapscript::msGetErrorString("\n"); > > >>That may help, or be something to try. I use perl MapScript with 4.8 and >> >> >the CVS version all the time with good results. > > >>Steve >> >> >> >> >>>>>Joseph Bussell 6/30/2006 2:09:06 PM >>> >>>>> >>>>> >>Does anyone use the latest code with PERL Mapscript? If shp2img works >>with my mapfile, is there anything else I can do to understand why my >>new call for the mapObj fails? >> >>Joe Bussell >>On Time Systems >> >> >>Joseph Bussell wrote: >> >> >> >> >>>I have verified that shp2img constructs an image that derives form my >>>mapfile. This part looks good. My mapscript code was written for >>>4.4.2, but the one function that is failing does not appear to have >>>significantly changed. I am not getting past construction of the >>>basic mapObj from the mapfile. Specifically, the call to : >>> >>>my $map = new mapscript::mapObj( $mapfile ) or carp "Could not create >>>mapscript object from mapfile: $mapfile"; >>> >>>produces the error message. I also went into mapscript.pm and added >>>debug code there to be sure I was using the correct module. The low >>>level call is producing an unusable result. >>>Joe Bussell >>>On Time Systems >>> >>> >>>Stephen Woodbridge wrote: >>> >>> >>> >>> >>>>Hi Joe, >>>> >>>>A couple of things. >>>> >>>>1) what version does you existing code work on? >>>>2) There are probably two areas that you will need to change >>>> a) the mapfile >>>> b) the perl >>>> >>>>I would start with using shp2img to make sure you mapfile can load. >>>>It will at least print errors that you can read. >>>> >>>>shp2img -m /path/to/file.map -o junk.png ... >>>> >>>>Once you can get an image then you will probably have more luck >>>>tracking down the various mapscript changes. These will depend on >>>>what version of mapscript your code was written for. >>>> >>>>-Steve W. >>>> >>>>Joseph Bussell wrote: >>>> >>>> >>>> >>>> >>>>>Greetings Listers, >>>>> It has been a while since I deployed a new Mapserver application. >>>>>I have been leaning on old source on an old box to get the work >>>>>done. I have been given a new server to set up for our Air Force >>>>>project and have had some issues with getting my code to work. >>>>>First of all I am using Mapscript ala PERL. I recognize that the >>>>>PERL interface has not been updated due to a lack of user interest, >>>>>but I am still partial to using it if it can still be done (mostly >>>>>since I will not have to rewrite my routing path functionality). >>>>> >>>>> My problem is getting the actual mapObj to construct from my >>>>>mapfile. I have not been able to get any debug information our by >>>>>checking /tmp/mserrors, which used to work nicely in such cases. >>>>>All I get is an undefined reference. My code for construction is >>>>>simple: >>>>> >>>>>my $map = new mapscript::mapObj( $mapfile ) or carp "Could not >>>>>create mapscript object from mapfile: $mapfile"; >>>>> >>>>>in my httpd.conf I define >>>>>MS_ERRORFILE /tmp/mserrors.txt >>>>> >>>>>My mapfile exists and is very simple. >>>>>I am running: >>>>>CentOS release 4.3 >>>>>AMD64, dual core machine >>>>>Apache/2.0.52 >>>>>mapserver-4.8.3.tar.gz >>>>>perl, v5.8.5 built for x86_64-linux-thread-multi >>>>> >>>>>Thank you for your time. >>>>> >>>>>Joe Bussell >>>>>On Time Systems >>>>> >>>>> >>>>> >>>> >>>> > > > From ollerery at ENGR.ORST.EDU Wed Jul 5 12:57:57 2006 From: ollerery at ENGR.ORST.EDU (Ryan Ollerenshaw) Date: Wed, 5 Jul 2006 12:57:57 -0700 Subject: WMS image download In-Reply-To: <44ABE57B.7060201@xs4all.nl> Message-ID: Quoting "Bart van den Eijnden (OSGIS)" : > A way to do this is to associate your WMS with a WCS (Mapserver supports > both), or you can even use Geotiff as an output format for WMS. > Following your instruction I can across the following that can be added to a mapefile to add support for WCS: OUTPUTFORMAT NAME GEOTIFF DRIVER "GDAL/GTiff" MIMETYPE "image/tiff" IMAGEMODE "BYTE" EXTENSION "tif" END When I add the above to my mapfile and then request the page through my web browser a QuickTime frame containing the raster image is opened. I assume that I am moving in the right direction although I am still unclear about how to download this image. Any additional help would be greatly appreciated. > Ryan Ollerenshaw wrote: > > >This is a great app but it does not allow you to download the high > resolution > >.tiffs that are used to generate the images. Are there any ways to download > >the .tiffs that are used to generat the images for a WMS? > > > >Thanks. > > > >Quoting Allan Doyle : > > > > > > > >>http://viewer.digitalearth.gov/ is an example of how to do this. > >> > >>Each layer can be viewed individually by clicking on it in the layer > >>list. Saving that image allows you to save that layer. You can also > >>save the layer's URL. > >> > >> Allan > >> > >>On Jul 3, 2006, at 15:52, Ryan Ollerenshaw wrote: > >> > >> > >> > >>>I am looking for a way to download the images returned from a WMS. > >>>Does anyone > >>>know a good way to go about doing this? I would prefer to create a > >>>custom web > >>>interface that would allow the user to select the layer and long/lat > >>>boundingbox for the area that they are interested in. > >>> > >>>Thank you, > >>>-Ryan > >>> > >>> > >>> > >>-- > >>Allan Doyle > >>+1.781.433.2695 > >>adoyle at eogeo.org > >> > >> > >> > > > > > > > > > > > -- > Bart van den Eijnden > OSGIS, Open Source GIS > http://www.osgis.nl > From john.mccarty at CORONASOLUTIONS.COM Wed Jul 5 12:30:31 2006 From: john.mccarty at CORONASOLUTIONS.COM (John McCarty) Date: Wed, 5 Jul 2006 13:30:31 -0600 Subject: How to use MINFEATURESIZE for labels? Message-ID: An HTML attachment was scrubbed... URL: From drewsimpson at BELLSOUTH.NET Wed Jul 5 13:29:25 2006 From: drewsimpson at BELLSOUTH.NET (Simpson) Date: Wed, 5 Jul 2006 15:29:25 -0500 Subject: PERL interface trouble In-Reply-To: <44AC177F.90206@otsys.com> Message-ID: To rule out issues with Apache, will the script run from the command line. -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]On Behalf Of Joe Bussell Sent: Wednesday, July 05, 2006 2:48 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] PERL interface trouble Nope, same logical volume. Identical results from `df` verify this. Joe Bussell On Time Systems Simpson wrote: >Is /usr an automount? > >-----Original Message----- >From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]On >Behalf Of Joe Bussell >Sent: Wednesday, July 05, 2006 12:19 PM >To: MAPSERVER-USERS at LISTS.UMN.EDU >Subject: Re: [UMN_MAPSERVER-USERS] PERL interface trouble > > >Thank you! I have mode some progress. The fact that my fonts/ >directory was not readable escaped my notice. The msGetErrorString >function provided that data right away. > >I have still have some undesired behavior however. I added >$img->save( $outfile ); >carp mapscript::msGetErrorString("\n"); >And it indicates that my image file is not openable for write. I have >verified that the entire directory chain indicated in the message is >world writable. Is there something else that I need to do? > >[Mon Jul 3 15:52:17 2006] -e: Failure: msSaveImageGD(): Unable to >access file. >Unable to open file >/usr/routing/routes/Route1151967137028128.223.40.5.png for writing at >/usr/routing/perl/dwarp/mapdrawing.pm line 515 > >I changed my write directory to be a child of /tmp, and everything >worked out just fine. I verified that the directory permissions matched >and could not find any reference in my httpd.conf that would preclude >writing to a directory off of /usr. Any ideas as to why this is? > >Joe Bussell >On Time Systems > > > >Steve Lime wrote: > > >>You can get at the MapServer error stack with a call like: >> >> my $map = new mapscript::mapObj( $mapfile ) or >> >> >mapscript::msGetErrorString("\n"); > > >>That may help, or be something to try. I use perl MapScript with 4.8 and >> >> >the CVS version all the time with good results. > > >>Steve >> >> >> >> >>>>>Joseph Bussell 6/30/2006 2:09:06 PM >>> >>>>> >>>>> >>Does anyone use the latest code with PERL Mapscript? If shp2img works >>with my mapfile, is there anything else I can do to understand why my >>new call for the mapObj fails? >> >>Joe Bussell >>On Time Systems >> >> >>Joseph Bussell wrote: >> >> >> >> >>>I have verified that shp2img constructs an image that derives form my >>>mapfile. This part looks good. My mapscript code was written for >>>4.4.2, but the one function that is failing does not appear to have >>>significantly changed. I am not getting past construction of the >>>basic mapObj from the mapfile. Specifically, the call to : >>> >>>my $map = new mapscript::mapObj( $mapfile ) or carp "Could not create >>>mapscript object from mapfile: $mapfile"; >>> >>>produces the error message. I also went into mapscript.pm and added >>>debug code there to be sure I was using the correct module. The low >>>level call is producing an unusable result. >>>Joe Bussell >>>On Time Systems >>> >>> >>>Stephen Woodbridge wrote: >>> >>> >>> >>> >>>>Hi Joe, >>>> >>>>A couple of things. >>>> >>>>1) what version does you existing code work on? >>>>2) There are probably two areas that you will need to change >>>> a) the mapfile >>>> b) the perl >>>> >>>>I would start with using shp2img to make sure you mapfile can load. >>>>It will at least print errors that you can read. >>>> >>>>shp2img -m /path/to/file.map -o junk.png ... >>>> >>>>Once you can get an image then you will probably have more luck >>>>tracking down the various mapscript changes. These will depend on >>>>what version of mapscript your code was written for. >>>> >>>>-Steve W. >>>> >>>>Joseph Bussell wrote: >>>> >>>> >>>> >>>> >>>>>Greetings Listers, >>>>> It has been a while since I deployed a new Mapserver application. >>>>>I have been leaning on old source on an old box to get the work >>>>>done. I have been given a new server to set up for our Air Force >>>>>project and have had some issues with getting my code to work. >>>>>First of all I am using Mapscript ala PERL. I recognize that the >>>>>PERL interface has not been updated due to a lack of user interest, >>>>>but I am still partial to using it if it can still be done (mostly >>>>>since I will not have to rewrite my routing path functionality). >>>>> >>>>> My problem is getting the actual mapObj to construct from my >>>>>mapfile. I have not been able to get any debug information our by >>>>>checking /tmp/mserrors, which used to work nicely in such cases. >>>>>All I get is an undefined reference. My code for construction is >>>>>simple: >>>>> >>>>>my $map = new mapscript::mapObj( $mapfile ) or carp "Could not >>>>>create mapscript object from mapfile: $mapfile"; >>>>> >>>>>in my httpd.conf I define >>>>>MS_ERRORFILE /tmp/mserrors.txt >>>>> >>>>>My mapfile exists and is very simple. >>>>>I am running: >>>>>CentOS release 4.3 >>>>>AMD64, dual core machine >>>>>Apache/2.0.52 >>>>>mapserver-4.8.3.tar.gz >>>>>perl, v5.8.5 built for x86_64-linux-thread-multi >>>>> >>>>>Thank you for your time. >>>>> >>>>>Joe Bussell >>>>>On Time Systems >>>>> >>>>> >>>>> >>>> >>>> > > > From rockwell_001 at YAHOO.COM Wed Jul 5 14:06:20 2006 From: rockwell_001 at YAHOO.COM (rock well) Date: Wed, 5 Jul 2006 14:06:20 -0700 Subject: PHP Mapscript, mapserver 4.8.3 compilation issue Message-ID: Hello all, i have installed mapserver-4.8.3 succesfully and got the mapserv.exe and other library files. i then cinfigured the php mapscript for php_mapscript.dll, i did this by setting the corresponding paths for the variables in mapscript/php3/nmake.opt file. I got the php_mapscript.dll file, i then copied it into the php5/ext folder(i am using php5). When i try to load a mapfile and draw the map, i get a CGI error "The specified CGI application misbehaved by not returning a complete set of HTTP headers". I am not sure whats wrong, is the combination i use good. Thanks for your time, kris --------------------------------- Talk is cheap. Use Yahoo! Messenger to make PC-to-Phone calls. Great rates starting at 1?/min. -------------- next part -------------- An HTML attachment was scrubbed... URL: From n.gilbert at SURREY.AC.UK Wed Jul 5 14:18:58 2006 From: n.gilbert at SURREY.AC.UK (Nigel Gilbert) Date: Wed, 5 Jul 2006 22:18:58 +0100 Subject: Not including a layer in a Legend In-Reply-To: Message-ID: [I asked this a few days ago, but did not get a reply. Does anyone know the answer?] 3. I am displaying a Grid (Graticule) on the map, following the example in the Mapfile Reference document, which uses a separate Grid layer. However, the Grid layer is included in the layers shown in the Legend, which I don?t want. How can I exclude the Grid layer from the Legend? Thank you! Nigel -------------- next part -------------- An HTML attachment was scrubbed... URL: From banders at REFRACTIONS.NET Wed Jul 5 14:46:25 2006 From: banders at REFRACTIONS.NET (Brock Anderson) Date: Wed, 5 Jul 2006 14:46:25 -0700 Subject: Not including a layer in a Legend In-Reply-To: Message-ID: I believe layers are included in the legend if a CLASS has a NAME. Otherwise they are excluded. I think you can just drop the CLASS NAMEs from your grid layer. Brock Nigel Gilbert wrote: > [I asked this a few days ago, but did not get a reply. Does anyone > know the answer?] > > 3. I am displaying a Grid (Graticule) on the map, following the > example in the Mapfile Reference document, which uses a separate Grid > layer. However, the Grid layer is included in the layers shown in the > Legend, which I don?t want. How can I exclude the Grid layer from the > Legend? > > Thank you! > > > Nigel From BLC at JUB.COM Wed Jul 5 15:04:13 2006 From: BLC at JUB.COM (Bruce Cheney) Date: Wed, 5 Jul 2006 16:04:13 -0600 Subject: PERL interface trouble Message-ID: I don't know if it is the same problem but we solved our problem by using The SaveImage command and entered the entire path to the root in the mapscript command Or SaveWebImage and entered the entire path to the root in the mapfile (web - imagepath) We are not perfectly happy using the entire path but it seems mapscript is not reading the alias paths from Apache for this command. Unless there is something else we are missing????? this is working. Bruce Cheney -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Joe Bussell Sent: Wednesday, July 05, 2006 1:48 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] PERL interface trouble Nope, same logical volume. Identical results from `df` verify this. Joe Bussell On Time Systems Simpson wrote: >Is /usr an automount? > >-----Original Message----- >From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]On >Behalf Of Joe Bussell >Sent: Wednesday, July 05, 2006 12:19 PM >To: MAPSERVER-USERS at LISTS.UMN.EDU >Subject: Re: [UMN_MAPSERVER-USERS] PERL interface trouble > > >Thank you! I have mode some progress. The fact that my fonts/ >directory was not readable escaped my notice. The msGetErrorString >function provided that data right away. > >I have still have some undesired behavior however. I added $img->save( >$outfile ); carp mapscript::msGetErrorString("\n"); >And it indicates that my image file is not openable for write. I have >verified that the entire directory chain indicated in the message is >world writable. Is there something else that I need to do? > >[Mon Jul 3 15:52:17 2006] -e: Failure: msSaveImageGD(): Unable to >access file. >Unable to open file >/usr/routing/routes/Route1151967137028128.223.40.5.png for writing at >/usr/routing/perl/dwarp/mapdrawing.pm line 515 > >I changed my write directory to be a child of /tmp, and everything >worked out just fine. I verified that the directory permissions >matched and could not find any reference in my httpd.conf that would >preclude writing to a directory off of /usr. Any ideas as to why this is? > >Joe Bussell >On Time Systems > > > >Steve Lime wrote: > > >>You can get at the MapServer error stack with a call like: >> >> my $map = new mapscript::mapObj( $mapfile ) or >> >> >mapscript::msGetErrorString("\n"); > > >>That may help, or be something to try. I use perl MapScript with 4.8 >>and >> >> >the CVS version all the time with good results. > > >>Steve >> >> >> >> >>>>>Joseph Bussell 6/30/2006 2:09:06 PM >>> >>>>> >>>>> >>Does anyone use the latest code with PERL Mapscript? If shp2img works >>with my mapfile, is there anything else I can do to understand why my >>new call for the mapObj fails? >> >>Joe Bussell >>On Time Systems >> >> >>Joseph Bussell wrote: >> >> >> >> >>>I have verified that shp2img constructs an image that derives form my >>>mapfile. This part looks good. My mapscript code was written for >>>4.4.2, but the one function that is failing does not appear to have >>>significantly changed. I am not getting past construction of the >>>basic mapObj from the mapfile. Specifically, the call to : >>> >>>my $map = new mapscript::mapObj( $mapfile ) or carp "Could not >>>create mapscript object from mapfile: $mapfile"; >>> >>>produces the error message. I also went into mapscript.pm and added >>>debug code there to be sure I was using the correct module. The low >>>level call is producing an unusable result. >>>Joe Bussell >>>On Time Systems >>> >>> >>>Stephen Woodbridge wrote: >>> >>> >>> >>> >>>>Hi Joe, >>>> >>>>A couple of things. >>>> >>>>1) what version does you existing code work on? >>>>2) There are probably two areas that you will need to change >>>> a) the mapfile >>>> b) the perl >>>> >>>>I would start with using shp2img to make sure you mapfile can load. >>>>It will at least print errors that you can read. >>>> >>>>shp2img -m /path/to/file.map -o junk.png ... >>>> >>>>Once you can get an image then you will probably have more luck >>>>tracking down the various mapscript changes. These will depend on >>>>what version of mapscript your code was written for. >>>> >>>>-Steve W. >>>> >>>>Joseph Bussell wrote: >>>> >>>> >>>> >>>> >>>>>Greetings Listers, >>>>> It has been a while since I deployed a new Mapserver application. >>>>>I have been leaning on old source on an old box to get the work >>>>>done. I have been given a new server to set up for our Air Force >>>>>project and have had some issues with getting my code to work. >>>>>First of all I am using Mapscript ala PERL. I recognize that the >>>>>PERL interface has not been updated due to a lack of user interest, >>>>>but I am still partial to using it if it can still be done (mostly >>>>>since I will not have to rewrite my routing path functionality). >>>>> >>>>> My problem is getting the actual mapObj to construct from my >>>>>mapfile. I have not been able to get any debug information our by >>>>>checking /tmp/mserrors, which used to work nicely in such cases. >>>>>All I get is an undefined reference. My code for construction is >>>>>simple: >>>>> >>>>>my $map = new mapscript::mapObj( $mapfile ) or carp "Could not >>>>>create mapscript object from mapfile: $mapfile"; >>>>> >>>>>in my httpd.conf I define >>>>>MS_ERRORFILE /tmp/mserrors.txt >>>>> >>>>>My mapfile exists and is very simple. >>>>>I am running: >>>>>CentOS release 4.3 >>>>>AMD64, dual core machine >>>>>Apache/2.0.52 >>>>>mapserver-4.8.3.tar.gz >>>>>perl, v5.8.5 built for x86_64-linux-thread-multi >>>>> >>>>>Thank you for your time. >>>>> >>>>>Joe Bussell >>>>>On Time Systems >>>>> >>>>> >>>>> >>>> >>>> > > > From Jukka.Rahkonen at MMMTIKE.FI Wed Jul 5 16:37:39 2006 From: Jukka.Rahkonen at MMMTIKE.FI (Rahkonen Jukka) Date: Thu, 6 Jul 2006 02:37:39 +0300 Subject: WMS image download Message-ID: Hi, Still brutal but maybe better way than saving WMS images through a web browser is to feed the WMS request URL to "wget" utility instead of a browser or something, with "-O" switch, if I remember right. And if you have GeoTIFF as outputformat you can use downloaded imagery with almost any GIS software immediately. Not any final solution for your users, though. -Jukka- -----Original Message----- From: UMN MapServer Users List on behalf of Ryan Ollerenshaw Sent: Wed 5.7.2006 22:57 To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] WMS image download Quoting "Bart van den Eijnden (OSGIS)" : > A way to do this is to associate your WMS with a WCS (Mapserver supports > both), or you can even use Geotiff as an output format for WMS. > Following your instruction I can across the following that can be added to a mapefile to add support for WCS: OUTPUTFORMAT NAME GEOTIFF DRIVER "GDAL/GTiff" MIMETYPE "image/tiff" IMAGEMODE "BYTE" EXTENSION "tif" END When I add the above to my mapfile and then request the page through my web browser a QuickTime frame containing the raster image is opened. I assume that I am moving in the right direction although I am still unclear about how to download this image. Any additional help would be greatly appreciated. > Ryan Ollerenshaw wrote: > > >This is a great app but it does not allow you to download the high > resolution > >.tiffs that are used to generate the images. Are there any ways to download > >the .tiffs that are used to generat the images for a WMS? > > > >Thanks. > > > >Quoting Allan Doyle : > > > > > > > >>http://viewer.digitalearth.gov/ is an example of how to do this. > >> > >>Each layer can be viewed individually by clicking on it in the layer > >>list. Saving that image allows you to save that layer. You can also > >>save the layer's URL. > >> > >> Allan > >> > >>On Jul 3, 2006, at 15:52, Ryan Ollerenshaw wrote: > >> > >> > >> > >>>I am looking for a way to download the images returned from a WMS. > >>>Does anyone > >>>know a good way to go about doing this? I would prefer to create a > >>>custom web > >>>interface that would allow the user to select the layer and long/lat > >>>boundingbox for the area that they are interested in. > >>> > >>>Thank you, > >>>-Ryan > >>> > >>> > >>> > >>-- > >>Allan Doyle > >>+1.781.433.2695 > >>adoyle at eogeo.org > >> > >> > >> > > > > > > > > > > > -- > Bart van den Eijnden > OSGIS, Open Source GIS > http://www.osgis.nl > From jvanulde at NRCAN.GC.CA Wed Jul 5 18:01:35 2006 From: jvanulde at NRCAN.GC.CA (Van Ulden, Joost) Date: Wed, 5 Jul 2006 21:01:35 -0400 Subject: WMS Server and SLD Message-ID: Hi all, Just wondering if there is a way to add an SLD url to a layer in WMS Server. Thank you in advance, ============================================ Joost van Ulden Programmer/Analyst Natural Resources Canada / Ressources naturelles Canada Geological Survey of Canada / Commission geologique du Canada 101 - 605 Robson Street / 101 - 605 rue Robson Vancouver, B.C. / Vancouver (C.B.) V6B 5J3 Office/Bureau: 604.666.7525 fax/telecopieur: 604.666.1124 jvanulde at nrcan.gc.ca ============================================ From Steve.Lime at DNR.STATE.MN.US Wed Jul 5 23:17:23 2006 From: Steve.Lime at DNR.STATE.MN.US (Steve Lime) Date: Thu, 6 Jul 2006 01:17:23 -0500 Subject: Boston Free Map Message-ID: Beauty Christopher, thanks for sharing- both the application and the under-the-hood information! I look forward to seeing OpenLayers move forward. Steve >>> Christopher Schmidt 07/04/06 9:43 AM >>> It is my distinct pleasure to announce the redesign of the Boston Free Map: http://boston.freemap.in/ This map is powered by ka-Map and OpenLayers, using Mapserver as a rendering engine. More information about the map is available from http://boston.freemap.in/about.html Including a link to the mapfile: http://boston.freemap.in/basemap.map This map is served through the support of the Free Map project. The Free Map System is designed to run as an open hosted service for mapping applications using free and open source software, public and copyleft geographic data, and community information anywhere in the world. All data for the Boston Free Map is available under an attribution license from MassGIS. The mapfile is similarly released under an attribution license by the Free Map Project. Mapserver has proved to be a hugely useful tool for rendering, and ka-Map has successfully solved many of the issues related to creating and caching tiled images from Mapserver. Many thanks to all participating members of the Mapserver and ka-Map projects for creating the software which allows the generation of this map. Regards, -- Christopher Schmidt Web Developer From m.coudert at OIEAU.FR Thu Jul 6 00:19:47 2006 From: m.coudert at OIEAU.FR (Mathieu Coudert) Date: Thu, 6 Jul 2006 09:19:47 +0200 Subject: WMS Server and SLD In-Reply-To: Message-ID: Hi, By this way you can add a SLD... 'wms_sld_url' 'http://xml.sandre.eaufrance.fr/exist/Geo/sld/my_layer.xml' For instance, in your map file : LAYER NAME 'my_layer' TYPE RASTER CONNECTION 'http://www.irep.ecologie.gouv.fr/geoservice?' CONNECTIONTYPE WMS METADATA 'wms_srs' 'EPSG:27582' 'wms_name' 'my_layer_name' 'wms_server_version' '1.1.1' 'wms_format' 'image/png' 'wms_legend_graphic' '1' 'wms_sld_url' 'http://xml.sandre.eaufrance.fr/exist/Geo/sld/IREP.xml' END END Regards, -----Message d'origine----- De?: UMN MapServer Users List [mailto:MAPSERVER-USERS at lists.umn.edu] De la part de Van Ulden, Joost Envoy??: jeudi 6 juillet 2006 03:02 ??: MAPSERVER-USERS at lists.umn.edu Objet?: [UMN_MAPSERVER-USERS] WMS Server and SLD Hi all, Just wondering if there is a way to add an SLD url to a layer in WMS Server. Thank you in advance, ============================================ Joost van Ulden Programmer/Analyst Natural Resources Canada / Ressources naturelles Canada Geological Survey of Canada / Commission geologique du Canada 101 - 605 Robson Street / 101 - 605 rue Robson Vancouver, B.C. / Vancouver (C.B.) V6B 5J3 Office/Bureau: 604.666.7525 fax/telecopieur: 604.666.1124 jvanulde at nrcan.gc.ca ============================================ -- Ce message a ete verifie par MailScanner pour des virus ou des polluriels et rien de suspect n'a ete trouve. Les donnees et renseignements contenus dans ce message sont personnels, confidentiels et prives. Toute publication, utilisation ou diffusion, meme partielle, doit etre autorisee. Any data and information contained in this electronic mail is personal, confidential and secret. Any total or partial publication, use or distribution must be authorized. -- Ce message a ete verifie par MailScanner pour des virus ou des polluriels et rien de suspect n'a ete trouve. Les donnees et renseignements contenus dans ce message sont personnels, confidentiels et prives. Toute publication, utilisation ou diffusion, meme partielle, doit etre autorisee. Any data and information contained in this electronic mail is personal, confidential and secret. Any total or partial publication, use or distribution must be authorized. From umberto.nicoletti at GMAIL.COM Thu Jul 6 00:25:45 2006 From: umberto.nicoletti at GMAIL.COM (Umberto Nicoletti) Date: Thu, 6 Jul 2006 09:25:45 +0200 Subject: BUG -- JAVA MAPSCRIPT !!!!! In-Reply-To: <5341EB12706351489DEFADBFEF06CC6841293A@mercurio.sc.com> Message-ID: The modification I made on may 30 was wrong and has been fixed by Howard Butler. You can swap miny and maxy as long as you set the fifth argument in the rectoBj constructor to 1 (MS_TRUE). Bugtracking at: http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=1817 Regards, Umberto On 7/5/06, Reyes, Mariano wrote: > > > > > Hi, > > I found a problem in line 1937 of > ./mapscript/java/mapscript_wrap.c file: > > > > OLD: > > if (poPixRect->maxy >= poPixRect->miny) > > { > > msSetError(12, "Georeferenced coordinates miny <= > maxy", > > > "mapscript::mapObj::zoomRectangle()"); > > Return MS_FAILURE; > > } > > > > NEW: > > if (poPixRect->miny >= poPixRect->maxy) > > { > > msSetError(12, "Georeferenced coordinates miny >= > maxy", > > > "mapscript::mapObj::zoomRectangle()"); > > Return MS_FAILURE; > > } > > > > Please check this > > > > Mariano A. Reyes > > Sistemas Catastrales S.A. > > Buenos Aires - Argentina > > From zhonghaiw at GMAIL.COM Thu Jul 6 00:29:30 2006 From: zhonghaiw at GMAIL.COM (Zhonghai Wang) Date: Thu, 6 Jul 2006 09:29:30 +0200 Subject: Boston Free Map In-Reply-To: Message-ID: Hi there, nice application!! in addition, I have some questions here: 1. are you using PNG24 for the output format? the map image is not so "clear" if the map is zoomed to biggest map extent. I noticed that you defined several output formats in the mapfile, are these just simply duplicated defenitions or for some other purpose? normally I define only one outputformat, for example PNG24 or GIF. 2. do you label the street names with some special softwares? the street names are labeled very nice along the street curves. If you don't mind, can you give some more hints about this? (I attached a desktop capture for this.) the application is really very fast, good job. best regards zhonghai On 7/6/06, Steve Lime wrote: > > Beauty Christopher, thanks for sharing- both the application and the > under-the-hood information! I look forward to seeing OpenLayers move > forward. > > Steve > > >>> Christopher Schmidt 07/04/06 9:43 AM >>> > It is my distinct pleasure to announce the redesign of the Boston > Free Map: > > http://boston.freemap.in/ > > This map is powered by ka-Map and OpenLayers, using Mapserver as a > rendering engine. More information about the map is available from > > http://boston.freemap.in/about.html > > Including a link to the mapfile: > > http://boston.freemap.in/basemap.map > > This map is served through the support of the Free Map project. The Free > Map System is designed to run as an open hosted service for mapping > applications using free and open source software, public and copyleft > geographic data, and community information anywhere in the world. > > All data for the Boston Free Map is available under an attribution > license from MassGIS. The mapfile is similarly released under an > attribution license by the Free Map Project. > > Mapserver has proved to be a hugely useful tool for rendering, and > ka-Map has successfully solved many of the issues related to creating > and caching tiled images from Mapserver. Many thanks to all > participating members of the Mapserver and ka-Map projects for creating > the software which allows the generation of this map. > > Regards, > -- > Christopher Schmidt > Web Developer > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: streetlabel.gif Type: image/gif Size: 25402 bytes Desc: not available URL: From zhonghaiw at GMAIL.COM Thu Jul 6 00:39:20 2006 From: zhonghaiw at GMAIL.COM (Zhonghai Wang) Date: Thu, 6 Jul 2006 09:39:20 +0200 Subject: a layer from multiple datasources (similar to mapguide's secondary table) In-Reply-To: <44A91DF3.101@HAWARIT.COM> Message-ID: Hi Eduard, AFAIK, it's not possible. the ESRI Shapefile has its own attribute table, the *.dbf file, maybe you can add some columns to the shape file dbf, this should be a possible solution. and without oracle data your application will be faster. kind regards zhonghai On 7/3/06, Eduard Witteveen wrote: > > Hello list, > > How do use multiple datasources (oracle-database-table and > esri-shapefile) in the same layer? > > I want to give colors based upon the values defined in oracle, and also > specify a filter on the dataset in oracle. The shape of the area's is > stored in the esri-shapefile. > > Both the oracle database and shape file's have the same value in their > data, so this should be used for the reference. > > I looked at "ogr-join", but i'm not sure if it is the tool for me? > > > -- > Ing. Eduard Yeb Witteveen Software Engineer > Hawar Information Technology bv lid Dijkoraad Groep > De Wymerts 7 8701 WT Bolsward > Tel: +31 (0)515 570333 Fax: +31 (0)515 570335 > http://www.hawarit.com/ nl_NL fy_NL en_US > -------------- next part -------------- An HTML attachment was scrubbed... URL: From matl.hedwig at UZR.AT Thu Jul 6 02:35:12 2006 From: matl.hedwig at UZR.AT (Hedwig Matl) Date: Thu, 6 Jul 2006 11:35:12 +0200 Subject: CGI / FAST CGI error (with ms4w) Message-ID: Hi List! I have built a small mapserver application, where the user can zoom, pan and query a layer (using querypoint of mapscript). Sometimes (but not always!) I get a CGI / FastCGI error, when i perform a query , which leads to an "Internal Server Error - The server encountered an internal error or misconfiguration and was unable to complete your request." The error doesn't depend on whether there is a queryresult found or not. I use ms4w 2.0 (I also tried version 1.5.3) and php-mapscript to perform my queries. I tried using several browsers (firefox, opera, netscape, ie; all latest versions), same effect. My OS is Windows XP pro, SP2. I have attached screenshots of the error and the two report-files. (I don't know what to do with them, but maybe someone else does ;-) ) I've absolutly no idea what I shall do about this. Hopepfully someone can help me, with best regards, Hedwig -------------- next part -------------- A non-text attachment was scrubbed... Name: cgierror.rar Type: application/octet-stream Size: 53150 bytes Desc: not available URL: From aiandolo at GRUPPOAS.IT Thu Jul 6 03:28:48 2006 From: aiandolo at GRUPPOAS.IT (Antonio Iandolo) Date: Thu, 6 Jul 2006 12:28:48 +0200 Subject: queryByAttributes and Oracle In-Reply-To: <44AA50F8.7030207@univali.br> Message-ID: Hi all, I'd like to have a confirmation on the following "doubt": I had a problem querying a layer (Oracle10g based) with queryByAttributes in php_mapscript: the query resulted 1 row but the function getResult returned me a negative shapeindex, so I couldn't get any shape with the getShape function. Now, I suppose that the problem is due to the "large" number I use for the column_id on wich I call queryByAttributes: it's a NUMBER(16) It seems it has to be an integer, so I suppose that values like, for example, 138700001563 can't be handled. Do you think this could be the problem? Is there another way to "overcome" it? (Actually I've solved querying Oracle and reading the point's coordinates by myself, so that I can center and zoom in the map) Thanks in advance, Antonio From Artur.Skalski at ACXIOM.COM Thu Jul 6 03:44:15 2006 From: Artur.Skalski at ACXIOM.COM (Skalski Artur - askals) Date: Thu, 6 Jul 2006 12:44:15 +0200 Subject: No subject Message-ID: Hi all, could someone please, give me or direct me to infos about mapserer performance tests? are there any? I need to know some details for my client about mapserver performance aspecialy in comparison to ArcIMS or MAPEXTREME, unfortunately I don't have these to use so I can't do it on my own. If someone of You made that kind of comparison, and could provide me some infos like what bandwidth, how many queries at a time, platform, machine, data size ect. i'd be grateful. regards Artur ************************************************************************* The information contained in this communication is confidential, is intended only for the use of the recipient named above, and may be legally privileged. If the reader of this message is not the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please resend this communication to the sender and delete the original message or any copy of it from your computer system. Thank you. ************************************************************************* -------------- next part -------------- An HTML attachment was scrubbed... URL: From Artur.Skalski at ACXIOM.COM Thu Jul 6 03:45:47 2006 From: Artur.Skalski at ACXIOM.COM (Skalski Artur - askals) Date: Thu, 6 Jul 2006 12:45:47 +0200 Subject: mapserver performance tests/comparison Message-ID: sorrrry, just forgot a title... for this messge Hi all, could someone please, give me or direct me to infos about mapserer performance tests? are there any? I need to know some details for my client about mapserver performance aspecialy in comparison to ArcIMS or MAPEXTREME, unfortunately I don't have these to use so I can't do it on my own. If someone of You made that kind of comparison, and could provide me some infos like what bandwidth, how many queries at a time, platform, machine, data size ect. i'd be grateful. regards Artur Artur ************************************************************************* The information contained in this communication is confidential, is intended only for the use of the recipient named above, and may be legally privileged. If the reader of this message is not the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please resend this communication to the sender and delete the original message or any copy of it from your computer system. Thank you. ************************************************************************* -------------- next part -------------- An HTML attachment was scrubbed... URL: From fsimon at UNIVALI.BR Thu Jul 6 04:31:31 2006 From: fsimon at UNIVALI.BR (Fernando Simon) Date: Thu, 6 Jul 2006 08:31:31 -0300 Subject: queryByAttributes and Oracle In-Reply-To: <006001c6a0e6$f7924b80$5d00a8c0@aiandolo> Message-ID: Hi Antonio, As you report, your column id is 16 length, it's can be a big problem in Mapserver because the core of Mapserver just can handle a object (row in your case) that are less than this size of id column. It's a old issue that was not solve yet. I'm writing a database function to use the rowid in this cases. This way can be a solution when the unique column is bigger than 15, or when you don't have a unique column in your table. Best regards. ------------------------------------------------------------------------ Fernando Simon Mapserver and Oracle Spatial developer G10 - Laboratorio de Computacao Aplicada - Brazil http://www.univali.br/g10 - UNIVALI/CTTMAR ------------------------------------------------------------------------ Antonio Iandolo wrote: > Hi all, > I'd like to have a confirmation on the following "doubt": > > I had a problem querying a layer (Oracle10g based) with > queryByAttributes in php_mapscript: the query resulted 1 row but the > function getResult returned me a negative shapeindex, so I couldn't get > any shape with the getShape function. > > Now, I suppose that the problem is due to the "large" number I use for > the column_id on wich I call queryByAttributes: it's a NUMBER(16) > > It seems it has to be an integer, so I suppose that values like, for > example, 138700001563 can't be handled. > > Do you think this could be the problem? Is there another way to > "overcome" it? (Actually I've solved querying Oracle and reading the > point's coordinates by myself, so that I can center and zoom in the map) > > Thanks in advance, > Antonio > > From umberto.nicoletti at GMAIL.COM Thu Jul 6 04:51:13 2006 From: umberto.nicoletti at GMAIL.COM (Umberto Nicoletti) Date: Thu, 6 Jul 2006 13:51:13 +0200 Subject: mapscript + inline features In-Reply-To: <44A3F4EF.70602@herzsys.de> Message-ID: I have tried to run your example and got this output: can't open layer num res: 1 shp 0: -1 Since the layer can't be opened there is no point in trying to fetch query results from it. Digging more into the code reveals that INLINE layers have a default implementation of the getItems funtion that only returns ms_failure (see maplayer.c). Regards, Umberto On 6/29/06, listuser HH wrote: > Hi all, > > i'm using java mapscript from ms4w and i try to query a layer with > inline feature (no direct data source). > > I get the correct count of results from a querybyrect but i can't get > the feature and it's values. This is because the resultCacheObj has an > index of -1. So it is not possible to use the getFeature. The getFeature > works for the inline features if i use a possible index like 0. > > Any hint / solution? > > Best regards > > Norbert > > > ***************************************************************** > > ----------------- > test.java > ----------------- > > public class InlineFeatureTest { > > public static void main(String[] args) { > URL mapURL = InlineFeatureTest.class.getResource("/test/test.map"); > StringBuffer sb = new StringBuffer(mapURL.getFile()); > sb.deleteCharAt(0); > mapObj map = new mapObj(sb.toString()); > layerObj layer = map.getLayerByName("inline"); > if (layer == null) return; > > > shapeObj shape = new > shapeObj(MS_SHAPE_TYPE.MS_SHAPE_POINT.swigValue()); > lineObj line = new lineObj(); > boolean error = false; > if (line.add(new pointObj(3500000, 5500000, 0)) == > MS_RETURN_VALUE.MS_FAILURE.swigValue()) error = true; > if (shape.add(line) == MS_RETURN_VALUE.MS_FAILURE.swigValue()) > error = true; > shape.setValue(0, "test1"); > shape.setValue(1, "test2"); > shape.setValue(2, "test3"); > if (layer.addFeature(shape) == > MS_RETURN_VALUE.MS_FAILURE.swigValue()) error = true; > > if (error) System.out.println("can't add point"); > > map.queryByRect(new rectObj(3400000, 5400000, 3600000, 5600000, 0)); > > int numRes = layer.getNumResults(); > resultCacheObj infoResults = null; > > if (layer.open() == MS_RETURN_VALUE.MS_FAILURE.swigValue()) > System.out.println("can't open layer"); > > System.out.println("num res: " + numRes); > > if (numRes > 0) { > infoResults = layer.getResults(); > for (int resNr = 0; resNr < numRes; resNr++){ > resultCacheMemberObj resObj = infoResults.getResult(resNr); > > int shpIndex = resObj.getShapeindex(); > System.out.println("shp " + resNr + ": " + shpIndex); > > if (shpIndex >= 0) { > shapeObj tmpFeature = layer.getFeature(shpIndex, -1); > System.out.println("num values = " + > tmpFeature.getNumvalues()); > } > } > } > } > > } > > > --------------------- > test.map > --------------------- > MAP > EXTENT 3565000 5630000 3570000 5680000 > IMAGECOLOR 255 255 255 > IMAGETYPE png > SIZE 500 500 > STATUS ON > UNITS METERS > NAME "MS" > > OUTPUTFORMAT > NAME "PNG" > MIMETYPE "image/png" > DRIVER "GD/PNG" > EXTENSION "png" > IMAGEMODE "PC256" > TRANSPARENT FALSE > END > > SYMBOL > NAME "circle" > TYPE ELLIPSE > POINTS > 1 1 > END > FILLED TRUE > END > > PROJECTION > "init=epsg:31467" > END > > QUERYMAP > COLOR 255 255 0 > SIZE -1 -1 > STATUS OFF > STYLE HILITE > END > > WEB > IMAGEPATH "../temp/" > IMAGEURL "./mapserver/temp/" > END > > LAYER > NAME "inline" > PROJECTION > "init=epsg:31467" > END > SIZEUNITS PIXELS > STATUS DEFAULT > TOLERANCEUNITS PIXELS > UNITS METERS > TYPE POINT > TEMPLATE "dummy" > > CLASS > METADATA > END > STYLE > ANGLE 360 > COLOR 255 0 0 > SYMBOL "circle" > SIZE 10 > END > END > END > > END > From listuser at HERZSYS.DE Thu Jul 6 05:07:42 2006 From: listuser at HERZSYS.DE (listuser HH) Date: Thu, 6 Jul 2006 14:07:42 +0200 Subject: mapscript + inline features In-Reply-To: <75b4b93e0607060451v2c36a175w4eed87626fd7f217@mail.gmail.com> Message-ID: Hi Umberto, thanks for testing. I found a way to solve the problem: I have to set the index for the shape before adding it - this seem to work. Best regards Norbert Umberto Nicoletti wrote: > I have tried to run your example and got this output: > > can't open layer > num res: 1 > shp 0: -1 > > Since the layer can't be opened there is no point in trying to fetch > query results from it. > > Digging more into the code reveals that INLINE layers have a default > implementation of the getItems funtion that only returns ms_failure > (see maplayer.c). > > Regards, > Umberto From baas at SPEERIT.NL Thu Jul 6 05:09:41 2006 From: baas at SPEERIT.NL (Jelmer Baas) Date: Thu, 6 Jul 2006 14:09:41 +0200 Subject: Tolerance and toleranceunits not working with CGI request? Message-ID: Hi all, I finally have some of my distance stuff up and running, but now I'm stuck with getting the nearest point on my map. This works: mapserv.exe?mode=query&map=nearest.map&imgext=-70000+278750+400000+631250&mapxy=185382.700+444989.600&layers=TABAP&qlayer=TABAP&tolerance=999999&toleranceunits=meters But this doesn't mapserv.exe?mode=query&map=nearest.map&imgext=-70000+278750+400000+631250&mapxy=164018.5+451343.9&layers=TABAP&qlayer=TABAP&tolerance=9999999999999&toleranceunits=kilometers This is my map file: MAP name nearest STATUS ON SIZE 640 480 UNITS meters EXTENT -274506.825920 199616.266937 553854.848094 752598.058799 PROJECTION "+proj=sterea +lat_0=52.15616055555555 +lon_0=5.38763888888889 +k=0.999908 +x_0=155000 +y_0=463000 +ellps=bessel +units=m +towgs84=565.2369,50.0087,465.658,-0.406857330322398,0.350732676542563,-1.87 03473836068,4.0812 +no_defs +to +proj=latlong +datum=WGS84" END LAYER NAME TABCAB TYPE LINE STATUS ON CONNECTIONTYPE OGR CONNECTION "data\TABCAB.TAB" STYLEITEM "AUTO" CLASS NAME "Kabel" TEMPLATE "nearest.html" END MINSCALE 1 MAXSCALE 4000000 END LAYER NAME TABAP TYPE POINT STATUS ON CONNECTIONTYPE OGR CONNECTION "data\TABAP.TAB" CLASS TEMPLATE "nearest.html" END END END # Map File This should yield results, shouldn't it? Hopefully anyone can provide me with an answer. With kind regards, Jelmer Baas From crschmidt at CRSCHMIDT.NET Thu Jul 6 05:52:21 2006 From: crschmidt at CRSCHMIDT.NET (Christopher Schmidt) Date: Thu, 6 Jul 2006 08:52:21 -0400 Subject: Boston Free Map In-Reply-To: <2534c4120607060029o5f3db123u75a945c910a08b32@mail.gmail.com> Message-ID: On Thu, Jul 06, 2006 at 09:29:30AM +0200, Zhonghai Wang wrote: > Hi there, > > nice application!! in addition, I have some questions here: > > 1. are you using PNG24 for the output format? the map image is not so > "clear" if the map is zoomed to biggest map extent. I noticed that you > defined several output formats in the mapfile, are these just simply > duplicated defenitions or for some other purpose? normally I define only one > outputformat, for example PNG24 or GIF. This map is designed to be used in a variety of applications, and I have, in the past, used every single one of those output formats ;) The current format is actually JPEG -- the reason for this is that: * PNG8 (dithered png) has problems with not having enough space in the color table with antialiasing * PNG24 takes too long to load -- the images are about twice as large * GIF suffers under the same problems as PNG8, plus the AA doesn't look as good > 2. do you label the street names with some special softwares? the street > names are labeled very nice along the street curves. If you don't mind, can > you give some more hints about this? (I attached a desktop capture for > this.) ANGLE FOLLOW does this for me -- this is a relatively new development of Mapserver, and I'm not sure when it came into place: the Freemap server runs Mapserver out of CVS, so some aspects of it may be not be released yet. (Someone else can probalby comment better on that.) > the application is really very fast, good job. Thank ka-Map for that :) Paul Spencer's tile.php work is the only reason that this application is as usable as it is: rendering this much stuff simply didn't work, and without the metaTile generation, the buffers would simply have killed the number of labels you're seeing. I'm really happy with how it's come out, and I'm glad to see that others like it too! -- Christopher Schmidt Web Developer From zhonghaiw at GMAIL.COM Thu Jul 6 06:49:38 2006 From: zhonghaiw at GMAIL.COM (Zhonghai Wang) Date: Thu, 6 Jul 2006 15:49:38 +0200 Subject: Boston Free Map In-Reply-To: <20060706125221.GT23010@crschmidt.net> Message-ID: Hi Christopher, thanks for your detailed information. the new element ANGLE FOLLOW does not available in the MS4W1.5.3 version, so it doesn't work for me. kind regards zhonghai On 7/6/06, Christopher Schmidt wrote: > > On Thu, Jul 06, 2006 at 09:29:30AM +0200, Zhonghai Wang wrote: > > Hi there, > > > > nice application!! in addition, I have some questions here: > > > > 1. are you using PNG24 for the output format? the map image is not so > > "clear" if the map is zoomed to biggest map extent. I noticed that you > > defined several output formats in the mapfile, are these just simply > > duplicated defenitions or for some other purpose? normally I define only > one > > outputformat, for example PNG24 or GIF. > > This map is designed to be used in a variety of applications, and I > have, in the past, used every single one of those output formats ;) The > current format is actually JPEG -- the reason for this is that: > * PNG8 (dithered png) has problems with not having enough space in the > color table with antialiasing > * PNG24 takes too long to load -- the images are about twice as large > * GIF suffers under the same problems as PNG8, plus the AA doesn't > look as good > > > 2. do you label the street names with some special softwares? the street > > names are labeled very nice along the street curves. If you don't mind, > can > > you give some more hints about this? (I attached a desktop capture for > > this.) > > ANGLE FOLLOW does this for me -- this is a relatively new development of > Mapserver, and I'm not sure when it came into place: the Freemap server > runs Mapserver out of CVS, so some aspects of it may be not be released > yet. (Someone else can probalby comment better on that.) > > > the application is really very fast, good job. > > Thank ka-Map for that :) Paul Spencer's tile.php work is the only reason > that this application is as usable as it is: rendering this much stuff > simply didn't work, and without the metaTile generation, the buffers > would simply have killed the number of labels you're seeing. > > I'm really happy with how it's come out, and I'm glad to see that others > like it too! > > -- > Christopher Schmidt > Web Developer > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ollerery at ENGR.ORST.EDU Thu Jul 6 08:08:49 2006 From: ollerery at ENGR.ORST.EDU (Ryan Ollerenshaw) Date: Thu, 6 Jul 2006 08:08:49 -0700 Subject: Very slow WMS connection through GIS application In-Reply-To: Message-ID: The connection to my WMS server through a GIS application such as uDig or ArcGIS is painfully slow, Does anyone know what could be causing this? My dataset is rather large about 70 high resolution tiles, it seems like whenever I do a pan or a zoom the GIS application is reloading every tile, is there a way to keep this from happening? Thank you and here is my map file incase it may provide some clues as to what I have done wrong: NAME WMSDEMO STATUS ON SIZE 1000 600 EXTENT 0 -90 360 90 #UNITS METERS SHAPEPATH "../data" IMAGECOLOR 255 255 255 WEB TEMPLATE test_template.html IMAGEPATH "/tmp/ms_tmp/" IMAGEURL "/ms_tmp/" METADATA WMS_TITLE "WMS_Mars_mapserver" WMS_ACCESSCONSTRAINTS "none" #WMS_ONLINERESOURCE "http://neuron/cgi-bin/mapserv?map=display.map&" WMS_SRS "EPSG:4326" #"AUTO:42003" END END PROJECTION "init=epsg:4326" END LAYER NAME "themis" STATUS ON TILEINDEX "thm_dir.shp" TILEITEM "location" TYPE RASTER DUMP TRUE METADATA WMS_TITLE "THEMIS_Data" END END LAYER NAME "moc" STATUS ON TILEINDEX "moc_256.shp" TILEITEM "location" TYPE RASTER METADATA WMS_TITLE "MOC_Data" END END LAYER NAME "mola" STATUS ON TILEINDEX "mola_color.shp" TILEITEM "location" TYPE RASTER METADATA WMS_TITLE "MOLA_Data" END END END # of map file From warmerdam at POBOX.COM Thu Jul 6 08:56:12 2006 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Thu, 6 Jul 2006 11:56:12 -0400 Subject: Raster image issue In-Reply-To: Message-ID: Hooi wrote: > Frank, > > I follow all ur suggestions but seems not working. I access > http://localhost/cgi-bin/mapserv?map=jpg.map&layer=lakespy&mode=map > > My intention is to get map.jpg displayed, but what I get is a purple > rectangular shape. > > Below is output gdalinfo map.jpg. I simplified the map file too. > Hope you able to spot the mistake? > > #gdalinfo map.jpg > Driver: JPEG/JPEG JFIF > Size is 2524, 1738 > Coordinate System is `' > Corner Coordinates: > Upper Left ( 0.0, 0.0) > Lower Left ( 0.0, 1738.0) > Upper Right ( 2524.0, 0.0) > Lower Right ( 2524.0, 1738.0) > Center ( 1262.0, 869.0) ... > EXTENT 388107.634400379 5203120.88405952 500896.339019834 5310243.30613897 Hooi, OK, at this point your basic problem is that MapServer (and GDAL) don't know "where in the world" your map.jpg file is located. The most obvious way of associating a location is with a world file (ie. map.wld). There should be an FAQ on the mapserver web site about world files if you search. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | President OSGF, http://osgeo.org From jvanulde at NRCAN.GC.CA Thu Jul 6 10:02:50 2006 From: jvanulde at NRCAN.GC.CA (Van Ulden, Joost) Date: Thu, 6 Jul 2006 13:02:50 -0400 Subject: WMS Server and SLD In-Reply-To: A<200607060717.k667HwpZ017250@ns1.oieau.fr> Message-ID: Thanks Mathieu, I was looking for the server eqivalent. I was hoping that there would be some way to use an SLD instead of hardcoding a CLASS in my mapfile. If not I will just convert the SLD to mapserver CLASSES in code. Any other ideas? Cheers, Joost -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] Sent: Thursday, July 06, 2006 12:20 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] WMS Server and SLD Hi, By this way you can add a SLD... 'wms_sld_url' 'http://xml.sandre.eaufrance.fr/exist/Geo/sld/my_layer.xml' For instance, in your map file : LAYER NAME 'my_layer' TYPE RASTER CONNECTION 'http://www.irep.ecologie.gouv.fr/geoservice?' CONNECTIONTYPE WMS METADATA 'wms_srs' 'EPSG:27582' 'wms_name' 'my_layer_name' 'wms_server_version' '1.1.1' 'wms_format' 'image/png' 'wms_legend_graphic' '1' 'wms_sld_url' 'http://xml.sandre.eaufrance.fr/exist/Geo/sld/IREP.xml' END END Regards, -----Message d'origine----- De?: UMN MapServer Users List [mailto:MAPSERVER-USERS at lists.umn.edu] De la part de Van Ulden, Joost Envoy??: jeudi 6 juillet 2006 03:02 ??: MAPSERVER-USERS at lists.umn.edu Objet?: [UMN_MAPSERVER-USERS] WMS Server and SLD Hi all, Just wondering if there is a way to add an SLD url to a layer in WMS Server. Thank you in advance, ============================================ Joost van Ulden Programmer/Analyst Natural Resources Canada / Ressources naturelles Canada Geological Survey of Canada / Commission geologique du Canada 101 - 605 Robson Street / 101 - 605 rue Robson Vancouver, B.C. / Vancouver (C.B.) V6B 5J3 Office/Bureau: 604.666.7525 fax/telecopieur: 604.666.1124 jvanulde at nrcan.gc.ca ============================================ -- Ce message a ete verifie par MailScanner pour des virus ou des polluriels et rien de suspect n'a ete trouve. Les donnees et renseignements contenus dans ce message sont personnels, confidentiels et prives. Toute publication, utilisation ou diffusion, meme partielle, doit etre autorisee. Any data and information contained in this electronic mail is personal, confidential and secret. Any total or partial publication, use or distribution must be authorized. -- Ce message a ete verifie par MailScanner pour des virus ou des polluriels et rien de suspect n'a ete trouve. Les donnees et renseignements contenus dans ce message sont personnels, confidentiels et prives. Toute publication, utilisation ou diffusion, meme partielle, doit etre autorisee. Any data and information contained in this electronic mail is personal, confidential and secret. Any total or partial publication, use or distribution must be authorized. From pramsey at REFRACTIONS.NET Thu Jul 6 10:21:45 2006 From: pramsey at REFRACTIONS.NET (Paul Ramsey) Date: Thu, 6 Jul 2006 10:21:45 -0700 Subject: WMS Server and SLD In-Reply-To: Message-ID: There's no server equivalent, but Mapserver will respect WMS requests that also reference a remote SLD, so if you can control your client requests, you can have all the requests reference the remote SLD document. That sounds more confusing than it is, I hope. Paul Van Ulden, Joost wrote: > Thanks Mathieu, > > I was looking for the server eqivalent. I was hoping that there > would be some way to use an SLD instead of hardcoding a CLASS in my > mapfile. If not I will just convert the SLD to mapserver CLASSES in > code. Any other ideas? > > Cheers, > > Joost > > -----Original Message----- From: UMN MapServer Users List > [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] Sent: Thursday, July 06, 2006 > 12:20 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: > [UMN_MAPSERVER-USERS] WMS Server and SLD > > Hi, > > By this way you can add a SLD... 'wms_sld_url' > 'http://xml.sandre.eaufrance.fr/exist/Geo/sld/my_layer.xml' > > For instance, in your map file : > > LAYER NAME 'my_layer' TYPE RASTER > > CONNECTION 'http://www.irep.ecologie.gouv.fr/geoservice?' > CONNECTIONTYPE WMS METADATA 'wms_srs' 'EPSG:27582' > 'wms_name' 'my_layer_name' 'wms_server_version' '1.1.1' > 'wms_format' 'image/png' 'wms_legend_graphic' '1' > 'wms_sld_url' 'http://xml.sandre.eaufrance.fr/exist/Geo/sld/IREP.xml' > END END > > Regards, > > > -----Message d'origine----- De : UMN MapServer Users List > [mailto:MAPSERVER-USERS at lists.umn.edu] De la part de Van Ulden, Joost > Envoy? : jeudi 6 juillet 2006 03:02 ? : MAPSERVER-USERS at lists.umn.edu > Objet : [UMN_MAPSERVER-USERS] WMS Server and SLD > > Hi all, > > Just wondering if there is a way to add an SLD url to a layer in WMS > Server. > > Thank you in advance, > > ============================================ Joost van Ulden > Programmer/Analyst Natural Resources Canada / Ressources naturelles > Canada Geological Survey of Canada / Commission geologique du Canada > 101 - 605 Robson Street / 101 - 605 rue Robson Vancouver, B.C. / > Vancouver (C.B.) V6B 5J3 Office/Bureau: 604.666.7525 fax/telecopieur: > 604.666.1124 jvanulde at nrcan.gc.ca > ============================================ > > -- Ce message a ete verifie par MailScanner pour des virus ou des > polluriels et rien de suspect n'a ete trouve. > > Les donnees et renseignements contenus dans ce message sont > personnels, confidentiels et prives. Toute publication, utilisation > ou diffusion, meme partielle, doit etre autorisee. > > Any data and information contained in this electronic mail is > personal, confidential and secret. Any total or partial publication, > use or distribution must be authorized. > > > -- Ce message a ete verifie par MailScanner pour des virus ou des > polluriels et rien de suspect n'a ete trouve. > > Les donnees et renseignements contenus dans ce message sont > personnels, confidentiels et prives. Toute publication, utilisation > ou diffusion, meme partielle, doit etre autorisee. > > Any data and information contained in this electronic mail is > personal, confidential and secret. Any total or partial publication, > use or distribution must be authorized. From assefa at DMSOLUTIONS.CA Thu Jul 6 10:21:49 2006 From: assefa at DMSOLUTIONS.CA (Yewondwossen Assefa) Date: Thu, 6 Jul 2006 13:21:49 -0400 Subject: WMS Server and SLD In-Reply-To: Message-ID: Joost, There is no current way to use sld instead of classes as a styling mechanism. Coveting between the 2 seems to be the way. There are mapscript functions that can be used to do the conversions. Later, Van Ulden, Joost wrote: > Thanks Mathieu, > > I was looking for the server eqivalent. I was hoping that there would be some way to use an SLD instead of hardcoding a CLASS in my mapfile. If not I will just convert the SLD to mapserver CLASSES in code. Any other ideas? > > Cheers, > > Joost > > -----Original Message----- > From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] > Sent: Thursday, July 06, 2006 12:20 AM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] WMS Server and SLD > > Hi, > > By this way you can add a SLD... > 'wms_sld_url' 'http://xml.sandre.eaufrance.fr/exist/Geo/sld/my_layer.xml' > > For instance, in your map file : > > LAYER > NAME 'my_layer' > TYPE RASTER > > CONNECTION 'http://www.irep.ecologie.gouv.fr/geoservice?' > CONNECTIONTYPE WMS > METADATA > 'wms_srs' 'EPSG:27582' > 'wms_name' 'my_layer_name' > 'wms_server_version' '1.1.1' > 'wms_format' 'image/png' > 'wms_legend_graphic' '1' > 'wms_sld_url' 'http://xml.sandre.eaufrance.fr/exist/Geo/sld/IREP.xml' > END > END > > Regards, > > > -----Message d'origine----- > De : UMN MapServer Users List [mailto:MAPSERVER-USERS at lists.umn.edu] De la part de Van Ulden, Joost Envoy? : jeudi 6 juillet 2006 03:02 ? : MAPSERVER-USERS at lists.umn.edu Objet : [UMN_MAPSERVER-USERS] WMS Server and SLD > > Hi all, > > Just wondering if there is a way to add an SLD url to a layer in WMS Server. > > Thank you in advance, > > ============================================ > Joost van Ulden > Programmer/Analyst > Natural Resources Canada / Ressources naturelles Canada Geological Survey of Canada / Commission geologique du Canada > 101 - 605 Robson Street / 101 - 605 rue Robson Vancouver, B.C. / Vancouver (C.B.) V6B 5J3 > Office/Bureau: 604.666.7525 > fax/telecopieur: 604.666.1124 > jvanulde at nrcan.gc.ca > ============================================ > > -- > Ce message a ete verifie par MailScanner pour des virus ou des polluriels et rien de suspect n'a ete trouve. > > Les donnees et renseignements contenus dans ce message sont personnels, confidentiels et prives. Toute publication, utilisation ou diffusion, meme partielle, doit etre autorisee. > > Any data and information contained in this electronic mail is personal, confidential and secret. Any total or partial publication, use or distribution must be authorized. > > > -- > Ce message a ete verifie par MailScanner pour des virus ou des polluriels et rien de suspect n'a ete trouve. > > Les donnees et renseignements contenus dans ce message sont personnels, confidentiels et prives. Toute publication, utilisation ou diffusion, meme partielle, doit etre autorisee. > > Any data and information contained in this electronic mail is personal, confidential and secret. Any total or partial publication, use or distribution must be authorized. > -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: assefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- From bart_doggers at YAHOO.COM Thu Jul 6 07:22:17 2006 From: bart_doggers at YAHOO.COM (Albert Anderson) Date: Thu, 6 Jul 2006 07:22:17 -0700 Subject: nothing shows up! no image or error? In-Reply-To: <6246727221874A4FB8D3F9BBC37D9BD5FB079E@s-sp22.pca.state.mn.us> Message-ID: Hi, I am still having problem with not seeing anything. Here is my code again for the map file. #This is Richland County Map Server NAME "Richland" SIZE 800 600 IMAGECOLOR 255 255 255 IMAGETYPE JPEG SHAPEPATH "/home/mapdata/" EXTENT -97.134375 46.044375 -96.534375 46.494375 WEB TEMPLATE '/var/www/htdocs/richland.html' IMAGEPATH '/var/www/htdocs/tmp' IMAGEURL '/tmp/' END LAYER NAME "Richland" STATUS default TYPE polygon DATA "RICH_bndy" PROJECTION "init=epsg:26914" END CLASS STYLE COLOR 0 0 0 END END END END Is my code right? Can you help me? Thanks, Albert "Fawcett, David" wrote:Message Albert, Projection in MapServer isn't handled with an external file, like in ArcMap. It is done in the map file. Take a look at the Mapfile documentation to see how to do projection. http://mapserver.gis.umn.edu/docs/reference/mapfile/projection/view You need to define a projection block in the MAP block of the map file, this is set to the projection that you want your data output in. You would then define a projection block in each layer, this is set to the projection that the original data for that layer is in. It is easiest to use epsg codes, look at example 2 in the link above. The epsg code for UTM zone 14N nad83 is 26914 and 4326 can be used for you lat/long data. David. -----Original Message----- From: Albert Anderson [mailto:bart_doggers at yahoo.com] Sent: Wednesday, July 05, 2006 11:58 AM To: Fawcett, David; MAPSERVER-USERS at lists.umn.edu Subject: RE: [UMN_MAPSERVER-USERS] nothing shows up! no image or error? Hi, I was using a projection file UTM Zone 14n Nad_83. Then I switch to an unprojective file and I saw my data show up. What would be the first best step for setting a projection file? Thanks Albert "Fawcett, David" wrote: You may want to take a look at your extent. Do you really intend to show a primarily empty stretch of the northern Atlantic Ocean (apologies to Canary Islanders...)? You are telling MapServer that your map area is contained within a box from 50 deg. west longitude to 10 deg. west longitude and 20 to 90 degrees north latitude. If the name of your mapfile relates to the data, I am guessing that Richland County isn't in this box. Use ogrinfo or a desktop GIS app to look at the extent of your data. Also, the extent needs to be in the units of the spatial reference system that your data is in. David. -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Albert Anderson Sent: Wednesday, July 05, 2006 10:10 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] nothing shows up! no image or error? Hi, I am making my own map file. It looks all right but when I click the button it doesnt show an image or any kind of errors. Here is my map code. #This is Richland County Map Server NAME "Richland" SIZE 100 100 IMAGECOLOR 255 255 255 IMAGETYPE JPEG SHAPEPATH "/home/mapdata/" EXTENT -50.00 20.00 -10.00 90.00 WEB TEMPLATE '/var/www/htdocs/richland.html' IMAGEPATH '/var/www/htdocs/tmp' IMAGEURL '/tmp/' END LAYER NAME "Richland" STATUS default TYPE polygon DATA "RICH_bndy" CLASS STYLE COLOR 0 0 0 END END END END here is my html code Richland County MapServer
I really dont know whats could be wrong. Maybe the extent of it? Can anyone help me? Thanks, Albert --------------------------------- How low will we go? Check out Yahoo! Messenger???s low PC-to-Phone call rates. __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com --------------------------------- Talk is cheap. Use Yahoo! Messenger to make PC-to-Phone calls. Great rates starting at 1?/min. -------------- next part -------------- An HTML attachment was scrubbed... URL: From rjames57 at YAHOO.COM Thu Jul 6 13:12:42 2006 From: rjames57 at YAHOO.COM (Randy James) Date: Thu, 6 Jul 2006 13:12:42 -0700 Subject: nothing shows up! no image or error? In-Reply-To: <20060706142217.56657.qmail@web55704.mail.re3.yahoo.com> Message-ID: Albert You also need an projection defined in the map object, not just the layer object. Randy --- Albert Anderson wrote: > Hi, > I am still having problem with not seeing anything. Here is my > code again for the map file. > #This is Richland County Map Server > NAME "Richland" > SIZE 800 600 > IMAGECOLOR 255 255 255 > IMAGETYPE JPEG > SHAPEPATH "/home/mapdata/" > EXTENT -97.134375 46.044375 -96.534375 46.494375 > WEB > TEMPLATE '/var/www/htdocs/richland.html' > IMAGEPATH '/var/www/htdocs/tmp' > IMAGEURL '/tmp/' > END > LAYER > NAME "Richland" > STATUS default > TYPE polygon > DATA "RICH_bndy" > PROJECTION "init=epsg:26914" > END > CLASS > STYLE > COLOR 0 0 0 > END > END > END > END > > Is my code right? Can you help me? > > Thanks, > Albert > > "Fawcett, David" wrote:Message > Albert, > > Projection in MapServer isn't handled with an external file, like > in ArcMap. It is done in the map file. Take a look at the > Mapfile documentation to see how to do projection. > > > http://mapserver.gis.umn.edu/docs/reference/mapfile/projection/view > > You need to define a projection block in the MAP block of the map > file, this is set to the projection that you want your data output > in. > > You would then define a projection block in each layer, this is > set to the projection that the original data for that layer is in. > It is easiest to use epsg codes, look at example 2 in the link > above. > > The epsg code for UTM zone 14N nad83 is 26914 and 4326 can be > used for you lat/long data. > > David. > > -----Original Message----- > From: Albert Anderson [mailto:bart_doggers at yahoo.com] > Sent: Wednesday, July 05, 2006 11:58 AM > To: Fawcett, David; MAPSERVER-USERS at lists.umn.edu > Subject: RE: [UMN_MAPSERVER-USERS] nothing shows up! no image or > error? > > > Hi, > > I was using a projection file UTM Zone 14n Nad_83. Then I > switch to an unprojective file and I saw my data show up. What > would be the first best step for setting a projection file? > > Thanks > Albert > > "Fawcett, David" wrote: > You may want to take a look at your extent. > > Do you really intend to show a primarily empty stretch of > the northern Atlantic Ocean (apologies to Canary > Islanders...)? > > You are telling MapServer that your map area is contained > within a box from 50 deg. west longitude to 10 deg. west > longitude and 20 to 90 degrees north latitude. If the name of > your mapfile relates to the data, I am guessing that Richland > County isn't in this box. > > Use ogrinfo or a desktop GIS app to look at the extent of your > data. Also, the extent needs to be in the units of the > spatial reference system that your data is in. > > David. > > -----Original Message----- > From: UMN MapServer Users List > [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Albert > Anderson > Sent: Wednesday, July 05, 2006 10:10 AM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: [UMN_MAPSERVER-USERS] nothing shows up! no image or > error? > > > Hi, > > I am making my own map file. It looks all right but when I > click the button it doesnt show an image or any kind of > errors. > > Here is my map code. > #This is Richland County Map Server > NAME "Richland" > SIZE 100 100 > IMAGECOLOR 255 255 255 > IMAGETYPE JPEG > SHAPEPATH "/home/mapdata/" > EXTENT -50.00 20.00 -10.00 90.00 > WEB > TEMPLATE '/var/www/htdocs/richland.html' > IMAGEPATH '/var/www/htdocs/tmp' > IMAGEURL '/tmp/' > END > LAYER > NAME "Richland" > STATUS default > TYPE polygon > DATA "RICH_bndy" > CLASS > STYLE > COLOR 0 0 0 > END > END > END > END > > here is my html code > > Richland County MapServer > >
> value="/home/mapdata/richland.map"> > value="/var/www/htdocs/tmp/"> > >
> > > > >
> >
> > > > I really dont know whats could be wrong. Maybe the extent > of it? Can anyone help me? > > Thanks, > Albert > > > --------------------------------- > How low will we go? Check out Yahoo! Messenger???s low > PC-to-Phone call rates. > __________________________________________________ > Do You Yahoo!? > Tired of spam? Yahoo! Mail has the best spam protection around > http://mail.yahoo.com > > > > --------------------------------- > Talk is cheap. Use Yahoo! Messenger to make PC-to-Phone calls. > Great rates starting at 1?/min. __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com From Jukka.Rahkonen at MMMTIKE.FI Thu Jul 6 14:24:22 2006 From: Jukka.Rahkonen at MMMTIKE.FI (Rahkonen Jukka) Date: Fri, 7 Jul 2006 00:24:22 +0300 Subject: nothing shows up! no image or error? Message-ID: Hi, Obviously your EXTENT and your layer projections do not match. Either use EXTENT values in epsg:26914 (you can check suitable values for your layer with ogrinfo). However, if you want to reproject the data and have output in lat/lon then you must set projection for MAP level as well. EXTENT tells the map area in output projection. Regards, -Jukka- -----Original Message----- From: UMN MapServer Users List on behalf of Albert Anderson Sent: Thu 6.7.2006 17:22 To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] nothing shows up! no image or error? Hi, I am still having problem with not seeing anything. Here is my code again for the map file. #This is Richland County Map Server NAME "Richland" SIZE 800 600 IMAGECOLOR 255 255 255 IMAGETYPE JPEG SHAPEPATH "/home/mapdata/" EXTENT -97.134375 46.044375 -96.534375 46.494375 WEB TEMPLATE '/var/www/htdocs/richland.html' IMAGEPATH '/var/www/htdocs/tmp' IMAGEURL '/tmp/' END LAYER NAME "Richland" STATUS default TYPE polygon DATA "RICH_bndy" PROJECTION "init=epsg:26914" END CLASS STYLE COLOR 0 0 0 END END END END Is my code right? Can you help me? Thanks, Albert "Fawcett, David" wrote:Message Albert, Projection in MapServer isn't handled with an external file, like in ArcMap. It is done in the map file. Take a look at the Mapfile documentation to see how to do projection. http://mapserver.gis.umn.edu/docs/reference/mapfile/projection/view You need to define a projection block in the MAP block of the map file, this is set to the projection that you want your data output in. You would then define a projection block in each layer, this is set to the projection that the original data for that layer is in. It is easiest to use epsg codes, look at example 2 in the link above. The epsg code for UTM zone 14N nad83 is 26914 and 4326 can be used for you lat/long data. David. -----Original Message----- From: Albert Anderson [mailto:bart_doggers at yahoo.com] Sent: Wednesday, July 05, 2006 11:58 AM To: Fawcett, David; MAPSERVER-USERS at lists.umn.edu Subject: RE: [UMN_MAPSERVER-USERS] nothing shows up! no image or error? Hi, I was using a projection file UTM Zone 14n Nad_83. Then I switch to an unprojective file and I saw my data show up. What would be the first best step for setting a projection file? Thanks Albert "Fawcett, David" wrote: You may want to take a look at your extent. Do you really intend to show a primarily empty stretch of the northern Atlantic Ocean (apologies to Canary Islanders...)? You are telling MapServer that your map area is contained within a box from 50 deg. west longitude to 10 deg. west longitude and 20 to 90 degrees north latitude. If the name of your mapfile relates to the data, I am guessing that Richland County isn't in this box. Use ogrinfo or a desktop GIS app to look at the extent of your data. Also, the extent needs to be in the units of the spatial reference system that your data is in. David. -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Albert Anderson Sent: Wednesday, July 05, 2006 10:10 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] nothing shows up! no image or error? Hi, I am making my own map file. It looks all right but when I click the button it doesnt show an image or any kind of errors. Here is my map code. #This is Richland County Map Server NAME "Richland" SIZE 100 100 IMAGECOLOR 255 255 255 IMAGETYPE JPEG SHAPEPATH "/home/mapdata/" EXTENT -50.00 20.00 -10.00 90.00 WEB TEMPLATE '/var/www/htdocs/richland.html' IMAGEPATH '/var/www/htdocs/tmp' IMAGEURL '/tmp/' END LAYER NAME "Richland" STATUS default TYPE polygon DATA "RICH_bndy" CLASS STYLE COLOR 0 0 0 END END END END here is my html code Richland County MapServer
I really dont know whats could be wrong. Maybe the extent of it? Can anyone help me? Thanks, Albert --------------------------------- How low will we go? Check out Yahoo! Messenger??Ts low PC-to-Phone call rates. __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com --------------------------------- Talk is cheap. Use Yahoo! Messenger to make PC-to-Phone calls. Great rates starting at 1?/min. From bart_doggers at YAHOO.COM Thu Jul 6 11:30:38 2006 From: bart_doggers at YAHOO.COM (Albert Anderson) Date: Thu, 6 Jul 2006 11:30:38 -0700 Subject: auto load mapserver information into html document Message-ID: Hi, I am using a book for exmaples for creating map files and html documents. In the book it shows you how to create a html templates and get the information from the mapserver to load in the html document. So basically you have a blank html with a submit button that you click. It then loads the html template with the mapserver information. The question I have is how do you load the mapserver information in the html automacitly without using a template and click a button? It loads the information up when you click on web link to that web page. Would that be something like javascript calling for the map server? Where do I start? Can anyone help me? Thanks, Albert --------------------------------- Do you Yahoo!? Next-gen email? Have it all with the all-new Yahoo! Mail Beta. -------------- next part -------------- An HTML attachment was scrubbed... URL: From Steve.Lime at DNR.STATE.MN.US Thu Jul 6 14:46:16 2006 From: Steve.Lime at DNR.STATE.MN.US (Steve Lime) Date: Thu, 6 Jul 2006 16:46:16 -0500 Subject: Tolerance and toleranceunits not working with CGI request? Message-ID: &tolerance=9999999999999&toleranceunits=kilometers? Those are not parameters the CGI application will do anything with. You should try setting tolerance and toleranceunits at the layer level... Those values in combination with the x, y coordinate are used to create a bbox that is used to select candidate features with. From those features distances are computed and the closest feature returned. Steve >>> Jelmer Baas 7/6/2006 7:09:41 AM >>> Hi all, I finally have some of my distance stuff up and running, but now I'm stuck with getting the nearest point on my map. This works: mapserv.exe?mode=query&map=nearest.map&imgext=-70000+278750+400000+631250&mapxy=185382.700+444989.600&layers=TABAP&qlayer=TABAP&tolerance=999999&toleranceunits=meters But this doesn't mapserv.exe?mode=query&map=nearest.map&imgext=-70000+278750+400000+631250&mapxy=164018.5+451343.9&layers=TABAP&qlayer=TABAP&tolerance=9999999999999&toleranceunits=kilometers This is my map file: MAP name nearest STATUS ON SIZE 640 480 UNITS meters EXTENT -274506.825920 199616.266937 553854.848094 752598.058799 PROJECTION "+proj=sterea +lat_0=52.15616055555555 +lon_0=5.38763888888889 +k=0.999908 +x_0=155000 +y_0=463000 +ellps=bessel +units=m +towgs84=565.2369,50.0087,465.658,-0.406857330322398,0.350732676542563,-1.87 03473836068,4.0812 +no_defs +to +proj=latlong +datum=WGS84" END LAYER NAME TABCAB TYPE LINE STATUS ON CONNECTIONTYPE OGR CONNECTION "data\TABCAB.TAB" STYLEITEM "AUTO" CLASS NAME "Kabel" TEMPLATE "nearest.html" END MINSCALE 1 MAXSCALE 4000000 END LAYER NAME TABAP TYPE POINT STATUS ON CONNECTIONTYPE OGR CONNECTION "data\TABAP.TAB" CLASS TEMPLATE "nearest.html" END END END # Map File This should yield results, shouldn't it? Hopefully anyone can provide me with an answer. With kind regards, Jelmer Baas From warmerdam at POBOX.COM Thu Jul 6 15:03:26 2006 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Thu, 6 Jul 2006 18:03:26 -0400 Subject: auto load mapserver information into html document In-Reply-To: <20060706183038.26963.qmail@web55710.mail.re3.yahoo.com> Message-ID: Albert Anderson wrote: > Hi, > > I am using a book for exmaples for creating map files and html > documents. In the book it shows you how to create a html templates and > get the information from the mapserver to load in the html document. So > basically you have a blank html with a submit button that you click. It > then loads the html template with the mapserver information. > The question I have is how do you load the mapserver information in the > html automacitly without using a template and click a button? It loads > the information up when you click on web link to that web page. > Would that be something like javascript calling for the map server? > Where do I start? Can anyone help me? Albert, I'm not a great web developer, but I think the example "initialize" form is just pushing a bunch of hidden form variables into the url. For instance, when I click on the initialize button for a simple example, I get an url like: http://gdal/cgi-bin/mapserv?map=%2Fu%2Fwww%2Frot_ortho%2Fdemo.map&zoomsize=2 The map, and zoomsize variables are being set from forms variables. You can just do the same thing in a direct link to the mapserv cgi url. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | President OSGF, http://osgeo.org From ltrevinoh at GMAIL.COM Thu Jul 6 15:24:53 2006 From: ltrevinoh at GMAIL.COM (=?ISO-8859-1?Q?Luis_Trevi=F1o?=) Date: Thu, 6 Jul 2006 17:24:53 -0500 Subject: auto load mapserver information into html document In-Reply-To: <44AD88AE.3080902@pobox.com> Message-ID: Albert: You load the mapserver information into your html template, using a set of hidden variables that mapserver CGI uses and returns. (this is a very simple manner to say). you can take a look at the mapserver CGI reference documentation http://mapserver.gis.umn.edu/docs/reference/cgi/referencemanual-all-pages and the Mapserver Tutorial http://hypnos.cbs.umn.edu/tutorial/. if you want to use just mapserver CGI for your application, you'll probably need some javascript code to manage your app. Hope this helps Regards, Luis 2006/7/6, Frank Warmerdam : > > Albert Anderson wrote: > > Hi, > > > > I am using a book for exmaples for creating map files and html > > documents. In the book it shows you how to create a html templates and > > get the information from the mapserver to load in the html document. So > > basically you have a blank html with a submit button that you click. It > > then loads the html template with the mapserver information. > > The question I have is how do you load the mapserver information in the > > html automacitly without using a template and click a button? It loads > > the information up when you click on web link to that web page. > > Would that be something like javascript calling for the map server? > > Where do I start? Can anyone help me? > > Albert, > > I'm not a great web developer, but I think the example "initialize" form > is > just pushing a bunch of hidden form variables into the url. For instance, > when I click on the initialize button for a simple example, I get an url > like: > > > http://gdal/cgi-bin/mapserv?map=%2Fu%2Fwww%2Frot_ortho%2Fdemo.map&zoomsize=2 > > The map, and zoomsize variables are being set from forms variables. You > can just do the same thing in a direct link to the mapserv cgi url. > > Best regards, > -- > > ---------------------------------------+-------------------------------------- > I set the clouds in motion - turn up | Frank Warmerdam, > warmerdam at pobox.com > light and sound - activate the windows | http://pobox.com/~warmerdam > and watch the world go round - Rush | President OSGF, http://osgeo.org > -------------- next part -------------- An HTML attachment was scrubbed... URL: From Jukka.Rahkonen at MMMTIKE.FI Thu Jul 6 15:40:35 2006 From: Jukka.Rahkonen at MMMTIKE.FI (Rahkonen Jukka) Date: Fri, 7 Jul 2006 01:40:35 +0300 Subject: Very slow WMS connection through GIS application Message-ID: Hi, Mapserver is not going through _every_ image included in tileindex, but it does do that for all images falling inside the bounding box of your request. But if you show the whole layer it means the same thing. WMS is not caching anything so for every new request everything is done from the beginning. For sure it is not the most effective way to go through some 70 big image files just for getting a resulting WMS image with a size of 600 by 800 pixel or something. Maybe you could start with some low resolution layer first and throttle the high resolution layers by using MINSCAlE/MAXSCALE? Or do you mean that your layers act slow even when zoomed so close that rendering from just couple of image files is enough? Regards, -Jukka Rahkonen- -----Original Message----- From: UMN MapServer Users List on behalf of Ryan Ollerenshaw Sent: Thu 6.7.2006 18:08 To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Very slow WMS connection through GIS application The connection to my WMS server through a GIS application such as uDig or ArcGIS is painfully slow, Does anyone know what could be causing this? My dataset is rather large about 70 high resolution tiles, it seems like whenever I do a pan or a zoom the GIS application is reloading every tile, is there a way to keep this from happening? Thank you and here is my map file incase it may provide some clues as to what I have done wrong: NAME WMSDEMO STATUS ON SIZE 1000 600 EXTENT 0 -90 360 90 #UNITS METERS SHAPEPATH "../data" IMAGECOLOR 255 255 255 WEB TEMPLATE test_template.html IMAGEPATH "/tmp/ms_tmp/" IMAGEURL "/ms_tmp/" METADATA WMS_TITLE "WMS_Mars_mapserver" WMS_ACCESSCONSTRAINTS "none" #WMS_ONLINERESOURCE "http://neuron/cgi-bin/mapserv?map=display.map&" WMS_SRS "EPSG:4326" #"AUTO:42003" END END PROJECTION "init=epsg:4326" END LAYER NAME "themis" STATUS ON TILEINDEX "thm_dir.shp" TILEITEM "location" TYPE RASTER DUMP TRUE METADATA WMS_TITLE "THEMIS_Data" END END LAYER NAME "moc" STATUS ON TILEINDEX "moc_256.shp" TILEITEM "location" TYPE RASTER METADATA WMS_TITLE "MOC_Data" END END LAYER NAME "mola" STATUS ON TILEINDEX "mola_color.shp" TILEITEM "location" TYPE RASTER METADATA WMS_TITLE "MOLA_Data" END END END # of map file From jmckenna at DMSOLUTIONS.CA Thu Jul 6 16:01:42 2006 From: jmckenna at DMSOLUTIONS.CA (Jeff McKenna) Date: Thu, 6 Jul 2006 19:01:42 -0400 Subject: User Group meeting in Ottawa, Canada Message-ID: Just a quick note to let people know that there will be a meeting of MapServer users in Ottawa, Canada: Date: Thurs July 20th Time: 6pm Location: DM Solutions office Agenda: http://lists.maptools.org/pipermail/mapserver-ottawa/2006-July/000060.html All are welcome! This meeting includes the Ottawa GRASS users group (http://cemml.carleton.ca:8080/OGUG), and discussions will include the possibility of creating a local OSGeo chapter. Cya there! jeff -- Jeff McKenna DM Solutions Group Inc. http://www.dmsolutions.ca From bart_doggers at YAHOO.COM Thu Jul 6 11:23:42 2006 From: bart_doggers at YAHOO.COM (Albert Anderson) Date: Thu, 6 Jul 2006 11:23:42 -0700 Subject: auto load mapserver information into html document Message-ID: Hi, I am using a book for exmaples for creating map files and html documents. In the book it shows you how to create a html templates and get the information from the mapserver to load in the html document. So basically you have a blank html with a submit button that you click. It then loads the html template with the mapserver information. The question I have is how do you load the mapserver information in the html automacitly without using a template and click a button? It loads the information up when you click on web link to that web page. Would that be something like javascript calling for the map server? Where do I start? Can anyone help me? Thanks, Albert __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From sgillies at FRII.COM Thu Jul 6 17:06:04 2006 From: sgillies at FRII.COM (Sean Gillies) Date: Thu, 6 Jul 2006 18:06:04 -0600 Subject: CO Front Range Users of Geospatial Open Source Message-ID: Hi all, I've talked about it in the past with some of you on the list, and now I finally got off my butt to start a Google Group to promote use of our favorite open source software here on the Front Range of Colorado: http://groups.google.com/group/frugos Let's keep technical discussions here on the MapServer list, and use FRUGOS for discussions of regional interest, making contacts, and scheduling the next live, in-person meet-up. Cheers, Sean --- Sean Gillies http://zcologia.com From ruckc at YAHOO.COM Thu Jul 6 20:52:21 2006 From: ruckc at YAHOO.COM (Curtis W. Ruck) Date: Thu, 6 Jul 2006 20:52:21 -0700 Subject: Map->Layer->Class Question Message-ID: Alright I have a set of data that i want to apply two different styles to... In one class i want to set the color and in an overlapping class i want to set the symbol... so i don't have to create Colors*Symbols number of classes. I.e. i want to list classes where expressions can overlap and fill in different parts of a style for a particular point CLASS EXPRESSION ('[color]' eq 'red') STYLE COLOR 255 0 0 END END CLASS EXPRESSION ('[symbol]' eq 'triangle') STYLE SYMBOL "triangle" SIZE 7 WIDTH 1 END END -------------- next part -------------- An HTML attachment was scrubbed... URL: From ruckc at YAHOO.COM Thu Jul 6 21:03:01 2006 From: ruckc at YAHOO.COM (Curtis W. Ruck) Date: Thu, 6 Jul 2006 21:03:01 -0700 Subject: Symbol Type True Type Question Message-ID: Is there a way to draw padding around letters, or any symbol for that matter? -------------- next part -------------- An HTML attachment was scrubbed... URL: From ruckc at YAHOO.COM Thu Jul 6 20:53:24 2006 From: ruckc at YAHOO.COM (Curtis W. Ruck) Date: Thu, 6 Jul 2006 20:53:24 -0700 Subject: Raster Brightness/Contrast Question Message-ID: Can i adjust the brightness/contrast for a raster as its being displayed? -------------- next part -------------- An HTML attachment was scrubbed... URL: From Steve.Lime at DNR.STATE.MN.US Thu Jul 6 22:35:21 2006 From: Steve.Lime at DNR.STATE.MN.US (Steve Lime) Date: Fri, 7 Jul 2006 00:35:21 -0500 Subject: Symbol Type True Type Question Message-ID: For labels yes, you can set the buffer value to n pixels and that will make sure no labels are closer than that value. For symbols, no there is no way to pad them, not sure why you'd want to, although I guess it depends on what you mean by pad. The exception is for annotation layers. In that case any accompanying marker is considered part of the label and is used in any buffer computation. You can stack symbols using styles and can create outlines and such that way. Steve >>> "Curtis W. Ruck" 07/06/06 11:03 PM >>> Is there a way to draw padding around letters, or any symbol for that matter? From Steve.Lime at DNR.STATE.MN.US Thu Jul 6 22:40:33 2006 From: Steve.Lime at DNR.STATE.MN.US (Steve Lime) Date: Fri, 7 Jul 2006 00:40:33 -0500 Subject: Map->Layer->Class Question Message-ID: If I understand you right this isn't possible as things sit now. You have to create all the classes (or use MapScript where I'm sure you could develop a shortcut). Unfortunately binding symbols and colors to attributes are not supported although there is an RFC out that deals with the subject... Steve >>> "Curtis W. Ruck" 07/06/06 10:52 PM >>> Alright I have a set of data that i want to apply two different styles to... In one class i want to set the color and in an overlapping class i want to set the symbol... so i don't have to create Colors*Symbols number of classes. I.e. i want to list classes where expressions can overlap and fill in different parts of a style for a particular point CLASS EXPRESSION ('[color]' eq 'red') STYLE COLOR 255 0 0 END END CLASS EXPRESSION ('[symbol]' eq 'triangle') STYLE SYMBOL "triangle" SIZE 7 WIDTH 1 END END From higon_jos at GVA.ES Thu Jul 6 23:32:28 2006 From: higon_jos at GVA.ES (=?ISO-8859-1?Q?Jos=E9_Vicente_Higon?=) Date: Fri, 7 Jul 2006 08:32:28 +0200 Subject: WMS performance issue Message-ID: Hi, I have detected a strange behaviour in my installation of mapserver, when I add layers in the mapfile the request response time of any layer rises. I am using mapserver 4.8.3 in kubuntu dapper. Any clue? Thanks in advance -- Jos? Vicente Hig?n Grupo de desarrollo de gvSIG Conselleria de Infraestructuras y Transporte Generalitat Valenciana Valencia - Spain http://www.gvsig.gva.es From giuseppe.derossi at EMAIL.IT Fri Jul 7 00:06:17 2006 From: giuseppe.derossi at EMAIL.IT (Giuseppe De Rossi) Date: Fri, 7 Jul 2006 09:06:17 +0200 Subject: compiling MapServer in Win XP Message-ID: Hi to everybody, this is for me the first one, hoper I'm not offtopic. I need a kind help in order to compile mapserver to increase the maximum number of allowed layers. I'm trying to compile it in winxp environment by using VC++6, I've downloaded the libraries and compiled them ( seems ok) but when I try to compile the server I get an error: Can't open the file iconv.h. I've installed cygwin and this file is in c:\cygwin\something. Now I'd like to know: how can I solve the missing of iconv.h, is that the evidence that my compiling process is wrong or my environment is not able to do ? is this file linked to a library ? to manage 800 layers, must I compile the mapserver and change the map.h ? is there another easier way to get it ? Thanks in advance and best regards Giu -- Email.it, the professional e-mail, gratis per te: http://www.email.it/f Sponsor: Scopri RIS il sistema di ricarica infinita. Meglio delle cartucce, meglio degli inchiostri, economico, facile da installare e da utilizzare, solo su refill.it Clicca qui: http://adv.email.it/cgi-bin/foclick.cgi?mid=5191&d=20060707 From fsozzi at INTERCAD.CH Fri Jul 7 00:44:04 2006 From: fsozzi at INTERCAD.CH (Francesco Sozzi) Date: Fri, 7 Jul 2006 09:44:04 +0200 Subject: compiling MapServer in Win XP Message-ID: Hi Giuseppe, Time ago I had the same need and, yes, I had to modify map.h and compile myself. But I've never experimented your problem. I've just looked for iconv.h in my files and I did not find. Here you are my mapserver options (these does not require iconv.h): MapServer version 4.8.1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER INPUT=ORACLESPATIAL INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE DEBUG=MSDEBUG I've also seen you're using VC6. I had many troubles with this compiler in Windows environment (I also use Win XP). I work better with VC7. Regards Francesco PS: do you really need so many layers?... For instance in my case I had a customer that wanted to separately load 600 rasters. Now he loads all rasters in only one layer with tile index tecnique. ----- Original Message ----- From: "Giuseppe De Rossi" To: Sent: Friday, July 07, 2006 9:06 AM Subject: [UMN_MAPSERVER-USERS] compiling MapServer in Win XP > Hi to everybody, > this is for me the first one, hoper I'm not offtopic. > I need a kind help in order to compile mapserver to increase the maximum > number of allowed layers. > I'm trying to compile it in winxp environment by using VC++6, I've > downloaded the libraries and compiled them ( seems ok) but when I try to > compile the server I get an error: Can't open the file iconv.h. > I've installed cygwin and this file is in c:\cygwin\something. > Now I'd like to know: > how can I solve the missing of iconv.h, is that the evidence that my > compiling process is wrong or my environment is not able to do ? > is this file linked to a library ? > > to manage 800 layers, must I compile the mapserver and change the map.h ? > is > there another easier way to get it ? > > > Thanks in advance and best regards > > Giu > > -- > Email.it, the professional e-mail, gratis per te: http://www.email.it/f > > Sponsor: > Scopri RIS il sistema di ricarica infinita. Meglio delle cartucce, meglio > degli inchiostri, economico, facile da installare e da utilizzare, solo su > refill.it > Clicca qui: http://adv.email.it/cgi-bin/foclick.cgi?mid=5191&d=20060707 > From crazygecko at GMAIL.COM Fri Jul 7 01:26:00 2006 From: crazygecko at GMAIL.COM (Xin) Date: Fri, 7 Jul 2006 09:26:00 +0100 Subject: Improving MapServer performance with MapInfo Tab files Message-ID: Hi, Is there a way of tileindexing MapInfo TAB files? Or improve its performance any other way? We are using things like Max/min scale sensibly. We are using MapServer to render MapInfo Tab files, and are very pleased with the speed. It is often as quick as MapXtreme or quicker! Just looking into squeezing as much juice from it as possible. Cheers, Xin -------------- next part -------------- An HTML attachment was scrubbed... URL: From bartvde at XS4ALL.NL Fri Jul 7 01:29:12 2006 From: bartvde at XS4ALL.NL (Bart van den Eijnden (OSGIS)) Date: Fri, 7 Jul 2006 10:29:12 +0200 Subject: Improving MapServer performance with MapInfo Tab files In-Reply-To: Message-ID: No there is no Mapserver-specific way to speed them up AFAIK. The Mapinfo spatial index is already used by Mapserver. Best regards, Bart Xin wrote: > Hi, > > Is there a way of tileindexing MapInfo TAB files? Or improve its > performance any other way? > > We are using things like Max/min scale sensibly. > > We are using MapServer to render MapInfo Tab files, and are very > pleased with the speed. It is often as quick as MapXtreme or > quicker! Just looking into squeezing as much juice from it as possible. > > Cheers, > Xin -- Bart van den Eijnden OSGIS, Open Source GIS http://www.osgis.nl From andrew at ANDREWLARCOMBE.CO.UK Fri Jul 7 03:12:52 2006 From: andrew at ANDREWLARCOMBE.CO.UK (Andrew Larcombe) Date: Fri, 7 Jul 2006 11:12:52 +0100 Subject: Disappearing points when BBOX minx is >= 0 Message-ID: Hi Mapserver-users: A bit of an odd one for you. Mapserver handling WMS requests with two vector layers, one line, one point. Setting the minimum easting on the bounding box to less than zero and both layers display. Setting it to greater than zero and the points disappear! This url displays both layers just fine: http://andrewlarcombe.co.uk/cgi-bin/wms?LAYERS=vmap0&FORMAT=image/png&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&SRS=EPSG:4326&BBOX=-1,-90,179,90&WIDTH=256&HEIGHT=256 Shift the request east 1 degree and the points disappear: http://andrewlarcombe.co.uk/cgi-bin/wms?LAYERS=vmap0&FORMAT=image/png&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&SRS=EPSG:4326&BBOX=0,-90,180,90&WIDTH=256&HEIGHT=256 The layers are sublayers of 'vmap0', and can be accessed individually by substituting quakes (the point layer) or coast (the line layer) for vmap0. Both layers are shapefiles. ogrinfo seems to report fine: ogrinfo -al -spat 0 -90 180 90 latestearthquakes.shp | more INFO: Open of `latestearthquakes.shp' using driver `ESRI Shapefile' successful. Layer name: latestearthquakes Geometry: 3D Point Feature Count: 35 ...etc I'm really not sure what's going on here. Has anyone seen anything similar? If not I'll have a dig around in the source. Thanks, Andrew System info: MapServer version 4.8.3 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER INPUT=EPPL7 INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE gdal-1.3.1 with ogr From kobben at ITC.NL Fri Jul 7 06:46:15 2006 From: kobben at ITC.NL (=?iso-8859-1?Q?Barend_K=F6bben?=) Date: Fri, 7 Jul 2006 15:46:15 +0200 Subject: WMS 1.3.0 in MapServer? In-Reply-To: <44AE58FC.6090800@dmsolutions.ca> Message-ID: Does anybody know if ther are plans for MapServer to be WMS 1.3.0 compatible? When reading the spec I find it difficult to see where ther are changes from 1.1.1 (other than it now being an ISO standrd also), and the OGC site is generally unhelpful, even in finding the answer to that obvious question... -- Barend K?bben International Institute for Geo-information Sciences and Earth Observation (ITC) PO Box 6, 7500AA Enschede (The Netherlands) ph: +31 (0)53 4874253; fax: +31 (0)53 4874335 > -----Original Message----- > From: Yewondwossen Assefa [mailto:assefa at dmsolutions.ca] > Sent: 07 July 2006 14:52 > To: Barend K?bben > Subject: Re: [UMN_MAPSERVER-USERS] WMS Server and SLD > > Hi there, > > From what I understand, Joost wanted to use an SLD instated > of classes > on a wms *server* layer, so when a client access this server, the > rendering of this layer is done using the sld. I don't think It is > possible right now. > > > Barend K?bben wrote: > >> There is no current way to use sld instead of classes as > a styling > >>mechanism. > > > > > > ? are you sure ? > > > > I have Mapserver instances that have no CLASS definitions > in the LAYERs and I call them with a URL that has > &SLD=http://myserver/somesld.xml in the Querystring. Works fine... > > > > > > > > -- > > Barend K?bben > > International Institute for Geo-information > > Sciences and Earth Observation (ITC) > > PO Box 6, 7500AA Enschede (The Netherlands) > > ph: +31 (0)53 4874253; fax: +31 (0)53 4874335 > > > > > > > -- > ---------------------------------------------------------------- > Assefa Yewondwossen > Software Analyst > > Email: assefa at dmsolutions.ca > http://www.dmsolutions.ca/ > > Phone: (613) 565-5056 (ext 14) > Fax: (613) 565-0925 > ---------------------------------------------------------------- > > > From bartvde at XS4ALL.NL Fri Jul 7 06:53:40 2006 From: bartvde at XS4ALL.NL (Bart van den Eijnden (OSGIS)) Date: Fri, 7 Jul 2006 15:53:40 +0200 Subject: WMS 1.3.0 in MapServer? In-Reply-To: <36141C39871E4D4DAE92F79D1838543603A31E78@itcnt14.itc.nl> Message-ID: Hi Barend, I don't know of any such plans (unfortunately). The big caveat is as I understand it that PROJ.4 currently has no way to determine the sequence of axes for a projection, and this is needed for WMS 1.3. In the projection WKT this information is not stored, so an application would need to check the EPSG database e.g. I am sure Frank will be able to comment on this more. Wrt other changes, I can name a few: 1) ScaleHints have been replaced with MinScaleDenominator/MaxScaleDenominator (so scale ratio) 2) LegendURL image sizes are now optional which is a good thing Best regards, Bart Barend K?bben wrote: >Does anybody know if ther are plans for MapServer to be WMS 1.3.0 compatible? >When reading the spec I find it difficult to see where ther are changes from 1.1.1 (other than it now being an ISO standrd also), and the OGC site is generally unhelpful, even in finding the answer to that obvious question... > >-- >Barend K?bben >International Institute for Geo-information >Sciences and Earth Observation (ITC) >PO Box 6, 7500AA Enschede (The Netherlands) >ph: +31 (0)53 4874253; fax: +31 (0)53 4874335 > > > > >>-----Original Message----- >>From: Yewondwossen Assefa [mailto:assefa at dmsolutions.ca] >>Sent: 07 July 2006 14:52 >>To: Barend K?bben >>Subject: Re: [UMN_MAPSERVER-USERS] WMS Server and SLD >> >>Hi there, >> >> From what I understand, Joost wanted to use an SLD instated >>of classes >>on a wms *server* layer, so when a client access this server, the >>rendering of this layer is done using the sld. I don't think It is >>possible right now. >> >> >>Barend K?bben wrote: >> >> >>>> There is no current way to use sld instead of classes as >>>> >>>> >>a styling >> >> >>>>mechanism. >>>> >>>> >>>? are you sure ? >>> >>>I have Mapserver instances that have no CLASS definitions >>> >>> >>in the LAYERs and I call them with a URL that has >>&SLD=http://myserver/somesld.xml in the Querystring. Works fine... >> >> >>> >>>-- >>>Barend K?bben >>>International Institute for Geo-information >>>Sciences and Earth Observation (ITC) >>>PO Box 6, 7500AA Enschede (The Netherlands) >>>ph: +31 (0)53 4874253; fax: +31 (0)53 4874335 >>> >>> >>> >>> >>-- >>---------------------------------------------------------------- >>Assefa Yewondwossen >>Software Analyst >> >>Email: assefa at dmsolutions.ca >>http://www.dmsolutions.ca/ >> >>Phone: (613) 565-5056 (ext 14) >>Fax: (613) 565-0925 >>---------------------------------------------------------------- >> >> >> >> >> > > > > > -- Bart van den Eijnden OSGIS, Open Source GIS http://www.osgis.nl From warmerdam at POBOX.COM Fri Jul 7 07:14:22 2006 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Fri, 7 Jul 2006 10:14:22 -0400 Subject: WMS 1.3.0 in MapServer? In-Reply-To: <44AE6764.2030406@xs4all.nl> Message-ID: Bart van den Eijnden (OSGIS) wrote: > Hi Barend, > > I don't know of any such plans (unfortunately). > > The big caveat is as I understand it that PROJ.4 currently has no way to > determine the sequence of axes for a projection, and this is needed for > WMS 1.3. In the projection WKT this information is not stored, so an > application would need to check the EPSG database e.g. > > I am sure Frank will be able to comment on this more. Bart / Barend, Certainly from my point of view, the substantial change in CRS handling in WMS 1.3.0 is the big bugaboo. Clients are required to pass values for EPSG latlong CRSes with latitude first, instead of the traditional longitude first. But projected CRSes remain easting first. Then there are new families of CRS space with the old ordering. This stuff can be accomplished if someone wants to pay for it, but I'm personally so pissed off at the WMS RWG for this pointless churn that am unlikely to work on it for the joy of supporting standards. I don't know the other subtle issues. If there is a demand for WMS 1.3.0 support (not much outcry so far) then it would be helpful to collect funding to get DM Solutions or MapGears to implement it. Or someone else keen and trusted could do so. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | President OSGF, http://osgeo.org From andrew at ANDREWLARCOMBE.CO.UK Fri Jul 7 07:22:51 2006 From: andrew at ANDREWLARCOMBE.CO.UK (Andrew Larcombe) Date: Fri, 7 Jul 2006 15:22:51 +0100 Subject: WMS 1.3.0 in MapServer? In-Reply-To: <44AE6C3E.1080407@pobox.com> Message-ID: Frank Warmerdam wrote: > if someone wants to pay for it, but I'm personally so pissed off at the WMS > RWG for this pointless churn that am unlikely to work on it for the joy > of supporting standards. I'm with you there. > > I don't know the other subtle issues. > > If there is a demand for WMS 1.3.0 support (not much outcry so far) then > it would be helpful to collect funding to get DM Solutions or MapGears to > implement it. Or someone else keen and trusted could do so. I recently had a client who 'needed' a 1.3.0 WMS server solution. Turns out they didn't actually 'need' any of the new facilities and could settle for 1.1.1. At the time (~2 months ago?), I couldn't actually find *any* servers that were supporting it. My guess is the client just found out what the latest version # was and said "that's what we need to go with". :( Andrew From bartvde at XS4ALL.NL Fri Jul 7 07:32:15 2006 From: bartvde at XS4ALL.NL (Bart van den Eijnden (OSGIS)) Date: Fri, 7 Jul 2006 16:32:15 +0200 Subject: WMS 1.3.0 in MapServer? In-Reply-To: <44AE6E3B.2010607@andrewlarcombe.co.uk> Message-ID: Cubewerx supports it. But that's one of the very few (if not the only one). Here in Europe the INSPIRE project's standards are most likely gonna be based on WMS 1.3, so I am sure the demand for it will be growing eventually. Best regards, Bart Andrew Larcombe wrote: > Frank Warmerdam wrote: > >> if someone wants to pay for it, but I'm personally so pissed off at >> the WMS >> RWG for this pointless churn that am unlikely to work on it for the joy >> of supporting standards. > > > I'm with you there. > >> >> I don't know the other subtle issues. >> >> If there is a demand for WMS 1.3.0 support (not much outcry so far) then >> it would be helpful to collect funding to get DM Solutions or >> MapGears to >> implement it. Or someone else keen and trusted could do so. > > > I recently had a client who 'needed' a 1.3.0 WMS server solution. > Turns out they didn't actually 'need' any of the new facilities and > could settle for 1.1.1. At the time (~2 months ago?), I couldn't > actually find *any* servers that were supporting it. My guess is the > client just found out what the latest version # was and said "that's > what we need to go with". :( > > Andrew > > -- Bart van den Eijnden OSGIS, Open Source GIS http://www.osgis.nl From crazygecko at GMAIL.COM Fri Jul 7 07:43:25 2006 From: crazygecko at GMAIL.COM (Xin) Date: Fri, 7 Jul 2006 15:43:25 +0100 Subject: Improving MapServer performance with MapInfo Tab files In-Reply-To: <44AE1B58.3040903@xs4all.nl> Message-ID: Ah. Thought as much. Thank you for your reply. On 07/07/06, Bart van den Eijnden (OSGIS) wrote: > > No there is no Mapserver-specific way to speed them up AFAIK. The > Mapinfo spatial index is already used by Mapserver. > > Best regards, > Bart > > Xin wrote: > > > Hi, > > > > Is there a way of tileindexing MapInfo TAB files? Or improve its > > performance any other way? > > > > We are using things like Max/min scale sensibly. > > > > We are using MapServer to render MapInfo Tab files, and are very > > pleased with the speed. It is often as quick as MapXtreme or > > quicker! Just looking into squeezing as much juice from it as possible. > > > > Cheers, > > Xin > > > > -- > Bart van den Eijnden > OSGIS, Open Source GIS > http://www.osgis.nl > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From crazygecko at GMAIL.COM Fri Jul 7 07:45:07 2006 From: crazygecko at GMAIL.COM (Xin) Date: Fri, 7 Jul 2006 15:45:07 +0100 Subject: mapserver performance tests/comparison In-Reply-To: <7D1D1DD803D83641A6DEA6F9F428DEE285C9DE@warmsx02.Corp.Acxiom.net> Message-ID: I am also interested to know of any detailed comparisons. I know from first hand that MapServer CGI is probably slightly faster than MapXtreme during normal operation. And it's a lot faster for the first mapping call as MapXtreme takes ages to load. On 06/07/06, Skalski Artur - askals wrote: > > sorrrry, > just forgot a title... for this messge > > Hi all, > > could someone please, give me or direct me to infos about mapserer > performance tests? are there any? > > I need to know some details for my client about mapserver performance > aspecialy in comparison to ArcIMS or MAPEXTREME, unfortunately I don't have > these to use so I can't do it on my own. > > If someone of You made that kind of comparison, and could provide me some > infos like what bandwidth, how many queries at a time, platform, machine, > data size ect. i'd be grateful. > > regards > > Artur > > Artur > > > ************************************************************************* > The information contained in this communication is confidential, is > intended only for the use of the recipient named above, and may be > legally privileged. > > If the reader of this message is not the intended recipient, you are > hereby notified that any dissemination, distribution or copying of this > communication is strictly prohibited. > > If you have received this communication in error, please resend this > communication to the sender and delete the original message or any copy > of it from your computer system. > > Thank you. > ************************************************************************* > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From Tom.Kralidis at EC.GC.CA Fri Jul 7 07:45:29 2006 From: Tom.Kralidis at EC.GC.CA (Kralidis,Tom [Burlington]) Date: Fri, 7 Jul 2006 10:45:29 -0400 Subject: WMS 1.3.0 in MapServer? Message-ID: I thought IONIC supported it as well; I can't see much who implement or comply with WMS 1.3.0 on the OGC pages: http://www.opengeospatial.org/resources/?page=products&view=listbyspec&c onf=0&specid=97 > -----Original Message----- > From: UMN MapServer Users List > [mailto:MAPSERVER-USERS at lists.umn.edu] On Behalf Of Bart van > den Eijnden (OSGIS) > Sent: Friday, July 07, 2006 10:32 AM > To: MAPSERVER-USERS at lists.umn.edu > Subject: Re: [UMN_MAPSERVER-USERS] WMS 1.3.0 in MapServer? > > > Cubewerx supports it. But that's one of the very few (if not > the only one). > > Here in Europe the INSPIRE project's standards are most > likely gonna be > based on WMS 1.3, so I am sure the demand for it will be > growing eventually. > > Best regards, > Bart > > Andrew Larcombe wrote: > > > Frank Warmerdam wrote: > > > >> if someone wants to pay for it, but I'm personally so pissed off at > >> the WMS > >> RWG for this pointless churn that am unlikely to work on > it for the joy > >> of supporting standards. > > > > > > I'm with you there. > > > >> > >> I don't know the other subtle issues. > >> > >> If there is a demand for WMS 1.3.0 support (not much > outcry so far) > >> then it would be helpful to collect funding to get DM Solutions or > >> MapGears to implement it. Or someone else keen and > trusted could do > >> so. > > > > > > I recently had a client who 'needed' a 1.3.0 WMS server solution. > > Turns out they didn't actually 'need' any of the new facilities and > > could settle for 1.1.1. At the time (~2 months ago?), I couldn't > > actually find *any* servers that were supporting it. My > guess is the > > client just found out what the latest version # was and > said "that's > > what we need to go with". :( > > > > Andrew > > > > > > > -- > Bart van den Eijnden > OSGIS, Open Source GIS > http://www.osgis.nl > From bartvde at XS4ALL.NL Fri Jul 7 07:48:12 2006 From: bartvde at XS4ALL.NL (Bart van den Eijnden (OSGIS)) Date: Fri, 7 Jul 2006 16:48:12 +0200 Subject: WMS 1.3.0 in MapServer? In-Reply-To: <2576812186CDD411BF1500508B6DCE950F0092A1@ecnwri1.ontario.int.ec.gc.ca> Message-ID: Hi Tom, Ionic does not support it in the current version (RSW 3.3). Maybe in the upcoming RSW 3.4 release. Best regards, Bart Kralidis,Tom [Burlington] wrote: >I thought IONIC supported it as well; I can't see much who implement or >comply with WMS 1.3.0 on the OGC pages: > >http://www.opengeospatial.org/resources/?page=products&view=listbyspec&c >onf=0&specid=97 > > > > > >>-----Original Message----- >>From: UMN MapServer Users List >>[mailto:MAPSERVER-USERS at lists.umn.edu] On Behalf Of Bart van >>den Eijnden (OSGIS) >>Sent: Friday, July 07, 2006 10:32 AM >>To: MAPSERVER-USERS at lists.umn.edu >>Subject: Re: [UMN_MAPSERVER-USERS] WMS 1.3.0 in MapServer? >> >> >>Cubewerx supports it. But that's one of the very few (if not >>the only one). >> >>Here in Europe the INSPIRE project's standards are most >>likely gonna be >>based on WMS 1.3, so I am sure the demand for it will be >>growing eventually. >> >>Best regards, >>Bart >> >>Andrew Larcombe wrote: >> >> >> >>>Frank Warmerdam wrote: >>> >>> >>> >>>>if someone wants to pay for it, but I'm personally so pissed off at >>>>the WMS >>>>RWG for this pointless churn that am unlikely to work on >>>> >>>> >>it for the joy >> >> >>>>of supporting standards. >>>> >>>> >>>I'm with you there. >>> >>> >>> >>>>I don't know the other subtle issues. >>>> >>>>If there is a demand for WMS 1.3.0 support (not much >>>> >>>> >>outcry so far) >> >> >>>>then it would be helpful to collect funding to get DM Solutions or >>>>MapGears to implement it. Or someone else keen and >>>> >>>> >>trusted could do >> >> >>>>so. >>>> >>>> >>>I recently had a client who 'needed' a 1.3.0 WMS server solution. >>>Turns out they didn't actually 'need' any of the new facilities and >>>could settle for 1.1.1. At the time (~2 months ago?), I couldn't >>>actually find *any* servers that were supporting it. My >>> >>> >>guess is the >> >> >>>client just found out what the latest version # was and >>> >>> >>said "that's >> >> >>>what we need to go with". :( >>> >>>Andrew >>> >>> >>> >>> >>-- >>Bart van den Eijnden >>OSGIS, Open Source GIS >>http://www.osgis.nl >> >> >> > > > > > -- Bart van den Eijnden OSGIS, Open Source GIS http://www.osgis.nl From work at XWB.COM Fri Jul 7 08:13:00 2006 From: work at XWB.COM (Chip Taylor) Date: Fri, 7 Jul 2006 08:13:00 -0700 Subject: Mapserver and Curl (or libcurl) In-Reply-To: <20060704144320.GC22419@crschmidt.net> Message-ID: Can anyone tell me if MapServer 4.8.3 is compiled with libcurl? I need to use it in an SSL environment, with a WFS layer. Curl doesn't do SSL but libcurl does. Thanks for the help. Chip Taylor Prepared Response, Inc From bartvde at XS4ALL.NL Fri Jul 7 08:25:29 2006 From: bartvde at XS4ALL.NL (Bart van den Eijnden (OSGIS)) Date: Fri, 7 Jul 2006 17:25:29 +0200 Subject: Mapserver and Curl (or libcurl) In-Reply-To: <005d01c6a1d7$d653e220$025aa8c0@DevChip> Message-ID: Mapserver uses libcurl. Best regards, Bart Chip Taylor wrote: >Can anyone tell me if MapServer 4.8.3 is compiled with libcurl? I need to >use it in an SSL environment, with a WFS layer. Curl doesn't do SSL but >libcurl does. > > >Thanks for the help. >Chip Taylor >Prepared Response, Inc > > > > -- Bart van den Eijnden OSGIS, Open Source GIS http://www.osgis.nl From warmerdam at POBOX.COM Fri Jul 7 08:37:51 2006 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Fri, 7 Jul 2006 11:37:51 -0400 Subject: Mapserver and Curl (or libcurl) In-Reply-To: <005d01c6a1d7$d653e220$025aa8c0@DevChip> Message-ID: Chip Taylor wrote: > Can anyone tell me if MapServer 4.8.3 is compiled with libcurl? I need to > use it in an SSL environment, with a WFS layer. Curl doesn't do SSL but > libcurl does. Chip, I'm not sure I understand your question, or your point about curl/libcurl with regard to SSL. MapServer uses libcurl to fetch http responses. Curl is a set of commandline tools built on top of libcurl, but MapServer doesn't use Curl, though we might sometimes say that as a short form meaning libcurl. Second, you aren't clear on what MapServer binaries you are asking about. Options (like SSL support) will vary depending on which binaries you are getting. Third, whether curl or libcurl support SSL will depend on the build options used with libcurl as far as I know. When you talk about using SSL, do you mean making https requests? I recently did some experiments with accessing a WFS server from MapServer that required "certificates". I found I had to make some changes to maphttpd.c to get it to use the certificate. I don't think this is necessary for simple password protected https, though I didn't try that. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | President OSGF, http://osgeo.org From kmenke at EDAC.UNM.EDU Fri Jul 7 08:19:01 2006 From: kmenke at EDAC.UNM.EDU (Kurt Menke) Date: Fri, 7 Jul 2006 09:19:01 -0600 Subject: difficulity displaying GRASS rasters Message-ID: Hello, I have a Mapserver client which is trying to access a GRASS raster but I get the following error message: .Unrecognized or unsupported image format drawEPP(): Image handling error. /var/www/cgi-bin/vc/valles/modis/PERMANENT/cellhd/MT3VG_2006_186_1521_250m_N DVI.rc is not an EPPL file. The grass database is on a different server but the database location is set up as a share so that it appears to be a local drive on the server running Mapserver and the client. I've tried putting a shapefile in the same shared drive and Mapserver can read that. Permissions are open on the data. Any ideas on why I may be getting this error would be greatly appreciated. Machine details are below. Mapserver machine: RHEL 3.0 Maperver 4.6.1 compiled against GDAL Layer definition in mapfile ########################### #NDVI ########################### LAYER NAME "NDVI" DATA "/var/www/cgi-bin/vc/valles/modis/PERMANENT/cellhd/MT3VG_2006_186_1521_250m_ NDVI.rc" TYPE raster STATUS off TRANSPARENCY 65 METADATA wms_abstract "NDVI" #wms_abstract (Abstract) wms_keywordlist "NDVI" #wms_keywordlist (KeywordList) wms_opaque "0" #wms_opaque (Layer) wms_title "NDVI" #wms_title (Title) layer_title "NDVI" legend_display "no" queryable "no" queryable_default "no" background "no" static "no" checked "unchecked" raster_selected "no" END # METADATA CLASS TITLE "NDVI" NAME "NDVI" END PROJECTION "proj=laea" "lat_0=45.00" "lon_0=-100" "x_0=0.00" "y_0=0.00" END # PROJECTION END #LAYER GRASS 6.0.1 GDAL 1.2.5 - supported formats output Supported Formats: VRT (rw+): Virtual Raster GTiff (rw+): GeoTIFF NITF (rw+): National Imagery Transmission Format HFA (rw+): Erdas Imagine Images (.img) SAR_CEOS (ro): CEOS SAR Image CEOS (ro): CEOS Image ELAS (rw+): ELAS AIG (ro): Arc/Info Binary Grid AAIGrid (rw): Arc/Info ASCII Grid SDTS (ro): SDTS Raster DTED (rw): DTED Elevation Raster PNG (rw): Portable Network Graphics JPEG (rw): JPEG JFIF MEM (rw+): In Memory Raster JDEM (ro): Japanese DEM (.mem) GIF (rw): Graphics Interchange Format (.gif) ESAT (ro): Envisat Image Format BSB (ro): Maptech BSB Nautical Charts XPM (rw): X11 PixMap Format BMP (rw+): MS Windows Device Independent Bitmap AirSAR (ro): AirSAR Polarimetric Image RS2 (ro): RadarSat 2 XML Product PCIDSK (rw+): PCIDSK Database File HDF4 (ro): Hierarchical Data Format Release 4 HDF4Image (rw+): HDF4 Dataset PNM (rw+): Portable Pixmap Format (netpbm) DOQ1 (ro): USGS DOQ (Old Style) DOQ2 (ro): USGS DOQ (New Style) ENVI (rw+): ENVI .hdr Labelled EHdr (rw+): ESRI .hdr Labelled PAux (rw+): PCI .aux Labelled MFF (rw+): Atlantis MFF Raster MFF2 (rw+): Atlantis MFF2 (HKV) Raster FujiBAS (ro): Fuji BAS Scanner Image GSC (ro): GSC Geogrid FAST (ro): EOSAT FAST Format BT (rw+): VTP .bt (Binary Terrain) 1.3 Format LAN (ro): Erdas .LAN/.GIS CPG (ro): Convair PolGASP L1B (ro): NOAA Polar Orbiter Level 1b Data Set FIT (rw): FIT Image USGSDEM (rw): USGS Optional ASCII DEM (and CDED) GXF (ro): GeoSoft Grid Exchange Format GRASS (ro): GRASS Database Rasters GRASS machine: RHEL 3.0 GRASS 6.0.1 GDAL-Grass 1.3.1 GDAL 1.3.1 - supported formats output: Supported Formats: GRASS (ro): GRASS Database Rasters (5.7+) VRT (rw+): Virtual Raster GTiff (rw+): GeoTIFF NITF (rw+): National Imagery Transmission Format HFA (rw+): Erdas Imagine Images (.img) SAR_CEOS (ro): CEOS SAR Image CEOS (ro): CEOS Image ELAS (rw+): ELAS AIG (ro): Arc/Info Binary Grid AAIGrid (rw): Arc/Info ASCII Grid SDTS (ro): SDTS Raster DTED (rw): DTED Elevation Raster PNG (rw): Portable Network Graphics JPEG (rw): JPEG JFIF MEM (rw+): In Memory Raster JDEM (ro): Japanese DEM (.mem) GIF (rw): Graphics Interchange Format (.gif) ESAT (ro): Envisat Image Format BSB (ro): Maptech BSB Nautical Charts XPM (rw): X11 PixMap Format BMP (rw+): MS Windows Device Independent Bitmap AirSAR (ro): AirSAR Polarimetric Image RS2 (ro): RadarSat 2 XML Product PCIDSK (rw+): PCIDSK Database File PCRaster (rw): PCRaster Raster File ILWIS (rw+): ILWIS Raster Map RIK (ro): Swedish Grid RIK (.rik) HDF4 (ro): Hierarchical Data Format Release 4 HDF4Image (rw+): HDF4 Dataset PNM (rw+): Portable Pixmap Format (netpbm) DOQ1 (ro): USGS DOQ (Old Style) DOQ2 (ro): USGS DOQ (New Style) ENVI (rw+): ENVI .hdr Labelled EHdr (rw+): ESRI .hdr Labelled PAux (rw+): PCI .aux Labelled MFF (rw+): Atlantis MFF Raster MFF2 (rw+): Atlantis MFF2 (HKV) Raster FujiBAS (ro): Fuji BAS Scanner Image GSC (ro): GSC Geogrid FAST (ro): EOSAT FAST Format BT (rw+): VTP .bt (Binary Terrain) 1.3 Format LAN (ro): Erdas .LAN/.GIS CPG (ro): Convair PolGASP IDA (rw+): Image Data and Analysis NDF (ro): NLAPS Data Format ECW (rw): ERMapper Compressed Wavelets JP2ECW (rw+): ERMapper JPEG2000 L1B (ro): NOAA Polar Orbiter Level 1b Data Set FIT (rw): FIT Image RMF (rw+): Raster Matrix Format USGSDEM (rw): USGS Optional ASCII DEM (and CDED) GXF (ro): GeoSoft Grid Exchange Format Kurt ************************************* Kurt A. Menke, GISP GIS Analyst/Programmer Earth Data Analysis Center MSC01 1110 1 University of New Mexico Albuquerque, NM 87131-0001 Ph: 505-277-3622 x239 Fax: 505-277-3614 -------------- next part -------------- An HTML attachment was scrubbed... URL: From jamesdracup at HOTMAIL.COM Fri Jul 7 09:58:12 2006 From: jamesdracup at HOTMAIL.COM (James Dracup) Date: Fri, 7 Jul 2006 17:58:12 +0100 Subject: Problem drawing image with java/mapscript when starting with a blank mapObj Message-ID: Hello, I am using java/mapscript embedded inside a java program and am having a few problems. I wonder if anybody has any suggestions, or if it is something obvious I have missed? I create a new mapObj in java, but NOT from a .map file, a blank one: mapObj mapobj = new mapObj(null); There is then a fairly long and complicated chunk of code to populate that mapObj from a db and user input with settings and layers etc. etc. I finally do: byte[] bytes = mapobj.draw().getBytes(); Intending to then further process in java the image returned. However, I always get a blank (just background colour) image. Initially I thought I?d missed something out when setting the parameters for the various mapscript objects, but, having looked at that for a while, I now do not think that is the problem. If I do a mapobj.save("MapFileName.map") - the .map file outputted is perfect, and works fine (displays a map) in all contexts (cgi-bin, java mapscript). I can load that .map file into a new mapObj, and the image produced is fine: mapObj newmapobj = new mapObj("MapFileName.map"); byte[] bytes = newmapobj.draw().getBytes(); If I then do a newmapobj.save("MapFileToCompare.map") - the .map file outputted is absolutely and completely identical (did a diff) to the original one outputted. So I am really confused - it seems to me the mapObj?s are identical - so why do I need to go via the file system in order to produce an image? What changes, and how can I avoid it? Any thoughts, Thanks, James From fluyoz at HOTMAIL.COM Fri Jul 7 10:47:08 2006 From: fluyoz at HOTMAIL.COM (Fernando Luyo) Date: Fri, 7 Jul 2006 12:47:08 -0500 Subject: Error WFS (mapserver) y Mapinfo 8.0 Message-ID: HI When from Mapinfo 8, I want to open a service WFS (using to mapserver) leaves the following error: --------------------------- MapInfo --------------------------- The WFS Server returned data which was neither in the requested format nor a recognized WFS service exception: POST body is short In response to a DescribeFeatureType request, the WFS Server returned an invalid feature type. --------------------------- Aceptar --------------------------- mapfile that uses the service wfs (using to mapserver) is: ********************************************************************* MAP NAME WFS_server_Sbn STATUS ON SIZE 600 420 SYMBOLSET "symbols/symbol.sym" #../etc/symbols.sym EXTENT -293181.4714 7921617.1938 1319223.322 10052167.8914 UNITS METERS IMAGECOLOR 160 200 255 FONTSET "fonts/fonts.list" #../etc/fonts.txt CONFIG "PROJ_LIB" "C:/MapServer/proj/nad/" WEB IMAGEPATH "/tmp/" #"/ms4w/tmp/ms_tmp/" IMAGEURL "http://192.168.1.199/wfs_sbn/tmp/" METADATA "wfs_title" "MapSBN WFS Servidor de Mapas SINABIP" ## REQUIRED "wfs_Abstract" "Servidor WFS de la SBN - Prueba desarrollada por Fernando Luyo - Jul 2006" #"wfs_onlineresource" "http://192.168.1.199/cgi-bin/Ms4w/mapserv.exe?map=C:\Archivos de programa\Apache Group\Apache2\htdocs\WFS_SBN\WFS_sbn_01.map&mode=map" "wfs_onlineresource" "http://192.168.1.199/cgi-bin/Ms4w/mapserv.exe?" "wfs_srs" "EPSG:24878 EPSG:4269 EPSG:4326" ## Recommended #"ows_schemas_location" "http://ogc.dmsolutions.ca" ## Optional END END PROJECTION "init=epsg:24878" END LAYER NAME "Departamento" METADATA "wfs_title" "Limites Departamentales del Per?" "gml_include_items" "all" ## Optional (serves all attributes for layer) END TYPE POLYGON STATUS ON DATA "geo_poligono from (select oid,col_localidad,dsc_localidad,geo_poligono from r_localidad where ent_tipo_localidad='1') as foo " #departamentos CONNECTION "user=postgres password=password dbname=MapasOracle host=oracle port=5432" CONNECTIONTYPE postgis DUMP TRUE ## REQUIRED CLASS NAME "Peru" STYLE COLOR 200 255 0 OUTLINECOLOR 120 120 120 END #TEMPLATE "Prueba_Template.html" END END # Layer END # Map File ********************************************************************* The data this stored in PostGIS Some recommendation? greetings Fernando Luyo -------------- next part -------------- An HTML attachment was scrubbed... URL: From Cser at METRO.DST.OR.US Fri Jul 7 11:14:42 2006 From: Cser at METRO.DST.OR.US (Jim Cser) Date: Fri, 7 Jul 2006 11:14:42 -0700 Subject: CGI vs. WMS Message-ID: What are the pro and cons of using WMS over CGI MapServer? Does anyone here have any direct experience with both? We have a Cold Fusion web application that displays a few maps, with only simple pan/zoom functionality needed * it's not a "GIS-like" site. Our previous MapServer apps have used CGI MapServer, but for this app we decided to experiment with implementing a WMS service. We're a CF shop, otherwise we might try PHP or Java mapscript. Our map layers are coming from PostGreSQL/ PostGIS, for what it's worth. The WMS was nice because of the detailed diagnostics returned on errors, and for the fact that we aren't filling up a directory with image files. On the other hand, the lack of ability to dynamically control the symbology is becoming a show-stopper, and with CGI we can at least throw it a URL containing terms like "map_layername_class_expression=('[PROJECT_ID]'='89' ". Similarly, will switching to a WFS service, or calling a WFS layer in the WMS map file have any advantages? I was looking into filter encoding, but was getting lost by the distinction between returning features and returning an image. At this point in our development cycle, it would be preferable to "drop in" some functionality, rather than re-write a lot of code, but as I said above, dynamic symbology is the driver. Thanks, Jim Cser From David.Fawcett at STATE.MN.US Fri Jul 7 11:42:10 2006 From: David.Fawcett at STATE.MN.US (Fawcett, David) Date: Fri, 7 Jul 2006 13:42:10 -0500 Subject: CGI vs. WMS In-Reply-To: A Message-ID: Jim, For adding simple mapping to CF apps, I have used CF to dynamically build a URL request that I then call with . I use mode=map, so the images don't go to the tmp directory. I am guessing that going to a WFS layer for your data source may slow down your app. David. -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Jim Cser Sent: Friday, July 07, 2006 1:15 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] CGI vs. WMS What are the pro and cons of using WMS over CGI MapServer? Does anyone here have any direct experience with both? We have a Cold Fusion web application that displays a few maps, with only simple pan/zoom functionality needed * it's not a "GIS-like" site. Our previous MapServer apps have used CGI MapServer, but for this app we decided to experiment with implementing a WMS service. We're a CF shop, otherwise we might try PHP or Java mapscript. Our map layers are coming from PostGreSQL/ PostGIS, for what it's worth. The WMS was nice because of the detailed diagnostics returned on errors, and for the fact that we aren't filling up a directory with image files. On the other hand, the lack of ability to dynamically control the symbology is becoming a show-stopper, and with CGI we can at least throw it a URL containing terms like "map_layername_class_expression=('[PROJECT_ID]'='89' ". Similarly, will switching to a WFS service, or calling a WFS layer in the WMS map file have any advantages? I was looking into filter encoding, but was getting lost by the distinction between returning features and returning an image. At this point in our development cycle, it would be preferable to "drop in" some functionality, rather than re-write a lot of code, but as I said above, dynamic symbology is the driver. Thanks, Jim Cser From Tom.Kralidis at EC.GC.CA Fri Jul 7 11:53:02 2006 From: Tom.Kralidis at EC.GC.CA (Kralidis,Tom [Burlington]) Date: Fri, 7 Jul 2006 14:53:02 -0400 Subject: CGI vs. WMS Message-ID: Depends on your needs. I love using CGI because it takes away the complexity of navigation in your application, as far as the user interface. As far as the data it's connecting to, I prefer OGC:WMS. Considering a three-tier application model (data/services/app(s)), you can stand up an OGC:WMS which *any* application can interact with (interoperability). For symbology, MapServer supports OGC:SLD 1.0.0, which can do the custom styling you require. OGC:WFS is valuable for access to the actual data. If all you're looking for is map images, with some custom querying/filtering added, I think OGC:WMS with some OGC:SLD (which has filtering capabilities) should help. See the OGC howtos for more info. ..Tom -----Original Message----- From: UMN MapServer Users List on behalf of Jim Cser Sent: Fri 07-Jul-06 14:14 To: MAPSERVER-USERS at LISTS.UMN.EDU Cc: Subject: [UMN_MAPSERVER-USERS] CGI vs. WMS What are the pro and cons of using WMS over CGI MapServer? Does anyone here have any direct experience with both? We have a Cold Fusion web application that displays a few maps, with only simple pan/zoom functionality needed * it's not a "GIS-like" site. Our previous MapServer apps have used CGI MapServer, but for this app we decided to experiment with implementing a WMS service. We're a CF shop, otherwise we might try PHP or Java mapscript. Our map layers are coming from PostGreSQL/ PostGIS, for what it's worth. The WMS was nice because of the detailed diagnostics returned on errors, and for the fact that we aren't filling up a directory with image files. On the other hand, the lack of ability to dynamically control the symbology is becoming a show-stopper, and with CGI we can at least throw it a URL containing terms like "map_layername_class_expression=('[PROJECT_ID]'='89' ". Similarly, will switching to a WFS service, or calling a WFS layer in the WMS map file have any advantages? I was looking into filter encoding, but was getting lost by the distinction between returning features and returning an image. At this point in our development cycle, it would be preferable to "drop in" some functionality, rather than re-write a lot of code, but as I said above, dynamic symbology is the driver. Thanks, Jim Cser From pramsey at REFRACTIONS.NET Fri Jul 7 12:33:57 2006 From: pramsey at REFRACTIONS.NET (Paul Ramsey) Date: Fri, 7 Jul 2006 12:33:57 -0700 Subject: CGI vs. WMS In-Reply-To: <6246727221874A4FB8D3F9BBC37D9BD5FB07A7@s-sp22.pca.state.mn.us> Message-ID: Jim, David's advice is right on the money... build up a mode=map URL in your scripting environment (CF, PHP, whatever) and then fire that off to the mapserver backend. Using WMS mode is actually more restrictive than just using the Mapserver CGI variable controls with which you can actually do many/most of the things people lean on mapscript for. (Things like dynamically changing aspects of styling or filtering or even the PostGIS DATA statements (feel the power!)). We've used mode=map + cgi variable controls to build some pretty complicated sites (dynamically do thematic mapping of US census data, for example, changing variables, color themes, categorization, etc on the fly) without using mapscript. Paul Fawcett, David wrote: > Jim, > > For adding simple mapping to CF apps, I have used CF to dynamically > build a URL request that I then call with . I use > mode=map, so the images don't go to the tmp directory. > > I am guessing that going to a WFS layer for your data source may slow > down your app. > > David. > > -----Original Message----- > From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On > Behalf Of Jim Cser > Sent: Friday, July 07, 2006 1:15 PM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: [UMN_MAPSERVER-USERS] CGI vs. WMS > > > What are the pro and cons of using WMS over CGI MapServer? Does anyone > here have any direct experience with both? > > We have a Cold Fusion web application that displays a few maps, with > only simple pan/zoom functionality needed * it's not a "GIS-like" site. > Our previous MapServer apps have used CGI MapServer, but for this app we > decided to experiment with implementing a WMS service. We're a CF shop, > otherwise we might try PHP or Java mapscript. Our map layers are coming > from PostGreSQL/ PostGIS, for what it's worth. > > The WMS was nice because of the detailed diagnostics returned on errors, > and for the fact that we aren't filling up a directory with > image files. On the other hand, the lack of ability to dynamically > control the symbology is becoming a show-stopper, and with CGI we can at > least throw it a URL containing terms like > "map_layername_class_expression=('[PROJECT_ID]'='89' ". > > Similarly, will switching to a WFS service, or calling a WFS layer in > the WMS map file have any advantages? I was looking into filter > encoding, but was getting lost by the distinction between returning > features and returning an image. > > At this point in our development cycle, it would be preferable to "drop > in" some functionality, rather than re-write a lot of code, but as I > said above, dynamic symbology is the driver. > > Thanks, > Jim Cser From Cser at METRO.DST.OR.US Fri Jul 7 12:58:58 2006 From: Cser at METRO.DST.OR.US (Jim Cser) Date: Fri, 7 Jul 2006 12:58:58 -0700 Subject: CGI vs. WMS Message-ID: All the comments were helpful, thanks. I was not familiar with the "mode=map" option in a URL, since all the books I read only gave examples of posting the CGI variables through a form. For our current WMS, we are already using CF to create all our URLs on the fly, so it should be a small step to translate from back to the CGI versions. It's easy to get caught up in all the hype about Web Services, so it's good to be reminded that there are other ways of doing things. -Jim >>> Paul Ramsey 07/07/06 12:33 PM >>> Jim, David's advice is right on the money... build up a mode=map URL in your scripting environment (CF, PHP, whatever) and then fire that off to the mapserver backend. Using WMS mode is actually more restrictive than just using the Mapserver CGI variable controls with which you can actually do many/most of the things people lean on mapscript for. (Things like dynamically changing aspects of styling or filtering or even the PostGIS DATA statements (feel the power!)). We've used mode=map + cgi variable controls to build some pretty complicated sites (dynamically do thematic mapping of US census data, for example, changing variables, color themes, categorization, etc on the fly) without using mapscript. Paul Fawcett, David wrote: > Jim, > > For adding simple mapping to CF apps, I have used CF to dynamically > build a URL request that I then call with . I use > mode=map, so the images don't go to the tmp directory. > > I am guessing that going to a WFS layer for your data source may slow > down your app. > > David. > > -----Original Message----- > From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On > Behalf Of Jim Cser > Sent: Friday, July 07, 2006 1:15 PM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: [UMN_MAPSERVER-USERS] CGI vs. WMS > > > What are the pro and cons of using WMS over CGI MapServer? Does anyone > here have any direct experience with both? > > We have a Cold Fusion web application that displays a few maps, with > only simple pan/zoom functionality needed * it's not a "GIS-like" site. > Our previous MapServer apps have used CGI MapServer, but for this app we > decided to experiment with implementing a WMS service. We're a CF shop, > otherwise we might try PHP or Java mapscript. Our map layers are coming > from PostGreSQL/ PostGIS, for what it's worth. > > The WMS was nice because of the detailed diagnostics returned on errors, > and for the fact that we aren't filling up a directory with > image files. On the other hand, the lack of ability to dynamically > control the symbology is becoming a show-stopper, and with CGI we can at > least throw it a URL containing terms like > "map_layername_class_expression=('[PROJECT_ID]'='89' ". > > Similarly, will switching to a WFS service, or calling a WFS layer in > the WMS map file have any advantages? I was looking into filter > encoding, but was getting lost by the distinction between returning > features and returning an image. > > At this point in our development cycle, it would be preferable to "drop > in" some functionality, rather than re-write a lot of code, but as I > said above, dynamic symbology is the driver. > > Thanks, > Jim Cser From punkish at EIDESIS.ORG Fri Jul 7 13:06:52 2006 From: punkish at EIDESIS.ORG (P Kishor) Date: Fri, 7 Jul 2006 15:06:52 -0500 Subject: CGI vs. WMS In-Reply-To: Message-ID: On 7/7/06, Jim Cser wrote: > All the comments were helpful, thanks. I was not familiar with the > "mode=map" option in a URL, since all the books I read only gave > examples of posting the CGI variables through a form. For our current there really is no difference other than using a GET method instead of POST. "mode=map" is just another key=value pair that your CF server will happily pick up. > WMS, we are already using CF to create all our URLs on the fly, so it > should be a small step to translate from back to the CGI versions. Just follow David's advice -- construct your URL (not much different from how you do via a form, but be sure to escape any funky characters with the help of URLEncodedFormat(string) ), and then send a request with the correct CFHTTPPARAMs, and then pick up the response from #cfhttp.*# In other words, your CF server becomes the "user" of mapserver, sending it CGI requests, getting the maps back, and serving them up. > > > >>> Paul Ramsey 07/07/06 12:33 PM >>> > Jim, > > David's advice is right on the money... build up a mode=map URL in your > > scripting environment (CF, PHP, whatever) and then fire that off to the > > mapserver backend. Using WMS mode is actually more restrictive than > just using the Mapserver CGI variable controls > with which > you can actually do many/most of the things people lean on mapscript > for. (Things like dynamically changing aspects of styling or filtering > > or even the PostGIS DATA statements (feel the power!)). > > We've used mode=map + cgi variable controls to build some pretty > complicated sites (dynamically do thematic mapping of US census data, > for example, changing variables, color themes, categorization, etc on > the fly) without using mapscript. > > Paul > > Fawcett, David wrote: > > Jim, > > > > For adding simple mapping to CF apps, I have used CF to dynamically > > build a URL request that I then call with . I use > > mode=map, so the images don't go to the tmp directory. > > > > I am guessing that going to a WFS layer for your data source may > slow > > down your app. > > > > David. > > > > -----Original Message----- > > From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] > On > > Behalf Of Jim Cser > > Sent: Friday, July 07, 2006 1:15 PM > > To: MAPSERVER-USERS at LISTS.UMN.EDU > > Subject: [UMN_MAPSERVER-USERS] CGI vs. WMS > > > > > > What are the pro and cons of using WMS over CGI MapServer? Does > anyone > > here have any direct experience with both? > > > > We have a Cold Fusion web application that displays a few maps, with > > only simple pan/zoom functionality needed * it's not a "GIS-like" > site. > > Our previous MapServer apps have used CGI MapServer, but for this app > we > > decided to experiment with implementing a WMS service. We're a CF > shop, > > otherwise we might try PHP or Java mapscript. Our map layers are > coming > > from PostGreSQL/ PostGIS, for what it's worth. > > > > The WMS was nice because of the detailed diagnostics returned on > errors, > > and for the fact that we aren't filling up a directory with > > image files. On the other hand, the lack of ability to dynamically > > control the symbology is becoming a show-stopper, and with CGI we can > at > > least throw it a URL containing terms like > > "map_layername_class_expression=('[PROJECT_ID]'='89' ". > > > > Similarly, will switching to a WFS service, or calling a WFS layer > in > > the WMS map file have any advantages? I was looking into filter > > encoding, but was getting lost by the distinction between returning > > features and returning an image. > > > > At this point in our development cycle, it would be preferable to > "drop > > in" some functionality, rather than re-write a lot of code, but as I > > said above, dynamic symbology is the driver. > > > > Thanks, > > Jim Cser > -- Puneet Kishor http://punkish.eidesis.org/ Nelson Inst. for Env. Studies, UW-Madison http://www.ies.wisc.edu/ Open Source Geospatial Foundation https://edu.osgeo.org/ From David.Fawcett at STATE.MN.US Fri Jul 7 13:23:46 2006 From: David.Fawcett at STATE.MN.US (Fawcett, David) Date: Fri, 7 Jul 2006 15:23:46 -0500 Subject: CGI vs. WMS In-Reply-To: A Message-ID: Puneet, You are correct . David. -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of P Kishor Sent: Friday, July 07, 2006 3:07 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] CGI vs. WMS On 7/7/06, Jim Cser wrote: > All the comments were helpful, thanks. I was not familiar with the > "mode=map" option in a URL, since all the books I read only gave > examples of posting the CGI variables through a form. For our current there really is no difference other than using a GET method instead of POST. "mode=map" is just another key=value pair that your CF server will happily pick up. > WMS, we are already using CF to create all our URLs on the fly, so it > should be a small step to translate from back to the CGI versions. Just follow David's advice -- construct your URL (not much different from how you do via a form, but be sure to escape any funky characters with the help of URLEncodedFormat(string) ), and then send a request with the correct CFHTTPPARAMs, and then pick up the response from #cfhttp.*# In other words, your CF server becomes the "user" of mapserver, sending it CGI requests, getting the maps back, and serving them up. > > > >>> Paul Ramsey 07/07/06 12:33 PM >>> > Jim, > > David's advice is right on the money... build up a mode=map URL in > your > > scripting environment (CF, PHP, whatever) and then fire that off to > the > > mapserver backend. Using WMS mode is actually more restrictive than > just using the Mapserver CGI variable controls > with which > you can actually do many/most of the things people lean on mapscript > for. (Things like dynamically changing aspects of styling or filtering > > or even the PostGIS DATA statements (feel the power!)). > > We've used mode=map + cgi variable controls to build some pretty > complicated sites (dynamically do thematic mapping of US census data, > for example, changing variables, color themes, categorization, etc on > the fly) without using mapscript. > > Paul > > Fawcett, David wrote: > > Jim, > > > > For adding simple mapping to CF apps, I have used CF to dynamically > > build a URL request that I then call with . I use > > mode=map, so the images don't go to the tmp directory. > > > > I am guessing that going to a WFS layer for your data source may > slow > > down your app. > > > > David. > > > > -----Original Message----- > > From: UMN MapServer Users List > > [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] > On > > Behalf Of Jim Cser > > Sent: Friday, July 07, 2006 1:15 PM > > To: MAPSERVER-USERS at LISTS.UMN.EDU > > Subject: [UMN_MAPSERVER-USERS] CGI vs. WMS > > > > > > What are the pro and cons of using WMS over CGI MapServer? Does > anyone > > here have any direct experience with both? > > > > We have a Cold Fusion web application that displays a few maps, with > > only simple pan/zoom functionality needed * it's not a "GIS-like" > site. > > Our previous MapServer apps have used CGI MapServer, but for this > > app > we > > decided to experiment with implementing a WMS service. We're a CF > shop, > > otherwise we might try PHP or Java mapscript. Our map layers are > coming > > from PostGreSQL/ PostGIS, for what it's worth. > > > > The WMS was nice because of the detailed diagnostics returned on > errors, > > and for the fact that we aren't filling up a directory with > > image files. On the other hand, the lack of ability to dynamically > > control the symbology is becoming a show-stopper, and with CGI we > > can > at > > least throw it a URL containing terms like > > "map_layername_class_expression=('[PROJECT_ID]'='89' ". > > > > Similarly, will switching to a WFS service, or calling a WFS layer > in > > the WMS map file have any advantages? I was looking into filter > > encoding, but was getting lost by the distinction between returning > > features and returning an image. > > > > At this point in our development cycle, it would be preferable to > "drop > > in" some functionality, rather than re-write a lot of code, but as I > > said above, dynamic symbology is the driver. > > > > Thanks, > > Jim Cser > -- Puneet Kishor http://punkish.eidesis.org/ Nelson Inst. for Env. Studies, UW-Madison http://www.ies.wisc.edu/ Open Source Geospatial Foundation https://edu.osgeo.org/ From pcifuentes at SIIGSA.CL Fri Jul 7 13:34:04 2006 From: pcifuentes at SIIGSA.CL (Patricio Cifuentes Ithal) Date: Fri, 7 Jul 2006 16:34:04 -0400 Subject: Resolution image Message-ID: Hi all, i need image from php_mapscript generate in jpg with 24 bit as I form ouputformat in php_mapscript to have the out image jpg 24 bits? -- Patricio Cifuentes Ithal Ingeniero en Inform?tica Desarrollo Tecnol?gico SIIGSA (56-2) 204 60 22 -------------- next part -------------- An HTML attachment was scrubbed... URL: From rama_swamy80 at YAHOO.COM Fri Jul 7 13:43:54 2006 From: rama_swamy80 at YAHOO.COM (rama swamy) Date: Fri, 7 Jul 2006 13:43:54 -0700 Subject: New to mapserver, need some help Message-ID: Hi all, i am new to mapserver and i need some help in the documentation. I browsed the UMN website and found that mapserver-4.8.3 is the lastest version, can anyone tell me the installation steps for this verison of mapserver. regards, Swamy --------------------------------- Do you Yahoo!? Get on board. You're invited to try the new Yahoo! Mail Beta. -------------- next part -------------- An HTML attachment was scrubbed... URL: From aaronkoning at GMAIL.COM Fri Jul 7 14:18:27 2006 From: aaronkoning at GMAIL.COM (Aaron Koning) Date: Fri, 7 Jul 2006 14:18:27 -0700 Subject: New to mapserver, need some help In-Reply-To: <20060707204354.24952.qmail@web55706.mail.re3.yahoo.com> Message-ID: If you don't feel like making things complicated and you just want to start working with MapServer ASAP, then try out: Free Open Source Software (FOSS) GIS Suite (FGS) http://www.maptools.org/fgs/ OR MapServer for Windows (MS4W) http://www.maptools.org/ms4w/ They are both very straight forward to install and installation only takes a few minutes. Aaron On 7/7/06, rama swamy wrote: > > Hi all, i am new to mapserver and i need some help in the documentation. I > browsed the UMN website and found that mapserver-4.8.3 is the lastest > version, can anyone tell me the installation steps for this verison of > mapserver. > > regards, > Swamy > > ------------------------------ > Do you Yahoo!? > Get on board. You're invitedto try the new Yahoo! Mail Beta. > > -- +-------------------------------------------- | Aaron Koning | Information Technologist | Prince George, BC, Canada. +-------------------------------------------- | http://datashare.gis.unbc.ca/fist/ | http://datashare.gis.unbc.ca/gctp-js/ +-------------------------------------------- -------------- next part -------------- An HTML attachment was scrubbed... URL: From rama_swamy80 at YAHOO.COM Fri Jul 7 14:27:59 2006 From: rama_swamy80 at YAHOO.COM (rama swamy) Date: Fri, 7 Jul 2006 14:27:59 -0700 Subject: New to mapserver, need some help In-Reply-To: <1319fbba0607071418w77ccc98dp664ab666f4e29c95@mail.gmail.com> Message-ID: Thanks for your reply aaron, but in future i might use some database support or some gep spatial formats support which needs manual configuration right, and i think ms4w doesnt allow us to configure mapserver with other libraries. So i would want to configure mapserver first and then the required libraries. Regards, swamy Aaron Koning wrote: If you don't feel like making things complicated and you just want to start working with MapServer ASAP, then try out: Free Open Source Software (FOSS) GIS Suite (FGS) http://www.maptools.org/fgs/ OR MapServer for Windows (MS4W) http://www.maptools.org/ms4w/ They are both very straight forward to install and installation only takes a few minutes. Aaron On 7/7/06, rama swamy wrote: Hi all, i am new to mapserver and i need some help in the documentation. I browsed the UMN website and found that mapserver-4.8.3 is the lastest version, can anyone tell me the installation steps for this verison of mapserver. regards, Swamy --------------------------------- Do you Yahoo!? Get on board. You're invited to try the new Yahoo! Mail Beta. -- +-------------------------------------------- | Aaron Koning | Information Technologist | Prince George, BC, Canada. +-------------------------------------------- | http://datashare.gis.unbc.ca/fist/ | http://datashare.gis.unbc.ca/gctp-js/ +-------------------------------------------- --------------------------------- Do you Yahoo!? Next-gen email? Have it all with the all-new Yahoo! Mail Beta. -------------- next part -------------- An HTML attachment was scrubbed... URL: From punkish at EIDESIS.ORG Fri Jul 7 14:46:18 2006 From: punkish at EIDESIS.ORG (P Kishor) Date: Fri, 7 Jul 2006 16:46:18 -0500 Subject: New to mapserver, need some help In-Reply-To: <20060707212759.78085.qmail@web55706.mail.re3.yahoo.com> Message-ID: Unless I am mistaken, in both your emails you haven't specified where you want to install MapServer... Unix, Linux, Mac, Windows, handheld... There is detailed documentation for installation on different platforms. For example, if you want to install on FreeBSD, look at http://mapserver.gis.umn.edu/docs/howto/FreeBSD-install and so on. Why don't you read some of the documentation, and then come back with specific questions. You might get more meaningful help. On 7/7/06, rama swamy wrote: > > Thanks for your reply aaron, but in future i might use some database support > or some gep spatial formats support which needs manual configuration right, > and i think ms4w doesnt allow us to configure mapserver with other > libraries. So i would want to configure mapserver first and then the > required libraries. > .. - Hide quoted text - > > On 7/7/06, rama swamy wrote: > > > > > > Hi all, i am new to mapserver and i need some help in the documentation. I > browsed the UMN website and found that mapserver-4.8.3 is the lastest > version, can anyone tell me the installation steps for this verison of > mapserver. > > > > regards, > > > > Swamy > > -- Puneet Kishor http://punkish.eidesis.org/ Nelson Inst. for Env. Studies, UW-Madison http://www.ies.wisc.edu/ Open Source Geospatial Foundation https://edu.osgeo.org/ From rama_swamy80 at YAHOO.COM Fri Jul 7 15:04:39 2006 From: rama_swamy80 at YAHOO.COM (rama swamy) Date: Fri, 7 Jul 2006 15:04:39 -0700 Subject: New to mapserver, need some help In-Reply-To: Message-ID: My bad, i wan to install mapserver on windows, iis. I just found this win32 compilation documentation, I will go through the steps and see if i can install it .. Thanks Swamy P Kishor wrote: Unless I am mistaken, in both your emails you haven't specified where you want to install MapServer... Unix, Linux, Mac, Windows, handheld... There is detailed documentation for installation on different platforms. For example, if you want to install on FreeBSD, look at http://mapserver.gis.umn.edu/docs/howto/FreeBSD-install and so on. Why don't you read some of the documentation, and then come back with specific questions. You might get more meaningful help. On 7/7/06, rama swamy wrote: > > Thanks for your reply aaron, but in future i might use some database support > or some gep spatial formats support which needs manual configuration right, > and i think ms4w doesnt allow us to configure mapserver with other > libraries. So i would want to configure mapserver first and then the > required libraries. > .. - Hide quoted text - > > On 7/7/06, rama swamy wrote: > > > > > > Hi all, i am new to mapserver and i need some help in the documentation. I > browsed the UMN website and found that mapserver-4.8.3 is the lastest > version, can anyone tell me the installation steps for this verison of > mapserver. > > > > regards, > > > > Swamy > > -- Puneet Kishor http://punkish.eidesis.org/ Nelson Inst. for Env. Studies, UW-Madison http://www.ies.wisc.edu/ Open Source Geospatial Foundation https://edu.osgeo.org/ --------------------------------- Sneak preview the all-new Yahoo.com. It's not radically different. Just radically better. --------------------------------- Talk is cheap. Use Yahoo! Messenger to make PC-to-Phone calls. Great rates starting at 1?/min. -------------- next part -------------- An HTML attachment was scrubbed... URL: From jmckenna at DMSOLUTIONS.CA Fri Jul 7 15:47:56 2006 From: jmckenna at DMSOLUTIONS.CA (Jeff McKenna) Date: Fri, 7 Jul 2006 18:47:56 -0400 Subject: New to mapserver, need some help In-Reply-To: <20060707220439.97094.qmail@web55707.mail.re3.yahoo.com> Message-ID: You might also want to check out the windows buildkit for mapserver, put together by Howard Butler (announcement at http://www.nabble.com/Windows-build-kit-for-MSVC-7.1-tf1143108.html#a2997024). You'll find newer buildkit versions at http://hobu.stat.iastate.edu/mapserver/build_output/ jeff rama swamy wrote: > My bad, i wan to install mapserver on windows, iis. I just found this > win32 compilation documentation, I will go through the steps and see if > i can install it .. > > Thanks > Swamy > > */P Kishor /* wrote: > > Unless I am mistaken, in both your emails you haven't specified where > you want to install MapServer... Unix, Linux, Mac, Windows, > handheld... > > There is detailed documentation for installation on different > platforms. For example, if you want to install on FreeBSD, look at > http://mapserver.gis.umn.edu/docs/howto/FreeBSD-install and so on. > > Why don't you read some of the documentation, and then come back with > specific questions. You might get more meaningful help. > > On 7/7/06, rama swamy wrote: > > > > > Thanks for your reply aaron, but in future i might use some > database support > > or some gep spatial formats support which needs manual > configuration right, > > and i think ms4w doesnt allow us to configure mapserver with other > > libraries. So i would want to configure mapserver first and then the > > required libraries. > > > .. > - Hide quoted text - > > > > On 7/7/06, rama swamy wrote: > > > > > > > > > Hi all, i am new to mapserver and i need some help in the > documentation. I > > browsed the UMN website and found that mapserver-4.8.3 is the lastest > > version, can anyone tell me the installation steps for this > verison of > > mapserver. > > > > > > regards, > > > > > > Swamy > > > > > > -- > Puneet Kishor http://punkish.eidesis.org/ > Nelson Inst. for Env. Studies, UW-Madison http://www.ies.wisc.edu/ > Open Source Geospatial Foundation https://edu.osgeo.org/ > > > ------------------------------------------------------------------------ > Sneak preview the all-new Yahoo.com > . It's > not radically different. Just radically better. > > ------------------------------------------------------------------------ > Talk is cheap. Use Yahoo! Messenger to make PC-to-Phone calls. Great > rates starting at 1?/min. > -- Jeff McKenna DM Solutions Group Inc. http://www.dmsolutions.ca From angusd at MIDWESTSURVEYS.COM Fri Jul 7 13:51:44 2006 From: angusd at MIDWESTSURVEYS.COM (Angus Dickey) Date: Fri, 7 Jul 2006 14:51:44 -0600 Subject: wms available layers Message-ID: Hello list, Does anyone know if you can define a layer in a mapfile but not have it advertised via a wms GetCapabilities request? I have been looking through the docs but can't find anything appropriate. The reason I ask is I have raster indexes stored in postgis instead of a shapefile so I need to include the layer in the mapfile but I don't want wms clients to show them as an available layer. Thanks for any help, ~Angus From giuseppe.derossi at EMAIL.IT Fri Jul 7 17:01:49 2006 From: giuseppe.derossi at EMAIL.IT (Giuseppe De Rossi) Date: Sat, 8 Jul 2006 02:01:49 +0200 Subject: compiling MapServer in Win XP Message-ID: Hi Francesco, thanks for you kind answer; now what drives me crazy is that I can't choose the compiling options. If I comment some code lines in make.opt file the result id always the same: for example now I'd like to disable the Ming compiling option but in both the situations in the make.opt: MING=-DUSE_MING_FLASH MING_DIR=$(MS_BASE)..ming-0.2a and # MING=-DUSE_MING_FLASH # MING_DIR=$(MS_BASE)..ming-0.2a the result is an error becouse the ming.h file is not found. I've solved th iconv.h error by installing the right directory. Now How do I have to do to disable an option, what file do I have to edit ? Excuse me for the trivial questions. Thanks PS, I'm yet using VC6. --------- Original Message -------- Da: Francesco Sozzi To: MAPSERVER-USERS at LISTS.UMN.EDU Oggetto: Re: [UMN_MAPSERVER-USERS] compiling MapServer in Win XP Data: 07/07/06 09:45 > > > > Hi Giuseppe, > > Time ago I had the same need and, yes, I had to modify map.h and compile > myself. > But I've never experimented your problem. I've just looked for iconv.h in my > files and I did not find. > Here you are my mapserver options (these does not require iconv.h): > > MapServer version 4.8.1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP > OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER > SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT > SUPPORTS=WCS_SERVER INPUT=ORACLESPATIAL INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE > DEBUG=MSDEBUG > > I've also seen you're using VC6. I had many troubles with this compiler in > Windows environment (I also use Win XP). > I work better with VC7. > > Regards > > Francesco > > PS: do you really need so many layers?... For instance in my case I had a > customer that wanted to separately load 600 rasters. Now he loads all > rasters in only one layer with tile index tecnique. > > ----- Original Message ----- > From: "Giuseppe De Rossi" > To: > Sent: Friday, July 07, 2006 9:06 AM > Subject: [UMN_MAPSERVER-USERS] compiling MapServer in Win XP > > > > Hi to everybody, > > this is for me the first one, hoper I'm not offtopic. > > I need a kind help in order to compile mapserver to increase the maximum > > number of allowed layers. > > I'm trying to compile it in winxp environment by using VC++6, I've > > downloaded the libraries and compiled them ( seems ok) but when I try to > > compile the server I get an error: Can't open the file iconv.h. > > I've installed cygwin and this file is in c:cygwinsomething. > > Now I'd like to know: > > how can I solve the missing of iconv.h, is that the evidence that my > > compiling process is wrong or my environment is not able to do ? > > is this file linked to a library ? > > > > to manage 800 layers, must I compile the mapserver and change the map.h ? > > is > > there another easier way to get it ? > > > > > > Thanks in advance and best regards > > > > Giu > > > > -- > > Email.it, the professional e-mail, gratis per te: http://www.email.it/f > > > > Sponsor: > > Scopri RIS il sistema di ricarica infinita. Meglio delle cartucce, meglio > > degli inchiostri, economico, facile da installare e da utilizzare, solo su > > refill.it > > Clicca qui: http://adv.email.it/cgi-bin/foclick.cgi?mid=5191&d=20060707 > > > > > -- Email.it, the professional e-mail, gratis per te: http://www.email.it/f Sponsor: Video Lezioni Gratis? Internet, Informatica, Hobby direttamente da professionisti. Scopri adesso come imparare senza fatica e stress! Clicca qui: http://adv.email.it/cgi-bin/foclick.cgi?mid=5147&d=20060708 -- Email.it, the professional e-mail, gratis per te: http://www.email.it/f Sponsor: Video-Corsi.com : Vuoi scoprire un modo rapido e veloce per imparare? Scopri i nostri VideoCorsi professionali Clicca qui: http://adv.email.it/cgi-bin/foclick.cgi?mid=5141&d=20060708 From malabapa at CI.HARRISONBURG.VA.US Fri Jul 7 18:28:32 2006 From: malabapa at CI.HARRISONBURG.VA.US (Paul A Malabad) Date: Fri, 7 Jul 2006 21:28:32 -0400 Subject: raster vs shp files extents don't match Message-ID: An HTML attachment was scrubbed... URL: From umberto.nicoletti at GMAIL.COM Sat Jul 8 03:11:17 2006 From: umberto.nicoletti at GMAIL.COM (Umberto Nicoletti) Date: Sat, 8 Jul 2006 12:11:17 +0200 Subject: Problem drawing image with java/mapscript when starting with a blank mapObj In-Reply-To: Message-ID: Please open an issue on mapserver bugzilla. I'll look into ti asap. Umberto On 7/7/06, James Dracup wrote: > Hello, > > I am using java/mapscript embedded inside a java program and am having a few > problems. I wonder if anybody has any suggestions, or if it is something > obvious I have missed? > > I create a new mapObj in java, but NOT from a .map file, a blank one: > > mapObj mapobj = new mapObj(null); > > There is then a fairly long and complicated chunk of code to populate that > mapObj from a db and user input with settings and layers etc. etc. > > I finally do: > > byte[] bytes = mapobj.draw().getBytes(); > > Intending to then further process in java the image returned. > > However, I always get a blank (just background colour) image. Initially I > thought I'd missed something out when setting the parameters for the various > mapscript objects, but, having looked at that for a while, I now do not > think that is the problem. > > If I do a mapobj.save("MapFileName.map") - the .map file outputted is > perfect, and works fine (displays a map) in all contexts (cgi-bin, java > mapscript). > > I can load that .map file into a new mapObj, and the image produced is fine: > > mapObj newmapobj = new mapObj("MapFileName.map"); > byte[] bytes = newmapobj.draw().getBytes(); > > If I then do a newmapobj.save("MapFileToCompare.map") - the .map file > outputted is absolutely and completely identical (did a diff) to the > original one outputted. > > So I am really confused - it seems to me the mapObj's are identical - so why > do I need to go via the file system in order to produce an image? What > changes, and how can I avoid it? > > Any thoughts, > Thanks, > James > From warmerdam at POBOX.COM Sat Jul 8 07:32:22 2006 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Sat, 8 Jul 2006 10:32:22 -0400 Subject: raster vs shp files extents don't match In-Reply-To: <20060708012832.E8B8040C81BA@mail.ci.harrisonburg.va.us> Message-ID: Paul A Malabad wrote: > Corner Coordinates: > Upper Left (11370000.000, 6860000.000) > Lower Left (11370000.000, 6850000.000) > Upper Right (11380000.000, 6860000.000) > Lower Right (11380000.000, 6850000.000) ... > Extent: (1880340.635992, 264114.932237) - (1906873.587035, 299715.644746) ... > I have tried using the different HARN and NAD27 epsg projections in the > layer, but I think the problem is more basic (at least I hope it is.) > since the extents are so skewed. Any help or a pointer to the right > manual would be greatly appreciated. Paul, The problem here is that without any coordinate system information for your MrSIDs you are left playing the "guess the coordinate system" game. And I would suggest that the rest of us out here in internet land have even less to go on than you. If you can't get information from the original MrSID producers, then you will basically have to mess around with a variety of guesses. The coordinates for your raster are enormous. If they are in meters then 11 million meters is roughly 1/4 of the way around the world from the projection origin. The ratio of x to y coordinates is quite different between the vector and raster data, so if they are near each other in the real world, it is unlikely this is just a units issue. I hate playing guess the coordinate system. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | President OSGF, http://osgeo.org From malabapa at CI.HARRISONBURG.VA.US Sat Jul 8 12:33:15 2006 From: malabapa at CI.HARRISONBURG.VA.US (Paul A Malabad) Date: Sat, 8 Jul 2006 15:33:15 -0400 Subject: raster vs shp files extents don't match Message-ID: An HTML attachment was scrubbed... URL: From warmerdam at POBOX.COM Sat Jul 8 14:21:13 2006 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Sat, 8 Jul 2006 17:21:13 -0400 Subject: raster vs shp files extents don't match In-Reply-To: <20060708193315.40C2440D80E3@mail.ci.harrisonburg.va.us> Message-ID: Paul A Malabad wrote: > I have found out that the DIgital orthos are Virginia State Plane > Coordinate system. Through the metadata on the dvd, I found that > although the discs read VASPCS North, The metadata actually refers to > the VASPCS south. I metadata also refers to the units in US survey > foot. whereas the epsg file refers to metre. I have tried using the > information from the meta to create a separate projection, but it is not > working correctly. Can you see anything wrong in my translation. > PROJECTION > "init=epsg:102746" > END Paul, The ESRI coordinate system number 102746 is in US feet, but I believe that the vector coordinates are in meter based on the scale of the values. So I'm not sure that 102746 is right for the vectors. I think EPSG:32146 (VA SPCS North / meter) or EPSG:32147 (VA SPCS South / meter) would be more appropriate. EPSG 32146 can be described with the following proj.4 string: +proj=lcc +lat_1=39.2 +lat_2=38.03333333333333 +lat_0=37.66666666666666 +lon_0=-78.5 +x_0=3500000 +y_0=2000000 +ellps=GRS80 +datum=NAD83 +units=m +no_defs > PROJECTION > "proj=latlong" > "ellps=GRS80" > "datum=NAD83" > "lat_0=36.333333334" > "lat_1=36.766666667" > "lat_2=37.966666667" > "lon_0=-78.5" > "units=ft" > END Note that this definition is ignoring the false easting and northing which are very important. In my fairly recent file VA SCPS South (ftUS) is EPSG:2284 and maps to the PROJ.4 string: +proj=lcc +lat_1=37.96666666666667 +lat_2=36.76666666666667 +lat_0=36.33333333333334 +lon_0=-78.5 +x_0=3500000 +y_0=1000000.0 +ellps=GRS80 +datum=NAD83 +to_meter=0.3048006096012192 +no_defs Note the important +x_0 and +y_0 values. So I *think* you want to use EPSG:32146 for the vector layer, and EPSG:2284 for the raster layer. Then you can set your map level projection to whichever you wish. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | President OSGF, http://osgeo.org From giuseppe.derossi at EMAIL.IT Sat Jul 8 16:45:40 2006 From: giuseppe.derossi at EMAIL.IT (Giuseppe De Rossi) Date: Sun, 9 Jul 2006 01:45:40 +0200 Subject: compiling MapServer in Win XP Message-ID: Hi I've installed VC7 and cut most of libraries in the make.opt file so to obtain the simplest version possibile. After a lot of test now I got: LINK : warning LNK4044: unrecognized option "libjpeg.lib"; ignored LINK : warning LNK4044: unrecognized option "objs/freetype2110.lib"; ignored LINK : warning LNK4044: unrecognized option "libjpeg.lib"; ignored LINK : warning LNK4044: unrecognized option "gdal_i.lib"; ignored LINK : warning LNK4044: unrecognized option "gdal_i.lib"; ignored LINK : warning LNK4044: unrecognized option "libcurl.lib"; ignored LINK : warning LNK4044: unrecognized option "src/libming.lib"; ignored LINK : warning LNK4044: unrecognized option "lib/pdflib.lib"; ignored LINK : warning LNK4044: unrecognized option "src/interfaces/libpq/release/libpqd ll.lib"; ignored Creating library mapserver_i.lib and object mapserver_i.exp regex.obj : error LNK2001: unresolved external symbol _printchar libmap.dll : fatal error LNK1120: 1 unresolved externals NMAKE : fatal error U1077: 'link' : return code '0x460' Stop. is there anyone who can help me ? Thanks in advance and best regards --------- Original Message -------- Da: giuseppe.derossi at EMAIL.IT To: MAPSERVER-USERS at LISTS.UMN.EDU Oggetto: Re: [UMN_MAPSERVER-USERS] compiling MapServer in Win XP Data: 08/07/06 02:02 > > > > Hi Francesco, > thanks for you kind answer; now what drives me crazy is that I can't choose > the > compiling options. If I comment some code lines in make.opt file the result > id always the same: for example now I'd like to disable the Ming compiling > option but in both the situations in the make.opt: > > MING=-DUSE_MING_FLASH > MING_DIR=$(MS_BASE)..ming-0.2a > > and > > # MING=-DUSE_MING_FLASH > # MING_DIR=$(MS_BASE)..ming-0.2a > > the result is an error becouse the ming.h file is not found. > I've solved th iconv.h error by installing the right directory. > > Now How do I have to do to disable an option, what file do I have to edit ? > Excuse me for the trivial questions. > > Thanks > > PS, I'm yet using VC6. > > > > > > --------- Original Message -------- > Da: Francesco Sozzi > To: MAPSERVER-USERS at LISTS.UMN.EDU > Oggetto: Re: [UMN_MAPSERVER-USERS] compiling MapServer in Win XP > Data: 07/07/06 09:45 > > > > > > > > > Hi Giuseppe, > > > > Time ago I had the same need and, yes, I had to modify map.h and compile > > myself. > > But I've never experimented your problem. I've just looked for iconv.h in > my > > files and I did not find. > > Here you are my mapserver options (these does not require iconv.h): > > > > MapServer version 4.8.1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP > > OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER > > SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT > > SUPPORTS=WCS_SERVER INPUT=ORACLESPATIAL INPUT=OGR INPUT=GDAL > INPUT=SHAPEFILE > > DEBUG=MSDEBUG > > > > I've also seen you're using VC6. I had many troubles with this compiler in > > > Windows environment (I also use Win XP). > > I work better with VC7. > > > > Regards > > > > Francesco > > > > PS: do you really need so many layers?... For instance in my case I had a > > customer that wanted to separately load 600 rasters. Now he loads all > > rasters in only one layer with tile index tecnique. > > > > ----- Original Message ----- > > From: "Giuseppe De Rossi" > > To: > > Sent: Friday, July 07, 2006 9:06 AM > > Subject: [UMN_MAPSERVER-USERS] compiling MapServer in Win XP > > > > > > > Hi to everybody, > > > this is for me the first one, hoper I'm not offtopic. > > > I need a kind help in order to compile mapserver to increase the maximum > > > number of allowed layers. > > > I'm trying to compile it in winxp environment by using VC++6, I've > > > downloaded the libraries and compiled them ( seems ok) but when I try to > > > compile the server I get an error: Can't open the file iconv.h. > > > I've installed cygwin and this file is in c:cygwinsomething. > > > Now I'd like to know: > > > how can I solve the missing of iconv.h, is that the evidence that my > > > compiling process is wrong or my environment is not able to do ? > > > is this file linked to a library ? > > > > > > to manage 800 layers, must I compile the mapserver and change the map.h > ? > > > is > > > there another easier way to get it ? > > > > > > > > > Thanks in advance and best regards > > > > > > Giu > > > > > > -- > > > Email.it, the professional e-mail, gratis per te: http://www.email.it/f > > > > > > Sponsor: > > > Scopri RIS il sistema di ricarica infinita. Meglio delle cartucce, > meglio > > > degli inchiostri, economico, facile da installare e da utilizzare, solo > su > > > refill.it > > > Clicca qui: http://adv.email.it/cgi-bin/foclick.cgi?mid=5191&d=20060707 > > > > > > > > > > -- > Email.it, the professional e-mail, gratis per te: http://www.email.it/f > > Sponsor: > Video Lezioni Gratis? Internet, Informatica, Hobby direttamente da > professionisti. Scopri adesso come imparare senza fatica e stress! > Clicca qui: http://adv.email.it/cgi-bin/foclick.cgi?mid=5147&d=20060708 > > > > -- > Email.it, the professional e-mail, gratis per te: http://www.email.it/f > > Sponsor: > Video-Corsi.com : Vuoi scoprire un modo rapido e veloce per imparare? > Scopri i nostri VideoCorsi professionali > Clicca qui: http://adv.email.it/cgi-bin/foclick.cgi?mid=5141&d=20060708 > > > -- Email.it, the professional e-mail, gratis per te: http://www.email.it/f Sponsor: Gioca e vinci con Cesar: trova la ciotola ed ? subito tuo il prezioso kit per la tavola del tuo cagnolino Clicca qui: http://adv.email.it/cgi-bin/foclick.cgi?mid=5331&d=20060709 From giuseppe.derossi at EMAIL.IT Sun Jul 9 04:02:21 2006 From: giuseppe.derossi at EMAIL.IT (Giuseppe De Rossi) Date: Sun, 9 Jul 2006 13:02:21 +0200 Subject: tile index for large amount of shp Message-ID: Hi, I need some kind explanations about tile index technique. At the moment I have about 750 layers as shp file. they are organized as: map1-streets.shp map1-rivers.shp map1-particels.shp ... map1-referencedPointsN.shp ... ... mapN-streets.shp mapN-rivers.shp ... mapN-referencedPointsN.shp Some are polygons type, some are lines and some are text and points. The user can visualize one layer and turn it on or off by using both the location : map1-particels and the theme: particel-map1. The real number of differen theme-layer is I've two oreder of problems , the maximum number of layers and the performance. could be the first problem resolved by tile index tecnique ? can I improve the perfomance too without recompiling mapserve ? can I apply this tech into my problem ? what are the single steps of procedure ? I appraciete any info and suggestion. thanks in advance and best regards Giu. -- Email.it, the professional e-mail, gratis per te: http://www.email.it/f Sponsor: Ti piace la chitarra? Impara a suonarla senza fatica ed evitando tutti gli errori, con l'aiuto di un maestro professionista Clicca qui: http://adv.email.it/cgi-bin/foclick.cgi?mid=5144&d=20060709 From andreas.albarello at TERRITORIUMONLINE.COM Sun Jul 9 04:09:33 2006 From: andreas.albarello at TERRITORIUMONLINE.COM (Andreas Albarello) Date: Sun, 9 Jul 2006 13:09:33 +0200 Subject: compiling MapServer in Win XP In-Reply-To: Message-ID: Giuseppe De Rossi wrote: > Hi I've installed VC7 and cut most of libraries in the make.opt file so to > obtain the simplest version possibile. > After a lot of test now I got: > > LINK : warning LNK4044: unrecognized option "libjpeg.lib"; ignored > LINK : warning LNK4044: unrecognized option "objs/freetype2110.lib"; ignored > LINK : warning LNK4044: unrecognized option "libjpeg.lib"; ignored > LINK : warning LNK4044: unrecognized option "gdal_i.lib"; ignored > LINK : warning LNK4044: unrecognized option "gdal_i.lib"; ignored > LINK : warning LNK4044: unrecognized option "libcurl.lib"; ignored > LINK : warning LNK4044: unrecognized option "src/libming.lib"; ignored > LINK : warning LNK4044: unrecognized option "lib/pdflib.lib"; ignored > LINK : warning LNK4044: unrecognized option > "src/interfaces/libpq/release/libpqd > ll.lib"; ignored > Creating library mapserver_i.lib and object mapserver_i.exp > regex.obj : error LNK2001: unresolved external symbol _printchar > libmap.dll : fatal error LNK1120: 1 unresolved externals > NMAKE : fatal error U1077: 'link' : return code '0x460' > Stop. [...] > now what drives me crazy is that I can't > choose >> the >> compiling options. If I comment some code lines in make.opt file the > result >> id always the same: for example now I'd like to disable the Ming compiling >> option but in both the situations in the make.opt: >> >> MING=-DUSE_MING_FLASH >> MING_DIR=$(MS_BASE)..ming-0.2a >> >> and >> >> # MING=-DUSE_MING_FLASH >> # MING_DIR=$(MS_BASE)..ming-0.2a >> >> the result is an error becouse the ming.h file is not found. >> I've solved th iconv.h error by installing the right directory. >> >> Now How do I have to do to disable an option, what file do I have to edit > ? Giuseppe, there still seem to be some problems with your makefile - you shouldn't get any "unrecognized option" warning when compiling. Besides, it looks like there are some issues when linking with the regex library provided that this is not a side effect of some other error somewhere else. This could however be a problem with VC7 since, as far as I know, people out there have experienced some troubles compiling/linking regex with recent versions of Visual C (after VC6), but I might be wrong on that and this could in particular not apply to VC7. However, I personally have always been successfully compiling Mapserver with VC6, so, given the errors you reported in an earlier post, I suggest you have a closer look at your makefile, and especially at your nmake.opt file. For instance, I noticed that you were referring to a non existent make.opt file. Note that this file is actually called nmake.opt including the leading "n". If you feel like the options from that file are ignored by the compiler, check its filename (nmake.opt) and do a clean (nmake /f makefile.vc clean) immediately after any change to that file. I would add some obvious suggestions like checking you are in the right directory, you are editing the right file etc. Too often things go wrong due to some really silly mistakes. You might want to unpack Mapsever to a different directory and start from scratch paying attention to every detail. Hope this helps. Best regards, -- -------------------------------------------------------------------- Andreas Albarello Analysis & SW Development Territorium Online srl/GmbH Via Buozzi/Buozzistra?e 12 - I 39100 Bolzano/Bozen email: andreas.albarello at territoriumonline.com web: www.territoriumonline.com -------------------------------------------------------------------- From bartvde at XS4ALL.NL Sun Jul 9 05:49:17 2006 From: bartvde at XS4ALL.NL (Bart van den Eijnden (OSGIS)) Date: Sun, 9 Jul 2006 14:49:17 +0200 Subject: wms available layers In-Reply-To: Message-ID: This is currently not possible unfortunately. There is an enhancement bug in bugzilla though, but it's been there for ages. Bart Angus Dickey wrote: >Hello list, > >Does anyone know if you can define a layer in a mapfile but not have it advertised via a wms GetCapabilities request? I have been looking through the docs but can't find anything appropriate. > >The reason I ask is I have raster indexes stored in postgis instead of a shapefile so I need to include the layer in the mapfile but I don't want wms clients to show them as an available layer. > >Thanks for any help, > >~Angus > > > > > -- Bart van den Eijnden OSGIS, Open Source GIS http://www.osgis.nl From woodbri at SWOODBRIDGE.COM Sun Jul 9 06:09:34 2006 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Sun, 9 Jul 2006 09:09:34 -0400 Subject: tile index for large amount of shp In-Reply-To: <6b335d2212621b8dff8772fad8e4f8d8@83.184.164.82> Message-ID: Hi Giuseppe, Yes, a tileindex is exactly what you need here. It will improve performance and significantly reduce your mapfile layers. Try this: ls map*-streets.shp > streets.in tile4ms streets.in streets-idx shptree streets-idx and in your mapfile replace ALL you map*-streets layers with a single Layer name ... tileindex "streets-idx" # no data statement .... end Do the same for the other layers. So you have a tileindex for each theme. And make sure all files have .qix spatial indexes for performance for x in *.shp ; do shptree $x ; done And enjoy :) There is one caveat and that is the all map*-streets.shp files must have the same attributes defined for a given tileindex and the attributes must be in the same order within the files. -SteveW Giuseppe De Rossi wrote: > Hi, > I need some kind explanations about tile index technique. At the moment I > have about 750 layers as shp file. they are organized as: > > map1-streets.shp > map1-rivers.shp > map1-particels.shp > ... > map1-referencedPointsN.shp > ... > ... > mapN-streets.shp > mapN-rivers.shp > ... > mapN-referencedPointsN.shp > > Some are polygons type, some are lines and some are text and points. > The user can visualize one layer and turn it on or off by using both the > location : map1-particels and the theme: particel-map1. The real number of > differen theme-layer is > > I've two oreder of problems , the maximum number of layers and the > performance. > could be the first problem resolved by tile index tecnique ? can I improve > the perfomance too without recompiling mapserve ? > can I apply this tech into my problem ? what are the single steps of > procedure ? > > I appraciete any info and suggestion. > > thanks in advance and best regards > > > Giu. > > > > > -- > Email.it, the professional e-mail, gratis per te: http://www.email.it/f > > Sponsor: > Ti piace la chitarra? Impara a suonarla senza fatica ed evitando tutti gli > errori, con l'aiuto di un maestro professionista > Clicca qui: http://adv.email.it/cgi-bin/foclick.cgi?mid=5144&d=20060709 > From malabapa at CI.HARRISONBURG.VA.US Sun Jul 9 13:57:14 2006 From: malabapa at CI.HARRISONBURG.VA.US (Paul A Malabad) Date: Sun, 9 Jul 2006 16:57:14 -0400 Subject: raster vs shp files extents don't match Message-ID: An HTML attachment was scrubbed... URL: From ollerery at ENGR.ORST.EDU Sun Jul 9 14:32:42 2006 From: ollerery at ENGR.ORST.EDU (Ryan Ollerenshaw) Date: Sun, 9 Jul 2006 14:32:42 -0700 Subject: New to mapserver, need some help In-Reply-To: <20060707204354.24952.qmail@web55706.mail.re3.yahoo.com> Message-ID: Quoting rama swamy : > Hi all, i am new to mapserver and i need some help in the documentation. I > browsed the UMN website and found that mapserver-4.8.3 is the lastest > version, can anyone tell me the installation steps for this verison of > mapserver. > > regards, > Swamy > http://mapserver.gis.umn.edu/docs/howto/verboselinuxinstall/?searchterm=dbase From ollerery at ENGR.ORST.EDU Sun Jul 9 15:01:47 2006 From: ollerery at ENGR.ORST.EDU (Ryan Ollerenshaw) Date: Sun, 9 Jul 2006 15:01:47 -0700 Subject: WMS map download In-Reply-To: <44AE7FCF.4070608@pobox.com> Message-ID: I would like to make it possible for a user to download a full resolution map from my Linux based WMS. Does anyone know where I can look to get started implementing such a feature? Thanks, -Ryan From ollerery at ENGR.ORST.EDU Sun Jul 9 15:38:27 2006 From: ollerery at ENGR.ORST.EDU (Ryan Ollerenshaw) Date: Sun, 9 Jul 2006 15:38:27 -0700 Subject: WMS map download In-Reply-To: <1152482507.44b17ccb21776@webmail.oregonstate.edu> Message-ID: Quoting Ryan Ollerenshaw : > I would like to make it possible for a user to download a full resolution map > from my Linux based WMS. Does anyone know where I can look to get started > implementing such a feature? It seems that i can use MapServers Web Coverage Services (WCS) to generate an image using the following in my mapfile: OUTPUTFORMAT NAME GTiff DRIVER "GDAL/GTiff" MIMETYPE "image/tiff" IMAGEMODE "RGB" #IMAGEMODE "PC256" EXTENSION "tif" END But i am still not getting the full resolution of the images that i am requesting. Also i am still unsure how to download this image from the command line, cant i use something like curl or sftp? When i try to use curl i get the following: -- start output -- [root at neuron ~]# curl -O http://neuron/cgi-bin/mapserv?map=../html/mapserver/htdocs/display.map&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&LAYERS=themis [1] 32392 [2] 32393 [3] 32394 [4] 32395 [2]- Done SERVICE=WMS [3] Done VERSION=1.1.1 [root at neuron ~]# % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 544 0 544 0 0 7019 0 --:--:-- --:--:-- --:--:-- 298k -- end output -- Then nothing seems to happen. Any help with this would be great, thanks? From ollerery at ENGR.ORST.EDU Sun Jul 9 16:38:41 2006 From: ollerery at ENGR.ORST.EDU (Ryan Ollerenshaw) Date: Sun, 9 Jul 2006 16:38:41 -0700 Subject: WMS map download In-Reply-To: <20060709232640.98075.qmail@web32205.mail.mud.yahoo.com> Message-ID: Quoting "Curtis W. Ruck" : > Try using curl with quotes around the url, by having & signs in the command > you are actually executing multiple commands or trying to. > Thank you for you help Curtis. When i try the command: curl -O "http://neuron/cgi-bin/mapserv?map=../html/mapserver/htdocs/display.map" a file is infact downloaded but it is not the image that i am looking for, infact it is not an image at all, i would assume this is the case becuase i am no longer specifying a layer name in the URL. Is there anyway i can download a specific layer from MapServer? > > Quoting Ryan Ollerenshaw : > > > I would like to make it possible for a user to download a full resolution > map > > from my Linux based WMS. Does anyone know where I can look to get started > > implementing such a feature? > > It seems that i can use MapServers Web Coverage Services (WCS) to generate an > image using the following in my mapfile: > > OUTPUTFORMAT > NAME GTiff > DRIVER "GDAL/GTiff" > MIMETYPE "image/tiff" > IMAGEMODE "RGB" > #IMAGEMODE "PC256" > EXTENSION "tif" > END > > But i am still not getting the full resolution of the images that i am > requesting. Also i am still unsure how to download this image from the > command > line, cant i use something like curl or sftp? When i try to use curl i get > the > following: > > -- start output -- > > [root at neuron ~]# curl -O > http://neuron/cgi-bin/mapserv?map=../html/mapserver/htdocs/display.map&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&LAYERS=themis > [1] 32392 > [2] 32393 > [3] 32394 > [4] 32395 > [2]- Done SERVICE=WMS > [3] Done VERSION=1.1.1 > [root at neuron ~]# % Total % Received % Xferd Average Speed Time > Time > Time Current > Dload Upload Total Spent Left Speed > 100 544 0 544 0 0 7019 0 --:--:-- --:--:-- --:--:-- > 298k > > -- end output -- > > Then nothing seems to happen. Any help with this would be great, thanks? > > > > > From b.vdeijnden at AGI.RWS.MINVENW.NL Sun Jul 9 22:43:02 2006 From: b.vdeijnden at AGI.RWS.MINVENW.NL (Eijnden, Bart van den (AGI)) Date: Mon, 10 Jul 2006 07:43:02 +0200 Subject: WMS map download Message-ID: Hi, to download at the native resolution you can better use WCS instead of WMS. Using WCS you can perform a DescribeCoverage operation which will give you the native resolution of your image. This can then be used in the GetCoverage request you request to Mapserver WCS. An example snippet of a DescribeCoverage response: 25 0 0 -25 The first one is for the X-direction, the second for Y. So my dataset is at 25 x 25 meter per pixel resolution. Example WCS GetCoverage request: $mapurl .= "request=GetCoverage&coverage=[layer_name]&crs=epsg:28992&". "resx=25&resy=25&format=image/tiff; Output format used: OUTPUTFORMAT NAME "GEOTIFF" DRIVER "GDAL/GTiff" MIMETYPE "image/tiff" IMAGEMODE "RGBA" EXTENSION "tif" FORMATOPTION "COMPRESS=PACKBITS" END Best regards, Bart -----Oorspronkelijk bericht----- Van: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]Namens Ryan Ollerenshaw Verzonden: maandag 10 juli 2006 1:39 Aan: MAPSERVER-USERS at LISTS.UMN.EDU Onderwerp: Re: [UMN_MAPSERVER-USERS] WMS map download Quoting "Curtis W. Ruck" : > Try using curl with quotes around the url, by having & signs in the command > you are actually executing multiple commands or trying to. > Thank you for you help Curtis. When i try the command: curl -O "http://neuron/cgi-bin/mapserv?map=../html/mapserver/htdocs/display.map" a file is infact downloaded but it is not the image that i am looking for, infact it is not an image at all, i would assume this is the case becuase i am no longer specifying a layer name in the URL. Is there anyway i can download a specific layer from MapServer? > > Quoting Ryan Ollerenshaw : > > > I would like to make it possible for a user to download a full resolution > map > > from my Linux based WMS. Does anyone know where I can look to get started > > implementing such a feature? > > It seems that i can use MapServers Web Coverage Services (WCS) to generate an > image using the following in my mapfile: > > OUTPUTFORMAT > NAME GTiff > DRIVER "GDAL/GTiff" > MIMETYPE "image/tiff" > IMAGEMODE "RGB" > #IMAGEMODE "PC256" > EXTENSION "tif" > END > > But i am still not getting the full resolution of the images that i am > requesting. Also i am still unsure how to download this image from the > command > line, cant i use something like curl or sftp? When i try to use curl i get > the > following: > > -- start output -- > > [root at neuron ~]# curl -O > http://neuron/cgi-bin/mapserv?map=../html/mapserver/htdocs/display.map&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&LAYERS=themis > [1] 32392 > [2] 32393 > [3] 32394 > [4] 32395 > [2]- Done SERVICE=WMS > [3] Done VERSION=1.1.1 > [root at neuron ~]# % Total % Received % Xferd Average Speed Time > Time > Time Current > Dload Upload Total Spent Left Speed > 100 544 0 544 0 0 7019 0 --:--:-- --:--:-- --:--:-- > 298k > > -- end output -- > > Then nothing seems to happen. Any help with this would be great, thanks? > > > > > Disclaimer ************************************************************************ Aan dit bericht kunnen geen rechten worden ontleend. Dit bericht is uitsluitend bestemd voor de geadresseerde. Als u dit bericht per abuis hebt ontvangen, wordt u verzocht het te vernietigen en de afzender te informeren. Wij adviseren u om bij twijfel over de juistheid of de volledigheid van de mail contact met afzender op te nemen. This message shall not constitute any rights or obligations. This message is intended solely for the addressee. If you have received this message in error, please delete it and notify the sender immediately. When in doubt whether this message is correct or complete, please contact the sender. ************************************************************************ From b.vdeijnden at AGI.RWS.MINVENW.NL Sun Jul 9 22:58:13 2006 From: b.vdeijnden at AGI.RWS.MINVENW.NL (Eijnden, Bart van den (AGI)) Date: Mon, 10 Jul 2006 07:58:13 +0200 Subject: multiple outputformats get lost when saving MAP file Message-ID: Hi list, using PHP/Mapscript 4.8.3 I am loading a MAP file which has multiple (3) output formats, and after doing some modifications, I save the MAP object again. The problem is, only one of the outputformats makes it into the resulting MAP file. Is this by any chance related to: http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=1816 ? Best regards, Bart van den Eijnden ================================= drs. A.J. van den Eijnden adviseur Productteam Applicaties Geo-Informatie Rijkswaterstaat Adviesdienst Geo-informatie en ICT Postbus 5023, 2600 GA Delft Derde Werelddreef 1, 2622 HA Delft Telefoon: (015) 275 75 75 E-mail b.vdeijnden at agi.rws.minvenw.nl ================================= Disclaimer ************************************************************************ Aan dit bericht kunnen geen rechten worden ontleend. Dit bericht is uitsluitend bestemd voor de geadresseerde. Als u dit bericht per abuis hebt ontvangen, wordt u verzocht het te vernietigen en de afzender te informeren. Wij adviseren u om bij twijfel over de juistheid of de volledigheid van de mail contact met afzender op te nemen. This message shall not constitute any rights or obligations. This message is intended solely for the addressee. If you have received this message in error, please delete it and notify the sender immediately. When in doubt whether this message is correct or complete, please contact the sender. ************************************************************************ From b.vdeijnden at AGI.RWS.MINVENW.NL Sun Jul 9 23:25:28 2006 From: b.vdeijnden at AGI.RWS.MINVENW.NL (Eijnden, Bart van den (AGI)) Date: Mon, 10 Jul 2006 08:25:28 +0200 Subject: multiple outputformats get lost when saving MAP file Message-ID: I actually found out the problem is not with saving but with *cloning* a MAP file/object. I have opened up a bug report which has a test script in PHP to reproduce. Hopefully somebody can look into this. http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=1823 Thanks in advance. Best regards, Bart -----Oorspronkelijk bericht----- Van: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]Namens Eijnden, Bart van den (AGI) Verzonden: maandag 10 juli 2006 7:58 Aan: MAPSERVER-USERS at LISTS.UMN.EDU Onderwerp: [UMN_MAPSERVER-USERS] multiple outputformats get lost when saving MAP file Hi list, using PHP/Mapscript 4.8.3 I am loading a MAP file which has multiple (3) output formats, and after doing some modifications, I save the MAP object again. The problem is, only one of the outputformats makes it into the resulting MAP file. Is this by any chance related to: http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=1816 ? Best regards, Bart van den Eijnden ================================= drs. A.J. van den Eijnden adviseur Productteam Applicaties Geo-Informatie Rijkswaterstaat Adviesdienst Geo-informatie en ICT Postbus 5023, 2600 GA Delft Derde Werelddreef 1, 2622 HA Delft Telefoon: (015) 275 75 75 E-mail b.vdeijnden at agi.rws.minvenw.nl ================================= Disclaimer ************************************************************************ Aan dit bericht kunnen geen rechten worden ontleend. Dit bericht is uitsluitend bestemd voor de geadresseerde. Als u dit bericht per abuis hebt ontvangen, wordt u verzocht het te vernietigen en de afzender te informeren. Wij adviseren u om bij twijfel over de juistheid of de volledigheid van de mail contact met afzender op te nemen. This message shall not constitute any rights or obligations. This message is intended solely for the addressee. If you have received this message in error, please delete it and notify the sender immediately. When in doubt whether this message is correct or complete, please contact the sender. ************************************************************************ Disclaimer ************************************************************************ Aan dit bericht kunnen geen rechten worden ontleend. Dit bericht is uitsluitend bestemd voor de geadresseerde. Als u dit bericht per abuis hebt ontvangen, wordt u verzocht het te vernietigen en de afzender te informeren. Wij adviseren u om bij twijfel over de juistheid of de volledigheid van de mail contact met afzender op te nemen. This message shall not constitute any rights or obligations. This message is intended solely for the addressee. If you have received this message in error, please delete it and notify the sender immediately. When in doubt whether this message is correct or complete, please contact the sender. ************************************************************************ From holl at GDF-HANNOVER.DE Sun Jul 9 23:31:03 2006 From: holl at GDF-HANNOVER.DE (Stephan Holl) Date: Mon, 10 Jul 2006 08:31:03 +0200 Subject: difficulity displaying GRASS rasters In-Reply-To: <001e01c6a1d8$ad20be90$4501100a@tybalt> Message-ID: Hello Kurt, On Fri, 7 Jul 2006 09:19:01 -0600 Kurt Menke wrote: > Hello, > > I have a Mapserver client which is trying to access a GRASS raster > but I get the following error message: .Unrecognized or unsupported > image format drawEPP(): Image handling error. > /var/www/cgi-bin/vc/valles/modis/PERMANENT/cellhd/MT3VG_2006_186_1521_250m_N > DVI.rc is not an EPPL file. > > > The grass database is on a different server but the database location > is set up as a share so that it appears to be a local drive on the > server running Mapserver and the client. I've tried putting a > shapefile in the same shared drive and Mapserver can read that. > Permissions are open on the data. Any ideas on why I may be getting > this error would be greatly appreciated. Machine details are below. Have you tried using gdalinfo on your server using the GRASS-dataset? e.g. gdalinfo /var/www/cgi-bin/vc/valles/modis/PERMANENT/cellhd/MT3VG_2006_186_1521_250m_NDVI.rc It seems that your GDAL on your server-maschine does not understand the GRASS 6 format, but I may be wrong. [...] > GRASS 6.0.1 > > GDAL 1.2.5 - supported formats output > > Supported Formats: > [...] > GRASS (ro): GRASS Database Rasters this seems to be the old libgrass-driver?! Perhaps someone more knowlegdable can comment on this? > GRASS machine: > > RHEL 3.0 > > GRASS 6.0.1 > > GDAL-Grass 1.3.1 > > GDAL 1.3.1 - supported formats output: > > Supported Formats: > > GRASS (ro): GRASS Database Rasters (5.7+) this seems to be the correct GRASS-driver. [...] Best Stephan -- GDF Hannover - Solutions for spatial data analysis and remote sensing Hannover Office - Mengendamm 16d - D-30177 Hannover Internet: www.gdf-hannover.de - Email: holl at gdf-hannover.de Phone : ++49-(0)511.39088507 - Fax: ++49-(0)511.39088508 From tom at MAPLINK.JP Mon Jul 10 01:15:00 2006 From: tom at MAPLINK.JP (Thomas Hammerlund) Date: Mon, 10 Jul 2006 17:15:00 +0900 Subject: .DM File Format Message-ID: Hi Everyone, I have some data in .dm format. I have never seen this beofre but here's what I've found: It's a format from a company called Borland Software, and there's some kind of database viewercalled Paradox to view the data. Has anyone seen this file format before, or does anyone know where/how I can download the db viewer? It's a file called "pdxwin32.exe", but Google isn't being kind today. Thank you, Tom -------------- next part -------------- An HTML attachment was scrubbed... URL: From cobra13 at GMAIL.COM Mon Jul 10 02:46:24 2006 From: cobra13 at GMAIL.COM (Thibaut Le Pape) Date: Mon, 10 Jul 2006 11:46:24 +0200 Subject: problem: compiling mapserver on windows Message-ID: Hello everyone, I tried to compile mapserver under windows, so I installed all the librairies needed and I get this error message (I use Visual Studio 8 to compile it): LIBC.lib(crt0dat.obj) : error LNK2005: __cinit already defined in LIBCMT.lib (crt 0dat.obj) LIBC.lib(crt0dat.obj) : error LNK2005: _exit already defined in LIBCMT.lib (crt0d at.obj) LIBC.lib(crt0dat.obj) : error LNK2005: __exit already defined in LIBCMT.lib (crt0 dat.obj) LIBC.lib(crt0dat.obj) : error LNK2005: __cexit already defined in LIBCMT.lib (crt 0dat.obj) LIBC.lib(crt0dat.obj) : error LNK2005: __c_exit already defined in LIBCMT.lib(cr t0dat.obj) LIBC.lib(crt0dat.obj) : error LNK2005: __C_Exit_Done already defined in LIBCMT.l ib(crt0dat.obj) LIBC.lib(crt0dat.obj) : error LNK2005: __C_Termination_Done already defined in L IBCMT.lib(crt0dat.obj) LIBC.lib(crt0dat.obj) : error LNK2005: __exitflag already defined in LIBCMT.lib( crt0dat.obj) LIBC.lib(crt0dat.obj) : error LNK2005: __wpgmptr already defined in LIBCMT.lib(c rt0dat.obj) LIBC.lib(crt0dat.obj) : error LNK2005: __pgmptr already defined in LIBCMT.lib(cr t0dat.obj) LIBC.lib(crt0dat.obj) : error LNK2005: ___winitenv already defined in LIBCMT.lib (crt0dat.obj) LIBC.lib(crt0dat.obj) : error LNK2005: __wenviron already defined in LIBCMT.lib( crt0dat.obj) LIBC.lib(crt0dat.obj) : error LNK2005: ___initenv already defined in LIBCMT.lib( crt0dat.obj) LIBC.lib(crt0dat.obj) : error LNK2005: __environ already defined in LIBCMT.lib(c rt0dat.obj) LIBC.lib(crt0dat.obj) : error LNK2005: ___wargv already defined in LIBCMT.lib(cr t0dat.obj) LIBC.lib(crt0dat.obj) : error LNK2005: ___argv already defined in LIBCMT.lib (crt 0dat.obj) LIBC.lib(crt0dat.obj) : error LNK2005: ___argc already defined in LIBCMT.lib (crt 0dat.obj) LIBC.lib(crt0dat.obj) : error LNK2005: __winminor already defined in LIBCMT.lib( crt0dat.obj) LIBC.lib(crt0dat.obj) : error LNK2005: __winmajor already defined in LIBCMT.lib( crt0dat.obj) LIBC.lib(crt0dat.obj) : error LNK2005: __winver already defined in LIBCMT.lib(cr t0dat.obj) LIBC.lib(crt0dat.obj) : error LNK2005: __osver already defined in LIBCMT.lib (crt 0dat.obj) LIBC.lib(crt0dat.obj) : error LNK2005: __umaskval already defined in LIBCMT.lib( crt0dat.obj) LIBC.lib(crt0dat.obj) : warning LNK4006: __cinit already defined in LIBCMT.lib(c rt0dat.obj); second definition ignored LIBC.lib(crt0dat.obj) : warning LNK4006: _exit already defined in LIBCMT.lib (crt 0dat.obj); second definition ignored LIBC.lib(crt0dat.obj) : warning LNK4006: __exit already defined in LIBCMT.lib(cr t0dat.obj); second definition ignored LIBC.lib(crt0dat.obj) : warning LNK4006: __cexit already defined in LIBCMT.lib(c rt0dat.obj); second definition ignored LIBC.lib(crt0dat.obj) : warning LNK4006: __c_exit already defined in LIBCMT.lib( crt0dat.obj); second definition ignored LIBC.lib(crt0dat.obj) : warning LNK4006: __C_Exit_Done already defined in LIBCMT .lib(crt0dat.obj); second definition ignored LIBC.lib(crt0dat.obj) : warning LNK4006: __C_Termination_Done already defined in LIBCMT.lib(crt0dat.obj); second definition ignored LIBC.lib(crt0dat.obj) : warning LNK4006: __exitflag already defined in LIBCMT.li b(crt0dat.obj); second definition ignored LIBC.lib(crt0dat.obj) : warning LNK4006: __wpgmptr already defined in LIBCMT.lib (crt0dat.obj); second definition ignored LIBC.lib(crt0dat.obj) : warning LNK4006: __pgmptr already defined in LIBCMT.lib( crt0dat.obj); second definition ignored LIBC.lib(crt0dat.obj) : warning LNK4006: ___winitenv already defined in LIBCMT.l ib(crt0dat.obj); second definition ignored LIBC.lib(crt0dat.obj) : warning LNK4006: __wenviron already defined in LIBCMT.li b(crt0dat.obj); second definition ignored LIBC.lib(crt0dat.obj) : warning LNK4006: ___initenv already defined in LIBCMT.li b(crt0dat.obj); second definition ignored LIBC.lib(crt0dat.obj) : warning LNK4006: __environ already defined in LIBCMT.lib (crt0dat.obj); second definition ignored LIBC.lib(crt0dat.obj) : warning LNK4006: ___wargv already defined in LIBCMT.lib( crt0dat.obj); second definition ignored LIBC.lib(crt0dat.obj) : warning LNK4006: ___argv already defined in LIBCMT.lib(c rt0dat.obj); second definition ignored LIBC.lib(crt0dat.obj) : warning LNK4006: ___argc already defined in LIBCMT.lib(c rt0dat.obj); second definition ignored LIBC.lib(crt0dat.obj) : warning LNK4006: __winminor already defined in LIBCMT.li b(crt0dat.obj); second definition ignored LIBC.lib(crt0dat.obj) : warning LNK4006: __winmajor already defined in LIBCMT.li b(crt0dat.obj); second definition ignored LIBC.lib(crt0dat.obj) : warning LNK4006: __winver already defined in LIBCMT.lib( crt0dat.obj); second definition ignored LIBC.lib(crt0dat.obj) : warning LNK4006: __osver already defined in LIBCMT.lib(c rt0dat.obj); second definition ignored LIBC.lib(crt0dat.obj) : warning LNK4006: __umaskval already defined in LIBCMT.li b(crt0dat.obj); second definition ignored Creating library mapserver_i.lib and object mapserver_i.exp LINK : warning LNK4098: defaultlib "LIBC" conflicts with use of other libs; use /NODEFAULTLIB:library maprasterquery.obj : error LNK2001: unresolved external symbol ___security_cooki e mapogcfilter.obj : error LNK2001: unresolved external symbol ___security_cookie mapogcsld.obj : error LNK2001: unresolved external symbol ___security_cookie layerobject.obj : error LNK2001: unresolved external symbol ___security_cookie mapgdal.obj : error LNK2001: unresolved external symbol ___security_cookie mapdrawgdal.obj : error LNK2001: unresolved external symbol ___security_cookie mapjoin.obj : error LNK2001: unresolved external symbol ___security_cookie mapgraticule.obj : error LNK2001: unresolved external symbol ___security_cookie maplayer.obj : error LNK2001: unresolved external symbol ___security_cookie maporaclespatial.obj : error LNK2001: unresolved external symbol ___security_coo kie mapgd.obj : error LNK2001: unresolved external symbol ___security_cookie mapoutput.obj : error LNK2001: unresolved external symbol ___security_cookie mapraster.obj : error LNK2001: unresolved external symbol ___security_cookie mapogr.obj : error LNK2001: unresolved external symbol ___security_cookie maptemplate.obj : error LNK2001: unresolved external symbol ___security_cookie mappostgis.obj : error LNK2001: unresolved external symbol ___security_cookie maputil.obj : error LNK2001: unresolved external symbol ___security_cookie mapscale.obj : error LNK2001: unresolved external symbol ___security_cookie maplabel.obj : error LNK2001: unresolved external symbol ___security_cookie maperror.obj : error LNK2001: unresolved external symbol ___security_cookie mapstring.obj : error LNK2001: unresolved external symbol ___security_cookie mapsymbol.obj : error LNK2001: unresolved external symbol ___security_cookie mapfile.obj : error LNK2001: unresolved external symbol ___security_cookie maplegend.obj : error LNK2001: unresolved external symbol ___security_cookie mapshape.obj : error LNK2001: unresolved external symbol ___security_cookie mapxbase.obj : error LNK2001: unresolved external symbol ___security_cookie mapparser.obj : error LNK2001: unresolved external symbol ___security_cookie maptree.obj : error LNK2001: unresolved external symbol ___security_cookie maprasterquery.obj : error LNK2001: unresolved external symbol @__security_check _cookie at 4 mapogcfilter.obj : error LNK2001: unresolved external symbol @__security_check_c ookie at 4 mapogcsld.obj : error LNK2001: unresolved external symbol @__security_check_cook ie at 4 layerobject.obj : error LNK2001: unresolved external symbol @__security_check_co okie at 4 mapgdal.obj : error LNK2001: unresolved external symbol @__security_check_cookie @4 mapdrawgdal.obj : error LNK2001: unresolved external symbol @__security_check_co okie at 4 mapjoin.obj : error LNK2001: unresolved external symbol @__security_check_cookie @4 mapgraticule.obj : error LNK2001: unresolved external symbol @__security_check_c ookie at 4 maplayer.obj : error LNK2001: unresolved external symbol @__security_check_cooki e at 4 maporaclespatial.obj : error LNK2001: unresolved external symbol @__security_che ck_cookie at 4 mapgd.obj : error LNK2001: unresolved external symbol @__security_check_cookie at 4 mapoutput.obj : error LNK2001: unresolved external symbol @__security_check_cook ie at 4 mapraster.obj : error LNK2001: unresolved external symbol @__security_check_cook ie at 4 mapogr.obj : error LNK2001: unresolved external symbol @__security_check_cookie@ 4 maptemplate.obj : error LNK2001: unresolved external symbol @__security_check_co okie at 4 mappostgis.obj : error LNK2001: unresolved external symbol @__security_check_coo kie at 4 maputil.obj : error LNK2001: unresolved external symbol @__security_check_cookie @4 mapscale.obj : error LNK2001: unresolved external symbol @__security_check_cooki e at 4 maplabel.obj : error LNK2001: unresolved external symbol @__security_check_cooki e at 4 maperror.obj : error LNK2001: unresolved external symbol @__security_check_cooki e at 4 mapstring.obj : error LNK2001: unresolved external symbol @__security_check_cook ie at 4 mapsymbol.obj : error LNK2001: unresolved external symbol @__security_check_cook ie at 4 mapfile.obj : error LNK2001: unresolved external symbol @__security_check_cookie @4 maplegend.obj : error LNK2001: unresolved external symbol @__security_check_cook ie at 4 mapshape.obj : error LNK2001: unresolved external symbol @__security_check_cooki e at 4 mapxbase.obj : error LNK2001: unresolved external symbol @__security_check_cooki e at 4 mapparser.obj : error LNK2001: unresolved external symbol @__security_check_cook ie at 4 maptree.obj : error LNK2001: unresolved external symbol @__security_check_cookie @4 mapgraticule.obj : error LNK2001: unresolved external symbol __ftol2_sse mapimagemap.obj : error LNK2001: unresolved external symbol __ftol2_sse maprasterquery.obj : error LNK2001: unresolved external symbol __ftol2_sse mapogcsld.obj : error LNK2001: unresolved external symbol __ftol2_sse maporaclespatial.obj : error LNK2001: unresolved external symbol __ftol2_sse mapdraw.obj : error LNK2001: unresolved external symbol __ftol2_sse mapgd.obj : error LNK2001: unresolved external symbol __ftol2_sse mapdrawgdal.obj : error LNK2001: unresolved external symbol __ftol2_sse maplegend.obj : error LNK2001: unresolved external symbol __ftol2_sse maplabel.obj : error LNK2001: unresolved external symbol __ftol2_sse maperror.obj : error LNK2001: unresolved external symbol __ftol2_sse mapogr.obj : error LNK2001: unresolved external symbol __ftol2_sse mapshape.obj : error LNK2001: unresolved external symbol __ftol2_sse mapxbase.obj : error LNK2001: unresolved external symbol __ftol2_sse mapsymbol.obj : error LNK2001: unresolved external symbol __ftol2_sse mapfile.obj : error LNK2001: unresolved external symbol __ftol2_sse mapgraticule.obj : error LNK2001: unresolved external symbol __wassert mapmygis.obj : error LNK2001: unresolved external symbol __wassert maprasterquery.obj : error LNK2001: unresolved external symbol __wassert mapoutput.obj : error LNK2001: unresolved external symbol __wassert mapgdal.obj : error LNK2001: unresolved external symbol __wassert mapwfslayer.obj : error LNK2001: unresolved external symbol __wassert mapdrawgdal.obj : error LNK2001: unresolved external symbol __wassert mappostgis.obj : error LNK2001: unresolved external symbol __wassert maplayer.obj : error LNK2001: unresolved external symbol __wassert maporaclespatial.obj : error LNK2001: unresolved external symbol __wassert mapdraw.obj : error LNK2001: unresolved external symbol __wassert mapshape.obj : error LNK2001: unresolved external symbol __wassert mapprimitive.obj : error LNK2001: unresolved external symbol __wassert mapsde.obj : error LNK2001: unresolved external symbol __wassert mapogr.obj : error LNK2001: unresolved external symbol __wassert mapparser.obj : error LNK2001: unresolved external symbol __alloca_probe_16 maptemplate.obj : error LNK2001: unresolved external symbol ___iob_func mapgd.obj : error LNK2001: unresolved external symbol ___iob_func mapgdal.obj : error LNK2001: unresolved external symbol ___iob_func mapimagemap.obj : error LNK2001: unresolved external symbol ___iob_func maplexer.obj : error LNK2001: unresolved external symbol ___iob_func maptree.obj : error LNK2001: unresolved external symbol ___iob_func maperror.obj : error LNK2001: unresolved external symbol ___iob_func cgiutil.obj : error LNK2001: unresolved external symbol ___iob_func maputil.obj : error LNK2001: unresolved external symbol __time64 maperror.obj : error LNK2001: unresolved external symbol __time64 maptemplate.obj : error LNK2001: unresolved external symbol __time64 maperror.obj : error LNK2001: unresolved external symbol __ctime64 mapraster.obj : error LNK2001: unresolved external symbol _get_row mapraster.obj : error LNK2001: unresolved external symbol _position mapraster.obj : error LNK2001: unresolved external symbol _clrclose mapraster.obj : error LNK2001: unresolved external symbol _clrget mapraster.obj : error LNK2001: unresolved external symbol _clrreset mapraster.obj : error LNK2001: unresolved external symbol _eppclose mapraster.obj : error LNK2001: unresolved external symbol _eppreset maptime.obj : error LNK2001: unresolved external symbol __ftime64 maptemplate.obj : error LNK2001: unresolved external symbol __stat64i32 mapogcfilter.obj : error LNK2001: unresolved external symbol _CPLSearchXMLNode mapogcsld.obj : error LNK2001: unresolved external symbol _msOWSLookupMetadata mapogcsld.obj : error LNK2001: unresolved external symbol _msOWSGetSchemasLocati on mapregex.obj : error LNK2001: unresolved external symbol _regcomp mapregex.obj : error LNK2001: unresolved external symbol _regerror mapregex.obj : error LNK2001: unresolved external symbol _regexec mapregex.obj : error LNK2001: unresolved external symbol _regfree thanx in avdance for your help, greets, Thibaut -------------- next part -------------- An HTML attachment was scrubbed... URL: From jamesdracup at HOTMAIL.COM Mon Jul 10 03:39:04 2006 From: jamesdracup at HOTMAIL.COM (James Dracup) Date: Mon, 10 Jul 2006 11:39:04 +0100 Subject: Problem drawing image with java/mapscript when starting with a blank mapObj In-Reply-To: <75b4b93e0607080311m706950d3ld9ca3ae343379ebc@mail.gmail.com> Message-ID: No need for a bug, I had a play over the weekend and found my error. I am populating my mapObj from tables in a db. If the value is not null in the db, I call the corresponding set method in mapscript. In my 'style' table I have 'size' column which was set to have a default value of 0, and was never null. I therefore always called styleObj.setSize() - usually passing 0. That I think is what was messing me up - changing the default to null for that column fixed the issue. The reason it worked when passed through a .map file, and the reason I did not initially spot the mistake, was because SIZE is not set in the STYLE section on any of the map files - so it looked as if the mapObjs were the same, but in fact reloading it caused the size value to be forgotten. Umberto, thanks for the prompt response in any case and - at a guess from your name - congratulations on the World Cup :) Cheers, James. ----Original Message Follows---- From: "Umberto Nicoletti" To: "James Dracup" CC: MAPSERVER-USERS at lists.umn.edu Subject: Re: [UMN_MAPSERVER-USERS] Problem drawing image with java/mapscript when starting with a blank mapObj Date: Sat, 8 Jul 2006 12:11:17 +0200 Please open an issue on mapserver bugzilla. I'll look into ti asap. Umberto On 7/7/06, James Dracup wrote: >Hello, > >I am using java/mapscript embedded inside a java program and am having a >few >problems. I wonder if anybody has any suggestions, or if it is something >obvious I have missed? > >I create a new mapObj in java, but NOT from a .map file, a blank one: > >mapObj mapobj = new mapObj(null); > >There is then a fairly long and complicated chunk of code to populate that >mapObj from a db and user input with settings and layers etc. etc. > >I finally do: > >byte[] bytes = mapobj.draw().getBytes(); > >Intending to then further process in java the image returned. > >However, I always get a blank (just background colour) image. Initially I >thought I'd missed something out when setting the parameters for the >various >mapscript objects, but, having looked at that for a while, I now do not >think that is the problem. > >If I do a mapobj.save("MapFileName.map") - the .map file outputted is >perfect, and works fine (displays a map) in all contexts (cgi-bin, java >mapscript). > >I can load that .map file into a new mapObj, and the image produced is >fine: > >mapObj newmapobj = new mapObj("MapFileName.map"); >byte[] bytes = newmapobj.draw().getBytes(); > >If I then do a newmapobj.save("MapFileToCompare.map") - the .map file >outputted is absolutely and completely identical (did a diff) to the >original one outputted. > >So I am really confused - it seems to me the mapObj's are identical - so >why >do I need to go via the file system in order to produce an image? What >changes, and how can I avoid it? > >Any thoughts, >Thanks, >James > From steve at SJK.NET.AU Mon Jul 10 03:43:11 2006 From: steve at SJK.NET.AU (Stephen Kelly) Date: Mon, 10 Jul 2006 20:43:11 +1000 Subject: .DM File Format In-Reply-To: <000d01c6a3f8$f201d0e0$ac0aa8c0@testxp8b8211e7> Message-ID: Tom, MS Access can import Paradox (.db) files Stephen Kelly _____ From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Thomas Hammerlund Sent: Monday, 10 July 2006 6:15 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] .DM File Format Hi Everyone, I have some data in .dm format. I have never seen this beofre but here's what I've found: It's a format from a company called Borland Software, and there's some kind of database viewercalled Paradox to view the data. Has anyone seen this file format before, or does anyone know where/how I can download the db viewer? It's a file called "pdxwin32.exe", but Google isn't being kind today. Thank you, Tom -------------- next part -------------- An HTML attachment was scrubbed... URL: From tom at MAPLINK.JP Mon Jul 10 03:47:30 2006 From: tom at MAPLINK.JP (Thomas Hammerlund) Date: Mon, 10 Jul 2006 19:47:30 +0900 Subject: .DM File Format Message-ID: Thank you Stephen. This is probably out of the scope of the list, but do you know if there is there a way to convert them to Shape files? Thank you again. Tom ----- Original Message ----- From: Stephen Kelly To: 'Thomas Hammerlund' ; MAPSERVER-USERS at LISTS.UMN.EDU Sent: Monday, July 10, 2006 7:43 PM Subject: RE: [UMN_MAPSERVER-USERS] .DM File Format Tom, MS Access can import Paradox (.db) files Stephen Kelly ------------------------------------------------------------------------------ From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Thomas Hammerlund Sent: Monday, 10 July 2006 6:15 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] .DM File Format Hi Everyone, I have some data in .dm format. I have never seen this beofre but here's what I've found: It's a format from a company called Borland Software, and there's some kind of database viewercalled Paradox to view the data. Has anyone seen this file format before, or does anyone know where/how I can download the db viewer? It's a file called "pdxwin32.exe", but Google isn't being kind today. Thank you, Tom -------------- next part -------------- An HTML attachment was scrubbed... URL: From bartvde at XS4ALL.NL Mon Jul 10 03:53:34 2006 From: bartvde at XS4ALL.NL (Bart van den Eijnden (OSGIS)) Date: Mon, 10 Jul 2006 12:53:34 +0200 Subject: .DM File Format In-Reply-To: <003801c6a40e$3e041470$ac0aa8c0@testxp8b8211e7> Message-ID: Is this a table with X and Y values? If so, once you have it in Access you can set up OGR Virtual Spatial Data (an ovf file) for your Access table. See also: http://iweb.gdal.org/ogr/drv_vrt.html Ogr can output shapefiles so using the ogr2ogr utility you can transform the data to a point shp. Bart > Thank you Stephen. > > This is probably out of the scope of the list, but do you know if there is > there a way to convert them to Shape files? > > Thank you again. > Tom > > ----- Original Message ----- > From: Stephen Kelly > To: 'Thomas Hammerlund' ; MAPSERVER-USERS at LISTS.UMN.EDU > Sent: Monday, July 10, 2006 7:43 PM > Subject: RE: [UMN_MAPSERVER-USERS] .DM File Format > > > Tom, > > > > MS Access can import Paradox (.db) files > > > > Stephen Kelly > > > > > ------------------------------------------------------------------------------ > > From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On > Behalf Of Thomas Hammerlund > Sent: Monday, 10 July 2006 6:15 PM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: [UMN_MAPSERVER-USERS] .DM File Format > > > > Hi Everyone, > > > > I have some data in .dm format. I have never seen this beofre but > here's > what I've found: > > > > It's a format from a company called Borland Software, and there's some > kind of database viewercalled Paradox to view the data. > > > > Has anyone seen this file format before, or does anyone know where/how I > can download the db viewer? It's a file called "pdxwin32.exe", but Google > isn't being kind today. > > > > Thank you, > > Tom > From tom at MAPLINK.JP Mon Jul 10 03:57:18 2006 From: tom at MAPLINK.JP (Thomas Hammerlund) Date: Mon, 10 Jul 2006 19:57:18 +0900 Subject: .DM File Format Message-ID: Thank you very much. The data might be in x, y format - I haven't been able to make much sense of it yet. Basically it looks like this. =============================================== M 01 #0#1!!!!!!!!!!!!!!!! 25008)C10];}Bh#0#1!]#0#2!]!]#4#09f 0 -136018 26693-134302 29793 26056 124904 10-134302 26693-136018 29793 02 0510051000#D#I#A#P!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!100 9q:]9R6H3t<02q To: "Thomas Hammerlund" Cc: Sent: Monday, July 10, 2006 7:53 PM Subject: Re: [UMN_MAPSERVER-USERS] .DM File Format > Is this a table with X and Y values? > > If so, once you have it in Access you can set up OGR Virtual Spatial Data > (an ovf file) for your Access table. See also: > > http://iweb.gdal.org/ogr/drv_vrt.html > > Ogr can output shapefiles so using the ogr2ogr utility you can transform > the data to a point shp. > > Bart > >> Thank you Stephen. >> >> This is probably out of the scope of the list, but do you know if there >> is >> there a way to convert them to Shape files? >> >> Thank you again. >> Tom >> >> ----- Original Message ----- >> From: Stephen Kelly >> To: 'Thomas Hammerlund' ; MAPSERVER-USERS at LISTS.UMN.EDU >> Sent: Monday, July 10, 2006 7:43 PM >> Subject: RE: [UMN_MAPSERVER-USERS] .DM File Format >> >> >> Tom, >> >> >> >> MS Access can import Paradox (.db) files >> >> >> >> Stephen Kelly >> >> >> >> >> ------------------------------------------------------------------------------ >> >> From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] >> On >> Behalf Of Thomas Hammerlund >> Sent: Monday, 10 July 2006 6:15 PM >> To: MAPSERVER-USERS at LISTS.UMN.EDU >> Subject: [UMN_MAPSERVER-USERS] .DM File Format >> >> >> >> Hi Everyone, >> >> >> >> I have some data in .dm format. I have never seen this beofre but >> here's >> what I've found: >> >> >> >> It's a format from a company called Borland Software, and there's some >> kind of database viewercalled Paradox to view the data. >> >> >> >> Has anyone seen this file format before, or does anyone know where/how >> I >> can download the db viewer? It's a file called "pdxwin32.exe", but >> Google >> isn't being kind today. >> >> >> >> Thank you, >> >> Tom >> > > > From takubo at SARUGA-TONDARA.NET Mon Jul 10 04:41:26 2006 From: takubo at SARUGA-TONDARA.NET (Akio Takubo) Date: Mon, 10 Jul 2006 20:41:26 +0900 Subject: .DM File Format In-Reply-To: <004a01c6a40f$9c90d540$ac0aa8c0@testxp8b8211e7> Message-ID: Hi, Thomas and all, Sorry, I'd sent following mail directly to Thomas but not sent to ML. Someone may have interests this so I'll sent again to ML. ----------------------------------------------------- DM file is GIS format defined by Japanese goverment. This format is widely used by goverment and local goverment in japan, maybe only in japan. It's specification is publshed so you can buy. (following link is written in japanese). http://www.sokugikyo.or.jp/book_08.html Thanks, -- Akio Takubo from Tokyo, Japan On Mon, 10 Jul 2006 19:57:18 +0900 Thomas Hammerlund wrote: > Thank you very much. > > The data might be in x, y format - I haven't been able to make much sense of > it yet. Basically it looks like this. > =============================================== > > M 01 #0#1!!!!!!!!!!!!!!!! 25008)C10];}Bh#0#1!]#0#2!]!]#4#09f 0 > -136018 26693-134302 29793 26056 124904 10-134302 26693-136018 29793 > 02 > 0510051000#D#I#A#P!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!100 > 9q:]9R6H3t<02q H 1100 0 1 1 0 0 1 0 0 0 0 0 000510 > 0 > E21103 1 2 03 60 00 33 9 0 0 0 0 0510 > 1 > 0 264954 0 2510 265086 0 9467 266997 0 14665 > 265766 0 > 20901 265532 0 32198 263786 0 35178 263861 0 41656 > 265611 0 > 45197 263769 0 49691 262341 0 55551 258232 0 59902 > 254936 0 > 64366 254290 0 73035 253092 0 86465 248904 0 86275 > 255552 0 > 87565 259421 0 89858 262064 0 90721 263492 0 90937 > 265127 0 > 90660 267222 0 90438 271160 0 92763 275983 0 93605 > 284321 0 > 91921 286163 0 85827 291201 0 83668 293688 0 76970 > 297180 0 > 73937 299899 0 72838 301821 0 72574 303743 0 75135 > 306732 0 > 75666 310000 0 > H 2100 0 1 421 0 0 421 0 0 0 0 0 000510 > 0 > E22101 1 2 03 60 01 2 1 0 0 0 0 0510 > 1 > 1938 238580 52985 2082 238843 52985 > E22101 2 2 03 60 01 2 1 0 0 0 0 0510 > 1 > 885 224636 49611 1089 224855 49611 > E22101 3 2 03 60 01 2 1 0 0 0 0 0510 > 1 > 11782 289788 56566 11571 290093 56566 > E22101 4 2 03 60 01 2 1 0 0 0 0 0510 > 1 > 23440 144000 40055 23283 144255 40055 > E22101 5 2 03 60 01 2 1 0 0 0 0 0510 > 1 > 2327 139468 37716 1982 139524 37716 > E22101 6 2 03 60 01 2 1 0 0 0 0 0510 > 1 > 66276 137482 48179 66332 137777 48179 > E22101 7 2 03 60 01 2 1 0 0 0 0 0510 > 1 > 70854 142545 51013 70885 142844 51013 > E22101 8 2 03 60 01 2 1 0 0 0 0 0510 > 1 > 2605 132449 38135 2922 132693 38135 > E22101 9 2 03 60 01 2 1 0 0 0 0 0510 > 1 > 4616 169882 41840 4363 170142 41840 > E22101 10 2 03 60 01 6 2 0 0 0 0 0510 > 1 > 17817 117965 37238 17092 118039 37287 16305 118153 37335 15634 > 118288 37367 > > > ----- Original Message ----- > From: "Bart van den Eijnden (OSGIS)" > To: "Thomas Hammerlund" > Cc: > Sent: Monday, July 10, 2006 7:53 PM > Subject: Re: [UMN_MAPSERVER-USERS] .DM File Format > > > > Is this a table with X and Y values? > > > > If so, once you have it in Access you can set up OGR Virtual Spatial Data > > (an ovf file) for your Access table. See also: > > > > http://iweb.gdal.org/ogr/drv_vrt.html > > > > Ogr can output shapefiles so using the ogr2ogr utility you can transform > > the data to a point shp. > > > > Bart > > > >> Thank you Stephen. > >> > >> This is probably out of the scope of the list, but do you know if there > >> is > >> there a way to convert them to Shape files? > >> > >> Thank you again. > >> Tom > >> > >> ----- Original Message ----- > >> From: Stephen Kelly > >> To: 'Thomas Hammerlund' ; MAPSERVER-USERS at LISTS.UMN.EDU > >> Sent: Monday, July 10, 2006 7:43 PM > >> Subject: RE: [UMN_MAPSERVER-USERS] .DM File Format > >> > >> > >> Tom, > >> > >> > >> > >> MS Access can import Paradox (.db) files > >> > >> > >> > >> Stephen Kelly > >> > >> > >> > >> > >> ------------------------------------------------------------------------------ > >> > >> From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] > >> On > >> Behalf Of Thomas Hammerlund > >> Sent: Monday, 10 July 2006 6:15 PM > >> To: MAPSERVER-USERS at LISTS.UMN.EDU > >> Subject: [UMN_MAPSERVER-USERS] .DM File Format > >> > >> > >> > >> Hi Everyone, > >> > >> > >> > >> I have some data in .dm format. I have never seen this beofre but > >> here's > >> what I've found: > >> > >> > >> > >> It's a format from a company called Borland Software, and there's some > >> kind of database viewercalled Paradox to view the data. > >> > >> > >> > >> Has anyone seen this file format before, or does anyone know where/how > >> I > >> can download the db viewer? It's a file called "pdxwin32.exe", but > >> Google > >> isn't being kind today. > >> > >> > >> > >> Thank you, > >> > >> Tom > >> > > > > > > > -- ??? ???(Takubo Akio) takubo at saruga-tondara.net ??????? http://www.saruga-tondara.net/ http://co2.s16.xrea.com/hiki2/ ============================================== From warmerdam at POBOX.COM Mon Jul 10 06:40:44 2006 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Mon, 10 Jul 2006 09:40:44 -0400 Subject: problem: compiling mapserver on windows In-Reply-To: <361eec380607100246q4a485685qcde30ffc04ab94f2@mail.gmail.com> Message-ID: Thibaut Le Pape wrote: > Hello everyone, > > I tried to compile mapserver under windows, so I installed all the > librairies needed and I get this error message (I use Visual Studio 8 to > compile it): > > LIBC.lib(crt0dat.obj) : error LNK2005: __cinit already defined in > LIBCMT.lib(crt Thibaut, The above message indicates you are linking in two different versions of the standard C library. In your case the "default" c library (libc.lib), and the multi-threaded version (libcmt.lib). This normally occurs when some of the obj files being linked in are built with /MT and some are not. Assuming you are consistently using (or not using) /MT, then it is likely due to linking in a static .lib file from a supporting package that is compiled differently. My suggestions are: o Make sure /MT is consistently being used in compiling mapserver. I can't think of any reason this wouldn't be the case assuming you are using the normal nmake makefiles. o Try removing dependencies from as many external libraries as possible, to establish which library is causing the conflict. o Give up and use someone elses binaries... :-) Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | President OSGF, http://osgeo.org From ollerery at ENGR.ORST.EDU Mon Jul 10 08:45:43 2006 From: ollerery at ENGR.ORST.EDU (Ryan Ollerenshaw) Date: Mon, 10 Jul 2006 08:45:43 -0700 Subject: WMS map download In-Reply-To: <5AA6ED8DA479B048BAD1A84DAC2F07EB0890C7@rws-s001000.ad.rws.nl> Message-ID: I really appreciate your help but I am still a little unclear on exactly what to do. I understand the mapscript for a WCS request, but I am still unsure how to download the data once it is returned from the server. You gave an example of a WCS GetCoverage Request as: $mapurl .= "request=GetCoverage&coverage=[layer_name]&crs=epsg:28992&resx=25&resy=25&format=image/tiff? So I am assuming that there is some php call that can be used to capture the returned image but I am not sure how to do this. Sorry to ask so many questions but there is just no good documentation out there for WCS. Quoting "Eijnden, Bart van den (AGI)" : > Hi, > > to download at the native resolution you can better use WCS instead of WMS. > > Using WCS you can perform a DescribeCoverage operation which will give you > the native resolution of your image. This can then be used in the GetCoverage > request you request to Mapserver WCS. > > An example snippet of a DescribeCoverage response: > > 25 0 > 0 -25 > > The first one is for the X-direction, the second for Y. So my dataset is at > 25 x 25 meter per pixel resolution. > > Example WCS GetCoverage request: > > $mapurl .= "request=GetCoverage&coverage=[layer_name]&crs=epsg:28992&". > "resx=25&resy=25&format=image/tiff; > > Output format used: > > OUTPUTFORMAT > NAME "GEOTIFF" > DRIVER "GDAL/GTiff" > MIMETYPE "image/tiff" > IMAGEMODE "RGBA" > EXTENSION "tif" > FORMATOPTION "COMPRESS=PACKBITS" > END > > Best regards, > Bart > > > > Quoting "Curtis W. Ruck" : > > > Try using curl with quotes around the url, by having & signs in the command > > you are actually executing multiple commands or trying to. > > > > Thank you for you help Curtis. When i try the command: > > curl -O > "http://neuron/cgi-bin/mapserv?map=../html/mapserver/htdocs/display.map" > > a file is infact downloaded but it is not the image that i am looking for, > infact it is not an image at all, i would assume this is the case becuase i > am > no longer specifying a layer name in the URL. Is there anyway i can download > a > specific layer from MapServer? > > > > > > Quoting Ryan Ollerenshaw : > > > > > I would like to make it possible for a user to download a full resolution > > map > > > from my Linux based WMS. Does anyone know where I can look to get > started > > > implementing such a feature? > > > > It seems that i can use MapServers Web Coverage Services (WCS) to generate > an image using the following in my mapfile: > > > > OUTPUTFORMAT > > NAME GTiff > > DRIVER "GDAL/GTiff" > > MIMETYPE "image/tiff" > > IMAGEMODE "RGB" > > #IMAGEMODE "PC256" > > EXTENSION "tif" > > END > > > > But i am still not getting the full resolution of the images that i am > > requesting. Also i am still unsure how to download this image from the > > command > > line, cant i use something like curl or sftp? When i try to use curl i get > > the > > following: > > > > -- start output -- > > > > [root at neuron ~]# curl -O > > > http://neuron/cgi-bin/mapserv?map=../html/mapserver/htdocs/display.map&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&LAYERS=themis > > [1] 32392 > > [2] 32393 > > [3] 32394 > > [4] 32395 > > [2]- Done SERVICE=WMS > > [3] Done VERSION=1.1.1 > > [root at neuron ~]# % Total % Received % Xferd Average Speed Time > > Time > > Time Current > > Dload Upload Total Spent Left > Speed > > 100 544 0 544 0 0 7019 0 --:--:-- --:--:-- --:--:-- > > 298k > > > > -- end output -- > > > > Then nothing seems to happen. Any help with this would be great, thanks? > > > > > > > > > > > > > Disclaimer > ************************************************************************ > Aan dit bericht kunnen geen rechten worden ontleend. Dit bericht is > uitsluitend bestemd voor de geadresseerde. Als u dit bericht per abuis > hebt ontvangen, wordt u verzocht het te vernietigen en de afzender te > informeren. Wij adviseren u om bij twijfel over de juistheid of de > volledigheid van de mail contact met afzender op te nemen. > > This message shall not constitute any rights or obligations. > This message is intended solely for the addressee. > If you have received this message in error, please delete it and > notify the sender immediately. When in doubt whether this message > is correct or complete, please contact the sender. > ************************************************************************ > > From rama_swamy80 at YAHOO.COM Mon Jul 10 09:09:14 2006 From: rama_swamy80 at YAHOO.COM (rama swamy) Date: Mon, 10 Jul 2006 09:09:14 -0700 Subject: New to mapserver, need some help In-Reply-To: <1319fbba0607071418w77ccc98dp664ab666f4e29c95@mail.gmail.com> Message-ID: hey jeff the link which you gave is not working, thanks for the help though. Do you want me to give an email to howard ....... and even i am trying to compile mapserver with no support and then add the support one by one and see if it works .... Thanks for the help again ... swamy You might also want to check out the windows buildkit for mapserver, put together by Howard Butler (announcement at http://www.nabble.com/Windows-build-kit-for-MSVC-7.1-tf1143108.html#a2997024). You'll find newer buildkit versions at http://hobu.stat.iastate.edu/mapserver/build_output/ jeff rama swamy wrote: > My bad, i wan to install mapserver on windows, iis. I just found this > win32 compilation documentation, I will go through the steps and see if > i can install it .. > > Thanks > Swamy > > */P Kishor /* wrote: > > Unless I am mistaken, in both your emails you haven't specified where > you want to install MapServer... Unix, Linux, Mac, Windows, > handheld... > > There is detailed documentation for installation on different > platforms. For example, if you want to install on FreeBSD, look at > http://mapserver.gis.umn.edu/docs/howto/FreeBSD-install and so on. > > Why don't you read some of the documentation, and then come back with > specific questions. You might get more meaningful help. > > On 7/7/06, rama swamy wrote: > > > > > Thanks for your reply aaron, but in future i might use some > database support > > or some gep spatial formats support which needs manual > configuration right, > > and i think ms4w doesnt allow us to configure mapserver with other > > libraries. So i would want to configure mapserver first and then the > > required libraries. > > > .. > - Hide quoted text - > > > > On 7/7/06, rama swamy wrote: > > > > > > > > > Hi all, i am new to mapserver and i need some help in the > documentation. I > > browsed the UMN website and found that mapserver-4.8.3 is the lastest > > version, can anyone tell me the installation steps for this > verison of > > mapserver. > > > > > > regards, > > > > > > Swamy > > > > > > -- > Puneet Kishor http://punkish.eidesis.org/ > Nelson Inst. for Env. Studies, UW-Madison http://www.ies.wisc.edu/ > Open Source Geospatial Foundation https://edu.osgeo.org/ > > > ------------------------------------------------------------------------ > Sneak preview the all-new Yahoo.com > . It's > not radically different. Just radically better. > > ------------------------------------------------------------------------ > Talk is cheap. Use Yahoo! Messenger to make PC-to-Phone calls. Great > rates starting at 1?/min. > -- Jeff McKenna DM Solutions Group Inc. http://www.dmsolutions.ca --------------------------------- Do you Yahoo!? Next-gen email? Have it all with the all-new Yahoo! Mail Beta. --------------------------------- Do you Yahoo!? Next-gen email? Have it all with the all-new Yahoo! Mail Beta. -------------- next part -------------- An HTML attachment was scrubbed... URL: From rama_swamy80 at YAHOO.COM Mon Jul 10 10:39:44 2006 From: rama_swamy80 at YAHOO.COM (rama swamy) Date: Mon, 10 Jul 2006 10:39:44 -0700 Subject: New to mapserver, need some help In-Reply-To: <20060710160914.93252.qmail@web55708.mail.re3.yahoo.com> Message-ID: sorry jeff, the links are working now ..... may be the server was down rama swamy wrote: hey jeff the link which you gave is not working, thanks for the help though. Do you want me to give an email to howard ....... and even i am trying to compile mapserver with no support and then add the support one by one and see if it works .... Thanks for the help again ... swamy You might also want to check out the windows buildkit for mapserver, put together by Howard Butler (announcement at http://www.nabble.com/Windows-build-kit-for-MSVC-7.1-tf1143108.html#a2997024). You'll find newer buildkit versions at http://hobu.stat.iastate.edu/mapserver/build_output/ jeff rama swamy wrote: > My bad, i wan to install mapserver on windows, iis. I just found this > win32 compilation documentation, I will go through the steps and see if > i can install it .. > > Thanks > Swamy > > */P Kishor /* wrote: > > Unless I am mistaken, in both your emails you haven't specified where > you want to install MapServer... Unix, Linux, Mac, Windows, > handheld... > > There is detailed documentation for installation on different > platforms. For example, if you want to install on FreeBSD, look at > http://mapserver.gis.umn.edu/docs/howto/FreeBSD-install and so on. > > Why don't you read some of the documentation, and then come back with > specific questions. You might get more meaningful help. > > On 7/7/06, rama swamy wrote: > > > > > Thanks for your reply aaron, but in future i might use some > database support > > or some gep spatial formats support which needs manual > configuration right, > > and i think ms4w doesnt allow us to configure mapserver with other > > libraries. So i would want to configure mapserver first and then the > > required libraries. > > > .. > - Hide quoted text - > > > > On 7/7/06, rama swamy wrote: > > > > > > > > > Hi all, i am new to mapserver and i need some help in the > documentation. I > > browsed the UMN website and found that mapserver-4.8.3 is the lastest > > version, can anyone tell me the installation steps for this > verison of > > mapserver. > > > > > > regards, > > > > > > Swamy > > > > > > -- > Puneet Kishor http://punkish.eidesis.org/ > Nelson Inst. for Env. Studies, UW-Madison http://www.ies.wisc.edu/ > Open Source Geospatial Foundation https://edu.osgeo.org/ > > > ------------------------------------------------------------------------ > Sneak preview the all-new Yahoo.com > . It's > not radically different. Just radically better. > > ------------------------------------------------------------------------ > Talk is cheap. Use Yahoo! Messenger to make PC-to-Phone calls. Great > rates starting at 1?/min. > -- Jeff McKenna DM Solutions Group Inc. http://www.dmsolutions.ca --------------------------------- Do you Yahoo!? Next-gen email? Have it all with the all-new Yahoo! Mail Beta. --------------------------------- Do you Yahoo!? Next-gen email? Have it all with the all-new Yahoo! Mail Beta. --------------------------------- Sneak preview the all-new Yahoo.com. It's not radically different. Just radically better. --------------------------------- How low will we go? Check out Yahoo! Messenger?s low PC-to-Phone call rates. -------------- next part -------------- An HTML attachment was scrubbed... URL: From sylvain_duclos at YAHOO.COM Mon Jul 10 11:41:12 2006 From: sylvain_duclos at YAHOO.COM (s duclos) Date: Mon, 10 Jul 2006 11:41:12 -0700 Subject: ruby mapscript: bug in Makefile + GetCapabilities return zlitch ! Message-ID: Hi, I tried to reach: Markus Schnider msr at sourcepole.ch http://www.sourcepole.com but it seem that he is not there anymore any way the makefile need to have ruby.h defines.h commented for the build to work #$(OBJS): ruby.h defines.h mapscript_wrap.c: ../mapscript.i swig -ruby -o mapscript_wrap.c ../mapscript.i Also I'm trying to get very basic stuff out of mapserv (GetCapabilities) -------------------------------------------- map = MapObj.new() map.setMetaData( "ows_onlineresource", "http://dummy.org/" ) wxsReq = OWSRequest.new() wxsReq.setParameter("SERVICE", "WMS") wxsReq.setParameter("VERSION", "1.1.1") wxsReq.setParameter("REQUEST", "GetCapabilities") msIO_installStdoutToBuffer() ret = map.OWSDispatch(wxsReq) p ret p MS_SUCCESS p msIO_getStdoutBufferString() p msIO_getStdoutBufferBytes() print "============WMS_req-req=====================\n" resp.body = req.to_s print "#{req}" print "==========================================\n" --------------------------------------------- and this is what I get from webrick ---------------------------------------------- 2 0 "" "" ============WMS_req-req===================== GET /WMS HTTP/1.1WxSTest.java WxSTest.java Host: s5-imar:2000 User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.4) Gecko/20060508 Firefox/1.5.0.4 Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5 Accept-Language: en-us,en;q=0.5 Accept-Encoding: gzip,deflate Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7 Keep-Alive: 300 Connection: keep-alive Cache-Control: max-age=0 ============================================ 172.23.64.165 - - [09/Jul/2006:08:20:31 EDT] "GET /WMS HTTP/1.1" 200 433 - -> /WMS ------------------------------------------- I tried from the shell and it work OK, now I would like to do the same from ruby so that I can return GetCapabilities to OpenEV. Any hint! thxs, Sylvain. __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com From tkirstine at JDBARNES.COM Mon Jul 10 14:03:34 2006 From: tkirstine at JDBARNES.COM (Travis Kirstine GIS Tech) Date: Mon, 10 Jul 2006 17:03:34 -0400 Subject: label angle follow error Message-ID: Hi I was looking at the Boston FreeMap and noticed that they using the ANGLE FOLLOW in the label definition. We've just updated to mapserver to 4.8.3 and I was hoping to try out ANGLE FOLLOW but I just recieve a error. Is there any trick to use FOLLOW? LAYER DATA data/collector NAME "Collector" TYPE LINE STATUS ON MAXSCALE 250000 MINSCALE 19000 LABELMAXSCALE 190000 LABELMINSCALE 19000 LABELITEM "A_ST_NAME" CLASS STYLE SYMBOL 'line' #vector COLOR 255 255 255 SIZE 3 END STYLE SYMBOL 'line' COLOR 10 10 10 SIZE 1 END LABEL COLOR 0 0 0 OUTLINECOLOR 220 220 220 TYPE truetype FONT verdana SIZE 7 ANGLE AUTO #FOLLOW POSITION uc MINDISTANCE 300 BUFFER 5 END END END Travis From rjames57 at YAHOO.COM Mon Jul 10 14:06:53 2006 From: rjames57 at YAHOO.COM (Randy James) Date: Mon, 10 Jul 2006 14:06:53 -0700 Subject: label angle follow error In-Reply-To: Message-ID: looks like the "FOLLOW" is a comment and the real keyword is "AUTO" ANGLE AUTO randy --- Travis Kirstine GIS Tech wrote: > Hi > I was looking at the Boston FreeMap and noticed that they using the > ANGLE > FOLLOW in the label definition. We've just updated to mapserver to > 4.8.3 > and I was hoping to try out ANGLE FOLLOW but I just recieve a > error. Is > there any trick to use FOLLOW? > > > LAYER > DATA data/collector > NAME "Collector" > TYPE LINE > STATUS ON > MAXSCALE 250000 > MINSCALE 19000 > LABELMAXSCALE 190000 > LABELMINSCALE 19000 > LABELITEM "A_ST_NAME" > CLASS > STYLE > SYMBOL 'line' #vector > COLOR 255 255 255 > SIZE 3 > END > STYLE > SYMBOL 'line' > COLOR 10 10 10 > SIZE 1 > END > LABEL > COLOR 0 0 0 > OUTLINECOLOR 220 220 220 > TYPE truetype > FONT verdana > SIZE 7 > ANGLE AUTO #FOLLOW > POSITION uc > MINDISTANCE 300 > BUFFER 5 > END > END > END > > > Travis > __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com From crschmidt at CRSCHMIDT.NET Mon Jul 10 14:10:08 2006 From: crschmidt at CRSCHMIDT.NET (Christopher Schmidt) Date: Mon, 10 Jul 2006 17:10:08 -0400 Subject: label angle follow error In-Reply-To: Message-ID: On Mon, Jul 10, 2006 at 05:03:34PM -0400, Travis Kirstine GIS Tech wrote: > Hi > I was looking at the Boston FreeMap and noticed that they using the ANGLE > FOLLOW in the label definition. We've just updated to mapserver to 4.8.3 > and I was hoping to try out ANGLE FOLLOW but I just recieve a error. Is > there any trick to use FOLLOW? The Boston Free Map runs against Mapserver 4.9-CVS. ANGLE FOLLOW is new in 4.9, I believe. -- Christopher Schmidt Web Developer From rockwell_001 at YAHOO.COM Mon Jul 10 14:36:20 2006 From: rockwell_001 at YAHOO.COM (rock well) Date: Mon, 10 Jul 2006 14:36:20 -0700 Subject: Does Mapserver 4.8.3 work with windows 2000 and IIS 5 Message-ID: Hi all, i have posted this question earlier but had to luck ..... i have been trying to configure mapserver -4.8.3 on a windows 2000 machine with IIS 5. I tried different options like just having the basic libraries like proj,GD, regex. When i try to generate a map i always get a CGI Error The specified CGI application misbehaved by not returning a complete set of HTTP headers. The headers it did return are: i tried it from php mapscript, from a normal html file same result ..... i dont know what wrong am i doing .... if anyone have configured mapserver with this configuration can you please suggest me, or any information might help ... Thanks a lot for your time, kris --------------------------------- Yahoo! Messenger with Voice. Make PC-to-Phone Calls to the US (and 30+ countries) for 2?/min or less. -------------- next part -------------- An HTML attachment was scrubbed... URL: From andrew at REFRACTIONS.NET Mon Jul 10 16:01:32 2006 From: andrew at REFRACTIONS.NET (Andrew Krakowski) Date: Mon, 10 Jul 2006 16:01:32 -0700 Subject: Does Mapserver 4.8.3 work with windows 2000 and IIS 5 In-Reply-To: <20060710213620.24476.qmail@web34205.mail.mud.yahoo.com> Message-ID: Hi Kris, Have you been able to generate the "No query information to decode. QUERY_STRING is set, but empty." message? Have you read the online IIS MapServer instructions? There are a couple you can find. I'm not sure the difference between IIS 5 and 6 but I've succeeded with MapServer 4.8.3 working on IIS 6.0 on XP. Create a cgi-bin directory in your Inetpub directory and copy the contents of the ms4w\Apache\cgi-bin directory into it. In IIS add this directory as a virtual directory to your web-site. Right-click Properties under the cgi-bin Virtual Directory and select Scripts and Executables for Executables permission in the Virtual Directory Tab. When you right click the mapserv.exe file in IIS and select Browse in IIS you should get the above message. Hope that helps; if not let me know. Andrew rock well wrote: > Hi all, i have posted this question earlier but had to luck ..... i have been trying to configure mapserver -4.8.3 on a windows 2000 machine with IIS 5. I tried different options like just having the basic libraries like proj,GD, regex. When i try to generate a map i always get a > > CGI Error > The specified CGI application misbehaved by not returning a complete set of HTTP headers. The headers it did return are: > > i tried it from php mapscript, from a normal html file same result ..... > > i dont know what wrong am i doing .... if anyone have configured mapserver with this configuration can you please suggest me, or any information might help ... > > Thanks a lot for your time, > kris > > > --------------------------------- > Yahoo! Messenger with Voice. Make PC-to-Phone Calls to the US (and 30+ countries) for 2?/min or less. -- Andrew Krakowski Programmer, Refractions Research Inc. From iansgis at GMAIL.COM Mon Jul 10 17:22:40 2006 From: iansgis at GMAIL.COM (Ian) Date: Mon, 10 Jul 2006 17:22:40 -0700 Subject: Query BUG? Message-ID: I am trying to get BOTH pixel and lat long coordinates for features from a single query in MapServer. Doing a query for one or the other works just fine. Combining both into a single query provides two different results, depending upon the order of the parameters. This query: [shpxy precision=7 xf="|" yf="|"][shpxy proj=image precision=0 xf="|" yf="|"][NAME]--- results in: -111.892 | 40.693 | %.0lf | %.0lf | ,576 | 12 | Salt Lake City Switching the order: [shpxy proj=image precision=0 xf="|" yf="|"][shpxy precision=7 xf="|" yf="|"][NAME]--- results in a msProcessProjection() error stating the projection is not defined. Is this a bug in MapServer? Is it only possible to get a single set of coordinates out of a query? Thank you, Ian -------------- next part -------------- An HTML attachment was scrubbed... URL: From rappleby at HYDRO.GOV.AU Mon Jul 10 18:34:56 2006 From: rappleby at HYDRO.GOV.AU (rappleby) Date: Mon, 10 Jul 2006 18:34:56 -0700 Subject: Mapserver Compilation CGI Problems Message-ID: Hi, Posting this again as I didn't get any response in my original post. I have just downloaded and compiled Mapserv. Everything went smoothly. From abel_soares at SAPO.PT Mon Jul 10 20:23:04 2006 From: abel_soares at SAPO.PT (soares) Date: Mon, 10 Jul 2006 20:23:04 -0700 Subject: epsg help Message-ID: hi all!! i have a shapefile i need to know the epsg code for acessing it via wms, when i open it in arcMap i retrived the following information: ------------------------------------------------------------------------------------ ------------------------------------------------------------------------------------ Projected Coordinate System: Lisboa_Hayford_Gauss_IGeoE Projection: Transverse_Mercator False_Easting: 200000,00000000 False_Northing: 300000,00000000 Central_Meridian: -8,13190611 Scale_Factor: 1,00000000 Latitude_Of_Origin: 39,66666667 Linear Unit: Meter (1,000000) Geographic Coordinate System: GCS_Datum_Lisboa_Hayford Datum: D_Datum_Lisboa_Hayford Prime Meridian: 0 -------------------------------------------------- -------------------------------------------------- but how can i get or define the epsg code?? can i set the projection i any other way in the Mapfile,i.e. not with epsg?? tkx for any information -- View this message in context: http://www.nabble.com/epsg-help-tf1922216.html#a5263092 Sent from the Mapserver - User forum at Nabble.com. From joost at ZEEKAT.NL Mon Jul 10 22:53:14 2006 From: joost at ZEEKAT.NL (Joost Diepenmaat) Date: Tue, 11 Jul 2006 07:53:14 +0200 Subject: Mapserver Compilation CGI Problems In-Reply-To: <5262310.post@talk.nabble.com> Message-ID: On Mon, Jul 10, 2006 at 06:34:56PM -0700, rappleby wrote: > Hi, > > Posting this again as I didn't get any response in my original post. > > I have just downloaded and compiled Mapserv. Everything went smoothly. > > >From the commandline I can do a ./mapserv -v and get the version number and > basic mapserv info as normal. > > --------------------------------------- > bash-3.00# ./mapserv > > This script can only be used to decode form results and > should be initiated as a CGI process via a httpd server. > > bash-3.00# ./mapserv -v > MapServer version 4.8.3 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP > OUTPUT=PDF OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER > SUPPORTS=WMS_CLIENT SUPPORTS=WFS_CLIENT INPUT=TIFF INPUT=EPPL7 INPUT=OGR > INPUT=GDAL INPUT=SHAPEFILE DEBUG=MSDEBUG > --------------------------------------- > > I copy it to my cgi-bin directory and when I run it thourgh my web-browser I > get a whole lot of garble on the screen. The first few lines look like: > > ------------ > ELF I'm quite sure that's the actual binary data of an executable. In other words the program isn't being run as a CGI but served as a normal file. In my experience, that's usually due to either permissions problems or an incorrectly configured apache (either ExecCGI or SCRIPTALIAS should be on). Joost. by the way, as this is my first post here: hello everyone :-) From umberto.nicoletti at GMAIL.COM Mon Jul 10 23:18:22 2006 From: umberto.nicoletti at GMAIL.COM (Umberto Nicoletti) Date: Tue, 11 Jul 2006 08:18:22 +0200 Subject: Problem drawing image with java/mapscript when starting with a blank mapObj In-Reply-To: Message-ID: On 7/10/06, James Dracup wrote: > No need for a bug, I had a play over the weekend and found my error. All's well what ends well! > > I am populating my mapObj from tables in a db. If the value is not null in > the db, I call the corresponding set method in mapscript. In my 'style' > table I have 'size' column which was set to have a default value of 0, and > was never null. I therefore always called styleObj.setSize() - usually > passing 0. That I think is what was messing me up - changing the default to > null for that column fixed the issue. > > The reason it worked when passed through a .map file, and the reason I did > not initially spot the mistake, was because SIZE is not set in the STYLE > section on any of the map files - so it looked as if the mapObjs were the > same, but in fact reloading it caused the size value to be forgotten. > > Umberto, thanks for the prompt response in any case and - at a guess from > your name - congratulations on the World Cup :) > Thanks! We're very proud of our team even in the light of recent scandals... Umberto > Cheers, > James. > > ----Original Message Follows---- > From: "Umberto Nicoletti" > To: "James Dracup" > CC: MAPSERVER-USERS at lists.umn.edu > Subject: Re: [UMN_MAPSERVER-USERS] Problem drawing image with java/mapscript > when starting with a blank mapObj > Date: Sat, 8 Jul 2006 12:11:17 +0200 > > Please open an issue on mapserver bugzilla. > I'll look into ti asap. > > Umberto > > On 7/7/06, James Dracup wrote: > >Hello, > > > >I am using java/mapscript embedded inside a java program and am having a > >few > >problems. I wonder if anybody has any suggestions, or if it is something > >obvious I have missed? > > > >I create a new mapObj in java, but NOT from a .map file, a blank one: > > > >mapObj mapobj = new mapObj(null); > > > >There is then a fairly long and complicated chunk of code to populate that > >mapObj from a db and user input with settings and layers etc. etc. > > > >I finally do: > > > >byte[] bytes = mapobj.draw().getBytes(); > > > >Intending to then further process in java the image returned. > > > >However, I always get a blank (just background colour) image. Initially I > >thought I'd missed something out when setting the parameters for the > >various > >mapscript objects, but, having looked at that for a while, I now do not > >think that is the problem. > > > >If I do a mapobj.save("MapFileName.map") - the .map file outputted is > >perfect, and works fine (displays a map) in all contexts (cgi-bin, java > >mapscript). > > > >I can load that .map file into a new mapObj, and the image produced is > >fine: > > > >mapObj newmapobj = new mapObj("MapFileName.map"); > >byte[] bytes = newmapobj.draw().getBytes(); > > > >If I then do a newmapobj.save("MapFileToCompare.map") - the .map file > >outputted is absolutely and completely identical (did a diff) to the > >original one outputted. > > > >So I am really confused - it seems to me the mapObj's are identical - so > >why > >do I need to go via the file system in order to produce an image? What > >changes, and how can I avoid it? > > > >Any thoughts, > >Thanks, > >James > > > > > From cobra13 at GMAIL.COM Mon Jul 10 23:49:03 2006 From: cobra13 at GMAIL.COM (Thibaut Le Pape) Date: Tue, 11 Jul 2006 08:49:03 +0200 Subject: compiling mapserver: /MT option Message-ID: Hi, I'm compiling mapserver in order to use it with oracle spatial but I need to use the /MT option. I don't know how to activate it, so if someone could tell me how to do it. Many thanx if you can help me. Thibaut -------------- next part -------------- An HTML attachment was scrubbed... URL: From b.vdeijnden at AGI.RWS.MINVENW.NL Tue Jul 11 00:09:52 2006 From: b.vdeijnden at AGI.RWS.MINVENW.NL (Eijnden, Bart van den (AGI)) Date: Tue, 11 Jul 2006 09:09:52 +0200 Subject: WMS map download Message-ID: Hi, you can use a simple PHP script which will present a save as dialog to the user. For an example check out download.php in Chameleon (chameleon.maptools.org). Best regards, Bart -----Oorspronkelijk bericht----- Van: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]Namens Ryan Ollerenshaw Verzonden: maandag 10 juli 2006 17:46 Aan: MAPSERVER-USERS at LISTS.UMN.EDU Onderwerp: Re: [UMN_MAPSERVER-USERS] WMS map download I really appreciate your help but I am still a little unclear on exactly what to do. I understand the mapscript for a WCS request, but I am still unsure how to download the data once it is returned from the server. You gave an example of a WCS GetCoverage Request as: $mapurl .= "request=GetCoverage&coverage=[layer_name]&crs=epsg:28992&resx=25&resy=25&format=image/tiff" So I am assuming that there is some php call that can be used to capture the returned image but I am not sure how to do this. Sorry to ask so many questions but there is just no good documentation out there for WCS. Quoting "Eijnden, Bart van den (AGI)" : > Hi, > > to download at the native resolution you can better use WCS instead of WMS. > > Using WCS you can perform a DescribeCoverage operation which will give you > the native resolution of your image. This can then be used in the GetCoverage > request you request to Mapserver WCS. > > An example snippet of a DescribeCoverage response: > > 25 0 > 0 -25 > > The first one is for the X-direction, the second for Y. So my dataset is at > 25 x 25 meter per pixel resolution. > > Example WCS GetCoverage request: > > $mapurl .= "request=GetCoverage&coverage=[layer_name]&crs=epsg:28992&". > "resx=25&resy=25&format=image/tiff; > > Output format used: > > OUTPUTFORMAT > NAME "GEOTIFF" > DRIVER "GDAL/GTiff" > MIMETYPE "image/tiff" > IMAGEMODE "RGBA" > EXTENSION "tif" > FORMATOPTION "COMPRESS=PACKBITS" > END > > Best regards, > Bart > > > > Quoting "Curtis W. Ruck" : > > > Try using curl with quotes around the url, by having & signs in the command > > you are actually executing multiple commands or trying to. > > > > Thank you for you help Curtis. When i try the command: > > curl -O > "http://neuron/cgi-bin/mapserv?map=../html/mapserver/htdocs/display.map" > > a file is infact downloaded but it is not the image that i am looking for, > infact it is not an image at all, i would assume this is the case becuase i > am > no longer specifying a layer name in the URL. Is there anyway i can download > a > specific layer from MapServer? > > > > > > Quoting Ryan Ollerenshaw : > > > > > I would like to make it possible for a user to download a full resolution > > map > > > from my Linux based WMS. Does anyone know where I can look to get > started > > > implementing such a feature? > > > > It seems that i can use MapServers Web Coverage Services (WCS) to generate > an image using the following in my mapfile: > > > > OUTPUTFORMAT > > NAME GTiff > > DRIVER "GDAL/GTiff" > > MIMETYPE "image/tiff" > > IMAGEMODE "RGB" > > #IMAGEMODE "PC256" > > EXTENSION "tif" > > END > > > > But i am still not getting the full resolution of the images that i am > > requesting. Also i am still unsure how to download this image from the > > command > > line, cant i use something like curl or sftp? When i try to use curl i get > > the > > following: > > > > -- start output -- > > > > [root at neuron ~]# curl -O > > > http://neuron/cgi-bin/mapserv?map=../html/mapserver/htdocs/display.map&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&LAYERS=themis > > [1] 32392 > > [2] 32393 > > [3] 32394 > > [4] 32395 > > [2]- Done SERVICE=WMS > > [3] Done VERSION=1.1.1 > > [root at neuron ~]# % Total % Received % Xferd Average Speed Time > > Time > > Time Current > > Dload Upload Total Spent Left > Speed > > 100 544 0 544 0 0 7019 0 --:--:-- --:--:-- --:--:-- > > 298k > > > > -- end output -- > > > > Then nothing seems to happen. Any help with this would be great, thanks? > > > > > > > > > > > > > Disclaimer > ************************************************************************ > Aan dit bericht kunnen geen rechten worden ontleend. Dit bericht is > uitsluitend bestemd voor de geadresseerde. Als u dit bericht per abuis > hebt ontvangen, wordt u verzocht het te vernietigen en de afzender te > informeren. Wij adviseren u om bij twijfel over de juistheid of de > volledigheid van de mail contact met afzender op te nemen. > > This message shall not constitute any rights or obligations. > This message is intended solely for the addressee. > If you have received this message in error, please delete it and > notify the sender immediately. When in doubt whether this message > is correct or complete, please contact the sender. > ************************************************************************ > > Disclaimer ************************************************************************ Aan dit bericht kunnen geen rechten worden ontleend. Dit bericht is uitsluitend bestemd voor de geadresseerde. Als u dit bericht per abuis hebt ontvangen, wordt u verzocht het te vernietigen en de afzender te informeren. Wij adviseren u om bij twijfel over de juistheid of de volledigheid van de mail contact met afzender op te nemen. This message shall not constitute any rights or obligations. This message is intended solely for the addressee. If you have received this message in error, please delete it and notify the sender immediately. When in doubt whether this message is correct or complete, please contact the sender. ************************************************************************ From crisricana at GMAIL.COM Tue Jul 11 05:21:59 2006 From: crisricana at GMAIL.COM (cris ricana) Date: Tue, 11 Jul 2006 20:21:59 +0800 Subject: Mapserver installation problem on FC4 Message-ID: Hello! I would like some help on the installation of Mapserver in Fedora Core 4. I'm following the 'Verbose Linux Installation' how-to document and finished installing all the needed packages and software up to Mapserver itself. I'm about to compile the Mapserver (Mapserver 4.8.3) but had these errors: . . . /usr/local/lib/libgdal.so: undefined reference to `png_destroy_write_struct at PNG12_0' /usr/local/lib/libgdal.so: undefined reference to `png_write_end at PNG12_0' /usr/local/lib/libgdal.so: undefined reference to `png_set_write_fn at PNG12_0' /usr/local/lib/libgdal.so: undefined reference to `png_destroy_read_struct at PNG12_0' /usr/local/lib/libgdal.so: undefined reference to `png_create_read_struct at PNG12_0' /usr/local/lib/libgdal.so: undefined reference to `png_get_bit_depth at PNG12_0' /usr/local/lib/libgdal.so: undefined reference to `png_set_read_fn at PNG12_0' /usr/local/lib/libgdal.so: undefined reference to `png_get_text at PNG12_0' /usr/local/lib/libgdal.so: undefined reference to `png_set_tRNS at PNG12_0' /usr/local/lib/libgdal.so: undefined reference to `png_read_image at PNG12_0' /usr/local/lib/libgdal.so: undefined reference to `png_error at PNG12_0' /usr/local/lib/libgdal.so: undefined reference to `png_set_error_fn at PNG12_0' /usr/local/lib/libgdal.so: undefined reference to `png_read_info at PNG12_0' /usr/local/lib/libgdal.so: undefined reference to `png_get_color_type at PNG12_0' /usr/local/lib/libgdal.so: undefined reference to `png_read_rows at PNG12_0' /usr/local/lib/libgdal.so: undefined reference to `png_create_write_struct at PNG12_0' /usr/local/lib/libgdal.so: undefined reference to `png_set_IHDR at PNG12_0' /usr/local/lib/libgdal.so: undefined reference to `png_set_PLTE at PNG12_0' /usr/local/lib/libgdal.so: undefined reference to `png_set_packing at PNG12_0' /usr/local/lib/libgdal.so: undefined reference to `png_create_info_struct at PNG12_0' /usr/local/lib/libgdal.so: undefined reference to `png_get_channels at PNG12_0' /usr/local/lib/libgdal.so: undefined reference to `png_get_image_height at PNG12_0' /usr/local/lib/libgdal.so: undefined reference to `png_get_interlace_type at PNG12_0' /usr/local/lib/libgdal.so: undefined reference to `png_write_info at PNG12_0' /usr/local/lib/libgdal.so: undefined reference to `png_get_image_width at PNG12_0' /usr/local/lib/libgdal.so: undefined reference to `png_write_rows at PNG12_0' /usr/local/lib/libgdal.so: undefined reference to `png_sig_cmp at PNG12_0' /usr/local/lib/libgdal.so: undefined reference to `png_get_PLTE at PNG12_0' /usr/local/lib/libgdal.so: undefined reference to `png_get_tRNS at PNG12_0' collect2: ld returned 1 exit status make: *** [shp2img] Error 1 I've already installed libpng-1.2.12 and gdal-1.3.2. Are there other steps that should be done to remove these errors? Thank you very much, Maricris From siukola.antti at GMAIL.COM Tue Jul 11 06:35:58 2006 From: siukola.antti at GMAIL.COM (antti siukola) Date: Tue, 11 Jul 2006 16:35:58 +0300 Subject: Raster layer resample (processing option) Message-ID: Hi! Should the processing option for raster layer work as described in MS RFC 4 (MapServer Raster Resampling). The RFC says it's adopted in MapServer 4.8 but it's not documented in LAYER document. This PROCESSING line doesn't seem to do anything: LAYER NAME "layername" DATA "/url/to/image.tif" TYPE RASTER STATUS ON PROCESSING "RESAMPLE=BILINEAR" END Should it? Cheers! AnttiS From Steve.Lime at DNR.STATE.MN.US Tue Jul 11 07:43:40 2006 From: Steve.Lime at DNR.STATE.MN.US (Steve Lime) Date: Tue, 11 Jul 2006 09:43:40 -0500 Subject: Query BUG? Message-ID: It should be possible but this may well be a bug. A copy of the feature is used for just this reason. I'll have a look at the code and create a quick test case and get back with you. What version are you using? Steve >>> Ian 7/10/2006 7:22:40 PM >>> I am trying to get BOTH pixel and lat long coordinates for features from a single query in MapServer. Doing a query for one or the other works just fine. Combining both into a single query provides two different results, depending upon the order of the parameters. This query: [shpxy precision=7 xf="|" yf="|"][shpxy proj=image precision=0 xf="|" yf="|"][NAME]--- results in: -111.892 | 40.693 | %.0lf | %.0lf | ,576 | 12 | Salt Lake City Switching the order: [shpxy proj=image precision=0 xf="|" yf="|"][shpxy precision=7 xf="|" yf="|"][NAME]--- results in a msProcessProjection() error stating the projection is not defined. Is this a bug in MapServer? Is it only possible to get a single set of coordinates out of a query? Thank you, Ian From warmerdam at POBOX.COM Tue Jul 11 08:09:53 2006 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Tue, 11 Jul 2006 11:09:53 -0400 Subject: Raster layer resample (processing option) In-Reply-To: Message-ID: antti siukola wrote: > Hi! > > Should the processing option for raster layer work as described in MS > RFC 4 (MapServer Raster Resampling). The RFC says it's adopted in > MapServer 4.8 but it's not documented in LAYER document. > This PROCESSING line doesn't seem to do anything: > > LAYER > NAME "layername" > DATA "/url/to/image.tif" > TYPE RASTER > STATUS ON > PROCESSING "RESAMPLE=BILINEAR" > END > > Should it? AnttiS, Yes, bilinear resampling should be supported in 4.8.x. The effects are generally not very visible unless you zoom in well past the native resolution of the raster. If you turn on debugging, you should see something about calling msResampleGDALToMap() if the resampling is recognised. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | President OSGF, http://osgeo.org From denis.nadeau at GMAIL.COM Tue Jul 11 08:15:20 2006 From: denis.nadeau at GMAIL.COM (Denis Nadeau) Date: Tue, 11 Jul 2006 11:15:20 -0400 Subject: SWF movie from RASTER Layers Message-ID: Hi, Would somebody know how to create a SWF movie from a list RASTER Layers? I want a SWF file that will loop indefinitely on all my RASTER Layers using TILEINDEX. I was able to create all the SWF layers from my RASTER layers, but I don't know how to "play" them to get a little movie. What I want to do is to track a hurricane. Regards, Denis -------------- next part -------------- An HTML attachment was scrubbed... URL: From bart_doggers at YAHOO.COM Tue Jul 11 09:34:26 2006 From: bart_doggers at YAHOO.COM (Albert Anderson) Date: Tue, 11 Jul 2006 09:34:26 -0700 Subject: query string question Message-ID: Hi All, I have a question about ITEMNQUERY mode. I want to search for two different items at the same time like AVE and ST. Map Mode: ITEMNQUERY Query Layer:Roads Query Item:Str_type Query string:/AVE/ and that just brings up the AVE. So how do I get the AVE and ST load query. What should the query string look like? Can some help me. Thanks, Albert --------------------------------- Sneak preview the all-new Yahoo.com. It's not radically different. Just radically better. -------------- next part -------------- An HTML attachment was scrubbed... URL: From bob.basques at CI.STPAUL.MN.US Tue Jul 11 09:36:52 2006 From: bob.basques at CI.STPAUL.MN.US (Bob Basques) Date: Tue, 11 Jul 2006 11:36:52 -0500 Subject: SDF (AutoDESK) file format. Message-ID: All, Is there a Mapserver data Reader for this file type? Thanks bobb From warmerdam at POBOX.COM Tue Jul 11 09:59:15 2006 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Tue, 11 Jul 2006 12:59:15 -0400 Subject: SDF (AutoDESK) file format. In-Reply-To: <44B3D3A4.6070601@ci.stpaul.mn.us> Message-ID: Bob Basques wrote: > All, > > Is there a Mapserver data Reader for this file type? Bob, No, not at this time, though I've thought about doing something along this line. Either as a general OGR driver for FDO, or somehow extracting the SDF code from FDO and building a driver directly on it. I've no timeline for such work though. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | President OSGF, http://osgeo.org From iansgis at GMAIL.COM Tue Jul 11 10:04:48 2006 From: iansgis at GMAIL.COM (Ian) Date: Tue, 11 Jul 2006 10:04:48 -0700 Subject: Query BUG? In-Reply-To: Message-ID: Thank you for the response Steve. What did you mean by "A copy of the feature is used for just this reason" ? I am using MapServer version 4.6.2 Ian -------------- next part -------------- An HTML attachment was scrubbed... URL: From techie at OMLET.CO.UK Tue Jul 11 10:09:56 2006 From: techie at OMLET.CO.UK (James Tuthill) Date: Tue, 11 Jul 2006 18:09:56 +0100 Subject: Map File Work Message-ID: Hi, I'm not sure if this is the most appropriate place to ask so apologies in advance - but I am trying develop the styling for a MapServer map. Unfortunately, I am under really over worked and simply don't have the time to do a good job on my own. I don't know anyone else who can help.... so I was wondering if there is someone on this list who would be able to help me develop the styling a map file? I have the data in shape files and examples of map styles that I like but simply not enough time to get it done. The map is going to be used my company and I have small budget. If you are interested and would have the time to develop the map file and styling then you can email me directly james at omlet.co.uk and I will send you some more details, Thanks, James james at omlet.co.uk From sylvain_duclos at YAHOO.COM Tue Jul 11 10:16:38 2006 From: sylvain_duclos at YAHOO.COM (s duclos) Date: Tue, 11 Jul 2006 10:16:38 -0700 Subject: SOLVED: minimal ruby mapserver GetCapabilities (was Re: [UMN_MAPSERVER-USERS] ruby mapscript: bug in Makefile + GetCapabilities return zlitch !) In-Reply-To: <20060710184112.31681.qmail@web30704.mail.mud.yahoo.com> Message-ID: Hi, I'm following up on myself for googlers .. Bellow is a minimal WMS/mapserver in ruby that send back to the browser the capabilities of the WMS server. No .map or any other config. It work in OpenEV also. Cheers, Sylvain. -------------------->8------------------------------ #!/usr/bin/ruby require 'webrick' include WEBrick require "mapscript" include Mapscript WMS_proc = lambda do |req, resp| resp['Content-Type'] = "text/xml" map = MapObj.new() map.setMetaData( "ows_onlineresource", "http://dummy.org/" ) wxsReq = OWSRequest.new() wxsReq.setParameter("SERVICE", "WMS") wxsReq.setParameter("VERSION", "1.1.1") wxsReq.setParameter("REQUEST", "GetCapabilities") msIO_installStdoutToBuffer() ret = map.OWSDispatch(wxsReq) resp.body = msIO_getStdoutBufferBytes().to_s end WMS = HTTPServlet::ProcHandler.new(WMS_proc) s = HTTPServer.new(:Port => 2000) s.mount("/WMS", WMS) trap("INT"){ s.shutdown } s.start -------------------->8------------------------------ --- s duclos wrote: > Hi, > > I tried to reach: > Markus Schnider > msr at sourcepole.ch > http://www.sourcepole.com > > but it seem that he is not there anymore > > any way the makefile need to have ruby.h defines.h > commented > for the build to work > > #$(OBJS): ruby.h defines.h > mapscript_wrap.c: ../mapscript.i > swig -ruby -o mapscript_wrap.c > ../mapscript.i > > > > > > > > Also I'm trying to get very basic stuff out of > mapserv > (GetCapabilities) > > -------------------------------------------- > map = MapObj.new() > map.setMetaData( "ows_onlineresource", > "http://dummy.org/" ) > > wxsReq = OWSRequest.new() > wxsReq.setParameter("SERVICE", "WMS") > wxsReq.setParameter("VERSION", "1.1.1") > wxsReq.setParameter("REQUEST", "GetCapabilities") > > msIO_installStdoutToBuffer() > > ret = map.OWSDispatch(wxsReq) > p ret > p MS_SUCCESS > > p msIO_getStdoutBufferString() > p msIO_getStdoutBufferBytes() > > print > "============WMS_req-req=====================\n" > resp.body = req.to_s > print "#{req}" > print > "==========================================\n" > --------------------------------------------- > > > and this is what I get from webrick > > ---------------------------------------------- > 2 > 0 > "" > "" > ============WMS_req-req===================== > GET /WMS HTTP/1.1WxSTest.java WxSTest.java > Host: s5-imar:2000 > User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; > en-US; rv:1.8.0.4) Gecko/20060508 Firefox/1.5.0.4 > Accept: > text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5 > Accept-Language: en-us,en;q=0.5 > Accept-Encoding: gzip,deflate > Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7 > Keep-Alive: 300 > Connection: keep-alive > Cache-Control: max-age=0 > > ============================================ > 172.23.64.165 - - [09/Jul/2006:08:20:31 EDT] "GET > /WMS > HTTP/1.1" 200 433 > - -> /WMS > ------------------------------------------- > > > > > I tried from the shell and it work OK, now I would > like to do the same from ruby so that > I can return GetCapabilities to OpenEV. > > > Any hint! > > > thxs, > > Sylvain. > > > > __________________________________________________ > Do You Yahoo!? > Tired of spam? Yahoo! Mail has the best spam > protection around > http://mail.yahoo.com > __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com From ollerery at ENGR.ORST.EDU Tue Jul 11 10:18:45 2006 From: ollerery at ENGR.ORST.EDU (Ryan Ollerenshaw) Date: Tue, 11 Jul 2006 10:18:45 -0700 Subject: Blank WCS In-Reply-To: <44B3BF41.3090906@pobox.com> Message-ID: I am trying to create a WCS from my already existing WMS mapfile. I know that my mapserver supports WCS but when request a DescribeCoverage through the URL it reports back that i do not have any coverages in my map file when there should be three: Here is my mapfile: NAME WMS_WFS_WCS_server STATUS ON SIZE 1000 600 EXTENT 0 -90 360 90 UNITS METERS SHAPEPATH "../data" IMAGECOLOR 255 255 255 WEB TEMPLATE test_template.html IMAGEPATH "/tmp/ms_tmp/" IMAGEURL "/ms_tmp/" METADATA WCS_NAME "WMS Mars MapServer" WCS_ACCESSCONSTRAINTS "NONE" WCS_ONLINERESOURCE "http://neuron/cgi-bin/mapserv?map=display.map&" WCS_SRS "EPSG:4326" #"AUTO:42003" WCS_FEES "NONE" END END PROJECTION "init=epsg:4326" END #GTiff will not display in browser but a PNG will OUTPUTFORMAT NAME GEOTIFF DRIVER "GDAL/GTiff" MIMETYPE "image/tiff" IMAGEMODE "RGBA" #IMAGEMODE "PC256" EXTENSION "tif" FORMATOPTION "COMPRESS=PACKBITS" END LAYER NAME "themis" STATUS ON TILEINDEX "thm_dir.shp" TILEITEM "location" TYPE RASTER DUMP TRUE METADATA wcs_title "THEMIS_Data" END END LAYER NAME "moc" STATUS ON TILEINDEX "moc_256.shp" TILEITEM "location" TYPE RASTER METADATA WCS_TITLE "MOC_Data" wcs_description "test" END END LAYER NAME "mola" STATUS ON TILEINDEX "mola_color.shp" TILEITEM "location" TYPE RASTER METADATA WCS_TITLE "MOLA_Data" END END END # of map file From julien.63 at FREE.FR Tue Jul 11 10:26:01 2006 From: julien.63 at FREE.FR (Julien Bessiere) Date: Tue, 11 Jul 2006 19:26:01 +0200 Subject: epsg help In-Reply-To: <5263092.post@talk.nabble.com> Message-ID: Hi Soares, Have a look here, it could maybe help you : http://www.remotesensing.org/geotiff/proj_list/transverse_mercator.html bye Julien Selon soares : > hi all!! > > i have a shapefile i need to know the epsg code for acessing it via wms, > when i open it in arcMap i retrived the following information: > ------------------------------------------------------------------------------------ > ------------------------------------------------------------------------------------ > Projected Coordinate System: Lisboa_Hayford_Gauss_IGeoE > Projection: Transverse_Mercator > False_Easting: 200000,00000000 > False_Northing: 300000,00000000 > Central_Meridian: -8,13190611 > Scale_Factor: 1,00000000 > Latitude_Of_Origin: 39,66666667 > Linear Unit: Meter (1,000000) > > Geographic Coordinate System: > GCS_Datum_Lisboa_Hayford > Datum: D_Datum_Lisboa_Hayford > Prime Meridian: 0 > -------------------------------------------------- > -------------------------------------------------- > but how can i get or define the epsg code?? > can i set the projection i any other way in the Mapfile,i.e. not with epsg?? > tkx for any information > -- > View this message in context: > http://www.nabble.com/epsg-help-tf1922216.html#a5263092 > Sent from the Mapserver - User forum at Nabble.com. > From bartvde at XS4ALL.NL Tue Jul 11 10:35:59 2006 From: bartvde at XS4ALL.NL (Bart van den Eijnden (OSGIS)) Date: Tue, 11 Jul 2006 19:35:59 +0200 Subject: Blank WCS In-Reply-To: <1152638325.44b3dd759d685@webmail.oregonstate.edu> Message-ID: Mapserver WCS needs more info/metadata for tileindex layers, see the comments at the end of: http://mapserver.gis.umn.edu/docs/howto/WCSServerFormatHowTo/?searchterm=WCS Btw, the best way to check is start with the GetCapabilities response for WCS. Best regards, Bart Ryan Ollerenshaw wrote: >I am trying to create a WCS from my already existing WMS mapfile. I know that >my mapserver supports WCS but when request a DescribeCoverage through the URL >it reports back that i do not have any coverages in my map file when there >should be three: > >xsi:schemaLocation="http://www.opengis.net/wcs >http://schemas.opengeospatial.net/wcs/1.0.0/describeCoverage.xsd"> > > >Here is my mapfile: > >NAME WMS_WFS_WCS_server >STATUS ON >SIZE 1000 600 >EXTENT 0 -90 360 90 >UNITS METERS >SHAPEPATH "../data" >IMAGECOLOR 255 255 255 > > >WEB > TEMPLATE test_template.html > IMAGEPATH "/tmp/ms_tmp/" > IMAGEURL "/ms_tmp/" > METADATA > WCS_NAME "WMS Mars MapServer" > WCS_ACCESSCONSTRAINTS "NONE" > WCS_ONLINERESOURCE "http://neuron/cgi-bin/mapserv?map=display.map&" > WCS_SRS "EPSG:4326" #"AUTO:42003" > WCS_FEES "NONE" > END >END > >PROJECTION > "init=epsg:4326" >END > >#GTiff will not display in browser but a PNG will >OUTPUTFORMAT > NAME GEOTIFF > DRIVER "GDAL/GTiff" > MIMETYPE "image/tiff" > IMAGEMODE "RGBA" > #IMAGEMODE "PC256" > EXTENSION "tif" > FORMATOPTION "COMPRESS=PACKBITS" >END > >LAYER > NAME "themis" > STATUS ON > TILEINDEX "thm_dir.shp" > TILEITEM "location" > TYPE RASTER > DUMP TRUE > METADATA > wcs_title "THEMIS_Data" > END >END > >LAYER > NAME "moc" > STATUS ON > TILEINDEX "moc_256.shp" > TILEITEM "location" > TYPE RASTER > METADATA > WCS_TITLE "MOC_Data" > wcs_description "test" > END >END > >LAYER > NAME "mola" > STATUS ON > TILEINDEX "mola_color.shp" > TILEITEM "location" > TYPE RASTER > METADATA > WCS_TITLE "MOLA_Data" > END >END > > > >END # of map file > > > > -- Bart van den Eijnden OSGIS, Open Source GIS http://www.osgis.nl From giuseppe.derossi at EMAIL.IT Tue Jul 11 11:38:24 2006 From: giuseppe.derossi at EMAIL.IT (Giuseppe De Rossi) Date: Tue, 11 Jul 2006 20:38:24 +0200 Subject: trouble in tileindex technique Message-ID: Hi, I'm performing for the first time the tile index technique in Win xp Environment. I've generated the *.qix file and I've used tile4ms to generate F636_PRG-IDX.(dbf,shx,idx), I've modified the .map file in the following way LAYER NAME "F636_PRG-IDX" STATUS ON TILEINDEX "F636_PRG-IDX.shp" TILEITEM "F636_PRG-IDX" TYPE POLYGON END But I get this error: Class : SoapFaultWrapperMessage : Mapserver error: Error in msDrawMap(): Failed to draw layer named 'F636_PRG-IDX'. Error in msDBFGetItemIndex(): Item 'F636_PRG-IDX' not found. am I supposed to perform other action ? Thanks in advance and best regards. -- Email.it, the professional e-mail, gratis per te: http://www.email.it/f Sponsor: Tutta la musica che vuoi a portata di click! Entra in www.radiosnj.com Clicca qui: http://adv.email.it/cgi-bin/foclick.cgi?mid=5177&d=20060711 From jmckenna at DMSOLUTIONS.CA Tue Jul 11 11:58:41 2006 From: jmckenna at DMSOLUTIONS.CA (Jeff McKenna) Date: Tue, 11 Jul 2006 14:58:41 -0400 Subject: trouble in tileindex technique In-Reply-To: <87924090e3a78e0cea0b1f25433c5f75@83.184.194.195> Message-ID: TILEITEM is the name of the field in your index F636_PRG-IDX.dbf file containing the paths. It is "location" by default. Whatever yours is should be specified in your TILEITEM parameter of your layer. jeff Giuseppe De Rossi wrote: > Hi, > I'm performing for the first time the tile index technique in Win xp > Environment. > I've generated the *.qix file and I've used tile4ms to generate > F636_PRG-IDX.(dbf,shx,idx), I've modified the .map file in the following way > > > > LAYER > NAME "F636_PRG-IDX" > STATUS ON > TILEINDEX "F636_PRG-IDX.shp" > TILEITEM "F636_PRG-IDX" > TYPE POLYGON > END > > But I get this error: > > > Class : SoapFaultWrapperMessage : Mapserver error: Error in msDrawMap(): > Failed to draw layer named 'F636_PRG-IDX'. > Error in msDBFGetItemIndex(): Item 'F636_PRG-IDX' not found. > > am I supposed to perform other action ? > > Thanks in advance and best regards. > > > > > -- Jeff McKenna DM Solutions Group Inc. http://www.dmsolutions.ca From dylan.beaudette at GMAIL.COM Tue Jul 11 12:45:22 2006 From: dylan.beaudette at GMAIL.COM (Dylan Beaudette) Date: Tue, 11 Jul 2006 12:45:22 -0700 Subject: ka-map: pgsql layers not rendering tiles Message-ID: Greetings, Having a blast using ka-map and mapserver, but ran into a bit of trouble when including a layer from a postgis source. here is the layer defs from my map file, which work fine in a dbox-style mapserver application: ----------------- LAYER NAME "county-boundaries" TYPE POLYGON PROJECTION "+proj=aea +x_0=0.0 +y_0=0 +lon_0=-96 +lat_0=40.0 +lat_1=20 +lat_2=60.0 +datum=NAD83" END DATA "gen_2 from poly_county using unique county_id" CONNECTION "user=xxx password=xxx dbname=tiger2005se host=localhost port=5432" CONNECTIONTYPE postgis STATUS DEFAULT TRANSPARENCY ALPHA STATUS DEFAULT MINSCALE 24000 LABELMAXSCALE 2037392 LABELITEM "county_name" CLASS NAME "County Boundaries" STYLE ANTIALIAS TRUE WIDTH 2 OUTLINECOLOR 1 1 1 END LABEL TYPE TRUETYPE FONT sans SIZE 13 ANTIALIAS TRUE COLOR 20 20 220 OUTLINECOLOR 255 255 255 POSITION CC PARTIALS FALSE BUFFER 2 END END END ---------------- I read here (http://lists.maptools.org/pipermail/ka-map-users/2005-December/000721.html) that ka-map will only work with postgis data if the projection string in the layer defs matched the SRID of the geometry itself. noticing that my geometry columns had an incorrect SRID, i changed this with the postgis function setsrid() ... however when this layer is enabled, ka-map will not generate tiles. also, tile.php returns the following error: Call to a member function on a non-object in /data1/website/kamap/tile.php on line 225 this appears to be where ka-map is either creating or saving the image: $szMetaImg = $szMetaDir."/t".$metaTop."l".$metaLeft.$szImageExtension; $oImg = $oMap->draw(); $oImg->saveImage($szMetaImg); $oImg->free(); .... i have a fully functional ka-map application using this same set of temp directories, and config files. does anyone have any ideas on this? thanks in advance! -- Dylan Beaudette Soils and Biogeochemistry Graduate Group University of California at Davis 530.754.7341 From awiens at GMAIL.COM Tue Jul 11 14:53:13 2006 From: awiens at GMAIL.COM (Andrew Wiens) Date: Wed, 12 Jul 2006 09:53:13 +1200 Subject: error during make (mac os x) Message-ID: Hello. I've been trying to build mapserver on Mac OS X 10.4.7 (Intel), but have had no success. I don't think that the available precompiled binaries will work for my application as I need the Ruby Mapscript libraries. I've included the error and configure output below. Any help solving the problem would be greatly appreciated. Thanks. --Andy I'm getting the following error: gcc -O2 -fPIC -Wall -DIGNORE_MISSING_DATA -DHAVE_VSNPRINTF -DUSE_EPPL -DUSE_PROJ -DUSE_WMS_SVR -DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_GDIMAGEGIFPTR -DGD_HAS_GETBITMAPFONTS -DUSE_PDF -DUSE_OGR -DUSE_GDAL -DUSE_GEOS -DUSE_ICONV -DUSE_POSTGIS -DUSE_THREAD -DUSE_ZLIB -I/usr/local/include -I/usr/local/include -I/usr/local/include -I/usr/local/pgsql/include -I/usr/local/include shp2img.o -L. -lmap -L/usr/local/lib -lgd -ljpeg -lfreetype -lpng -lz -L/usr/X11R6/lib -lXpm -lX11 -lpdf -ljpeg -lfreetype -lpng -lz -L/usr/X11R6/lib -lXpm -lX11 -L/usr/local/lib -lproj -ljpeg -L/usr/local/lib -lgdal -L/usr/local/pgsql/lib -lpq -L/usr/local/lib -lgeos -lpthread -liconv -lz -lm -lstdc++ -o shp2img /usr/bin/ld: Undefined symbols: __Unwind_Resume collect2: ld returned 1 exit status make: *** [shp2img] Error 1 My configuration configure options and output are as follows: ./configure \ --mandir=/usr/local/share/man \ --with-threads \ --with-proj=/usr/local \ --with-gdal=/usr/local/bin/gdal-config \ --with-ogr=/usr/local/bin/gdal-config \ --with-gd=/usr/local \ --with-xpm=/usr/X11R6 \ --with-geos=/usr/local/bin/geos-config \ --with-postgis=/usr/local/pgsql/bin/pg_config \ --with-freetype=/usr/local/bin/freetype-config \ --with-httpd=/usr/sbin/httpd tfo:~/src/mapserver-4.8.3 andy$ ./config_opts checking for gcc... gcc checking for C compiler default output file name... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ANSI C... none needed checking for g++... g++ checking whether we are using the GNU C++ compiler... yes checking whether g++ accepts -g... yes checking for ranlib... ranlib checking for flex... flex checking for yywrap in -lfl... yes checking lex output file root... lex.yy checking whether yytext is a pointer... yes checking for bison... bison -y checking if compiler supports -R... no checking if compiler supports -Wl,-rpath,... no checking if compiler supports -Wl,-R... no checking for exp in -lm... yes checking for __gxx_personality_v0 in -lstdc++... yes checking how to run the C preprocessor... gcc -E checking for egrep... grep -E checking for ANSI C header files... yes checking for strcasecmp... yes checking for strncasecmp... yes checking for strdup... yes checking for strlcat... yes checking for vsnprintf... yes MapServer Version from map.h: '4.8.3' configure: checking where FreeType 2.x is installed... using libfreetype from -L/usr/local/lib -lfreetype -lz checking for FT_Init_FreeType in -lfreetype... yes using libfreetype -lfreetype from system libs. configure: checking where Zlib is installed... checking for zlibVersion in -lz... yes using libz from system libs (-DUSE_ZLIB). configure: checking where PNG is installed... checking for png_init_io in -lpng... yes using libpng from system libs. configure: checking whether we should include JPEG support... checking for jpeg_read_header in -ljpeg... yes using libjpeg from system libs. configure: checking where libXpm is installed... using libXpm from -L/usr/X11R6/lib -lXpm -lX11 configure: checking where libiconv is installed... checking for iconv_open in -lc... no checking for libiconv_open in -liconv... yes using libiconv from system libs. libiconv found. Enabling internationalization (-DUSE_ICONV) configure: checking for GD 2.0.16 or higher... checking for gdFontCacheSetup in -lgd... yes using libgd 2.0.16 (or higher) from -L/usr/local/lib -lgd -ljpeg -lfreetype -lpng -lz -L/usr/X11R6/lib -lXpm -lX11 checking for gdImageGif in -lc... yes checking for gdImagePng in -lc... yes checking for gdImageJpeg in -lc... yes checking for gdImageWBMP in -lc... yes checking for gdImageStringFT in -lc... yes checking for gdImageGifPtr in -lc... yes checking for gdFontGetTiny in -lc... yes using GD ( -DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_GDIMAGEGIFPTR -DGD_HAS_GETBITMAPFONTS) from /usr/local. configure: checking whether we should include PDF support... checking for PDF_setlinewidth in -lpdf... yes checking for PDF_setrgbcolor in -lpdf... yes checking for PDF_moveto in -lpdf... yes checking for PDF_curveto in -lpdf... yes checking for PDF_show_xy in -lpdf... yes using libpdf from system libs. configure: checking whether we should include EPPL7 support... including EPPL7 support. configure: checking whether we should include PROJ.4 support... checking for pj_transform in -lproj... yes using PROJ.4 from /usr/local. configure: checking whether we should include thread safe support... checking for pthread_create in -lpthread... yes using -lpthread from system libs. configure: checking whether we should include ESRI SDE support... ESRI SDE support not requested. configure: checking whether we should compile in MPATROL support... MPATROL support not requested. checking if GEOS support requested... yes, user supplied geos-config (/usr/local/bin/geos-config) configure: checking whether we should include OGR support... OGR enabled (-DUSE_OGR). checking if GDAL support requested... yes, user supplied gdal-config (/usr/local/bin/gdal-config) checking checking ms JPEG output... no we, have GDAL available. configure: checking whether we should include TIFF support... disabled since gdal is in use checking if PostGIS support requested... yes, user supplied pg_config checking if MyGIS support requested... no checking if OracleSpatial support requested... no checking if MING/Flash support requested... no configure: checking whether we should include WMS Server support... OGC WMS compatibility enabled (-DUSE_WMS_SVR). configure: checking whether we should include WFS Server support... OGC WFS Server support not requested. configure: checking whether we should include WCS Server support... OGC WCS Server support not requested. configure: checking whether we should include WMS Client Connections support... configure: checking whether we should include WFS Client Connections support... configure: checking for curl-config... configure: checking whether FastCGI support should be enabled... FastCGI support not enabled. configure: checking HTTPD server (Apache) version... using user-supplied httpd (/usr/sbin/httpd) /usr/sbin/httpd version is Apache/1.3.33 (1003033). Compiling with -DIGNORE_MISSING_DATA. checking compiler warnings... basic configure: checking whether we should enable debug features... configure: checking for PHP/MapScript module options... PHP/MapScript module not configured. checking if --enable-runpath requested... no configure: creating ./config.status config.status: creating Makefile config.status: creating mapscript/java/Makefile config.status: creating mapscript/csharp/Makefile ------------------------------------------------------------------------------------------------------ -------------- next part -------------- An HTML attachment was scrubbed... URL: From dylan.beaudette at GMAIL.COM Tue Jul 11 15:38:20 2006 From: dylan.beaudette at GMAIL.COM (Dylan Beaudette) Date: Tue, 11 Jul 2006 15:38:20 -0700 Subject: ka-map: pgsql layers not rendering tiles [solved] In-Reply-To: <200607111245.22406.dylan.beaudette@gmail.com> Message-ID: Looks like my php_mapscript.so library was from a previous compile, before PostGreSQL was included! Whoops! Dylan On Tuesday 11 July 2006 12:45, Dylan Beaudette wrote: > Greetings, > > Having a blast using ka-map and mapserver, but ran into a bit of trouble > when including a layer from a postgis source. > > here is the layer defs from my map file, which work fine in a dbox-style > mapserver application: > > ----------------- > LAYER > NAME "county-boundaries" > TYPE POLYGON > PROJECTION > "+proj=aea +x_0=0.0 +y_0=0 +lon_0=-96 +lat_0=40.0 +lat_1=20 +lat_2=60.0 > +datum=NAD83" > END > DATA "gen_2 from poly_county using unique county_id" > > CONNECTION "user=xxx password=xxx dbname=tiger2005se host=localhost > port=5432" > CONNECTIONTYPE postgis > STATUS DEFAULT > TRANSPARENCY ALPHA > STATUS DEFAULT > MINSCALE 24000 > LABELMAXSCALE 2037392 > LABELITEM "county_name" > CLASS > NAME "County Boundaries" > STYLE > ANTIALIAS TRUE > WIDTH 2 > OUTLINECOLOR 1 1 1 > END > LABEL > TYPE TRUETYPE > FONT sans > SIZE 13 > ANTIALIAS TRUE > COLOR 20 20 220 > OUTLINECOLOR 255 255 255 > POSITION CC > PARTIALS FALSE > BUFFER 2 > END > > END > > END > > ---------------- > > I read here > (http://lists.maptools.org/pipermail/ka-map-users/2005-December/000721.html >) that ka-map will only work with postgis data if the projection string in > the layer defs matched the SRID of the geometry itself. > > noticing that my geometry columns had an incorrect SRID, i changed this > with the postgis function setsrid() ... however when this layer is enabled, > ka-map will not generate tiles. also, tile.php returns the following error: > > Call to a member function on a non-object in /data1/website/kamap/tile.php > on line 225 > > this appears to be where ka-map is either creating or saving the image: > > $szMetaImg = > $szMetaDir."/t".$metaTop."l".$metaLeft.$szImageExtension; $oImg = > $oMap->draw(); > $oImg->saveImage($szMetaImg); > $oImg->free(); > > .... i have a fully functional ka-map application using this same set of > temp directories, and config files. > > does anyone have any ideas on this? > > thanks in advance! -- Dylan Beaudette Soils and Biogeochemistry Graduate Group University of California at Davis 530.754.7341 From woklist at KYNGCHAOS.COM Tue Jul 11 15:22:42 2006 From: woklist at KYNGCHAOS.COM (William Kyngesburye) Date: Tue, 11 Jul 2006 17:22:42 -0500 Subject: error during make (mac os x) In-Reply-To: Message-ID: Known problem with Xcode 2.2+. In makefile.in change the LD line to: LD=@CXX@ then reconfigure and make. Also, you can reuse my Graphics Libs and GIS Libs so you don't have to build that whole mess. Edit configure (grep find and replace in BBEdit or TextWrangler works great for this) and replace all (using word/case sensitive): (lib(png|jpeg|gd|proj|pdf|Xpm)).a with: \1.dylib And specify locations for all libraries in configure, since they're not in 'normal' locations that would be found automatically. ./configure --with-zlib=/usr --with-proj=/usr/local/gislibs --with- gdal=/usr/local/gislibs/bin/gdal-config --with-ogr --with-gd=/usr/ local/graphicslibs --with-png=/usr/local/graphicslibs --with-jpeg=/ usr/local/graphicslibs --with-freetype=/usr/local/graphicslibs/bin/ freetype-config --with-xpm=/usr/local/graphicslibs --with-pdf=/usr/ local/graphicslibs --with-ming=/usr/local/graphicslibs --with-geos=/ usr/local/gislibs/bin/geos-config --with-postgis=/usr/local/pgsql/bin/ pg_config --with-wfs --with-wcs --with-wfsclient --with-wmsclient -- with-curl-config=/usr/local/baselibs/bin/curl-config I probably won't do a Ruby MapScript binary for my Mac OS X package, more stuff to install just to get it going. I think I tried installing SWIG a while back with not much luck, but it's probably improved now. One possibility just occurred to me to simplify things - many (all?) of the mapscript variations use the mapscriptvars file generated during the mapserv build, and libmap.a of course. I could add those to the package so all you would need to do is the Ruby build. If you would like to try this, let me know. On Jul 11, 2006, at 4:53 PM, Andrew Wiens wrote: > Hello. I've been trying to build mapserver on Mac OS X 10.4.7 > (Intel), but have had no success. I don't think that the available > precompiled binaries will work for my application as I need the > Ruby Mapscript libraries. I've included the error and configure > output below. Any help solving the problem would be greatly > appreciated. Thanks. --Andy > > I'm getting the following error: > > gcc -O2 -fPIC -Wall -DIGNORE_MISSING_DATA -DHAVE_VSNPRINTF - > DUSE_EPPL -DUSE_PROJ -DUSE_WMS_SVR -DUSE_GD_GIF - > DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT - > DGD_HAS_GDIMAGEGIFPTR -DGD_HAS_GETBITMAPFONTS -DUSE_PDF -DUSE_OGR > -DUSE_GDAL -DUSE_GEOS -DUSE_ICONV -DUSE_POSTGIS -DUSE_THREAD - > DUSE_ZLIB -I/usr/local/include -I/usr/local/include -I/usr/ > local/include -I/usr/local/pgsql/include -I/usr/local/ > include shp2img.o -L. -lmap -L/usr/local/lib -lgd -ljpeg - > lfreetype -lpng -lz -L/usr/X11R6/lib -lXpm -lX11 -lpdf -ljpeg - > lfreetype -lpng -lz -L/usr/X11R6/lib -lXpm -lX11 -L/usr/local/lib - > lproj -ljpeg -L/usr/local/lib -lgdal -L/usr/local/pgsql/lib - > lpq -L/usr/local/lib -lgeos -lpthread -liconv -lz -lm -lstdc+ > + -o shp2img > /usr/bin/ld: Undefined symbols: > __Unwind_Resume > collect2: ld returned 1 exit status > make: *** [shp2img] Error 1 > > > My configuration configure options and output are as follows: > > ./configure \ > --mandir=/usr/local/share/man \ > --with-threads \ > --with-proj=/usr/local \ > --with-gdal=/usr/local/bin/gdal-config \ > --with-ogr=/usr/local/bin/gdal-config \ > --with-gd=/usr/local \ > --with-xpm=/usr/X11R6 \ > --with-geos=/usr/local/bin/geos-config \ > --with-postgis=/usr/local/pgsql/bin/pg_config \ > --with-freetype=/usr/local/bin/freetype-config \ > --with-httpd=/usr/sbin/httpd > ----- William Kyngesburye http://www.kyngchaos.com/ "Oh, look, I seem to have fallen down a deep, dark hole. Now what does that remind me of? Ah, yes - life." - Marvin From steve at WORMLEY.COM Tue Jul 11 17:30:10 2006 From: steve at WORMLEY.COM (Steve Wormley) Date: Tue, 11 Jul 2006 17:30:10 -0700 Subject: Auto Projections and WMS Message-ID: I have managed to create an interesting problem. I've created a shim CGI that accepts a WMS query in AUTO:42003 and uses the Microsoft MapPoint SDK to return an image. This part works fine, if I call mapserver with an SRS of AUTO:42003,9100,-121,38 and an appropriate symmetrical BBOX with the same extents North and South(and east and west) it calls my fake-WMS CGI with exactly those parameters and I return an image apparently correct. The problem comes in when I attempt to overlay my own(Postgis or even a simple Grid) of unprojected(epsg:4326) data onto this layer. It appears that during the translation the center of the bounding box is shifted northwards, probably due to the curvature of the orthographic projection. So the center of the image of the overlaid data is about 0.2 degrees more northern(38.2 in this example) So a point at -121,38 ends up displayed 0.2degrees south of the same feature of the WMS layer. So, I guess the question is: Should the center point provided in an AUTO projection be the center point of the image assuming that the bounding box is setup so 0,0 is the center of the bounding box? I hope that makes sense. Thanks, -Steve Wormley From awiens at GMAIL.COM Tue Jul 11 18:06:18 2006 From: awiens at GMAIL.COM (Andrew Wiens) Date: Wed, 12 Jul 2006 13:06:18 +1200 Subject: error during make (mac os x) In-Reply-To: <50A46D11-BFB2-4C8B-9435-F519295187F4@kyngchaos.com> Message-ID: Thanks William, That worked wonderfully. Concerning the Ruby Mapscript, I wouldn't know where to start trying to build it from the mapscriptvars and libmap.a files. I'm very new to the Mac environment and *nix environment in general. I had already built and installed the libraries required for Mapserver, but using your precompiled libraries sounds like a much more efficient solution so I'll be doing that in the future. Thanks again, --Andy On 7/12/06, William Kyngesburye wrote: > > Known problem with Xcode 2.2+. In makefile.in change the LD line to: > > LD=@CXX@ > > then reconfigure and make. > > > Also, you can reuse my Graphics Libs and GIS Libs so you don't have > to build that whole mess. Edit configure (grep find and replace in > BBEdit or TextWrangler works great for this) and replace all (using > word/case sensitive): > > (lib(png|jpeg|gd|proj|pdf|Xpm)).a > > with: > > \1.dylib > > And specify locations for all libraries in configure, since they're > not in 'normal' locations that would be found automatically. > > ./configure --with-zlib=/usr --with-proj=/usr/local/gislibs --with- > gdal=/usr/local/gislibs/bin/gdal-config --with-ogr --with-gd=/usr/ > local/graphicslibs --with-png=/usr/local/graphicslibs --with-jpeg=/ > usr/local/graphicslibs --with-freetype=/usr/local/graphicslibs/bin/ > freetype-config --with-xpm=/usr/local/graphicslibs --with-pdf=/usr/ > local/graphicslibs --with-ming=/usr/local/graphicslibs --with-geos=/ > usr/local/gislibs/bin/geos-config --with-postgis=/usr/local/pgsql/bin/ > pg_config --with-wfs --with-wcs --with-wfsclient --with-wmsclient -- > with-curl-config=/usr/local/baselibs/bin/curl-config > > > I probably won't do a Ruby MapScript binary for my Mac OS X package, > more stuff to install just to get it going. I think I tried > installing SWIG a while back with not much luck, but it's probably > improved now. > > One possibility just occurred to me to simplify things - many (all?) > of the mapscript variations use the mapscriptvars file generated > during the mapserv build, and libmap.a of course. I could add those > to the package so all you would need to do is the Ruby build. If you > would like to try this, let me know. > > > On Jul 11, 2006, at 4:53 PM, Andrew Wiens wrote: > > > Hello. I've been trying to build mapserver on Mac OS X 10.4.7 > > (Intel), but have had no success. I don't think that the available > > precompiled binaries will work for my application as I need the > > Ruby Mapscript libraries. I've included the error and configure > > output below. Any help solving the problem would be greatly > > appreciated. Thanks. --Andy > > > > I'm getting the following error: > > > > gcc -O2 -fPIC -Wall -DIGNORE_MISSING_DATA -DHAVE_VSNPRINTF - > > DUSE_EPPL -DUSE_PROJ -DUSE_WMS_SVR -DUSE_GD_GIF - > > DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT - > > DGD_HAS_GDIMAGEGIFPTR -DGD_HAS_GETBITMAPFONTS -DUSE_PDF -DUSE_OGR > > -DUSE_GDAL -DUSE_GEOS -DUSE_ICONV -DUSE_POSTGIS -DUSE_THREAD - > > DUSE_ZLIB -I/usr/local/include -I/usr/local/include -I/usr/ > > local/include -I/usr/local/pgsql/include -I/usr/local/ > > include shp2img.o -L. -lmap -L/usr/local/lib -lgd -ljpeg - > > lfreetype -lpng -lz -L/usr/X11R6/lib -lXpm -lX11 -lpdf -ljpeg - > > lfreetype -lpng -lz -L/usr/X11R6/lib -lXpm -lX11 -L/usr/local/lib - > > lproj -ljpeg -L/usr/local/lib -lgdal -L/usr/local/pgsql/lib - > > lpq -L/usr/local/lib -lgeos -lpthread -liconv -lz -lm -lstdc+ > > + -o shp2img > > /usr/bin/ld: Undefined symbols: > > __Unwind_Resume > > collect2: ld returned 1 exit status > > make: *** [shp2img] Error 1 > > > > > > My configuration configure options and output are as follows: > > > > ./configure \ > > --mandir=/usr/local/share/man \ > > --with-threads \ > > --with-proj=/usr/local \ > > --with-gdal=/usr/local/bin/gdal-config \ > > --with-ogr=/usr/local/bin/gdal-config \ > > --with-gd=/usr/local \ > > --with-xpm=/usr/X11R6 \ > > --with-geos=/usr/local/bin/geos-config \ > > --with-postgis=/usr/local/pgsql/bin/pg_config \ > > --with-freetype=/usr/local/bin/freetype-config \ > > --with-httpd=/usr/sbin/httpd > > > ----- > William Kyngesburye > http://www.kyngchaos.com/ > > "Oh, look, I seem to have fallen down a deep, dark hole. Now what > does that remind me of? Ah, yes - life." > > - Marvin > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From woklist at KYNGCHAOS.COM Tue Jul 11 18:41:16 2006 From: woklist at KYNGCHAOS.COM (William Kyngesburye) Date: Tue, 11 Jul 2006 20:41:16 -0500 Subject: error during make (mac os x) In-Reply-To: Message-ID: It *should* be as simple as dropping these files into the mapserver source folder (no need to have it built) and following the instructions for building the Ruby mapscript. I see two possible problems: - You would also have to install Postgres. Or edit the mapscriptvars file. - Since you're new to all this, did you get SWIG installed somehow? The Ruby mapscript readme says you need that. Otherwise rebuilding MapServer from scratch + Graphics Libs and GIS Libs works well enough also. On Jul 11, 2006, at 8:06 PM, Andrew Wiens wrote: > Thanks William, > > That worked wonderfully. > > Concerning the Ruby Mapscript, I wouldn't know where to start > trying to build it from the mapscriptvars and libmap.a files. I'm > very new to the Mac environment and *nix environment in general. > > I had already built and installed the libraries required for > Mapserver, but using your precompiled libraries sounds like a much > more efficient solution so I'll be doing that in the future. > ----- William Kyngesburye http://www.kyngchaos.com/ "Those people who most want to rule people are, ipso-facto, those least suited to do it." - A rule of the universe, from the HitchHiker's Guide to the Galaxy From awiens at GMAIL.COM Tue Jul 11 18:50:48 2006 From: awiens at GMAIL.COM (Andrew Wiens) Date: Wed, 12 Jul 2006 13:50:48 +1200 Subject: error during make (mac os x) In-Reply-To: <5E943045-D91B-473C-A90E-7319345ED44E@kyngchaos.com> Message-ID: That sounds really easy. I'd be willing to give it a shot to see if it'd work. I was able to get swig and mapscript installed but am getting an error when I try to test the installation with shp2img. The error I'm getting is this: dyld: NSLinkModule() error dyld: Symbol not found: _intarray_setitem Referenced from: /usr/local/lib/ruby/site_ruby/1.8/i686-darwin8.6.1 /mapscript.bundle Expected in: flat namespace Trace/BPT trap Any ideas what the problem could be? Thanks. --Andy On 7/12/06, William Kyngesburye wrote: > > It *should* be as simple as dropping these files into the mapserver > source folder (no need to have it built) and following the > instructions for building the Ruby mapscript. I see two possible > problems: > > - You would also have to install Postgres. Or edit the mapscriptvars > file. > > - Since you're new to all this, did you get SWIG installed somehow? > The Ruby mapscript readme says you need that. > > > Otherwise rebuilding MapServer from scratch + Graphics Libs and GIS > Libs works well enough also. > > > On Jul 11, 2006, at 8:06 PM, Andrew Wiens wrote: > > > Thanks William, > > > > That worked wonderfully. > > > > Concerning the Ruby Mapscript, I wouldn't know where to start > > trying to build it from the mapscriptvars and libmap.a files. I'm > > very new to the Mac environment and *nix environment in general. > > > > I had already built and installed the libraries required for > > Mapserver, but using your precompiled libraries sounds like a much > > more efficient solution so I'll be doing that in the future. > > > > ----- > William Kyngesburye > http://www.kyngchaos.com/ > > "Those people who most want to rule people are, ipso-facto, those > least suited to do it." > > - A rule of the universe, from the HitchHiker's Guide to the Galaxy > -------------- next part -------------- An HTML attachment was scrubbed... URL: From Steve.Lime at DNR.STATE.MN.US Tue Jul 11 22:55:19 2006 From: Steve.Lime at DNR.STATE.MN.US (Steve Lime) Date: Wed, 12 Jul 2006 00:55:19 -0500 Subject: Query BUG? Message-ID: Um, can you try 4.8.3? I won't fix a bug like that any further back than 4.8 anyway. By copy I mean that we read the feature in native coordinates once, make a copy and then project/transform as necessary for each instance of the [shpxy] tag. So, for example, it is possible to output native and lat/lon versions of the coordinates at the same time. I did fix a bug that had to do with true projections (not =image) in CVS HEADE since 4.8 but I don't think that applies here. Anyway, let me know if 4.8 is in the cards for you. Steve >>> Ian 07/11/06 12:04 PM >>> Thank you for the response Steve. What did you mean by "A copy of the feature is used for just this reason" ? I am using MapServer version 4.6.2 Ian From Steve.Lime at DNR.STATE.MN.US Tue Jul 11 22:59:46 2006 From: Steve.Lime at DNR.STATE.MN.US (Steve Lime) Date: Wed, 12 Jul 2006 00:59:46 -0500 Subject: query string question Message-ID: You jave a couple of options: qstring: ('[str_type]' = 'AVE' or '[str_type]' = 'ST') qstring: ('[str_type]' in ('AVE','ST')) qstring: /AVE|ST/ The latter is probably the fastest. The first two shouldn't require a qitem although you might set it just to be safe even though the value won't be used. Steve >>> Albert Anderson 07/11/06 11:34 AM >>> Hi All, I have a question about ITEMNQUERY mode. I want to search for two different items at the same time like AVE and ST. Map Mode: ITEMNQUERY Query Layer:Roads Query Item:Str_type Query string:/AVE/ and that just brings up the AVE. So how do I get the AVE and ST load query. What should the query string look like? Can some help me. Thanks, Albert --------------------------------- Sneak preview the all-new Yahoo.com. It's not radically different. Just radically better. From Maxc at SPICERGROUP.COM Tue Jul 11 23:02:37 2006 From: Maxc at SPICERGROUP.COM (Clever, Max) Date: Wed, 12 Jul 2006 02:02:37 -0400 Subject: Michigan Georef Projection Problems in Proj4 Message-ID: Hello Everyone, Two years ago, I ran into a problem with the Michigan Georef Projection and the way that proj identified it. I had sent emails back and forth for a while until someone sent a temporary solution of providing false parameters that worked.. for the most part. Thistemporary solution, of course, did not actually solve the problem, but instead delayed the fixing of the methods that proj identifies projections and translates them. For that I am sorry for not remaining vigilant in seeing a true solution being devised. But now, since I have just now installed the latest version of GRASS 6.1, I have come full circle and face this problem again. To provide a quick access to the background of what has already been said on this projection please note the previous emails below. I believe, at this time still, that the omerc projection and its parameters as used by proj cannot correctly describe or transform a omerc projection with a "natural origin". From what I understand, Hotine oblique mercator and Rectified Skew Orthomorphic are one and the same or depend on where the skew is corrected. Has there been a solution determined for this projection? If not, maybe a solution to this problem would be to have Proj have oblique mercators split between "natural origins" and cartesian center point origins. I hope, maybe, someone has been looking at this lately but I doubt it. Any comments or solutions would be very welcome. Thanks. Max Clever Gerald Evenden gerald.evenden at verizon.net Wed Dec 22 16:00:32 EST 2004 * Previous message: [Fwd: Re: [Proj] Re: The Michigan Georef Projection Problem] * Next message: [Proj] A problem with this list * Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] _____ Just to add my own two cents: the biggest problem with omerc is that there are no universal standards for specifying this projection. Indeed, Hotine may have had a specific method in mind but various uses have created their own systems and that's why there is 4 pages of description on the projection in the file omerc.pdf on: http://members.verizon.net/~vze2hc4d/proj4/ This applies to libproj4 but some applies to old proj4. _____________________________________ Jerry and the low riders: Daisy Mae and Joshua. "The whole religious complexion of the modern world is due to the absence from Jerusalem of a lunatic asylum." Havelock Ellis, 1914 Max - Thanks; I guess my concern is that it would be odd for proj to "misuse" this particular set of false easting and northing values, since it is known to correctly use such values in all sorts of cases. I just don't like accepting answers that appear to work "for whatever reason", and I will try to find time to look into this. I'm reminded of the last two chapters of Isaac Asimov's "Second Foundation". They're titled "The Answer that Satisfied", followed by "The Answer that was True"! - Ed Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 Phone: +1 978 251-4242 Fax: +1 978 251-1396 -----Original Message----- From: Clever, Max [mailto:Maxc at spicergroup.com ] Sent: Wednesday, December 22, 2004 1:21 PM To: Ed McNierney Cc: proj at xserve.flids.com Subject: RE: [Fwd: Re: [Proj] Re: The Michigan Georef Projection Problem] Ed, the False Northings and Eastings defined in the Original Michigan Georef EPSG file are the true parameters, but Proj does not handle them properly for whatever reason. The new Northings and Eastings that Melita provided make up for Proj's miscalculation, at least to a certain degree. The problems that proj had originally created SEEM to me to only be of a translational manner, other characteristics such as azimuths and distances were very close to what they should be. However, I have not looked at the code that Proj uses for this projection. So, all in all, I guess I would say that the problem with proj and this EPSG 102123 is not really fixed. But the new false Northing and Eastings that Melita provided will work for what I intend to do for now. I don't consider myself an expert on transformation algorithms, even though I've written a few before. All I know is what the epsg parameters stand for and that in this case, proj seems to be misusing them. Max Clever -----Original Message----- From: Ed McNierney [mailto:ed at topozone.com ] Sent: Tuesday, December 21, 2004 7:04 PM To: Clever, Max Subject: RE: [Fwd: Re: [Proj] Re: The Michigan Georef Projection Problem] Max - Yes, I saw that message - it just wasn't obvious what her changes were. So you're saying that the False Northing and False Easting values are incorrect, and that's it? So now we have to figure out WHY they're incorrect. The values shown below: +x_0=2546731.496 +y_0=-4354009.816 +x_0=499839.8337 +y_0=528600.2398 look completely different from one another. Why? I'm very concerned that if you don't really understand why this change "fixed" the problem, then it might not really fix it in the general case. - Ed -----Original Message----- From: Clever, Max [mailto:Maxc at spicergroup.com ] Sent: Tuesday, December 21, 2004 5:40 PM To: Ed McNierney Subject: RE: [Fwd: Re: [Proj] Re: The Michigan Georef Projection Problem] Ed, this is the message that Dylan forwarded me today. It solved my problem of trying to project data with UTM and Michigan State Plane coordinates onto a mapfile defined with the Michigan Georef Projection. It gets the image within about 0.5 meters of where it ought to be I think. Here's the message containing the parameters. Really the only thing that ought to be changed is the False Easting and False Northing, she rounded the latitude and longitude to not enough decimal places but if you use what she shows for that then its pretty close. -------- Original Message -------- Subject: Re: [Proj] Re: The Michigan Georef Projection Problem Date: Mon, 20 Dec 2004 12:39:54 -0800 (PST) From: Melita Kennedy [ESRI-Redlands] > Reply-To: Melita Kennedy [ESRI-Redlands] > To: gerald.evenden at verizon.net , mkennedy2 at earthlink.net , keon at nacse.org CC: mkennedy at esri.com Hi Dylan, Jerry, and Frank I'm not cc'ing to the list as I don't think I can post from this e-mail account. Dylan, feel free to post all or part of my reply on the list if you wish. I think I understand what's happening, although I'm bit confused because it means that the State Plane zone, Alaska zone 1, probably isn't working either. First off, here are a few test points from PROJ using this defn. proj +proj=omerc +lat_0=45.309166667 +lonc=-86.0 +alpha=337.255555556 +k=0.9996 +x_0=2546731.496 +y_0=-4354009.816 +ellps=GRS80 +datum=NAD83 +units=m 86W 43N 2546756.16 -4610501.20 86W 44N 2626908.90 -4498940.28 86W 45.309166667N 0.00 0.00 and now the results from the ESRI Projection Engine cymru{melita}: forward91 102123 Projection Engine Version 9.0 (Dec 15 2004) -86 43 -85 44 -86 45.309166667 499864.50 272108.86 580017.24 383669.77 499839.83 528600.24 Quite a difference, eh? Hotine, "Oblique Mercator", RSO, and whatever other names are in use confused me for quite a while. The ESRI Projection Engine now has 6 variants to try to support this map projection. Partially, that's because we've added different versions at different times as we've come to understand the projection better. Hotine 2 Pt Natural Origin Hotine 2 Point Center Hotine Azimuth Natural Origin Hotine Azimuth Center Rectified Skew Orthomorphic - Natural Origin Rectified Skew Orthomorphic - Center PROJ supports Two Point and Point/Azimuth cases. From what I'm seeing in the results and in the documentation, they are what ESRI calls the 'Center' cases. That is, the cartesian origin is located at the 'center' of the projection, lonc and lat_0. The ESRI Natural Origin cases have the cartesian origin where the central line crosses the aposphere. This is almost the ellipsoid's equator. Alaska zone 1 and Michigan GeoRef both use the natural origin case of Point/Azimuth. That's why they have such large negative false northings and large positive false eastings. The ESRI version (and the PROJ versions) also rectify the projection back to 'north'. The default proj setting is +no_rot (no rotation). The azimuth is used for the rectifying angle. Hmmm, I get different results if I use +no_rot versus when I omit it. So perhaps +no_rot is a rectifying angle of zero. The ESRI RSO implementation have the same Hotine parameters, plus a rectifying angle. Although I haven't tested it, I believe this is the same parameter as the +no_rot parameter. The standard RSO definitions must have this parameter set, as the rectifying angle is not the same as the azimuth. Snyder talks somewhat about this in a footnote in _Map Projections: A Working Manual_, but I (and the projection programmers here find the entire section to be difficult to follow. I think you can get the results you expect with these parameters: proj +proj=omerc +lat_0=45.309166667 +lonc=-86.0 +alpha=337.255555556 +k=0.9996 +x_0=499839.8337 +y_0=528600.2398 +ellps=GRS80 +datum=NAD83 +units=m Melita -- Melita Kennedy Product Specialist ESRI, Inc. mkennedy at esri.com -----Original Message----- From: Ed McNierney [mailto:ed at topozone.com ] Sent: Tuesday, December 21, 2004 1:20 PM To: Clever, Max; proj at xserve.flids.com Subject: RE: [Fwd: Re: [Proj] Re: The Michigan Georef Projection Problem] Max - I didn't have time to closely read Melita's email - what exactly was the correction? If the EPSG parameters for this projection are incorrect, we should get that reported and fixed. Thanks! - Ed Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 ed at topozone.com (978) 251-4242 -----Original Message----- From: proj-bounces at xserve.flids.com [mailto:proj-bounces at xserve.flids.com ] On Behalf Of Clever, Max Sent: Tuesday, December 21, 2004 1:23 PM To: proj at xserve.flids.com Subject: RE: [Fwd: Re: [Proj] Re: The Michigan Georef Projection Problem] Hello Everyone, I just wanted to say thanks to everybody for the fix of the EPSG. Melita, those new translational parameters worked great for what we are doing with Michigan Georef, thanks to everyone who put time into figuring out what was going wrong. This forum definitely has some collective brainpower. Happy Holidays Everyone From candalt at ONLINE.NO Wed Jul 12 00:13:50 2006 From: candalt at ONLINE.NO (=?iso-8859-1?Q?Sture_Dings=F8yr?=) Date: Wed, 12 Jul 2006 09:13:50 +0200 Subject: WMS getCapabilities and SRS Message-ID: Hi I have a question regarding the SRS tag in getCapabilities. In my mapfile I put all the EPSG codes that I want my layers to be available in with the METADATA tag ?wms_srs?, so that my layers look like this: LAYER PROJECTION "init=epsg:32633" END METADATA "wms_title" "Fylke flate" "wms_srs" "EPSG:4326 EPSG:25831 EPSG:25832 EPSG:25833 EPSG:25834 EPSG:25835 EPSG:27391 EPSG:27392 EPSG:27393 EPSG:27394 EPSG:27395 EPSG:27396 EPSG:27397 EPSG:27398 EPSG:32631 EPSG:32632 EPSG:32633 EPSG:32634 EPSG:32635 EPSG:102132 EPSG:102133 EPSG:102134 EPSG:102135" "wms_abstract" "For ? hente dette tema via WMS m? ein nytte layer_74 som verdi i LAYER parameter" "gml_include_items" "all" END DATA "adaptive/74" STATUS off TRANSPARENCY 50 TYPE polygon DUMP TRUE TEMPLATE "TRUE" NAME "layer_74" CLASS COLOR 0 0 0 NAME "Fylke flate" OUTLINECOLOR 255 255 255 SYMBOL "horizontal" END END In my getCapabilities file all the correct SRS tags are displayed like this: - layer_74 Fylke flate For ? hente dette tema via WMS m? ein nytte layer_74 som verdi i LAYER parameter EPSG:4326 EPSG:25831 EPSG:25832 EPSG:25833 EPSG:25834 EPSG:25835 EPSG:27391 EPSG:27392 EPSG:27393 EPSG:27394 EPSG:27395 EPSG:27396 EPSG:27397 EPSG:27398 EPSG:32631 EPSG:32632 EPSG:32633 EPSG:32634 EPSG:32635 EPSG:102132 EPSG:102133 EPSG:102134 EPSG:102135 - Now I am connection to some other external WMS service that use ARCIMS, and I can see there that the SRS (EPSG code) is not put on each layer, but on the ?service level?? My question is: What is the correct way of dooing this according to the WMS standard? Should each SRS be on each layer or on the ?service level?? Best regards Sture From b.vdeijnden at AGI.RWS.MINVENW.NL Wed Jul 12 00:21:14 2006 From: b.vdeijnden at AGI.RWS.MINVENW.NL (Eijnden, Bart van den (AGI)) Date: Wed, 12 Jul 2006 09:21:14 +0200 Subject: WMS getCapabilities and SRS Message-ID: Hi Sture, both are allowed. Remember that if you don't define it at the layer level, the layer will inherit from the parent layer. Check the WMS spec for the exact explanation. You can have the same behaviour in Mapserver by only defining wms_srs at the WEB METADATA level and not at your LAYER METADATA level. Best regards, Bart -----Oorspronkelijk bericht----- Van: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]Namens Sture Dings?yr Verzonden: woensdag 12 juli 2006 9:14 Aan: MAPSERVER-USERS at LISTS.UMN.EDU Onderwerp: [UMN_MAPSERVER-USERS] WMS getCapabilities and SRS Hi I have a question regarding the SRS tag in getCapabilities. In my mapfile I put all the EPSG codes that I want my layers to be available in with the METADATA tag ?wms_srs?, so that my layers look like this: LAYER PROJECTION "init=epsg:32633" END METADATA "wms_title" "Fylke flate" "wms_srs" "EPSG:4326 EPSG:25831 EPSG:25832 EPSG:25833 EPSG:25834 EPSG:25835 EPSG:27391 EPSG:27392 EPSG:27393 EPSG:27394 EPSG:27395 EPSG:27396 EPSG:27397 EPSG:27398 EPSG:32631 EPSG:32632 EPSG:32633 EPSG:32634 EPSG:32635 EPSG:102132 EPSG:102133 EPSG:102134 EPSG:102135" "wms_abstract" "For ? hente dette tema via WMS m? ein nytte layer_74 som verdi i LAYER parameter" "gml_include_items" "all" END DATA "adaptive/74" STATUS off TRANSPARENCY 50 TYPE polygon DUMP TRUE TEMPLATE "TRUE" NAME "layer_74" CLASS COLOR 0 0 0 NAME "Fylke flate" OUTLINECOLOR 255 255 255 SYMBOL "horizontal" END END In my getCapabilities file all the correct SRS tags are displayed like this: - layer_74 Fylke flate For ? hente dette tema via WMS m? ein nytte layer_74 som verdi i LAYER parameter EPSG:4326 EPSG:25831 EPSG:25832 EPSG:25833 EPSG:25834 EPSG:25835 EPSG:27391 EPSG:27392 EPSG:27393 EPSG:27394 EPSG:27395 EPSG:27396 EPSG:27397 EPSG:27398 EPSG:32631 EPSG:32632 EPSG:32633 EPSG:32634 EPSG:32635 EPSG:102132 EPSG:102133 EPSG:102134 EPSG:102135 - Now I am connection to some other external WMS service that use ARCIMS, and I can see there that the SRS (EPSG code) is not put on each layer, but on the ?service level?? My question is: What is the correct way of dooing this according to the WMS standard? Should each SRS be on each layer or on the ?service level?? Best regards Sture Disclaimer ************************************************************************ Aan dit bericht kunnen geen rechten worden ontleend. Dit bericht is uitsluitend bestemd voor de geadresseerde. Als u dit bericht per abuis hebt ontvangen, wordt u verzocht het te vernietigen en de afzender te informeren. Wij adviseren u om bij twijfel over de juistheid of de volledigheid van de mail contact met afzender op te nemen. This message shall not constitute any rights or obligations. This message is intended solely for the addressee. If you have received this message in error, please delete it and notify the sender immediately. When in doubt whether this message is correct or complete, please contact the sender. ************************************************************************ From bartvde at XS4ALL.NL Wed Jul 12 02:38:52 2006 From: bartvde at XS4ALL.NL (Bart van den Eijnden (OSGIS)) Date: Wed, 12 Jul 2006 11:38:52 +0200 Subject: Mapserver and DACS Message-ID: Hi list, there has been some talk in the past of using DACS as a framework to secure Mapserver (OGC) services. Has anybody actually gone this way? If so, would they like to share this information? Thanks in advance. Best regards, Bart From siukola.antti at GMAIL.COM Wed Jul 12 03:45:17 2006 From: siukola.antti at GMAIL.COM (antti siukola) Date: Wed, 12 Jul 2006 13:45:17 +0300 Subject: Mapserver returns blank pages In-Reply-To: Message-ID: Hi! As we can see a lot of people are suffering from this but no one seems to have any solutions. Does this only appear with php mapscript? Is this a bug? A known bug? Is there a solutions? This is a fatal error since this kind of behavior avoids us to use php mapscript in production, in case this is a php mapscript issue as it seems to be. Regards, Antti S On 6/13/06, Matthew Kane wrote: > I second that question, as I am receiving Segmentation Faults as well... > > Matt > > On 6/13/06, antti siukola wrote: > > Hi! > > > > Every time MapServer returns a blank page I find "[notice] child pid > > xxxx exit signal Segmentation fault (11)" from apache's error_log. Any > > thoughts? Blank pages are returned randomly. > > > > AnttiS > > > From stefano.bonnin at COMAI.TO Wed Jul 12 03:02:22 2006 From: stefano.bonnin at COMAI.TO (Stefano B.) Date: Wed, 12 Jul 2006 12:02:22 +0200 Subject: shape time queries Message-ID: Hi, I have a shape with time attribute. I'd like to get only the record with max(DATE). Is it possible with mapserver without using phpMapscript. I have take a look at the EXPRESSION keyword but it seems not possible, to me. Thanks in advance. Stefano -------------- next part -------------- An HTML attachment was scrubbed... URL: From techie at OMLET.CO.UK Wed Jul 12 04:29:52 2006 From: techie at OMLET.CO.UK (James Tuthill) Date: Wed, 12 Jul 2006 12:29:52 +0100 Subject: Map File Work In-Reply-To: <200607111456274.SM00868@Home> Message-ID: Thanks Gary. MapWindow is making the job a lot quicker and simpler. I think I will have to the time to to it now :) James Gary Watry wrote: > Take a look at MapWindow It is open source and has a tool to export your > shapefiles out as a mapserver map file. > > -----Original Message----- > From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On > Behalf Of James Tuthill > Sent: Tuesday, July 11, 2006 12:10 PM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: [UMN_MAPSERVER-USERS] Map File Work > > > Hi, > > I'm not sure if this is the most appropriate place to ask so apologies > in advance - but I am trying develop the styling for a MapServer map. > Unfortunately, I am under really over worked and simply don't have the > time to do a good job on my own. I don't know anyone else who can > help.... so I was wondering if there is someone on this list who would > be able to help me develop the styling a map file? > I have the data in shape files and examples of map styles that I like > but simply not enough time to get it done. The map is going to be used > my company and I have small budget. If you are interested and would have > the time to develop the map file and styling then you can email me > directly james at omlet.co.uk and I will send you some more details, > > Thanks, > > James > james at omlet.co.uk > > > > > From arjendk at GMX.NET Wed Jul 12 05:20:55 2006 From: arjendk at GMX.NET (Arjen de Korte) Date: Wed, 12 Jul 2006 14:20:55 +0200 Subject: GetFeatureInfo from Oracle: no coordinates Message-ID: Hello Mapserver users, I'm trying to get Mapserver to give me a GetFeatureInfo result from Oracle. I do get an XML document back, with the attributes and bounding box in it, but *without* the coordinates! So I do get a valid XML response, starting with and followed by the bounding box () and the attributes, but it does not contain feature coordinates like . We are using MS4W 1.5.3 and Oracle 9i Locator (no Spatial extensions). In the mapfile the layer is defined by: LAYER NAME test1 METADATA "ows_title" "Test 1" "gml_include_items" "all" "wms_extent" "0 300000 300000 600000" END PROJECTION "init=epsg:28992" END STATUS ON TYPE POLYGON MAXSCALE 50000 CONNECTIONTYPE oraclespatial CONNECTION "adk/adk at domain" DATA "geometry from test1 using unique ID srid 90112 relate version 9i" DUMP true TEMPLATE "../templates/rivers_query_header.html" TRANSPARENCY 50 CLASS NAME "Test 1" COLOR 0 100 0 END END This is the URL I use for the request: http://localhost/cgi-bin/mapserv.exe?map=/ms4w/apps/geolocator/service/out.map&service=WMS&version=1.1.1&request=GetFeatureInfo&srs=EPSG:28992&bbox=174800,604995,178736,607363&info_format=application/vnd.ogc.gml&layers=bebgeb,water,test1&query_layers=test1&x=280.999999999999&y=70&width=615&height=370 Does anybody have a suggestion how to fix this? Regards, Arjen. From bart_doggers at YAHOO.COM Wed Jul 12 08:31:00 2006 From: bart_doggers at YAHOO.COM (Albert Anderson) Date: Wed, 12 Jul 2006 08:31:00 -0700 Subject: loading images in the map to perform a function Message-ID: Hi All, I am loading information of a map into a template. I click a button and it loads. But my images that I created for zooming in, zooming out, refresh, and etc are not showing up. How do you get them to show up and working? Do you need to put something in the html or in the map file that will load the images that I created? Where do I start? Can some help me? Heres my html and map file. html buttton
html template
zoom inzoom outzoom recenterfull zoom backforward refresh print indentifynquery
Map Scale: [scale] Click x, y: [mapx], [mapy] Map Extent: [mapext]
Map Layers
 
nw
North
ne
North
East
sw
South
se
Help Page

Search for a Parcel:

 


 

 

map file #This is Richland County Map Server NAME "Richland" SIZE 309 417 IMAGECOLOR 255 255 255 IMAGETYPE JPEG SHAPEPATH "/home/mapdata/" EXTENT -97.493440 45.811874 -96.293436 46.711877 #################################### # Symbol for drawing fat lines # SYMBOL NAME "BigLine" TYPE ELLIPSE POINTS 1 1 END END ##################################### # Symbol for drawing dashed lines # SYMBOL NAME "DashedLine" TYPE ELLIPSE POINTS 1 1 END STYLE 10 10 END END ##################################### # Symbol for drawing spots # SYMBOL NAME "Circle" FILLED true TYPE ellipse POINTS 1 1 END END ##################################### # Web object # WEB TEMPLATE '/var/www/htdocs/gismapserver_test_project.html' IMAGEPATH '/var/www/htdocs/tmp/' IMAGEURL '/tmp/' END ##################################### # Reference map # REFERENCE IMAGE "/var/www/htdocs/third_usaref.gif" SIZE 200 200 EXTENT -180.00 0.00 -60.00 90.00 STATUS ON COLOR -1 -1 -1 OUTLINECOLOR 255 0 0 END ##################################### # Scalebar # SCALEBAR LABEL COLOR 0 0 0 ANTIALIAS true SIZE small END POSITION lr INTERVALS 5 STATUS embed SIZE 144 5 STYLE 0 UNITS miles BACKGROUNDCOLOR 255 0 0 IMAGECOLOR 255 255 255 COLOR 128 128 128 OUTLINECOLOR 0 0 255 TRANSPARENT off END ##################################### LAYER NAME "Richland" STATUS default TYPE line DATA "roads_shp" CLASS STYLE COLOR 255 0 0 END END END END __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From roland.w.martin at GMAIL.COM Wed Jul 12 09:03:07 2006 From: roland.w.martin at GMAIL.COM (Roland Martin) Date: Wed, 12 Jul 2006 17:03:07 +0100 Subject: 500 Internal Server Errors Message-ID: OK, this is probably yet another stupid query to which I should know the answer... however, I'm on a roll here. I've got an application which is intermittently (i.e. most of the time, but not always) throwing a 500 Internal Server Error. The application is almost a direct clone of another which does not exhibit the same error. I've spent most of the afternoon trying to figure out why this might be, and as far as I can tell, it's something to do with the PostGIS database which holds most of the data. If I remove all the PostGIS layers, it seems to work fine (although interestingly doesn't work if they're all in the map file but turned off - does MapScript try to load the layers regardless?) The database contains converted CAD (DWG) data with typically stupid contents (meaningless fields, escape characters, etc). I wondered if it might be to do with the sizes of the tables (>30 000 records in each), but dissolving them doesn't seem to have made much difference. At the moment I'm leaning towards thinking it may be because of the aforementioned escape characters (looking down the tables, a number just contain the entry " which might upset things; others start with an asterisk). However, some of the tables causing the issue don't contain anything nearly as nasty. The error is being thrown on loading the map; approximately 80-90% of the time. Also of interest may be the following gunk from the error logs: [Wed Jul 12 16:29:11 2006] [error] [client x] Premature end of script headers: php-cgi.exe, referer: http://x/lbia_dev/ [Wed Jul 12 16:51:08 2006] [error] [client x] Premature end of script headers: php-cgi.exe, referer: http://x/lbia_dev/ (etc) Anyone have any thoughts on this? Ta, Roland. MS4W 2.0 MapServer 4.8.3 Chameleon for MS4W 2.4 PgSQL 8.1 etc 1.0 -- Please note my new email address. Use other addresses at your peril. -------------- next part -------------- An HTML attachment was scrubbed... URL: From ollerery at ENGR.ORST.EDU Wed Jul 12 10:13:18 2006 From: ollerery at ENGR.ORST.EDU (Ryan Ollerenshaw) Date: Wed, 12 Jul 2006 10:13:18 -0700 Subject: SHAPEPATH problems In-Reply-To: Message-ID: I am having some problems accessing my shapefiles the below works: ... SHAPEPATH "../data/themis" ... LAYER ... TILEINDEX "thm_dir.shp" ... END ... END but when i change it to: ... SHAPEPATH "../data" ... LAYER ... TILEINDEX "themis/thm_dir.shp" ... END ... END all i get is a blank page. I know it is finding the shapefile in the second case because if i change the name to something that does not exits i get an error. I also know that the server and the permissions are set up correctly becuase the first case works. But why can i only i specify a file for the TILEINDEX and not a file and location. Is there another perameter that i can use to specify the location of the shapefile within the layer? From rockwell_001 at YAHOO.COM Wed Jul 12 10:17:40 2006 From: rockwell_001 at YAHOO.COM (rock well) Date: Wed, 12 Jul 2006 10:17:40 -0700 Subject: Does Mapserver 4.8.3 work with windows 2000 and IIS 5 In-Reply-To: <44B2DC4C.30103@refractions.net> Message-ID: Hey andrew thanks, for the reply, i guess its the IIS 5 issue. When i copied the mapserv and the required dlls to 2003 with IIS 6 i was able to generate the map with no issues. Thanks for your time kris Andrew Krakowski wrote: Hi Kris, Have you been able to generate the "No query information to decode. QUERY_STRING is set, but empty." message? Have you read the online IIS MapServer instructions? There are a couple you can find. I'm not sure the difference between IIS 5 and 6 but I've succeeded with MapServer 4.8.3 working on IIS 6.0 on XP. Create a cgi-bin directory in your Inetpub directory and copy the contents of the ms4w\Apache\cgi-bin directory into it. In IIS add this directory as a virtual directory to your web-site. Right-click Properties under the cgi-bin Virtual Directory and select Scripts and Executables for Executables permission in the Virtual Directory Tab. When you right click the mapserv.exe file in IIS and select Browse in IIS you should get the above message. Hope that helps; if not let me know. Andrew rock well wrote: > Hi all, i have posted this question earlier but had to luck ..... i have been trying to configure mapserver -4.8.3 on a windows 2000 machine with IIS 5. I tried different options like just having the basic libraries like proj,GD, regex. When i try to generate a map i always get a > > CGI Error > The specified CGI application misbehaved by not returning a complete set of HTTP headers. The headers it did return are: > > i tried it from php mapscript, from a normal html file same result ..... > > i dont know what wrong am i doing .... if anyone have configured mapserver with this configuration can you please suggest me, or any information might help ... > > Thanks a lot for your time, > kris > > > --------------------------------- > Yahoo! Messenger with Voice. Make PC-to-Phone Calls to the US (and 30+ countries) for 2?/min or less. -- Andrew Krakowski Programmer, Refractions Research Inc. --------------------------------- Want to be your own boss? Learn how on Yahoo! Small Business. -------------- next part -------------- An HTML attachment was scrubbed... URL: From techie at OMLET.CO.UK Wed Jul 12 10:21:17 2006 From: techie at OMLET.CO.UK (James Tuthill) Date: Wed, 12 Jul 2006 18:21:17 +0100 Subject: Map File Work In-Reply-To: Message-ID: Hi Tyler, Thanks for the recommendations. I think QGIS is based on MapWindow - however it has a much slicker interface and it slightly easier to use. I don't have access to ESRI ArcView but I have requested an evaluation CD. Does anyone know a good free shape file editor? as the one in MapWindow is quite buggy. Thanks, James Tyler Mitchell wrote: > Hi James, > I haven't used MapWindow yet, sounds promising. QGIS also can export > map files, though it still needs some improvement. If you have access > to ESRI ArcView 3, there is also a pretty good exporter that also > exports some of the more complex symbology. Let me know if you need > some more pointers. > > Tyler > > On 12-Jul-06, at 4:29 AM, James Tuthill wrote: > >> Thanks Gary. MapWindow is making the job a lot quicker and simpler. I >> think I will have to the time to to it now :) >> >> James >> >> Gary Watry wrote: >>> Take a look at MapWindow It is open source and has a tool to export >>> your >>> shapefiles out as a mapserver map file. >>> -----Original Message----- >>> From: UMN MapServer Users List >>> [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On >>> Behalf Of James Tuthill >>> Sent: Tuesday, July 11, 2006 12:10 PM >>> To: MAPSERVER-USERS at LISTS.UMN.EDU >>> Subject: [UMN_MAPSERVER-USERS] Map File Work >>> >>> >>> Hi, >>> >>> I'm not sure if this is the most appropriate place to ask so >>> apologies in advance - but I am trying develop the styling for a >>> MapServer map. Unfortunately, I am under really over worked and >>> simply don't have the time to do a good job on my own. I don't know >>> anyone else who can help.... so I was wondering if there is someone >>> on this list who would be able to help me develop the styling a map >>> file? >>> I have the data in shape files and examples of map styles that I >>> like but simply not enough time to get it done. The map is going to >>> be used my company and I have small budget. If you are interested >>> and would have the time to develop the map file and styling then you >>> can email me directly james at omlet.co.uk and I will send you some >>> more details, >>> >>> Thanks, >>> >>> James >>> james at omlet.co.uk >>> >>> >>> >>> >>> > > > > From jmckenna at DMSOLUTIONS.CA Wed Jul 12 10:39:02 2006 From: jmckenna at DMSOLUTIONS.CA (Jeff McKenna) Date: Wed, 12 Jul 2006 13:39:02 -0400 Subject: Map File Work In-Reply-To: <44B52F8D.2030704@omlet.co.uk> Message-ID: For shapefile editing u can't beat OpenJump (http://www.openjump.org/). (when the website works that is ha) jeff James Tuthill wrote: > Does anyone know a good free shape file editor? as the one in MapWindow > is quite buggy. > -- Jeff McKenna DM Solutions Group Inc. http://www.dmsolutions.ca From parrott.sarah at GOOGLEMAIL.COM Wed Jul 12 10:40:48 2006 From: parrott.sarah at GOOGLEMAIL.COM (Sarah Parrott) Date: Wed, 12 Jul 2006 18:40:48 +0100 Subject: Failed to draw layer error with mysql points Message-ID: Hi, I'm trying to get point data out of mysql to display on a map. I'm using the following .ovf file, which I've tested using ogrinfo and seems to work fine. MYSQL:test_gis,user=root,password=mypword,host= 127.0.0.1,port=3306,tables=boxes SELECT fid, x, y FROM boxes wkbPoint When I go to the jsp that draws the map I get these errors: *description* *The server encountered an internal error () that prevented it from fulfilling this request.* *exception* org.apache.jasper.JasperException: Failed to draw layer named 'test_gis'. org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:510) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:375) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) *root cause* javax.servlet.ServletException: Failed to draw layer named 'test_gis'. org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:858) org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:791) org.apache.jsp.boxes.dartmoor_005fpoints_jsp._jspService(dartmoor_005fpoints_jsp.java:74) org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:332) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) *root cause* java.lang.UnknownError: Failed to draw layer named 'test_gis'. edu.umn.gis.mapscript.mapscriptJNI.mapObj_draw(Native Method) edu.umn.gis.mapscript.mapObj.draw(mapObj.java:382) org.apache.jsp.boxes.dartmoor_005fpoints_jsp._jspService(dartmoor_005fpoints_jsp.java:56) org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:332) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) I've tried loads of different things in the .map file (below) but I still end up with the same problem. Does anyone know what I'm going wrong? Thanks, Sarah Map file: MAP NAME DARTMOOR_POINTS STATUS ON SHAPEPATH "/usr/local/apache-tomcat-5.5.17/webapps/ROOT/boxes/" EXTENT 250000.000000 57000.000000 260000.000000 70000.000000 SIZE 400 400 WEB IMAGEPATH "/usr/local/apache-tomcat-5.5.17/webapps/ROOT/temp/" IMAGEURL "/temp/" END LAYER NAME "test_gis" STATUS ON TYPE POINT PROJECTION "proj=latlong" "ellps=WGS84" "datum=WGS84" END CONNECTIONTYPE OGR CONNECTION "test_gis.ovf" DATA "test_gis" CLASS NAME "boxes" SYMBOL 0 COLOR 0 0 0 OUTLINECOLOR 255 0 0 END END END JSP File <%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%> <%@ page import = "edu.umn.gis.mapscript.mapObj" %> <%@ page import = "edu.umn.gis.mapscript.imageObj" %> <% mapObj vMap; String vMapName = "/usr/local/apache-tomcat-5.5.17 /webapps/ROOT/boxes/dartmoor_points.map"; vMap = new mapObj(vMapName); String vMapFile = "/usr/local/apache-tomcat-5.5.17 /webapps/ROOT/boxes/dartmoor_points.mapfile"; vMap.setMappath(vMapName); imageObj img = vMap.draw(); img.save(vMapFile,vMap); %> Image:
-------------- next part -------------- An HTML attachment was scrubbed... URL: From parrott.sarah at GOOGLEMAIL.COM Wed Jul 12 10:46:56 2006 From: parrott.sarah at GOOGLEMAIL.COM (Sarah Parrott) Date: Wed, 12 Jul 2006 18:46:56 +0100 Subject: Failed to draw layer error with mysql points Message-ID: Hi, I'm trying to get point data out of mysql to display on a map. I'm using the following .ovf file, which I've tested using ogrinfo and seems to work fine. MYSQL:test_gis,user=root,password=mypword,host= 127.0.0.1,port=3306,tables=boxes SELECT fid, x, y FROM boxes wkbPoint When I go to the jsp that draws the map I get these errors: description The server encountered an internal error () that prevented it from fulfilling this request. exception org.apache.jasper.JasperException: Failed to draw layer named 'test_gis'. org.apache.jasper.servlet.JspServletWrapper.handleJspException( JspServletWrapper.java:510) org.apache.jasper.servlet.JspServletWrapper.service( JspServletWrapper.java:375) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) root cause javax.servlet.ServletException: Failed to draw layer named 'test_gis'. org.apache.jasper.runtime.PageContextImpl.doHandlePageException( PageContextImpl.java:858) org.apache.jasper.runtime.PageContextImpl.handlePageException( PageContextImpl.java:791) org.apache.jsp.boxes.dartmoor_005fpoints_jsp._jspService (dartmoor_005fpoints_jsp.java:74) org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) org.apache.jasper.servlet.JspServletWrapper.service( JspServletWrapper.java:332) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) root cause java.lang.UnknownError: Failed to draw layer named 'test_gis'. edu.umn.gis.mapscript.mapscriptJNI.mapObj_draw(Native Method) edu.umn.gis.mapscript.mapObj.draw(mapObj.java:382) org.apache.jsp.boxes.dartmoor_005fpoints_jsp._jspService (dartmoor_005fpoints_jsp.java:56) org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) org.apache.jasper.servlet.JspServletWrapper.service( JspServletWrapper.java:332) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) I've tried loads of different things in the .map file (below) but I still end up with the same problem. Does anyone know what I'm going wrong? Thanks, Sarah Map file: MAP NAME DARTMOOR_POINTS STATUS ON SHAPEPATH "/usr/local/apache-tomcat-5.5.17/webapps/ROOT/boxes/" EXTENT 250000.000000 57000.000000 260000.000000 70000.000000 SIZE 400 400 WEB IMAGEPATH "/usr/local/apache-tomcat-5.5.17/webapps/ROOT/temp/" IMAGEURL "/temp/" END LAYER NAME "test_gis" STATUS ON TYPE POINT PROJECTION "proj=latlong" "ellps=WGS84" "datum=WGS84" END CONNECTIONTYPE OGR CONNECTION "test_gis.ovf" DATA "test_gis" CLASS NAME "boxes" SYMBOL 0 COLOR 0 0 0 OUTLINECOLOR 255 0 0 END END END ---------------------------------------------------------------------------------------------------------------------------- JSP File: <%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%> <%@ page import = "edu.umn.gis.mapscript.mapObj" %> <%@ page import = "edu.umn.gis.mapscript.imageObj" %> <% mapObj vMap; String vMapName = "/usr/local/apache-tomcat-5.5.17 /webapps/ROOT/boxes/dartmoor_points.map"; vMap = new mapObj(vMapName); String vMapFile = "/usr/local/apache-tomcat-5.5.17 /webapps/ROOT/boxes/dartmoor_points.mapfile"; vMap.setMappath(vMapName); imageObj img = vMap.draw(); img.save(vMapFile,vMap); %> Image:
-------------- next part -------------- An HTML attachment was scrubbed... URL: From markane at INDIANA.EDU Wed Jul 12 10:56:36 2006 From: markane at INDIANA.EDU (Matthew Kane) Date: Wed, 12 Jul 2006 13:56:36 -0400 Subject: Mapserver returns blank pages In-Reply-To: Message-ID: I wasn't actually using php mapscript in the mapfile that gave me segmentation faults. Strangely, I got the map to display on a Sun machine if I removed all references to true-type fonts and relied only on bitmap fonts for my labels. Even more strange is that when I moved the same file to a red hat server, mapserver simply hangs. No error message in either the browser or the apache error logs, just hanging. The same thing happened when I tried running the mapfile with shp2img. Has anyone else experienced this problem? Could this be a bug in one of the third party libraries that mapserver relies on? Or more likely a problem in how we code our mapfiles? Thanks, Matt On 7/12/06, antti siukola wrote: > > Hi! > > As we can see a lot of people are suffering from this but no one seems > to have any solutions. Does this only appear with php mapscript? Is > this a bug? A known bug? Is there a solutions? This is a fatal error > since this kind of behavior avoids us to use php mapscript in > production, in case this is a php mapscript issue as it seems to be. > > Regards, > > Antti S > > On 6/13/06, Matthew Kane wrote: > > I second that question, as I am receiving Segmentation Faults as well... > > > > Matt > > > > On 6/13/06, antti siukola wrote: > > > Hi! > > > > > > Every time MapServer returns a blank page I find "[notice] child pid > > > xxxx exit signal Segmentation fault (11)" from apache's error_log. Any > > > thoughts? Blank pages are returned randomly. > > > > > > AnttiS > > > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From stuarteve at LPARCHAEOLOGY.COM Wed Jul 12 11:20:05 2006 From: stuarteve at LPARCHAEOLOGY.COM (Stuart Eve) Date: Wed, 12 Jul 2006 19:20:05 +0100 Subject: Mapserver returns blank pages In-Reply-To: Message-ID: We are having (and have had for while_ this problem - and it does seem reasonably random. The main trouble is that I don't know how to get php to spew out the error - and instead it just returns this blank screen, instead of returning the error as it does normally. I had first thought that it was because I was using php mapscript and had nested functions - but it seems like lots of people are coming up with the same thing. Anyone got any ideas? Matthew Kane wrote: > I wasn't actually using php mapscript in the mapfile that gave me > segmentation faults. Strangely, I got the map to display on a Sun > machine if I removed all references to true-type fonts and relied only > on bitmap fonts for my labels. Even more strange is that when I moved > the same file to a red hat server, mapserver simply hangs. No error > message in either the browser or the apache error logs, just hanging. > The same thing happened when I tried running the mapfile with shp2img. > Has anyone else experienced this problem? Could this be a bug in one > of the third party libraries that mapserver relies on? Or more likely > a problem in how we code our mapfiles? > > Thanks, > Matt > > On 7/12/06, *antti siukola* > wrote: > > Hi! > > As we can see a lot of people are suffering from this but no one seems > to have any solutions. Does this only appear with php mapscript? Is > this a bug? A known bug? Is there a solutions? This is a fatal error > since this kind of behavior avoids us to use php mapscript in > production, in case this is a php mapscript issue as it seems to be. > > Regards, > > Antti S > > On 6/13/06, Matthew Kane < markane at indiana.edu > > wrote: > > I second that question, as I am receiving Segmentation Faults as > well... > > > > Matt > > > > On 6/13/06, antti siukola < siukola.antti at gmail.com > > wrote: > > > Hi! > > > > > > Every time MapServer returns a blank page I find "[notice] > child pid > > > xxxx exit signal Segmentation fault (11)" from apache's > error_log. Any > > > thoughts? Blank pages are returned randomly. > > > > > > AnttiS > > > > > > > -- Stuart Eve L - P : Archaeology stuarteve at lparchaeology.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From angusd at MIDWESTSURVEYS.COM Wed Jul 12 11:05:16 2006 From: angusd at MIDWESTSURVEYS.COM (Angus Dickey) Date: Wed, 12 Jul 2006 12:05:16 -0600 Subject: WCS Message-ID: Hey list, I am trying to get WCS working in mapserver 4.8.3; the following is an excerpt from my map file: OUTPUTFORMAT NAME GTiff DRIVER "GDAL/GTiff" MIMETYPE "image/tiff" IMAGEMODE RGB EXTENSION "tif" END #OUTPUTFORMAT WEB #WCS Required "wcs_name" "Public OGC Web Service" "wcs_service_onlineresource" "http://url" "wcs_onlineresource" "http://url/ms?" "wcs_srs" "EPSG:4269" "wcs_fees" "none" "wcs_accessconstraints" "none" "wcs_label" "Public WCS" END LAYER NAME "NTS_250k" STATUS ON TILEINDEX "NTS_250k_Index" #uses a postgis layer TILEITEM "location" TYPE RASTER MAXSCALE 1000000 MINSCALE 50000 METADATA #WMS Layer "wms_title" "250k NTS Maps" "wms_abstract" "1:250000 Canadian National Topographic Series" "wms_srs" "EPSG:4269" "wms_extent" "-134 41 -73 61" #WCS Layer "wcs_name" "250k NTS Maps" "wcs_label" "1:250000 Canadian National Topographic Series" "wcs_srs" "EPSG:4269" "wcs_extent" "-134 41 -73 61" "wcs_resolution" "0.000505538 0.000505538" "wcs_size" "1000 1000" "wcs_formats" "GTiff" "wcs_nativeformat" "Paletted 8-bit png" "wcs_bandcount" "1" END #METADATA PROJECTION "init=epsg:4269" END #PROJECTION END #LAYER I have tried to include all the required tags but my wcs getcapabilities returns with no mention of my layer/coverage (WMS & WFS in same mapfile works fine). Am I missing something required? Any ideas or help would be appreciated, Thanks, ~Angus From awiens at GMAIL.COM Wed Jul 12 12:31:01 2006 From: awiens at GMAIL.COM (Andrew Wiens) Date: Thu, 13 Jul 2006 07:31:01 +1200 Subject: ruby mapscript on mac os x Message-ID: Hello. I'm trying to get Ruby Mapscript setup to run on my mac (os x 10.4.7Intel). It looks like it's building correctly, but when I try to run the shp2img program from the examples directory, I get the following error: dyld: NSLinkModule() error dyld: Symbol not found: _intarray_setitem Referenced from: /usr/local/lib/ruby/site_ruby/1.8/i686-darwin8.6.1 /mapscript.bundle Expected in: flat namespace Trace/BPT trap I've reinstalled SWIG to make sure there were no errors during that process and it looked like it installed properly. Any ideas what I should try next? Thanks, --Andy -------------- next part -------------- An HTML attachment was scrubbed... URL: From julien.63 at FREE.FR Wed Jul 12 12:47:20 2006 From: julien.63 at FREE.FR (Julien Bessiere) Date: Wed, 12 Jul 2006 21:47:20 +0200 Subject: Problems drawing polygons Message-ID: Hi, I'm using a function to draw a polygon on my maps. The user clicks wherever he wants and i store the coordinates in a php array and pass the array to the function. My problem is that the first point doesn't appear in my polygon. For example, if i have 4 points, my polygon will be a triangle with the second, the third and the fourth point. My array is something like : Array ( [0] => Array ( [0] => -80.4178572857 [1] => 9.310714794 ) [1] => Array ( [0] => -79.4750001429 [1] => 9.69642909 ) [2] => Array ( [0] => -79.0785715714 [1] => 9.0000005 ) [3] => Array ( [0] => -80.0428572857 [1] => 8.442857628 ) ) And here is my function : function drawPolygon($map,$polygon_coordinates){ $layer = ms_newLayerObj($map); $layer->set("name","polygon"); $layer->set("status",MS_DEFAULT); if (count($polygon_coordinates) < 3) $layer->set("type",MS_POINT); else $layer->set("type",MS_LAYER_POLYGON); $class = ms_newClassObj($layer); $class->label->set("type",MS_BITMAP); $stylepoint = ms_newStyleObj($class); $stylepoint->set('symbolname',"circle"); $stylepoint->set('size',10); $stylepoint->color->setRGB(200,200,0); $line = ms_newLineObj(); foreach ($polygon_coordinates as $record){ $point = ms_newPointObj(); $x = $record[0]; $y = $record[1]; $point->setXY($x,$y); $line->add($point); } $shape = ms_newShapeObj(MS_SHAPE_POLYGON); $shape->set("classindex", 0); $shape->add($line); $shape->set("text","MYpolygon"); $layer->addFeature($shape); $point->free(); $shape->free(); } thanks in advance for your help Julien From ollerery at ENGR.ORST.EDU Wed Jul 12 13:08:40 2006 From: ollerery at ENGR.ORST.EDU (Ryan Ollerenshaw) Date: Wed, 12 Jul 2006 13:08:40 -0700 Subject: WCS In-Reply-To: Message-ID: The only thing that i see that you are missing is: wcs_rangeset_label 'some label' wcs_rangeset_name 'some name' Quoting Angus Dickey : > Hey list, > > I am trying to get WCS working in mapserver 4.8.3; the following is an > excerpt from my map file: > > OUTPUTFORMAT > NAME GTiff > DRIVER "GDAL/GTiff" > MIMETYPE "image/tiff" > IMAGEMODE RGB > EXTENSION "tif" > END #OUTPUTFORMAT > > WEB > #WCS Required > "wcs_name" "Public OGC Web Service" > "wcs_service_onlineresource" "http://url" > "wcs_onlineresource" "http://url/ms?" > "wcs_srs" "EPSG:4269" > "wcs_fees" "none" > "wcs_accessconstraints" "none" > "wcs_label" "Public WCS" > END > > LAYER > NAME "NTS_250k" > STATUS ON > TILEINDEX "NTS_250k_Index" #uses a postgis layer > TILEITEM "location" > TYPE RASTER > > MAXSCALE 1000000 > MINSCALE 50000 > > METADATA > #WMS Layer > "wms_title" "250k NTS Maps" > "wms_abstract" "1:250000 Canadian National Topographic Series" > "wms_srs" "EPSG:4269" > "wms_extent" "-134 41 -73 61" > > #WCS Layer > "wcs_name" "250k NTS Maps" > "wcs_label" "1:250000 Canadian National Topographic Series" > "wcs_srs" "EPSG:4269" > "wcs_extent" "-134 41 -73 61" > "wcs_resolution" "0.000505538 0.000505538" > "wcs_size" "1000 1000" > "wcs_formats" "GTiff" > "wcs_nativeformat" "Paletted 8-bit png" > "wcs_bandcount" "1" > END #METADATA > > PROJECTION > "init=epsg:4269" > END #PROJECTION > > END #LAYER > > > I have tried to include all the required tags but my wcs getcapabilities > returns with no mention of my layer/coverage (WMS & WFS in same mapfile works > fine). Am I missing something required? > > Any ideas or help would be appreciated, > > Thanks, > > ~Angus > From trondmm-mapserver at CRUSADERS.NO Wed Jul 12 13:26:40 2006 From: trondmm-mapserver at CRUSADERS.NO (Trond Michelsen) Date: Wed, 12 Jul 2006 22:26:40 +0200 Subject: SHAPEPATH problems In-Reply-To: <1152724398.44b52dae8b24a@webmail.oregonstate.edu> Message-ID: On Wed, Jul 12, 2006 at 10:13:18AM -0700, Ryan Ollerenshaw wrote: > I am having some problems accessing my shapefiles the below works: > SHAPEPATH "../data/themis" [...] > TILEINDEX "thm_dir.shp" > but when i change it to: > SHAPEPATH "../data" [...] > TILEINDEX "themis/thm_dir.shp" > all i get is a blank page. I think this is because of the tileindex. The tileindex includes the names of the real shapefiles, and if I remember correctly, these paths are interpreted as being relative to SHAPEPATH, not as relative to the location of your tileindex. So that means that mapserver finds your tileindex, finds out which shapefiles to use, and starts looking for them in ../data/, while they're actually in ../data/themis/ A possible fix would be to recreate the tileindex. -- Trond Michelsen From mbrown at AL1CALL.COM Wed Jul 12 12:39:36 2006 From: mbrown at AL1CALL.COM (Matt Brown) Date: Wed, 12 Jul 2006 14:39:36 -0500 Subject: Problems drawing polygons In-Reply-To: <1152733640.44b551c8481af@imp8-g19.free.fr> Message-ID: Julien, try adding the first point again(to the end), to close the polygon. so for a 4 point polygon, you will have five pairs of coordinates in your array. Matt -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]On Behalf Of Julien Bessiere Sent: Wednesday, July 12, 2006 2:47 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Problems drawing polygons Hi, I'm using a function to draw a polygon on my maps. The user clicks wherever he wants and i store the coordinates in a php array and pass the array to the function. My problem is that the first point doesn't appear in my polygon. For example, if i have 4 points, my polygon will be a triangle with the second, the third and the fourth point. My array is something like : Array ( [0] => Array ( [0] => -80.4178572857 [1] => 9.310714794 ) [1] => Array ( [0] => -79.4750001429 [1] => 9.69642909 ) [2] => Array ( [0] => -79.0785715714 [1] => 9.0000005 ) [3] => Array ( [0] => -80.0428572857 [1] => 8.442857628 ) ) And here is my function : function drawPolygon($map,$polygon_coordinates){ $layer = ms_newLayerObj($map); $layer->set("name","polygon"); $layer->set("status",MS_DEFAULT); if (count($polygon_coordinates) < 3) $layer->set("type",MS_POINT); else $layer->set("type",MS_LAYER_POLYGON); $class = ms_newClassObj($layer); $class->label->set("type",MS_BITMAP); $stylepoint = ms_newStyleObj($class); $stylepoint->set('symbolname',"circle"); $stylepoint->set('size',10); $stylepoint->color->setRGB(200,200,0); $line = ms_newLineObj(); foreach ($polygon_coordinates as $record){ $point = ms_newPointObj(); $x = $record[0]; $y = $record[1]; $point->setXY($x,$y); $line->add($point); } $shape = ms_newShapeObj(MS_SHAPE_POLYGON); $shape->set("classindex", 0); $shape->add($line); $shape->set("text","MYpolygon"); $layer->addFeature($shape); $point->free(); $shape->free(); } thanks in advance for your help Julien From warmerdam at POBOX.COM Wed Jul 12 14:11:57 2006 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Wed, 12 Jul 2006 17:11:57 -0400 Subject: Failed to draw layer error with mysql points In-Reply-To: <23c59e280607121040m1a9e4594ma40bbb87ec95beda@mail.gmail.com> Message-ID: Sarah Parrott wrote: > Hi, > > I'm trying to get point data out of mysql to display on a map. I'm > using the following .ovf file, which I've tested using ogrinfo and seems > to work fine. > > > > > MYSQL:test_gis,user=root,password=mypword,host=127.0.0.1 > ,port=3306,tables=boxes > SELECT fid, x, y FROM boxes > wkbPoint > > > ... > I've tried loads of different things in the .map file (below) but I > still end up with the same problem. Does anyone know what I'm going wrong? Sarah, I would suggest trying shp2img on your map. I *suspect* this is the problem with OGR datasources where OGR issues an error internally about not supporting setting attribute (or perhaps it was spatial) constraints on an ExecuteSQL() result and this causing unnecessary problems in mapserver. But the expected error message is not visible in your report - possibly because it is being masked by something more generic. Possibly shp2img with DEBUG ON for the map and layer in question would give more detailed information. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | President OSGF, http://osgeo.org From pcreso at PCRESO.COM Wed Jul 12 14:36:12 2006 From: pcreso at PCRESO.COM (Brent Wood) Date: Wed, 12 Jul 2006 14:36:12 -0700 Subject: Map File Work In-Reply-To: <44B52F8D.2030704@omlet.co.uk> Message-ID: --- James Tuthill wrote: > Hi Tyler, > > Thanks for the recommendations. I think QGIS is based on MapWindow - > however it has a much slicker interface and it slightly easier to use. > I don't have access to ESRI ArcView but I have requested an evaluation CD. > > Does anyone know a good free shape file editor? as the one in MapWindow > is quite buggy. I think the OpenJump package has had a lot of work put into deveoping an editing capability. You could also use GRASS, although it is a lot of functionality for just an editor :-) Cheers, Brent Wood From Richie.Pierce at ARKANSAS.GOV Wed Jul 12 14:44:00 2006 From: Richie.Pierce at ARKANSAS.GOV (Richie Pierce) Date: Wed, 12 Jul 2006 16:44:00 -0500 Subject: Map File Work Message-ID: You might check ACCUGlobe to see if it's what you are looking for. You can edit shapefile as well as view Sid, Tif and Jpg raster formats. http://www.ddti.net/accuglobe.asp Richie Pierce GIS Specialist Arkansas Geographic Information Office (w)501-682-2937 (c)501-416-2267 www.gis.state.ar.us -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Brent Wood Sent: Wednesday, July 12, 2006 4:36 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] Map File Work --- James Tuthill wrote: > Hi Tyler, > > Thanks for the recommendations. I think QGIS is based on MapWindow - > however it has a much slicker interface and it slightly easier to use. > I don't have access to ESRI ArcView but I have requested an evaluation CD. > > Does anyone know a good free shape file editor? as the one in MapWindow > is quite buggy. I think the OpenJump package has had a lot of work put into deveoping an editing capability. You could also use GRASS, although it is a lot of functionality for just an editor :-) Cheers, Brent Wood From ollerery at ENGR.ORST.EDU Wed Jul 12 15:28:19 2006 From: ollerery at ENGR.ORST.EDU (Ryan Ollerenshaw) Date: Wed, 12 Jul 2006 15:28:19 -0700 Subject: SHAPEPATH problems In-Reply-To: <20060712202640.GE7819@crusaders.no> Message-ID: Quoting Trond Michelsen : > On Wed, Jul 12, 2006 at 10:13:18AM -0700, Ryan Ollerenshaw wrote: > > I am having some problems accessing my shapefiles the below works: > > SHAPEPATH "../data/themis" > [...] > > TILEINDEX "thm_dir.shp" > > > but when i change it to: > > SHAPEPATH "../data" > [...] > > TILEINDEX "themis/thm_dir.shp" > > > all i get is a blank page. > > I think this is because of the tileindex. The tileindex includes the > names of the real shapefiles, and if I remember correctly, these paths > are interpreted as being relative to SHAPEPATH, not as relative to the > location of your tileindex. So that means that mapserver finds your > tileindex, finds out which shapefiles to use, and starts looking for > them in ../data/, while they're actually in ../data/themis/ > > A possible fix would be to recreate the tileindex. > > -- > Trond Michelsen > yes rebuilding the tileindex in the /data/ directory does fix the problem but i wanted to have all my data for a specific data type in one folder and not have the tiles in the /data/themis/ folder and the tileindex for that data set in /data/. The problem is that i have a lot of different datasets so it would be nice to have all the data for one dataset in one folder (tiles and tileindex). But perhaps that is not a possibility. From ltrevinoh at GMAIL.COM Wed Jul 12 16:26:09 2006 From: ltrevinoh at GMAIL.COM (=?ISO-8859-1?Q?Luis_Trevi=F1o?=) Date: Wed, 12 Jul 2006 18:26:09 -0500 Subject: 500 Internal Server Errors In-Reply-To: Message-ID: Roland: Could be the "DATA" sql statement on your map file. It would be easier if you can show part of your map file that involves the postgis layer. Regards, Luis 2006/7/12, Roland Martin : > > OK, this is probably yet another stupid query to which I should know the > answer... however, I'm on a roll here. > > I've got an application which is intermittently (i.e. most of the time, > but not always) throwing a 500 Internal Server Error. The application is > almost a direct clone of another which does not exhibit the same error. > > I've spent most of the afternoon trying to figure out why this might be, > and as far as I can tell, it's something to do with the PostGIS database > which holds most of the data. If I remove all the PostGIS layers, it seems > to work fine (although interestingly doesn't work if they're all in the map > file but turned off - does MapScript try to load the layers regardless?) > > The database contains converted CAD (DWG) data with typically stupid > contents (meaningless fields, escape characters, etc). I wondered if it > might be to do with the sizes of the tables (>30 000 records in each), but > dissolving them doesn't seem to have made much difference. At the moment I'm > leaning towards thinking it may be because of the aforementioned escape > characters (looking down the tables, a number just contain the entry " which > might upset things; others start with an asterisk). However, some of the > tables causing the issue don't contain anything nearly as nasty. > > The error is being thrown on loading the map; approximately 80-90% of the > time. > > Also of interest may be the following gunk from the error logs: > [Wed Jul 12 16:29:11 2006] [error] [client x] Premature end of script > headers: php-cgi.exe, referer: http://x/lbia_dev/ > [Wed Jul 12 16:51:08 2006] [error] [client x] Premature end of script > headers: php-cgi.exe, referer: http://x/lbia_dev/ > (etc) > > Anyone have any thoughts on this? > > Ta, > Roland. > > > MS4W 2.0 > MapServer 4.8.3 > Chameleon for MS4W 2.4 > PgSQL 8.1 > etc 1.0 > > > > -- > Please note my new email address. Use other addresses at your peril. > -------------- next part -------------- An HTML attachment was scrubbed... URL: From tom at MAPLINK.JP Wed Jul 12 20:57:13 2006 From: tom at MAPLINK.JP (Thomas Hammerlund) Date: Thu, 13 Jul 2006 12:57:13 +0900 Subject: Mapserver Installation: PHP Configuration Problem Message-ID: Hi, I'm trying to install Mapserver on Fedora 5. I'm following this tutorial http://mapserver.gis.umn.edu/docs/ho...elinuxinstall/ and I made it to the "Configuring PHP" section, but now I'm stuck. I got the error that is listed in the tutorial about libpng not found, so I followed the advice at the end of the tutorial so I changed the ./configure command is this: ./configure --prefix=/usr/local/apache/php --with-apxs2=/usr/local/apache/bin/apxs --disable-cgi --with-config-file-path-=/usr/local/apache/php --with-openssl --with-kerberos --with-zlib --with-bz2 --with-curl --enable-db --enable-dbase --with-gd --with-pgsql --with-xsl --with-gettext --with-regex=system --with-zlib-dir=/usr/lib/ --with-png-dir=/usr/lib --with-ttf --with-freetype-dir=/usr/lib --with-jpeg-dir=/usr/lib --with-ttf-dir=/usr/lib --with-pgsql=/usr/local/pgsql --with-xpm-dir=/usr/include/X11/xpm.h --with-X11-dir=/usr/include/X11/ ./configure --prefix=/usr/local/apache/php --with-apxs2=/usr/local/apache/bin/apxs --disable-cgi --with-config-file-path-=/usr/local/apache/php --with-openssl --with-kerberos --with-zlib --with-bz2 --with-curl --enable-db --enable-dbase --with-gd --with-pgsql --with-xsl --with-gettext --with-regex=system --with-zlib-dir=/usr/lib/ --with-png-dir=/usr/lib --with-ttf --with-freetype-dir=/usr/lib --with-jpeg-dir=/usr/lib --with-ttf-dir=/usr/lib --with-pgsql=/usr/local/pgsql Then it gave me an error that said it couldn't find xpm.h so I added --with-xpm-dir=/usr/include/X11/xpm.h --with-X11-dir=/usr/include/X11/ because xpm.h is in the path /usr/include/X11/. But that didn't work either. I tried "man configure" and "configure --help" to get some ideas, but those didn't work. I tried asking on some Linux forums but I haven't been able to find an answer. Has anyone had this problem? Thank you, Tom -------------- next part -------------- An HTML attachment was scrubbed... URL: From tom at MAPLINK.JP Wed Jul 12 23:23:59 2006 From: tom at MAPLINK.JP (Thomas Hammerlund) Date: Thu, 13 Jul 2006 15:23:59 +0900 Subject: No subject Message-ID: I guess the set up in the tutorial doesn't work for Fedora 5. I got PHP to compile by suing this configuration: ./configure --prefix=/usr/local/apache/php --with-apxs2=/usr/local/apache/bin/apxs --with-config-file-path-=/usr/local/apache/php --with-zlib --enable-dbase --with-gd --with-pgsql -------------- next part -------------- An HTML attachment was scrubbed... URL: From b.vdeijnden at AGI.RWS.MINVENW.NL Wed Jul 12 23:48:50 2006 From: b.vdeijnden at AGI.RWS.MINVENW.NL (Eijnden, Bart van den (AGI)) Date: Thu, 13 Jul 2006 08:48:50 +0200 Subject: WCS Message-ID: You are missing DUMP TRUE. Check: http://mapserver.gis.umn.edu/docs/howto/wcs_server/?searchterm=wcs Best regards, Bart -----Oorspronkelijk bericht----- Van: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]Namens Angus Dickey Verzonden: woensdag 12 juli 2006 20:05 Aan: MAPSERVER-USERS at LISTS.UMN.EDU Onderwerp: [UMN_MAPSERVER-USERS] WCS Hey list, I am trying to get WCS working in mapserver 4.8.3; the following is an excerpt from my map file: OUTPUTFORMAT NAME GTiff DRIVER "GDAL/GTiff" MIMETYPE "image/tiff" IMAGEMODE RGB EXTENSION "tif" END #OUTPUTFORMAT WEB #WCS Required "wcs_name" "Public OGC Web Service" "wcs_service_onlineresource" "http://url" "wcs_onlineresource" "http://url/ms?" "wcs_srs" "EPSG:4269" "wcs_fees" "none" "wcs_accessconstraints" "none" "wcs_label" "Public WCS" END LAYER NAME "NTS_250k" STATUS ON TILEINDEX "NTS_250k_Index" #uses a postgis layer TILEITEM "location" TYPE RASTER MAXSCALE 1000000 MINSCALE 50000 METADATA #WMS Layer "wms_title" "250k NTS Maps" "wms_abstract" "1:250000 Canadian National Topographic Series" "wms_srs" "EPSG:4269" "wms_extent" "-134 41 -73 61" #WCS Layer "wcs_name" "250k NTS Maps" "wcs_label" "1:250000 Canadian National Topographic Series" "wcs_srs" "EPSG:4269" "wcs_extent" "-134 41 -73 61" "wcs_resolution" "0.000505538 0.000505538" "wcs_size" "1000 1000" "wcs_formats" "GTiff" "wcs_nativeformat" "Paletted 8-bit png" "wcs_bandcount" "1" END #METADATA PROJECTION "init=epsg:4269" END #PROJECTION END #LAYER I have tried to include all the required tags but my wcs getcapabilities returns with no mention of my layer/coverage (WMS & WFS in same mapfile works fine). Am I missing something required? Any ideas or help would be appreciated, Thanks, ~Angus Disclaimer ************************************************************************ Aan dit bericht kunnen geen rechten worden ontleend. Dit bericht is uitsluitend bestemd voor de geadresseerde. Als u dit bericht per abuis hebt ontvangen, wordt u verzocht het te vernietigen en de afzender te informeren. Wij adviseren u om bij twijfel over de juistheid of de volledigheid van de mail contact met afzender op te nemen. This message shall not constitute any rights or obligations. This message is intended solely for the addressee. If you have received this message in error, please delete it and notify the sender immediately. When in doubt whether this message is correct or complete, please contact the sender. ************************************************************************ From madprof at GMX.CH Thu Jul 13 00:05:29 2006 From: madprof at GMX.CH (Daniel Goetz) Date: Thu, 13 Jul 2006 09:05:29 +0200 Subject: Porjection and WMS Message-ID: Hi community, I have some questions concernig the PROJECTION-Objects in the MAP-object as well as in the LAYER-object. And second concening PROJECTION, WMS_SRS and WMS-services. Of course I havae read the mapserver wms server how-to as well as the mapserver mapfile ref, but I could not understand exactly. Perhaps anybody of you might bring some light in my darkness. What stands the PORJECTION-object in the MAP-object for (not in case of WMS)? In my understanding it defines the projetion of the output image that mapserver generates. Is this true? And if so can I choose every procetion in the PROJECTION-object of the MAP-object regardless of the projection of the single layers? What stands the PROJECTION-object in the LAYER-object for (not in the case of a WMS)? In my understanding this should be the projection in which the input data are recorded. Is this true? So for each LAYER there is definitively only one type of projection possible in fact the one in which the original input data are recorded. And now the case of a WMS-Server: What stands the PROJECTION-object in the MAP-object of a WMS-service for in contrast to the WMS_SRS parameter of the METADATA in the MAP-object? Is this the same as in "normal" mapserver applications and the PROJECTION-object gives the projection mapserver shall project its output-images? What is the difference between PROJECTION-object and WMS_SRS parameters in the MAP-object? And what about the PROCETION-object and the WMS_SRS-metadata in the LAYER-objects? should this be the declaration of the "real" PROCETION/SRS the input-data are in? And what is the difference between PROJECTION and WMS_SRS in this case? Thank you for your efforts and your help. Thank you. regards Daniel Goetz -- Echte DSL-Flatrate dauerhaft f?r 0,- Euro*! "Feel free" mit GMX DSL! http://www.gmx.net/de/go/dsl From giuseppe.derossi at EMAIL.IT Thu Jul 13 00:08:12 2006 From: giuseppe.derossi at EMAIL.IT (Giuseppe De Rossi) Date: Thu, 13 Jul 2006 09:08:12 +0200 Subject: trouble in tileindex technique Message-ID: Hi Jeff, first thank you very much for your support. I got it: in the last step everything was ok, no error messaage but no map, in my last attemp, before asking for another help of yours, I've added the colour, and the map appeared :-)) . Thanks and best regards. Giu --------- Original Message -------- Da: Jeff McKenna To: MAPSERVER-USERS at LISTS.UMN.EDU Oggetto: Re: [UMN_MAPSERVER-USERS] trouble in tileindex technique Data: 11/07/06 20:58 > > > > TILEITEM is the name of the field in your index F636_PRG-IDX.dbf file > containing the paths. It is "location" by default. Whatever yours is > should be specified in your TILEITEM parameter of your layer. > > jeff > > > > Giuseppe De Rossi wrote: > > Hi, > > I'm performing for the first time the tile index technique in Win xp > > Environment. > > I've generated the *.qix file and I've used tile4ms to generate > > F636_PRG-IDX.(dbf,shx,idx), I've modified the .map file in the following way > > > > > > > > LAYER > > NAME "F636_PRG-IDX" > > STATUS ON > > TILEINDEX "F636_PRG-IDX.shp" > > TILEITEM "F636_PRG-IDX" > > TYPE POLYGON > > END > > > > But I get this error: > > > > > > Class : SoapFaultWrapperMessage : Mapserver error: Error in msDrawMap(): > > Failed to draw layer named 'F636_PRG-IDX'. > > Error in msDBFGetItemIndex(): Item 'F636_PRG-IDX' not found. > > > > am I supposed to perform other action ? > > > > Thanks in advance and best regards. > > > > > > > > > > > > > -- > Jeff McKenna > DM Solutions Group Inc. > http://www.dmsolutions.ca > > > -- Email.it, the professional e-mail, gratis per te: http://www.email.it/f Sponsor: Video Lezioni Gratis? Internet, Informatica, Hobby direttamente da professionisti. Scopri adesso come imparare senza fatica e stress! Clicca qui: http://adv.email.it/cgi-bin/foclick.cgi?mid=5147&d=20060713 From aiandolo at GRUPPOAS.IT Thu Jul 13 00:04:15 2006 From: aiandolo at GRUPPOAS.IT (Antonio Iandolo) Date: Thu, 13 Jul 2006 09:04:15 +0200 Subject: R: [UMN_MAPSERVER-USERS] 500 Internal Server Errors In-Reply-To: Message-ID: Hi Roland, well...an internal error is quite generic to be sure about the reason...I guess it could be the interface to the db...I had a similar problem with oracle and I finally realized that php was using a wrong oci.dll (earlier version) to connect the database. Could you try a simple script just with the logon to the db? Antonio -----Messaggio originale----- Da: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] Per conto di Roland Martin Inviato: mercoled? 12 luglio 2006 18.03 A: MAPSERVER-USERS at LISTS.UMN.EDU Oggetto: [UMN_MAPSERVER-USERS] 500 Internal Server Errors OK, this is probably yet another stupid query to which I should know the answer... however, I'm on a roll here. I've got an application which is intermittently (i.e. most of the time, but not always) throwing a 500 Internal Server Error. The application is almost a direct clone of another which does not exhibit the same error. I've spent most of the afternoon trying to figure out why this might be, and as far as I can tell, it's something to do with the PostGIS database which holds most of the data. If I remove all the PostGIS layers, it seems to work fine (although interestingly doesn't work if they're all in the map file but turned off - does MapScript try to load the layers regardless?) The database contains converted CAD (DWG) data with typically stupid contents (meaningless fields, escape characters, etc). I wondered if it might be to do with the sizes of the tables (>30 000 records in each), but dissolving them doesn't seem to have made much difference. At the moment I'm leaning towards thinking it may be because of the aforementioned escape characters (looking down the tables, a number just contain the entry " which might upset things; others start with an asterisk). However, some of the tables causing the issue don't contain anything nearly as nasty. The error is being thrown on loading the map; approximately 80-90% of the time. Also of interest may be the following gunk from the error logs: [Wed Jul 12 16:29:11 2006] [error] [client x] Premature end of script headers: php-cgi.exe, referer: http://x/lbia_dev/ [Wed Jul 12 16:51:08 2006] [error] [client x] Premature end of script headers: php-cgi.exe, referer: http://x/lbia_dev/ (etc) Anyone have any thoughts on this? Ta, Roland. MS4W 2.0 MapServer 4.8.3 Chameleon for MS4W 2.4 PgSQL 8.1 etc 1.0 -- Please note my new email address. Use other addresses at your peril. From kobben at ITC.NL Thu Jul 13 00:26:02 2006 From: kobben at ITC.NL (=?iso-8859-1?Q?Barend_K=F6bben?=) Date: Thu, 13 Jul 2006 09:26:02 +0200 Subject: Does Mapserver 4.8.3 work with windows 2000 and IIS 5 In-Reply-To: A<20060712171741.27162.qmail@web34205.mail.mud.yahoo.com> Message-ID: HI, In my experience, you also need to: -Go to IIS Manager - Open "Web Service Extensions" - Allow cgi-bin/mapserv.exe - Restart web server -- Barend K?bben International Institute for Geo-information Sciences and Earth Observation (ITC) PO Box 6, 7500AA Enschede (The Netherlands) ph: +31 (0)53 4874253; fax: +31 (0)53 4874335 > -----Original Message----- > From: UMN MapServer Users List > [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of rock well > Sent: 12 July 2006 19:18 > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] Does Mapserver 4.8.3 work > with windows 2000 and IIS 5 > > Hey andrew thanks, for the reply, i guess its the IIS 5 > issue. When i copied the mapserv and the required dlls to > 2003 with IIS 6 i was able to generate the map with no issues. > > Thanks for your time > kris > > Andrew Krakowski wrote: > > Hi Kris, > > Have you been able to generate the "No query > information to decode. > QUERY_STRING is set, but empty." message? > > Have you read the online IIS MapServer instructions? > There are a couple > you can find. > > I'm not sure the difference between IIS 5 and 6 but > I've succeeded with > MapServer 4.8.3 working on IIS 6.0 on XP. > > Create a cgi-bin directory in your Inetpub directory > and copy the > contents of the ms4w\Apache\cgi-bin directory into it. > > In IIS add this directory as a virtual directory to > your web-site. > Right-click Properties under the cgi-bin Virtual > Directory and select > Scripts and Executables for Executables permission in > the Virtual > Directory Tab. > > When you right click the mapserv.exe file in IIS and > select Browse in > IIS you should get the above message. > > Hope that helps; if not let me know. > Andrew > > > rock well wrote: > > Hi all, i have posted this question earlier but had > to luck ..... i have been trying to configure mapserver > -4.8.3 on a windows 2000 machine with IIS 5. I tried > different options like just having the basic libraries like > proj,GD, regex. When i try to generate a map i always get a > > > > CGI Error > > The specified CGI application misbehaved by not > returning a complete set of HTTP headers. The headers it did > return are: > > > > i tried it from php mapscript, from a normal html > file same result ..... > > > > i dont know what wrong am i doing .... if anyone have > configured mapserver with this configuration can you please > suggest me, or any information might help ... > > > > Thanks a lot for your time, > > kris > > > > > > --------------------------------- > > Yahoo! Messenger with Voice. Make PC-to-Phone Calls > to the US (and 30+ countries) for 2?/min or less. > > -- > Andrew Krakowski > Programmer, Refractions Research Inc. > > > > ________________________________ > > Want to be your own boss? Learn how on Yahoo! Small Business. > com/r-index> > From roland.w.martin at GMAIL.COM Thu Jul 13 01:52:28 2006 From: roland.w.martin at GMAIL.COM (Roland Martin) Date: Thu, 13 Jul 2006 09:52:28 +0100 Subject: 500 Internal Server Errors In-Reply-To: Message-ID: Hi Luis, Thanks for your reply. I don't think that's the problem, but here are some excerpts nonetheless: LAYER # this one works NAME "Contours" GROUP "Height" STATUS OFF CONNECTIONTYPE postgis CONNECTION "dbname=lba user=postgres password=postgres" DATA "geom from height_data" TYPE LINE LABELITEM "height" CLASS EXPRESSION ('[layer_name]' = 'C900LX000') COLOR 204 51 0 LABEL FONT sans SIZE small COLOR 100 100 100 OUTLINECOLOR 255 255 255 POSITION auto ANTIALIAS false END END END LAYER # this one doesn't NAME "Background Drawing" GROUP "CAD Drawings" STATUS OFF CONNECTIONTYPE postgis CONNECTION "dbname=lba user=postgres password=postgres" DATA "geometry from background" TYPE LINE CLASS COLOR 51 102 0 END END The geometry column names are different because I generated the tables from 2 different sources - but that shouldn't make any difference... Cheers, Roland. On 13/07/06, Luis Trevi?o wrote: > > Roland: > > Could be the "DATA" sql statement on your map file. It would be easier if > you can show part of your map file that involves the postgis layer. > > Regards, > Luis > > > 2006/7/12, Roland Martin : > > > OK, this is probably yet another stupid query to which I should know the > > answer... however, I'm on a roll here. > > > > I've got an application which is intermittently (i.e. most of the time, > > but not always) throwing a 500 Internal Server Error. The application is > > almost a direct clone of another which does not exhibit the same error. > > > > I've spent most of the afternoon trying to figure out why this might be, > > and as far as I can tell, it's something to do with the PostGIS database > > which holds most of the data. If I remove all the PostGIS layers, it seems > > to work fine (although interestingly doesn't work if they're all in the map > > file but turned off - does MapScript try to load the layers regardless?) > > > > The database contains converted CAD (DWG) data with typically stupid > > contents (meaningless fields, escape characters, etc). I wondered if it > > might be to do with the sizes of the tables (>30 000 records in each), but > > dissolving them doesn't seem to have made much difference. At the moment I'm > > leaning towards thinking it may be because of the aforementioned escape > > characters (looking down the tables, a number just contain the entry " which > > might upset things; others start with an asterisk). However, some of the > > tables causing the issue don't contain anything nearly as nasty. > > > > The error is being thrown on loading the map; approximately 80-90% of > > the time. > > > > Also of interest may be the following gunk from the error logs: > > [Wed Jul 12 16:29:11 2006] [error] [client x] Premature end of script > > headers: php-cgi.exe, referer: http://x/lbia_dev/ > > [Wed Jul 12 16:51:08 2006] [error] [client x] Premature end of script > > headers: php-cgi.exe, referer: http://x/lbia_dev/ > > (etc) > > > > Anyone have any thoughts on this? > > > > Ta, > > Roland. > > > > > > MS4W 2.0 > > MapServer 4.8.3 > > Chameleon for MS4W 2.4 > > PgSQL 8.1 > > etc 1.0 > > > > > > > > -- > > Please note my new email address. Use other addresses at your peril. > > > > -- Please note my new email address. Use other addresses at your peril. -------------- next part -------------- An HTML attachment was scrubbed... URL: From byhisdeeds at GMAIL.COM Thu Jul 13 02:22:19 2006 From: byhisdeeds at GMAIL.COM (John Preston) Date: Thu, 13 Jul 2006 04:22:19 -0500 Subject: Using postgis to store tile index Message-ID: I am currently using the TILEINDEX parameter in the LAYER section of the map file to get tiling implemented. Is it possible to use a postgis table to store the tile index instead of a shape file (xxx.shp and xxx.dbf) as I may have a very large number of tile (~10,000) and I was figuring that the postgis solution would offer better response times. If not does anybody know what I kight do to speed up the response time when I have say 10000 files within a particular scale region. John From stuarteve at LPARCHAEOLOGY.COM Thu Jul 13 02:38:05 2006 From: stuarteve at LPARCHAEOLOGY.COM (Stuart Eve) Date: Thu, 13 Jul 2006 10:38:05 +0100 Subject: Mapserver returns blank pages In-Reply-To: <44B53D55.4010004@lparchaeology.com> Message-ID: After checking the apache error log we also get: [Thu Jul 13 10:22:02 2006] [notice] child pid 9429 exit signal Segmentation fault (11) We are using mapserver 4.8.3, php 4.3.10 and apache 2.0.53 running on a Suse 10 box. The mapscript functions that seem to be in use when the crash is caused are: queryByAttributes(), getResult() and getShape() should we list this as a bug on Bugzilla? Thanks Stuart Stuart Eve wrote: > We are having (and have had for while_ this problem - and it does seem > reasonably random. > > The main trouble is that I don't know how to get php to spew out the > error - and instead it just returns this blank screen, instead of > returning the error as it does normally. I had first thought that it > was because I was using php mapscript and had nested functions - but > it seems like lots of people are coming up with the same thing. > > Anyone got any ideas? > > Matthew Kane wrote: >> I wasn't actually using php mapscript in the mapfile that gave me >> segmentation faults. Strangely, I got the map to display on a Sun >> machine if I removed all references to true-type fonts and relied >> only on bitmap fonts for my labels. Even more strange is that when I >> moved the same file to a red hat server, mapserver simply hangs. No >> error message in either the browser or the apache error logs, just >> hanging. The same thing happened when I tried running the mapfile >> with shp2img. Has anyone else experienced this problem? Could this be >> a bug in one of the third party libraries that mapserver relies on? >> Or more likely a problem in how we code our mapfiles? >> >> Thanks, >> Matt >> >> On 7/12/06, *antti siukola* > > wrote: >> >> Hi! >> >> As we can see a lot of people are suffering from this but no one >> seems >> to have any solutions. Does this only appear with php mapscript? Is >> this a bug? A known bug? Is there a solutions? This is a fatal error >> since this kind of behavior avoids us to use php mapscript in >> production, in case this is a php mapscript issue as it seems to be. >> >> Regards, >> >> Antti S >> >> On 6/13/06, Matthew Kane < markane at indiana.edu >> > wrote: >> > I second that question, as I am receiving Segmentation Faults >> as well... >> > >> > Matt >> > >> > On 6/13/06, antti siukola < siukola.antti at gmail.com >> > wrote: >> > > Hi! >> > > >> > > Every time MapServer returns a blank page I find "[notice] >> child pid >> > > xxxx exit signal Segmentation fault (11)" from apache's >> error_log. Any >> > > thoughts? Blank pages are returned randomly. >> > > >> > > AnttiS >> > > >> > >> >> > > > -- > Stuart Eve > L - P : Archaeology > stuarteve at lparchaeology.com -- Stuart Eve L - P : Archaeology stuarteve at lparchaeology.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From spot.news at GMX.NET Thu Jul 13 02:48:10 2006 From: spot.news at GMX.NET (Spot) Date: Thu, 13 Jul 2006 11:48:10 +0200 Subject: Query and zoom mode Message-ID: Hi! I am experimenting with Mapserver for about 2 months now but still considering myself as relatively new and unexperienced. I use the Windows CGI together with jBox and static map sourcefiles. At the moment I have got a problem with the nquery-mode. The query is executed correctly and a query map image with highlighted features based on the user selection is created. When I submit the form with the query, everything goes fine. The query result is shown and the map is created, but the resulting map png is zoomed. The URL looks like this: http://localhost/path_to/mapserv.exe?imgbox=304+324+334+356&layer=layer1&layer=layer2&layer=layer3&qlayer=layer3&zoomdir=0&zoomsize=1&mode=nquery&dummyname=dummyvalue&buttonActive=button4&mapsize=500+500&querymode=&imgxy=304+324&imgext=396997.000000+4480748.500000+409180.000000+4492931.500000&mapxy=&scale=&map=path_to/mapfile.map&mapext=shapes&savequery=true When I remove the "zoomsize" or the "zoomdir" attribute the CGI doesn't create a results page for the query, but instead shows the normal map template with a zoomed map. If I set the "zoomsize" to 0, I get an error from the CGI. How can I solve this? Thanks, Philip From madprof at GMX.CH Thu Jul 13 03:55:18 2006 From: madprof at GMX.CH (Daniel Goetz) Date: Thu, 13 Jul 2006 12:55:18 +0200 Subject: Query and zoom mode Message-ID: Hi Philip, in my opinion the problem is related with the "mapext" parameter in your ULR. You wrote the value "shape" for "mapext" (mapext=shape). You should set this parameter-value to the mapextent you used before sending your query (selection). Try this: name="mapext" value="[mapext]" I think this should solve the problem. Good luck and please let me know about the result. regards Daniel -------- Original-Nachricht -------- Datum: Thu, 13 Jul 2006 11:48:10 +0200 Von: Spot An: MAPSERVER-USERS at LISTS.UMN.EDU Betreff: [UMN_MAPSERVER-USERS] Query and zoom mode > Hi! > > I am experimenting with Mapserver for about 2 months now but still > considering myself as relatively new and unexperienced. > I use the Windows CGI together with jBox and static map sourcefiles. > At the moment I have got a problem with the nquery-mode. The query is > executed correctly and a query map image with highlighted features based > on the user selection is created. When I submit the form with the query, > everything goes fine. The query result is shown and the map is created, > but the resulting map png is zoomed. > The URL looks like this: > > http://localhost/path_to/mapserv.exe?imgbox=304+324+334+356&layer=layer1&layer=layer2&layer=layer3&qlayer=layer3&zoomdir=0&zoomsize=1&mode=nquery&dummyname=dummyvalue&buttonActive=button4&mapsize=500+500&querymode=&imgxy=304+324&imgext=396997.000000+4480748.500000+409180.000000+4492931.500000&mapxy=&scale=&map=path_to/mapfile.map&mapext=shapes&savequery=true > > > When I remove the "zoomsize" or the "zoomdir" attribute the CGI doesn't > create a results page for the query, but instead shows the normal map > template with a zoomed map. > If I set the "zoomsize" to 0, I get an error from the CGI. > > How can I solve this? > > Thanks, > Philip -- Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen! Ideal f?r Modem und ISDN: http://www.gmx.net/de/go/smartsurfer -- Echte DSL-Flatrate dauerhaft f?r 0,- Euro*! "Feel free" mit GMX DSL! http://www.gmx.net/de/go/dsl From siukola.antti at GMAIL.COM Thu Jul 13 04:25:54 2006 From: siukola.antti at GMAIL.COM (antti siukola) Date: Thu, 13 Jul 2006 14:25:54 +0300 Subject: Mapserver returns blank pages In-Reply-To: <44B6147D.60100@lparchaeology.com> Message-ID: I've noticed that these Segmantation faults are logged even if there's no blank page returned so I don't think that these two have a relation. At least I get segmatation faults quite randomly. Cheers Antti S On 7/13/06, Stuart Eve wrote: > > After checking the apache error log we also get: > > [Thu Jul 13 10:22:02 2006] [notice] child pid 9429 exit signal Segmentation > fault (11) > > We are using mapserver 4.8.3, php 4.3.10 and apache 2.0.53 running on a > Suse 10 box. > > The mapscript functions that seem to be in use when the crash is caused > are: queryByAttributes(), getResult() and getShape() > > should we list this as a bug on Bugzilla? > > Thanks > > Stuart > > > > Stuart Eve wrote: > We are having (and have had for while_ this problem - and it does seem > reasonably random. > > The main trouble is that I don't know how to get php to spew out the error > - and instead it just returns this blank screen, instead of returning the > error as it does normally. I had first thought that it was because I was > using php mapscript and had nested functions - but it seems like lots of > people are coming up with the same thing. > > Anyone got any ideas? > > Matthew Kane wrote: > I wasn't actually using php mapscript in the mapfile that gave me > segmentation faults. Strangely, I got the map to display on a Sun machine if > I removed all references to true-type fonts and relied only on bitmap fonts > for my labels. Even more strange is that when I moved the same file to a red > hat server, mapserver simply hangs. No error message in either the browser > or the apache error logs, just hanging. The same thing happened when I tried > running the mapfile with shp2img. Has anyone else experienced this problem? > Could this be a bug in one of the third party libraries that mapserver > relies on? Or more likely a problem in how we code our mapfiles? > > Thanks, > Matt > > > On 7/12/06, antti siukola wrote: > > Hi! > > > > As we can see a lot of people are suffering from this but no one seems > > to have any solutions. Does this only appear with php mapscript? Is > > this a bug? A known bug? Is there a solutions? This is a fatal error > > since this kind of behavior avoids us to use php mapscript in > > production, in case this is a php mapscript issue as it seems to be. > > > > Regards, > > > > Antti S > > > > On 6/13/06, Matthew Kane < markane at indiana.edu> wrote: > > > I second that question, as I am receiving Segmentation Faults as well... > > > > > > Matt > > > > > > On 6/13/06, antti siukola < siukola.antti at gmail.com> wrote: > > > > Hi! > > > > > > > > Every time MapServer returns a blank page I find "[notice] child pid > > > > xxxx exit signal Segmentation fault (11)" from apache's error_log. Any > > > > thoughts? Blank pages are returned randomly. > > > > > > > > AnttiS > > > > > > > > > > > > > -- > Stuart Eve > L - P : Archaeology > stuarteve at lparchaeology.com > > > -- > Stuart Eve > L - P : Archaeology > stuarteve at lparchaeology.com > > From jeff at PROPERTYKEY.COM Thu Jul 13 04:43:53 2006 From: jeff at PROPERTYKEY.COM (Jeff Hoffmann) Date: Thu, 13 Jul 2006 06:43:53 -0500 Subject: Using postgis to store tile index In-Reply-To: <14320c890607130222p25bc3a70h9f236fca116946c1@mail.gmail.com> Message-ID: John Preston wrote: > I am currently using the TILEINDEX parameter in the LAYER section of > the map file to get tiling implemented. Is it possible to use a > postgis table to store the tile index instead of a shape file (xxx.shp > and xxx.dbf) as I may have a very large number of tile (~10,000) and I > was figuring that the postgis solution would offer better response > times. > > If not does anybody know what I kight do to speed up the response time > when I have say 10000 files within a particular scale region. Make sure that your tileindex is correctly indexed using shptree. Also, if only have one layer set up to handle a wide range of scales, you might find it performs better if you build overview layers for the higher scales so you end up opening less files per request. I have several layers set up that have over 100,000 images that perform perfectly well with a standard shapefile tileindex. --- Jeff Hoffmann Head Plate Spinner PropertyKey.com From richard.martin at TASCOMI.COM Thu Jul 13 05:12:23 2006 From: richard.martin at TASCOMI.COM (DrDik) Date: Thu, 13 Jul 2006 05:12:23 -0700 Subject: tile4ms aborts due to DBF fields not matching Message-ID: Hi - I've run this on OSNI data from Northern Ireland and get: Aborted. DBF fields do not match for file:, I figured this was an error in the data but I down loaded tiger data and get the same error. I have followed the exmaple at http://mapserver.gis.umn.edu/docs/reference/utilityreference/tile4ms with no luck. Any ideas? It likes 1 file ok. But 2 files causes the Abort error. please help - I'm totally stuck! Thanks Richard -- View this message in context: http://www.nabble.com/tile4ms-aborts-due-to-DBF-fields-not-matching-tf1936865.html#a5306771 Sent from the Mapserver - User forum at Nabble.com. From ed at TOPOZONE.COM Thu Jul 13 05:37:50 2006 From: ed at TOPOZONE.COM (Ed McNierney) Date: Thu, 13 Jul 2006 08:37:50 -0400 Subject: Using postgis to store tile index Message-ID: John - Like Jeff, I've got plenty of huge TILEINDEX files. But remember that the TILEINDEX lets MapServer quickly select the FEW files it needs to respond to a particular request. If you're creating a "zoomed out" map that ends up using most of your shapefiles anyway, then there's no benefit to quickly figuring out which ones you need. And make sure you've used shptree to create a .qix quadtree index for your TILEINDEX file, as well as for all your shapefiles. Have you done that? - Ed Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 Phone: +1 (978) 251-4242 Fax: +1 (978) 251-1396 ed at topozone.com -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Jeff Hoffmann Sent: Thursday, July 13, 2006 7:44 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] Using postgis to store tile index John Preston wrote: > I am currently using the TILEINDEX parameter in the LAYER section of > the map file to get tiling implemented. Is it possible to use a > postgis table to store the tile index instead of a shape file (xxx.shp > and xxx.dbf) as I may have a very large number of tile (~10,000) and I > was figuring that the postgis solution would offer better response > times. > > If not does anybody know what I kight do to speed up the response time > when I have say 10000 files within a particular scale region. Make sure that your tileindex is correctly indexed using shptree. Also, if only have one layer set up to handle a wide range of scales, you might find it performs better if you build overview layers for the higher scales so you end up opening less files per request. I have several layers set up that have over 100,000 images that perform perfectly well with a standard shapefile tileindex. --- Jeff Hoffmann Head Plate Spinner PropertyKey.com From C.Wilmes at GMX.DE Thu Jul 13 05:51:14 2006 From: C.Wilmes at GMX.DE (Christian Wilmes) Date: Thu, 13 Jul 2006 14:51:14 +0200 Subject: UNITS Attribute in LAYER Section Message-ID: Hi All, does anybody know why there is an UNITS Attribute in the Layer Section? I could not find anything applying the UNITS Attribute in the Layer Section in the documentation on the mapserver-Homepage. So I tested different UNITS in Layers of my C#-Mapscript Project, but the map I got back from the Mapserver seems to be the same every time. Best Regards Christian -- Echte DSL-Flatrate dauerhaft f?r 0,- Euro*! "Feel free" mit GMX DSL! http://www.gmx.net/de/go/dsl From warmerdam at POBOX.COM Thu Jul 13 06:46:23 2006 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Thu, 13 Jul 2006 09:46:23 -0400 Subject: Porjection and WMS In-Reply-To: <20060713070529.213560@gmx.net> Message-ID: Daniel Goetz wrote: ... > What stands the PORJECTION-object in the MAP-object for (not in case of > WMS)? In my understanding it defines the projetion of the output image that > mapserver generates. Is this true? Yes > And if so can I choose every procetion > in the PROJECTION-object of the MAP-object regardless of the projection of > the single layers? Yes > What stands the PROJECTION-object in the LAYER-object for (not in the case > of a WMS)? In my understanding this should be the projection in which the > input data are recorded. Is this true? Yes > So for each LAYER there is > definitively only one type of projection possible in fact the one in which > the original input data are recorded. Yes Pretty easy so far! > And now the case of a WMS-Server: > > What stands the PROJECTION-object in the MAP-object of a WMS-service for in > contrast to the WMS_SRS parameter of the METADATA in the MAP-object? Is > this the same as in "normal" mapserver applications and the > PROJECTION-object gives the projection mapserver shall project its > output-images? What is the difference between PROJECTION-object and WMS_SRS > parameters in the MAP-object? I suspect the projection on the map object in a WMS situation is what would be used if no SRS is selected in the WMS request. I believe the wms_srs metadata is used in building the list of supported projections in the capabilities document and may be used to validated selected SRS values. > And what about the PROCETION-object and the WMS_SRS-metadata in the > LAYER-objects? should this be the declaration of the "real" PROCETION/SRS > the input-data are in? And what is the difference between PROJECTION and > WMS_SRS in this case? The PROJECTION block definately still needs to be the real projection of the underlying data. I believe normally the wms_srs metadata would be the list of supported projections the layer can be returned in. I'm not sure why you would use a different list for the wms_srs values for layers and the map as a whole. I'm sorry my answers with regard to wms_srs are a bit vaguer than my earlier answers. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | President OSGF, http://osgeo.org From b.vdeijnden at AGI.RWS.MINVENW.NL Thu Jul 13 07:19:24 2006 From: b.vdeijnden at AGI.RWS.MINVENW.NL (Eijnden, Bart van den (AGI)) Date: Thu, 13 Jul 2006 16:19:24 +0200 Subject: 64 bit Message-ID: Hi list, what is the status of running Mapserver/GDAL on 64-bit systems? I saw a thread by Bill Binko from sept 2005, but it did not come to any conclusions. Best regards, Bart van den Eijnden ================================= drs. A.J. van den Eijnden adviseur Productteam Applicaties Geo-Informatie Rijkswaterstaat Adviesdienst Geo-informatie en ICT Postbus 5023, 2600 GA Delft Derde Werelddreef 1, 2622 HA Delft Telefoon: (015) 275 75 75 E-mail b.vdeijnden at agi.rws.minvenw.nl ================================= Disclaimer ************************************************************************ Aan dit bericht kunnen geen rechten worden ontleend. Dit bericht is uitsluitend bestemd voor de geadresseerde. Als u dit bericht per abuis hebt ontvangen, wordt u verzocht het te vernietigen en de afzender te informeren. Wij adviseren u om bij twijfel over de juistheid of de volledigheid van de mail contact met afzender op te nemen. This message shall not constitute any rights or obligations. This message is intended solely for the addressee. If you have received this message in error, please delete it and notify the sender immediately. When in doubt whether this message is correct or complete, please contact the sender. ************************************************************************ From nbarker at ITTVIS.COM Thu Jul 13 07:21:53 2006 From: nbarker at ITTVIS.COM (Norman Barker) Date: Thu, 13 Jul 2006 15:21:53 +0100 Subject: 64 bit Message-ID: -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Eijnden, Bart van den (AGI) Sent: Thursday, July 13, 2006 3:19 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] 64 bit Hi list, what is the status of running Mapserver/GDAL on 64-bit systems? I saw a thread by Bill Binko from sept 2005, but it did not come to any conclusions. Best regards, Bart van den Eijnden ================================= Hi Bart, I deployed MapServer and GDAL to 64 bit Xeon running SuSe, the only problems I had were compiling the netCDF libraries, but even that worked ok eventually. Thanks, Norman From crschmidt at CRSCHMIDT.NET Thu Jul 13 07:31:16 2006 From: crschmidt at CRSCHMIDT.NET (Christopher Schmidt) Date: Thu, 13 Jul 2006 10:31:16 -0400 Subject: 64 bit In-Reply-To: <5AA6ED8DA479B048BAD1A84DAC2F07EB089105@rws-s001000.ad.rws.nl> Message-ID: On Thu, Jul 13, 2006 at 04:19:24PM +0200, Eijnden, Bart van den (AGI) wrote: > Hi list, > > what is the status of running Mapserver/GDAL on 64-bit systems? The Freemap server (http://freemap.in/) is a 64bit AMD machine and has not given us any problems in rendering using Mapserver. -- Christopher Schmidt Web Developer From woodbri at SWOODBRIDGE.COM Thu Jul 13 07:34:18 2006 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Thu, 13 Jul 2006 10:34:18 -0400 Subject: tile4ms aborts due to DBF fields not matching In-Reply-To: <5306771.post@talk.nabble.com> Message-ID: Richard, All the files you want to add to a tileindex MUST have the same attribute definitions and they must be in the same order. The first file you add to the tileindex is records the attribute columns, their names, types, and probably their widths, then as each additional file is added, it is check against the original file and if it does not match you get the error you are seeing. This is required by mapserver. -SteveW DrDik wrote: > Hi - I've run this on OSNI data from Northern Ireland and get: Aborted. DBF > fields do not match for file:, I figured this was an error in the > data but I down loaded tiger data and get the same error. > > I have followed the exmaple at > http://mapserver.gis.umn.edu/docs/reference/utilityreference/tile4ms with no > luck. Any ideas? > > It likes 1 file ok. But 2 files causes the Abort error. > > please help - I'm totally stuck! > Thanks > Richard From marklanz at GMAIL.COM Thu Jul 13 07:33:34 2006 From: marklanz at GMAIL.COM (Mark Lanz) Date: Thu, 13 Jul 2006 10:33:34 -0400 Subject: ruby mapscript: bug in Makefile + GetCapabilities return zlitch ! In-Reply-To: <20060710184112.31681.qmail@web30704.mail.mud.yahoo.com> Message-ID: Sylvain, I recently compiled Ruby Mapscript and had problems with the makefile as well. My solution was to add the following 2 lines to the makefile: ruby.h: /usr/local/lib/ruby/1.8/i686-linux/ruby.h defines.h: /usr/local/lib/ruby/1.8/i686-linux/defines.h Obviously, you would need to use the correct path to ruby.h and defines.h in your set up. After that, it compiled fine and Mapserver has functioned fine for me from within Ruby. I don't know if this will fix your problem or not, but it worked for me. Mark On 7/10/06, s duclos wrote: > Hi, > > I tried to reach: > Markus Schnider > msr at sourcepole.ch > http://www.sourcepole.com > > but it seem that he is not there anymore > > any way the makefile need to have ruby.h defines.h > commented > for the build to work > > #$(OBJS): ruby.h defines.h > mapscript_wrap.c: ../mapscript.i > swig -ruby -o mapscript_wrap.c ../mapscript.i From ltrevinoh at GMAIL.COM Thu Jul 13 07:49:11 2006 From: ltrevinoh at GMAIL.COM (=?ISO-8859-1?Q?Luis_Trevi=F1o?=) Date: Thu, 13 Jul 2006 09:49:11 -0500 Subject: 500 Internal Server Errors In-Reply-To: Message-ID: Roland, Try this on your DATA stmt: DATA "geometry from background as foo using unique using srid=" just replace the name with your oid column and put the number of the srid you're using. Hope this helps. Regards, Luis 2006/7/13, Roland Martin : > > Hi Luis, > > Thanks for your reply. I don't think that's the problem, but here are some > excerpts nonetheless: > > > > LAYER # this one works > NAME "Contours" > GROUP "Height" > STATUS OFF > CONNECTIONTYPE postgis > CONNECTION "dbname=lba user=postgres password=postgres" > DATA "geom from height_data" > TYPE LINE > LABELITEM "height" > CLASS > EXPRESSION ('[layer_name]' = 'C900LX000') > COLOR 204 51 0 > LABEL > FONT sans > SIZE small > COLOR 100 100 100 > OUTLINECOLOR 255 255 255 > POSITION auto > ANTIALIAS false > END > END > END > > LAYER # this one doesn't > NAME "Background Drawing" > GROUP "CAD Drawings" > STATUS OFF > CONNECTIONTYPE postgis > CONNECTION "dbname=lba user=postgres password=postgres" > DATA "geometry from background" > TYPE LINE > CLASS > COLOR 51 102 0 > END > END > > The geometry column names are different because I generated the tables > from 2 different sources - but that shouldn't make any difference... > > Cheers, > > Roland. > > > > > On 13/07/06, Luis Trevi?o wrote: > > > > Roland: > > > > Could be the "DATA" sql statement on your map file. It would be easier > > if you can show part of your map file that involves the postgis layer. > > > > Regards, > > Luis > > > > > > 2006/7/12, Roland Martin : > > > > > OK, this is probably yet another stupid query to which I should know > > > the answer... however, I'm on a roll here. > > > > > > I've got an application which is intermittently (i.e. most of the > > > time, but not always) throwing a 500 Internal Server Error. The application > > > is almost a direct clone of another which does not exhibit the same error. > > > > > > I've spent most of the afternoon trying to figure out why this might > > > be, and as far as I can tell, it's something to do with the PostGIS database > > > which holds most of the data. If I remove all the PostGIS layers, it seems > > > to work fine (although interestingly doesn't work if they're all in the map > > > file but turned off - does MapScript try to load the layers regardless?) > > > > > > The database contains converted CAD (DWG) data with typically stupid > > > contents (meaningless fields, escape characters, etc). I wondered if it > > > might be to do with the sizes of the tables (>30 000 records in each), but > > > dissolving them doesn't seem to have made much difference. At the moment I'm > > > leaning towards thinking it may be because of the aforementioned escape > > > characters (looking down the tables, a number just contain the entry " which > > > might upset things; others start with an asterisk). However, some of the > > > tables causing the issue don't contain anything nearly as nasty. > > > > > > The error is being thrown on loading the map; approximately 80-90% of > > > the time. > > > > > > Also of interest may be the following gunk from the error logs: > > > [Wed Jul 12 16:29:11 2006] [error] [client x] Premature end of script > > > headers: php-cgi.exe, referer: http://x/lbia_dev/ > > > [Wed Jul 12 16:51:08 2006] [error] [client x] Premature end of script > > > headers: php-cgi.exe, referer: http://x/lbia_dev/ > > > (etc) > > > > > > Anyone have any thoughts on this? > > > > > > Ta, > > > Roland. > > > > > > > > > MS4W 2.0 > > > MapServer 4.8.3 > > > Chameleon for MS4W 2.4 > > > PgSQL 8.1 > > > etc 1.0 > > > > > > > > > > > > -- > > > Please note my new email address. Use other addresses at your peril. > > > > > > > > > > > > > -- > Please note my new email address. Use other addresses at your peril. > -------------- next part -------------- An HTML attachment was scrubbed... URL: From warmerdam at POBOX.COM Thu Jul 13 07:52:43 2006 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Thu, 13 Jul 2006 10:52:43 -0400 Subject: 64 bit In-Reply-To: <5AA6ED8DA479B048BAD1A84DAC2F07EB089105@rws-s001000.ad.rws.nl> Message-ID: Eijnden, Bart van den (AGI) wrote: > Hi list, > > what is the status of running Mapserver/GDAL on 64-bit systems? > > I saw a thread by Bill Binko from sept 2005, but it did not come to any conclusions. Bart, I have run my tests suites for GDAL on AMD64 Linux with a few drivers enabled, and it went quite well. I had to make a few little fixes related to how varargs works on 64bit linux affecting drivers like GML, and PostGIS. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | President OSGF, http://osgeo.org From ed at TOPOZONE.COM Thu Jul 13 08:19:55 2006 From: ed at TOPOZONE.COM (Ed McNierney) Date: Thu, 13 Jul 2006 11:19:55 -0400 Subject: tile4ms aborts due to DBF fields notmatching Message-ID: Richard - First, please ALWAYS reply to the whole list. This lets everyone (and the archives) see the whole conversation, and it also doesn't obligate the first person to answer your question to answer all the rest of your questions ! You can (and probably should) group together homogeneous files in a TILEINDEX layer. You can certainly combine your 30 "buildings" files into a single layer, and your 30 "waterways" files into a single layer. This is commonly done. But you can't combine different types of data into a single logical layer; you probably wouldn't want to, as it would make the symbolization of those different features difficult. Roads are probably line features, and buildings are probably polygons, and one layer would need to be either a line layer or a polygon layer but not both. - Ed Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 ed at topozone.com (978) 251-4242 ________________________________ From: Richard Martin [mailto:richard.martin at tascomi.com] Sent: Thursday, July 13, 2006 9:27 AM To: Ed McNierney Subject: RE: [UMN_MAPSERVER-USERS] tile4ms aborts due to DBF fields notmatching Thanks Ed Perhaps I'm barking up the wrong tree. My problem is we have a directory of lots of shp files, already in tiles of a particular area. Each "tile" directory has shp files such as building, footpaths, waterways etc. What I'm looking for is a method of displaying all this easily. We have a nice TIFF map of the area and we have displayed one shp file from one "tile" directory on the map - all works well. The problem is how do I display the rest? We have a MAP file with this sort of content: LAYER NAME basemap TYPE RASTER STATUS ON DATA "/var/www/ka-map/ka-map/htdocs/tmp/data/banbridge/images/220NE.tif" END LAYER NAME buildings TYPE LINE STATUS ON DATA "/var/www/ka-map/ka-map/htdocs/tmp/data/banbridge/data/buildinl.shp" CLASS NAME "Buildings" STYLE COLOR 200 100 100 END END END The basemap being the lovely little map of our town, the building layer being a shpfile of some buildings in one "tile" - we have 30 directories of "tiles" each containing shp files for buildings, waterways etc. Other than putting in around 1500 layers like the buildings layer above I don't see how to do this.... I thought tile4ms might help but as you pointed out the dbf files for each shp file in the "tile" directory won't match any other dbf files in the directory. Do you have any pointers? Any help greatly appreciated! Many thanks Richard On Thu, 2006-07-13 at 08:35 -0400, Ed McNierney wrote: Richard - Well, you know what the problem is. If you're going to group a set of shapefiles together using a TILEINDEX, those shapefiles all must have the same attribute fields in their DBF files, in the same order. MapServer expects to treat them all as one logical file, so they all need to look the same. - Ed Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 Phone: +1 (978) 251-4242 Fax: +1 (978) 251-1396 ed at topozone.com -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of DrDik Sent: Thursday, July 13, 2006 8:12 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] tile4ms aborts due to DBF fields not matching Hi - I've run this on OSNI data from Northern Ireland and get: Aborted. DBF fields do not match for file:, I figured this was an error in the data but I down loaded tiger data and get the same error. I have followed the exmaple at http://mapserver.gis.umn.edu/docs/reference/utilityreference/tile4ms with no luck. Any ideas? It likes 1 file ok. But 2 files causes the Abort error. please help - I'm totally stuck! Thanks Richard -- View this message in context: http://www.nabble.com/tile4ms-aborts-due-to-DBF-fields-not-matching-tf19 36865.html#a5306771 Sent from the Mapserver - User forum at Nabble.com. Richard Martin Tascomi Ltd Head Office: 0845 119 6020 Support Line: 0845 119 6021 This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity for whom they are addressed. If you have received this email in error please notify the system manager. Please note that any views or opinions presented in this email are solely those of the author and do not necessarily represent those of the company. Finally, the recipient should check this email and any attachments for the presence of viruses. Tascomi Ltd accepts no liability for any damage caused by any virus transmitted by the email. -------------- next part -------------- An HTML attachment was scrubbed... URL: From julien.63 at FREE.FR Thu Jul 13 08:35:43 2006 From: julien.63 at FREE.FR (Julien Bessiere) Date: Thu, 13 Jul 2006 17:35:43 +0200 Subject: Problems drawing polygons In-Reply-To: Message-ID: Hi Matt, That works fine. thank you very much. here below is the function. Julien //========================================= function drawPolygon($map,$polygon_coordinates){ $layer = ms_newLayerObj($map); $layer->set("name","polygon"); $layer->set("status",MS_DEFAULT); if (count($polygon_coordinates) < 3) $layer->set("type",MS_POINT); else $layer->set("type",MS_LAYER_POLYGON); $class = ms_newClassObj($layer); $class->label->set("type",MS_BITMAP); $style = ms_newStyleObj($class); $style->set('symbolname',"circle"); $style->set('size',10); $style->color->setRGB(255,255,0); $style->outlinecolor->setRGB(255,255,0); $line = ms_newLineObj(); foreach ($polygon_coordinates as $record){ $point = ms_newPointObj(); $x = $record[0]; $y = $record[1]; $point->setXY($x,$y); $line->add($point); } //------------------------------------------------------- // add the first point again to close the polygon ------ //------------------------------------------------------- if (count($polygon_coordinates) > 2){ $point = ms_newPointObj(); $x = $polygon_coordinates[0][0]; $y = $polygon_coordinates[0][1]; $point->setXY($x,$y); $line->add($point); } $shape = ms_newShapeObj(MS_SHAPE_POLYGON); $shape->set("classindex", 0); $shape->add($line); $shape->set("text","MYpolygon"); $layer->addFeature($shape); $point->free(); $shape->free(); } //=============================================================== Selon Matt Brown : > Julien, > > try adding the first point again(to the end), to close the polygon. so for > a 4 point polygon, you will have five pairs of coordinates in your array. > > Matt > > > > -----Original Message----- > From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]On > Behalf Of Julien Bessiere > Sent: Wednesday, July 12, 2006 2:47 PM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: [UMN_MAPSERVER-USERS] Problems drawing polygons > > > Hi, > I'm using a function to draw a polygon on my maps. > The user clicks wherever he wants and i store the coordinates in a php array > and > pass the array to the function. > My problem is that the first point doesn't appear in my polygon. > For example, if i have 4 points, my polygon will be a triangle with the > second, > the third and the fourth point. > > My array is something like : > Array > ( > [0] => Array > ( > [0] => -80.4178572857 > [1] => 9.310714794 > ) > > [1] => Array > ( > [0] => -79.4750001429 > [1] => 9.69642909 > ) > > [2] => Array > ( > [0] => -79.0785715714 > [1] => 9.0000005 > ) > > [3] => Array > ( > [0] => -80.0428572857 > [1] => 8.442857628 > ) > > ) > > And here is my function : > function drawPolygon($map,$polygon_coordinates){ > $layer = ms_newLayerObj($map); > $layer->set("name","polygon"); > $layer->set("status",MS_DEFAULT); > if (count($polygon_coordinates) < 3) > $layer->set("type",MS_POINT); > else > $layer->set("type",MS_LAYER_POLYGON); > $class = ms_newClassObj($layer); > $class->label->set("type",MS_BITMAP); > $stylepoint = ms_newStyleObj($class); > $stylepoint->set('symbolname',"circle"); > $stylepoint->set('size',10); > $stylepoint->color->setRGB(200,200,0); > $line = ms_newLineObj(); > foreach ($polygon_coordinates as $record){ > $point = ms_newPointObj(); > $x = $record[0]; > $y = $record[1]; > $point->setXY($x,$y); > $line->add($point); > } > $shape = ms_newShapeObj(MS_SHAPE_POLYGON); > $shape->set("classindex", 0); > $shape->add($line); > $shape->set("text","MYpolygon"); > $layer->addFeature($shape); > $point->free(); > $shape->free(); > } > > thanks in advance for your help > > Julien > > From ludwigbrinckmann at GMAIL.COM Thu Jul 13 08:53:12 2006 From: ludwigbrinckmann at GMAIL.COM (Ludwig Max Brinckmann) Date: Thu, 13 Jul 2006 16:53:12 +0100 Subject: Maximum number of class styles, 5, has been reached Message-ID: I am using Mapserver through Primagis, which uses mapserver as rendering engine. I have a road network which I want to display at varying zoom levels in different ways, with the roads rendered by stacking styles on top of each other: eg. a wide black line on top of which comes a narrower yellow line on top of which comes a narrow black line, which overall gives the impression of a divided highway as we know it from paper maps. I do this at varying zoom levels, but then when rendering I get the message MapServerChildError: insertStyle(): Child array error. Maximum number of class styles, 5, has been reached which comes from classobject.c. Obviously, I can change this in map.h and recompile. But is there a good reason for such a low maximum? Is it there to protect people from their own errors or is there a significant performance penalty or some such? Ludwig -------------- next part -------------- An HTML attachment was scrubbed... URL: From dlowther at COORDINATESOLUTIONS.COM Thu Jul 13 09:13:20 2006 From: dlowther at COORDINATESOLUTIONS.COM (David Lowther) Date: Thu, 13 Jul 2006 11:13:20 -0500 Subject: Mapscript CSharp (C#) Memory Leak? Message-ID: Hello All, I've been toying with the mapscript_csharp.dll in VS2005 and cannot even begin to tell you how thrilled I am to have it. Thanks SO much. I've encountered what I think might be a memory leak. The exception text that I get is below and the entire source code of the application is available at: http://www.coordinatesolutions.com/download/mapservertestvb.zip I get the exception after choosing ID from the drop down and clicking the map 15 times (why 15, I have no idea). When running the code from VS2005 the exception occurs at different places. Any ideas? David Lowther Coordinate Solutions, Inc. 501 N.E. 15th Street Oklahoma City, OK 73104 405.246.9396 (Voice) 405.227.0781 (Fax) www.coordinatesolutions.com See the end of this message for details on invoking just-in-time (JIT) debugging instead of this dialog box. ************** Exception Text ************** System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt. at mapscriptPINVOKE.new_pointObj(Double jarg1, Double jarg2, Double jarg3, Double jarg4) at pointObj..ctor(Double x, Double y, Double z, Double m) at MapserverTestVB.Form1.Pixel2Geo(pointObj pt) in D:\Develop\MapserverTestVB\MapserverTestVB\Form1.vb:line 188 at MapserverTestVB.Form1.ID(pointObj ClickPt) in D:\Develop\MapserverTestVB\MapserverTestVB\Form1.vb:line 109 at MapserverTestVB.Form1.PictureBox1_MouseUp(Object sender, MouseEventArgs e) in D:\Develop\MapserverTestVB\MapserverTestVB\Form1.vb:line 97 at System.Windows.Forms.Control.OnMouseUp(MouseEventArgs e) at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks) at System.Windows.Forms.Control.WndProc(Message& m) at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m) at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m) at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam) ************** Loaded Assemblies ************** mscorlib Assembly Version: 2.0.0.0 Win32 Version: 2.0.50727.42 (RTM.050727-4200) CodeBase: file:///C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll ---------------------------------------- MapserverTestVB Assembly Version: 1.0.0.0 Win32 Version: 1.0.0.0 CodeBase: file:///D:/Develop/MapserverTestVB/MapserverTestVB/bin/Debug/MapserverTestVB .exe ---------------------------------------- Microsoft.VisualBasic Assembly Version: 8.0.0.0 Win32 Version: 8.0.50727.42 (RTM.050727-4200) CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/Microsoft.VisualBasic/8.0.0.0__b03f5f7f 11d50a3a/Microsoft.VisualBasic.dll ---------------------------------------- System Assembly Version: 2.0.0.0 Win32 Version: 2.0.50727.42 (RTM.050727-4200) CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System .dll ---------------------------------------- System.Windows.Forms Assembly Version: 2.0.0.0 Win32 Version: 2.0.50727.42 (RTM.050727-4200) CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561 934e089/System.Windows.Forms.dll ---------------------------------------- System.Drawing Assembly Version: 2.0.0.0 Win32 Version: 2.0.50727.42 (RTM.050727-4200) CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3 a/System.Drawing.dll ---------------------------------------- System.Configuration Assembly Version: 2.0.0.0 Win32 Version: 2.0.50727.42 (RTM.050727-4200) CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Configuration/2.0.0.0__b03f5f7f1 1d50a3a/System.Configuration.dll ---------------------------------------- System.Xml Assembly Version: 2.0.0.0 Win32 Version: 2.0.50727.42 (RTM.050727-4200) CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/Sy stem.Xml.dll ---------------------------------------- System.Runtime.Remoting Assembly Version: 2.0.0.0 Win32 Version: 2.0.50727.42 (RTM.050727-4200) CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Runtime.Remoting/2.0.0.0__b77a5c 561934e089/System.Runtime.Remoting.dll ---------------------------------------- mapscript_csharp Assembly Version: 0.0.0.0 Win32 Version: 0.0.0.0 CodeBase: file:///D:/Develop/MapserverTestVB/MapserverTestVB/bin/Debug/mapscript_cshar p.DLL ---------------------------------------- ************** JIT Debugging ************** To enable just-in-time (JIT) debugging, the .config file for this application or computer (machine.config) must have the jitDebugging value set in the system.windows.forms section. The application must also be compiled with debugging enabled. For example: When JIT debugging is enabled, any unhandled exception will be sent to the JIT debugger registered on the computer rather than be handled by this dialog box. -------------- next part -------------- An HTML attachment was scrubbed... URL: From ollerery at ENGR.ORST.EDU Thu Jul 13 09:34:48 2006 From: ollerery at ENGR.ORST.EDU (Ryan Ollerenshaw) Date: Thu, 13 Jul 2006 09:34:48 -0700 Subject: Map Projections In-Reply-To: <00e501c6a697$42cad760$650ba8c0@dld410> Message-ID: I am having a bit of trouble re-projecting my data. When I specify the PROJECTION object in my map file as PROJECTION "proj=cc" "lon_0=0" "ellps=WGS84" "datum=WGS84" END Or PROJECTION "proj=cc" "lon_0=90" "ellps=WGS84" "datum=WGS84" END My image does not change, but the prime meridian should be changing locations from the center of the image to the far left. I also tried to specify the projection in the layer itself but still no change. Isn?t MapServer capable of re-projecting the data regardless of the original projection? From aaronkoning at GMAIL.COM Thu Jul 13 11:21:28 2006 From: aaronkoning at GMAIL.COM (Aaron Koning) Date: Thu, 13 Jul 2006 11:21:28 -0700 Subject: 64 bit In-Reply-To: <5AA6ED8DA479B048BAD1A84DAC2F07EB089105@rws-s001000.ad.rws.nl> Message-ID: Pretty straight forward install on an SGI Altix (Itanium) server with SuSe OS. Aaron On 7/13/06, Eijnden, Bart van den (AGI) wrote: > > Hi list, > > what is the status of running Mapserver/GDAL on 64-bit systems? > > I saw a thread by Bill Binko from sept 2005, but it did not come to any > conclusions. > > Best regards, > Bart van den Eijnden > ================================= > > drs. A.J. van den Eijnden > adviseur > Productteam Applicaties Geo-Informatie > Rijkswaterstaat Adviesdienst Geo-informatie en ICT > Postbus 5023, 2600 GA Delft > Derde Werelddreef 1, 2622 HA Delft > Telefoon: (015) 275 75 75 > E-mail b.vdeijnden at agi.rws.minvenw.nl > ================================= > > > Disclaimer > ************************************************************************ > Aan dit bericht kunnen geen rechten worden ontleend. Dit bericht is > uitsluitend bestemd voor de geadresseerde. Als u dit bericht per abuis > hebt ontvangen, wordt u verzocht het te vernietigen en de afzender te > informeren. Wij adviseren u om bij twijfel over de juistheid of de > volledigheid van de mail contact met afzender op te nemen. > > This message shall not constitute any rights or obligations. > This message is intended solely for the addressee. > If you have received this message in error, please delete it and > notify the sender immediately. When in doubt whether this message > is correct or complete, please contact the sender. > ************************************************************************ > -- +-------------------------------------------- | Aaron Koning | Information Technologist | Prince George, BC, Canada. +-------------------------------------------- | http://datashare.gis.unbc.ca/fist/ | http://datashare.gis.unbc.ca/gctp-js/ +-------------------------------------------- -------------- next part -------------- An HTML attachment was scrubbed... URL: From julieknoll at GMAIL.COM Thu Jul 13 11:33:42 2006 From: julieknoll at GMAIL.COM (Julie Knoll) Date: Thu, 13 Jul 2006 13:33:42 -0500 Subject: queryByPoint and multiple result rows Message-ID: I would like to allow users to query a point on a map and return data values for unemployment rates for 12 months of the selected year. My code looks like this: $sql = "SELECT uc.the_geom, uc.gid, at.value, at.date FROM geom_usa_counties AS uc, (SELECT fo.value AS value, fc.state_fips, fc.county_fips, fo.period_start_date as date FROM fred_category_to_state_county_fips AS fc, fred_series_in_category AS fsic, fred_observation AS fo WHERE fc.cat_id=fsic.cat_id AND fsic.series_id=fo.series_id AND fsic.series_id LIKE '%$_GET['series']' AND fc.cat_id IN (SELECT cat_id FROM fred_category_ancestor WHERE ancestor_id BETWEEN 195 AND 201) AND fo.period_start_date BETWEEN '{$_GET['year']}-01-01' AND '{$_GET['year']}-12-31' ) AS at WHERE uc.state_fips=at.state_fips AND uc.cnty_fips=at.county_fips"; $fred_layer = $map->getLayer(1); $fred_layer->set("data" , "the_geom from ($sql) as foo using unique gid using SRID=4269"); $fred_layer->queryByPoint($query_point_obj , MS_MULTIPLE , -1); $num_results = $fred_layer->getNumResults(); $fred_layer->open(); for($x = 1 ; $x <= $num_results ; $x++) { $result = $fred_layer->getResult($x); $shape = $fred_layer->getShape($result->tileindex,$result->shapeindex); if($shape) { echo $shape->getValue($fred_layer , 'date') . ': ' . $shape->getValue($fred_layer , 'value') . '
' } } $fred_layer->close(); It correctly retrieves 12 results But when it prints out the date and value for each result they are exactly the same. 1990-01-01: 9.9 1990-01-01: 9.9 1990-01-01: 9.9 1990-01-01: 9.9 1990-01-01: 9.9 1990-01-01: 9.9 1990-01-01: 9.9 1990-01-01: 9.9 1990-01-01: 9.9 1990-01-01: 9.9 1990-01-01: 9.9 1990-01-01: 9.9 I took a look at the postgresql log, and the query being used is: SELECT gid::text,value::text,date::text,asbinary(force_collection(force_2d(the_geom)),'NDR') FROM ( SELECT uc.the_geom, uc.gid, at.value, at.date FROM geom_usa_counties AS uc, (SELECT fo.value AS value, fc.state_fips, fc.county_fips, fo.period_start_date as date FROM fred_category_to_state_county_fips AS fc, fred_series_in_category AS fsic, fred_observation AS fo WHERE fc.cat_id=fsic.cat_id AND fsic.series_id=fo.series_id AND fsic.series_id LIKE '%URN' AND fc.cat_id IN (SELECT cat_id FROM fred_category_ancestor WHERE ancestor_id BETWEEN 195 AND 201) AND fo.period_start_date BETWEEN '1990-01-01' AND '1990-12-31' ) AS at WHERE uc.state_fips=at.state_fips AND uc.cnty_fips=at.county_fips ) as foo WHERE gid = 2362 Which run by itself in pgsql correctly returns the data values for 12 months. 2362 | 9.900 | 1990-01-01 | 2362 | 8.800 | 1990-02-01 | 2362 | 7.900 | 1990-03-01 | 2362 | 7.200 | 1990-04-01 | 2362 | 6.700 | 1990-05-01 | 2362 | 8.000 | 1990-06-01 | 2362 | 7.000 | 1990-07-01 | 2362 | 6.700 | 1990-08-01 | 2362 | 7.100 | 1990-09-01 | 2362 | 6.300 | 1990-10-01 | 2362 | 7.400 | 1990-11-01 | 2362 | 9.200 | 1990-12-01 | Mapserver obviously sees 12 results, but it is returning the first result 12 times. Does anyone know what's going on or have any suggestions? Thanks! Julie -------------- next part -------------- An HTML attachment was scrubbed... URL: From dmorissette at MAPGEARS.COM Thu Jul 13 11:54:09 2006 From: dmorissette at MAPGEARS.COM (Daniel Morissette) Date: Thu, 13 Jul 2006 14:54:09 -0400 Subject: MapServer 4.8.4 released Message-ID: MapServer 4.8.4 has just been released. This new release addresses a few issues that were fixed since version 4.8.3 and contains no new functionality. The list of fixes since 4.8.3 is included at the end of this message, the full change log can also be browsed online at http://mapserver.gis.umn.edu/download/current/HISTORY.TXT The source package is available in the MapServer downloads page: http://mapserver.gis.umn.edu/download/current/ Precompiled binaries should be available shortly at the usual locations (also linked from the download page above). Daniel -- Daniel Morissette http://www.mapgears.com/ Version 4.8.4 (2006-07-12) -------------------------- - msCloneOutputFormat() needs to propagate inmapfile flag (bug 1823). - Mark dynamically created mapscript outputFormatObj's as inmapfile (bug 1816) - Missing GEOS support caused heap corruption using shapeObj C# on linux (Bug 1801) - Fixed leak of shapefile handles (shp/shx/dbf) on tiled layers (bug 1802) - Support treating POLYGONZ as MS_SHAPE_POLYGON. (bug 1784) - Force stdin into binary mode on win32 when reading post bodies. (bug 1768) - Output feature id as @fid instead of @gml:id in WFS 1.0.0 / GML 2.1.2 GetFeature requests (bug 1759) - Preventing to take ownership of the memory when constructing objects with parent objects using C# mapscript (causing nullreference exception, Bug 1743) - Fixed FP exception in mapgd.c when pixmap symbol 'sizey' not set (bug 1735) - Fixed problem with mycursor not being closed on layer close in the mappostgis.c module (bug 1757). From Steve.Lime at DNR.STATE.MN.US Thu Jul 13 12:27:12 2006 From: Steve.Lime at DNR.STATE.MN.US (Steve Lime) Date: Thu, 13 Jul 2006 14:27:12 -0500 Subject: Maximum number of class styles, 5, has been reached Message-ID: Um, er... It was a relatively arbitrary decision. By that I mean I didn't have any symbolization use cases that required more than 3, let alone 5. So to bump it you'd have to recompile. There should be virtually no penalty for going to a value of say 10. That said, you are only describing a case with 3 styles. If that's the case then the issue is why are you hitting the limit at all? (and the limit of 5 is protecting you). Are you actually creating classes with more than 5? Steve >>> Ludwig Max Brinckmann 7/13/2006 10:53:12 AM >>> I am using Mapserver through Primagis, which uses mapserver as rendering engine. I have a road network which I want to display at varying zoom levels in different ways, with the roads rendered by stacking styles on top of each other: eg. a wide black line on top of which comes a narrower yellow line on top of which comes a narrow black line, which overall gives the impression of a divided highway as we know it from paper maps. I do this at varying zoom levels, but then when rendering I get the message MapServerChildError: insertStyle(): Child array error. Maximum number of class styles, 5, has been reached which comes from classobject.c. Obviously, I can change this in map.h and recompile. But is there a good reason for such a low maximum? Is it there to protect people from their own errors or is there a significant performance penalty or some such? Ludwig From ludwigbrinckmann at GMAIL.COM Thu Jul 13 12:48:49 2006 From: ludwigbrinckmann at GMAIL.COM (Ludwig Max Brinckmann) Date: Thu, 13 Jul 2006 20:48:49 +0100 Subject: Maximum number of class styles, 5, has been reached In-Reply-To: Message-ID: I am hitting the threshold because I have the three styles on multiple zoom levels. But in Primagis there is now a way of combining the symbolizers, so that it would equate one style per zoomlevel. I am not sure how this maps down to mapserver, but I will give it a try tomorrow. Sean is also helping me out with this. (The worst would be recompiling, so the issue is not exactly pressing). Ludwig On 7/13/06, Steve Lime wrote: > > Um, er... It was a relatively arbitrary decision. By that I mean I didn't > have any symbolization use cases that > required more than 3, let alone 5. So to bump it you'd have to recompile. > There should be virtually no penalty > for going to a value of say 10. > > That said, you are only describing a case with 3 styles. If that's the > case then the issue is why are you hitting > the limit at all? (and the limit of 5 is protecting you). Are you actually > creating classes with more than 5? > > Steve > > >>> Ludwig Max Brinckmann 7/13/2006 10:53:12 > AM >>> > I am using Mapserver through Primagis, which uses mapserver as rendering > engine. > > I have a road network which I want to display at varying zoom levels in > different ways, with the roads rendered by stacking styles on top of each > other: eg. a wide black line on top of which comes a narrower yellow line > on > top of which comes a narrow black line, which overall gives the impression > of a divided highway as we know it from paper maps. > > I do this at varying zoom levels, but then when rendering I get the > message > > MapServerChildError: insertStyle(): Child array error. Maximum number of > class styles, 5, has been reached > > which comes from classobject.c. > > Obviously, I can change this in map.h and recompile. > > But is there a good reason for such a low maximum? Is it there to protect > people from their own errors or is there a significant performance penalty > or some such? > > > Ludwig > -- Ludwig M Brinckmann phone: 020 7254 1181 mobile: 07949 460787 -------------- next part -------------- An HTML attachment was scrubbed... URL: From szekerest at GMAIL.COM Thu Jul 13 12:58:23 2006 From: szekerest at GMAIL.COM (Tamas Szekeres) Date: Thu, 13 Jul 2006 21:58:23 +0200 Subject: Mapscript CSharp (C#) Memory Leak? In-Reply-To: <00e501c6a697$42cad760$650ba8c0@dld410> Message-ID: David, Would you file a bug report (mapscript C#) with this issue and i will look into it as soon as possible. Thanks, Tamas _____ From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of David Lowther Sent: Thursday, July 13, 2006 6:13 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Mapscript CSharp (C#) Memory Leak? Hello All, I?ve been toying with the mapscript_csharp.dll in VS2005 and cannot even begin to tell you how thrilled I am to have it. Thanks SO much. I?ve encountered what I think might be a memory leak. The exception text that I get is below and the entire source code of the application is available at: HYPERLINK "http://www.coordinatesolutions.com/download/mapservertestvb.zip"http://www. coordinatesolutions.com/download/mapservertestvb.zip I get the exception after choosing ID from the drop down and clicking the map 15 times (why 15, I have no idea). When running the code from VS2005 the exception occurs at different places. Any ideas? David Lowther Coordinate Solutions, Inc. 501 N.E. 15th Street Oklahoma City, OK 73104 405.246.9396 (Voice) 405.227.0781 (Fax) www.coordinatesolutions.com See the end of this message for details on invoking just-in-time (JIT) debugging instead of this dialog box. ************** Exception Text ************** System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt. at mapscriptPINVOKE.new_pointObj(Double jarg1, Double jarg2, Double jarg3, Double jarg4) at pointObj..ctor(Double x, Double y, Double z, Double m) at MapserverTestVB.Form1.Pixel2Geo(pointObj pt) in D:\Develop\MapserverTestVB\MapserverTestVB\Form1.vb:line 188 at MapserverTestVB.Form1.ID(pointObj ClickPt) in D:\Develop\MapserverTestVB\MapserverTestVB\Form1.vb:line 109 at MapserverTestVB.Form1.PictureBox1_MouseUp(Object sender, MouseEventArgs e) in D:\Develop\MapserverTestVB\MapserverTestVB\Form1.vb:line 97 at System.Windows.Forms.Control.OnMouseUp(MouseEventArgs e) at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks) at System.Windows.Forms.Control.WndProc(Message& m) at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m) at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m) at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam) ************** Loaded Assemblies ************** mscorlib Assembly Version: 2.0.0.0 Win32 Version: 2.0.50727.42 (RTM.050727-4200) CodeBase: file:///C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll ---------------------------------------- MapserverTestVB Assembly Version: 1.0.0.0 Win32 Version: 1.0.0.0 CodeBase: file:///D:/Develop/MapserverTestVB/MapserverTestVB/bin/Debug/MapserverTestVB .exe ---------------------------------------- Microsoft.VisualBasic Assembly Version: 8.0.0.0 Win32 Version: 8.0.50727.42 (RTM.050727-4200) CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/Microsoft.VisualBasic/8.0.0.0__b03f5f7f 11d50a3a/Microsoft.VisualBasic.dll ---------------------------------------- System Assembly Version: 2.0.0.0 Win32 Version: 2.0.50727.42 (RTM.050727-4200) CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System .dll ---------------------------------------- System.Windows.Forms Assembly Version: 2.0.0.0 Win32 Version: 2.0.50727.42 (RTM.050727-4200) CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561 934e089/System.Windows.Forms.dll ---------------------------------------- System.Drawing Assembly Version: 2.0.0.0 Win32 Version: 2.0.50727.42 (RTM.050727-4200) CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3 a/System.Drawing.dll ---------------------------------------- System.Configuration Assembly Version: 2.0.0.0 Win32 Version: 2.0.50727.42 (RTM.050727-4200) CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Configuration/2.0.0.0__b03f5f7f1 1d50a3a/System.Configuration.dll ---------------------------------------- System.Xml Assembly Version: 2.0.0.0 Win32 Version: 2.0.50727.42 (RTM.050727-4200) CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/Sy stem.Xml.dll ---------------------------------------- System.Runtime.Remoting Assembly Version: 2.0.0.0 Win32 Version: 2.0.50727.42 (RTM.050727-4200) CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Runtime.Remoting/2.0.0.0__b77a5c 561934e089/System.Runtime.Remoting.dll ---------------------------------------- mapscript_csharp Assembly Version: 0.0.0.0 Win32 Version: 0.0.0.0 CodeBase: file:///D:/Develop/MapserverTestVB/MapserverTestVB/bin/Debug/mapscript_cshar p.DLL ---------------------------------------- ************** JIT Debugging ************** To enable just-in-time (JIT) debugging, the .config file for this application or computer (machine.config) must have the jitDebugging value set in the system.windows.forms section. The application must also be compiled with debugging enabled. For example: When JIT debugging is enabled, any unhandled exception will be sent to the JIT debugger registered on the computer rather than be handled by this dialog box. -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.1.394 / Virus Database: 268.10.0/388 - Release Date: 2006.07.13. -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.394 / Virus Database: 268.10.0/388 - Release Date: 2006.07.13. -------------- next part -------------- An HTML attachment was scrubbed... URL: From pcreso at PCRESO.COM Thu Jul 13 13:26:22 2006 From: pcreso at PCRESO.COM (Brent Wood) Date: Thu, 13 Jul 2006 13:26:22 -0700 Subject: tile4ms aborts due to DBF fields not matching In-Reply-To: <5306771.post@talk.nabble.com> Message-ID: Hi Richard, Try running the dbfdump program from shapelib (or the ogr eqivalent) to see the fields & ensure the dbf fields in both files are IDENTICAL. And post a list of the fields in each if you can, to help us sort it out. Brent Wood --- DrDik wrote: > Hi - I've run this on OSNI data from Northern Ireland and get: Aborted. DBF > fields do not match for file:, I figured this was an error in the > data but I down loaded tiger data and get the same error. > > I have followed the exmaple at > http://mapserver.gis.umn.edu/docs/reference/utilityreference/tile4ms with no > luck. Any ideas? > > It likes 1 file ok. But 2 files causes the Abort error. > > please help - I'm totally stuck! > Thanks > Richard > -- > View this message in context: > http://www.nabble.com/tile4ms-aborts-due-to-DBF-fields-not-matching-tf1936865.html#a5306771 > Sent from the Mapserver - User forum at Nabble.com. > From lfilak at MEDINACO.ORG Thu Jul 13 13:31:40 2006 From: lfilak at MEDINACO.ORG (Lowell.Filak) Date: Thu, 13 Jul 2006 16:31:40 -0400 Subject: Perl Mapscript Warnings In-Reply-To: <200606290827.k5T8RR5T019982@b3sn28.hannover.bgr.de> Message-ID: Agneta Schick writes: > Hello, > > I'm upgrading from > Version 3.6.5 on Solaris 8 (sun4-solaris 32int) to > Version 4.8.3 on Solaris 10 (i86pc-solaris-64int) > > The application which ran with V. 3.6.5, now dies when I try to open the > mapfile with "new mapscript::mapObj($quake_map)". > > I tested the mapfile with "mapserv?map=../htdocs/test_map/mytest.map&mode=map" > with no problem. > > Could the new version of mapscript be the cause?? > > I got the following warnings making perl mapscript: > > "/usr/local/include/ogr_core.h", line 215: warning: enumerator value overflows > INT_MAX (2147483647) > "/usr/local/include/ogr_core.h", line 216: warning: enumerator value overflows > INT_MAX (2147483647) > "/usr/local/include/ogr_core.h", line 217: warning: enumerator value overflows > INT_MAX (2147483647) > "/usr/local/include/ogr_core.h", line 218: warning: enumerator value overflows > INT_MAX (2147483647) > "/usr/local/include/ogr_core.h", line 219: warning: enumerator value overflows > INT_MAX (2147483647) > "/usr/local/include/ogr_core.h", line 220: warning: enumerator value overflows > INT_MAX (2147483647) > "/usr/local/include/ogr_core.h", line 222: warning: enumerator value overflows > INT_MAX (2147483647) > "mapscript_wrap.c", line 1978: warning: statement not reached > > swig-1.3.29 and gdal-1.3.2 are installed. > > I'm grateful for any hints. Upto now I only see the message "Unable to open > mapfile"! Agneta, The errors appear non-fatal. What else have you tried to track down the problem. Thanks. Lowell From bpicinbono at WORLDONLINE.FR Thu Jul 13 14:21:47 2006 From: bpicinbono at WORLDONLINE.FR (Blaise) Date: Thu, 13 Jul 2006 23:21:47 +0200 Subject: SWF movie from RASTER Layers In-Reply-To: <304163b00607110815n15dcaf84j938f211367bb0d9c@mail.gmail.com> Message-ID: Le Mardi 11 Juillet 2006 17:15, Denis Nadeau a ?crit?: > Hi, > > Would somebody know how to create a SWF movie from a list RASTER Layers? > > I want a SWF file that will loop indefinitely on all my RASTER Layers using > TILEINDEX. I was able to create all the SWF layers from my RASTER layers, > but I don't know how to "play" them to get a little movie. > > What I want to do is to track a hurricane. > > Regards, > Denis Hi Denis You should be able to do that with ming : http://ming.sourceforge.net/ Regards Blaise From lfilak at MEDINACO.ORG Thu Jul 13 13:06:47 2006 From: lfilak at MEDINACO.ORG (Lowell.Filak) Date: Thu, 13 Jul 2006 16:06:47 -0400 Subject: PERL interface trouble In-Reply-To: <44AC177F.90206@otsys.com> Message-ID: Joe Bussell writes: > Nope, same logical volume. Identical results from `df` verify this. > > Joe Bussell > On Time Systems > > > Simpson wrote: > >> Is /usr an automount? >> >> -----Original Message----- >> From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]On >> Behalf Of Joe Bussell >> Sent: Wednesday, July 05, 2006 12:19 PM >> To: MAPSERVER-USERS at LISTS.UMN.EDU >> Subject: Re: [UMN_MAPSERVER-USERS] PERL interface trouble >> >> >> Thank you! I have mode some progress. The fact that my fonts/ >> directory was not readable escaped my notice. The msGetErrorString >> function provided that data right away. >> >> I have still have some undesired behavior however. I added >> $img->save( $outfile ); >> carp mapscript::msGetErrorString("\n"); >> And it indicates that my image file is not openable for write. I have >> verified that the entire directory chain indicated in the message is >> world writable. Is there something else that I need to do? >> >> [Mon Jul 3 15:52:17 2006] -e: Failure: msSaveImageGD(): Unable to >> access file. >> Unable to open file >> /usr/routing/routes/Route1151967137028128.223.40.5.png for writing at >> /usr/routing/perl/dwarp/mapdrawing.pm line 515 >> >> I changed my write directory to be a child of /tmp, and everything >> worked out just fine. I verified that the directory permissions matched >> and could not find any reference in my httpd.conf that would preclude >> writing to a directory off of /usr. Any ideas as to why this is? >> >> Joe Bussell >> On Time Systems >> >> >> >> Steve Lime wrote: >> >> >>> You can get at the MapServer error stack with a call like: >>> >>> my $map = new mapscript::mapObj( $mapfile ) or >>> >>> >> mapscript::msGetErrorString("\n"); >> >> >>> That may help, or be something to try. I use perl MapScript with 4.8 and >>> >>> >> the CVS version all the time with good results. >> >> >>> Steve >>> >>> >>> >>> >>>>>> Joseph Bussell 6/30/2006 2:09:06 PM >>> >>>>>> >>>>>> >>> Does anyone use the latest code with PERL Mapscript? If shp2img works >>> with my mapfile, is there anything else I can do to understand why my >>> new call for the mapObj fails? >>> >>> Joe Bussell >>> On Time Systems >>> >>> >>> Joseph Bussell wrote: >>> >>> >>> >>> >>>> I have verified that shp2img constructs an image that derives form my >>>> mapfile. This part looks good. My mapscript code was written for >>>> 4.4.2, but the one function that is failing does not appear to have >>>> significantly changed. I am not getting past construction of the >>>> basic mapObj from the mapfile. Specifically, the call to : >>>> >>>> my $map = new mapscript::mapObj( $mapfile ) or carp "Could not create >>>> mapscript object from mapfile: $mapfile"; >>>> >>>> produces the error message. I also went into mapscript.pm and added >>>> debug code there to be sure I was using the correct module. The low >>>> level call is producing an unusable result. >>>> Joe Bussell >>>> On Time Systems >>>> >>>> >>>> Stephen Woodbridge wrote: >>>> >>>> >>>> >>>> >>>>> Hi Joe, >>>>> >>>>> A couple of things. >>>>> >>>>> 1) what version does you existing code work on? >>>>> 2) There are probably two areas that you will need to change >>>>> a) the mapfile >>>>> b) the perl >>>>> >>>>> I would start with using shp2img to make sure you mapfile can load. >>>>> It will at least print errors that you can read. >>>>> >>>>> shp2img -m /path/to/file.map -o junk.png ... >>>>> >>>>> Once you can get an image then you will probably have more luck >>>>> tracking down the various mapscript changes. These will depend on >>>>> what version of mapscript your code was written for. >>>>> >>>>> -Steve W. >>>>> >>>>> Joseph Bussell wrote: >>>>> >>>>> >>>>> >>>>> >>>>>> Greetings Listers, >>>>>> It has been a while since I deployed a new Mapserver application. >>>>>> I have been leaning on old source on an old box to get the work >>>>>> done. I have been given a new server to set up for our Air Force >>>>>> project and have had some issues with getting my code to work. >>>>>> First of all I am using Mapscript ala PERL. I recognize that the >>>>>> PERL interface has not been updated due to a lack of user interest, >>>>>> but I am still partial to using it if it can still be done (mostly >>>>>> since I will not have to rewrite my routing path functionality). >>>>>> >>>>>> My problem is getting the actual mapObj to construct from my >>>>>> mapfile. I have not been able to get any debug information our by >>>>>> checking /tmp/mserrors, which used to work nicely in such cases. >>>>>> All I get is an undefined reference. My code for construction is >>>>>> simple: >>>>>> >>>>>> my $map = new mapscript::mapObj( $mapfile ) or carp "Could not >>>>>> create mapscript object from mapfile: $mapfile"; >>>>>> >>>>>> in my httpd.conf I define >>>>>> MS_ERRORFILE /tmp/mserrors.txt >>>>>> >>>>>> My mapfile exists and is very simple. >>>>>> I am running: >>>>>> CentOS release 4.3 >>>>>> AMD64, dual core machine >>>>>> Apache/2.0.52 >>>>>> mapserver-4.8.3.tar.gz >>>>>> perl, v5.8.5 built for x86_64-linux-thread-multi Joe, Here's a late reply: Can you use imageObj->write vs. saving the image to see if it works? I just cleaned up the bugzilla post for perlmapscript (http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=1371) with what I have. I know it works with Perl 5.8 but I haven't tested on MS 4.8. Lowell From Steve.Lime at DNR.STATE.MN.US Thu Jul 13 17:08:57 2006 From: Steve.Lime at DNR.STATE.MN.US (Steve Lime) Date: Thu, 13 Jul 2006 19:08:57 -0500 Subject: Maximum number of class styles, 5, has been reached Message-ID: The number of zoom levels shouldn't have anything to do with it from the MapServer point of view although perhaps there is something funky going on. I can't see where you'd want styles accumulating like that. (I can see 1 then 2 then 3 but how that gets bigger than that is escaping me). BTW There is an RFC to switch all relavant static arrays to dynamically allocated arrays that would help. Something tells me that's not the issue here though. Steve >>> Ludwig Max Brinckmann 7/13/2006 2:48:49 PM >>> I am hitting the threshold because I have the three styles on multiple zoom levels. But in Primagis there is now a way of combining the symbolizers, so that it would equate one style per zoomlevel. I am not sure how this maps down to mapserver, but I will give it a try tomorrow. Sean is also helping me out with this. (The worst would be recompiling, so the issue is not exactly pressing). Ludwig On 7/13/06, Steve Lime wrote: > > Um, er... It was a relatively arbitrary decision. By that I mean I didn't > have any symbolization use cases that > required more than 3, let alone 5. So to bump it you'd have to recompile. > There should be virtually no penalty > for going to a value of say 10. > > That said, you are only describing a case with 3 styles. If that's the > case then the issue is why are you hitting > the limit at all? (and the limit of 5 is protecting you). Are you actually > creating classes with more than 5? > > Steve > > >>> Ludwig Max Brinckmann 7/13/2006 10:53:12 > AM >>> > I am using Mapserver through Primagis, which uses mapserver as rendering > engine. > > I have a road network which I want to display at varying zoom levels in > different ways, with the roads rendered by stacking styles on top of each > other: eg. a wide black line on top of which comes a narrower yellow line > on > top of which comes a narrow black line, which overall gives the impression > of a divided highway as we know it from paper maps. > > I do this at varying zoom levels, but then when rendering I get the > message > > MapServerChildError: insertStyle(): Child array error. Maximum number of > class styles, 5, has been reached > > which comes from classobject.c. > > Obviously, I can change this in map.h and recompile. > > But is there a good reason for such a low maximum? Is it there to protect > people from their own errors or is there a significant performance penalty > or some such? > > > Ludwig > -- Ludwig M Brinckmann phone: 020 7254 1181 mobile: 07949 460787 From siukola.antti at GMAIL.COM Fri Jul 14 01:17:40 2006 From: siukola.antti at GMAIL.COM (antti siukola) Date: Fri, 14 Jul 2006 11:17:40 +0300 Subject: Mapserver returns blank pages In-Reply-To: Message-ID: Hi! It would be great if any of the developers could comment on this problem or maybe someone who has found a solution to the problem. I want to point out again that this problem prevents us to move to production if no solution is found. Regards, Antti S On 7/13/06, antti siukola wrote: > I've noticed that these Segmantation faults are logged even if there's > no blank page returned so I don't think that these two have a > relation. At least I get segmatation faults quite randomly. > > Cheers > > Antti S > > On 7/13/06, Stuart Eve wrote: > > > > After checking the apache error log we also get: > > > > [Thu Jul 13 10:22:02 2006] [notice] child pid 9429 exit signal Segmentation > > fault (11) > > > > We are using mapserver 4.8.3, php 4.3.10 and apache 2.0.53 running on a > > Suse 10 box. > > > > The mapscript functions that seem to be in use when the crash is caused > > are: queryByAttributes(), getResult() and getShape() > > > > should we list this as a bug on Bugzilla? > > > > Thanks > > > > Stuart > > > > > > > > Stuart Eve wrote: > > We are having (and have had for while_ this problem - and it does seem > > reasonably random. > > > > The main trouble is that I don't know how to get php to spew out the error > > - and instead it just returns this blank screen, instead of returning the > > error as it does normally. I had first thought that it was because I was > > using php mapscript and had nested functions - but it seems like lots of > > people are coming up with the same thing. > > > > Anyone got any ideas? > > > > Matthew Kane wrote: > > I wasn't actually using php mapscript in the mapfile that gave me > > segmentation faults. Strangely, I got the map to display on a Sun machine if > > I removed all references to true-type fonts and relied only on bitmap fonts > > for my labels. Even more strange is that when I moved the same file to a red > > hat server, mapserver simply hangs. No error message in either the browser > > or the apache error logs, just hanging. The same thing happened when I tried > > running the mapfile with shp2img. Has anyone else experienced this problem? > > Could this be a bug in one of the third party libraries that mapserver > > relies on? Or more likely a problem in how we code our mapfiles? > > > > Thanks, > > Matt > > > > > > On 7/12/06, antti siukola wrote: > > > Hi! > > > > > > As we can see a lot of people are suffering from this but no one seems > > > to have any solutions. Does this only appear with php mapscript? Is > > > this a bug? A known bug? Is there a solutions? This is a fatal error > > > since this kind of behavior avoids us to use php mapscript in > > > production, in case this is a php mapscript issue as it seems to be. > > > > > > Regards, > > > > > > Antti S > > > > > > On 6/13/06, Matthew Kane < markane at indiana.edu> wrote: > > > > I second that question, as I am receiving Segmentation Faults as well... > > > > > > > > Matt > > > > > > > > On 6/13/06, antti siukola < siukola.antti at gmail.com> wrote: > > > > > Hi! > > > > > > > > > > Every time MapServer returns a blank page I find "[notice] child pid > > > > > xxxx exit signal Segmentation fault (11)" from apache's error_log. Any > > > > > thoughts? Blank pages are returned randomly. > > > > > > > > > > AnttiS > > > > > > > > > > > > > > > > > > > > -- > > Stuart Eve > > L - P : Archaeology > > stuarteve at lparchaeology.com > > > > > > -- > > Stuart Eve > > L - P : Archaeology > > stuarteve at lparchaeology.com > > > > > From zhonghaiw at GMAIL.COM Fri Jul 14 01:32:42 2006 From: zhonghaiw at GMAIL.COM (Zhonghai Wang) Date: Fri, 14 Jul 2006 10:32:42 +0200 Subject: Mapserver returns blank pages In-Reply-To: Message-ID: check if the projection in the layer is correctly set, set both the projection object for the output map image and the input layers, and make sure they are correct. hope this helps. zhonghai On 7/14/06, antti siukola wrote: > > Hi! > > It would be great if any of the developers could comment on this > problem or maybe someone who has found a solution to the problem. I > want to point out again that this problem prevents us to move to > production if no solution is found. > > Regards, > > Antti S > > On 7/13/06, antti siukola wrote: > > I've noticed that these Segmantation faults are logged even if there's > > no blank page returned so I don't think that these two have a > > relation. At least I get segmatation faults quite randomly. > > > > Cheers > > > > Antti S > > > > On 7/13/06, Stuart Eve wrote: > > > > > > After checking the apache error log we also get: > > > > > > [Thu Jul 13 10:22:02 2006] [notice] child pid 9429 exit signal > Segmentation > > > fault (11) > > > > > > We are using mapserver 4.8.3, php 4.3.10 and apache 2.0.53 running on > a > > > Suse 10 box. > > > > > > The mapscript functions that seem to be in use when the crash is > caused > > > are: queryByAttributes(), getResult() and getShape() > > > > > > should we list this as a bug on Bugzilla? > > > > > > Thanks > > > > > > Stuart > > > > > > > > > > > > Stuart Eve wrote: > > > We are having (and have had for while_ this problem - and it does > seem > > > reasonably random. > > > > > > The main trouble is that I don't know how to get php to spew out the > error > > > - and instead it just returns this blank screen, instead of returning > the > > > error as it does normally. I had first thought that it was because I > was > > > using php mapscript and had nested functions - but it seems like lots > of > > > people are coming up with the same thing. > > > > > > Anyone got any ideas? > > > > > > Matthew Kane wrote: > > > I wasn't actually using php mapscript in the mapfile that gave me > > > segmentation faults. Strangely, I got the map to display on a Sun > machine if > > > I removed all references to true-type fonts and relied only on bitmap > fonts > > > for my labels. Even more strange is that when I moved the same file to > a red > > > hat server, mapserver simply hangs. No error message in either the > browser > > > or the apache error logs, just hanging. The same thing happened when I > tried > > > running the mapfile with shp2img. Has anyone else experienced this > problem? > > > Could this be a bug in one of the third party libraries that mapserver > > > relies on? Or more likely a problem in how we code our mapfiles? > > > > > > Thanks, > > > Matt > > > > > > > > > On 7/12/06, antti siukola wrote: > > > > Hi! > > > > > > > > As we can see a lot of people are suffering from this but no one > seems > > > > to have any solutions. Does this only appear with php mapscript? Is > > > > this a bug? A known bug? Is there a solutions? This is a fatal error > > > > since this kind of behavior avoids us to use php mapscript in > > > > production, in case this is a php mapscript issue as it seems to be. > > > > > > > > Regards, > > > > > > > > Antti S > > > > > > > > On 6/13/06, Matthew Kane < markane at indiana.edu> wrote: > > > > > I second that question, as I am receiving Segmentation Faults as > well... > > > > > > > > > > Matt > > > > > > > > > > On 6/13/06, antti siukola < siukola.antti at gmail.com> wrote: > > > > > > Hi! > > > > > > > > > > > > Every time MapServer returns a blank page I find "[notice] child > pid > > > > > > xxxx exit signal Segmentation fault (11)" from apache's > error_log. Any > > > > > > thoughts? Blank pages are returned randomly. > > > > > > > > > > > > AnttiS > > > > > > > > > > > > > > > > > > > > > > > > > > > -- > > > Stuart Eve > > > L - P : Archaeology > > > stuarteve at lparchaeology.com > > > > > > > > > -- > > > Stuart Eve > > > L - P : Archaeology > > > stuarteve at lparchaeology.com > > > > > > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From isaac at WEB-BOX.NET Fri Jul 14 01:54:27 2006 From: isaac at WEB-BOX.NET (Isaac Sunyer) Date: Fri, 14 Jul 2006 10:54:27 +0200 Subject: SWF movie from RASTER Layers Message-ID: Dear Denis, If you have Flash program it should be "easy" to do a "movie" using ActionScript language. In that case, i recomend you to output raster layers as .jpg and load all .jpg's in a .swf mother application. You can combine loadMovieClip and setInterval functions an onLoad event in .swf mother aplication. If you don't know ActionScript we can help you to do that. ------------------------------------------------------ Isaac Sunyer Ferrer http://www.web-maps.net Spain ----- Original Message ----- From: "Blaise" To: Sent: Thursday, July 13, 2006 11:21 PM Subject: Re: [UMN_MAPSERVER-USERS] SWF movie from RASTER Layers Le Mardi 11 Juillet 2006 17:15, Denis Nadeau a ?crit : > Hi, > > Would somebody know how to create a SWF movie from a list RASTER Layers? > > I want a SWF file that will loop indefinitely on all my RASTER Layers > using > TILEINDEX. I was able to create all the SWF layers from my RASTER layers, > but I don't know how to "play" them to get a little movie. > > What I want to do is to track a hurricane. > > Regards, > Denis Hi Denis You should be able to do that with ming : http://ming.sourceforge.net/ Regards Blaise -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.1.394 / Virus Database: 268.10.0/388 - Release Date: 13/07/2006 From aiandolo at GRUPPOAS.IT Fri Jul 14 03:40:28 2006 From: aiandolo at GRUPPOAS.IT (Antonio Iandolo) Date: Fri, 14 Jul 2006 12:40:28 +0200 Subject: Performance improvement Message-ID: Hi all, I've set up MapServer with a 4 layers map on an Oracle10g database thru a native connection (not OGR). The largest layer (which takes about 40% of the total time) is a polygon type of about 60,000 records (with a spatial index on the geom column) which isn't involved in any queryBy* php_mapscript function (only $map->setExtent) and has this DATA definition: DATA "GEOM FROM MYLAYER USING SRID 8307 NONE" The whole page takes about 9-11 seconds to be rendered, while the same php script (exactly the same, except for the mapfile), when interfacing ESRI shapefiles, (Oracle data come from ESRI thru shp2sdo.exe utility) takes less than 4 seconds in total... The most of time (about 80-90%) is taken by the $map->draw() method, where I supose it applies the spatial filter to determine which shapes are to be rendered... How could I improve these performance? Any suggestion/hint to check any bottleneck? My environment is: - Pentium 4 - 1.8GHz - 512MB RAM - Windows XP Professional SP1 - Apache 2.0.55 - MapServer 4.8.3 - php 4.4.3-dev (MS4W 1.5.3) - php_mapscript_48.dll - Oracle10g (XE) Thanks in advance, Antonio From roland.w.martin at GMAIL.COM Fri Jul 14 04:01:30 2006 From: roland.w.martin at GMAIL.COM (Roland Martin) Date: Fri, 14 Jul 2006 12:01:30 +0100 Subject: 500 Internal Server Errors In-Reply-To: Message-ID: Hi Luis, Thanks for your thoughts - unfortunately it didn't make any difference (anyway logically it shouldn't anyway because they're all in EPSG 27700 and use OIDs as the unique column). Interestingly it's very intermittent - I couldn't get the error to occur at all yesterday. I've now created the layers afresh in PostGIS from an entirely different procedure, and it's happening again. It could also be the nature of the layers - I've now filtered out a number of zero length line features, and there may be other topographical errors. Cheers, Roland. On 13/07/06, Luis Trevi?o wrote: > > Roland, > > Try this on your DATA stmt: > > DATA "geometry from background as foo using unique using srid= srid>" > just replace the name with your oid column and put the number of the > srid you're using. > Hope this helps. > > Regards, > Luis > > > > 2006/7/13, Roland Martin : > > > Hi Luis, > > > > Thanks for your reply. I don't think that's the problem, but here are > > some excerpts nonetheless: > > > > > > > > LAYER # this one works > > NAME "Contours" > > GROUP "Height" > > STATUS OFF > > CONNECTIONTYPE postgis > > CONNECTION "dbname=lba user=postgres password=postgres" > > DATA "geom from height_data" > > TYPE LINE > > LABELITEM "height" > > CLASS > > EXPRESSION ('[layer_name]' = 'C900LX000') > > COLOR 204 51 0 > > LABEL > > FONT sans > > SIZE small > > COLOR 100 100 100 > > OUTLINECOLOR 255 255 255 > > POSITION auto > > ANTIALIAS false > > END > > END > > END > > > > LAYER # this one doesn't > > NAME "Background Drawing" > > GROUP "CAD Drawings" > > STATUS OFF > > CONNECTIONTYPE postgis > > CONNECTION "dbname=lba user=postgres password=postgres" > > DATA "geometry from background" > > TYPE LINE > > CLASS > > COLOR 51 102 0 > > END > > END > > > > The geometry column names are different because I generated the tables > > from 2 different sources - but that shouldn't make any difference... > > > > Cheers, > > > > Roland. > > > > > > > > > > On 13/07/06, Luis Trevi?o wrote: > > > > > > Roland: > > > > > > Could be the "DATA" sql statement on your map file. It would be easier > > > if you can show part of your map file that involves the postgis layer. > > > > > > Regards, > > > Luis > > > > > > > > > 2006/7/12, Roland Martin : > > > > > > > OK, this is probably yet another stupid query to which I should know > > > > the answer... however, I'm on a roll here. > > > > > > > > I've got an application which is intermittently (i.e. most of the > > > > time, but not always) throwing a 500 Internal Server Error. The application > > > > is almost a direct clone of another which does not exhibit the same error. > > > > > > > > I've spent most of the afternoon trying to figure out why this might > > > > be, and as far as I can tell, it's something to do with the PostGIS database > > > > which holds most of the data. If I remove all the PostGIS layers, it seems > > > > to work fine (although interestingly doesn't work if they're all in the map > > > > file but turned off - does MapScript try to load the layers regardless?) > > > > > > > > The database contains converted CAD (DWG) data with typically stupid > > > > contents (meaningless fields, escape characters, etc). I wondered if it > > > > might be to do with the sizes of the tables (>30 000 records in each), but > > > > dissolving them doesn't seem to have made much difference. At the moment I'm > > > > leaning towards thinking it may be because of the aforementioned escape > > > > characters (looking down the tables, a number just contain the entry " which > > > > might upset things; others start with an asterisk). However, some of the > > > > tables causing the issue don't contain anything nearly as nasty. > > > > > > > > The error is being thrown on loading the map; approximately 80-90% > > > > of the time. > > > > > > > > Also of interest may be the following gunk from the error logs: > > > > [Wed Jul 12 16:29:11 2006] [error] [client x] Premature end of > > > > script headers: php-cgi.exe, referer: http://x/lbia_dev/ > > > > [Wed Jul 12 16:51:08 2006] [error] [client x] Premature end of > > > > script headers: php-cgi.exe, referer: http://x/lbia_dev/ > > > > (etc) > > > > > > > > Anyone have any thoughts on this? > > > > > > > > Ta, > > > > Roland. > > > > > > > > > > > > MS4W 2.0 > > > > MapServer 4.8.3 > > > > Chameleon for MS4W 2.4 > > > > PgSQL 8.1 > > > > etc 1.0 > > > > > > > > > > > > > > > > -- > > > > Please note my new email address. Use other addresses at your peril. > > > > > > > > > > > > > > > > > > > > > > > > > -- > > Please note my new email address. Use other addresses at your peril. > > > > -- Please note my new email address. Use other addresses at your peril. -------------- next part -------------- An HTML attachment was scrubbed... URL: From ludwigbrinckmann at GMAIL.COM Fri Jul 14 04:24:47 2006 From: ludwigbrinckmann at GMAIL.COM (Ludwig Max Brinckmann) Date: Fri, 14 Jul 2006 12:24:47 +0100 Subject: 500 Internal Server Errors In-Reply-To: Message-ID: > > > > > > > The error is being thrown on loading the map; approximately 80-90% > > > > > of the time. > > > > > > > > > > Also of interest may be the following gunk from the error logs: > > > > > [Wed Jul 12 16:29:11 2006] [error] [client x] Premature end of > > > > > script headers: php-cgi.exe, referer: http://x/lbia_dev/ > > > > > [Wed Jul 12 16:51:08 2006] [error] [client x] Premature end of > > > > > script headers: php-cgi.exe, referer: http://x/lbia_dev/ > > > > > (etc) > > > > > > > > > The error you are seeing might have to do more with apache and the long delay when getting data. This might be the doc you should be looking at: http://httpd.apache.org/docs/1.3/misc/FAQ-F.html#premature-script-headers HTH Ludwig -------------- next part -------------- An HTML attachment was scrubbed... URL: From fsimon at UNIVALI.BR Fri Jul 14 04:38:15 2006 From: fsimon at UNIVALI.BR (Fernando Simon) Date: Fri, 14 Jul 2006 08:38:15 -0300 Subject: Performance improvement In-Reply-To: <00a301c6a731$ecbb93f0$5d00a8c0@aiandolo> Message-ID: Hi Antonio, This issue is relate with your DATA definition. You are using NONE token, and it's indicate for Mapserver Oracle driver to don't use any spatial filter or spatial operator (SDO_FILTER or SDO_REALTE). Even that you are in a little extent that just contains 100 records, the NONE force to load all the 60.000 records in your case. Another point, are you using a geodetic SRID? If yes the Oracle use more internal mathematical functions to process the request. I suggest to change NONE to FILTER in you layer definition to test the performance. What is it the results when you change for FILTER? You can try to rebuild your index too. Best regards. ------------------------------------------------------------------------ Fernando Simon Mapserver and Oracle Spatial developer G10 - Laboratorio de Computacao Aplicada - Brazil http://www.univali.br/g10 - UNIVALI/CTTMAR ------------------------------------------------------------------------ Antonio Iandolo wrote: > Hi all, > I've set up MapServer with a 4 layers map on an Oracle10g database thru > a native connection (not OGR). > > The largest layer (which takes about 40% of the total time) is a polygon > type of about 60,000 records (with a spatial index on the geom column) > which isn't involved in any queryBy* php_mapscript function (only > $map->setExtent) and has this DATA definition: > DATA "GEOM FROM MYLAYER USING SRID 8307 NONE" > > > The whole page takes about 9-11 seconds to be rendered, while the same > php script (exactly the same, except for the mapfile), when interfacing > ESRI shapefiles, (Oracle data come from ESRI thru shp2sdo.exe utility) > takes less than 4 seconds in total... > > The most of time (about 80-90%) is taken by the $map->draw() method, > where I supose it applies the spatial filter to determine which shapes > are to be rendered... > > How could I improve these performance? Any suggestion/hint to check any > bottleneck? > > My environment is: > - Pentium 4 - 1.8GHz - 512MB RAM > - Windows XP Professional SP1 > - Apache 2.0.55 > - MapServer 4.8.3 > - php 4.4.3-dev (MS4W 1.5.3) > - php_mapscript_48.dll > - Oracle10g (XE) > > Thanks in advance, > Antonio > > From byhisdeeds at GMAIL.COM Fri Jul 14 06:47:56 2006 From: byhisdeeds at GMAIL.COM (John Preston) Date: Fri, 14 Jul 2006 08:47:56 -0500 Subject: Creating a tileindex for 50000 files Message-ID: I'm trying to use gdaltindex and then shptree to create a tile index for 50000 .tif files but when I try to run gdaltindex I get: gdaltindex data/jamaica/tileindex_res_1.shp res_1/*.tif bash: gdaltindex: Argument list too long I expect that the problem is that the shell is expanding the *.tif into one long string to pass to gdaltindex, and this is too long. How can I get around this. From warmerdam at POBOX.COM Fri Jul 14 07:01:26 2006 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Fri, 14 Jul 2006 10:01:26 -0400 Subject: Creating a tileindex for 50000 files In-Reply-To: <14320c890607140647k43933c3al1f1e0ada365824a4@mail.gmail.com> Message-ID: John Preston wrote: > I'm trying to use gdaltindex and then shptree to create a tile index > for 50000 .tif files but when I try to run gdaltindex I get: > > gdaltindex data/jamaica/tileindex_res_1.shp res_1/*.tif > bash: gdaltindex: Argument list too long > > I expect that the problem is that the shell is expanding the *.tif > into one long string to pass to gdaltindex, and this is too long. How > can I get around this. John, On Unix/Linux or Cygwin you should be able to do something like: find res_1 -name '*.tif' -print | xargs --max-args=50 gdaltindex \ data/jamaica/tileindex_res_1.shp Basically, this is using the find command to collect the list of names (instead of wildcards which max out on commandline length limits) and piping the list to xargs which will invoke gdaltindex on up to 50 names at a time. Good luck, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | President OSGF, http://osgeo.org From ludwigbrinckmann at GMAIL.COM Fri Jul 14 07:09:27 2006 From: ludwigbrinckmann at GMAIL.COM (Ludwig Max Brinckmann) Date: Fri, 14 Jul 2006 15:09:27 +0100 Subject: Creating a tileindex for 50000 files In-Reply-To: <44B7A3B6.70402@pobox.com> Message-ID: I had thought along that line, but will that not create a new index shapefile for every invocation? I thought you would have to create a number of index shapefiles, then combining their content later. On 7/14/06, Frank Warmerdam wrote: > > John Preston wrote: > > I'm trying to use gdaltindex and then shptree to create a tile index > > for 50000 .tif files but when I try to run gdaltindex I get: > > > > gdaltindex data/jamaica/tileindex_res_1.shp res_1/*.tif > > bash: gdaltindex: Argument list too long > > > > I expect that the problem is that the shell is expanding the *.tif > > into one long string to pass to gdaltindex, and this is too long. How > > can I get around this. > > John, > > On Unix/Linux or Cygwin you should be able to do something like: > > find res_1 -name '*.tif' -print | xargs --max-args=50 gdaltindex \ > data/jamaica/tileindex_res_1.shp > > Basically, this is using the find command to collect the list of names > (instead of wildcards which max out on commandline length limits) > and piping the list to xargs which will invoke gdaltindex on up to 50 > names at a time. > > Good luck, > -- > > ---------------------------------------+-------------------------------------- > I set the clouds in motion - turn up | Frank Warmerdam, > warmerdam at pobox.com > light and sound - activate the windows | http://pobox.com/~warmerdam > and watch the world go round - Rush | President OSGF, http://osgeo.org > -- Ludwig M Brinckmann phone: 020 7254 1181 mobile: 07949 460787 -------------- next part -------------- An HTML attachment was scrubbed... URL: From warmerdam at POBOX.COM Fri Jul 14 07:15:16 2006 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Fri, 14 Jul 2006 10:15:16 -0400 Subject: Creating a tileindex for 50000 files In-Reply-To: <3f7a6e1c0607140709i18e6d46dx87af0399783234c9@mail.gmail.com> Message-ID: Ludwig Max Brinckmann wrote: > I had thought along that line, but will that not create a new index > shapefile for every invocation? > I thought you would have to create a number of index shapefiles, then > combining their content later. > Ludwig, When given the name of an existing shapefile as the tileindex, gdaltindex will just append records to it. So this should work. I'm not sure if this applies to all of the tileindex creating programs for mapserver or not, but it does to gdaltindex. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | President OSGF, http://osgeo.org From aiandolo at GRUPPOAS.IT Fri Jul 14 07:11:34 2006 From: aiandolo at GRUPPOAS.IT (Antonio Iandolo) Date: Fri, 14 Jul 2006 16:11:34 +0200 Subject: R: [UMN_MAPSERVER-USERS] Performance improvement In-Reply-To: <44B78227.2030905@univali.br> Message-ID: Hi Fernando, thanks for your answer. I knew that the "NONE" clause wouldn't have been a good idea (the executed query in msOracleSpatialLayerWhichShapes doesn't include any spatial filter) but it actually is roughly the same: 1) "DATA GEOM FROM EDIFICI USING SRID 8307 NONE": about 8.522 seconds 2) "DATA GEOM FROM EDIFICI USING SRID 8307 FILTER": about 9.176 seconds 3) "DATA GEOM FROM EDIFICI USING SRID 8307 NONE VERSION 10g": about 8.594 seconds 4) "DATA GEOM FROM (SELECT GEOM FROM EDIFICI) USING SRID 8307 NONE": about 8.115 seconds Moreover I'm using an SRID 8307 since that's my data's coordinate system (is there a way to permanently "translate" my data in order to "cut" this overhead?) Anyway this is my actual layer in the mapfile: LAYER NAME "Edifici" STATUS DEFAULT DATA "GEOM FROM EDIFICI USING SRID 8307 NONE" TYPE POLYGON CONNECTIONTYPE ORACLESPATIAL CONNECTION "XAFFADM/XAFF" MAXSCALE 945248462 CLASS NAME "myclass" STYLE SYMBOL 4 COLOR 131 0 0 OUTLINECOLOR 0 0 0 SIZE 2 MINSIZE 2 MAXSIZE 2 ANTIALIAS TRUE END END END Any other suggestion/hint? Regards, Antonio > -----Messaggio originale----- > Da: UMN MapServer Users List > [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] Per conto di Fernando Simon > Inviato: venerd? 14 luglio 2006 13.38 > A: MAPSERVER-USERS at LISTS.UMN.EDU > Oggetto: Re: [UMN_MAPSERVER-USERS] Performance improvement > > > Hi Antonio, > This issue is relate with your DATA definition. You are using > NONE token, and it's indicate for Mapserver Oracle driver to > don't use any spatial filter or spatial operator (SDO_FILTER > or SDO_REALTE). Even that you are in a little extent that > just contains 100 records, the NONE force to load all the > 60.000 records in your case. Another point, are you using a > geodetic SRID? If yes the Oracle use more internal > mathematical functions to process the request. I suggest to > change NONE to FILTER in you layer definition to test the > performance. What is it the results when you change for > FILTER? You can try to rebuild your index too. Best regards. > > -------------------------------------------------------------- > ---------- > Fernando Simon > Mapserver and Oracle Spatial developer > G10 - Laboratorio de Computacao Aplicada - Brazil http://www.univali.br/g10 - UNIVALI/CTTMAR ------------------------------------------------------------------------ Antonio Iandolo wrote: > Hi all, > I've set up MapServer with a 4 layers map on an Oracle10g database > thru a native connection (not OGR). > > The largest layer (which takes about 40% of the total time) is a > polygon type of about 60,000 records (with a spatial index on the geom > column) which isn't involved in any queryBy* php_mapscript function > (only > $map->setExtent) and has this DATA definition: > DATA "GEOM FROM MYLAYER USING SRID 8307 NONE" > > > The whole page takes about 9-11 seconds to be rendered, while the same > php script (exactly the same, except for the mapfile), when > interfacing ESRI shapefiles, (Oracle data come from ESRI thru > shp2sdo.exe utility) takes less than 4 seconds in total... > > The most of time (about 80-90%) is taken by the $map->draw() method, > where I supose it applies the spatial filter to determine which shapes > are to be rendered... > > How could I improve these performance? Any suggestion/hint to check > any bottleneck? > > My environment is: > - Pentium 4 - 1.8GHz - 512MB RAM > - Windows XP Professional SP1 > - Apache 2.0.55 > - MapServer 4.8.3 > - php 4.4.3-dev (MS4W 1.5.3) > - php_mapscript_48.dll > - Oracle10g (XE) > > Thanks in advance, > Antonio > > From ludwigbrinckmann at GMAIL.COM Fri Jul 14 07:18:34 2006 From: ludwigbrinckmann at GMAIL.COM (Ludwig Max Brinckmann) Date: Fri, 14 Jul 2006 15:18:34 +0100 Subject: Creating a tileindex for 50000 files In-Reply-To: <44B7A6F4.5080506@pobox.com> Message-ID: I had just checked with the man for gdaltindex and it does not say so. I think it is worthwhile amending this. On 7/14/06, Frank Warmerdam wrote: > > Ludwig Max Brinckmann wrote: > > I had thought along that line, but will that not create a new index > > shapefile for every invocation? > > I thought you would have to create a number of index shapefiles, then > > combining their content later. > > > > Ludwig, > > When given the name of an existing shapefile as the tileindex, gdaltindex > will just append records to it. So this should work. I'm not sure if > this applies to all of the tileindex creating programs for mapserver or > not, > but it does to gdaltindex. > > Best regards, > -- > > ---------------------------------------+-------------------------------------- > I set the clouds in motion - turn up | Frank Warmerdam, > warmerdam at pobox.com > light and sound - activate the windows | http://pobox.com/~warmerdam > and watch the world go round - Rush | President OSGF, http://osgeo.org > > -- Ludwig M Brinckmann phone: 020 7254 1181 mobile: 07949 460787 -------------- next part -------------- An HTML attachment was scrubbed... URL: From ollerery at ENGR.ORST.EDU Fri Jul 14 08:09:36 2006 From: ollerery at ENGR.ORST.EDU (Ryan Ollerenshaw) Date: Fri, 14 Jul 2006 08:09:36 -0700 Subject: MapServer Reprojection In-Reply-To: Message-ID: My problem is that no matter what I have my SRS numbers set to my data will always be displayed the same what. What could I be missing that would cause MapServer?s re-projection capabilities not to work. I have several tiled .tiff images that I georeference by lat/long values using: gdal_translate -a_ullr 180 0 210 -30 thm_dir_N-30_180.png thm_dir_N-30_180.tiff I am then displaying them in MapServer using: LAYER NAME "themis" STATUS ON TILEINDEX "thm_dir.shp" TILEITEM "location" TYPE RASTER DUMP TRUE METADATA wcs_name "THEMIS_Data" wcs_description "THEMIS dataset" wcs_label "THEMIS dataset" ows_srs "EPSG:4326" ows_extent "0 -90 360 90" wcs_resolution "150 150" wcs_size "2700 3197" wcs_formats "GEOTIFF" END END Here is what gdalinfo reports, but isn?t it MapServer that does all the re-projection? So that fact that the Coordinate System here is blank is ok right? gdalinfo thm_dir_-30_000.tiff Driver: GTiff/GeoTIFF Size is 7680, 7680 Coordinate System is `' Origin = (0.000000,0.000000) Pixel Size = (0.00390625,-0.00390625) Corner Coordinates: Upper Left ( 0.0000000, 0.0000000) Lower Left ( 0.0000000, -30.0000000) Upper Right ( 30.0000000, 0.0000000) Lower Right ( 30.0000000, -30.0000000) Center ( 15.0000000, -15.0000000) Band 1 Block=7680x1 Type=Byte, ColorInterp=Gray Overviews: 3840x3840, 1920x1920, 960x960, 480x480, 240x240 From David.Fawcett at STATE.MN.US Fri Jul 14 08:19:51 2006 From: David.Fawcett at STATE.MN.US (Fawcett, David) Date: Fri, 14 Jul 2006 10:19:51 -0500 Subject: MapServer Reprojection In-Reply-To: A<1152889776.44b7b3b09e0ea@webmail.oregonstate.edu> Message-ID: Ryan, Do you have projection blocks for the MAP and LAYER. I don't see one in the layer. David. -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Ryan Ollerenshaw Sent: Friday, July 14, 2006 10:10 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] MapServer Reprojection My problem is that no matter what I have my SRS numbers set to my data will always be displayed the same what. What could I be missing that would cause MapServer's re-projection capabilities not to work. I have several tiled .tiff images that I georeference by lat/long values using: gdal_translate -a_ullr 180 0 210 -30 thm_dir_N-30_180.png thm_dir_N-30_180.tiff I am then displaying them in MapServer using: LAYER NAME "themis" STATUS ON TILEINDEX "thm_dir.shp" TILEITEM "location" TYPE RASTER DUMP TRUE METADATA wcs_name "THEMIS_Data" wcs_description "THEMIS dataset" wcs_label "THEMIS dataset" ows_srs "EPSG:4326" ows_extent "0 -90 360 90" wcs_resolution "150 150" wcs_size "2700 3197" wcs_formats "GEOTIFF" END END Here is what gdalinfo reports, but isn't it MapServer that does all the re-projection? So that fact that the Coordinate System here is blank is ok right? gdalinfo thm_dir_-30_000.tiff Driver: GTiff/GeoTIFF Size is 7680, 7680 Coordinate System is `' Origin = (0.000000,0.000000) Pixel Size = (0.00390625,-0.00390625) Corner Coordinates: Upper Left ( 0.0000000, 0.0000000) Lower Left ( 0.0000000, -30.0000000) Upper Right ( 30.0000000, 0.0000000) Lower Right ( 30.0000000, -30.0000000) Center ( 15.0000000, -15.0000000) Band 1 Block=7680x1 Type=Byte, ColorInterp=Gray Overviews: 3840x3840, 1920x1920, 960x960, 480x480, 240x240 From ollerery at ENGR.ORST.EDU Fri Jul 14 08:23:04 2006 From: ollerery at ENGR.ORST.EDU (Ryan Ollerenshaw) Date: Fri, 14 Jul 2006 08:23:04 -0700 Subject: MapServer Reprojection In-Reply-To: <6246727221874A4FB8D3F9BBC37D9BD5FB07BD@s-sp22.pca.state.mn.us> Message-ID: Quoting "Fawcett, David" : > Ryan, > > Do you have projection blocks for the MAP and LAYER. I don't see one in > the layer. > > David. > Sorry forgot to post that. Yes I have a projection block for the map. I have also tried setting one for the layer as well, but no luck with any combination. PROJECTION "init=epsg:4326" END > -----Original Message----- > > My problem is that no matter what I have my SRS numbers set to my data > will always be displayed the same what. What could I be missing that > would cause MapServer's re-projection capabilities not to work. > > I have several tiled .tiff images that I georeference by lat/long values > using: gdal_translate -a_ullr 180 0 210 -30 thm_dir_N-30_180.png > thm_dir_N-30_180.tiff > > I am then displaying them in MapServer using: > > LAYER > NAME "themis" > STATUS ON > TILEINDEX "thm_dir.shp" > TILEITEM "location" > TYPE RASTER > DUMP TRUE > METADATA > wcs_name "THEMIS_Data" > wcs_description "THEMIS dataset" > wcs_label "THEMIS dataset" > ows_srs "EPSG:4326" > ows_extent "0 -90 360 90" > wcs_resolution "150 150" > wcs_size "2700 3197" > wcs_formats "GEOTIFF" > END > END > > Here is what gdalinfo reports, but isn't it MapServer that does all the > re-projection? So that fact that the Coordinate System here is blank is > ok right? > > gdalinfo thm_dir_-30_000.tiff > Driver: GTiff/GeoTIFF > Size is 7680, 7680 > Coordinate System is `' > Origin = (0.000000,0.000000) > Pixel Size = (0.00390625,-0.00390625) > Corner Coordinates: > Upper Left ( 0.0000000, 0.0000000) > Lower Left ( 0.0000000, -30.0000000) > Upper Right ( 30.0000000, 0.0000000) > Lower Right ( 30.0000000, -30.0000000) > Center ( 15.0000000, -15.0000000) > Band 1 Block=7680x1 Type=Byte, ColorInterp=Gray > Overviews: 3840x3840, 1920x1920, 960x960, 480x480, 240x240 > From roland.w.martin at GMAIL.COM Fri Jul 14 08:53:17 2006 From: roland.w.martin at GMAIL.COM (Roland Martin) Date: Fri, 14 Jul 2006 16:53:17 +0100 Subject: 500 Internal Server Errors In-Reply-To: <3f7a6e1c0607140424t8ed6787te3b1e9222647245c@mail.gmail.com> Message-ID: Hi Ludwig, Thanks for your thoughts. I've spent today clutching at straws and testing every possibility I can think of (including using shapefiles, which turned out to throw the same error). Anyway, I *think* (and I really hope I'm not speaking prematurely) that I've solved this by changing the group names from 'CAD Drawings' to simply 'CAD'... The bizarre thing is that I can't replicate the error in any of my other apps. Anyone have any ideas on why this might be? Cheers, Roland. On 14/07/06, Ludwig Max Brinckmann wrote: > > > > > > > > The error is being thrown on loading the map; approximately > > > > > > 80-90% of the time. > > > > > > > > > > > > Also of interest may be the following gunk from the error logs: > > > > > > [Wed Jul 12 16:29:11 2006] [error] [client x] Premature end of > > > > > > script headers: php-cgi.exe, referer: http://x/lbia_dev/ > > > > > > [Wed Jul 12 16:51:08 2006] [error] [client x] Premature end of > > > > > > script headers: php-cgi.exe, referer: http://x/lbia_dev/ > > > > > > (etc) > > > > > > > > > > > > > The error you are seeing might have to do more with apache and the long > delay when getting data. > > This might be the doc you should be looking at: > > http://httpd.apache.org/docs/1.3/misc/FAQ-F.html#premature-script-headers > > > HTH > > Ludwig > > > -- Please note my new email address. Use other addresses at your peril. -------------- next part -------------- An HTML attachment was scrubbed... URL: From bart_doggers at YAHOO.COM Fri Jul 14 08:47:36 2006 From: bart_doggers at YAHOO.COM (Albert Anderson) Date: Fri, 14 Jul 2006 08:47:36 -0700 Subject: Mapserver Proj File not working for me Message-ID: Hi All, I am trying to get my projection file working. Installed the program proj4 and I dont know if its working. here is my code for the map file. Whats the first step on trying to get the projection file working? #This is Richland County Map Server NAME "Richland" SIZE 309 417 UNITS DD IMAGECOLOR 189 202 222 IMAGETYPE JPEG PROJECTION "init=epsg:26914" END SHAPEPATH "/home/mapdata/" EXTENT -97.338391 45.907505 -96.508389 46.717217 #################################### # Symbol for drawing fat lines # SYMBOL NAME "BigLine" TYPE ELLIPSE POINTS 1 1 END END ##################################### # Symbol for drawing dashed lines # SYMBOL NAME "DashedLine" TYPE ELLIPSE POINTS 1 1 END STYLE 10 10 END END ##################################### # Symbol for drawing spots # SYMBOL NAME "Circle" FILLED true TYPE ellipse POINTS 1 1 END END ##################################### # Web object # WEB TEMPLATE '/var/www/htdocs/gismapserver_test_project_mod.html' IMAGEPATH '/var/www/htdocs/tmp/' IMAGEURL '/tmp/' END ##################################### # Reference map # REFERENCE IMAGE "/home/mapdata/richland.gif" SIZE 136 152 EXTENT -97.228391 45.907505 -96.628389 46.717217 STATUS ON COLOR -1 -1 -1 OUTLINECOLOR 0 0 0 END ##################################### # Scalebar # SCALEBAR LABEL COLOR 0 0 0 ANTIALIAS true SIZE small END POSITION lr INTERVALS 5 STATUS embed SIZE 175 5 STYLE 0 UNITS miles BACKGROUNDCOLOR 0 255 0 IMAGECOLOR 255 255 255 COLOR 128 128 128 OUTLINECOLOR 0 0 255 TRANSPARENT off END ##################################### LAYER NAME "richland" STATUS default TYPE polygon DATA "RICH_bndy" PROJECTION "init=epsg:26914" END CLASS STYLE COLOR 0 0 0 END END END ##################################### LAYER NAME "boundary" STATUS on TYPE line DATA "RC_boundary_05" CLASS STYLE COLOR 0 0 0 END END END ##################################### LAYER NAME "roads" STATUS on TYPE line DATA "roads_shp" CLASS STYLE COLOR 255 0 0 END END END ##################################### LAYER NAME "sections" STATUS on TYPE line DATA "RC_sectionsQQs_05" CLASS STYLE COLOR 205 205 0 END END END ##################################### LAYER NAME "parecles" STATUS on TYPE line DATA "RC_parcels_05" CLASS STYLE COLOR 0 0 0 END END END END Thanks, Albert __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From bart_doggers at YAHOO.COM Fri Jul 14 09:58:08 2006 From: bart_doggers at YAHOO.COM (Albert Anderson) Date: Fri, 14 Jul 2006 09:58:08 -0700 Subject: How do you use proj-4.4.9 Message-ID: Hi All, I installed proj-4.4.9 on a lunix machine. I follow the directions step by step. It does seem to be work. What should I do. I have the projection in the layer and map. code is here. #This is Richland County Map Server NAME "Richland" SIZE 309 417 UNITS DD IMAGECOLOR 189 202 222 IMAGETYPE JPEG PROJECTION "init=epsg:26914" END SHAPEPATH "/home/mapdata/" EXTENT -97.338391 45.907505 -96.508389 46.717217 and ##################################### LAYER NAME "richland" STATUS default TYPE polygon DATA "RICH_bndy" PROJECTION "init=epsg:26914" END CLASS STYLE COLOR 0 0 0 END END END Can someone help me. Thanks, Albert --------------------------------- Do you Yahoo!? Everyone is raving about the all-new Yahoo! Mail Beta. -------------- next part -------------- An HTML attachment was scrubbed... URL: From ollerery at ENGR.ORST.EDU Fri Jul 14 10:01:29 2006 From: ollerery at ENGR.ORST.EDU (Ryan Ollerenshaw) Date: Fri, 14 Jul 2006 10:01:29 -0700 Subject: How do you use proj-4.4.9 In-Reply-To: <20060714165808.47540.qmail@web55705.mail.re3.yahoo.com> Message-ID: How is it not working? Quoting Albert Anderson : > Hi All, > > I installed proj-4.4.9 on a lunix machine. I follow the directions step by > step. It does seem to be work. What should I do. I have the projection in > the layer and map. code is here. > > #This is Richland County Map Server > NAME "Richland" > SIZE 309 417 > UNITS DD > IMAGECOLOR 189 202 222 > IMAGETYPE JPEG > PROJECTION "init=epsg:26914" > END > SHAPEPATH "/home/mapdata/" > EXTENT -97.338391 45.907505 -96.508389 46.717217 > > and > > ##################################### > LAYER > NAME "richland" > STATUS default > TYPE polygon > DATA "RICH_bndy" > PROJECTION "init=epsg:26914" > END > CLASS > STYLE > COLOR 0 0 0 > END > END > END > > Can someone help me. > > Thanks, > Albert > > > --------------------------------- > Do you Yahoo!? > Everyone is raving about the all-new Yahoo! Mail Beta. From earevaloch at GMAIL.COM Fri Jul 14 10:59:48 2006 From: earevaloch at GMAIL.COM (=?ISO-8859-1?Q?Eduardo_Ar=E9valo?=) Date: Fri, 14 Jul 2006 12:59:48 -0500 Subject: TEMPLATE different result......?????? Message-ID: hello list I have constructed following mapfile : MAP NAME EX1.9 IMAGETYPE PNG24 #EXTENT -81.328393 -18.351232 -68.653396 -0.038607 EXTENT 2302807 -6483741 3702046 -4286330 #laea SIZE 400 300 SHAPEPATH "/home/postgres/vectores" FONTSET "/home/earevalo/mapserver-4.8.3/fonts/fonts.list" SYMBOLSET "/home/earevalo/mapserver-4.8.3/symbols/line.sym" WEB TEMPLATE "/usr/local/apache2/htdocs/httpmapinteractivo.html" IMAGEPATH "/home/earevalo/mapserver-4.8.3/tmp/" IMAGEURL "/tmp/" LOG "/home/earevalo/mapserver-4.8.3/log/mslog" END PROJECTION # "proj=laea" # "ellps=clrk66" # "lat_0=45" # "lon_0=-100" "init=epsg:2163" END LAYER NAME Peru_poly DATA departamentos STATUS OFF TYPE POLYGON PROJECTION "init=epsg:4326" END CLASSITEM "nomb_dep" CLASS NAME "departamento selva" EXPRESSION "UCAYALI" STYLE SYMBOL 0 COLOR 232 232 232 END END END LAYER #MOSAICO PER? NAME Mosaico_Peru DATA "/home/postgres/raster/PERU300DPI.tif" STATUS OFF#DEFAULT TYPE RASTER PROCESSING "BANDS=1,2,3" OFFSITE 71 74 65 PROJECTION "init=epsg:4326" END END LAYER #CAPA EXTERNA WMS NAME Mosaico_WMS TYPE RASTER OFFSITE 0 0 0 STATUS OFF#OFF CONNECTIONTYPE WMS CONNECTION " http://10.1.6.46/cgi-bin/mapserv?map=mapwms.map&SERVICE=wms&VERSION=1.1.1&REQUEST=GetMap&LAYERS=Mosaico_Peru " METADATA "wms_srs" "EPSG:4326" "wms_name" "Mosaico" "wms_server_version" "1.1.1" "wms_format" "image/jpeg" END PROJECTION "init=epsg:4326" END END LAYER #CAPA DEPARTAMENTOS NAME Peru_poly DATA departamentos STATUS OFF TYPE LINE PROJECTION "init=epsg:4326" END CLASSITEM "nomb_dep" CLASS NAME "departamento selva" EXPRESSION "UCAYALI" STYLE SYMBOL 'line' COLOR 32 32 32 SIZE 1 END END END LAYER #CAPA DEPARTAMENTOS NAME Peru_poly DATA departamentos STATUS OFF TYPE LINE PROJECTION "init=epsg:4326" END CLASSITEM "nomb_dep" CLASS NAME "Departamentos Costa" EXPRESSION "LIMA" STYLE SYMBOL 'line' COLOR 32 32 32 SIZE 1 END END END LAYER #TITULOS DE DEPARTAMENTOS NAME Titulos DATA departamentos STATUS OFF TYPE ANNOTATION PROJECTION "init=epsg:4326" END CLASSITEM "nomb_dep" LABELITEM "capital" CLASS EXPRESSION /./ STYLE COLOR -1 -1 -1 END LABEL COLOR 132 31 31 SHADOWCOLOR 218 218 218 SHADOWSIZE 1 1 TYPE TRUETYPE FONT arial-bold SIZE 8 ANTIALIAS TRUE POSITION CL PARTIALS FALSE MINDISTANCE 200 BUFFER 4 END END END END END in the line WEB TEMPLATE "/usr/local/apache2/htdocs/httpmapinteractivo.html" ........ it calls to template following: prueba

Ejemplo 1: Mapa interctivo y modo Browse

--------------------------------------------------

when I invoke to mapfile with: http://10.1.6.46/cgi-bin/mapserv?map=/home/earevalo/mapserver-4.8.3/tests/cincomapinter.map&mode=browse the resulting HTML is: prueba

Ejemplo 1: Mapa interctivo y modo Browse

--------------------------------------------------

the problem is the EXTENT (2302807 -6483741 3702046 -4286330) of mapfile is different that imgext [ 1537485.833333 -6483741.000000 4467367.166667 -4286330.000000] by this it does not show the image to give an aid me -------------- next part -------------- An HTML attachment was scrubbed... URL: From ollerery at ENGR.ORST.EDU Fri Jul 14 12:36:08 2006 From: ollerery at ENGR.ORST.EDU (Ryan Ollerenshaw) Date: Fri, 14 Jul 2006 12:36:08 -0700 Subject: How do you use proj-4.4.9 In-Reply-To: <20060714181016.85272.qmail@web55703.mail.re3.yahoo.com> Message-ID: Quoting Albert Anderson : > Hi, > I dont know why its not working. The projection map file is not showing up > in the window. > > Albert > We would still need some more information to exacly what problem you are facing. if all you are getting is a blank display i would bet that you problem is not with proj4 but somewhere else in you mapserver setup. I think that your best bet would be to use your MapServer's built in WMS server and try to view your map through a URL. This would eliminate any coding mistakes that you might have made else where. check out: http://mapserver.gis.umn.edu/docs/howto/wms_server > Ryan Ollerenshaw wrote: How is it not working? > > Quoting Albert Anderson : > > > Hi All, > > > > I installed proj-4.4.9 on a lunix machine. I follow the directions step > by > > step. It does seem to be work. What should I do. I have the projection in > > the layer and map. code is here. > > > > #This is Richland County Map Server > > NAME "Richland" > > SIZE 309 417 > > UNITS DD > > IMAGECOLOR 189 202 222 > > IMAGETYPE JPEG > > PROJECTION "init=epsg:26914" > > END > > SHAPEPATH "/home/mapdata/" > > EXTENT -97.338391 45.907505 -96.508389 46.717217 > > > > and > > > > ##################################### > > LAYER > > NAME "richland" > > STATUS default > > TYPE polygon > > DATA "RICH_bndy" > > PROJECTION "init=epsg:26914" > > END > > CLASS > > STYLE > > COLOR 0 0 0 > > END > > END > > END > > > > Can someone help me. > > > > Thanks, > > Albert > > > > > > --------------------------------- > > Do you Yahoo!? > > Everyone is raving about the all-new Yahoo! Mail Beta. > > > > > > --------------------------------- > Do you Yahoo!? > Everyone is raving about the all-new Yahoo! Mail Beta. From bart_doggers at YAHOO.COM Fri Jul 14 13:19:12 2006 From: bart_doggers at YAHOO.COM (Albert Anderson) Date: Fri, 14 Jul 2006 13:19:12 -0700 Subject: How do you use proj-4.4.9 In-Reply-To: <1152905768.44b7f2281cca3@webmail.oregonstate.edu> Message-ID: Hi, I got the projection file working. But now my road,sections,and boundary layers are not showing up. Thanks, Albert Ryan Ollerenshaw wrote: Quoting Albert Anderson : > Hi, > I dont know why its not working. The projection map file is not showing up > in the window. > > Albert > We would still need some more information to exacly what problem you are facing. if all you are getting is a blank display i would bet that you problem is not with proj4 but somewhere else in you mapserver setup. I think that your best bet would be to use your MapServer's built in WMS server and try to view your map through a URL. This would eliminate any coding mistakes that you might have made else where. check out: http://mapserver.gis.umn.edu/docs/howto/wms_server > Ryan Ollerenshaw wrote: How is it not working? > > Quoting Albert Anderson : > > > Hi All, > > > > I installed proj-4.4.9 on a lunix machine. I follow the directions step > by > > step. It does seem to be work. What should I do. I have the projection in > > the layer and map. code is here. > > > > #This is Richland County Map Server > > NAME "Richland" > > SIZE 309 417 > > UNITS DD > > IMAGECOLOR 189 202 222 > > IMAGETYPE JPEG > > PROJECTION "init=epsg:26914" > > END > > SHAPEPATH "/home/mapdata/" > > EXTENT -97.338391 45.907505 -96.508389 46.717217 > > > > and > > > > ##################################### > > LAYER > > NAME "richland" > > STATUS default > > TYPE polygon > > DATA "RICH_bndy" > > PROJECTION "init=epsg:26914" > > END > > CLASS > > STYLE > > COLOR 0 0 0 > > END > > END > > END > > > > Can someone help me. > > > > Thanks, > > Albert > > > > > > --------------------------------- > > Do you Yahoo!? > > Everyone is raving about the all-new Yahoo! Mail Beta. > > > > > > --------------------------------- > Do you Yahoo!? > Everyone is raving about the all-new Yahoo! Mail Beta. __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From ollerery at ENGR.ORST.EDU Fri Jul 14 13:42:31 2006 From: ollerery at ENGR.ORST.EDU (Ryan Ollerenshaw) Date: Fri, 14 Jul 2006 13:42:31 -0700 Subject: AW: [UMN_MAPSERVER-USERS] Map Projections In-Reply-To: Message-ID: Hello Arnd, Thank for for the reply. The main problem that i am having is i have some datasets with a prime meridian at 0 degress and others that have a prime meridian at 90 degrees and i need these raster datasets to line up. but when i specify a map projection as: PROJECTION "proj=cc" "lon_0=90w" "ellps=WGS84" "datum=WGS84" END and a layer projection as: PROJECTION "proj=cc" "lon_0=0" "ellps=WGS84" "datum=WGS84" END Rather then the layer geting reprojected to the map projection I get a blank image. I do however get a different map image of i just change the projection name of the map file to some like: lcc or merc. But why am i getting a blank image when i try to shift the prime meridian? Thank you for any help you can provide, -Ryan Quoting Arnd Wippermann : > Hello, > > Mapserver is capable of re-projecting. The projection of the layers (raster > or vector data) can differ from the projection of the map. Your output comes > in the map projection. > > Mit freundlichen Gr?ssen > > Arnd Wippermann > http://gis.ibbeck.de/pinguinale/ > > > -----Urspr?ngliche Nachricht----- > > I am having a bit of trouble re-projecting my data. When I specify the > PROJECTION object in my map file as > > PROJECTION > "proj=cc" > "lon_0=0" > "ellps=WGS84" > "datum=WGS84" > END > > Or > > PROJECTION > "proj=cc" > "lon_0=90" > "ellps=WGS84" > "datum=WGS84" > END > > My image does not change, but the prime meridian should be changing > locations from the center of the image to the far left. I also tried to > specify the projection in the layer itself but still no change. Isn?t > MapServer capable of re-projecting the data regardless of the original > projection? > > > From bart_doggers at YAHOO.COM Fri Jul 14 13:57:44 2006 From: bart_doggers at YAHOO.COM (Albert Anderson) Date: Fri, 14 Jul 2006 13:57:44 -0700 Subject: cant get my lavyers working w/my projection file Message-ID: Hi, I got my projection file working but I cant see to get my layers working like roads, boundary line, and etc... Can someone look at my code and help me. Thanks! ---Codes-------
County Boundary
  City Boundary
  Township
  Section Lines

 Land
  Parcels
  Parcels Labels


 Transportation
  County/City Roads
  Address Labels

 Backgrounds
  Aerial Photos

#This is Richland County Map Server NAME "Richland" SIZE 309 417 UNITS miles IMAGECOLOR 255 255 255 IMAGETYPE JPEG PROJECTION "init=epsg:26914" END SHAPEPATH "/home/mapdata/" EXTENT 626173.309834 5085113.091715 694065.960556 5176735.212592 #################################### # Symbol for drawing fat lines # SYMBOL NAME "BigLine" TYPE ELLIPSE POINTS 1 1 END END ##################################### # Symbol for drawing dashed lines # SYMBOL NAME "DashedLine" TYPE ELLIPSE POINTS 1 1 END STYLE 10 10 END END ##################################### # Symbol for drawing spots # SYMBOL NAME "Circle" FILLED true TYPE ellipse POINTS 1 1 END END ##################################### # Web object # WEB TEMPLATE '/var/www/htdocs/gismapserver_test_project_mod.html' IMAGEPATH '/var/www/htdocs/tmp/' IMAGEURL '/tmp/' END ##################################### # Reference map # REFERENCE IMAGE "/home/mapdata/richland.gif" SIZE 136 152 EXTENT -97.228391 45.907505 -96.628389 46.717217 STATUS ON COLOR -1 -1 -1 OUTLINECOLOR 0 0 0 END ##################################### # Scalebar # SCALEBAR LABEL COLOR 0 0 0 ANTIALIAS true SIZE small END POSITION lr INTERVALS 5 STATUS embed SIZE 144 5 STYLE 0 UNITS MILES BACKGROUNDCOLOR 0 255 0 IMAGECOLOR 255 255 255 COLOR 128 128 128 OUTLINECOLOR 0 0 255 TRANSPARENT off END ##################################### LAYER NAME "richland" STATUS default TYPE polygon DATA "RICH_bndy" PROJECTION "init=epsg:26914" END CLASS STYLE COLOR 238 220 130 END END END ##################################### LAYER NAME "boundary" STATUS on TYPE line DATA "RC_boundary_05" CLASS STYLE COLOR 0 0 0 END END END ##################################### LAYER NAME "roads" STATUS on TYPE line DATA "roads_shp" CLASS STYLE COLOR 255 0 0 END END END ##################################### LAYER NAME "sections" STATUS on TYPE line DATA "RC_sections_05" CLASS STYLE COLOR 255 130 171 END END END ##################################### LAYER NAME "parecles" STATUS on TYPE line DATA "RC_parcels_05" CLASS STYLE COLOR 0 0 0 END END END END __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From RMcCulley at COUNTY24.COM Fri Jul 14 14:49:19 2006 From: RMcCulley at COUNTY24.COM (Rob McCulley) Date: Fri, 14 Jul 2006 15:49:19 -0600 Subject: Custom Grid Message-ID: Hi All, I'm looking to create a map with a custom grid. I've got a shapefile that defines the lines for the custom grid. ArcGIS allows me to define that shapefile as my custom grid, and then it labels the edges accordingly. I've attached an example image of what I'm trying to do. Can I do this via mapscript? Thanks, Rob McCulley GIS Coordinator County of Vermilion River No. 24 (780) 846-2244 www.vermilion-river.ab.ca -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Grid_Example.jpg Type: image/jpeg Size: 36432 bytes Desc: Grid_Example.jpg URL: From giuseppe.derossi at EMAIL.IT Sat Jul 15 02:14:01 2006 From: giuseppe.derossi at EMAIL.IT (Giuseppe De Rossi) Date: Sat, 15 Jul 2006 11:14:01 +0200 Subject: tile index for large amount of shp Message-ID: Hi Stephen, I need your kind help : is this procedure right for type text layer ? I've some dwg files that I elaborate by using an application which generates the shp files for every layer. There are polygons , lines , points and text, since now I was able to generate tile index for polygons and lin. Of course I'm collecting layers with the same geometry. When I've applied the procedures for four file of TxT type , I got: c:\tile4ms.exe F300_TestiVari.in F300_TestiVari-idx Aborted. DBF fields do not match for file:F300_001100_TestiVari.shp Aborted. DBF fields do not match for file:F300_001200_TestiVari.shp Processed 4 of 4 file I saw that in the shp file there are 4 rectanguler idx-shape and the idx-dbf there are the name of four file, can I go on ? why do you thing I got this kijnd of error ? Thanks in advance and best regards. Giu --------- Original Message -------- Da: Stephen Woodbridge To: MAPSERVER-USERS at LISTS.UMN.EDU Oggetto: Re: [UMN_MAPSERVER-USERS] tile index for large amount of shp Data: 09/07/06 15:11 > > > > Hi Giuseppe, > > Yes, a tileindex is exactly what you need here. It will improve > performance and significantly reduce your mapfile layers. > > Try this: > > ls map*-streets.shp > streets.in > tile4ms streets.in streets-idx > shptree streets-idx > > and in your mapfile replace ALL you map*-streets layers with a single > > Layer > name ... > tileindex "streets-idx" > # no data statement > .... > end > > Do the same for the other layers. So you have a tileindex for each > theme. And make sure all files have .qix spatial indexes for performance > > for x in *.shp ; do shptree $x ; done > > And enjoy :) > > There is one caveat and that is the all map*-streets.shp files must have > the same attributes defined for a given tileindex and the attributes > must be in the same order within the files. > > -SteveW > > Giuseppe De Rossi wrote: > > Hi, > > I need some kind explanations about tile index technique. At the moment I > > have about 750 layers as shp file. they are organized as: > > > > map1-streets.shp > > map1-rivers.shp > > map1-particels.shp > > ... > > map1-referencedPointsN.shp > > ... > > ... > > mapN-streets.shp > > mapN-rivers.shp > > ... > > mapN-referencedPointsN.shp > > > > Some are polygons type, some are lines and some are text and points. > > The user can visualize one layer and turn it on or off by using both the > > location : map1-particels and the theme: particel-map1. The real number of > > differen theme-layer is > > > > I've two oreder of problems , the maximum number of layers and the > > performance. > > could be the first problem resolved by tile index tecnique ? can I improve > > the perfomance too without recompiling mapserve ? > > can I apply this tech into my problem ? what are the single steps of > > procedure ? > > > > I appraciete any info and suggestion. > > > > thanks in advance and best regards > > > > > > Giu. > > > > > > > > > > -- > > Email.it, the professional e-mail, gratis per te: http://www.email.it/f > > > > Sponsor: > > Ti piace la chitarra? Impara a suonarla senza fatica ed evitando tutti gli > > errori, con l'aiuto di un maestro professionista > > Clicca qui: http://adv.email.it/cgi-bin/foclick.cgi?mid=5144&d=20060709 > > > > > -- Email.it, the professional e-mail, gratis per te: http://www.email.it/f Sponsor: Problemi di Liquidit?? Con Logos Finanziaria 30.000 ? in 24 ore a dipendenti e lavoratori autonomi con rimborsi fino a 120 mesi, clicca qui Clicca qui: http://adv.email.it/cgi-bin/foclick.cgi?mid=2911&d=20060715 From abel_soares at SAPO.PT Sat Jul 15 04:26:17 2006 From: abel_soares at SAPO.PT (soares) Date: Sat, 15 Jul 2006 04:26:17 -0700 Subject: raster doubt Message-ID: hi all i have a question a hope someone could answer, sorry if it?s newby!!!! i see we can define class and expressions in mapfiles in order to classify the value of a raster pixel and the color of the pixels. ------------------------------------------------------ CLASS NAME "dark-grey" EXPRESSION ([pixel] > 48 and [pixel] <= 126) STYLE COLOR 64 64 64 END END "for pixels with values >48 <126 it output a dark grey color, right?" ------------------------------------------------------------- My question is if we can classify the pixel values not with one color but with a color ramp, having a gradient look, just like is done in ArcMap. other question, what are exactly this pixels values, [pixel]???? any explain is usefull, tkx -- View this message in context: http://www.nabble.com/raster-doubt-tf1947332.html#a5339709 Sent from the Mapserver - User forum at Nabble.com. From Maxc at SPICERGROUP.COM Sat Jul 15 11:32:09 2006 From: Maxc at SPICERGROUP.COM (Clever, Max) Date: Sat, 15 Jul 2006 14:32:09 -0400 Subject: FW: Michigan Georef Projection Problems in Proj4 Message-ID: Hi, Did anyone see this the last time I sent it? It relates to Mapserver as well since Mapserver uses Proj4 for its projections. _____ From: Clever, Max Sent: Wednesday, July 12, 2006 2:03 AM To: Frank Warmerdam; MAPSERVER-USERS at LISTS.UMN.EDU Subject: Michigan Georef Projection Problems in Proj4 Hello Everyone, Two years ago, I ran into a problem with the Michigan Georef Projection and the way that proj identified it. I had sent emails back and forth for a while until someone sent a temporary solution of providing false parameters that worked.. for the most part. This temporary solution, of course, did not actually solve the problem, but instead delayed the fixing of the methods that proj identifies projections and translates them. For that I am sorry for not remaining vigilant in seeing a true solution being devised. But now, since I have just now installed the latest version of GRASS 6.1, I have come full circle and face this problem again. To provide a quick access to the background of what has already been said on this projection please note the previous emails below. I believe, at this time still, that the omerc projection and its parameters as used by proj cannot correctly describe or transform a omerc projection with a "natural origin". From what I understand, Hotine oblique mercator and Rectified Skew Orthomorphic are one and the same or depend on where the skew is corrected. Has there been a solution determined for this projection? If not, maybe a solution to this problem would be to have Proj have oblique mercators split between "natural origins" and cartesian center point origins. I hope, maybe, someone has been looking at this lately but I doubt it. Any comments or solutions would be very welcome. Thanks. Max Clever Gerald Evenden gerald.evenden at verizon.net Wed Dec 22 16:00:32 EST 2004 * Previous message: [Fwd: Re: [Proj] Re: The Michigan Georef Projection Problem] * Next message: [Proj] A problem with this list * Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] _____ Just to add my own two cents: the biggest problem with omerc is that there are no universal standards for specifying this projection. Indeed, Hotine may have had a specific method in mind but various uses have created their own systems and that's why there is 4 pages of description on the projection in the file omerc.pdf on: http://members.verizon.net/~vze2hc4d/proj4/ This applies to libproj4 but some applies to old proj4. _____________________________________ Jerry and the low riders: Daisy Mae and Joshua. "The whole religious complexion of the modern world is due to the absence from Jerusalem of a lunatic asylum." Havelock Ellis, 1914 Max - Thanks; I guess my concern is that it would be odd for proj to "misuse" this particular set of false easting and northing values, since it is known to correctly use such values in all sorts of cases. I just don't like accepting answers that appear to work "for whatever reason", and I will try to find time to look into this. I'm reminded of the last two chapters of Isaac Asimov's "Second Foundation". They're titled "The Answer that Satisfied", followed by "The Answer that was True"! - Ed Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 Phone: +1 978 251-4242 Fax: +1 978 251-1396 -----Original Message----- From: Clever, Max [mailto:Maxc at spicergroup.com ] Sent: Wednesday, December 22, 2004 1:21 PM To: Ed McNierney Cc: proj at xserve.flids.com Subject: RE: [Fwd: Re: [Proj] Re: The Michigan Georef Projection Problem] Ed, the False Northings and Eastings defined in the Original Michigan Georef EPSG file are the true parameters, but Proj does not handle them properly for whatever reason. The new Northings and Eastings that Melita provided make up for Proj's miscalculation, at least to a certain degree. The problems that proj had originally created SEEM to me to only be of a translational manner, other characteristics such as azimuths and distances were very close to what they should be. However, I have not looked at the code that Proj uses for this projection. So, all in all, I guess I would say that the problem with proj and this EPSG 102123 is not really fixed. But the new false Northing and Eastings that Melita provided will work for what I intend to do for now. I don't consider myself an expert on transformation algorithms, even though I've written a few before. All I know is what the epsg parameters stand for and that in this case, proj seems to be misusing them. Max Clever -----Original Message----- From: Ed McNierney [mailto:ed at topozone.com ] Sent: Tuesday, December 21, 2004 7:04 PM To: Clever, Max Subject: RE: [Fwd: Re: [Proj] Re: The Michigan Georef Projection Problem] Max - Yes, I saw that message - it just wasn't obvious what her changes were. So you're saying that the False Northing and False Easting values are incorrect, and that's it? So now we have to figure out WHY they're incorrect. The values shown below: +x_0=2546731.496 +y_0=-4354009.816 +x_0=499839.8337 +y_0=528600.2398 look completely different from one another. Why? I'm very concerned that if you don't really understand why this change "fixed" the problem, then it might not really fix it in the general case. - Ed -----Original Message----- From: Clever, Max [mailto:Maxc at spicergroup.com ] Sent: Tuesday, December 21, 2004 5:40 PM To: Ed McNierney Subject: RE: [Fwd: Re: [Proj] Re: The Michigan Georef Projection Problem] Ed, this is the message that Dylan forwarded me today. It solved my problem of trying to project data with UTM and Michigan State Plane coordinates onto a mapfile defined with the Michigan Georef Projection. It gets the image within about 0.5 meters of where it ought to be I think. Here's the message containing the parameters. Really the only thing that ought to be changed is the False Easting and False Northing, she rounded the latitude and longitude to not enough decimal places but if you use what she shows for that then its pretty close. -------- Original Message -------- Subject: Re: [Proj] Re: The Michigan Georef Projection Problem Date: Mon, 20 Dec 2004 12:39:54 -0800 (PST) From: Melita Kennedy [ESRI-Redlands] > Reply-To: Melita Kennedy [ESRI-Redlands] > To: gerald.evenden at verizon.net , mkennedy2 at earthlink.net , keon at nacse.org CC: mkennedy at esri.com Hi Dylan, Jerry, and Frank I'm not cc'ing to the list as I don't think I can post from this e-mail account. Dylan, feel free to post all or part of my reply on the list if you wish. I think I understand what's happening, although I'm bit confused because it means that the State Plane zone, Alaska zone 1, probably isn't working either. First off, here are a few test points from PROJ using this defn. proj +proj=omerc +lat_0=45.309166667 +lonc=-86.0 +alpha=337.255555556 +k=0.9996 +x_0=2546731.496 +y_0=-4354009.816 +ellps=GRS80 +datum=NAD83 +units=m 86W 43N 2546756.16 -4610501.20 86W 44N 2626908.90 -4498940.28 86W 45.309166667N 0.00 0.00 and now the results from the ESRI Projection Engine cymru{melita}: forward91 102123 Projection Engine Version 9.0 (Dec 15 2004) -86 43 -85 44 -86 45.309166667 499864.50 272108.86 580017.24 383669.77 499839.83 528600.24 Quite a difference, eh? Hotine, "Oblique Mercator", RSO, and whatever other names are in use confused me for quite a while. The ESRI Projection Engine now has 6 variants to try to support this map projection. Partially, that's because we've added different versions at different times as we've come to understand the projection better. Hotine 2 Pt Natural Origin Hotine 2 Point Center Hotine Azimuth Natural Origin Hotine Azimuth Center Rectified Skew Orthomorphic - Natural Origin Rectified Skew Orthomorphic - Center PROJ supports Two Point and Point/Azimuth cases. From what I'm seeing in the results and in the documentation, they are what ESRI calls the 'Center' cases. That is, the cartesian origin is located at the 'center' of the projection, lonc and lat_0. The ESRI Natural Origin cases have the cartesian origin where the central line crosses the aposphere. This is almost the ellipsoid's equator. Alaska zone 1 and Michigan GeoRef both use the natural origin case of Point/Azimuth. That's why they have such large negative false northings and large positive false eastings. The ESRI version (and the PROJ versions) also rectify the projection back to 'north'. The default proj setting is +no_rot (no rotation). The azimuth is used for the rectifying angle. Hmmm, I get different results if I use +no_rot versus when I omit it. So perhaps +no_rot is a rectifying angle of zero. The ESRI RSO implementation have the same Hotine parameters, plus a rectifying angle. Although I haven't tested it, I believe this is the same parameter as the +no_rot parameter. The standard RSO definitions must have this parameter set, as the rectifying angle is not the same as the azimuth. Snyder talks somewhat about this in a footnote in _Map Projections: A Working Manual_, but I (and the projection programmers here find the entire section to be difficult to follow. I think you can get the results you expect with these parameters: proj +proj=omerc +lat_0=45.309166667 +lonc=-86.0 +alpha=337.255555556 +k=0.9996 +x_0=499839.8337 +y_0=528600.2398 +ellps=GRS80 +datum=NAD83 +units=m Melita -- Melita Kennedy Product Specialist ESRI, Inc. mkennedy at esri.com -----Original Message----- From: Ed McNierney [mailto:ed at topozone.com ] Sent: Tuesday, December 21, 2004 1:20 PM To: Clever, Max; proj at xserve.flids.com Subject: RE: [Fwd: Re: [Proj] Re: The Michigan Georef Projection Problem] Max - I didn't have time to closely read Melita's email - what exactly was the correction? If the EPSG parameters for this projection are incorrect, we should get that reported and fixed. Thanks! - Ed Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 ed at topozone.com (978) 251-4242 -----Original Message----- From: proj-bounces at xserve.flids.com [mailto:proj-bounces at xserve.flids.com ] On Behalf Of Clever, Max Sent: Tuesday, December 21, 2004 1:23 PM To: proj at xserve.flids.com Subject: RE: [Fwd: Re: [Proj] Re: The Michigan Georef Projection Problem] Hello Everyone, I just wanted to say thanks to everybody for the fix of the EPSG. Melita, those new translational parameters worked great for what we are doing with Michigan Georef, thanks to everyone who put time into figuring out what was going wrong. This forum definitely has some collective brainpower. Happy Holidays Everyone -------------- next part -------------- An HTML attachment was scrubbed... URL: From szekerest at GMAIL.COM Sat Jul 15 16:21:32 2006 From: szekerest at GMAIL.COM (Tamas Szekeres) Date: Sun, 16 Jul 2006 01:21:32 +0200 Subject: Mapscript CSharp (C#) Memory Leak? In-Reply-To: <00e501c6a697$42cad760$650ba8c0@dld410> Message-ID: David, I have been testing your project and found the similar problems with your mapscript binaries, however found no problem using the CVS-HEAD mapscript binaries. This issue may be dedicated to the following bug: http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=1743 was also fixed in the current (4.8.4) release. Best Regards, Tamas Szekeres 2006/7/13, David Lowther : > > > > > Hello All, > > > > I've been toying with the mapscript_csharp.dll in VS2005 and cannot even > begin to tell you how thrilled I am to have it. Thanks SO much. > > > > I've encountered what I think might be a memory leak. > > > > The exception text that I get is below and the entire source code of the > application is available at: > http://www.coordinatesolutions.com/download/mapservertestvb.zip > > > > I get the exception after choosing ID from the drop down and clicking the > map 15 times (why 15, I have no idea). When running the code from VS2005 the > exception occurs at different places. > > > > Any ideas? > > > > David Lowther > > > > Coordinate Solutions, Inc. > > 501 N.E. 15th Street > > Oklahoma City, OK 73104 > > 405.246.9396 (Voice) > > 405.227.0781 (Fax) > > www.coordinatesolutions.com > > > > > See the end of this message for details on invoking > > just-in-time (JIT) debugging instead of this dialog box. > > > > ************** Exception Text ************** > > System.AccessViolationException: Attempted to read or write protected > memory. This is often an indication that other memory is corrupt. > > at mapscriptPINVOKE.new_pointObj(Double jarg1, Double jarg2, Double > jarg3, Double jarg4) > > at pointObj..ctor(Double x, Double y, Double z, Double m) > > at MapserverTestVB.Form1.Pixel2Geo(pointObj pt) in > D:\Develop\MapserverTestVB\MapserverTestVB\Form1.vb:line > 188 > > at MapserverTestVB.Form1.ID(pointObj ClickPt) in > D:\Develop\MapserverTestVB\MapserverTestVB\Form1.vb:line > 109 > > at MapserverTestVB.Form1.PictureBox1_MouseUp(Object > sender, MouseEventArgs e) in > D:\Develop\MapserverTestVB\MapserverTestVB\Form1.vb:line 97 > > at System.Windows.Forms.Control.OnMouseUp(MouseEventArgs > e) > > at System.Windows.Forms.Control.WmMouseUp(Message& m, > MouseButtons button, Int32 clicks) > > at System.Windows.Forms.Control.WndProc(Message& m) > > at > System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& > m) > > at > System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& > m) > > at System.Windows.Forms.NativeWindow.Callback(IntPtr > hWnd, Int32 msg, IntPtr wparam, IntPtr lparam) > > > > > > ************** Loaded Assemblies ************** > > mscorlib > > Assembly Version: 2.0.0.0 > > Win32 Version: 2.0.50727.42 (RTM.050727-4200) > > CodeBase: > file:///C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll > > ---------------------------------------- > > MapserverTestVB > > Assembly Version: 1.0.0.0 > > Win32 Version: 1.0.0.0 > > CodeBase: > file:///D:/Develop/MapserverTestVB/MapserverTestVB/bin/Debug/MapserverTestVB.exe > > ---------------------------------------- > > Microsoft.VisualBasic > > Assembly Version: 8.0.0.0 > > Win32 Version: 8.0.50727.42 (RTM.050727-4200) > > CodeBase: > file:///C:/WINDOWS/assembly/GAC_MSIL/Microsoft.VisualBasic/8.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualBasic.dll > > ---------------------------------------- > > System > > Assembly Version: 2.0.0.0 > > Win32 Version: 2.0.50727.42 (RTM.050727-4200) > > CodeBase: > file:///C:/WINDOWS/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll > > ---------------------------------------- > > System.Windows.Forms > > Assembly Version: 2.0.0.0 > > Win32 Version: 2.0.50727.42 (RTM.050727-4200) > > CodeBase: > file:///C:/WINDOWS/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll > > ---------------------------------------- > > System.Drawing > > Assembly Version: 2.0.0.0 > > Win32 Version: 2.0.50727.42 (RTM.050727-4200) > > CodeBase: > file:///C:/WINDOWS/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll > > ---------------------------------------- > > System.Configuration > > Assembly Version: 2.0.0.0 > > Win32 Version: 2.0.50727.42 (RTM.050727-4200) > > CodeBase: > file:///C:/WINDOWS/assembly/GAC_MSIL/System.Configuration/2.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll > > ---------------------------------------- > > System.Xml > > Assembly Version: 2.0.0.0 > > Win32 Version: 2.0.50727.42 (RTM.050727-4200) > > CodeBase: > file:///C:/WINDOWS/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll > > ---------------------------------------- > > System.Runtime.Remoting > > Assembly Version: 2.0.0.0 > > Win32 Version: 2.0.50727.42 (RTM.050727-4200) > > CodeBase: > file:///C:/WINDOWS/assembly/GAC_MSIL/System.Runtime.Remoting/2.0.0.0__b77a5c561934e089/System.Runtime.Remoting.dll > > ---------------------------------------- > > mapscript_csharp > > Assembly Version: 0.0.0.0 > > Win32 Version: 0.0.0.0 > > CodeBase: > file:///D:/Develop/MapserverTestVB/MapserverTestVB/bin/Debug/mapscript_csharp.DLL > > ---------------------------------------- > > > > ************** JIT Debugging ************** > > To enable just-in-time (JIT) debugging, the .config file for this > > application or computer (machine.config) must have the > > jitDebugging value set in the system.windows.forms section. > > The application must also be compiled with debugging > > enabled. > > > > For example: > > > > > > > > > > > > When JIT debugging is enabled, any unhandled exception > > will be sent to the JIT debugger registered on the computer > > rather than be handled by this dialog box. > > > > > > > > > > From denis.nadeau at GMAIL.COM Sat Jul 15 19:08:59 2006 From: denis.nadeau at GMAIL.COM (Denis Nadeau) Date: Sat, 15 Jul 2006 22:08:59 -0400 Subject: SWF movie from RASTER Layers In-Reply-To: <00a801c6a723$1eee1050$0601a8c0@isf> Message-ID: Hi Isaac, Could you provide me with a good ActionScript language tutoriak or simple ActionScript code. I do not have MicroFlash Media, but I do have Ming library. What would be the .swf mother application? Thanks again, Denis 2006/7/14, Isaac Sunyer : > > Dear Denis, > > If you have Flash program it should be "easy" to do a "movie" using > ActionScript language. > > In that case, i recomend you to output raster layers as .jpg and load all > .jpg's in a .swf mother application. > > You can combine loadMovieClip and setInterval functions an onLoad event in > .swf mother aplication. > > If you don't know ActionScript we can help you to do that. > > ------------------------------------------------------ > Isaac Sunyer Ferrer > http://www.web-maps.net > Spain > > ----- Original Message ----- > From: "Blaise" > To: > Sent: Thursday, July 13, 2006 11:21 PM > Subject: Re: [UMN_MAPSERVER-USERS] SWF movie from RASTER Layers > > > Le Mardi 11 Juillet 2006 17:15, Denis Nadeau a ?crit : > > Hi, > > > > Would somebody know how to create a SWF movie from a list RASTER Layers? > > > > I want a SWF file that will loop indefinitely on all my RASTER Layers > > using > > TILEINDEX. I was able to create all the SWF layers from my RASTER > layers, > > but I don't know how to "play" them to get a little movie. > > > > What I want to do is to track a hurricane. > > > > Regards, > > Denis > > Hi Denis > You should be able to do that with ming : > http://ming.sourceforge.net/ > Regards > Blaise > > > -- > No virus found in this incoming message. > Checked by AVG Free Edition. > Version: 7.1.394 / Virus Database: 268.10.0/388 - Release Date: 13/07/2006 > -------------- next part -------------- An HTML attachment was scrubbed... URL: From pcreso at PCRESO.COM Sat Jul 15 20:58:10 2006 From: pcreso at PCRESO.COM (Brent Wood) Date: Sat, 15 Jul 2006 20:58:10 -0700 Subject: help needed getting WMS server working with mapserver In-Reply-To: <44B1000E.8070802@swoodbridge.com> Message-ID: Hi.... I've been wrestling with this for a while now, I've no idea why it doesn't work... I'm trying to get cgi mapserver working as a WMS server which is accessible via cgi mapserver or mapscript & a mapfile. So far I have a WMS enabled cgi mapserver which is able to generate a map/image OK with wget, curl & other WMS clients such as QGIS. It also works in http://wms.iter.dk/default.aspx I am totally unable to get it to work as a layer in a mapserver mapfile, which should, as I understand it, be reasonably straightforward. If anyone can let me know why it doesn't work, or how to make it work I'd be very grateful..... I'm running a locally compiled mapserver 64bit SUSE 9.3 (it works fine with everything else I've tried, just not with a mapserver client) Hopefully there is enough info below to identify the problem, either in the mapfile defining the WMS layer or in my mapfile which is trying to access it. I guess the problem is with the atlas_client.map mapfile, but have included other info as well... Thanks, Brent Wood The error message I get when accessing the WMS layer is: msDrawMap(): WMS connection error. Failed to draw WMS layer named 'wms_w'. This most likely happened because the remote WMS server returned an invalid image, and XML exception or another unexpected result in response to the GetMap request. Also check and make sure that the layer's connection URL is valid. I'm confused because it seem to work with other clients OK. mapserver version etc info: baw at SUSE93:/data> /srv/www/cgi-bin/mapserv -v MapServer version 4.6.1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WFS_SERVER SUPPORTS=WCS_SERVER INPUT=EPPL7 INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE the mapfile providing the WMS server is at: http://203.97.249.147/map_nz/atlas.map my mapfile (on the same box) accessing this as a WMS layer is (uses a local IP address for the WMS server): http://203.97.249.147/map_nz/atlas_client.map A one line curl command to retrieve the jpg map via WMS is: curl "http://203.97.249.147/cgi-bin/mapserv?map=/srv/www/htdocs/map_nz/atlas.map&request=GetMap&service=WMS&layers=w_topo&version=1.1.1&srs=EPSG:4326&bbox=0,-90,360,90&format=image/jpeg&width=400&height=400&style=" > test.jpg or via a browser, just enter this URL: http://203.97.249.147/cgi-bin/mapserv?map=/srv/www/htdocs/map_nz/atlas.map&request=GetMap&service=WMS&layers=w_topo&version=1.1.1&srs=EPSG:4326&bbox=0,-90,360,90&format=image/jpeg&width=400&height=400&style= This URL returns the WMS capabilities document fine, as far as I can tell: http://203.97.249.147/cgi-bin/mapserv?map=/srv/www/htdocs/map_nz/atlas.map&SERVICE=WMS&REQUEST=GetCapabilities From ruckc at YAHOO.COM Sat Jul 15 23:11:51 2006 From: ruckc at YAHOO.COM (Curtis W. Ruck) Date: Sat, 15 Jul 2006 23:11:51 -0700 Subject: User Authentication via WMS/WFS? Message-ID: Is there a way to force user authentication through WMS/WFS in mapserver? -------------- next part -------------- An HTML attachment was scrubbed... URL: From bpicinbono at WORLDONLINE.FR Sun Jul 16 09:09:02 2006 From: bpicinbono at WORLDONLINE.FR (Blaise) Date: Sun, 16 Jul 2006 18:09:02 +0200 Subject: SWF movie from RASTER Layers In-Reply-To: <304163b00607151908k686ea8b9w2b471e0c5c06b87b@mail.gmail.com> Message-ID: Why not use Ming if you have it ? Have a look at the "slideshow 2.0" in the "image" section on this page : http://www16.brinkster.com/gazb/ming/index.html It seems that it does what you are looking for. Blaise Le Dimanche 16 Juillet 2006 04:08, Denis Nadeau a ?crit?: > Hi Isaac, > > Could you provide me with a good ActionScript language tutoriak or simple > ActionScript code. I do not have MicroFlash Media, but I do have Ming > library. > > What would be the .swf mother application? > > Thanks again, > Denis > > 2006/7/14, Isaac Sunyer : > > Dear Denis, > > > > If you have Flash program it should be "easy" to do a "movie" using > > ActionScript language. > > > > In that case, i recomend you to output raster layers as .jpg and load all > > .jpg's in a .swf mother application. > > > > You can combine loadMovieClip and setInterval functions an onLoad event > > in .swf mother aplication. > > > > If you don't know ActionScript we can help you to do that. > > > > ------------------------------------------------------ > > Isaac Sunyer Ferrer > > http://www.web-maps.net > > Spain > > > > ----- Original Message ----- > > From: "Blaise" > > To: > > Sent: Thursday, July 13, 2006 11:21 PM > > Subject: Re: [UMN_MAPSERVER-USERS] SWF movie from RASTER Layers > > > > Le Mardi 11 Juillet 2006 17:15, Denis Nadeau a ?crit : > > > Hi, > > > > > > Would somebody know how to create a SWF movie from a list RASTER > > > Layers? > > > > > > I want a SWF file that will loop indefinitely on all my RASTER Layers > > > using > > > TILEINDEX. I was able to create all the SWF layers from my RASTER > > > > layers, > > > > > but I don't know how to "play" them to get a little movie. > > > > > > What I want to do is to track a hurricane. > > > > > > Regards, > > > Denis > > > > Hi Denis > > You should be able to do that with ming : > > http://ming.sourceforge.net/ > > Regards > > Blaise > > > > > > -- > > No virus found in this incoming message. > > Checked by AVG Free Edition. > > Version: 7.1.394 / Virus Database: 268.10.0/388 - Release Date: > > 13/07/2006 From tylermitchell at SHAW.CA Sun Jul 16 09:55:25 2006 From: tylermitchell at SHAW.CA (Tyler Mitchell) Date: Sun, 16 Jul 2006 09:55:25 -0700 Subject: User Authentication via WMS/WFS? In-Reply-To: <20060716061151.60398.qmail@web32201.mail.mud.yahoo.com> Message-ID: On 15-Jul-06, at 11:11 PM, Curtis W. Ruck wrote: > Is there a way to force user authentication through WMS/WFS in > mapserver? Hi Curtis, I'm no pro, but it because WMS/WFS requests use simple http protocols - you should be able to use 'normal' web server access control settings. Good luck, Tyler -------------- next part -------------- An HTML attachment was scrubbed... URL: From arndw at WTAL.DE Sun Jul 16 13:03:06 2006 From: arndw at WTAL.DE (Arnd Wippermann) Date: Sun, 16 Jul 2006 22:03:06 +0200 Subject: AW: [UMN_MAPSERVER-USERS] User Authentication via WMS/WFS? In-Reply-To: <20060716061151.60398.qmail@web32201.mail.mud.yahoo.com> Message-ID: Hello, No. The only thing I heard, that you wrap the request in a special security protocol. But that means, that the server and the clients have to use a special program. Mit freundlichen Gr?ssen Arnd Wippermann http://gis.ibbeck.de/pinguinale/ _____ Von: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] Im Auftrag von Curtis W. Ruck Gesendet: Sonntag, 16. Juli 2006 08:12 An: MAPSERVER-USERS at LISTS.UMN.EDU Betreff: [UMN_MAPSERVER-USERS] User Authentication via WMS/WFS? Is there a way to force user authentication through WMS/WFS in mapserver? -------------- next part -------------- An HTML attachment was scrubbed... URL: From siukola.antti at GMAIL.COM Mon Jul 17 01:36:44 2006 From: siukola.antti at GMAIL.COM (antti siukola) Date: Mon, 17 Jul 2006 11:36:44 +0300 Subject: Mapserver compile error Message-ID: Hi! I'm compiling the most recent MapServer and I get this OGR related error on make: ./libmap.a(mapogr.o): In function `msOGRFileWhichShapes(layer_obj*, rectObj, ms_ogr_file_info_t*)':mapogr.cpp:(.text+0x38e): undefined reference to `OGRLineString::setPoint(int, double, double)' :mapogr.cpp:(.text+0x3ac): undefined reference to `OGRLineString::setPoint(int, double, double)' :mapogr.cpp:(.text+0x3ca): undefined reference to `OGRLineString::setPoint(int, double, double)' :mapogr.cpp:(.text+0x3e8): undefined reference to `OGRLineString::setPoint(int, double, double)' :mapogr.cpp:(.text+0x406): undefined reference to `OGRLineString::setPoint(int, double, double)' ./libmap.a(mapogr.o): In function `msOGRShapeToWKT':mapogr.cpp:(.text+0xa15): undefined reference to `OGR_G_SetPoint_2D' :mapogr.cpp:(.text+0xa65): undefined reference to `OGR_G_AddPoint_2D' :mapogr.cpp:(.text+0xaf1): undefined reference to `OGR_G_AddPoint_2D' collect2: ld returned 1 exit status make: *** [shp2img] Error 1 I found some info from mailing list archive: "This generally means you have two copies of GDAL/OGR on your system. MapServer is getting built using the include files from one, but linked against the libraries of another. I would suggest you try and strip the older GDAL/OGR off completely, or muck around with the MapServer makefile to ensure that only one version is getting used consistently. Basically fiddling with the order of -I include directives and -L library paths." -Frank Warmerdam, warmerdam at pobox.com So I ran make clean on gdal and recompiled it and then tried to compile mapserver but got the same error again. Regards, Antti S From proxiroxp at YAHOO.GR Mon Jul 17 03:13:59 2006 From: proxiroxp at YAHOO.GR (K S) Date: Mon, 17 Jul 2006 11:13:59 +0100 Subject: Greek labels Message-ID: Hello everyone, I try to display greek characters in mapserver's labels but i can't. Can anyone help? --------------------------------- ?????????????? Yahoo! ?????????? ?? ?????????? ???? ???? (spam); ?? Yahoo! Mail ???????? ??? ???????? ?????? ????????? ???? ??? ??????????? ????????? http://login.yahoo.com/config/mail?.intl=gr -------------- next part -------------- An HTML attachment was scrubbed... URL: From siukola.antti at GMAIL.COM Mon Jul 17 03:28:50 2006 From: siukola.antti at GMAIL.COM (antti siukola) Date: Mon, 17 Jul 2006 13:28:50 +0300 Subject: Mapserver compile error In-Reply-To: Message-ID: Reply to myself I got it to work after removing gdal packages that I was installed from Ubuntus repository since they were the duplicates with my manually installed gdal. So, after that I recompiled gdal manually and compiled mapserver and copied the php_mapscript.so to the php extension directory but then I get this error: Warning: dl() [function.dl]: Unable to load dynamic library '/usr/lib/php5/20041030/php_mapscript.so' - libgdal.so.1: cannot open shared object file: No such file or directory What now? Regards, Antti S On 7/17/06, antti siukola wrote: > Hi! > > I'm compiling the most recent MapServer and I get this OGR related > error on make: > > ./libmap.a(mapogr.o): In function `msOGRFileWhichShapes(layer_obj*, > rectObj, ms_ogr_file_info_t*)':mapogr.cpp:(.text+0x38e): undefined > reference to `OGRLineString::setPoint(int, double, double)' > :mapogr.cpp:(.text+0x3ac): undefined reference to > `OGRLineString::setPoint(int, double, double)' > :mapogr.cpp:(.text+0x3ca): undefined reference to > `OGRLineString::setPoint(int, double, double)' > :mapogr.cpp:(.text+0x3e8): undefined reference to > `OGRLineString::setPoint(int, double, double)' > :mapogr.cpp:(.text+0x406): undefined reference to > `OGRLineString::setPoint(int, double, double)' > ./libmap.a(mapogr.o): In function > `msOGRShapeToWKT':mapogr.cpp:(.text+0xa15): undefined reference to > `OGR_G_SetPoint_2D' > :mapogr.cpp:(.text+0xa65): undefined reference to `OGR_G_AddPoint_2D' > :mapogr.cpp:(.text+0xaf1): undefined reference to `OGR_G_AddPoint_2D' > collect2: ld returned 1 exit status > make: *** [shp2img] Error 1 > > I found some info from mailing list archive: > > "This generally means you have two copies of GDAL/OGR on your system. > MapServer is getting built using the include files from one, but linked > against the libraries of another. I would suggest you try and strip the > older GDAL/OGR off completely, or muck around with the MapServer makefile > to ensure that only one version is getting used consistently. Basically > fiddling with the order of -I include directives and -L library > paths." -Frank Warmerdam, warmerdam at pobox.com > > So I ran make clean on gdal and recompiled it and then tried to > compile mapserver but got the same error again. > > Regards, > > Antti S > From Jukka.Rahkonen at MMMTIKE.FI Mon Jul 17 04:56:35 2006 From: Jukka.Rahkonen at MMMTIKE.FI (Rahkonen Jukka) Date: Mon, 17 Jul 2006 14:56:35 +0300 Subject: help needed getting WMS server working with mapserver Message-ID: Hi, I am not shure, but shouldn't there be "supports WMS_CLIENT" as well? Maybe you could check that first? Regards, -Jukka Rahkonen- -----Original Message----- From: UMN MapServer Users List on behalf of Brent Wood Sent: Sun 16.7.2006 6:58 To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] help needed getting WMS server working with mapserver Hi.... I've been wrestling with this for a while now, I've no idea why it doesn't work... I'm trying to get cgi mapserver working as a WMS server which is accessible via cgi mapserver or mapscript & a mapfile. So far I have a WMS enabled cgi mapserver which is able to generate a map/image OK with wget, curl & other WMS clients such as QGIS. It also works in http://wms.iter.dk/default.aspx I am totally unable to get it to work as a layer in a mapserver mapfile, which should, as I understand it, be reasonably straightforward. If anyone can let me know why it doesn't work, or how to make it work I'd be very grateful..... I'm running a locally compiled mapserver 64bit SUSE 9.3 (it works fine with everything else I've tried, just not with a mapserver client) Hopefully there is enough info below to identify the problem, either in the mapfile defining the WMS layer or in my mapfile which is trying to access it. I guess the problem is with the atlas_client.map mapfile, but have included other info as well... Thanks, Brent Wood The error message I get when accessing the WMS layer is: msDrawMap(): WMS connection error. Failed to draw WMS layer named 'wms_w'. This most likely happened because the remote WMS server returned an invalid image, and XML exception or another unexpected result in response to the GetMap request. Also check and make sure that the layer's connection URL is valid. I'm confused because it seem to work with other clients OK. mapserver version etc info: baw at SUSE93:/data> /srv/www/cgi-bin/mapserv -v MapServer version 4.6.1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WFS_SERVER SUPPORTS=WCS_SERVER INPUT=EPPL7 INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE the mapfile providing the WMS server is at: http://203.97.249.147/map_nz/atlas.map my mapfile (on the same box) accessing this as a WMS layer is (uses a local IP address for the WMS server): http://203.97.249.147/map_nz/atlas_client.map A one line curl command to retrieve the jpg map via WMS is: curl "http://203.97.249.147/cgi-bin/mapserv?map=/srv/www/htdocs/map_nz/atlas.map&request=GetMap&service=WMS&layers=w_topo&version=1.1.1&srs=EPSG:4326&bbox=0,-90,360,90&format=image/jpeg&width=400&height=400&style=" > test.jpg or via a browser, just enter this URL: http://203.97.249.147/cgi-bin/mapserv?map=/srv/www/htdocs/map_nz/atlas.map&request=GetMap&service=WMS&layers=w_topo&version=1.1.1&srs=EPSG:4326&bbox=0,-90,360,90&format=image/jpeg&width=400&height=400&style= This URL returns the WMS capabilities document fine, as far as I can tell: http://203.97.249.147/cgi-bin/mapserv?map=/srv/www/htdocs/map_nz/atlas.map&SERVICE=WMS&REQUEST=GetCapabilities From vulukut at TESCILTURK.COM Mon Jul 17 05:46:41 2006 From: vulukut at TESCILTURK.COM (Volkan Ulukut) Date: Mon, 17 Jul 2006 15:46:41 +0300 Subject: Greek labels In-Reply-To: <20060717101359.4758.qmail@web25513.mail.ukl.yahoo.com> Message-ID: I'm using this for turkish characters : ENCODING "ISO-8859-9" In the appropriate label attribute, it works. _____ From: K S [mailto:proxiroxp at YAHOO.GR] Sent: Monday, July 17, 2006 1:14 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Greek labels Hello everyone, I try to display greek characters in mapserver's labels but i can't. Can anyone help? _____ ?????????????? Yahoo! ?????????? ?? ?????????? ???? ???? (spam); ?? Yahoo! Mail ???????? ??? ???????? ?????? ????????? ???? ??? ??????????? ????????? http://login.yahoo.com/config/mail?.intl=gr -------------- next part -------------- An HTML attachment was scrubbed... URL: From fsimon at UNIVALI.BR Mon Jul 17 05:46:56 2006 From: fsimon at UNIVALI.BR (Fernando Simon) Date: Mon, 17 Jul 2006 09:46:56 -0300 Subject: R: [UMN_MAPSERVER-USERS] Performance improvement In-Reply-To: <00b501c6a74f$6a41ccf0$5d00a8c0@aiandolo> Message-ID: Hi Antonio, Maybe this time delay is relate with Oracle connection cost (login/logout), if you are using small extents, that don't cover all your data, to use FILTER instead of NONE. For the SRID, the unique issue is that Oracle server will use more CPU (cpu cost) to process and correct the extents of the query to apply for your coordinate system. About the SRID you can try to define another (not geodetic) that is good for your place. Geodetic are the SRID's between 8192 and 8330 and equal 2. You can check the SRID's in the "mdsys.cs_srs" table for all that you can define. I used this sql to return all the SRID's that you can check and that are closer (can have the same parameter) than your 8307: select cs_name, srid , wktext FROM mdsys.cs_srs WHERE wktext like('%WGS 84%') and (srid < 8192 or srid > 8330) and wktext not like('%UTM%'); Your SRID is: CS_NAME -------------------------------------------------------------------- WKTEXT -------------------------------------------------------------------------------- Longitude / Latitude (WGS 84) GEOGCS [ "Longitude / Latitude (WGS 84)", DATUM ["WGS 84", SPHEROID ["WGS 84", 6378137, 298.257223563]], PRIMEM [ "Greenwich", 0.000000 ], UNIT ["Decimal Degree", 0.01745329251994330]] Maybe the SRID's 32771 or 1 can be used instead of 8307. But you need to analyze what of the options is the best for you case. Best regards. ------------------------------------------------------------------------ Fernando Simon Mapserver and Oracle Spatial developer G10 - Laboratorio de Computacao Aplicada - Brazil http://www.univali.br/g10 - UNIVALI/CTTMAR ------------------------------------------------------------------------ Antonio Iandolo wrote: > Hi Fernando, > thanks for your answer. > > I knew that the "NONE" clause wouldn't have been a good idea (the > executed query in msOracleSpatialLayerWhichShapes doesn't include any > spatial filter) but it actually is roughly the same: > > 1) "DATA GEOM FROM EDIFICI USING SRID 8307 NONE": about 8.522 seconds > 2) "DATA GEOM FROM EDIFICI USING SRID 8307 FILTER": about 9.176 seconds > 3) "DATA GEOM FROM EDIFICI USING SRID 8307 NONE VERSION 10g": about > 8.594 seconds > 4) "DATA GEOM FROM (SELECT GEOM FROM EDIFICI) USING SRID 8307 NONE": > about 8.115 seconds > > Moreover I'm using an SRID 8307 since that's my data's coordinate system > (is there a way to permanently "translate" my data in order to "cut" > this overhead?) > > Anyway this is my actual layer in the mapfile: > > LAYER > NAME "Edifici" > STATUS DEFAULT > DATA "GEOM FROM EDIFICI USING SRID 8307 NONE" > TYPE POLYGON > CONNECTIONTYPE ORACLESPATIAL > CONNECTION "XAFFADM/XAFF" > MAXSCALE 945248462 > CLASS > NAME "myclass" > STYLE > SYMBOL 4 > COLOR 131 0 0 > OUTLINECOLOR 0 0 0 > SIZE 2 > MINSIZE 2 > MAXSIZE 2 > ANTIALIAS TRUE > END > END > END > > Any other suggestion/hint? > > Regards, > Antonio > > > > >> -----Messaggio originale----- >> Da: UMN MapServer Users List >> [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] Per conto di Fernando Simon >> Inviato: venerd? 14 luglio 2006 13.38 >> A: MAPSERVER-USERS at LISTS.UMN.EDU >> Oggetto: Re: [UMN_MAPSERVER-USERS] Performance improvement >> >> >> Hi Antonio, >> This issue is relate with your DATA definition. You are using >> NONE token, and it's indicate for Mapserver Oracle driver to >> don't use any spatial filter or spatial operator (SDO_FILTER >> or SDO_REALTE). Even that you are in a little extent that >> just contains 100 records, the NONE force to load all the >> 60.000 records in your case. Another point, are you using a >> geodetic SRID? If yes the Oracle use more internal >> mathematical functions to process the request. I suggest to >> change NONE to FILTER in you layer definition to test the >> performance. What is it the results when you change for >> FILTER? You can try to rebuild your index too. Best regards. >> >> -------------------------------------------------------------- >> ---------- >> Fernando Simon >> Mapserver and Oracle Spatial developer >> G10 - Laboratorio de Computacao Aplicada - Brazil >> > http://www.univali.br/g10 - UNIVALI/CTTMAR > ------------------------------------------------------------------------ > > > Antonio Iandolo wrote: > >> Hi all, >> I've set up MapServer with a 4 layers map on an Oracle10g database >> thru a native connection (not OGR). >> >> The largest layer (which takes about 40% of the total time) is a >> polygon type of about 60,000 records (with a spatial index on the geom >> > > >> column) which isn't involved in any queryBy* php_mapscript function >> (only >> $map->setExtent) and has this DATA definition: >> DATA "GEOM FROM MYLAYER USING SRID 8307 NONE" >> >> >> The whole page takes about 9-11 seconds to be rendered, while the same >> > > >> php script (exactly the same, except for the mapfile), when >> interfacing ESRI shapefiles, (Oracle data come from ESRI thru >> shp2sdo.exe utility) takes less than 4 seconds in total... >> >> The most of time (about 80-90%) is taken by the $map->draw() method, >> where I supose it applies the spatial filter to determine which shapes >> > > >> are to be rendered... >> >> How could I improve these performance? Any suggestion/hint to check >> any bottleneck? >> >> My environment is: >> - Pentium 4 - 1.8GHz - 512MB RAM >> - Windows XP Professional SP1 >> - Apache 2.0.55 >> - MapServer 4.8.3 >> - php 4.4.3-dev (MS4W 1.5.3) >> - php_mapscript_48.dll >> - Oracle10g (XE) >> >> Thanks in advance, >> Antonio >> >> >> > > From David.Fawcett at STATE.MN.US Mon Jul 17 05:57:30 2006 From: David.Fawcett at STATE.MN.US (Fawcett, David) Date: Mon, 17 Jul 2006 07:57:30 -0500 Subject: help needed getting WMS server working with mapserver In-Reply-To: A<20060716035810.88215.qmail@web33203.mail.mud.yahoo.com> Message-ID: Brent, I don't see SUPPORTS=WMS_CLIENT in your version output string. David. -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Brent Wood Sent: Saturday, July 15, 2006 10:58 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] help needed getting WMS server working with mapserver Hi.... I've been wrestling with this for a while now, I've no idea why it doesn't work... I'm trying to get cgi mapserver working as a WMS server which is accessible via cgi mapserver or mapscript & a mapfile. So far I have a WMS enabled cgi mapserver which is able to generate a map/image OK with wget, curl & other WMS clients such as QGIS. It also works in http://wms.iter.dk/default.aspx I am totally unable to get it to work as a layer in a mapserver mapfile, which should, as I understand it, be reasonably straightforward. If anyone can let me know why it doesn't work, or how to make it work I'd be very grateful..... I'm running a locally compiled mapserver 64bit SUSE 9.3 (it works fine with everything else I've tried, just not with a mapserver client) Hopefully there is enough info below to identify the problem, either in the mapfile defining the WMS layer or in my mapfile which is trying to access it. I guess the problem is with the atlas_client.map mapfile, but have included other info as well... Thanks, Brent Wood The error message I get when accessing the WMS layer is: msDrawMap(): WMS connection error. Failed to draw WMS layer named 'wms_w'. This most likely happened because the remote WMS server returned an invalid image, and XML exception or another unexpected result in response to the GetMap request. Also check and make sure that the layer's connection URL is valid. I'm confused because it seem to work with other clients OK. mapserver version etc info: baw at SUSE93:/data> /srv/www/cgi-bin/mapserv -v MapServer version 4.6.1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WFS_SERVER SUPPORTS=WCS_SERVER INPUT=EPPL7 INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE the mapfile providing the WMS server is at: http://203.97.249.147/map_nz/atlas.map my mapfile (on the same box) accessing this as a WMS layer is (uses a local IP address for the WMS server): http://203.97.249.147/map_nz/atlas_client.map A one line curl command to retrieve the jpg map via WMS is: curl "http://203.97.249.147/cgi-bin/mapserv?map=/srv/www/htdocs/map_nz/atlas. map&request=GetMap&service=WMS&layers=w_topo&version=1.1.1&srs=EPSG:4326 &bbox=0,-90,360,90&format=image/jpeg&width=400&height=400&style=" > test.jpg or via a browser, just enter this URL: http://203.97.249.147/cgi-bin/mapserv?map=/srv/www/htdocs/map_nz/atlas.m ap&request=GetMap&service=WMS&layers=w_topo&version=1.1.1&srs=EPSG:4326& bbox=0,-90,360,90&format=image/jpeg&width=400&height=400&style= This URL returns the WMS capabilities document fine, as far as I can tell: http://203.97.249.147/cgi-bin/mapserv?map=/srv/www/htdocs/map_nz/atlas.m ap&SERVICE=WMS&REQUEST=GetCapabilities From cobra13 at GMAIL.COM Mon Jul 17 06:48:22 2006 From: cobra13 at GMAIL.COM (Thibaut Le Pape) Date: Mon, 17 Jul 2006 15:48:22 +0200 Subject: mapserver with oraclespatial 9i Message-ID: Hello Everyone, Does someone has compiled mapserver 4.8.1 with oracle spatial and have the php_mapscript.dll on windows xp? I really need all the files for my work and I don't succeed in compiling it by myself. Thanx Thibaut. -------------- next part -------------- An HTML attachment was scrubbed... URL: From C.Wilmes at GMX.DE Mon Jul 17 07:13:02 2006 From: C.Wilmes at GMX.DE (Christian Wilmes) Date: Mon, 17 Jul 2006 16:13:02 +0200 Subject: CSharp-Mapscript: setSymbolSet doesn't work?! Message-ID: Hi All, I try to display a WFS-Layer with my application but I got only small points instead of the symbol in my Symbolset. My Symbolset looks like that: SYMBOLSET SYMBOL NAME "Fahne" TYPE VECTOR FILLED TRUE POINTS 1 5 1 3 3 2 1 1 1 3 END END END Some Code from the application: mapObj myMap = new mapObj(""); myMapHandler.Map.setSymbolSet(Environment.CurrentDirectory + @"\test.sym"); : layerObj myLayer = new layerObj(null); myLayer.name = "RosoftWFS"; myLayer.Type = MS_LAYER_TYPE.MS_LAYER_POINT; myLayer.Connectiontype = MS_CONNECTION_TYPE.MS_WFS; myLayer.Connection = "http://localhost/cgi-bin/mapserv.exe?"; myLayer.metadata.set("wfs_typename", "myWFS"); myLayer.metadata.set("wfs_version","1.0.0"); myLayer.metadata.set("wfs_request_method", "GET"); myLayer.metadata.set("wfs_service", "WFS"); myLayer.setProjection("EPSG:31467"); classObj c = new classObj(myLayer); c.name = "test"; styleObj style = new styleObj(c); style.symbolname = "Fahne"; style.size = 150; style.color = new colorObj(255, 0, 255, 0); : myMap.insertLayer(myLayer, -1); Does anybody have an idea where to find the mistake? Best Regards Christian -- "Feel free" ? 10 GB Mailbox, 100 FreeSMS/Monat ... Jetzt GMX TopMail testen: http://www.gmx.net/de/go/topmail From bart_doggers at YAHOO.COM Mon Jul 17 06:50:52 2006 From: bart_doggers at YAHOO.COM (Albert Anderson) Date: Mon, 17 Jul 2006 06:50:52 -0700 Subject: Working with adding layers to a projection file Message-ID: Hi All, I am having problems getting my layers to work with my projection file. I got everything coded right I think. My projection shows up but my layers that I created dont. What steps do I need to take? Thanks, Albert --------------------------------- Yahoo! Messenger with Voice. Make PC-to-Phone Calls to the US (and 30+ countries) for 2?/min or less. -------------- next part -------------- An HTML attachment was scrubbed... URL: From Debbie.Pagurek at EC.GC.CA Mon Jul 17 07:58:31 2006 From: Debbie.Pagurek at EC.GC.CA (Pagurek,Debbie [NCR]) Date: Mon, 17 Jul 2006 10:58:31 -0400 Subject: cant get my lavyers working w/my projection file Message-ID: perhaps you could provide a bit more information to us. What is the native projection of the roads, boundary line, and etc... layers? If it isn't in the same projection as specified in your MAP object, PROJECTION "init=epsg:26914" END then you also need to specify the projection in the layer object. you also might want to try to put STATUS DEFAULT for the roads, boundary etc and that way they will ALWAYS be ON. If status is set to ON you have to make sure that your URL specifies layers=layername in order for it to be on. Hope this helps, D. Pagurek _____ From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Albert Anderson Sent: Friday, July 14, 2006 4:58 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] cant get my lavyers working w/my projection file Hi, I got my projection file working but I cant see to get my layers working like roads, boundary line, and etc... Can someone look at my code and help me. Thanks! ---Codes-------
County Boundary
  City Boundary
  Township
  Section Lines

 Land
  Parcels
  Parcels Labels


 Transportation
  County/City Roads
  Address Labels

 Backgrounds
  Aerial Photos

#This is Richland County Map Server NAME "Richland" SIZE 309 417 UNITS miles IMAGECOLOR 255 255 255 IMAGETYPE JPEG PROJECTION "init=epsg:26914" END SHAPEPATH "/home/mapdata/" EXTENT 626173.309834 5085113.091715 694065.960556 5176735.212592 #################################### # Symbol for drawing fat lines # SYMBOL NAME "BigLine" TYPE ELLIPSE POINTS 1 1 END END ##################################### # Symbol for drawing dashed lines # SYMBOL NAME "DashedLine" TYPE ELLIPSE POINTS 1 1 END STYLE 10 10 END END ##################################### # Symbol for drawing spots # SYMBOL NAME "Circle" FILLED true TYPE ellipse POINTS 1 1 END END ##################################### # Web object # WEB TEMPLATE '/var/www/htdocs/gismapserver_test_project_mod.html' IMAGEPATH '/var/www/htdocs/tmp/' IMAGEURL '/tmp/' END ##################################### # Reference map # REFERENCE IMAGE "/home/mapdata/richland.gif" SIZE 136 152 EXTENT -97.228391 45.907505 -96.628389 46.717217 STATUS ON COLOR -1 -1 -1 OUTLINECOLOR 0 0 0 END ##################################### # Scalebar # SCALEBAR LABEL COLOR 0 0 0 ANTIALIAS true SIZE small END POSITION lr INTERVALS 5 STATUS embed SIZE 144 5 STYLE 0 UNITS MILES BACKGROUNDCOLOR 0 255 0 IMAGECOLOR 255 255 255 COLOR 128 128 128 OUTLINECOLOR 0 0 255 TRANSPARENT off END ##################################### LAYER NAME "richland" STATUS default TYPE polygon DATA "RICH_bndy" PROJECTION "init=epsg:26914" END CLASS STYLE COLOR 238 220 130 END END END ##################################### LAYER NAME "boundary" STATUS on TYPE line DATA "RC_boundary_05" CLASS STYLE COLOR 0 0 0 END END END ##################################### LAYER NAME "roads" STATUS on TYPE line DATA "roads_shp" CLASS STYLE COLOR 255 0 0 END END END ##################################### LAYER NAME "sections" STATUS on TYPE line DATA "RC_sections_05" CLASS STYLE COLOR 255 130 171 END END END ##################################### LAYER NAME "parecles" STATUS on TYPE line DATA "RC_parcels_05" CLASS STYLE COLOR 0 0 0 END END END END __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From dlowther at COORDINATESOLUTIONS.COM Mon Jul 17 08:04:47 2006 From: dlowther at COORDINATESOLUTIONS.COM (David Lowther) Date: Mon, 17 Jul 2006 10:04:47 -0500 Subject: Mapscript CSharp (C#) Memory Leak? In-Reply-To: Message-ID: Thanks Tamas! I checked the MS4W page (I'm not compiling myself) and it doesn't look like it has been updated to 4.8.4. Does anyone know the schedule for the update? Thanks, David Lowther -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Tamas Szekeres Sent: Saturday, July 15, 2006 6:22 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] Mapscript CSharp (C#) Memory Leak? David, I have been testing your project and found the similar problems with your mapscript binaries, however found no problem using the CVS-HEAD mapscript binaries. This issue may be dedicated to the following bug: http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=1743 was also fixed in the current (4.8.4) release. Best Regards, Tamas Szekeres 2006/7/13, David Lowther : > > > > > Hello All, > > > > I've been toying with the mapscript_csharp.dll in VS2005 and cannot even > begin to tell you how thrilled I am to have it. Thanks SO much. > > > > I've encountered what I think might be a memory leak. > > > > The exception text that I get is below and the entire source code of the > application is available at: > http://www.coordinatesolutions.com/download/mapservertestvb.zip > > > > I get the exception after choosing ID from the drop down and clicking the > map 15 times (why 15, I have no idea). When running the code from VS2005 the > exception occurs at different places. > > > > Any ideas? > > > > David Lowther > > > > Coordinate Solutions, Inc. > > 501 N.E. 15th Street > > Oklahoma City, OK 73104 > > 405.246.9396 (Voice) > > 405.227.0781 (Fax) > > www.coordinatesolutions.com > > > > > See the end of this message for details on invoking > > just-in-time (JIT) debugging instead of this dialog box. > > > > ************** Exception Text ************** > > System.AccessViolationException: Attempted to read or write protected > memory. This is often an indication that other memory is corrupt. > > at mapscriptPINVOKE.new_pointObj(Double jarg1, Double jarg2, Double > jarg3, Double jarg4) > > at pointObj..ctor(Double x, Double y, Double z, Double m) > > at MapserverTestVB.Form1.Pixel2Geo(pointObj pt) in > D:\Develop\MapserverTestVB\MapserverTestVB\Form1.vb:line > 188 > > at MapserverTestVB.Form1.ID(pointObj ClickPt) in > D:\Develop\MapserverTestVB\MapserverTestVB\Form1.vb:line > 109 > > at MapserverTestVB.Form1.PictureBox1_MouseUp(Object > sender, MouseEventArgs e) in > D:\Develop\MapserverTestVB\MapserverTestVB\Form1.vb:line 97 > > at System.Windows.Forms.Control.OnMouseUp(MouseEventArgs > e) > > at System.Windows.Forms.Control.WmMouseUp(Message& m, > MouseButtons button, Int32 clicks) > > at System.Windows.Forms.Control.WndProc(Message& m) > > at > System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& > m) > > at > System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& > m) > > at System.Windows.Forms.NativeWindow.Callback(IntPtr > hWnd, Int32 msg, IntPtr wparam, IntPtr lparam) > > > > > > ************** Loaded Assemblies ************** > > mscorlib > > Assembly Version: 2.0.0.0 > > Win32 Version: 2.0.50727.42 (RTM.050727-4200) > > CodeBase: > file:///C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll > > ---------------------------------------- > > MapserverTestVB > > Assembly Version: 1.0.0.0 > > Win32 Version: 1.0.0.0 > > CodeBase: > file:///D:/Develop/MapserverTestVB/MapserverTestVB/bin/Debug/MapserverTestVB .exe > > ---------------------------------------- > > Microsoft.VisualBasic > > Assembly Version: 8.0.0.0 > > Win32 Version: 8.0.50727.42 (RTM.050727-4200) > > CodeBase: > file:///C:/WINDOWS/assembly/GAC_MSIL/Microsoft.VisualBasic/8.0.0.0__b03f5f7f 11d50a3a/Microsoft.VisualBasic.dll > > ---------------------------------------- > > System > > Assembly Version: 2.0.0.0 > > Win32 Version: 2.0.50727.42 (RTM.050727-4200) > > CodeBase: > file:///C:/WINDOWS/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System .dll > > ---------------------------------------- > > System.Windows.Forms > > Assembly Version: 2.0.0.0 > > Win32 Version: 2.0.50727.42 (RTM.050727-4200) > > CodeBase: > file:///C:/WINDOWS/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561 934e089/System.Windows.Forms.dll > > ---------------------------------------- > > System.Drawing > > Assembly Version: 2.0.0.0 > > Win32 Version: 2.0.50727.42 (RTM.050727-4200) > > CodeBase: > file:///C:/WINDOWS/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3 a/System.Drawing.dll > > ---------------------------------------- > > System.Configuration > > Assembly Version: 2.0.0.0 > > Win32 Version: 2.0.50727.42 (RTM.050727-4200) > > CodeBase: > file:///C:/WINDOWS/assembly/GAC_MSIL/System.Configuration/2.0.0.0__b03f5f7f1 1d50a3a/System.Configuration.dll > > ---------------------------------------- > > System.Xml > > Assembly Version: 2.0.0.0 > > Win32 Version: 2.0.50727.42 (RTM.050727-4200) > > CodeBase: > file:///C:/WINDOWS/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/Sy stem.Xml.dll > > ---------------------------------------- > > System.Runtime.Remoting > > Assembly Version: 2.0.0.0 > > Win32 Version: 2.0.50727.42 (RTM.050727-4200) > > CodeBase: > file:///C:/WINDOWS/assembly/GAC_MSIL/System.Runtime.Remoting/2.0.0.0__b77a5c 561934e089/System.Runtime.Remoting.dll > > ---------------------------------------- > > mapscript_csharp > > Assembly Version: 0.0.0.0 > > Win32 Version: 0.0.0.0 > > CodeBase: > file:///D:/Develop/MapserverTestVB/MapserverTestVB/bin/Debug/mapscript_cshar p.DLL > > ---------------------------------------- > > > > ************** JIT Debugging ************** > > To enable just-in-time (JIT) debugging, the .config file for this > > application or computer (machine.config) must have the > > jitDebugging value set in the system.windows.forms section. > > The application must also be compiled with debugging > > enabled. > > > > For example: > > > > > > > > > > > > When JIT debugging is enabled, any unhandled exception > > will be sent to the JIT debugger registered on the computer > > rather than be handled by this dialog box. > > > > > > > > > > From richard.greenwood at GMAIL.COM Mon Jul 17 08:05:27 2006 From: richard.greenwood at GMAIL.COM (Richard Greenwood) Date: Mon, 17 Jul 2006 09:05:27 -0600 Subject: dBox with mode=itemquery or itemnquery Message-ID: I am working with Steve's dBox and mapserv.js. It's great stuff. Does anyone have any examples or suggestions for using mode=itemquery or itemnquery? Specifically, how are you getting the new extent from the server into the javascript map object? And how are you updating the main map image (in mode=map you get an image back, but in mode=anything_else you get an image in a directory on the server). Rich -- Richard Greenwood richard.greenwood at gmail.com www.greenwoodmap.com From bart_doggers at YAHOO.COM Mon Jul 17 08:11:50 2006 From: bart_doggers at YAHOO.COM (Albert Anderson) Date: Mon, 17 Jul 2006 08:11:50 -0700 Subject: cant get my lavyers working w/my projection file In-Reply-To: <3F34A5A15450C74C813BA20E31DBB45101A0E3B0@ncrx3.ncr.int.ec.gc.ca> Message-ID: Hi, I add a projection map file of richland county. The other layers that I have are unprojective files. The roads file is all the road in the county. Right now they are not catagorized. Thats the way the other layers are. I just want to get the projection file loaded which is and also my layers which are not. Setting it to default didnt seem to work. Thanks, Albert "Pagurek,Debbie [NCR]" wrote: perhaps you could provide a bit more information to us. What is the native projection of the roads, boundary line, and etc... layers? If it isn't in the same projection as specified in your MAP object, PROJECTION "init=epsg:26914" END then you also need to specify the projection in the layer object. you also might want to try to put STATUS DEFAULT for the roads, boundary etc and that way they will ALWAYS be ON. If status is set to ON you have to make sure that your URL specifies layers=layername in order for it to be on. Hope this helps, D. Pagurek --------------------------------- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Albert Anderson Sent: Friday, July 14, 2006 4:58 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] cant get my lavyers working w/my projection file Hi, I got my projection file working but I cant see to get my layers working like roads, boundary line, and etc... Can someone look at my code and help me. Thanks! ---Codes-------
County Boundary
  City Boundary
  Township
  Section Lines

 Land
  Parcels
  Parcels Labels


 Transportation
  County/City Roads
  Address Labels

 Backgrounds
  Aerial Photos

#This is Richland County Map Server NAME "Richland" SIZE 309 417 UNITS miles IMAGECOLOR 255 255 255 IMAGETYPE JPEG PROJECTION "init=epsg:26914" END SHAPEPATH "/home/mapdata/" EXTENT 626173.309834 5085113.091715 694065.960556 5176735.212592 #################################### # Symbol for drawing fat lines # SYMBOL NAME "BigLine" TYPE ELLIPSE POINTS 1 1 END END ##################################### # Symbol for drawing dashed lines # SYMBOL NAME "DashedLine" TYPE ELLIPSE POINTS 1 1 END STYLE 10 10 END END ##################################### # Symbol for drawing spots # SYMBOL NAME "Circle" FILLED true TYPE ellipse POINTS 1 1 END END ##################################### # Web object # WEB TEMPLATE '/var/www/htdocs/gismapserver_test_project_mod.html' IMAGEPATH '/var/www/htdocs/tmp/' IMAGEURL '/tmp/' END ##################################### # Reference map # REFERENCE IMAGE "/home/mapdata/richland.gif" SIZE 136 152 EXTENT -97.228391 45.907505 -96.628389 46.717217 STATUS ON COLOR -1 -1 -1 OUTLINECOLOR 0 0 0 END ##################################### # Scalebar # SCALEBAR LABEL COLOR 0 0 0 ANTIALIAS true SIZE small END POSITION lr INTERVALS 5 STATUS embed SIZE 144 5 STYLE 0 UNITS MILES BACKGROUNDCOLOR 0 255 0 IMAGECOLOR 255 255 255 COLOR 128 128 128 OUTLINECOLOR 0 0 255 TRANSPARENT off END ##################################### LAYER NAME "richland" STATUS default TYPE polygon DATA "RICH_bndy" PROJECTION "init=epsg:26914" END CLASS STYLE COLOR 238 220 130 END END END ##################################### LAYER NAME "boundary" STATUS on TYPE line DATA "RC_boundary_05" CLASS STYLE COLOR 0 0 0 END END END ##################################### LAYER NAME "roads" STATUS on TYPE line DATA "roads_shp" CLASS STYLE COLOR 255 0 0 END END END ##################################### LAYER NAME "sections" STATUS on TYPE line DATA "RC_sections_05" CLASS STYLE COLOR 255 130 171 END END END ##################################### LAYER NAME "parecles" STATUS on TYPE line DATA "RC_parcels_05" CLASS STYLE COLOR 0 0 0 END END END END __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com --------------------------------- See the all-new, redesigned Yahoo.com. Check it out. -------------- next part -------------- An HTML attachment was scrubbed... URL: From hobu at IASTATE.EDU Mon Jul 17 08:16:48 2006 From: hobu at IASTATE.EDU (Howard Butler) Date: Mon, 17 Jul 2006 10:16:48 -0500 Subject: ruby mapscript on mac os x In-Reply-To: Message-ID: Andrew, It appears that Ruby is also affected by the method renaming bugaboo (details about this can be found here ). I updated the check in CVS HEAD to look for Ruby as well as Python. None of these changes are in the 4.8 branch. Howard At 02:31 PM 7/12/2006, Andrew Wiens wrote: >------=_Part_12344_19872034.1152732661648 >Content-Type: text/plain; charset=ISO-8859-1; format=flowed >Content-Transfer-Encoding: 7bit >Content-Disposition: inline > >Hello. I'm trying to get Ruby Mapscript setup to run on my mac (os x >10.4.7Intel). It looks like it's building correctly, but when I try >to run the >shp2img program from the examples directory, I get the following error: > >dyld: NSLinkModule() error >dyld: Symbol not found: _intarray_setitem > Referenced from: /usr/local/lib/ruby/site_ruby/1.8/i686-darwin8.6.1 >/mapscript.bundle > Expected in: flat namespace > >Trace/BPT trap > >I've reinstalled SWIG to make sure there were no errors during that process >and it looked like it installed properly. Any ideas what I should try next? > >Thanks, >--Andy > >------=_Part_12344_19872034.1152732661648 >Content-Type: text/html; charset=ISO-8859-1 >Content-Transfer-Encoding: 7bit >Content-Disposition: inline > >Hello.  I'm trying to get Ruby Mapscript setup to run on my mac >(os x 10.4.7 Intel).  It looks like it's building correctly, >but when I try to run the shp2img program from the examples >directory, I get the following error: >

dyld: NSLinkModule() error
dyld: Symbol not found: >_intarray_setitem
  Referenced from: >/usr/local/lib/ruby/site_ruby
/1.8/i686-darwin8.6.1/mapscript.bundle
  >Expected in: flat namespace

Trace/BPT trap >

I've reinstalled SWIG to make sure there were no errors >during that process and it looked like it installed properly.  >Any ideas what I should try next?

Thanks,
--Andy

> > >------=_Part_12344_19872034.1152732661648-- From Debbie.Pagurek at EC.GC.CA Mon Jul 17 08:19:31 2006 From: Debbie.Pagurek at EC.GC.CA (Pagurek,Debbie [NCR]) Date: Mon, 17 Jul 2006 11:19:31 -0400 Subject: cant get my lavyers working w/my projection file Message-ID: If your other layers are not projected, you mean that they are in 'geographic'. You still need to set a projection object for them. Try PROJECTION "init=epsg:4326" END This is geographic with the datum set as WGS84. This might not be the proper settings for your data - you could have another datum... anyway - set this projection object in your mapfile to see if you can get it working. What will happen is that Mapserver will project these layers on the fly to match the projection in your MAP object. D. Pagurek _____ From: Albert Anderson [mailto:bart_doggers at yahoo.com] Sent: Monday, July 17, 2006 11:12 AM To: Pagurek,Debbie [NCR]; MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] cant get my lavyers working w/my projection file Hi, I add a projection map file of richland county. The other layers that I have are unprojective files. The roads file is all the road in the county. Right now they are not catagorized. Thats the way the other layers are. I just want to get the projection file loaded which is and also my layers which are not. Setting it to default didnt seem to work. Thanks, Albert "Pagurek,Debbie [NCR]" wrote: perhaps you could provide a bit more information to us. What is the native projection of the roads, boundary line, and etc... layers? If it isn't in the same projection as specified in your MAP object, PROJECTION "init=epsg:26914" END then you also need to specify the projection in the layer object. you also might want to try to put STATUS DEFAULT for the roads, boundary etc and that way they will ALWAYS be ON. If status is set to ON you have to make sure that your URL specifies layers=layername in order for it to be on. Hope this helps, D. Pagurek _____ From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Albert Anderson Sent: Friday, July 14, 2006 4:58 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] cant get my lavyers working w/my projection file Hi, I got my projection file working but I cant see to get my layers working like roads, boundary line, and etc... Can someone look at my code and help me. Thanks! ---Codes-------
County Boundary
  City Boundary
  Township
  Section Lines

 Land
  Parcels
  Parcels Labels


 Transportation
  County/City Roads
  Address Labels

 Backgrounds
  Aerial Photos

#This is Richland County Map Server NAME "Richland" SIZE 309 417 UNITS miles IMAGECOLOR 255 255 255 IMAGETYPE JPEG PROJECTION "init=epsg:26914" END SHAPEPATH "/home/mapdata/" EXTENT 626173.309834 5085113.091715 694065.960556 5176735.212592 #################################### # Symbol for drawing fat lines # SYMBOL NAME "BigLine" TYPE ELLIPSE POINTS 1 1 END END ##################################### # Symbol for drawing dashed lines # SYMBOL NAME "DashedLine" TYPE ELLIPSE POINTS 1 1 END STYLE 10 10 END END ##################################### # Symbol for drawing spots # SYMBOL NAME "Circle" FILLED true TYPE ellipse POINTS 1 1 END END ##################################### # Web object # WEB TEMPLATE '/var/www/htdocs/gismapserver_test_project_mod.html' IMAGEPATH '/var/www/htdocs/tmp/' IMAGEURL '/tmp/' END ##################################### # Reference map # REFERENCE IMAGE "/home/mapdata/richland.gif" SIZE 136 152 EXTENT -97.228391 45.907505 -96.628389 46.717217 STATUS ON COLOR -1 -1 -1 OUTLINECOLOR 0 0 0 END ##################################### # Scalebar # SCALEBAR LABEL COLOR 0 0 0 ANTIALIAS true SIZE small END POSITION lr INTERVALS 5 STATUS embed SIZE 144 5 STYLE 0 UNITS MILES BACKGROUNDCOLOR 0 255 0 IMAGECOLOR 255 255 255 COLOR 128 128 128 OUTLINECOLOR 0 0 255 TRANSPARENT off END ##################################### LAYER NAME "richland" STATUS default TYPE polygon DATA "RICH_bndy" PROJECTION "init=epsg:26914" END CLASS STYLE COLOR 238 220 130 END END END ##################################### LAYER NAME "boundary" STATUS on TYPE line DATA "RC_boundary_05" CLASS STYLE COLOR 0 0 0 END END END ##################################### LAYER NAME "roads" STATUS on TYPE line DATA "roads_shp" CLASS STYLE COLOR 255 0 0 END END END ##################################### LAYER NAME "sections" STATUS on TYPE line DATA "RC_sections_05" CLASS STYLE COLOR 255 130 171 END END END ##################################### LAYER NAME "parecles" STATUS on TYPE line DATA "RC_parcels_05" CLASS STYLE COLOR 0 0 0 END END END END __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com _____ See the all-new, redesigned Yahoo.com. Check it out. -------------- next part -------------- An HTML attachment was scrubbed... URL: From arjendk at GMX.NET Mon Jul 17 08:20:29 2006 From: arjendk at GMX.NET (Arjen de Korte) Date: Mon, 17 Jul 2006 17:20:29 +0200 Subject: GetFeatureInfo from Oracle: no coordinates In-Reply-To: <44B6372C.9040308@univali.br> Message-ID: Hello Fernando and list, Thank you for your reply. The layers are drawn correctly when I do a GetMap request. So I get a correct map image. It makes no difference if I use NONE instead of RELATE; still no coordinates in the GetFeatureInfo result. Does anyone on this list have WMS GetFeatureInfo working correctly with Oracle Locator? Regards, Arjen. On Thu, 13 Jul 2006 09:06:04 -0300, Fernando Simon said: > Hi Arjen, > Sorry for the delay to reply you. > It's a strange problem, because you can see the attributes but no > the data, I'm not a WMS/WFS specialist and I will check if can be a > WMS/WFS problem. > About the Oracle Spatial connection, can you check if the layer will > be draw using Mapserver CGI directly? Another issue, I don't know if in > Locator the RELATE with geodetic SRID will work correctly, can you try > to define the NONE instead of RELATE? > Best regards. > > > ------------------------------------------------------------------------ > Fernando Simon > Mapserver and Oracle Spatial developer > G10 - Laboratorio de Computacao Aplicada - Brazil > http://www.univali.br/g10 - UNIVALI/CTTMAR > ------------------------------------------------------------------------ > > > Arjen de Korte wrote: > > Hello Mapserver users, > > > > I'm trying to get Mapserver to give me a GetFeatureInfo result from > > Oracle. I do get an XML document back, with the attributes and bounding > > box in it, but *without* the coordinates! > > > > So I do get a valid XML response, starting with and > > followed by the bounding box () and the attributes, but it does > > not contain feature coordinates like . > > > > We are using MS4W 1.5.3 and Oracle 9i Locator (no Spatial extensions). > > > > In the mapfile the layer is defined by: > > > > LAYER > > NAME test1 > > METADATA > > "ows_title" "Test 1" > > "gml_include_items" "all" > > "wms_extent" "0 300000 300000 600000" > > END > > PROJECTION > > "init=epsg:28992" > > END > > STATUS ON > > TYPE POLYGON > > MAXSCALE 50000 > > CONNECTIONTYPE oraclespatial > > CONNECTION "adk/adk at domain" > > DATA "geometry from test1 using unique ID srid 90112 relate version > > 9i" > > DUMP true > > TEMPLATE "../templates/rivers_query_header.html" > > TRANSPARENCY 50 > > CLASS > > NAME "Test 1" > > COLOR 0 100 0 > > END > > END > > > > This is the URL I use for the request: > > > > http://localhost/cgi-bin/mapserv.exe?map=/ms4w/apps/geolocator/service/out.map&service=WMS&version=1.1.1&request=GetFeatureInfo&srs=EPSG:28992&bbox=174800,604995,178736,607363&info_format=application/vnd.ogc.gml&layers=bebgeb,water,test1&query_layers=test1&x=280.999999999999&y=70&width=615&height=370 > > > > Does anybody have a suggestion how to fix this? > > > > Regards, > > > > Arjen. > > > > > From David.Fawcett at STATE.MN.US Mon Jul 17 08:22:06 2006 From: David.Fawcett at STATE.MN.US (Fawcett, David) Date: Mon, 17 Jul 2006 10:22:06 -0500 Subject: cant get my lavyers working w/my projection file In-Reply-To: A<20060717151150.25737.qmail@web55708.mail.re3.yahoo.com> Message-ID: Your units are specified in miles, but your projection uses meters as units. You need to change your units to meters. As Debbie suggested, I would set all of your layers to status default for debugging purposes. David. -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Albert Anderson Sent: Monday, July 17, 2006 10:12 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] cant get my lavyers working w/my projection file Hi, I add a projection map file of richland county. The other layers that I have are unprojective files. The roads file is all the road in the county. Right now they are not catagorized. Thats the way the other layers are. I just want to get the projection file loaded which is and also my layers which are not. Setting it to default didnt seem to work. Thanks, Albert "Pagurek,Debbie [NCR]" wrote: perhaps you could provide a bit more information to us. What is the native projection of the roads, boundary line, and etc... layers? If it isn't in the same projection as specified in your MAP object, PROJECTION "init=epsg:26914" END then you also need to specify the projection in the layer object. you also might want to try to put STATUS DEFAULT for the roads, boundary etc and that way they will ALWAYS be ON. If status is set to ON you have to make sure that your URL specifies layers=layername in order for it to be on. Hope this helps, D. Pagurek ________________________________ From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Albert Anderson Sent: Friday, July 14, 2006 4:58 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] cant get my lavyers working w/my projection file Hi, I got my projection file working but I cant see to get my layers working like roads, boundary line, and etc... Can someone look at my code and help me. Thanks! ---Codes-------
County Boundary
  City Boundary
  Township
  Section Lines

 Land
  Parcels
  Parcels Labels


 Transportation
  County/City Roads
  Address Labels

 Backgrounds
  Aerial Photos

#This is Richland County Map Server NAME "Richland" SIZE 309 417 UNITS miles IMAGECOLOR 255 255 255 IMAGETYPE JPEG PROJECTION "init=epsg:26914" END SHAPEPATH "/home/mapdata/" EXTENT 626173.309834 5085113.091715 694065.960556 5176735.212592 #################################### # Symbol for drawing fat lines # SYMBOL NAME "BigLine" TYPE ELLIPSE POINTS 1 1 END END ##################################### # Symbol for drawing dashed lines # SYMBOL NAME "DashedLine" TYPE ELLIPSE POINTS 1 1 END STYLE 10 10 END END ##################################### # Symbol for drawing spots # SYMBOL NAME "Circle" FILLED true TYPE ellipse POINTS 1 1 END END ##################################### # Web object # WEB TEMPLATE '/var/www/htdocs/gismapserver_test_project_mod.html' IMAGEPATH '/var/www/htdocs/tmp/' IMAGEURL '/tmp/' END ##################################### # Reference map # REFERENCE IMAGE "/home/mapdata/richland.gif" SIZE 136 152 EXTENT -97.228391 45.907505 -96.628389 46.717217 STATUS ON COLOR -1 -1 -1 OUTLINECOLOR 0 0 0 END ##################################### # Scalebar # SCALEBAR LABEL COLOR 0 0 0 ANTIALIAS true SIZE small END POSITION lr INTERVALS 5 STATUS embed SIZE 144 5 STYLE 0 UNITS MILES BACKGROUNDCOLOR 0 255 0 IMAGECOLOR 255 255 255 COLOR 128 128 128 OUTLINECOLOR 0 0 255 TRANSPARENT off END ##################################### LAYER NAME "richland" STATUS default TYPE polygon DATA "RICH_bndy" PROJECTION "init=epsg:26914" END CLASS STYLE COLOR 238 220 130 END END END ##################################### LAYER NAME "boundary" STATUS on TYPE line DATA "RC_boundary_05" CLASS STYLE COLOR 0 0 0 END END END ##################################### LAYER NAME "roads" STATUS on TYPE line DATA "roads_shp" CLASS STYLE COLOR 255 0 0 END END END ##################################### LAYER NAME "sections" STATUS on TYPE line DATA "RC_sections_05" CLASS STYLE COLOR 255 130 171 END END END ##################################### LAYER NAME "parecles" STATUS on TYPE line DATA "RC_parcels_05" CLASS STYLE COLOR 0 0 0 END END END END __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com ________________________________ See the all-new, redesigned Yahoo.com. Check it out. -------------- next part -------------- An HTML attachment was scrubbed... URL: From dovidio at PLANETEK.IT Mon Jul 17 08:28:12 2006 From: dovidio at PLANETEK.IT (Fabio D'Ovidio) Date: Mon, 17 Jul 2006 17:28:12 +0200 Subject: REMOTE_OWS_TYPE Message-ID: Does mapserver support REMOTE_OWS_TYPE and REMOTE_OWS_URL parameters ? Thank you ******************************************************************************************** Ing. Fabio D'Ovidio WebGIS Staff Planetek Italia Srl via Massaua, 12 - 70123 Bari - Italy web : http ://www.planetek.it e-mail : dovidio at planetek.it ******************************************************************************************** -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- The following section of this message contains a file attachment prepared for transmission using the Internet MIME message format. If you are using Pegasus Mail, or any other MIME-compliant system, you should be able to save it or view it from within your mailer. If you cannot, please ask your system administrator for assistance. ---- File information ----------- File: planetek.gif Date: 28 Feb 2006, 16:15 Size: 1899 bytes. Type: Unknown -------------- next part -------------- A non-text attachment was scrubbed... Name: planetek.gif Type: application/octet-stream Size: 1899 bytes Desc: not available URL: From Tom.Kralidis at EC.GC.CA Mon Jul 17 08:35:22 2006 From: Tom.Kralidis at EC.GC.CA (Kralidis,Tom [Burlington]) Date: Mon, 17 Jul 2006 11:35:22 -0400 Subject: REMOTE_OWS_TYPE Message-ID: Not that I am aware of. What are your requirements, i.e. where/why would you intend to use these? If you can provide further information, perhaps this can be put forth as a valuable addition to MapServer, or perhaps there is a workaround which can be applied. ..Tom -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Fabio D'Ovidio Sent: Monday, July 17, 2006 11:28 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] REMOTE_OWS_TYPE Does mapserver support REMOTE_OWS_TYPE and REMOTE_OWS_URL parameters ? Thank you ************************************************************************ ******************** Ing. Fabio D'Ovidio WebGIS Staff Planetek Italia Srl via Massaua, 12 - 70123 Bari - Italy web : http ://www.planetek.it e-mail : dovidio at planetek.it ************************************************************************ ******************** From sit at COMUNE.CONEGLIANO.TV.IT Mon Jul 17 08:22:11 2006 From: sit at COMUNE.CONEGLIANO.TV.IT (alessandro della libera) Date: Mon, 17 Jul 2006 17:22:11 +0200 Subject: Postgis - oracle table - join Message-ID: Hi Is it possible join a Postgis spatial table with a oracle table (no-spatial) or can i perform just join between postgis e dbf ? Any suggestions? Could someone provide an example? Does anybody have any idea/tips also about postgis - oracle join in cartoweb? I was no able to find anything in mailing-list. so. -> linux mapsever -> 4.8.4 Thanks in advance Alessandro -- ********************************** Alessandro Della Libera Comune di Conegliano Servizio Informatizzazione Via Accademia, 1 31015 CONEGLIANO-TV e-mail:sit at comune.conegliano.tv.it tel. 0438-413310 ********************************** From bart_doggers at YAHOO.COM Mon Jul 17 08:45:15 2006 From: bart_doggers at YAHOO.COM (Albert Anderson) Date: Mon, 17 Jul 2006 08:45:15 -0700 Subject: cant get my lavyers working w/my projection file In-Reply-To: <3F34A5A15450C74C813BA20E31DBB45101A0E3B4@ncrx3.ncr.int.ec.gc.ca> Message-ID: Hi, I changed my units and my scale bar looks better. I still cant get my layers working. I put them on default and put PROJECTION "init=epsq:4326" END in the map object and it didnt like that. I get an error like msProcessProjection(): Projection library error. no system list, errno: 2 . What else can I try? Thanks, Albert "Pagurek,Debbie [NCR]" wrote: If your other layers are not projected, you mean that they are in 'geographic'. You still need to set a projection object for them. Try PROJECTION "init=epsg:4326" END This is geographic with the datum set as WGS84. This might not be the proper settings for your data - you could have another datum... anyway - set this projection object in your mapfile to see if you can get it working. What will happen is that Mapserver will project these layers on the fly to match the projection in your MAP object. D. Pagurek --------------------------------- From: Albert Anderson [mailto:bart_doggers at yahoo.com] Sent: Monday, July 17, 2006 11:12 AM To: Pagurek,Debbie [NCR]; MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] cant get my lavyers working w/my projection file Hi, I add a projection map file of richland county. The other layers that I have are unprojective files. The roads file is all the road in the county. Right now they are not catagorized. Thats the way the other layers are. I just want to get the projection file loaded which is and also my layers which are not. Setting it to default didnt seem to work. Thanks, Albert "Pagurek,Debbie [NCR]" wrote: perhaps you could provide a bit more information to us. What is the native projection of the roads, boundary line, and etc... layers? If it isn't in the same projection as specified in your MAP object, PROJECTION "init=epsg:26914" END then you also need to specify the projection in the layer object. you also might want to try to put STATUS DEFAULT for the roads, boundary etc and that way they will ALWAYS be ON. If status is set to ON you have to make sure that your URL specifies layers=layername in order for it to be on. Hope this helps, D. Pagurek --------------------------------- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Albert Anderson Sent: Friday, July 14, 2006 4:58 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] cant get my lavyers working w/my projection file Hi, I got my projection file working but I cant see to get my layers working like roads, boundary line, and etc... Can someone look at my code and help me. Thanks! ---Codes-------
County Boundary
  City Boundary
  Township
  Section Lines

 Land
  Parcels
  Parcels Labels


 Transportation
  County/City Roads
  Address Labels

 Backgrounds
  Aerial Photos

#This is Richland County Map Server NAME "Richland" SIZE 309 417 UNITS miles IMAGECOLOR 255 255 255 IMAGETYPE JPEG PROJECTION "init=epsg:26914" END SHAPEPATH "/home/mapdata/" EXTENT 626173.309834 5085113.091715 694065.960556 5176735.212592 #################################### # Symbol for drawing fat lines # SYMBOL NAME "BigLine" TYPE ELLIPSE POINTS 1 1 END END ##################################### # Symbol for drawing dashed lines # SYMBOL NAME "DashedLine" TYPE ELLIPSE POINTS 1 1 END STYLE 10 10 END END ##################################### # Symbol for drawing spots # SYMBOL NAME "Circle" FILLED true TYPE ellipse POINTS 1 1 END END ##################################### # Web object # WEB TEMPLATE '/var/www/htdocs/gismapserver_test_project_mod.html' IMAGEPATH '/var/www/htdocs/tmp/' IMAGEURL '/tmp/' END ##################################### # Reference map # REFERENCE IMAGE "/home/mapdata/richland.gif" SIZE 136 152 EXTENT -97.228391 45.907505 -96.628389 46.717217 STATUS ON COLOR -1 -1 -1 OUTLINECOLOR 0 0 0 END ##################################### # Scalebar # SCALEBAR LABEL COLOR 0 0 0 ANTIALIAS true SIZE small END POSITION lr INTERVALS 5 STATUS embed SIZE 144 5 STYLE 0 UNITS MILES BACKGROUNDCOLOR 0 255 0 IMAGECOLOR 255 255 255 COLOR 128 128 128 OUTLINECOLOR 0 0 255 TRANSPARENT off END ##################################### LAYER NAME "richland" STATUS default TYPE polygon DATA "RICH_bndy" PROJECTION "init=epsg:26914" END CLASS STYLE COLOR 238 220 130 END END END ##################################### LAYER NAME "boundary" STATUS on TYPE line DATA "RC_boundary_05" CLASS STYLE COLOR 0 0 0 END END END ##################################### LAYER NAME "roads" STATUS on TYPE line DATA "roads_shp" CLASS STYLE COLOR 255 0 0 END END END ##################################### LAYER NAME "sections" STATUS on TYPE line DATA "RC_sections_05" CLASS STYLE COLOR 255 130 171 END END END ##################################### LAYER NAME "parecles" STATUS on TYPE line DATA "RC_parcels_05" CLASS STYLE COLOR 0 0 0 END END END END __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com --------------------------------- See the all-new, redesigned Yahoo.com. Check it out. --------------------------------- See the all-new, redesigned Yahoo.com. Check it out. -------------- next part -------------- An HTML attachment was scrubbed... URL: From Debbie.Pagurek at EC.GC.CA Mon Jul 17 09:33:43 2006 From: Debbie.Pagurek at EC.GC.CA (Pagurek,Debbie [NCR]) Date: Mon, 17 Jul 2006 12:33:43 -0400 Subject: cant get my lavyers working w/my projection file Message-ID: you have a typo in what you just wrote - it should be epsG not epsQ - I hope you have epsG in your mapfile. The error that you're getting indicates that Mapserver can't find the epsg file so it can't find the epsg code. On windows in a typical ms4w installation, your epsg file should be in c:\ms4w\proj\nad\ D. Pagurek _____ From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Albert Anderson Sent: Monday, July 17, 2006 11:45 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] cant get my lavyers working w/my projection file Hi, I changed my units and my scale bar looks better. I still cant get my layers working. I put them on default and put PROJECTION "init=epsq:4326" END in the map object and it didnt like that. I get an error like msProcessProjection(): Projection library error. no system list, errno: 2 . What else can I try? Thanks, Albert "Pagurek,Debbie [NCR]" wrote: If your other layers are not projected, you mean that they are in 'geographic'. You still need to set a projection object for them. Try PROJECTION "init=epsg:4326" END This is geographic with the datum set as WGS84. This might not be the proper settings for your data - you could have another datum... anyway - set this projection object in your mapfile to see if you can get it working. What will happen is that Mapserver will project these layers on the fly to match the projection in your MAP object. D. Pagurek _____ From: Albert Anderson [mailto:bart_doggers at yahoo.com] Sent: Monday, July 17, 2006 11:12 AM To: Pagurek,Debbie [NCR]; MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] cant get my lavyers working w/my projection file Hi, I add a projection map file of richland county. The other layers that I have are unprojective files. The roads file is all the road in the county. Right now they are not catagorized. Thats the way the other layers are. I just want to get the projection file loaded which is and also my layers which are not. Setting it to default didnt seem to work. Thanks, Albert "Pagurek,Debbie [NCR]" wrote: perhaps you could provide a bit more information to us. What is the native projection of the roads, boundary line, and etc... layers? If it isn't in the same projection as specified in your MAP object, PROJECTION "init=epsg:26914" END then you also need to specify the projection in the layer object. you also might want to try to put STATUS DEFAULT for the roads, boundary etc and that way they will ALWAYS be ON. If status is set to ON you have to make sure that your URL specifies layers=layername in order for it to be on. Hope this helps, D. Pagurek _____ From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Albert Anderson Sent: Friday, July 14, 2006 4:58 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] cant get my lavyers working w/my projection file Hi, I got my projection file working but I cant see to get my layers working like roads, boundary line, and etc... Can someone look at my code and help me. Thanks! ---Codes-------
County Boundary
  City Boundary
  Township
  Section Lines

 Land
  Parcels
  Parcels Labels


 Transportation
  County/City Roads
  Address Labels

 Backgrounds
  Aerial Photos

#This is Richland County Map Server NAME "Richland" SIZE 309 417 UNITS miles IMAGECOLOR 255 255 255 IMAGETYPE JPEG PROJECTION "init=epsg:26914" END SHAPEPATH "/home/mapdata/" EXTENT 626173.309834 5085113.091715 694065.960556 5176735.212592 #################################### # Symbol for drawing fat lines # SYMBOL NAME "BigLine" TYPE ELLIPSE POINTS 1 1 END END ##################################### # Symbol for drawing dashed lines # SYMBOL NAME "DashedLine" TYPE ELLIPSE POINTS 1 1 END STYLE 10 10 END END ##################################### # Symbol for drawing spots # SYMBOL NAME "Circle" FILLED true TYPE ellipse POINTS 1 1 END END ##################################### # Web object # WEB TEMPLATE '/var/www/htdocs/gismapserver_test_project_mod.html' IMAGEPATH '/var/www/htdocs/tmp/' IMAGEURL '/tmp/' END ##################################### # Reference map # REFERENCE IMAGE "/home/mapdata/richland.gif" SIZE 136 152 EXTENT -97.228391 45.907505 -96.628389 46.717217 STATUS ON COLOR -1 -1 -1 OUTLINECOLOR 0 0 0 END ##################################### # Scalebar # SCALEBAR LABEL COLOR 0 0 0 ANTIALIAS true SIZE small END POSITION lr INTERVALS 5 STATUS embed SIZE 144 5 STYLE 0 UNITS MILES BACKGROUNDCOLOR 0 255 0 IMAGECOLOR 255 255 255 COLOR 128 128 128 OUTLINECOLOR 0 0 255 TRANSPARENT off END ##################################### LAYER NAME "richland" STATUS default TYPE polygon DATA "RICH_bndy" PROJECTION "init=epsg:26914" END CLASS STYLE COLOR 238 220 130 END END END ##################################### LAYER NAME "boundary" STATUS on TYPE line DATA "RC_boundary_05" CLASS STYLE COLOR 0 0 0 END END END ##################################### LAYER NAME "roads" STATUS on TYPE line DATA "roads_shp" CLASS STYLE COLOR 255 0 0 END END END ##################################### LAYER NAME "sections" STATUS on TYPE line DATA "RC_sections_05" CLASS STYLE COLOR 255 130 171 END END END ##################################### LAYER NAME "parecles" STATUS on TYPE line DATA "RC_parcels_05" CLASS STYLE COLOR 0 0 0 END END END END __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com _____ See the all-new, redesigned Yahoo.com. Check it out. _____ See the all-new, redesigned Yahoo.com. Check it out. -------------- next part -------------- An HTML attachment was scrubbed... URL: From aaronkoning at GMAIL.COM Mon Jul 17 10:11:02 2006 From: aaronkoning at GMAIL.COM (Aaron Koning) Date: Mon, 17 Jul 2006 10:11:02 -0700 Subject: Working with adding layers to a projection file In-Reply-To: <20060717135052.24801.qmail@web55701.mail.re3.yahoo.com> Message-ID: What do you mean by "my projection shows up"? Do you mean the projection is now present in your Proj.4 epsg file? Show us your MapFile using http://rafb.net/paste/ or attach it. Also, provide more info such as: are you using the MapServer CGI or MapScript or one of the web mapping frameworks (e.g. Chameleon, MapBuilder, FIST) to display the map? Operating system? MapServer version? etc. Aaron On 7/17/06, Albert Anderson wrote: > > Hi All, > I am having problems getting my layers to work with my projection file. > I got everything coded right I think. My projection shows up but my layers > that I created dont. What steps do I need to take? > > > Thanks, > Albert > > ------------------------------ > Yahoo! Messenger with Voice. Make PC-to-Phone Callsto the US (and 30+ countries) for 2?/min or less. > > -- +-------------------------------------------- | Aaron Koning | Information Technologist | Prince George, BC, Canada. +-------------------------------------------- | http://datashare.gis.unbc.ca/fist/ | http://datashare.gis.unbc.ca/gctp-js/ +-------------------------------------------- -------------- next part -------------- An HTML attachment was scrubbed... URL: From aaronr at ECOTRUST.ORG Mon Jul 17 10:10:41 2006 From: aaronr at ECOTRUST.ORG (Aaron Racicot) Date: Mon, 17 Jul 2006 10:10:41 -0700 Subject: Mapserver compile error Message-ID: Antti, You will need to tell your system where to find the gdal dynamically loaded library after install. I believe that it usually ends up in /usr/local/lib/ and if it is not part of your LD_LIBRARY_PATH then you can either: 1) Update LD_LIBRARY_PATH in your environment settings to include the location of libgdal.so.1 2) Add the path for libgdal.so.1 to /etc/ld.so.conf and run /sbin/ldconfig Hope this helps... Aaron +----------------------------------------+ | Aaron Racicot | aaronr at ecotrust.org | | GIS Programmer | 503.467.0759 | +----------------------------------------+ | e c o t r u s t | | Jean Vollum Natural Capital Center | | 721 NW Ninth Avenue | | Suite 200 | | Portland, OR 97209 | | www.ecotrust.org | +----------------------------------------+ -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of antti siukola Sent: Monday, July 17, 2006 3:29 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] Mapserver compile error Reply to myself I got it to work after removing gdal packages that I was installed from Ubuntus repository since they were the duplicates with my manually installed gdal. So, after that I recompiled gdal manually and compiled mapserver and copied the php_mapscript.so to the php extension directory but then I get this error: Warning: dl() [function.dl]: Unable to load dynamic library '/usr/lib/php5/20041030/php_mapscript.so' - libgdal.so.1: cannot open shared object file: No such file or directory What now? Regards, Antti S On 7/17/06, antti siukola wrote: > Hi! > > I'm compiling the most recent MapServer and I get this OGR related > error on make: > > ./libmap.a(mapogr.o): In function `msOGRFileWhichShapes(layer_obj*, > rectObj, ms_ogr_file_info_t*)':mapogr.cpp:(.text+0x38e): undefined > reference to `OGRLineString::setPoint(int, double, double)' > :mapogr.cpp:(.text+0x3ac): undefined reference to > `OGRLineString::setPoint(int, double, double)' > :mapogr.cpp:(.text+0x3ca): undefined reference to > `OGRLineString::setPoint(int, double, double)' > :mapogr.cpp:(.text+0x3e8): undefined reference to > `OGRLineString::setPoint(int, double, double)' > :mapogr.cpp:(.text+0x406): undefined reference to > `OGRLineString::setPoint(int, double, double)' > ./libmap.a(mapogr.o): In function > `msOGRShapeToWKT':mapogr.cpp:(.text+0xa15): undefined reference to > `OGR_G_SetPoint_2D' > :mapogr.cpp:(.text+0xa65): undefined reference to `OGR_G_AddPoint_2D' > :mapogr.cpp:(.text+0xaf1): undefined reference to `OGR_G_AddPoint_2D' > collect2: ld returned 1 exit status > make: *** [shp2img] Error 1 > > I found some info from mailing list archive: > > "This generally means you have two copies of GDAL/OGR on your system. > MapServer is getting built using the include files from one, but > linked against the libraries of another. I would suggest you try and > strip the older GDAL/OGR off completely, or muck around with the > MapServer makefile to ensure that only one version is getting used > consistently. Basically fiddling with the order of -I include > directives and -L library paths." -Frank Warmerdam, > warmerdam at pobox.com > > So I ran make clean on gdal and recompiled it and then tried to > compile mapserver but got the same error again. > > Regards, > > Antti S > From Steve.Lime at DNR.STATE.MN.US Mon Jul 17 10:18:06 2006 From: Steve.Lime at DNR.STATE.MN.US (Steve Lime) Date: Mon, 17 Jul 2006 12:18:06 -0500 Subject: dBox with mode=itemquery or itemnquery Message-ID: Rich: This is where AJAX can really help. The dbox code really doesn't help you here. It gives you the tools to do something with the query result but not with the query itself. So, to do this you need 2 things or so: 1) a method that is called to trigger the search (e.g. myLookup), and process the response 2) a query template(s) to package the results for use in the client One might look like: function myLookup(map, layer, item, term) { var URL = map.mapserver + '?map=' + map.mapfile + '&mode=itemquery&qlayer=' + layer + '&qitem=' + item + '&qstring=' + term; var response = get_content(URL); // parse the response somehow, check for errors and such... (in this case the response is just a delimeted line, see template) var tokens = response.split(','); map.setExtent(tokens[1], tokens[2], tokens[3], tokens[4]); map.draw(); } Two might look like (simple delimited response): [NAME],[shpminx],[shpminy],[shpmaxx],[shpmaxy] Does this sort of make sense? You could respond with XML and use that to drive some interface stuff- your choice. I suppose one could write a dbox add-on to turn myLookup into a more formal feature of the software with a callback and all. Steve >>> Richard Greenwood 7/17/2006 10:05:27 AM >>> I am working with Steve's dBox and mapserv.js. It's great stuff. Does anyone have any examples or suggestions for using mode=itemquery or itemnquery? Specifically, how are you getting the new extent from the server into the javascript map object? And how are you updating the main map image (in mode=map you get an image back, but in mode=anything_else you get an image in a directory on the server). Rich -- Richard Greenwood richard.greenwood at gmail.com www.greenwoodmap.com From Debbie.Pagurek at EC.GC.CA Mon Jul 17 10:42:31 2006 From: Debbie.Pagurek at EC.GC.CA (Pagurek,Debbie [NCR]) Date: Mon, 17 Jul 2006 13:42:31 -0400 Subject: cant get my lavyers working w/my projection file Message-ID: see the 'important notes' section on http://mapserver.gis.umn.edu/docs/reference/mapfile/projection/?searchterm=projection and do some reading in general about projections. You would never have 2 epsg codes in one layer in your mapfile. The projection object in your layer defines what projection your shapefile is in. The projection object in your overall map object defines how you want your overall map (all the layers) projected. I can't help much more than this - you have to know your data and understand what projections your shapefiles are in natively and then understand the final projection you want your map to appear in. D. Pagurek _____ From: Albert Anderson [mailto:bart_doggers at yahoo.com] Sent: Monday, July 17, 2006 12:44 PM To: Pagurek,Debbie [NCR]; Albert Anderson; MAPSERVER-USERS at LISTS.UMN.EDU Subject: RE: [UMN_MAPSERVER-USERS] cant get my lavyers working w/my projection file Hi, I still get the error. Do I put both projections in the map obj. and layer? How would the coded the projection file and the 3 unprojection files? I am confussed about that? #This is Richland County Map Server NAME "Richland" SIZE 309 417 UNITS meters IMAGECOLOR 255 255 255 IMAGETYPE JPEG PROJECTION "init=epsg:26914" "init=epsg:4326" END ##################################### LAYER NAME "richland" STATUS default TYPE polygon DATA "RICH_bndy" PROJECTION "init=epsg:26914" END CLASS STYLE COLOR 238 220 130 END END END ##################################### LAYER NAME "boundary" STATUS default TYPE line DATA "RC_boundary_05" PROJECTION "init=epsq:4326" END CLASS STYLE COLOR 0 0 0 END END END ##################################### Thanks, Albert "Pagurek,Debbie [NCR]" wrote: you have a typo in what you just wrote - it should be epsG not epsQ - I hope you have epsG in your mapfile. The error that you're getting indicates that Mapserver can't find the epsg file so it can't find the epsg code. On windows in a typical ms4w installation, your epsg file should be in c:\ms4w\proj\nad\ D. Pagurek _____ From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Albert Anderson Sent: Monday, July 17, 2006 11:45 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] cant get my lavyers working w/my projection file Hi, I changed my units and my scale bar looks better. I still cant get my layers working. I put them on default and put PROJECTION "init=epsq:4326" END in the map object and it didnt like that. I get an error like msProcessProjection(): Projection library error. no system list, errno: 2 . What else can I try? Thanks, Albert "Pagurek,Debbie [NCR]" wrote: If your other layers are not projected, you mean that they are in 'geographic'. You still need to set a projection object for them. Try PROJECTION "init=epsg:4326" END This is geographic with the datum set as WGS84. This might not be the proper settings for your data - you could have another datum... anyway - set this projection object in your mapfile to see if you can get it working. What will happen is that Mapserver will project these layers on the fly to match the projection in your MAP object. D. Pagurek _____ From: Albert Anderson [mailto:bart_doggers at yahoo.com] Sent: Monday, July 17, 2006 11:12 AM To: Pagurek,Debbie [NCR]; MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] cant get my lavyers working w/my projection file Hi, I add a projection map file of richland county. The other layers that I have are unprojective files. The roads file is all the road in the county. Right now they are not catagorized. Thats the way the other layers are. I just want to get the projection file loaded which is and also my layers which are not. Setting it to default didnt seem to work. Thanks, Albert "Pagurek,Debbie [NCR]" wrote: perhaps you could provide a bit more information to us. What is the native projection of the roads, boundary line, and etc... layers? If it isn't in the same projection as specified in your MAP object, PROJECTION "init=epsg:26914" END then you also need to specify the projection in the layer object. you also might want to try to put STATUS DEFAULT for the roads, boundary etc and that way they will ALWAYS be ON. If status is set to ON you have to make sure that your URL specifies layers=layername in order for it to be on. Hope this helps, D. Pagurek _____ From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Albert Anderson Sent: Friday, July 14, 2006 4:58 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] cant get my lavyers working w/my projection file Hi, I got my projection file working but I cant see to get my layers working like roads, boundary line, and etc... Can someone look at my code and help me. Thanks! ---Codes-------
County Boundary
  City Boundary
  Township
  Section Lines

 Land
  Parcels
  Parcels Labels


 Transportation
  County/City Roads
  Address Labels

 Backgrounds
  Aerial Photos

#This is Richland County Map Server NAME "Richland" SIZE 309 417 UNITS miles IMAGECOLOR 255 255 255 IMAGETYPE JPEG PROJECTION "init=epsg:26914" END SHAPEPATH "/home/mapdata/" EXTENT 626173.309834 5085113.091715 694065.960556 5176735.212592 #################################### # Symbol for drawing fat lines # SYMBOL NAME "BigLine" TYPE ELLIPSE POINTS 1 1 END END ##################################### # Symbol for drawing dashed lines # SYMBOL NAME "DashedLine" TYPE ELLIPSE POINTS 1 1 END STYLE 10 10 END END ##################################### # Symbol for drawing spots # SYMBOL NAME "Circle" FILLED true TYPE ellipse POINTS 1 1 END END ##################################### # Web object # WEB TEMPLATE '/var/www/htdocs/gismapserver_test_project_mod.html' IMAGEPATH '/var/www/htdocs/tmp/' IMAGEURL '/tmp/' END ##################################### # Reference map # REFERENCE IMAGE "/home/mapdata/richland.gif" SIZE 136 152 EXTENT -97.228391 45.907505 -96.628389 46.717217 STATUS ON COLOR -1 -1 -1 OUTLINECOLOR 0 0 0 END ##################################### # Scalebar # SCALEBAR LABEL COLOR 0 0 0 ANTIALIAS true SIZE small END POSITION lr INTERVALS 5 STATUS embed SIZE 144 5 STYLE 0 UNITS MILES BACKGROUNDCOLOR 0 255 0 IMAGECOLOR 255 255 255 COLOR 128 128 128 OUTLINECOLOR 0 0 255 TRANSPARENT off END ##################################### LAYER NAME "richland" STATUS default TYPE polygon DATA "RICH_bndy" PROJECTION "init=epsg:26914" END CLASS STYLE COLOR 238 220 130 END END END ##################################### LAYER NAME "boundary" STATUS on TYPE line DATA "RC_boundary_05" CLASS STYLE COLOR 0 0 0 END END END ##################################### LAYER NAME "roads" STATUS on TYPE line DATA "roads_shp" CLASS STYLE COLOR 255 0 0 END END END ##################################### LAYER NAME "sections" STATUS on TYPE line DATA "RC_sections_05" CLASS STYLE COLOR 255 130 171 END END END ##################################### LAYER NAME "parecles" STATUS on TYPE line DATA "RC_parcels_05" CLASS STYLE COLOR 0 0 0 END END END END __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com _____ See the all-new, redesigned Yahoo.com. Check it out. _____ See the all-new, redesigned Yahoo.com. Check it out. _____ Talk is cheap. Use Yahoo! Messenger to make PC-to-Phone calls. Great rates starting at 1?/min. -------------- next part -------------- An HTML attachment was scrubbed... URL: From richard.greenwood at GMAIL.COM Mon Jul 17 10:54:59 2006 From: richard.greenwood at GMAIL.COM (Richard Greenwood) Date: Mon, 17 Jul 2006 11:54:59 -0600 Subject: dBox with mode=itemquery or itemnquery In-Reply-To: Message-ID: Steve, Thanks for the reply. Your approach makes total sense. I was sort of thinking along those lines, but I figured I'd check in with the experts before I tried to implement it myself. Different topic - I have a partial javascript port of the Proj.4 CS2CS program for client-side coordinate system transformations. I've got a demo of it with dBox which I hope to get on a public site soon. Rich -- Richard Greenwood richard.greenwood at gmail.com www.greenwoodmap.com On 7/17/06, Steve Lime wrote: > Rich: This is where AJAX can really help. The dbox code really doesn't help you here. It gives you the > tools to do something with the query result but not with the query itself. > > So, to do this you need 2 things or so: > > 1) a method that is called to trigger the search (e.g. myLookup), and process the response > 2) a query template(s) to package the results for use in the client > > One might look like: > > function myLookup(map, layer, item, term) > { > var URL = map.mapserver + '?map=' + map.mapfile + '&mode=itemquery&qlayer=' + layer + '&qitem=' + item + '&qstring=' + term; > var response = get_content(URL); > > // parse the response somehow, check for errors and such... (in this case the response is just a delimeted line, see template) > var tokens = response.split(','); > > map.setExtent(tokens[1], tokens[2], tokens[3], tokens[4]); > map.draw(); > } > > Two might look like (simple delimited response): > > [NAME],[shpminx],[shpminy],[shpmaxx],[shpmaxy] > > Does this sort of make sense? You could respond with XML and use that to drive some interface stuff- your choice. I suppose one could write a dbox add-on to turn myLookup into a more formal feature of the software with a callback and all. > > Steve > > >>> Richard Greenwood 7/17/2006 10:05:27 AM >>> > I am working with Steve's dBox and mapserv.js. It's great stuff. Does > anyone have any examples or suggestions for using mode=itemquery or > itemnquery? Specifically, how are you getting the new extent from the > server into the javascript map object? And how are you updating the > main map image (in mode=map you get an image back, but in > mode=anything_else you get an image in a directory on the server). > > Rich > > -- > Richard Greenwood > richard.greenwood at gmail.com > www.greenwoodmap.com > > From awiens at GMAIL.COM Mon Jul 17 11:51:24 2006 From: awiens at GMAIL.COM (Andrew Wiens) Date: Tue, 18 Jul 2006 06:51:24 +1200 Subject: ruby mapscript on mac os x In-Reply-To: <6.2.3.4.2.20060717094416.02f6b478@hobu.mail.iastate.edu> Message-ID: Thanks Howard. I got around the problem by installing an older version of swig. Is this a sufficient workaround? --Andy On 7/18/06, Howard Butler wrote: > > Andrew, > > It appears that Ruby is also affected by the method renaming bugaboo > (details about this can be found here > ). I updated > the check in CVS HEAD to look for Ruby as well as Python. None of > these changes are in the 4.8 branch. > > Howard > > At 02:31 PM 7/12/2006, Andrew Wiens wrote: > >------=_Part_12344_19872034.1152732661648 > >Content-Type: text/plain; charset=ISO-8859-1; format=flowed > >Content-Transfer-Encoding: 7bit > >Content-Disposition: inline > > > >Hello. I'm trying to get Ruby Mapscript setup to run on my mac (os x > >10.4.7Intel). It looks like it's building correctly, but when I try > >to run the > >shp2img program from the examples directory, I get the following error: > > > >dyld: NSLinkModule() error > >dyld: Symbol not found: _intarray_setitem > > Referenced from: /usr/local/lib/ruby/site_ruby/1.8/i686-darwin8.6.1 > >/mapscript.bundle > > Expected in: flat namespace > > > >Trace/BPT trap > > > >I've reinstalled SWIG to make sure there were no errors during that > process > >and it looked like it installed properly. Any ideas what I should try > next? > > > >Thanks, > >--Andy > > > >------=_Part_12344_19872034.1152732661648 > >Content-Type: text/html; charset=ISO-8859-1 > >Content-Transfer-Encoding: 7bit > >Content-Disposition: inline > > > >Hello.  I'm trying to get Ruby Mapscript setup to run on my mac > >(os x 10.4.7 Intel).  It looks like it's building correctly, > >but when I try to run the shp2img program from the examples > >directory, I get the following error: > >

dyld: NSLinkModule() error
dyld: Symbol not found: > >_intarray_setitem
  Referenced from: > >/usr/local/lib/ruby/site_ruby
/1.8/i686-darwin8.6.1 > /mapscript.bundle
  > >Expected in: flat namespace

Trace/BPT trap > >

I've reinstalled SWIG to make sure there were no errors > >during that process and it looked like it installed properly.  > >Any ideas what I should try next?

Thanks,
--Andy

> > > > > >------=_Part_12344_19872034.1152732661648-- > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From hobu at IASTATE.EDU Mon Jul 17 12:02:04 2006 From: hobu at IASTATE.EDU (Howard Butler) Date: Mon, 17 Jul 2006 14:02:04 -0500 Subject: ruby mapscript on mac os x In-Reply-To: Message-ID: Probably, although someone with a lot more ruby+swig experience than myself would probably be able to expound on reasons why you want to use newer swig versions if you're doing ruby. I think there were a number of memory management-related fixes plus some other improvements. If things seem to do what you need them to do with 1.3.27, I don't really think there is a compelling reason to switch. Howard At 01:51 PM 7/17/2006, Andrew Wiens wrote: >Thanks Howard. I got around the problem by installing an older version of >swig. Is this a sufficient workaround? > >--Andy From bart_doggers at YAHOO.COM Mon Jul 17 13:17:44 2006 From: bart_doggers at YAHOO.COM (Albert Anderson) Date: Mon, 17 Jul 2006 13:17:44 -0700 Subject: projection questions Message-ID: Hi, Can you put a projection file in a map. Then put regular shp files the layers? How can you do that? I am using mapserver 4 on a lunix machine. I put a projection file in my map file but I only have one of them. The rest are regular shp files. I cant seem to get the layers show up with my projection file. Thanks, Albert #This is Richland County Map Server NAME "Richland" SIZE 309 417 UNITS meters IMAGECOLOR 255 255 255 IMAGETYPE JPEG PROJECTION "init=epsg:26914" END SHAPEPATH "/home/mapdata/" EXTENT 626173.309834 5085113.091715 694065.960556 5176735.212592 #EXTENT -97.228391 45.907505 -96.628389 46.717217 #################################### # Symbol for drawing fat lines # SYMBOL NAME "BigLine" TYPE ELLIPSE POINTS 1 1 END END ##################################### # Symbol for drawing dashed lines # SYMBOL NAME "DashedLine" TYPE ELLIPSE POINTS 1 1 END STYLE 10 10 END END ##################################### # Symbol for drawing spots # SYMBOL NAME "Circle" FILLED true TYPE ellipse POINTS 1 1 END END ##################################### # Web object # WEB TEMPLATE '/var/www/htdocs/gismapserver_test_project_mod.html' IMAGEPATH '/var/www/htdocs/tmp/' IMAGEURL '/tmp/' END ##################################### # Reference map # REFERENCE IMAGE "/home/mapdata/richland.gif" SIZE 136 152 EXTENT -97.228391 45.907505 -96.628389 46.717217 STATUS ON COLOR -1 -1 -1 OUTLINECOLOR 0 0 0 END ##################################### # Scalebar # SCALEBAR LABEL COLOR 0 0 0 ANTIALIAS true SIZE small END POSITION lr INTERVALS 5 STATUS off SIZE 144 5 STYLE 0 UNITS miles BACKGROUNDCOLOR 0 255 0 IMAGECOLOR 255 255 255 COLOR 128 128 128 OUTLINECOLOR 0 0 255 TRANSPARENT off END ##################################### LAYER NAME "richland" STATUS default TYPE polygon DATA "RICH_bndy" PROJECTION "init=epsg:26914" END CLASS STYLE COLOR 238 220 130 END END END ##################################### LAYER NAME "boundary" STATUS default TYPE line DATA "RC_boundary_05" CLASS STYLE COLOR 0 0 0 END END END ##################################### LAYER NAME "roads" STATUS default TYPE line DATA "roads_shp" PROJECTION "init=epsg:4326" END CLASS STYLE COLOR 255 0 0 END END END ##################################### LAYER NAME "sections" STATUS default TYPE line DATA "RC_sections_05" CLASS STYLE COLOR 255 130 171 END END END ##################################### LAYER NAME "parecles" STATUS default TYPE line DATA "RC_parcels_05" CLASS STYLE COLOR 0 0 0 END END END END --------------------------------- See the all-new, redesigned Yahoo.com. Check it out. -------------- next part -------------- An HTML attachment was scrubbed... URL: From pramsey at REFRACTIONS.NET Sun Jul 16 08:28:03 2006 From: pramsey at REFRACTIONS.NET (Paul Ramsey) Date: Sun, 16 Jul 2006 08:28:03 -0700 Subject: User Authentication via WMS/WFS? In-Reply-To: <20060716061151.60398.qmail@web32201.mail.mud.yahoo.com> Message-ID: Curtis, Authentication is more of an HTTP concern, not a WMS concern. Do this at the web server level via Apache or IIS configuration. P On 15-Jul-06, at 11:11 PM, Curtis W. Ruck wrote: > Is there a way to force user authentication through WMS/WFS in > mapserver? > -------------- next part -------------- An HTML attachment was scrubbed... URL: From David.Fawcett at STATE.MN.US Mon Jul 17 13:27:30 2006 From: David.Fawcett at STATE.MN.US (Fawcett, David) Date: Mon, 17 Jul 2006 15:27:30 -0500 Subject: projection questions In-Reply-To: A<20060717201744.59698.qmail@web55705.mail.re3.yahoo.com> Message-ID: Albert, I am pretty sure that this has been pointed out before. MapServer does not use the ESRI .prj files. You simply need to define projection blocks in your mapfile for both your output projection and for the input projection of each data layer. To do this of course, you will need to know what projection your data is in. David. -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Albert Anderson Sent: Monday, July 17, 2006 3:18 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] projection questions Hi, Can you put a projection file in a map. Then put regular shp files the layers? How can you do that? I am using mapserver 4 on a lunix machine. I put a projection file in my map file but I only have one of them. The rest are regular shp files. I cant seem to get the layers show up with my projection file. Thanks, Albert #This is Richland County Map Server NAME "Richland" SIZE 309 417 UNITS meters IMAGECOLOR 255 255 255 IMAGETYPE JPEG PROJECTION "init=epsg:26914" END SHAPEPATH "/home/mapdata/" EXTENT 626173.309834 5085113.091715 694065.960556 5176735.212592 #EXTENT -97.228391 45.907505 -96.628389 46.717217 #################################### # Symbol for drawing fat lines # SYMBOL NAME "BigLine" TYPE ELLIPSE POINTS 1 1 END END ##################################### # Symbol for drawing dashed lines # SYMBOL NAME "DashedLine" TYPE ELLIPSE POINTS 1 1 END STYLE 10 10 END END ##################################### # Symbol for drawing spots # SYMBOL NAME "Circle" FILLED true TYPE ellipse POINTS 1 1 END END ##################################### # Web object # WEB TEMPLATE '/var/www/htdocs/gismapserver_test_project_mod.html' IMAGEPATH '/var/www/htdocs/tmp/' IMAGEURL '/tmp/' END ##################################### # Reference map # REFERENCE IMAGE "/home/mapdata/richland.gif" SIZE 136 152 EXTENT -97.228391 45.907505 -96.628389 46.717217 STATUS ON COLOR -1 -1 -1 OUTLINECOLOR 0 0 0 END ##################################### # Scalebar # SCALEBAR LABEL COLOR 0 0 0 ANTIALIAS true SIZE small END POSITION lr INTERVALS 5 STATUS off SIZE 144 5 STYLE 0 UNITS miles BACKGROUNDCOLOR 0 255 0 IMAGECOLOR 255 255 255 COLOR 128 128 128 OUTLINECOLOR 0 0 255 TRANSPARENT off END ##################################### LAYER NAME "richland" STATUS default TYPE polygon DATA "RICH_bndy" PROJECTION "init=epsg:26914" END CLASS STYLE COLOR 238 220 130 END END END ##################################### LAYER NAME "boundary" STATUS default TYPE line DATA "RC_boundary_05" CLASS STYLE COLOR 0 0 0 END END END ##################################### LAYER NAME "roads" STATUS default TYPE line DATA "roads_shp" PROJECTION "init=epsg:4326" END CLASS STYLE COLOR 255 0 0 END END END ##################################### LAYER NAME "sections" STATUS default TYPE line DATA "RC_sections_05" CLASS STYLE COLOR 255 130 171 END END END ##################################### LAYER NAME "parecles" STATUS default TYPE line DATA "RC_parcels_05" CLASS STYLE COLOR 0 0 0 END END END END ________________________________ See the all-new, redesigned Yahoo.com. Check it out. -------------- next part -------------- An HTML attachment was scrubbed... URL: From bpicinbono at WORLDONLINE.FR Mon Jul 17 13:38:53 2006 From: bpicinbono at WORLDONLINE.FR (Blaise) Date: Mon, 17 Jul 2006 22:38:53 +0200 Subject: multiple field query Message-ID: hi there I've searched a bit in the archives but I can't figure it out. I am able to query an single field of a dbf table this way : $amteacarf=42; $qLayer=$zeMap->getLayerByName("metacarflink"); $result=@$qLayer->queryByAttributes("METACARF",$ametacarf,MS_MULTIPLE); $res_count = $qLayer->getnumresults(); Now I would like to query a layer for (one field = something) OR (another field = something) I tryed this way : $qLayer=$zeMap->getLayerByName("tron"); $qstring="([CARF_T]=$acarf OR '[CARF_A]'=$acarf)" ; $result=@$qLayer->queryByAttributes('CARF_T',$qstring,MS_MULTIPLE); $res_count = $qLayer->getnumresults(); I tryed different syntaxes but I am a bit lost with single and double quote and the right syntax. For now, I am stuck with processing a double query, which might be more time consuming. Anyone can help, please ? Thanks Blaise From bart_doggers at YAHOO.COM Mon Jul 17 13:15:58 2006 From: bart_doggers at YAHOO.COM (Albert Anderson) Date: Mon, 17 Jul 2006 13:15:58 -0700 Subject: projection questions???? Message-ID: Hi, Can you put a projection file in a map. Then put regular shp files the layers? How can you do that? I am using mapserver 4 on a lunix machine. I put a projection file in my map file but I only have one of them. The rest are regular shp files. I cant seem to get the layers show up with my projection file. Thanks, Albert #This is Richland County Map Server NAME "Richland" SIZE 309 417 UNITS meters IMAGECOLOR 255 255 255 IMAGETYPE JPEG #PROJECTION #"init=epsg:26914" #END SHAPEPATH "/home/mapdata/" EXTENT 626173.309834 5085113.091715 694065.960556 5176735.212592 #EXTENT -97.228391 45.907505 -96.628389 46.717217 #################################### # Symbol for drawing fat lines # SYMBOL NAME "BigLine" TYPE ELLIPSE POINTS 1 1 END END ##################################### # Symbol for drawing dashed lines # SYMBOL NAME "DashedLine" TYPE ELLIPSE POINTS 1 1 END STYLE 10 10 END END ##################################### # Symbol for drawing spots # SYMBOL NAME "Circle" FILLED true TYPE ellipse POINTS 1 1 END END ##################################### # Web object # WEB TEMPLATE '/var/www/htdocs/gismapserver_test_project_mod.html' IMAGEPATH '/var/www/htdocs/tmp/' IMAGEURL '/tmp/' END ##################################### # Reference map # REFERENCE IMAGE "/home/mapdata/richland.gif" SIZE 136 152 EXTENT -97.228391 45.907505 -96.628389 46.717217 STATUS ON COLOR -1 -1 -1 OUTLINECOLOR 0 0 0 END ##################################### # Scalebar # SCALEBAR LABEL COLOR 0 0 0 ANTIALIAS true SIZE small END POSITION lr INTERVALS 5 STATUS off SIZE 144 5 STYLE 0 UNITS miles BACKGROUNDCOLOR 0 255 0 IMAGECOLOR 255 255 255 COLOR 128 128 128 OUTLINECOLOR 0 0 255 TRANSPARENT off END ##################################### LAYER NAME "richland" STATUS default TYPE polygon DATA "RICH_bndy" PROJECTION "init=epsg:26914" END CLASS STYLE COLOR 238 220 130 END END END ##################################### LAYER NAME "boundary" STATUS default TYPE line DATA "RC_boundary_05" CLASS STYLE COLOR 0 0 0 END END END ##################################### LAYER NAME "roads" STATUS default TYPE line DATA "roads_shp" PROJECTION "init=epsg:4326" END CLASS STYLE COLOR 255 0 0 END END END ##################################### LAYER NAME "sections" STATUS default TYPE line DATA "RC_sections_05" CLASS STYLE COLOR 255 130 171 END END END ##################################### LAYER NAME "parecles" STATUS default TYPE line DATA "RC_parcels_05" CLASS STYLE COLOR 0 0 0 END END END END --------------------------------- Talk is cheap. Use Yahoo! Messenger to make PC-to-Phone calls. Great rates starting at 1?/min. -------------- next part -------------- An HTML attachment was scrubbed... URL: From szekerest at GMAIL.COM Mon Jul 17 14:02:18 2006 From: szekerest at GMAIL.COM (Tamas Szekeres) Date: Mon, 17 Jul 2006 23:02:18 +0200 Subject: Mapscript CSharp (C#) Memory Leak? In-Reply-To: <008501c6a9b2$58b81650$650ba8c0@dld410> Message-ID: David, The next ms4w is on the way, but i don't know about the planned release date so far. The ms4w package is compiled with VS2003, the C# interface targets the MS.NET framework 1.1 accordingly. If you develop with VS2005 you might want to recompile mapserver and mapscript with VS2005. I have such a compilation and ready to send to you but i haven't tested it so much like ms4w is tested by Jeff McKenna and the dmsolutions guys. And compiling all of the corresponding libraries with VS2005 is a hard row to hoe ;-) Best Regards, Tamas On Mon, 17 Jul 2006 10:04:47 -0500, David Lowther wrote: >Thanks Tamas! > >I checked the MS4W page (I'm not compiling myself) and it doesn't look like >it has been updated to 4.8.4. Does anyone know the schedule for the update? > >Thanks, > >David Lowther > > From szekerest at GMAIL.COM Mon Jul 17 14:09:32 2006 From: szekerest at GMAIL.COM (Tamas Szekeres) Date: Mon, 17 Jul 2006 23:09:32 +0200 Subject: Problem with the mailing list (Rejected posting to MAPSERVER-USERS@LISTS.UMN.EDU) In-Reply-To: Message-ID: Hi, When posting a message using the WEB reply method the message text is replaces with: "DD: MESSAGE" And i get the following reply: -----Original Message----- From: University of Minnesota LISTSERV Server (14.3) [mailto:LISTSERV at LISTS.UMN.EDU] Sent: Monday, July 17, 2006 11:00 PM To: Tamas Szekeres Subject: Rejected posting to MAPSERVER-USERS at LISTS.UMN.EDU Your message is being returned to you unprocessed because it appears to have already been distributed to the MAPSERVER-USERS list. That is, a message with identical text (but possibly with different mail headers) has been posted to the list recently, either by you or by someone else. If you have reason to resend this message to the list (for instance because you have been notified of a hardware failure with loss of data), please alter the text of the message in some way and resend it to the list. Note that altering the "Subject:" line or adding blank lines at the top or bottom of the message is not sufficient; you should instead add a sentence or two at the top explaining why you are resending the message, so that the other subscribers understand why they are getting two copies of the same message. Can anyone explain this behaviour. It also applies to the mapserver-dev list. Thanks, Tamas -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.394 / Virus Database: 268.10.1/389 - Release Date: 2006.07.14. From ed at TOPOZONE.COM Mon Jul 17 14:29:55 2006 From: ed at TOPOZONE.COM (Ed McNierney) Date: Mon, 17 Jul 2006 17:29:55 -0400 Subject: User Authentication via WMS/WFS? Message-ID: Curtis & Paul - In practice, authentication is more of a user interface concern. You can't force an application (ESRI's ArcMap, for example) to provide UI to enter a username and password if that application doesn't provide that UI (and it doesn't). This limits the HTTP authentication options available to WMS providers, and it requires a relatively unpalatable URL (with username and password embedded in it) to support even Basic authentication. But Curtis, it's hard to tell what your question is when it's only one sentence. If you can be more specific about what you're trying to do you'll get more specific help and fewer random observations tangentially related to your topic . - Ed Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 ed at topozone.com (978) 251-4242 ________________________________ From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Paul Ramsey Sent: Sunday, July 16, 2006 11:28 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] User Authentication via WMS/WFS? Curtis, Authentication is more of an HTTP concern, not a WMS concern. Do this at the web server level via Apache or IIS configuration. P On 15-Jul-06, at 11:11 PM, Curtis W. Ruck wrote: Is there a way to force user authentication through WMS/WFS in mapserver? -------------- next part -------------- An HTML attachment was scrubbed... URL: From szekerest at GMAIL.COM Mon Jul 17 14:40:09 2006 From: szekerest at GMAIL.COM (Tamas Szekeres) Date: Mon, 17 Jul 2006 23:40:09 +0200 Subject: CSharp-Mapscript: setSymbolSet doesn't work?! In-Reply-To: <20060717141302.215740@gmx.net> Message-ID: Christian, I'm a bit uncertain if you have added that symbolset to your map (myMapHandler.Map may be another map reference :? ). I would prefer using myMap.symbolset.appendSymbol instead of using setsymbolset. If you are using constructors like "new classObj(myLayer)" and "new styleObj(c)" you might want to use mapserver 4.8.4 to avoid nasty heap corruptions and memory reference errors ;-) In that case using new layerObj(mymap) seems better than insertLayer since the extra layer copy is avoided. Best Regards, Tamas 2006/7/17, Christian Wilmes : > Hi All, > > I try to display a WFS-Layer with my application but I got only small points instead of the symbol in my Symbolset. > > My Symbolset looks like that: > SYMBOLSET > SYMBOL > NAME "Fahne" > TYPE VECTOR > FILLED TRUE > POINTS > 1 5 > 1 3 > 3 2 > 1 1 > 1 3 > END > END > END > > Some Code from the application: > mapObj myMap = new mapObj(""); > myMapHandler.Map.setSymbolSet(Environment.CurrentDirectory + @"\test.sym"); > : > layerObj myLayer = new layerObj(null); > myLayer.name = "RosoftWFS"; > myLayer.Type = MS_LAYER_TYPE.MS_LAYER_POINT; > myLayer.Connectiontype = MS_CONNECTION_TYPE.MS_WFS; > myLayer.Connection = "http://localhost/cgi-bin/mapserv.exe?"; > myLayer.metadata.set("wfs_typename", "myWFS"); > myLayer.metadata.set("wfs_version","1.0.0"); > myLayer.metadata.set("wfs_request_method", "GET"); > myLayer.metadata.set("wfs_service", "WFS"); > > myLayer.setProjection("EPSG:31467"); > classObj c = new classObj(myLayer); > c.name = "test"; > styleObj style = new styleObj(c); > style.symbolname = "Fahne"; > style.size = 150; > style.color = new colorObj(255, 0, 255, 0); > : > myMap.insertLayer(myLayer, -1); > > > Does anybody have an idea where to find the mistake? > > > Best Regards > Christian > -- > > > "Feel free" ? 10 GB Mailbox, 100 FreeSMS/Monat ... > Jetzt GMX TopMail testen: http://www.gmx.net/de/go/topmail > From Steve.Lime at DNR.STATE.MN.US Mon Jul 17 14:51:25 2006 From: Steve.Lime at DNR.STATE.MN.US (Steve Lime) Date: Mon, 17 Jul 2006 16:51:25 -0500 Subject: multiple field query Message-ID: You can create multiple field queries, it's just a matter of getting the query string right, much like getting SQL right I guess except that might be easier ;-)... Two things to remember: - in MapServer ' = ", you can quote strings with either (in pairs) - strings *must* be quoted on both sides of the operand So: $qstring="([CARF_T]=$acarf OR '[CARF_A]'=$acarf)" ; should probably be: $qstring = "('[CARF_T]'='$acarf' OR '[CARF_A]'='$acarf')" ; Steve Stephen Lime Data & Applications Manager Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-259-5473 >>> Blaise 7/17/2006 3:38:53 PM >>> hi there I've searched a bit in the archives but I can't figure it out. I am able to query an single field of a dbf table this way : $amteacarf=42; $qLayer=$zeMap->getLayerByName("metacarflink"); $result=@$qLayer->queryByAttributes("METACARF",$ametacarf,MS_MULTIPLE); $res_count = $qLayer->getnumresults(); Now I would like to query a layer for (one field = something) OR (another field = something) I tryed this way : $qLayer=$zeMap->getLayerByName("tron"); $qstring="([CARF_T]=$acarf OR '[CARF_A]'=$acarf)" ; $result=@$qLayer->queryByAttributes('CARF_T',$qstring,MS_MULTIPLE); $res_count = $qLayer->getnumresults(); I tryed different syntaxes but I am a bit lost with single and double quote and the right syntax. For now, I am stuck with processing a double query, which might be more time consuming. Anyone can help, please ? Thanks Blaise From bpicinbono at WORLDONLINE.FR Mon Jul 17 15:05:57 2006 From: bpicinbono at WORLDONLINE.FR (Blaise) Date: Tue, 18 Jul 2006 00:05:57 +0200 Subject: multiple field query In-Reply-To: Message-ID: Works great. Thanks a lot, Steve. Blaise Le Lundi 17 Juillet 2006 23:51, Steve Lime a ?crit?: > You can create multiple field queries, it's just a matter of getting the > query string right, much like getting SQL right I guess except that might > be easier ;-)... > > Two things to remember: > > - in MapServer ' = ", you can quote strings with either (in pairs) > - strings *must* be quoted on both sides of the operand > > So: > > $qstring="([CARF_T]=$acarf OR '[CARF_A]'=$acarf)" ; > > should probably be: > > $qstring = "('[CARF_T]'='$acarf' OR '[CARF_A]'='$acarf')" ; > > Steve > > Stephen Lime > Data & Applications Manager > > Minnesota DNR > 500 Lafayette Road > St. Paul, MN 55155 > 651-259-5473 > > >>> Blaise 7/17/2006 3:38:53 PM >>> > > hi there > I've searched a bit in the archives but I can't figure it out. > I am able to query an single field of a dbf table this way : > > $amteacarf=42; > $qLayer=$zeMap->getLayerByName("metacarflink"); > $result=@$qLayer->queryByAttributes("METACARF",$ametacarf,MS_MULTIPLE); > $res_count = $qLayer->getnumresults(); > > Now I would like to query a layer for (one field = something) OR (another > field = something) > I tryed this way : > > $qLayer=$zeMap->getLayerByName("tron"); > $qstring="([CARF_T]=$acarf OR '[CARF_A]'=$acarf)" ; > $result=@$qLayer->queryByAttributes('CARF_T',$qstring,MS_MULTIPLE); > $res_count = $qLayer->getnumresults(); > > I tryed different syntaxes but I am a bit lost with single and double quote > and the right syntax. > For now, I am stuck with processing a double query, which might be more > time consuming. > Anyone can help, please ? > Thanks > Blaise From bart_doggers at YAHOO.COM Mon Jul 17 14:55:20 2006 From: bart_doggers at YAHOO.COM (Albert Anderson) Date: Mon, 17 Jul 2006 14:55:20 -0700 Subject: projection questions In-Reply-To: <6246727221874A4FB8D3F9BBC37D9BD5FB07CA@s-sp22.pca.state.mn.us> Message-ID: Hi, I got it working after I sent the email. Thanks, Albert "Fawcett, David" wrote:Message Albert, I am pretty sure that this has been pointed out before. MapServer does not use the ESRI .prj files. You simply need to define projection blocks in your mapfile for both your output projection and for the input projection of each data layer. To do this of course, you will need to know what projection your data is in. David. -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Albert Anderson Sent: Monday, July 17, 2006 3:18 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] projection questions Hi, Can you put a projection file in a map. Then put regular shp files the layers? How can you do that? I am using mapserver 4 on a lunix machine. I put a projection file in my map file but I only have one of them. The rest are regular shp files. I cant seem to get the layers show up with my projection file. Thanks, Albert #This is Richland County Map Server NAME "Richland" SIZE 309 417 UNITS meters IMAGECOLOR 255 255 255 IMAGETYPE JPEG PROJECTION "init=epsg:26914" END SHAPEPATH "/home/mapdata/" EXTENT 626173.309834 5085113.091715 694065.960556 5176735.212592 #EXTENT -97.228391 45.907505 -96.628389 46.717217 #################################### # Symbol for drawing fat lines # SYMBOL NAME "BigLine" TYPE ELLIPSE POINTS 1 1 END END ##################################### # Symbol for drawing dashed lines # SYMBOL NAME "DashedLine" TYPE ELLIPSE POINTS 1 1 END STYLE 10 10 END END ##################################### # Symbol for drawing spots # SYMBOL NAME "Circle" FILLED true TYPE ellipse POINTS 1 1 END END ##################################### # Web object # WEB TEMPLATE '/var/www/htdocs/gismapserver_test_project_mod.html' IMAGEPATH '/var/www/htdocs/tmp/' IMAGEURL '/tmp/' END ##################################### # Reference map # REFERENCE IMAGE "/home/mapdata/richland.gif" SIZE 136 152 EXTENT -97.228391 45.907505 -96.628389 46.717217 STATUS ON COLOR -1 -1 -1 OUTLINECOLOR 0 0 0 END ##################################### # Scalebar # SCALEBAR LABEL COLOR 0 0 0 ANTIALIAS true SIZE small END POSITION lr INTERVALS 5 STATUS off SIZE 144 5 STYLE 0 UNITS miles BACKGROUNDCOLOR 0 255 0 IMAGECOLOR 255 255 255 COLOR 128 128 128 OUTLINECOLOR 0 0 255 TRANSPARENT off END ##################################### LAYER NAME "richland" STATUS default TYPE polygon DATA "RICH_bndy" PROJECTION "init=epsg:26914" END CLASS STYLE COLOR 238 220 130 END END END ##################################### LAYER NAME "boundary" STATUS default TYPE line DATA "RC_boundary_05" CLASS STYLE COLOR 0 0 0 END END END ##################################### LAYER NAME "roads" STATUS default TYPE line DATA "roads_shp" PROJECTION "init=epsg:4326" END CLASS STYLE COLOR 255 0 0 END END END ##################################### LAYER NAME "sections" STATUS default TYPE line DATA "RC_sections_05" CLASS STYLE COLOR 255 130 171 END END END ##################################### LAYER NAME "parecles" STATUS default TYPE line DATA "RC_parcels_05" CLASS STYLE COLOR 0 0 0 END END END END --------------------------------- See the all-new, redesigned Yahoo.com. Check it out. --------------------------------- See the all-new, redesigned Yahoo.com. Check it out. -------------- next part -------------- An HTML attachment was scrubbed... URL: From szekerest at GMAIL.COM Mon Jul 17 16:26:29 2006 From: szekerest at GMAIL.COM (Tamas Szekeres) Date: Tue, 18 Jul 2006 01:26:29 +0200 Subject: Mapscript CSharp (C#) Memory Leak? In-Reply-To: <44bc05d4.3a9aa04e.223b.ffffcd57SMTPIN_ADDED@mx.gmail.com> Message-ID: David, Here is your previous project with the binaries included: http://members.chello.hu/szekeres.tamas1/VB.zip I have also uploaded the other binaries: http://members.chello.hu/szekeres.tamas1/bin.zip Type mapserv -v to determine the libraries enabled. I have used the development version and only mapserver and mapscript was compiled with VS2005. (Would be a problem is memory segments are passed between the libraries) I have been thinking of how to release the binaries for VS2005 and which combinations of the libraries should be compiled in but i gave it up. It would be more convenient to make Howard's buildkit capable to compile with VS2005. I should work on it but it is difficult to track the intermediate changes with the current approach. Maybe using an SVN repository would be sufficient. Let me know if the 4.8.4 version and/or support for other libraries are needed. Tamas 2006/7/17, Dlowther : > Tamas, > > I'd be happy to use at my own risk - does your build include wms server and client maybe it is a kitchen sink build like ms4w... > > I should be able to receive a large zip no problem via email or could download if you preferred. > > Thanks! > > Dave > > > -----Original Message----- > From: "Tamas Szekeres" > To: "dlowther at coordinatesolutions.com" > Cc: MAPSERVER-USERS at lists.umn.edu > Sent: 7/17/06 4:02 PM > Subject: Re: [UMN_MAPSERVER-USERS] Mapscript CSharp (C#) Memory Leak? > > David, > > The next ms4w is on the way, but i don't know about the planned > release date so far. > The ms4w package is compiled with VS2003, the C# interface targets the > MS.NET framework 1.1 accordingly. > If you develop with VS2005 you might want to recompile mapserver and > mapscript with VS2005. I have such a compilation and ready to send to > you but i haven't tested it so much like ms4w is tested by Jeff > McKenna and the dmsolutions guys. And compiling all of the > corresponding libraries with VS2005 is a hard row to hoe ;-) > > > Best Regards, > > Tamas > > > On Mon, 17 Jul 2006 10:04:47 -0500, David Lowther > wrote: > > >Thanks Tamas! > > > >I checked the MS4W page (I'm not compiling myself) and it doesn't look like > >it has been updated to 4.8.4. Does anyone know the schedule for the update? > > > > > From ollerery at ENGR.ORST.EDU Mon Jul 17 16:43:54 2006 From: ollerery at ENGR.ORST.EDU (Ryan Ollerenshaw) Date: Mon, 17 Jul 2006 16:43:54 -0700 Subject: Projection support is not available In-Reply-To: Message-ID: I installed MapServer with proj4 but i am getting the following error: Warning: [MapServer Error]: loadProjection(): Projection support is not available. in /usr/local/mapserver/htdocs/simplemap.phtml on line 5 Any help with this would be great: PHP code: Mapfile: MAP NAME USA1 STATUS ON SIZE 800 500 IMAGETYPE PNG IMAGECOLOR 240 240 240 SHAPEPATH "../mars_data/" EXTENT -8000000 300000 5000000 1500000 UNITS METERS PROJECTION "proj=lcc" "lat_1=32" "lat_2=44" "lat_0=38" "lon_0=-100" "x_0=0" "y_0=0" "ellps=GRS80" "datum=NAD83" END WEB IMAGEPATH "/tmp/ms_tmp/" IMAGEURL "/ms_tmp/" END LAYER NAME "US state boundaries" TYPE POLYGON STATUS ON DATA "statesp020" PROJECTION "proj=latlong" "ellps=GRS80" "datum=NAD83" END CLASS NAME "US states" OUTLINECOLOR 60 60 60 COLOR 255 255 0 SYMBOL 0 END END END From angusd at MIDWESTSURVEYS.COM Mon Jul 17 16:03:05 2006 From: angusd at MIDWESTSURVEYS.COM (Angus Dickey) Date: Mon, 17 Jul 2006 17:03:05 -0600 Subject: User Authentication via WMS/WFS? In-Reply-To: <4BF377919225F449BB097CB76FFE9BC83DDF7B@ptolemy.topozone.com> Message-ID: An embedded and charset-unspecified text was scrubbed... Name: not available URL: -------------- next part -------------- An HTML attachment was scrubbed... URL: From jzich at EMORY.EDU Mon Jul 17 16:59:19 2006 From: jzich at EMORY.EDU (Jan Zich) Date: Mon, 17 Jul 2006 19:59:19 -0400 Subject: Java mapscript in Windows Message-ID: Hello, I'm a beginner to MapServer and I'm struggling with MapScript Java API in Windows. There seems to be something wrong with the naming of functions in mapscript.dll and edu.umn.gis.mapscript.mapscriptJNI. It seems that some functions are mapped correctly to their C equivalents, but some not. For instance, the static method edu.umn.gis.mapscript.mapscriptJNI.set_layerObj_name should be mapped to (is that right?) Java_edu_umn_gis_mapscript_mapscriptJNI_set_1layerObj_1name. But there is no such function in mapscript.dll. Instead there is _Java_edu_umn_gis_mapscript_mapscriptJNI_layerObj_1name_1set And, indeed, I get an exception java.lang.UnsatisfiedLinkError: set_layerObj_name On the other hand, mapscript_wrap.c seems to be correct since there is Java_edu_umn_gis_mapscript_mapscriptJNI_set_1layerObj_1name Also, some methods seem to work. For instance, the following piece of code works: System.loadLibrary("mapscript"); mapObj map = new mapObj("test.map"); imageObj img = map.draw(); img.save("test.gif", map); Is it possible that some files of some older version of MapScript were mixed with a newer version? Thank you Jan From woodbri at SWOODBRIDGE.COM Mon Jul 17 17:36:08 2006 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Mon, 17 Jul 2006 20:36:08 -0400 Subject: Centos - PHP5 - Apache2 - PHP/Mapscript - ka-map???? Message-ID: Hi all, Sorry for the cross post. I'm trying to help someone get a system running with Centos - PHP5 - Apache2 - PHP/Mapscript - ka-map Mapserver CGI works. ka-map client side works and makes requests to tile.php but all the responses are zero bytes. If I snag the tile.php request from the Page Info -> Media panel and paste it into the browser I get a zero byte response, but no errors, just nothing. So I am assume, that the process is dying, but I have no clue why and I'm not sure were to start debugging it. Oh and, phpinfo() says mapscript is installed and php_gd is installed. Does anyone have any insight into Centos - PHP5 - Apache2 ? I have have never used any of these with php/mapscript. TIA, -SteveW From dlowther at COORDINATESOLUTIONS.COM Mon Jul 17 18:31:54 2006 From: dlowther at COORDINATESOLUTIONS.COM (David Lowther) Date: Mon, 17 Jul 2006 20:31:54 -0500 Subject: Mapscript CSharp (C#) Memory Leak? In-Reply-To: Message-ID: Tamas, This works like a charm. Thanks! David Lowther -----Original Message----- From: Tamas Szekeres [mailto:szekerest at gmail.com] Sent: Monday, July 17, 2006 6:26 PM To: Dlowther Cc: MAPSERVER-USERS at lists.umn.edu Subject: Re: [UMN_MAPSERVER-USERS] Mapscript CSharp (C#) Memory Leak? David, Here is your previous project with the binaries included: http://members.chello.hu/szekeres.tamas1/VB.zip I have also uploaded the other binaries: http://members.chello.hu/szekeres.tamas1/bin.zip Type mapserv -v to determine the libraries enabled. I have used the development version and only mapserver and mapscript was compiled with VS2005. (Would be a problem is memory segments are passed between the libraries) I have been thinking of how to release the binaries for VS2005 and which combinations of the libraries should be compiled in but i gave it up. It would be more convenient to make Howard's buildkit capable to compile with VS2005. I should work on it but it is difficult to track the intermediate changes with the current approach. Maybe using an SVN repository would be sufficient. Let me know if the 4.8.4 version and/or support for other libraries are needed. Tamas 2006/7/17, Dlowther : > Tamas, > > I'd be happy to use at my own risk - does your build include wms server and client maybe it is a kitchen sink build like ms4w... > > I should be able to receive a large zip no problem via email or could download if you preferred. > > Thanks! > > Dave > > > -----Original Message----- > From: "Tamas Szekeres" > To: "dlowther at coordinatesolutions.com" > Cc: MAPSERVER-USERS at lists.umn.edu > Sent: 7/17/06 4:02 PM > Subject: Re: [UMN_MAPSERVER-USERS] Mapscript CSharp (C#) Memory Leak? > > David, > > The next ms4w is on the way, but i don't know about the planned > release date so far. > The ms4w package is compiled with VS2003, the C# interface targets the > MS.NET framework 1.1 accordingly. > If you develop with VS2005 you might want to recompile mapserver and > mapscript with VS2005. I have such a compilation and ready to send to > you but i haven't tested it so much like ms4w is tested by Jeff > McKenna and the dmsolutions guys. And compiling all of the > corresponding libraries with VS2005 is a hard row to hoe ;-) > > > Best Regards, > > Tamas > > > On Mon, 17 Jul 2006 10:04:47 -0500, David Lowther > wrote: > > >Thanks Tamas! > > > >I checked the MS4W page (I'm not compiling myself) and it doesn't look like > >it has been updated to 4.8.4. Does anyone know the schedule for the update? > > > > > From jzich at EMORY.EDU Mon Jul 17 18:49:46 2006 From: jzich at EMORY.EDU (Jan Zich) Date: Mon, 17 Jul 2006 21:49:46 -0400 Subject: Java mapscript in Windows In-Reply-To: <44BC2457.4020907@emory.edu> Message-ID: OK, my mistake. I've just found out that I've mixed accidentally the JAR from version 4.8.4 with the C library from version 4.8.3. Sorry for the post, but it was really puzzling. Jan Zich wrote: > Hello, > > I'm a beginner to MapServer and I'm struggling with MapScript Java API > in Windows. There seems to be something wrong with the naming of > functions in mapscript.dll and edu.umn.gis.mapscript.mapscriptJNI. It > seems that some functions are mapped correctly to their C equivalents, > but some not. For instance, the static method > > edu.umn.gis.mapscript.mapscriptJNI.set_layerObj_name > > should be mapped to (is that right?) > > Java_edu_umn_gis_mapscript_mapscriptJNI_set_1layerObj_1name. > > But there is no such function in mapscript.dll. Instead there is > > _Java_edu_umn_gis_mapscript_mapscriptJNI_layerObj_1name_1set > > And, indeed, I get an exception > > java.lang.UnsatisfiedLinkError: set_layerObj_name > > On the other hand, mapscript_wrap.c seems to be correct since there is > > Java_edu_umn_gis_mapscript_mapscriptJNI_set_1layerObj_1name > > Also, some methods seem to work. For instance, the following piece of > code works: > > System.loadLibrary("mapscript"); > mapObj map = new mapObj("test.map"); > imageObj img = map.draw(); > img.save("test.gif", map); > > Is it possible that some files of some older version of MapScript were > mixed with a newer version? > > Thank you > Jan From siukola.antti at GMAIL.COM Mon Jul 17 23:04:33 2006 From: siukola.antti at GMAIL.COM (antti siukola) Date: Tue, 18 Jul 2006 09:04:33 +0300 Subject: Mapserver compile error In-Reply-To: <35469E27904CA04687795AF87D26930001CDE4@september.ecotrust.org> Message-ID: Hi! As Ubuntu doesn't have ld.so.conf and it doesn't use /usr/local but /usr only I solved this by compiling gdal with --prefix=/usr. Thank's Aaron! You pointed me to the right direction! Antti S On 7/17/06, Aaron Racicot wrote: > Antti, > You will need to tell your system where to find the gdal dynamically > loaded library after install. I believe that it usually ends up in > /usr/local/lib/ and if it is not part of your LD_LIBRARY_PATH then you > can either: > > 1) Update LD_LIBRARY_PATH in your environment settings to include the > location of libgdal.so.1 > 2) Add the path for libgdal.so.1 to /etc/ld.so.conf and run > /sbin/ldconfig > > Hope this helps... > > Aaron > > +----------------------------------------+ > | Aaron Racicot | aaronr at ecotrust.org | > | GIS Programmer | 503.467.0759 | > +----------------------------------------+ > | e c o t r u s t | > | Jean Vollum Natural Capital Center | > | 721 NW Ninth Avenue | > | Suite 200 | > | Portland, OR 97209 | > | www.ecotrust.org | > +----------------------------------------+ > > > -----Original Message----- > From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On > Behalf Of antti siukola > Sent: Monday, July 17, 2006 3:29 AM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] Mapserver compile error > > > Reply to myself > > I got it to work after removing gdal packages that I was installed from > Ubuntus repository since they were the duplicates with my manually > installed gdal. So, after that I recompiled gdal manually and compiled > mapserver and copied the php_mapscript.so to the php extension directory > but then I get this error: > > Warning: dl() [function.dl]: Unable to load dynamic library > '/usr/lib/php5/20041030/php_mapscript.so' - libgdal.so.1: cannot open > shared object file: No such file or directory > > What now? > > Regards, > > Antti S > > On 7/17/06, antti siukola wrote: > > Hi! > > > > I'm compiling the most recent MapServer and I get this OGR related > > error on make: > > > > ./libmap.a(mapogr.o): In function `msOGRFileWhichShapes(layer_obj*, > > rectObj, ms_ogr_file_info_t*)':mapogr.cpp:(.text+0x38e): undefined > > reference to `OGRLineString::setPoint(int, double, double)' > > :mapogr.cpp:(.text+0x3ac): undefined reference to > > `OGRLineString::setPoint(int, double, double)' > > :mapogr.cpp:(.text+0x3ca): undefined reference to > > `OGRLineString::setPoint(int, double, double)' > > :mapogr.cpp:(.text+0x3e8): undefined reference to > > `OGRLineString::setPoint(int, double, double)' > > :mapogr.cpp:(.text+0x406): undefined reference to > > `OGRLineString::setPoint(int, double, double)' > > ./libmap.a(mapogr.o): In function > > `msOGRShapeToWKT':mapogr.cpp:(.text+0xa15): undefined reference to > > `OGR_G_SetPoint_2D' > > :mapogr.cpp:(.text+0xa65): undefined reference to `OGR_G_AddPoint_2D' > > :mapogr.cpp:(.text+0xaf1): undefined reference to `OGR_G_AddPoint_2D' > > collect2: ld returned 1 exit status > > make: *** [shp2img] Error 1 > > > > I found some info from mailing list archive: > > > > "This generally means you have two copies of GDAL/OGR on your system. > > MapServer is getting built using the include files from one, but > > linked against the libraries of another. I would suggest you try and > > strip the older GDAL/OGR off completely, or muck around with the > > MapServer makefile to ensure that only one version is getting used > > consistently. Basically fiddling with the order of -I include > > directives and -L library paths." -Frank Warmerdam, > > warmerdam at pobox.com > > > > So I ran make clean on gdal and recompiled it and then tried to > > compile mapserver but got the same error again. > > > > Regards, > > > > Antti S > > > From lucamarle at GMAIL.COM Mon Jul 17 23:07:23 2006 From: lucamarle at GMAIL.COM (luca marletta) Date: Tue, 18 Jul 2006 08:07:23 +0200 Subject: oriented line with symbols Message-ID: Hi list, I need to draw a line with orientation. I'm doing it with a TRUETYPE symbols ">" and it works but I cannot get the way my shape line gets oriented. I thought the rule was from lower vertex to higher in the line but it doesn't respect this rule and so what it the real one? How can I keep control of orientation drawing a shape line? could someone help me please? thanks a lot Luca -- luca marletta From jjk_saji at YAHOO.COM Mon Jul 17 23:21:25 2006 From: jjk_saji at YAHOO.COM (John Joseph) Date: Tue, 18 Jul 2006 07:21:25 +0100 Subject: Interface for managing mailing list options Message-ID: Hi I want to change the mailing list options for my account , how to mangage/change it any url for this purpose Thanks Joseph John ___________________________________________________________ Try the all-new Yahoo! Mail. "The New Version is radically easier to use" ? The Wall Street Journal http://uk.docs.yahoo.com/nowyoucan.html From b.vdeijnden at AGI.RWS.MINVENW.NL Mon Jul 17 23:28:05 2006 From: b.vdeijnden at AGI.RWS.MINVENW.NL (Eijnden, Bart van den (AGI)) Date: Tue, 18 Jul 2006 08:28:05 +0200 Subject: Interface for managing mailing list options Message-ID: Go here: http://lists.umn.edu/archives/mapserver-users.html and choose: Join or leave the list (or change settings). Best regards, Bart -----Oorspronkelijk bericht----- Van: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]Namens John Joseph Verzonden: dinsdag 18 juli 2006 8:21 Aan: MAPSERVER-USERS at LISTS.UMN.EDU Onderwerp: [UMN_MAPSERVER-USERS] Interface for managing mailing list options Hi I want to change the mailing list options for my account , how to mangage/change it any url for this purpose Thanks Joseph John ___________________________________________________________ Try the all-new Yahoo! Mail. "The New Version is radically easier to use" - The Wall Street Journal http://uk.docs.yahoo.com/nowyoucan.html Disclaimer ************************************************************************ Aan dit bericht kunnen geen rechten worden ontleend. Dit bericht is uitsluitend bestemd voor de geadresseerde. Als u dit bericht per abuis hebt ontvangen, wordt u verzocht het te vernietigen en de afzender te informeren. Wij adviseren u om bij twijfel over de juistheid of de volledigheid van de mail contact met afzender op te nemen. This message shall not constitute any rights or obligations. This message is intended solely for the addressee. If you have received this message in error, please delete it and notify the sender immediately. When in doubt whether this message is correct or complete, please contact the sender. ************************************************************************ From umberto.nicoletti at GMAIL.COM Mon Jul 17 23:29:32 2006 From: umberto.nicoletti at GMAIL.COM (Umberto Nicoletti) Date: Tue, 18 Jul 2006 08:29:32 +0200 Subject: Centos - PHP5 - Apache2 - PHP/Mapscript - ka-map???? In-Reply-To: <44BC2CF8.6040104@swoodbridge.com> Message-ID: Just a guess, but maybe it's because of SELinux; to disable it reboot and pass the proper boot flag to the kernel or edit the file /etc/selinux/config and modify the SELINUX entry to look like this: SELINUX=disabled (and reboot). I think you should get dmesg entries for all operations denied by SELinux (I do for Novell's AppArmor). HTH, Umberto On 7/18/06, Stephen Woodbridge wrote: > Hi all, > > Sorry for the cross post. > > I'm trying to help someone get a system running with > > Centos - PHP5 - Apache2 - PHP/Mapscript - ka-map > > Mapserver CGI works. ka-map client side works and makes requests to > tile.php but all the responses are zero bytes. If I snag the tile.php > request from the Page Info -> Media panel and paste it into the browser > I get a zero byte response, but no errors, just nothing. > > So I am assume, that the process is dying, but I have no clue why and > I'm not sure were to start debugging it. Oh and, phpinfo() says > mapscript is installed and php_gd is installed. > > Does anyone have any insight into Centos - PHP5 - Apache2 ? I have have > never used any of these with php/mapscript. > > TIA, > -SteveW > From dovidio at PLANETEK.IT Tue Jul 18 00:44:24 2006 From: dovidio at PLANETEK.IT (Fabio D'Ovidio) Date: Tue, 18 Jul 2006 09:44:24 +0200 Subject: REMOTE_OWS_TYPE In-Reply-To: <2576812186CDD411BF1500508B6DCE950F0095A6@ecnwri1.ontario.int.ec.gc.ca> Message-ID: I'd like to manage dinamically spatial and no-spatial filters from the client in cascading configuration WMS+ WFS ! So the client (browser) requests map to WMS and WMS takes data from WFS. In this cascading there are two problms : 1) The filters are applicable only server side ! Client doesn't put wfs-filter in the WMS request! 2)If the client writes filter in SLD mode in the WMS request WMS downloads all of the GML file and than works with the filter !!!! So I'd like to try with OWS parameters to see how it works. Thank you ! ******************************************************************************************** Eng. Fabio D'Ovidio WebGIS Staff Planetek Italia Srl via Massaua, 12 - 70123 Bari - Italy web : http ://www.planetek.it e-mail : dovidio at planetek.it ******************************************************************************************** On 17 Jul 2006 at 11:35, Kralidis,Tom [Burlington] wrote: > > Not that I am aware of. What are your requirements, i.e. where/why > would you intend to use these? > > If you can provide further information, perhaps this can be put forth as > a valuable addition to MapServer, or perhaps there is a workaround which > can be applied. > > ..Tom > > > -----Original Message----- > From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On > Behalf Of Fabio D'Ovidio > Sent: Monday, July 17, 2006 11:28 AM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: [UMN_MAPSERVER-USERS] REMOTE_OWS_TYPE > > > Does mapserver support REMOTE_OWS_TYPE and REMOTE_OWS_URL parameters ? > > > Thank you > ************************************************************************ > ******************** > > > > Ing. Fabio D'Ovidio > WebGIS Staff > Planetek Italia Srl > via Massaua, 12 - 70123 Bari - Italy > web : http ://www.planetek.it > e-mail : dovidio at planetek.it > > > ************************************************************************ > ******************** -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- The following section of this message contains a file attachment prepared for transmission using the Internet MIME message format. If you are using Pegasus Mail, or any other MIME-compliant system, you should be able to save it or view it from within your mailer. If you cannot, please ask your system administrator for assistance. ---- File information ----------- File: planetek.gif Date: 28 Feb 2006, 16:15 Size: 1899 bytes. Type: Unknown -------------- next part -------------- A non-text attachment was scrubbed... Name: planetek.gif Type: application/octet-stream Size: 1899 bytes Desc: not available URL: From siukola.antti at GMAIL.COM Tue Jul 18 01:12:27 2006 From: siukola.antti at GMAIL.COM (antti siukola) Date: Tue, 18 Jul 2006 11:12:27 +0300 Subject: Mapserver returns blank pages In-Reply-To: <2534c4120607140132m29ae4e22w8761af191b5eb3bf@mail.gmail.com> Message-ID: Hi! How do I set my projection? I mean I know that the projection of my maps is VVJ , 24, 1016, 7, 24, 0, 1,-1.6, -6599998.7 but how do I set it so that mapserver understands it? Or how do even I understand it? ;) Antti S On 7/14/06, Zhonghai Wang wrote: > > check if the projection in the layer is correctly set, set both the > projection object for the output map image and the input layers, and make > sure they are correct. > > hope this helps. > > > zhonghai > > > > On 7/14/06, antti siukola wrote: > > Hi! > > > > It would be great if any of the developers could comment on this > > problem or maybe someone who has found a solution to the problem. I > > want to point out again that this problem prevents us to move to > > production if no solution is found. > > > > Regards, > > > > Antti S > > > > On 7/13/06, antti siukola wrote: > > > I've noticed that these Segmantation faults are logged even if there's > > > no blank page returned so I don't think that these two have a > > > relation. At least I get segmatation faults quite randomly. > > > > > > Cheers > > > > > > Antti S > > > > > > On 7/13/06, Stuart Eve wrote: > > > > > > > > After checking the apache error log we also get: > > > > > > > > [Thu Jul 13 10:22:02 2006] [notice] child pid 9429 exit signal > Segmentation > > > > fault (11) > > > > > > > > We are using mapserver 4.8.3, php 4.3.10 and apache 2.0.53 running on > a > > > > Suse 10 box. > > > > > > > > The mapscript functions that seem to be in use when the crash is > caused > > > > are: queryByAttributes(), getResult() and getShape() > > > > > > > > should we list this as a bug on Bugzilla? > > > > > > > > Thanks > > > > > > > > Stuart > > > > > > > > > > > > > > > > Stuart Eve wrote: > > > > We are having (and have had for while_ this problem - and it does > seem > > > > reasonably random. > > > > > > > > The main trouble is that I don't know how to get php to spew out the > error > > > > - and instead it just returns this blank screen, instead of returning > the > > > > error as it does normally. I had first thought that it was because I > was > > > > using php mapscript and had nested functions - but it seems like lots > of > > > > people are coming up with the same thing. > > > > > > > > Anyone got any ideas? > > > > > > > > Matthew Kane wrote: > > > > I wasn't actually using php mapscript in the mapfile that gave me > > > > segmentation faults. Strangely, I got the map to display on a Sun > machine if > > > > I removed all references to true-type fonts and relied only on bitmap > fonts > > > > for my labels. Even more strange is that when I moved the same file to > a red > > > > hat server, mapserver simply hangs. No error message in either the > browser > > > > or the apache error logs, just hanging. The same thing happened when I > tried > > > > running the mapfile with shp2img. Has anyone else experienced this > problem? > > > > Could this be a bug in one of the third party libraries that mapserver > > > > relies on? Or more likely a problem in how we code our mapfiles? > > > > > > > > Thanks, > > > > Matt > > > > > > > > > > > > On 7/12/06, antti siukola < siukola.antti at gmail.com> wrote: > > > > > Hi! > > > > > > > > > > As we can see a lot of people are suffering from this but no one > seems > > > > > to have any solutions. Does this only appear with php mapscript? Is > > > > > this a bug? A known bug? Is there a solutions? This is a fatal error > > > > > since this kind of behavior avoids us to use php mapscript in > > > > > production, in case this is a php mapscript issue as it seems to be. > > > > > > > > > > Regards, > > > > > > > > > > Antti S > > > > > > > > > > On 6/13/06, Matthew Kane < markane at indiana.edu> wrote: > > > > > > I second that question, as I am receiving Segmentation Faults as > well... > > > > > > > > > > > > Matt > > > > > > > > > > > > On 6/13/06, antti siukola < siukola.antti at gmail.com> wrote: > > > > > > > Hi! > > > > > > > > > > > > > > Every time MapServer returns a blank page I find "[notice] child > pid > > > > > > > xxxx exit signal Segmentation fault (11)" from apache's > error_log. Any > > > > > > > thoughts? Blank pages are returned randomly. > > > > > > > > > > > > > > AnttiS > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > -- > > > > Stuart Eve > > > > L - P : Archaeology > > > > stuarteve at lparchaeology.com > > > > > > > > > > > > -- > > > > Stuart Eve > > > > L - P : Archaeology > > > > stuarteve at lparchaeology.com > > > > > > > > > > > > > > > From C.Wilmes at GMX.DE Tue Jul 18 01:52:59 2006 From: C.Wilmes at GMX.DE (Christian Wilmes) Date: Tue, 18 Jul 2006 10:52:59 +0200 Subject: CSharp-Mapscript: setSymbolSet doesn't work?! In-Reply-To: Message-ID: Hi, sorry, myMapHandler.Map was my mistake. But he was only in the mail, I just tried to create a very simple sample. Now I've changed my code for using myMap.symbolset.appendSymbol but it still doesn't work: mapObj myMap = new mapObj(""); symbolObj symbol = new symbolObj("mySymbol", directory); myMap.symbolSet.appendSymbol(symbol); : layerObj myLayer = new layerObj(null); myLayer.name = "RosoftWFS"; myLayer.Type = MS_LAYER_TYPE.MS_LAYER_POINT; myLayer.Connectiontype = MS_CONNECTION_TYPE.MS_WFS; myLayer.Connection = "http://localhost/cgi-bin/mapserv.exe?"; myLayer.metadata.set("wfs_typename", "myWFS"); myLayer.metadata.set("wfs_version","1.0.0"); myLayer.metadata.set("wfs_request_method", "GET"); myLayer.metadata.set("wfs_service", "WFS"); myLayer.setProjection("EPSG:31467"); classObj c = new classObj(myLayer); c.name = "test"; styleObj style = new styleObj(c); style.symbolname = "mySymbol"; style.size = 150; style.color = new colorObj(255, 0, 255, 0); : myMap.insertLayer(myLayer, -1); Best Regards Christian -------- Original-Nachricht -------- Datum: Mon, 17 Jul 2006 23:40:09 +0200 Von: Tamas Szekeres An: MAPSERVER-USERS at LISTS.UMN.EDU Betreff: Re: [UMN_MAPSERVER-USERS] CSharp-Mapscript: setSymbolSet doesn\'t work?! > Christian, > > I'm a bit uncertain if you have added that symbolset to your map > (myMapHandler.Map may be another map reference :? ). > I would prefer using myMap.symbolset.appendSymbol instead of using > setsymbolset. > > If you are using constructors like "new classObj(myLayer)" and "new > styleObj(c)" you might want to use mapserver 4.8.4 to avoid nasty heap > corruptions and memory reference errors ;-) In that case using new > layerObj(mymap) seems better than insertLayer since the extra layer > copy is avoided. > > Best Regards, > > Tamas > > > > 2006/7/17, Christian Wilmes : > > Hi All, > > > > I try to display a WFS-Layer with my application but I got only small > points instead of the symbol in my Symbolset. > > > > My Symbolset looks like that: > > SYMBOLSET > > SYMBOL > > NAME "Fahne" > > TYPE VECTOR > > FILLED TRUE > > POINTS > > 1 5 > > 1 3 > > 3 2 > > 1 1 > > 1 3 > > END > > END > > END > > > > Some Code from the application: > > mapObj myMap = new mapObj(""); > > myMapHandler.Map.setSymbolSet(Environment.CurrentDirectory + > @"\test.sym"); > > : > > layerObj myLayer = new layerObj(null); > > myLayer.name = "RosoftWFS"; > > myLayer.Type = MS_LAYER_TYPE.MS_LAYER_POINT; > > myLayer.Connectiontype = MS_CONNECTION_TYPE.MS_WFS; > > myLayer.Connection = "http://localhost/cgi-bin/mapserv.exe?"; > > myLayer.metadata.set("wfs_typename", "myWFS"); > > myLayer.metadata.set("wfs_version","1.0.0"); > > myLayer.metadata.set("wfs_request_method", "GET"); > > myLayer.metadata.set("wfs_service", "WFS"); > > > > myLayer.setProjection("EPSG:31467"); > > classObj c = new classObj(myLayer); > > c.name = "test"; > > styleObj style = new styleObj(c); > > style.symbolname = "Fahne"; > > style.size = 150; > > style.color = new colorObj(255, 0, 255, 0); > > : > > myMap.insertLayer(myLayer, -1); > > > > > > Does anybody have an idea where to find the mistake? > > > > > > Best Regards > > Christian > > -- > > > > > > "Feel free" ? 10 GB Mailbox, 100 FreeSMS/Monat ... > > Jetzt GMX TopMail testen: http://www.gmx.net/de/go/topmail > > -- "Feel free" ? 10 GB Mailbox, 100 FreeSMS/Monat ... Jetzt GMX TopMail testen: http://www.gmx.net/de/go/topmail From C.Wilmes at GMX.DE Tue Jul 18 02:06:09 2006 From: C.Wilmes at GMX.DE (Christian Wilmes) Date: Tue, 18 Jul 2006 11:06:09 +0200 Subject: C#-Mapscript: Bug in mapObj.insertLayer() Message-ID: Hi All, I think there is a bug in the method for mapObj.insertLayer(layerObj layer, int index). It only works for index = -1. I think reason for that might be in mapobject.c in the function msInsertLayerm, line 525: map->layers[map->numlayers].index = nIndex; Is it possible, that something like map->layers[nIndex].index = nIndex; is correct? Best Regards Christian -- Echte DSL-Flatrate dauerhaft f?r 0,- Euro*! "Feel free" mit GMX DSL! http://www.gmx.net/de/go/dsl From szekerest at GMAIL.COM Tue Jul 18 05:30:09 2006 From: szekerest at GMAIL.COM (Tamas Szekeres) Date: Tue, 18 Jul 2006 14:30:09 +0200 Subject: JavaMapscript SIGSEGV In-Reply-To: <8efeb4a80607172211m44225262i6fc4333693c4e3a4@mail.gmail.com> Message-ID: Hi, This problem was corrected in the CVS-HEAD, however for the older versions (including 4.8.4) it should be added manually for java. Best Regards, Tamas 2006/7/18, Mario Basa : > Hello, > > Yes, this works for me. Adding the lines below to the > mapscript/java/Makefile.in stopped the SIGSEGV whenever I create a > shapeObj class: > > # Optional GEOS Support. > # See http://geos.refractions.net/ > GEOS= @GEOS_ENABLED@ > GEOS_LIB= @GEOS_LIB@ > GEOS_INC= @GEOS_INC@ > > CCFLAGS= @CFLAGS@ @DEBUG_FLAGS@ \ > $(IGNORE_MISSING_DATA) $(STRINGS) $(EPPL) $(PROJ) $(OWS) $(MING) \ > $(ORACLESPATIAL) $(TIFF) $(JPEG) $(GD) $(PDF) $(SDE) $(OGR) $(GDAL) \ > $(POSTGIS) $(MYGIS) $(MPATROL) $(THREAD) $(GD_INC) $(PDF_INC) \ > $(PROJ_INC) $(TIFF_INC) $(JPEG_INC) $(EGIS_INC) $(SDE_INC) \ > $(REGEX_INC) $(MPATROL_INC) $(GDAL_INC) $(POSTGIS_INC) $(MYGIS_INC) \ > $(CURL_INC) $(MING_INC) $(ORACLESPATIAL_INC) $(GEOS) > ^^^^^^^ > # Link flags and shared libs only > SUP_LIBS = $(GD_LIB) $(PDF_LIB) $(TIFF_LIB) $(PROJ_LIB) \ > $(JPEG_LIB) $(SDE_LIB) $(GDAL_LIB) $(MING_LIB) $(POSTGIS_LIB) \ > $(MYGIS_LIB) $(CURL_LIB) $(ORACLESPATIAL_LIB) \ > $(MPATROL_LIB) $(THREAD_LIB) $(XTRALIBS) $(GEOS_LIB) > ^^^^^^^^^^^ > > > > Thanks. > > mario. > > > On 6/24/06, Tamas Szekeres wrote: > > Hi, > > > > Enabling GEOS support for Makefile.in should fix this problem. > > Otherwise the shapeObj size is different for mapscript and mapserver > > causing heap corruption. > > > > Tamas > > > > > > > > 2006/6/12, Rodriguez, Heraldo : > > > Hi guys, > > > I have started developing with java mapscript and I have the same > > > problems with the shapeObj class. > > > Every time I want to create a new shape I get the message > > > > # > > > > # An unexpected error has been detected by HotSpot Virtual Machine: > > > > # > > > > # SIGSEGV (0xb) at pc=0x00002aaaaae43d5b, pid=23120, tid=46912501734144 > > > > # > > > > # Java VM: Java HotSpot(TM) Client VM (1.4.2_11-b06 mixed mode) > > > > # Problematic frame: > > > ... > > > > > > I am using mapserver 4.8.1 with java 1.4.2_11 version under Debian 3.1. > > > > > > Mapserver Compiling options > > > ./configure --with-freetype=/usr/local/bin/freetype-config > > > --with-zlib=/usr/lib --with-png=/usr/local/lib --with-jpeg=/usr/lib > > > --with-libiconv=/usr/local/lib --with-gd=/usr/local/bin/gdlib-config > > > --with-pdf=/usr/local/lib --with-proj=/usr/local/lib --with-threads > > > --with-geos=/usr/local/bin/geos-config --with-ogr=/usr/local/bin/gdal-config > > > --with-gdal=/usr/local/bin/gdal-config > > > --with-postgis=/usr/local/pgsql/bin/pg_config --with-wfs --with-wcs > > > --with-wmsclient --with-curl-config=/usr/local/bin/curl-config > > > > > > Steps to compile java mapscript > > > Run make > > > Make interface (swig version 1.3.29) > > > Make all > > > > > > I looked for a solution in google and mapserver documentation without > > > success. Could you please give me a clue to solve this? Thanks in > > > advance. > > > Best regards. > > > > > > > > > > > > Heraldo G. Rodriguez > > > hrodriguez at siscat.com.ar > > > TE 4326-4002 int 255 > > > Dpto. Desarrollo > > > Sistemas Catastrales S.A > > > > > > > > > > > > -----Mensaje original----- > > > De: Andre Sachs [mailto:asachs at CLUE.CO.ZA] > > > Enviado el: mi?rcoles, 31 de mayo de 2006 5:16 > > > Para: MAPSERVER-USERS at LISTS.UMN.EDU > > > Asunto: Re: [UMN_MAPSERVER-USERS] JavaMapscript SIGSEGV > > > > > > On 31 May 2006, at 8:37 AM, Umberto Nicoletti wrote: > > > > > > > Andre, could you report whether the patch attached to gentoo bugzilla > > > > works or not? > > > > > > Hi Umberto, > > > > > > Sorry for not replying earlier. > > > > > > The patch works in a 32 intel environment, thanks ! > > > > > > Due to time constraints on my current project I ditched my AMD 64, > > > Java 1.5 64 bit environment in favour of Intel 32 bit and this has > > > resolved my problem. > > > > > > The problems I experienced are somewhere in the application stack, > > > either in : > > > - Sun's 64 bit 1.5 jdk > > > - Gentoo's glibc 2.3.5-r2 > > > - Linux kernel 2.6.16 > > > > > > Once my current project is over (+- 3 weeks) I will be have some > > > spare time to hunt down the culprit. > > > > > > Regards, > > > Andre > > > -- > > > Andre Sachs > > > IT Architect, Clue Technologies PTY (LTD) > > > email: andre at clue.co.za > > > > > > From julien.63 at FREE.FR Tue Jul 18 06:12:43 2006 From: julien.63 at FREE.FR (Julien Bessiere) Date: Tue, 18 Jul 2006 15:12:43 +0200 Subject: calculate polygon area Message-ID: Hi, I'm using phpMapscript / Mapserver. I wrote a little script that allows users to draw polygons on the map. I try to figure out how to calculate the area of this polygon, but so far... I found a formula and wrote the script below but as i'm using decimal latitude and longitude, the result is unusable : So my questions is : 1- Does phpmapscript has a function to calculate area (something like distanceToPoint(pointObj poPoint))? 2- If no, how to calculate area wiht lat long coordinates? thanks for your advices, Julien ============================================================ function polygonArea($polygon_coordinates){ $array_length = count($polygon_coordinates); if ($array_length > 2){ // add the first coordinates at the end to close de polygon array_push($polygon_coordinates,array($polygon_coordinates[0][0],$polygon_coordinates[0][1])); $polygon_area = 0; for ($i=0;$i <= $array_length;$i++){ $polygon_area += ( ($polygon_coordinates[$i][0] * $polygon_coordinates[$i+1][1])- ($polygon_coordinates[$i][1] * $polygon_coordinates[$i+1][0])); } $polygon_area = abs($polygon_area / 2); } else { $polygon_area = 'need at least 3 points'; } return $polygon_area; } ===================================================================== From umberto.nicoletti at GMAIL.COM Tue Jul 18 06:23:45 2006 From: umberto.nicoletti at GMAIL.COM (Umberto Nicoletti) Date: Tue, 18 Jul 2006 15:23:45 +0200 Subject: calculate polygon area In-Reply-To: <1153228363.44bcde4b4aeeb@imp1-g19.free.fr> Message-ID: If you have GEOS support you can try to use the geos msGEOSArea() function. HTH, Umberto On 7/18/06, Julien Bessiere wrote: > Hi, > I'm using phpMapscript / Mapserver. > I wrote a little script that allows users to draw polygons on the map. I try to > figure out how to calculate the area of this polygon, but so far... > I found a formula and wrote the script below but as i'm using decimal latitude > and longitude, the result is unusable : > So my questions is : > > 1- Does phpmapscript has a function to calculate area > (something like distanceToPoint(pointObj poPoint))? > 2- If no, how to calculate area wiht lat long coordinates? > > thanks for your advices, > > Julien > > ============================================================ > function polygonArea($polygon_coordinates){ > $array_length = count($polygon_coordinates); > if ($array_length > 2){ > // add the first coordinates at the end to close de polygon > > array_push($polygon_coordinates,array($polygon_coordinates[0][0],$polygon_coordinates[0][1])); > $polygon_area = 0; > for ($i=0;$i <= $array_length;$i++){ > $polygon_area += ( > ($polygon_coordinates[$i][0] * > $polygon_coordinates[$i+1][1])- > ($polygon_coordinates[$i][1] * > $polygon_coordinates[$i+1][0])); > } > $polygon_area = abs($polygon_area / 2); > } > else { > $polygon_area = 'need at least 3 points'; > } > return $polygon_area; > } > ===================================================================== > From Maxc at SPICERGROUP.COM Tue Jul 18 06:25:46 2006 From: Maxc at SPICERGROUP.COM (Clever, Max) Date: Tue, 18 Jul 2006 09:25:46 -0400 Subject: FW: Michigan Georef Projection Problems in Proj4 Message-ID: Frank, First, to answer your question, the parameters Melita offered are not accurate enough and are not the true parameters of the Michigan Georef Projection. Also, the translation from EPSG to PROJ4 is not correct. I don't think Proj 4 supports a point azimuth method transformation for Hotine oblique Mercator (Rectified Skew Orthomorphic Projection) Here is a link that contains the formulas for oblique mercator and Hotine Oblique Mercator (Michigan Georef is Hotine Oblique). http://www.posc.org/Epicentre.2_2/DataModel/ExamplesofUsage/eu_cs34i.html please note though, that in the forward case, I believe the small "v" should be computed using Log not natural log. Also, if you want it for reference, below is the code of a couple of VB forms that I wrote 3 years ago with help from my professor in college to perform the forward and reverse cases. It is only accurate to about 7 cm in the Northing and 3 mm in the Easting when converting a point from Michigan Georef to Geographic and back. I think there must be some lack of precision in the code that is the reason for the accuracy problem. I hope this helps. Const a = 6378137 ' semi major axis of the GRS80 ellipsoid Const e2 = 0.0066943800229 ' excentricity^2 of the GRS80 ellipsoid Dim Pi As Double Dim E As Double ' excentricity of the GRS80 ellipsoid Public Function G2GREF(CoordIN() As Double) As Double() Dim M1 As Double ' Paramter Dim m2 As Double ' Paramter Dim t1 As Double ' Paramter Dim t2 As Double ' Paramter Dim t0 As Double ' Paramter Dim n As Double ' Paramter Dim F As Double ' Paramter Dim Eb As Double ' Paramter Dim Nb As Double ' Paramter Dim R As Double ' Paramter MS_GeoRef = "Projection Oblique Mercator; Datum: NAD83; Ellipsoid: GRS80 " & vbCrLf & _ "Standard Units: Meters" & vbCrLf & _ "Origin = 86? 00' 00 W and 45? 18' 33 N" & vbCrLf & _ "Scale factor at projection's center: k= 0.9996" & vbCrLf & _ "Azimuth at center of projection: 337? 15' 20" & vbCrLf & _ "False Easting: 2546731.496, False Northing: -4354009.816" Lon1 = -86# ' Longitude of projection's origin: 86? 00' 00" W Lon1 = Lon1 * Pi / 180# Lat1 = 45.30916666667 ' Latitude of projection's origin: 45? 18' 33" N Lat1 = Lat1 * Pi / 180# Az = 337.255555555556 ' Azimuth at center of projection: 337? 15' 20 Az = Az * Pi / 180# SF = 0.9996 ' Scale factor at projection's center Eb = 2546731.496 ' False Easting ( Eb = 528600.24) Nb = -4354009.816 ' False Northing (Nb = 499839.834) B = Sqr(1 + e2 * Cos(Lat1) ^ 4 / (1 - e2)) A1 = a * B * SF * Sqr(1 - e2) / (1 - e2 * (Sin(Lat1) ^ 2)) Temp = ((1 - E * Sin(Lat1)) / (1 + E * Sin(Lat1))) ^ (0.5 * E) t0 = Tan(Pi / 4 - (Lat1) / 2) / Temp D = B * Sqr(1 - e2) / (Cos(Lat1) * Sqr(1 - e2 * Sin(Lat1) ^ 2)) F = D + Lat1 / Abs(Lat1) * Sqr(D ^ 2 - 1) ' Eq. 4.110 E1 = F * t0 ^ B ' Eq. 4.111 G = 0.5 * (F - 1 / F) ' Eq. 4.112 Gamma0 = Isin(Sin(Az) / D) ' Eq. 4.113 Lon0 = Lon1 - Isin(G * Tan(Gamma0)) / B ' Lambda 0 at Eq. 4.114 U0 = (Lat1 / Abs(Lat1)) * (A1 / B) * Atn(Sqr(D ^ 2 - 1) / Cos(Az)) V0 = 0 LatIN = DMS2R(CoordIN(1)) LonIN = DMS2R(CoordIN(2)) Temp = ((1 - E * Sin(LatIN)) / (1 + E * Sin(LatIN))) ^ (0.5 * E) t = Tan(Pi / 4 - (LatIN) / 2) / Temp ' Eq. 4.117 Q = E1 / (t ^ B) S = 0.5 * (Q - 1 / Q) Tc1 = 0.5 * (Q + 1 / Q) V1 = Sin(B * (LonIN - Lon0)) U1 = (-V1 * Cos(Gamma0) + S * Sin(Gamma0)) / Tc1 vl = A1 * Log((1 - U1) / (1 + U1)) / (2 * B) temp1 = (S * Cos(Gamma0) + V1 * Sin(Gamma0)) / Cos(B * (LonIN - Lon0)) ul = (A1 / B) * Atn(temp1) x = vl * Cos(Az) + ul * Sin(Az) + Eb y = ul * Cos(Az) - vl * Sin(Az) + Nb ReDim Preserve CTemp(1 To 2) As Double CTemp(1) = x CTemp(2) = y G2GREF = CTemp End Function Public Function GREF2G(CoordIN() As Double) As Double() Dim M1 As Double ' Paramter Dim m2 As Double ' Paramter Dim t1 As Double ' Paramter Dim t2 As Double ' Paramter Dim t0 As Double ' Paramter Dim n As Double ' Paramter Dim F As Double ' Paramter Dim Eb As Double ' Paramter Dim Nb As Double ' Paramter Dim PhiOut As Double ' Paramter Dim LonOut As Double ' Paramter MS_GeoRef = "Projection Oblique Mercator; Datum: NAD83; Ellipsoid: GRS80 " & vbCrLf & _ "Standard Units: Meters" & vbCrLf & _ "Origin = 86? 00' 00 W and 45? 18' 33 N" & vbCrLf & _ "Scale factor at projection's center: k= 0.9996" & vbCrLf & _ "Azimuth at center of projection: 337? 15' 20" & vbCrLf & _ "False Easting: 2546731.496, False Northing: -4354009.816" Lon1 = -86# ' Longitude of projection's origin: 86? 00' 00" W Lon1 = Lon1 * Pi / 180# Lat1 = 45.309166666667 ' Latitude of projection's origin: 45? 18' 33" N Lat1 = Lat1 * Pi / 180# Az = 337.255555555556 ' Azimuth at center of projection: 337? 15' 20 Az = Az * Pi / 180# SF = 0.9996 ' Scale factor at projection's center Eb = 2546731.496 ' False Easting ( Eb = 528600.24) Nb = -4354009.816 ' False Northing (Nb = 499839.834) ttemp = e2 * (Cos(Lat1) ^ 4) / (1 - e2) B = Sqr(1 + ttemp) A1 = a * B * SF * Sqr(1 - e2) / (1 - e2 * (Sin(Lat1)) ^ 2) Temp = ((1 - E * Sin(Lat1)) / (1 + E * Sin(Lat1))) ^ ( 0.5 * E) t0 = Tan(Pi / 4 - (Lat1) / 2) / Temp ttemp1 = Cos(Lat1) * Sqr(1 - e2 * (Sin(Lat1)) ^ 2) D = B * Sqr(1 - e2) / ttemp1 F = D + Lat1 / Abs(Lat1) * Sqr(D ^ 2 - 1) ' Eq. 4.110 E1 = F * t0 ^ B ' Eq. 4.111 G = 0.5 * (F - 1 / F) ' Eq. 4.112 Gamma0 = Isin(Sin(Az) / D) ' Eq. 4.113 Lon0 = Lon1 - Isin(G * Tan(Gamma0)) / B ' Lambda 0 at Eq. 4.114 xIN = CoordIN(1) yIN = CoordIN(2) 'Actual Computations for Reverse case Hotine Oblique Mercator xr = xIN - Eb yr = yIN - Nb vs = xr * Cos(Az) - yr * Sin(Az) us = yr * Cos(Az) + xr * Sin(Az) temp1 = -B * vs / A1 Qp = (2.71828182845905) ^ temp1 Sp = 0.5 * (Qp - 1 / Qp) Tp = 0.5 * (Qp + 1 / Qp) Vp = Sin(B * us / A1) Up = (Vp * Cos(Gamma0) + Sp * Sin(Gamma0)) / Tp temp2 = (1 + Up) / (1 - Up) t = (E1 / Sqr(temp2)) ^ (1 / B) PhiOut = Pi / 2 - 2 * Atn(t) 'Iterative Solution for Phi Out ' For i = 1 To 30 ' Temp = ((1 - E * Sin(PhiOut)) / (1 + E * Sin(PhiOut))) ^ ( 0.5 * E) ' PhiOut = Pi / 2 - 2 * Atn(t * Temp) ' Next i 'Single Line Solution for Phi Out PhiOut = PhiOut + Sin(2 * PhiOut) * (e2 / 2 + (5 * e2 ^ 2) / 24 + (e2 ^ 4) / 12 + (13 * e2 ^ 6) / 360) + Sin(4 * PhiOut) * ((7 * e2 ^ 2) / 48 + (29 * e2 ^ 4) / 240 + (811 * e2 ^ 6) / 11520) + Sin(6 * PhiOut) * ((7 * e2 ^ 4) / 120 + (81 * e2 ^ 6) / 1120) + Sin(8 * PhiOut) * ((4279 * e2 ^ 6) / 161280) temp3 = (Sp * Cos(Gamma0) - Vp * Sin(Gamma0)) / Cos(B * us / A1) LonOut = Lon0 - Atn(temp3) / B ReDim Preserve CTemp(1 To 2) As Double CTemp(1) = r2dms(PhiOut) CTemp(2) = r2dms(LonOut) GREF2G = CTemp End Function -----Original Message----- From: Frank Warmerdam [mailto:fwarmerdam at gmail.com] On Behalf Of Frank Warmerdam Sent: Saturday, July 15, 2006 10:01 PM To: Clever, Max Subject: Re: [UMN_MAPSERVER-USERS] FW: Michigan Georef Projection Problems in Proj4 Clever, Max wrote: > Hi, > > > > Did anyone see this the last time I sent it? It relates to Mapserver as > well since Mapserver uses Proj4 for its projections. Max, I have skimmed this material, but frankly I'm not sure what action item there is, and I find myself with limited time for work on PROJ.4. Is the problem that the parameters Melita offered a couple years ago aren't accurate enough? Or that the underlying translation from EPSG to PROJ.4 wasn't fixed so the epsg file keeps getting regenerated wrong? If it is a tranlation problem, then that is basically something I ought to fix. But I basically need some formulation to recognise a distinct oblique mercator case for the michigan projection from the EPSG codes (or parameters), and what that should map to in WKT format, and in PROJ.4 format. I'm happy to use the ESRI WKT representation if there isn't an obvious existing form for this special case. If you can walk me through what should be changed, I'm willing to work on it. Best regards, ... > Two years ago, I ran into a problem with the Michigan Georef Projection > and the way that proj identified it. I had sent emails back and forth > for a while until someone sent a temporary solution of providing false > parameters that worked.. *for the most part*. This temporary solution, > of course, did not actually solve the problem, but instead delayed the > fixing of the methods that proj identifies projections and translates > them. For that I am sorry for not remaining vigilant in seeing a true > solution being devised. But now, since I have just now installed the > latest version of GRASS 6.1, I have come full circle and face this > problem again. To provide a quick access to the background of what has > already been said on this projection please note the previous emails > below. I believe, at this time still, that the *omerc* projection and > its parameters as used by proj cannot correctly describe or transform a > omerc projection with a "natural origin". From what I understand, > Hotine oblique mercator and Rectified Skew Orthomorphic are one and the > same or depend on where the skew is corrected. Has there been a > solution determined for this projection? If not, maybe a solution to > this problem would be to have Proj have oblique mercators split between > "natural origins" and cartesian center point origins. I hope, maybe, > someone has been looking at this lately but I doubt it. Any comments or > solutions would be very welcome. Thanks. -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | President OSGF, http://osgeo.org From sduclos.cairo at GMAIL.COM Tue Jul 18 07:22:46 2006 From: sduclos.cairo at GMAIL.COM (sduc gamilcairo) Date: Tue, 18 Jul 2006 10:22:46 -0400 Subject: Ruby/Mapscript: howto to send image on-the-fly? Message-ID: Hi, The doc (mapscript.txt) say that write() work only for Python write( [ FILE file=NULL ] ) : int Write image data to an open file descriptor or, by default, to *stdout*. Returns MS_SUCCESS or MS_FAILURE. .. note:: This method is current enabled for Python only. User-contributed typemaps are needed for Perl, Ruby, C#, and Java. But is there a way around this? What I'm trying to do is something like this: def do_GET(req, res) map = get_map() img = map.draw() res.status = 200 res["Content-Type"] = img.format.mimetype + "\n\n" img.write() end But this dump a GIF on the server side ! Any hint or an example would be great Thanks, Sylvain. -------------- next part -------------- An HTML attachment was scrubbed... URL: From perrygeo at GMAIL.COM Tue Jul 18 08:04:41 2006 From: perrygeo at GMAIL.COM (Matthew Perry) Date: Tue, 18 Jul 2006 08:04:41 -0700 Subject: Mapserver returns blank pages In-Reply-To: Message-ID: On 7/18/06, antti siukola wrote: > Hi! > > How do I set my projection? I mean I know that the projection of my maps is > VVJ , 24, 1016, 7, 24, 0, 1,-1.6, -6599998.7 but how do I set it so > that mapserver understands it? Or how do even I understand it? ;) > Check out http://mapserver.gis.umn.edu/docs/reference/mapfile/projection/ -- Matt Perry perrygeo at gmail.com http://www.perrygeo.net From bart_doggers at YAHOO.COM Tue Jul 18 06:59:48 2006 From: bart_doggers at YAHOO.COM (Albert Anderson) Date: Tue, 18 Jul 2006 06:59:48 -0700 Subject: creating my own image and using them as funcations?????? Message-ID: Hi All, I created my own images for zooming in, out, and etc.... I dont understand why they dont load into my html template when I click the initialize button. I just look at the template and the images are there. The intialize button html is a post and the html template is a get. Cant I make and put my images in to make them work as navigation buttons? I am using a lunix machine with mapsever 4 on it. Could anyone help me. Thanks, Albert --------------------------------- See the all-new, redesigned Yahoo.com. Check it out. -------------- next part -------------- An HTML attachment was scrubbed... URL: From D.Stone at ED.AC.UK Tue Jul 18 08:15:38 2006 From: D.Stone at ED.AC.UK (DjwStone) Date: Tue, 18 Jul 2006 08:15:38 -0700 Subject: NQUERY mode again In-Reply-To: <5044816.post@talk.nabble.com> Message-ID: Still more evidence on the NQUERY mode problem: Former experiments (see earlier posts in this thread) showed that 'using unique ' in the DATA statement produced a blank query template, while leaving it out gave a query template with the correct number of 'hits', but incorrect values in certain fields. What seems to be the case is that the 'using unique ' IS VITAL to the success of query-by-point, but the choice of key is critical. In my case specifically, the point layer is based on a 5-table view, representing 2 m:n relationships joined together. The schematic for this is: A -----m:n------ B -----m:n----- C or A -----1:n----- X -----n:1----- B -----1:n----- Y -----n:1----- C where A, B, and C are the base tables, and X and Y the 'intermediate' tables. A combination of key values from X and Y uniquely identifies a row in this view. Unfortunately, combining numeric keys to produce a single unique value often generates numbers too big to fit in an integer (e.g.*10000 + ), and MapServer only appears to accept an integer column in the 'using unique '. I was lucky in that I was able to construct a unique integer 'myuid' from and for qualifying the DATA statement: DATA "geom FROM (select dedicationref, geom, stdname, reftostconf, saintid, locationref, placename, deddlo, deddhi, dedicationtype, stdesc, myuid from testloc where ( - - - assorted conditions - - - ) AS foo USING UNIQUE myuid USING srid=27700" where 'testloc' is of the form: SELECT , * 100000 + AS myuid FROM A JOIN (B JOIN X ON B.dedicationref::text = X.dedicationref::text) ON A.locationref::text = X.locationref::text JOIN (Y JOIN C ON Y.saintid::text = C.saintid::text) ON B.dedicationref::text = Y.dedicnid::text; Hopefully, future releases may permit a wider range of data-types for the unique key of the spatial data-source. Cheers, Dave -- View this message in context: http://www.nabble.com/NQUERY-mode-again-tf1848174.html#a5380134 Sent from the Mapserver - User forum at Nabble.com. From pgiannini at BYTEWISE.IT Tue Jul 18 07:53:31 2006 From: pgiannini at BYTEWISE.IT (Pietro Giannini) Date: Tue, 18 Jul 2006 16:53:31 +0200 Subject: problems with FILTER string in PostGIS layer Message-ID: Hi all, I'm running a query aginst a PostGIS layer via the FILTER attribute of the layer. I'm dinamically changing the FILTER attribute via PHP MapScript. I must filter the features via a sql statement like "WHERE [field] IN ([comma-separated list of occurrences]). here relevant part of *.map file: layer name "pg_distretti_an" connection "user=postg password=postg dbname=geodb host=localhost port=5432" connectiontype postgis data "the_geom FROM distretti_tot" status off type polygon tolerance 3 template 'templates/coords_query_template.html' debug on # projection "init=epsg:32632" end # class name 'distretti' style outlinecolor 50 125 50 color 255 255 0 end end end mapscript: $string = "DISTRETTO IN('0737','0742','0743','0744','0746','0761','0763','0765','0766','0771','0773','0774','0775','0776','0781','0782','0783','0784','0785','0789','0823','0824','0825','0827','0828','0831','0832','0833','0835','0836','0861','0862','0863','0864','0865','0871','0872','0873','0874','0875','0881','0882','0883','0884','0885','0921','0922','0923','0924','0925','0931','0932','0933','0934','0935','0941','0942','0961','0962','0963','0964','0965','0966','0967','0968','0971','0972','0973','0974','0975','0976','0981','0982','0983','0984','0985')"; $layer->setFilter($string); All works ok, but where the FILTER string exceed the length of 255 and MS is displayed only a part of the map (function map->zoompoint() invoked) the MapServer answer is: ____________________________________________ Warning: [MapServer Error]: prepare_database(): Error executing POSTGIS DECLARE (the actual query) statement: 'DECLARE mycursor BINARY CURSOR FOR SELECT distretto::text,asbinary(force_collection(force_2d(the_geom)),'NDR'),gid::text from distretti_tot WHERE ("DISTRETTO IN('010','011','0121','0122','0124','0125','0131','0141','0142','0143','0144','015','0163','0165','0171','0172','0173','0174','0175','0182','0183','0184','0185','0187','019','02','030','031','0321','0322','0323','0331','0332','0341','0342','035) and (the_geom && setSRID( 'BOX3D(589741.961712017 4695052.44517138,916455.321123285 4901133.17969)'::BOX3D,find_srid('','distretti_tot','the_geom') ))' Postgresql reports the error as 'ERROR: unterminated quoted identifier at or near ""DISTRETTO IN('010','011','0121','0122','0124','0125','0131','0141','0142','0143','0144','015','0163','0165','0171','0172','0173','0174','0175','0182','0183','0184','0185','0187','019','02','030','031','0321','0322','0323','0331','0332','0341','0342','035) and (the_geom & in C:\ms4w\apps\contatti\italia_pg_contatti.phtml on line 294 ____________________________________________ Effectively the query string apppears to be truncated at the 255th byte. Is that a limitation of MS? Somebody can help me? Thanks in advance. Pietro Giannini From ollerery at ENGR.ORST.EDU Tue Jul 18 08:51:04 2006 From: ollerery at ENGR.ORST.EDU (Ryan Ollerenshaw) Date: Tue, 18 Jul 2006 08:51:04 -0700 Subject: PHP projection problem In-Reply-To: Message-ID: When using PHP with mapserver i am getting the following error: Fatal error: setProjection() available only with PROJ.4 support. in /usr/local/mapserver/htdocs/simplemap.phtml on line 23 //here is line 23 $map1->setProjection("proj=latlong",MS_TRUE); I built MapServer using the --with-proj=/usr/local and i can change my projections in the map file itself but when i try to do it with PHP i get the above error. Any help would be great. I am loading php_mapscript.so in my php file is there another library out there i should be using? i havent seen any docs saying anything about a proj.4 library. From ed at TOPOZONE.COM Tue Jul 18 10:12:58 2006 From: ed at TOPOZONE.COM (Ed McNierney) Date: Tue, 18 Jul 2006 13:12:58 -0400 Subject: calculate polygon area Message-ID: Julien - If you are displaying an image in a "geographic" projection using latitude and longitude as if they were X and Y coordinates, you have a very challenging problem ahead of you. If someone draws a polygon on that map, the polygon will only have straight sides in "geographic" space, and you can compute the area of that polygon in "square degrees". Since the concept of a "square degree" is pretty meaningless, that is probably not what you want. Each row of pixels on your image - measured in something standard like square meters - will be a different size, so it's difficult to calculate the size. You are letting users draw polygons on the surface on an ellipsoid (approximately) so you would need to do ellipsoidal geometry to calculate the area of that polygon in reasonable units. You cannot reproject the vertices into a standard projection and then calculate the area, because the lines between those vertices won't be straight any more - they will be curves. If you use a useful output projection (such as UTM or a standard regional projection) then the math should be quite simple. Otherwise you'll need to start coding up some elliptical geometry. - Ed Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 ed at topozone.com (978) 251-4242 -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Julien Bessiere Sent: Tuesday, July 18, 2006 9:13 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] calculate polygon area Hi, I'm using phpMapscript / Mapserver. I wrote a little script that allows users to draw polygons on the map. I try to figure out how to calculate the area of this polygon, but so far... I found a formula and wrote the script below but as i'm using decimal latitude and longitude, the result is unusable : So my questions is : 1- Does phpmapscript has a function to calculate area (something like distanceToPoint(pointObj poPoint))? 2- If no, how to calculate area wiht lat long coordinates? thanks for your advices, Julien ============================================================ function polygonArea($polygon_coordinates){ $array_length = count($polygon_coordinates); if ($array_length > 2){ // add the first coordinates at the end to close de polygon array_push($polygon_coordinates,array($polygon_coordinates[0][0],$polygo n_coordinates[0][1])); $polygon_area = 0; for ($i=0;$i <= $array_length;$i++){ $polygon_area += ( ($polygon_coordinates[$i][0] * $polygon_coordinates[$i+1][1])- ($polygon_coordinates[$i][1] * $polygon_coordinates[$i+1][0])); } $polygon_area = abs($polygon_area / 2); } else { $polygon_area = 'need at least 3 points'; } return $polygon_area; } ===================================================================== From mateusz at LOSKOT.NET Tue Jul 18 06:32:56 2006 From: mateusz at LOSKOT.NET (Mateusz Loskot) Date: Tue, 18 Jul 2006 15:32:56 +0200 Subject: calculate polygon area In-Reply-To: <75b4b93e0607180623l58ad29d3s29db1c89d4621f2e@mail.gmail.com> Message-ID: On 7/18/06, Julien Bessiere wrote: > So my questions is : > > 1- Does phpmapscript has a function to calculate area > (something like distanceToPoint(pointObj poPoint))? I have no idea. >> 2- If no, how to calculate area wiht lat long coordinates? You need to calculate area of spherical polygon. Here you can find C code for this purpose http://www.acm.org/pubs/tog/GraphicsGems/gemsiv/sph_poly.c I hope you will be able to rewrite it to PHP. Best regards -- Mateusz Loskot http://mateusz.loskot.net From ed at TOPOZONE.COM Tue Jul 18 12:35:33 2006 From: ed at TOPOZONE.COM (Ed McNierney) Date: Tue, 18 Jul 2006 15:35:33 -0400 Subject: calculate polygon area Message-ID: Mateusz - That is some very suspicious-looking code. It says: "Returns the area of a spherical polygon in spherical degrees" and then displays the area in "Square Miles" by using these constants: double SqMi= 273218.4, /* Square mi per spherical degree. */ SqKm= 707632.4; /* Square km per spherical degree. */ and multiplies the area in "spherical degrees" by 273218.4!!! I cannot figure out what the constant 273218.4 is supposed to represent. Over there in Warsaw one degree of latitude is 69.14 statute miles, and one degree of longitude is 42.53 statute miles, so there are 2940.52 square miles in that "square degree". At my house there are 3519.33 square miles in a "square degree", and down in Quito there are 4752.54 square miles in that same "square degree". Even overlooking the minor error introduced with a sphere rather than an ellipsoid, I am skeptical that this code will actually do anything useful. - Ed Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 ed at topozone.com (978) 251-4242 -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Mateusz Loskot Sent: Tuesday, July 18, 2006 9:33 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] calculate polygon area On 7/18/06, Julien Bessiere wrote: > So my questions is : > > 1- Does phpmapscript has a function to calculate area (something like > distanceToPoint(pointObj poPoint))? I have no idea. >> 2- If no, how to calculate area wiht lat long coordinates? You need to calculate area of spherical polygon. Here you can find C code for this purpose http://www.acm.org/pubs/tog/GraphicsGems/gemsiv/sph_poly.c I hope you will be able to rewrite it to PHP. Best regards -- Mateusz Loskot http://mateusz.loskot.net From Tom.Kralidis at EC.GC.CA Tue Jul 18 13:01:42 2006 From: Tom.Kralidis at EC.GC.CA (Kralidis,Tom [Burlington]) Date: Tue, 18 Jul 2006 16:01:42 -0400 Subject: REMOTE_OWS_TYPE Message-ID: So you're looking to use data from a remote OGC:WFS as part of your OGC:WMS? If this is the case, you can setup a LAYER block in your OGC:WMS mapfile to point to an OGC:WFS resource, and use CLASS blocks See: http://mapserver.gis.umn.edu/docs/howto/wfs_client for details. There's also an example of this in the MapServer OGC Web Services Workshop (http://devgeo.cciw.ca/ms_ogc_workshop/index.html). As far as how this works under the hood, mapserver developers: when someone does a GetMap w/ SLD w/ Filter, if the layer in question is an OGC:WFS layer, will that filter be passed? I think it would be, but haven't tested this extensively. Cheers ..Tom -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Fabio D'Ovidio Sent: Tuesday, July 18, 2006 3:44 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] REMOTE_OWS_TYPE I'd like to manage dinamically spatial and no-spatial filters from the client in cascading configuration WMS+ WFS ! So the client (browser) requests map to WMS and WMS takes data from WFS. In this cascading there are two problms : 1) The filters are applicable only server side ! Client doesn't put wfs-filter in the WMS request! 2)If the client writes filter in SLD mode in the WMS request WMS downloads all of the GML file and than works with the filter !!!! So I'd like to try with OWS parameters to see how it works. Thank you ! ************************************************************************ ******************** Eng. Fabio D'Ovidio WebGIS Staff Planetek Italia Srl via Massaua, 12 - 70123 Bari - Italy web : http ://www.planetek.it e-mail : dovidio at planetek.it ************************************************************************ ******************** On 17 Jul 2006 at 11:35, Kralidis,Tom [Burlington] wrote: > > Not that I am aware of. What are your requirements, i.e. where/why > would you intend to use these? > > If you can provide further information, perhaps this can be put forth as > a valuable addition to MapServer, or perhaps there is a workaround which > can be applied. > > ..Tom > > > -----Original Message----- > From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On > Behalf Of Fabio D'Ovidio > Sent: Monday, July 17, 2006 11:28 AM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: [UMN_MAPSERVER-USERS] REMOTE_OWS_TYPE > > > Does mapserver support REMOTE_OWS_TYPE and REMOTE_OWS_URL parameters ? > > > Thank you > ************************************************************************ > ******************** > > > > Ing. Fabio D'Ovidio > WebGIS Staff > Planetek Italia Srl > via Massaua, 12 - 70123 Bari - Italy > web : http ://www.planetek.it > e-mail : dovidio at planetek.it > > > ************************************************************************ > ******************** From mateusz at LOSKOT.NET Tue Jul 18 13:30:51 2006 From: mateusz at LOSKOT.NET (Mateusz Loskot) Date: Tue, 18 Jul 2006 22:30:51 +0200 Subject: calculate polygon area In-Reply-To: <4BF377919225F449BB097CB76FFE9BC83DDF88@ptolemy.topozone.com> Message-ID: Ed McNierney wrote: > Mateusz - > > That is some very suspicious-looking code. It says: > > "Returns the area of a spherical polygon in spherical degrees" The function SphericalPolyArea does this job correctly. > and then displays the area in "Square Miles" by using these > constants: > > double SqMi= 273218.4, /* Square mi per spherical degree. */ SqKm= > 707632.4; /* Square km per spherical degree. */ > > and multiplies the area in "spherical degrees" by 273218.4!!! This part is another story and I agree in this matter with you. > I cannot figure out what the constant 273218.4 is supposed to > represent. Over there in Warsaw one degree of latitude is 69.14 > statute miles, and one degree of longitude is 42.53 statute miles, so > there are 2940.52 square miles in that "square degree". At my house > there are 3519.33 square miles in a "square degree", and down in > Quito there are 4752.54 square miles in that same "square degree". > > Even overlooking the minor error introduced with a sphere rather than > an ellipsoid, I am skeptical that this code will actually do anything > useful. Julien did said nothing about projection and that he want's to get usable values for particular area. I understood he is looking for some simple/general solution And calculation of spherical polygon area is such general solution, but I agree it does no provide good quality results regarding our Mother Earth. BTW, this procedure comes to book for game programmers, so it assume the Earth is spherical. Julien, if you want to get correct results I'd suggest you to use equal-area projection for the are of your interest. Best regards -- Mateusz Loskot http://mateusz.loskot.net From markane at INDIANA.EDU Tue Jul 18 13:36:34 2006 From: markane at INDIANA.EDU (Matthew Kane) Date: Tue, 18 Jul 2006 16:36:34 -0400 Subject: file formats Message-ID: All, Does MapServer have the capability to deal with E00 files? If not, is anyone aware of a conversion utility from E00 to shapefile? Thanks, Matt -------------- next part -------------- An HTML attachment was scrubbed... URL: From John.Schattel at NOAA.GOV Tue Jul 18 13:36:58 2006 From: John.Schattel at NOAA.GOV (John Schattel) Date: Tue, 18 Jul 2006 16:36:58 -0400 Subject: Looking for an OGC Compliant WFS/WCS Server Message-ID: Good Afternoon All, I would like to use a WFS and WCS server as the front end for a software application we have that encodes our data in GML3.1.1. From what I have read on this list, it seems like MapServer is capable of acting as a WFS and WCS server. Is that correct? Is there any reason why it wouldn't be a good approach to use MapServer solely as a WFS and WCS servers? If this plan seems reasonable, where would you suggest I turn to learn how to implement these features of the MapServer? In advance, thanks for your help. John By the way, if this message duplicates an earlier post I sent, please pardon the extra mail. I got the following message, but never saw "the original message" show up on the list. Your message is being returned to you unprocessed because it appears to have already been distributed to the MAPSERVER-USERS list. That is, a message with identical text (but possibly with different mail headers) has been posted to the list recently, either by you or by someone else. If you have reason to resend this message to the list (for instance because you have been notified of a hardware failure with loss of data), please alter the text of the message in some way and resend it to the list. Note that altering the "Subject:" line or adding blank lines at the top or bottom of the message is not sufficient; you should instead add a sentence or two at the top explaining why you are resending the message, so that the other subscribers understand why they are getting two copies of the same message. From Tom.Kralidis at EC.GC.CA Tue Jul 18 14:05:05 2006 From: Tom.Kralidis at EC.GC.CA (Kralidis,Tom [Burlington]) Date: Tue, 18 Jul 2006 17:05:05 -0400 Subject: Looking for an OGC Compliant WFS/WCS Server Message-ID: > -----Original Message----- > From: UMN MapServer Users List > [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of John Schattel > Sent: Tuesday, July 18, 2006 4:37 PM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: [UMN_MAPSERVER-USERS] Looking for an OGC Compliant > WFS/WCS Server > > > Good Afternoon All, > > I would like to use a WFS and WCS server as the front end for > a software > application we have that encodes our data in GML3.1.1. From > what I have > read on this list, it seems like MapServer is capable of > acting as a WFS > and WCS server. Is that correct? Correct. OGC:WFS 1.0.0 (serving GML2 and GML3 level 0), and OGC:WCS 1.0.0. > Is there any reason why it > wouldn't > be a good approach to use MapServer solely as a WFS and WCS > servers? If > this plan seems reasonable, where would you suggest I turn to > learn how > to implement these features of the MapServer? > MapServer is flexible enough to act in many modes e.g. CGI mode as well as various OGC Web Services. For learning resources, check out the OGC howtos on http://mapserver.gis.umn.edu/docs. The MapServer OGC Web Services Workshop (http://devgeo.cciw.ca/ms_ogc_workshop/index.html) also provides a good tutorial and examples on getting up to speed on supporting OGC specifications in MapServer. > In advance, thanks for your help. > > John > > By the way, if this message duplicates an earlier post I sent, please > pardon the extra mail. I got the following message, but > never saw "the > original message" show up on the list. > > Your message is being returned to you unprocessed because > it appears > to have > already been distributed to the MAPSERVER-USERS list. That is, a > message with > identical text (but possibly with different mail headers) has been > posted to > the list recently, either by you or by someone else. If you have > reason to > resend this message to the list (for instance because you have been > notified of > a hardware failure with loss of data), please alter the text of the > message in > some way and resend it to the list. Note that altering the > "Subject:" > line or > adding blank lines at the top or bottom of the message is not > sufficient; you > should instead add a sentence or two at the top > explaining why > you are > resending the message, so that the other subscribers > understand why > they are > getting two copies of the same message. > From ed at TOPOZONE.COM Tue Jul 18 14:22:11 2006 From: ed at TOPOZONE.COM (Ed McNierney) Date: Tue, 18 Jul 2006 17:22:11 -0400 Subject: calculate polygon area Message-ID: Mateusz - I don't mind the Earth being spherical as much as I object to the concept of a "square degree". Since a "degree" is an angular measurement, not a linear one, the "square degree" mentioned in the code appears to refer to a patch on the surface of the sphere defined by two perpendicular one-degree angles with their vertices at the CENTER of the sphere. In other words, for a given radius, one "square degree" is indeed a constant area. And a useful concept for game programmers (I used to be one). This is very confusingly similar to but different from the concept of degrees of latitude and longitude, since a degree of longitude is a one-degree angle with its vertex on a line between the poles, and NOT at the center of the Earth. It appears that the code given (it's hard to tell, given the almost complete absence of comments) takes "latitude" and "longitude" coordinates as inputs, and then finds the angles of the triangles inside the defined polygon and calculates the area of those triangles using standard spherical geometry. If that's the case, then it is possible that the magic "square mi per spherical degree" is the appropriate conversion factor for a roughly spherical Earth, but I can't verify it since the code makes no effort to explain where that constant comes from. So it may indeed be possible that this code might produce rough and not terribly accurate results. I don't know how accurate Julien is trying to be. Julien, it would help if you could tell us how large an area you are working with, and what kind of accuracy you need. Mateusz's suggestion of some equal-area projection is good, but if you don't need much accuracy you might be able to take some shortcuts. - Ed Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 ed at topozone.com (978) 251-4242 -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Mateusz Loskot Sent: Tuesday, July 18, 2006 4:31 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] calculate polygon area Ed McNierney wrote: > Mateusz - > > That is some very suspicious-looking code. It says: > > "Returns the area of a spherical polygon in spherical degrees" The function SphericalPolyArea does this job correctly. > and then displays the area in "Square Miles" by using these > constants: > > double SqMi= 273218.4, /* Square mi per spherical degree. */ SqKm= > 707632.4; /* Square km per spherical degree. */ > > and multiplies the area in "spherical degrees" by 273218.4!!! This part is another story and I agree in this matter with you. > I cannot figure out what the constant 273218.4 is supposed to > represent. Over there in Warsaw one degree of latitude is 69.14 > statute miles, and one degree of longitude is 42.53 statute miles, so > there are 2940.52 square miles in that "square degree". At my house > there are 3519.33 square miles in a "square degree", and down in Quito > there are 4752.54 square miles in that same "square degree". > > Even overlooking the minor error introduced with a sphere rather than > an ellipsoid, I am skeptical that this code will actually do anything > useful. Julien did said nothing about projection and that he want's to get usable values for particular area. I understood he is looking for some simple/general solution And calculation of spherical polygon area is such general solution, but I agree it does no provide good quality results regarding our Mother Earth. BTW, this procedure comes to book for game programmers, so it assume the Earth is spherical. Julien, if you want to get correct results I'd suggest you to use equal-area projection for the are of your interest. Best regards -- Mateusz Loskot http://mateusz.loskot.net From warmerdam at POBOX.COM Tue Jul 18 15:21:46 2006 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Tue, 18 Jul 2006 18:21:46 -0400 Subject: FW: Michigan Georef Projection Problems in Proj4 In-Reply-To: Message-ID: Clever, Max wrote: > Frank, > > First, to answer your question, the parameters Melita offered are not > accurate enough and are not the true parameters of the Michigan Georef > Projection. Also, the translation from EPSG to PROJ4 is not correct. I > don't think Proj 4 supports a point azimuth method transformation for > Hotine oblique Mercator (Rectified Skew Orthomorphic Projection) Max, OK, well implementing new projection methods is definately Gerald's area, not mine. So if you can interest him in it, then things should be good. I just not competent to do it. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | President OSGF, http://osgeo.org From szekerest at GMAIL.COM Tue Jul 18 15:57:19 2006 From: szekerest at GMAIL.COM (Tamas Szekeres) Date: Wed, 19 Jul 2006 00:57:19 +0200 Subject: CSharp-Mapscript: setSymbolSet doesn't work?! In-Reply-To: <20060718085259.109310@gmx.net> Message-ID: Hi, Constructing symbolObj you are using: "symbolObj(string symbolname, string imagefile)" The second parameter - if exists - point to an image for rendering that symbol. In your case the followings should work: symbolObj mySymbol = new symbolObj("mySymbol", null); mySymbol.type = (int)MS_SYMBOL_TYPE.MS_SYMBOL_VECTOR; mySymbol.filled = mapscript.MS_TRUE; lineObj line = new lineObj(); line.add(new pointObj(1, 5, 0, 0)); line.add(new pointObj(1, 3, 0, 0)); line.add(new pointObj(3, 2, 0, 0)); line.add(new pointObj(1, 1, 0, 0)); line.add(new pointObj(1, 3, 0, 0)); mySymbol.setPoints(line); myMap.symbolset.appendSymbol(mySymbol); I haven't tested it so additional properties might be set, apologies. Tamas 2006/7/18, Christian Wilmes : > Hi, > > sorry, myMapHandler.Map was my mistake. But he was only in the mail, I just tried to create a very simple sample. Now I've changed my code for using myMap.symbolset.appendSymbol but it still doesn't work: > > mapObj myMap = new mapObj(""); > symbolObj symbol = new symbolObj("mySymbol", directory); > myMap.symbolSet.appendSymbol(symbol); > : > layerObj myLayer = new layerObj(null); > myLayer.name = "RosoftWFS"; > myLayer.Type = MS_LAYER_TYPE.MS_LAYER_POINT; > myLayer.Connectiontype = MS_CONNECTION_TYPE.MS_WFS; > myLayer.Connection = "http://localhost/cgi-bin/mapserv.exe?"; > myLayer.metadata.set("wfs_typename", "myWFS"); > myLayer.metadata.set("wfs_version","1.0.0"); > myLayer.metadata.set("wfs_request_method", "GET"); > myLayer.metadata.set("wfs_service", "WFS"); > myLayer.setProjection("EPSG:31467"); > > classObj c = new classObj(myLayer); > c.name = "test"; > > styleObj style = new styleObj(c); > style.symbolname = "mySymbol"; > style.size = 150; > style.color = new colorObj(255, 0, 255, 0); > : > myMap.insertLayer(myLayer, -1); > > > Best Regards > Christian > -------- Original-Nachricht -------- > Datum: Mon, 17 Jul 2006 23:40:09 +0200 > Von: Tamas Szekeres > An: MAPSERVER-USERS at LISTS.UMN.EDU > Betreff: Re: [UMN_MAPSERVER-USERS] CSharp-Mapscript: setSymbolSet doesn\'t work?! > > > Christian, > > > > I'm a bit uncertain if you have added that symbolset to your map > > (myMapHandler.Map may be another map reference :? ). > > I would prefer using myMap.symbolset.appendSymbol instead of using > > setsymbolset. > > > > If you are using constructors like "new classObj(myLayer)" and "new > > styleObj(c)" you might want to use mapserver 4.8.4 to avoid nasty heap > > corruptions and memory reference errors ;-) In that case using new > > layerObj(mymap) seems better than insertLayer since the extra layer > > copy is avoided. > > > > Best Regards, > > > > Tamas > > > > > > > > 2006/7/17, Christian Wilmes : > > > Hi All, > > > > > > I try to display a WFS-Layer with my application but I got only small > > points instead of the symbol in my Symbolset. > > > > > > My Symbolset looks like that: > > > SYMBOLSET > > > SYMBOL > > > NAME "Fahne" > > > TYPE VECTOR > > > FILLED TRUE > > > POINTS > > > 1 5 > > > 1 3 > > > 3 2 > > > 1 1 > > > 1 3 > > > END > > > END > > > END > > > > > > Some Code from the application: > > > mapObj myMap = new mapObj(""); > > > myMapHandler.Map.setSymbolSet(Environment.CurrentDirectory + > > @"\test.sym"); > > > : > > > layerObj myLayer = new layerObj(null); > > > myLayer.name = "RosoftWFS"; > > > myLayer.Type = MS_LAYER_TYPE.MS_LAYER_POINT; > > > myLayer.Connectiontype = MS_CONNECTION_TYPE.MS_WFS; > > > myLayer.Connection = "http://localhost/cgi-bin/mapserv.exe?"; > > > myLayer.metadata.set("wfs_typename", "myWFS"); > > > myLayer.metadata.set("wfs_version","1.0.0"); > > > myLayer.metadata.set("wfs_request_method", "GET"); > > > myLayer.metadata.set("wfs_service", "WFS"); > > > > > > myLayer.setProjection("EPSG:31467"); > > > classObj c = new classObj(myLayer); > > > c.name = "test"; > > > styleObj style = new styleObj(c); > > > style.symbolname = "Fahne"; > > > style.size = 150; > > > style.color = new colorObj(255, 0, 255, 0); > > > : > > > myMap.insertLayer(myLayer, -1); > > > > > > > > > Does anybody have an idea where to find the mistake? > > > > > > > > > Best Regards > > > Christian > > > -- > > > > > > > > > "Feel free" ? 10 GB Mailbox, 100 FreeSMS/Monat ... > > > Jetzt GMX TopMail testen: http://www.gmx.net/de/go/topmail > > > > > -- > > > "Feel free" ? 10 GB Mailbox, 100 FreeSMS/Monat ... > Jetzt GMX TopMail testen: http://www.gmx.net/de/go/topmail > From szekerest at GMAIL.COM Tue Jul 18 16:03:48 2006 From: szekerest at GMAIL.COM (Tamas Szekeres) Date: Wed, 19 Jul 2006 01:03:48 +0200 Subject: C#-Mapscript: Bug in mapObj.insertLayer() In-Reply-To: <20060718090609.109320@gmx.net> Message-ID: Christian, You are right, a bug report should be posted accordingly. Good catch! How this problem results in error for you? Tamas 2006/7/18, Christian Wilmes : > Hi All, > > I think there is a bug in the method for mapObj.insertLayer(layerObj layer, int index). It only works for index = -1. > > I think reason for that might be in mapobject.c in the function msInsertLayerm, line 525: > > map->layers[map->numlayers].index = nIndex; > > > > Is it possible, that something like > > map->layers[nIndex].index = nIndex; > > is correct? > > > Best Regards > Christian > -- > > > Echte DSL-Flatrate dauerhaft f?r 0,- Euro*! > "Feel free" mit GMX DSL! http://www.gmx.net/de/go/dsl > From siukola.antti at GMAIL.COM Wed Jul 19 00:20:48 2006 From: siukola.antti at GMAIL.COM (antti siukola) Date: Wed, 19 Jul 2006 10:20:48 +0300 Subject: Mapserver returns blank pages In-Reply-To: <5383fa5e0607180804o5c103d0cu73806281a8ff1046@mail.gmail.com> Message-ID: HI! I just found out that using antialiasing produces more or less all of the blank page returns that I have. Is the antialias style parameter limited only to TrueType fonts and Cartoline symbols? I have used it on vector layers but after setting it to false on these layers all blank pages seem to disappear. Antti S On 7/18/06, Matthew Perry wrote: > On 7/18/06, antti siukola wrote: > > Hi! > > > > How do I set my projection? I mean I know that the projection of my maps is > > VVJ , 24, 1016, 7, 24, 0, 1,-1.6, -6599998.7 but how do I set it so > > that mapserver understands it? Or how do even I understand it? ;) > > > > Check out http://mapserver.gis.umn.edu/docs/reference/mapfile/projection/ > > -- > Matt Perry > perrygeo at gmail.com > http://www.perrygeo.net > From thomas.bonfort at GMAIL.COM Wed Jul 19 00:49:47 2006 From: thomas.bonfort at GMAIL.COM (thomas bonfort) Date: Wed, 19 Jul 2006 09:49:47 +0200 Subject: Mapserver returns blank pages In-Reply-To: Message-ID: are you using an official release of gd or the patched version. there's a bug in gd that causes these symptoms exactly > the patch is to add this near line 3035 of gd.c at the beginning of > static void gdImageSetAAPixelColor(gdImagePtr im, int x, int y, int > color, int t) > > if(x<0||y<0||x>=im->sx||y>=im->sy) > { > return; > } cheers On 7/19/06, antti siukola wrote: > > HI! > > I just found out that using antialiasing produces more or less all of > the blank page returns that I have. Is the antialias style parameter > limited only to TrueType fonts and Cartoline symbols? I have used it > on vector layers but after setting it to false on these layers all > blank pages seem to disappear. > > Antti S > > On 7/18/06, Matthew Perry wrote: > > On 7/18/06, antti siukola wrote: > > > Hi! > > > > > > How do I set my projection? I mean I know that the projection of my > maps is > > > VVJ , 24, 1016, 7, 24, 0, 1,-1.6, -6599998.7 but how do I set it so > > > that mapserver understands it? Or how do even I understand it? ;) > > > > > > > Check out > http://mapserver.gis.umn.edu/docs/reference/mapfile/projection/ > > > > -- > > Matt Perry > > perrygeo at gmail.com > > http://www.perrygeo.net > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From Dejan.Gambin at PULA.HR Wed Jul 19 00:42:45 2006 From: Dejan.Gambin at PULA.HR (Gambin Dejan) Date: Wed, 19 Jul 2006 09:42:45 +0200 Subject: Character recognition question Message-ID: Hi, I don't know if I make a silly question, but I am interesting if there is any possibilities/solutions to enable character recognition on the raster data in MapServer? I have made all my municipal cadastral data (scanned and geocoded) available on a MapServer site (on my local network). The rasters have many numbers (cadastral plots identification numbers) and it would be great if there were any chance to search for them on a map....or am I asking for an impossible thing?? thanks very much for any information on this dejan From cavallini at FAUNALIA.IT Wed Jul 19 01:51:25 2006 From: cavallini at FAUNALIA.IT (Paolo Cavallini) Date: Wed, 19 Jul 2006 10:51:25 +0200 Subject: mapscript bug? Message-ID: -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi all. We may have hit a bug in php-mapscript. When we try to use (via OGR) a grass vector, we get an error: [Wed Jul 19 09:57:08 2006] [error] [client 192.168.0.110] PHP Warning: [MapServer Error]: msDrawMap(): Failed to draw layer named 'grass_POSTGRES'.\n in /home/Documenti/pub/prove_w/visuo_map_file.php on line 6 [Wed Jul 19 09:57:08 2006] [error] [client 192.168.0.110] PHP Warning: [MapServer Error]: msOGRLayerInitItemInfo(): Invalid Field name: atc_num\n in /home/Documenti/pub/prove_w/visuo_map_file.php on line 6 [Wed Jul 19 09:57:08 2006] [error] [client 192.168.0.110] PHP Fatal error: Call to a member function on a non-object in /home/Documenti/pub/prove_w/visuo_map_file.php on line 8 Apparently mapscript adds a \n to the name of the database field, and postgres does not accept it. shp2img and mapserv can generate the map without problems. This happens with php4-mapscript 4.8.3-2 and libgdal1-1.3.1-grass from Debian etch. Should we file a bug against this? All the best. pc - -- Paolo Cavallini email+jabber: cavallini at faunalia.it www.faunalia.it Piazza Garibaldi 5 - 56025 Pontedera (PI), Italy Tel: (+39)348-3801953 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.3 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFEvfKM/NedwLUzIr4RArsXAJ9CRuKU9qyS990pCgnojMJH2Z3ysQCgikmC 5xod4LcsLsdWbdOGbnCljJE= =pqXB -----END PGP SIGNATURE----- From hydromap at GMAIL.COM Wed Jul 19 02:22:23 2006 From: hydromap at GMAIL.COM (Shoaib Burq) Date: Wed, 19 Jul 2006 19:22:23 +1000 Subject: Looking for an OGC Compliant WFS/WCS Server In-Reply-To: <2576812186CDD411BF1500508B6DCE950F009648@ecnwri1.ontario.int.ec.gc.ca> Message-ID: John, from the little bit of experiance I have of WCS -- i found Mapscript support for WCS somewhat lacking. I believe this is being addressed for future releases. Mapserver-CGI is probably the way to go. Someone can correct me if I haven't kept up-to-date. cheers Shoaib > > > > > > Good Afternoon All, > > > > I would like to use a WFS and WCS server as the front end for > > a software > > application we have that encodes our data in GML3.1.1. From > > what I have > > read on this list, it seems like MapServer is capable of > > acting as a WFS > > and WCS server. Is that correct? > > Correct. OGC:WFS 1.0.0 (serving GML2 and GML3 level 0), and OGC:WCS > 1.0.0. > > > Is there any reason why it > > wouldn't > > be a good approach to use MapServer solely as a WFS and WCS > > servers? If > > this plan seems reasonable, where would you suggest I turn to > > learn how > > to implement these features of the MapServer? > > > > MapServer is flexible enough to act in many modes e.g. CGI mode as well > as various OGC Web Services. > > For learning resources, check out the OGC howtos on > http://mapserver.gis.umn.edu/docs. The MapServer OGC Web Services > Workshop (http://devgeo.cciw.ca/ms_ogc_workshop/index.html) also > provides a good tutorial and examples on getting up to speed on > supporting OGC specifications in MapServer. > > > > In advance, thanks for your help. > > > > John > > > > By the way, if this message duplicates an earlier post I sent, please > > pardon the extra mail. I got the following message, but > > never saw "the > > original message" show up on the list. > > > > Your message is being returned to you unprocessed because > > it appears > > to have > > already been distributed to the MAPSERVER-USERS list. That is, a > > message with > > identical text (but possibly with different mail headers) has been > > posted to > > the list recently, either by you or by someone else. If you have > > reason to > > resend this message to the list (for instance because you have been > > notified of > > a hardware failure with loss of data), please alter the text of the > > message in > > some way and resend it to the list. Note that altering the > > "Subject:" > > line or > > adding blank lines at the top or bottom of the message is not > > sufficient; you > > should instead add a sentence or two at the top > > explaining why > > you are > > resending the message, so that the other subscribers > > understand why > > they are > > getting two copies of the same message. > > > From C.Wilmes at GMX.DE Wed Jul 19 03:15:57 2006 From: C.Wilmes at GMX.DE (Christian Wilmes) Date: Wed, 19 Jul 2006 12:15:57 +0200 Subject: CSharp-Mapscript: setSymbolSet doesn't work?! In-Reply-To: Message-ID: Hi, thanks for your quick response Tamas, but the symbols don't work up to now. Normaly it should work with the gif-File in the parameterlist too, the gif-File exists on my System. But I tested it with your code for the symbolObj a lot of times, because that seems to be more simple. Directly before and after calling mapObj.draw() I saved the mapfile build by my Application. I tested both mapfiles in my Browser and both of them are working correct. I will insert the two mapfiles in this email. Here is my original code I use with some expressions: public class Controller { //myMapHandler is a type of the class MapHandler which handels Objects of the class Map. Map is a Subclass of mapObj private MapHandler myMapHandler = new MapHandler(); public void InitializeLayers() { //PipelineLayer is a Subclass from layerObj //The first parameter in the Constructor is the mapObj, the second one the status of the Layer, the third one is the Connectionstring to my WFS-Server //I've got good reasons for giving null in the parameterlist for the mapObj and using the InsertLayer-Method later. //I tested it with giving directly the mapObj in the constructor, it also doesn't work PipelineLayer trajektorie = new PipelineLayer(null, true, "http://localhost/cgi-bin/mapserv.exe?"); //Building the Symbol: symbolObj symbol = new symbolObj("mySymbol", null); symbol.type = (int)MS_SYMBOL_TYPE.MS_SYMBOL_VECTOR; symbol.filled = mapscript.MS_TRUE; lineObj line = new lineObj(); line.add(new pointObj(1, 5, 0, 0)); line.add(new pointObj(1, 3, 0, 0)); line.add(new pointObj(3, 2, 0, 0)); line.add(new pointObj(1, 1, 0, 0)); line.add(new pointObj(1, 3, 0, 0)); symbol.setPoints(line); ? myMapHandler.Map.SymbolSet.appendSymbol(symbol); classObj classtest = new classObj(trajektorie); classtest.name = "test"; styleObj myStyle = new styleObj(classtest); myStyle.symbolname = "mySymbol"; myStyle.size = 150; myStyle.color = new colorObj(255, 0, 0, -1); myMapHandler.Map.SymbolSet.save(Environment.CurrentDirectory + @"\test.sym"); myMapHandler.Map.InsertLayer(trajektorie, -1); // the Method Refresh Map is displayed above myMapHandler.Map.RefreshMap(); } } public class Map : mapObj { : : public void RefreshMap() { Cursor.Current = Cursors.WaitCursor; try { lock (this) { this.Save(Environment.CurrentDirectory + @"\testBefore.map"); using (imageObj image = this.draw()) { this.Save(Environment.CurrentDirectory + @"\testAfter.map"); byte[] img = image.getBytes(); using (MemoryStream ms = new MemoryStream(img)) { myImageHandler.ImageMap = Image.FromStream(ms); } } } } catch (Exception ex) { MessageBox.Show(ex.Message + "\n" + (ex.InnerException != null ? ex.InnerException.Message : "") , "Error", MessageBoxButtons.OK, MessageBoxIcon.Error); } finally { Cursor.Current = Cursors.Default; } } : : } I've got no idea where else I have to search the mistake, or is it even possible that there is a another Bug in the mapscript who is responsible for that? Best Regards Christian -------- Original-Nachricht -------- Datum: Wed, 19 Jul 2006 00:57:19 +0200 Von: Tamas Szekeres An: Christian Wilmes Betreff: Re: Re: [UMN_MAPSERVER-USERS] CSharp-Mapscript: setSymbolSet doesn\'t work?! > Hi, > > Constructing symbolObj you are using: > > "symbolObj(string symbolname, string imagefile)" > > The second parameter - if exists - point to an image for rendering that > symbol. > In your case the followings should work: > > symbolObj mySymbol = new symbolObj("mySymbol", null); > mySymbol.type = (int)MS_SYMBOL_TYPE.MS_SYMBOL_VECTOR; > mySymbol.filled = mapscript.MS_TRUE; > lineObj line = new lineObj(); > line.add(new pointObj(1, 5, 0, 0)); > line.add(new pointObj(1, 3, 0, 0)); > line.add(new pointObj(3, 2, 0, 0)); > line.add(new pointObj(1, 1, 0, 0)); > line.add(new pointObj(1, 3, 0, 0)); > mySymbol.setPoints(line); > myMap.symbolset.appendSymbol(mySymbol); > > I haven't tested it so additional properties might be set, apologies. > > Tamas > > > 2006/7/18, Christian Wilmes : > > Hi, > > > > sorry, myMapHandler.Map was my mistake. But he was only in the mail, I > just tried to create a very simple sample. Now I've changed my code for > using myMap.symbolset.appendSymbol but it still doesn't work: > > > > mapObj myMap = new mapObj(""); > > symbolObj symbol = new symbolObj("mySymbol", directory); > > myMap.symbolSet.appendSymbol(symbol); > > : > > layerObj myLayer = new layerObj(null); > > myLayer.name = "RosoftWFS"; > > myLayer.Type = MS_LAYER_TYPE.MS_LAYER_POINT; > > myLayer.Connectiontype = MS_CONNECTION_TYPE.MS_WFS; > > myLayer.Connection = "http://localhost/cgi-bin/mapserv.exe?"; > > myLayer.metadata.set("wfs_typename", "myWFS"); > > myLayer.metadata.set("wfs_version","1.0.0"); > > myLayer.metadata.set("wfs_request_method", "GET"); > > myLayer.metadata.set("wfs_service", "WFS"); > > myLayer.setProjection("EPSG:31467"); > > > > classObj c = new classObj(myLayer); > > c.name = "test"; > > > > styleObj style = new styleObj(c); > > style.symbolname = "mySymbol"; > > style.size = 150; > > style.color = new colorObj(255, 0, 255, 0); > > : > > myMap.insertLayer(myLayer, -1); > > > > > > Best Regards > > Christian > > -------- Original-Nachricht -------- > > Datum: Mon, 17 Jul 2006 23:40:09 +0200 > > Von: Tamas Szekeres > > An: MAPSERVER-USERS at LISTS.UMN.EDU > > Betreff: Re: [UMN_MAPSERVER-USERS] CSharp-Mapscript: setSymbolSet > doesn\'t work?! > > > > > Christian, > > > > > > I'm a bit uncertain if you have added that symbolset to your map > > > (myMapHandler.Map may be another map reference :? ). > > > I would prefer using myMap.symbolset.appendSymbol instead of using > > > setsymbolset. > > > > > > If you are using constructors like "new classObj(myLayer)" and "new > > > styleObj(c)" you might want to use mapserver 4.8.4 to avoid nasty heap > > > corruptions and memory reference errors ;-) In that case using new > > > layerObj(mymap) seems better than insertLayer since the extra layer > > > copy is avoided. > > > > > > Best Regards, > > > > > > Tamas > > > > > > > > > > > > 2006/7/17, Christian Wilmes : > > > > Hi All, > > > > > > > > I try to display a WFS-Layer with my application but I got only > small > > > points instead of the symbol in my Symbolset. > > > > > > > > My Symbolset looks like that: > > > > SYMBOLSET > > > > SYMBOL > > > > NAME "Fahne" > > > > TYPE VECTOR > > > > FILLED TRUE > > > > POINTS > > > > 1 5 > > > > 1 3 > > > > 3 2 > > > > 1 1 > > > > 1 3 > > > > END > > > > END > > > > END > > > > > > > > Some Code from the application: > > > > mapObj myMap = new mapObj(""); > > > > myMapHandler.Map.setSymbolSet(Environment.CurrentDirectory + > > > @"\test.sym"); > > > > : > > > > layerObj myLayer = new layerObj(null); > > > > myLayer.name = "RosoftWFS"; > > > > myLayer.Type = MS_LAYER_TYPE.MS_LAYER_POINT; > > > > myLayer.Connectiontype = MS_CONNECTION_TYPE.MS_WFS; > > > > myLayer.Connection = "http://localhost/cgi-bin/mapserv.exe?"; > > > > myLayer.metadata.set("wfs_typename", "myWFS"); > > > > myLayer.metadata.set("wfs_version","1.0.0"); > > > > myLayer.metadata.set("wfs_request_method", "GET"); > > > > myLayer.metadata.set("wfs_service", "WFS"); > > > > > > > > myLayer.setProjection("EPSG:31467"); > > > > classObj c = new classObj(myLayer); > > > > c.name = "test"; > > > > styleObj style = new styleObj(c); > > > > style.symbolname = "Fahne"; > > > > style.size = 150; > > > > style.color = new colorObj(255, 0, 255, 0); > > > > : > > > > myMap.insertLayer(myLayer, -1); > > > > > > > > > > > > Does anybody have an idea where to find the mistake? > > > > > > > > > > > > Best Regards > > > > Christian > > > > -- > > > > > > > > > > > > "Feel free" ? 10 GB Mailbox, 100 FreeSMS/Monat ... > > > > Jetzt GMX TopMail testen: http://www.gmx.net/de/go/topmail > > > > > > > > -- > > > > > > "Feel free" ? 10 GB Mailbox, 100 FreeSMS/Monat ... > > Jetzt GMX TopMail testen: http://www.gmx.net/de/go/topmail > > -- Echte DSL-Flatrate dauerhaft f?r 0,- Euro*! "Feel free" mit GMX DSL! http://www.gmx.net/de/go/dsl -------------- next part -------------- MAP EXTENT 3396369.30902111 5800885 3402780.69097889 5804895 IMAGECOLOR 230 230 230 IMAGETYPE JPEG SHAPEPATH "C:\geodata\data\" SIZE 833 521 STATUS ON UNITS METERS NAME "test.map" OUTPUTFORMAT NAME "jpeg" MIMETYPE "image/jpeg" DRIVER "GD/JPEG" EXTENSION "jpg" IMAGEMODE "RGB" TRANSPARENT FALSE END SYMBOL NAME "mySymbol" TYPE VECTOR FILLED TRUE POINTS 1 5 1 3 3 2 1 1 1 3 END END PROJECTION "init=epsg:31467" END LEGEND IMAGECOLOR 255 255 255 KEYSIZE 20 10 KEYSPACING 5 5 LABEL SIZE MEDIUM TYPE BITMAP BUFFER 0 COLOR 0 0 0 FORCE FALSE MINDISTANCE -1 MINFEATURESIZE -1 OFFSET 0 0 PARTIALS TRUE POSITION CC END POSITION LL STATUS OFF END QUERYMAP COLOR 255 255 0 SIZE -1 -1 STATUS OFF STYLE HILITE END SCALEBAR COLOR 0 0 0 IMAGECOLOR 255 255 255 INTERVALS 3 LABEL SIZE MEDIUM TYPE BITMAP BUFFER 0 COLOR 0 0 0 FORCE FALSE MINDISTANCE -1 MINFEATURESIZE -1 OFFSET 0 0 PARTIALS TRUE POSITION CR END POSITION LR POSTLABELCACHE TRUE SIZE 200 3 STATUS EMBED STYLE 1 UNITS METERS END WEB IMAGEPATH "c:/ms4w/tmp/ms_tmp" IMAGEURL "/ms_tmp/" METADATA "WMS_SRS" "EPSG:4326" "WMS_ONLINERESOURCE" "http://localhost/cgi-bin/mapserv.exe?Map=c:\ms4w\myMapHandler.MapPfile.map&" "WMS_ABSTRACT" "This is an UMN MapServer Application Demonstrating the capabilities of a Web Mapping Application" "WMS_TITLE" "Rosen World Base Map" END QUERYFORMAT text/html LEGENDFORMAT text/html BROWSEFORMAT text/html END LAYER CONNECTION "http://localhost/cgi-bin/mapserv.exe?" CONNECTIONTYPE WFS DUMP TRUE METADATA "wfs_request_method" "GET" "wfs_maxfeatures" "10" "wfs_typename" "myWFS" "wfs_service" "WFS" "wfs_connectiontimeout" "60" "wfs_version" "1.0.0" END NAME "RosoftWFS" PROJECTION "init=epsg:31467" END SIZEUNITS PIXELS STATUS ON TOLERANCEUNITS PIXELS TYPE POINT UNITS METERS CLASS NAME "test" METADATA END STYLE ANGLE 360 COLOR 255 0 0 SIZE 150 SYMBOL "mySymbol" END END END END -------------- next part -------------- MAP EXTENT 3396369.30902111 5800885 3402780.69097889 5804895 IMAGECOLOR 230 230 230 IMAGETYPE JPEG SHAPEPATH "C:\geodata\data\" SIZE 833 521 STATUS ON UNITS METERS NAME "test.map" OUTPUTFORMAT NAME "jpeg" MIMETYPE "image/jpeg" DRIVER "GD/JPEG" EXTENSION "jpg" IMAGEMODE "RGB" TRANSPARENT FALSE END SYMBOL NAME "mySymbol" TYPE VECTOR FILLED TRUE POINTS 1 5 1 3 3 2 1 1 1 3 END END PROJECTION "init=epsg:31467" END LEGEND IMAGECOLOR 255 255 255 KEYSIZE 20 10 KEYSPACING 5 5 LABEL SIZE MEDIUM TYPE BITMAP BUFFER 0 COLOR 0 0 0 FORCE FALSE MINDISTANCE -1 MINFEATURESIZE -1 OFFSET 0 0 PARTIALS TRUE POSITION CC END POSITION LL STATUS OFF END QUERYMAP COLOR 255 255 0 SIZE -1 -1 STATUS OFF STYLE HILITE END SCALEBAR COLOR 0 0 0 IMAGECOLOR 255 255 255 INTERVALS 3 LABEL SIZE MEDIUM TYPE BITMAP BUFFER 0 COLOR 0 0 0 FORCE FALSE MINDISTANCE -1 MINFEATURESIZE -1 OFFSET 0 0 PARTIALS TRUE END POSITION LR POSTLABELCACHE TRUE SIZE 200 3 STATUS EMBED STYLE 1 UNITS METERS END WEB IMAGEPATH "c:/ms4w/tmp/ms_tmp" IMAGEURL "/ms_tmp/" METADATA "WMS_SRS" "EPSG:4326" "WMS_ONLINERESOURCE" "http://localhost/cgi-bin/mapserv.exe?Map=c:\ms4w\myMapHandler.MapPfile.map&" "WMS_ABSTRACT" "This is an UMN MapServer Application Demonstrating the capabilities of a Web Mapping Application" "WMS_TITLE" "Rosen World Base Map" END QUERYFORMAT text/html LEGENDFORMAT text/html BROWSEFORMAT text/html END LAYER CONNECTION "http://localhost/cgi-bin/mapserv.exe?" CONNECTIONTYPE WFS DUMP TRUE METADATA "wfs_request_method" "GET" "wfs_maxfeatures" "10" "wfs_typename" "myWFS" "wfs_service" "WFS" "wfs_connectiontimeout" "60" "wfs_version" "1.0.0" END NAME "RosoftWFS" PROJECTION "init=epsg:31467" END SIZEUNITS PIXELS STATUS ON TOLERANCEUNITS PIXELS TYPE POINT UNITS METERS CLASS NAME "test" METADATA END STYLE ANGLE 360 COLOR 255 0 0 SIZE 150 SYMBOL "mySymbol" END END END END From C.Wilmes at GMX.DE Wed Jul 19 03:21:37 2006 From: C.Wilmes at GMX.DE (Christian Wilmes) Date: Wed, 19 Jul 2006 12:21:37 +0200 Subject: C#-Mapscript: Bug in mapObj.insertLayer() In-Reply-To: Message-ID: Tamas, I didn't test the bug very often, but the Layer which shoult be insert in the map isn't there after calling the method. Instead of it another Layer is twice times in the map. I don't know exactly which of the other Layers it is. Best Regards Christian -------- Original-Nachricht -------- Datum: Wed, 19 Jul 2006 01:03:48 +0200 Von: Tamas Szekeres An: MAPSERVER-USERS at LISTS.UMN.EDU Betreff: Re: [UMN_MAPSERVER-USERS] C#-Mapscript: Bug in mapObj.insertLayer() > Christian, > > You are right, a bug report should be posted accordingly. > Good catch! > > How this problem results in error for you? > > Tamas > > > > 2006/7/18, Christian Wilmes : > > Hi All, > > > > I think there is a bug in the method for mapObj.insertLayer(layerObj > layer, int index). It only works for index = -1. > > > > I think reason for that might be in mapobject.c in the function > msInsertLayerm, line 525: > > > > map->layers[map->numlayers].index = nIndex; > > > > > > > > Is it possible, that something like > > > > map->layers[nIndex].index = nIndex; > > > > is correct? > > > > > > Best Regards > > Christian > > -- > > > > > > Echte DSL-Flatrate dauerhaft f?r 0,- Euro*! > > "Feel free" mit GMX DSL! http://www.gmx.net/de/go/dsl > > -- Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen! Ideal f?r Modem und ISDN: http://www.gmx.net/de/go/smartsurfer From xslove at CENTRUM.CZ Wed Jul 19 02:49:18 2006 From: xslove at CENTRUM.CZ (xslove) Date: Wed, 19 Jul 2006 02:49:18 -0700 Subject: mapserv not following extents? In-Reply-To: <4BF377919225F449BB097CB76FFE9BC83DDD6F@ptolemy.topozone.com> Message-ID: Hi, I have similar problem. I need to draw map with ratio 1:1.5 (my data has WGS-84 coords), so I specify extent little smaller for Y axis. When I call mapserv via cgi request, it is drawn correct. But when I use java code for mapscript, extent for Y axis is ignored, recomputed and image has ratio 1:1. Do you know about any solution? Thanks very much Radim -- View this message in context: http://www.nabble.com/Re%3A-mapserv-not-following-extents--tf1644493.html#a5393392 Sent from the Mapserver - User forum at Nabble.com. From Steve.Lime at DNR.STATE.MN.US Wed Jul 19 06:21:47 2006 From: Steve.Lime at DNR.STATE.MN.US (Steve Lime) Date: Wed, 19 Jul 2006 08:21:47 -0500 Subject: calculate polygon area Message-ID: Julien: The dev version of MapServer (which is quite stable) now has full support for GEOS operators in MapScript including a getArea() method. However, I don't know that Assefa has gotten around to adding them to PHP/MapScript. As far as I know the getArea method is planar... There is a distanceToPoint method for point objects I believe but again it is doing a simple planar distance computation. Steve >>> Julien Bessiere 07/18/06 8:12 AM >>> Hi, I'm using phpMapscript / Mapserver. I wrote a little script that allows users to draw polygons on the map. I try to figure out how to calculate the area of this polygon, but so far... I found a formula and wrote the script below but as i'm using decimal latitude and longitude, the result is unusable : So my questions is : 1- Does phpmapscript has a function to calculate area (something like distanceToPoint(pointObj poPoint))? 2- If no, how to calculate area wiht lat long coordinates? thanks for your advices, Julien ============================================================ function polygonArea($polygon_coordinates){ $array_length = count($polygon_coordinates); if ($array_length > 2){ // add the first coordinates at the end to close de polygon array_push($polygon_coordinates,array($polygon_coordinates[0][0],$polygon_coordinates[0][1])); $polygon_area = 0; for ($i=0;$i <= $array_length;$i++){ $polygon_area += ( ($polygon_coordinates[$i][0] * $polygon_coordinates[$i+1][1])- ($polygon_coordinates[$i][1] * $polygon_coordinates[$i+1][0])); } $polygon_area = abs($polygon_area / 2); } else { $polygon_area = 'need at least 3 points'; } return $polygon_area; } ===================================================================== From julien.63 at FREE.FR Wed Jul 19 07:43:32 2006 From: julien.63 at FREE.FR (Julien Bessiere) Date: Wed, 19 Jul 2006 16:43:32 +0200 Subject: calculate polygon area In-Reply-To: <4BF377919225F449BB097CB76FFE9BC83DDF89@ptolemy.topozone.com> Message-ID: Hi Ed, Mateusz and Steeve, First of all, thanks for your answers. Then, it's my turn to answer. So : >>>>>>>>>"If you have GEOS support you can try to use the geos msGEOSArea() function." * my mapserver installation does not support GEOS. >>>>>>>>>"If you use a useful output projection (such as UTM or a standard regional projection) then the math should be quite simple." * You mean that if I should use 'PROJECTION "init=epsg:2029" END' instead of 'PROJECTION "init=epsg:4326" END' as output format in my map file and use the coordinate to calculate the area ? >>>>>>>>>"it would help if you could tell us how large an area you are working with, and what kind of accuracy you need." - I'm working for the Smithsonian tropical Research Institut in Panama. The aim is to estimate the aera and I don't think we need a very high accuracy level. But the range could be quite large. I guess the polygon area could stretch from about 20 km? up to 300 000 km?. Is it possible to evaluate the miscalculation range? >>>>>>>>"The dev version of MapServer (which is quite stable) now has full support for GEOS operators in MapScript including a getArea() method" * Thanks for all this work done . It's good to know and I gonna think about it. thanks again for your advices Julien Selon Ed McNierney : > Mateusz - > > I don't mind the Earth being spherical as much as I object to the > concept of a "square degree". Since a "degree" is an angular > measurement, not a linear one, the "square degree" mentioned in the code > appears to refer to a patch on the surface of the sphere defined by two > perpendicular one-degree angles with their vertices at the CENTER of the > sphere. In other words, for a given radius, one "square degree" is > indeed a constant area. And a useful concept for game programmers (I > used to be one). > > This is very confusingly similar to but different from the concept of > degrees of latitude and longitude, since a degree of longitude is a > one-degree angle with its vertex on a line between the poles, and NOT at > the center of the Earth. > > It appears that the code given (it's hard to tell, given the almost > complete absence of comments) takes "latitude" and "longitude" > coordinates as inputs, and then finds the angles of the triangles inside > the defined polygon and calculates the area of those triangles using > standard spherical geometry. > > If that's the case, then it is possible that the magic "square mi per > spherical degree" is the appropriate conversion factor for a roughly > spherical Earth, but I can't verify it since the code makes no effort to > explain where that constant comes from. > > So it may indeed be possible that this code might produce rough and not > terribly accurate results. I don't know how accurate Julien is trying > to be. > > Julien, it would help if you could tell us how large an area you are > working with, and what kind of accuracy you need. Mateusz's suggestion > of some equal-area projection is good, but if you don't need much > accuracy you might be able to take some shortcuts. > > - Ed > > Ed McNierney > President and Chief Mapmaker > TopoZone.com / Maps a la carte, Inc. > 73 Princeton Street, Suite 305 > North Chelmsford, MA 01863 > ed at topozone.com > (978) 251-4242 > > -----Original Message----- > From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On > Behalf Of Mateusz Loskot > Sent: Tuesday, July 18, 2006 4:31 PM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] calculate polygon area > > Ed McNierney wrote: > > Mateusz - > > > > That is some very suspicious-looking code. It says: > > > > "Returns the area of a spherical polygon in spherical degrees" > > The function SphericalPolyArea does this job correctly. > > > and then displays the area in "Square Miles" by using these > > constants: > > > > double SqMi= 273218.4, /* Square mi per spherical degree. */ SqKm= > > 707632.4; /* Square km per spherical degree. */ > > > > and multiplies the area in "spherical degrees" by 273218.4!!! > > This part is another story and I agree in this matter with you. > > > I cannot figure out what the constant 273218.4 is supposed to > > represent. Over there in Warsaw one degree of latitude is 69.14 > > statute miles, and one degree of longitude is 42.53 statute miles, so > > there are 2940.52 square miles in that "square degree". At my house > > there are 3519.33 square miles in a "square degree", and down in Quito > > > there are 4752.54 square miles in that same "square degree". > > > > Even overlooking the minor error introduced with a sphere rather than > > an ellipsoid, I am skeptical that this code will actually do anything > > > useful. > > Julien did said nothing about projection and that he want's to get > usable values for particular area. > I understood he is looking for some simple/general solution And > calculation of spherical polygon area is such general solution, but I > agree it does no provide good quality results regarding our Mother > Earth. > > BTW, this procedure comes to book for game programmers, so it assume the > Earth is spherical. > > Julien, if you want to get correct results I'd suggest you to use > equal-area projection for the are of your interest. > > Best regards > -- > Mateusz Loskot > http://mateusz.loskot.net > From punkish at EIDESIS.ORG Wed Jul 19 07:56:58 2006 From: punkish at EIDESIS.ORG (P Kishor) Date: Wed, 19 Jul 2006 09:56:58 -0500 Subject: Character recognition question In-Reply-To: Message-ID: Try http://search.cpan.org/~jmastros/OCR-PerfectCR-0.03/lib/OCR/PerfectCR.pm as well as http://search.cpan.org/~allenday/Image-Ocrad-0.01/lib/Image/Ocrad.pm On 7/19/06, Gambin Dejan wrote: > Hi, > > I don't know if I make a silly question, but I am interesting if there > is any possibilities/solutions to enable character recognition on the > raster data in MapServer? > > I have made all my municipal cadastral data (scanned and geocoded) > available on a MapServer site (on my local network). The rasters have > many numbers (cadastral plots identification numbers) and it would be > great if there were any chance to search for them on a map....or am I > asking for an impossible thing?? > > thanks very much for any information on this > > dejan > -- Puneet Kishor http://punkish.eidesis.org/ Nelson Inst. for Env. Studies, UW-Madison http://www.ies.wisc.edu/ Open Source Geospatial Foundation https://edu.osgeo.org/ From earevaloch at GMAIL.COM Wed Jul 19 08:17:08 2006 From: earevaloch at GMAIL.COM (=?ISO-8859-1?Q?Eduardo_Ar=E9valo?=) Date: Wed, 19 Jul 2006 10:17:08 -0500 Subject: I look for solution....... Message-ID: I am following tutorial of Mapserver written by Pericles S. Nacionales, lodged in http://hypnos.cbs.umn.edu/tutorial/ I need to make questions on: Section 1 1.9 - Intro to MapServer Modes: map and browse as I can be put in contact with them ????? thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: From szekerest at GMAIL.COM Wed Jul 19 08:36:02 2006 From: szekerest at GMAIL.COM (Tamas Szekeres) Date: Wed, 19 Jul 2006 17:36:02 +0200 Subject: CSharp-Mapscript: setSymbolSet doesn't work?! In-Reply-To: <20060719101557.235900@gmx.net> Message-ID: Hi, You may also have to set the default symbol size to greater than 0, like for example: symbol.sizex = 0; symbol.sizey = 0; I would also suggest to use layerObj(mapObj map) instead of inserlayer to avoid an unnecessary layer copy. If the problem still persists it would be helpful if you could post a sample application to be able to reproduce the error and find a fix for it. Best Regards, Tamas 2006/7/19, Christian Wilmes : > Hi, > > thanks for your quick response Tamas, but the symbols don't work up to now. > > Normaly it should work with the gif-File in the parameterlist too, the gif-File exists on my System. But I tested it with your code for the symbolObj a lot of times, because that seems to be more simple. Directly before and after calling mapObj.draw() I saved the mapfile build by my Application. I tested both mapfiles in my Browser and both of them are working correct. I will insert the two mapfiles in this email. > > Here is my original code I use with some expressions: > > public class Controller > { > //myMapHandler is a type of the class MapHandler which handels Objects of the class Map. Map is a Subclass of mapObj > private MapHandler myMapHandler = new MapHandler(); > > > public void InitializeLayers() > { > > //PipelineLayer is a Subclass from layerObj > //The first parameter in the Constructor is the mapObj, the second one the status of the Layer, the third one is the Connectionstring to my WFS-Server > //I've got good reasons for giving null in the parameterlist for the mapObj and using the InsertLayer-Method later. > //I tested it with giving directly the mapObj in the constructor, it also doesn't work > PipelineLayer trajektorie = new PipelineLayer(null, true, "http://localhost/cgi-bin/mapserv.exe?"); > > //Building the Symbol: > symbolObj symbol = new symbolObj("mySymbol", null); > symbol.type = (int)MS_SYMBOL_TYPE.MS_SYMBOL_VECTOR; > symbol.filled = mapscript.MS_TRUE; > lineObj line = new lineObj(); > line.add(new pointObj(1, 5, 0, 0)); > line.add(new pointObj(1, 3, 0, 0)); > line.add(new pointObj(3, 2, 0, 0)); > line.add(new pointObj(1, 1, 0, 0)); > line.add(new pointObj(1, 3, 0, 0)); > symbol.setPoints(line); > > > > ? myMapHandler.Map.SymbolSet.appendSymbol(symbol); > > > > classObj classtest = new classObj(trajektorie); > classtest.name = "test"; > > styleObj myStyle = new styleObj(classtest); > myStyle.symbolname = "mySymbol"; > > myStyle.size = 150; > myStyle.color = new colorObj(255, 0, 0, -1); > > myMapHandler.Map.SymbolSet.save(Environment.CurrentDirectory + @"\test.sym"); > > myMapHandler.Map.InsertLayer(trajektorie, -1); > // the Method Refresh Map is displayed above > myMapHandler.Map.RefreshMap(); > } > } > > public class Map : mapObj > { > : > : > public void RefreshMap() > { > Cursor.Current = Cursors.WaitCursor; > try > { > lock (this) > { > this.Save(Environment.CurrentDirectory + @"\testBefore.map"); > using (imageObj image = this.draw()) > { > this.Save(Environment.CurrentDirectory + @"\testAfter.map"); > byte[] img = image.getBytes(); > using (MemoryStream ms = new MemoryStream(img)) > { > myImageHandler.ImageMap = Image.FromStream(ms); > } > } > } > } > catch (Exception ex) > { > MessageBox.Show(ex.Message + "\n" + (ex.InnerException != null ? ex.InnerException.Message : "") > , "Error", MessageBoxButtons.OK, MessageBoxIcon.Error); > } > finally > { > Cursor.Current = Cursors.Default; > } > } > : > : > } > > > > I've got no idea where else I have to search the mistake, or is it even possible that there is a another Bug in the mapscript who is responsible for that? > > > Best Regards > Christian > -------- Original-Nachricht -------- > Datum: Wed, 19 Jul 2006 00:57:19 +0200 > Von: Tamas Szekeres > An: Christian Wilmes > Betreff: Re: Re: [UMN_MAPSERVER-USERS] CSharp-Mapscript: setSymbolSet doesn\'t work?! > > > Hi, > > > > Constructing symbolObj you are using: > > > > "symbolObj(string symbolname, string imagefile)" > > > > The second parameter - if exists - point to an image for rendering that > > symbol. > > In your case the followings should work: > > > > symbolObj mySymbol = new symbolObj("mySymbol", null); > > mySymbol.type = (int)MS_SYMBOL_TYPE.MS_SYMBOL_VECTOR; > > mySymbol.filled = mapscript.MS_TRUE; > > lineObj line = new lineObj(); > > line.add(new pointObj(1, 5, 0, 0)); > > line.add(new pointObj(1, 3, 0, 0)); > > line.add(new pointObj(3, 2, 0, 0)); > > line.add(new pointObj(1, 1, 0, 0)); > > line.add(new pointObj(1, 3, 0, 0)); > > mySymbol.setPoints(line); > > myMap.symbolset.appendSymbol(mySymbol); > > > > I haven't tested it so additional properties might be set, apologies. > > > > Tamas > > > > > > 2006/7/18, Christian Wilmes : > > > Hi, > > > > > > sorry, myMapHandler.Map was my mistake. But he was only in the mail, I > > just tried to create a very simple sample. Now I've changed my code for > > using myMap.symbolset.appendSymbol but it still doesn't work: > > > > > > mapObj myMap = new mapObj(""); > > > symbolObj symbol = new symbolObj("mySymbol", directory); > > > myMap.symbolSet.appendSymbol(symbol); > > > : > > > layerObj myLayer = new layerObj(null); > > > myLayer.name = "RosoftWFS"; > > > myLayer.Type = MS_LAYER_TYPE.MS_LAYER_POINT; > > > myLayer.Connectiontype = MS_CONNECTION_TYPE.MS_WFS; > > > myLayer.Connection = "http://localhost/cgi-bin/mapserv.exe?"; > > > myLayer.metadata.set("wfs_typename", "myWFS"); > > > myLayer.metadata.set("wfs_version","1.0.0"); > > > myLayer.metadata.set("wfs_request_method", "GET"); > > > myLayer.metadata.set("wfs_service", "WFS"); > > > myLayer.setProjection("EPSG:31467"); > > > > > > classObj c = new classObj(myLayer); > > > c.name = "test"; > > > > > > styleObj style = new styleObj(c); > > > style.symbolname = "mySymbol"; > > > style.size = 150; > > > style.color = new colorObj(255, 0, 255, 0); > > > : > > > myMap.insertLayer(myLayer, -1); > > > > > > > > > Best Regards > > > Christian > > > -------- Original-Nachricht -------- > > > Datum: Mon, 17 Jul 2006 23:40:09 +0200 > > > Von: Tamas Szekeres > > > An: MAPSERVER-USERS at LISTS.UMN.EDU > > > Betreff: Re: [UMN_MAPSERVER-USERS] CSharp-Mapscript: setSymbolSet > > doesn\'t work?! > > > > > > > Christian, > > > > > > > > I'm a bit uncertain if you have added that symbolset to your map > > > > (myMapHandler.Map may be another map reference :? ). > > > > I would prefer using myMap.symbolset.appendSymbol instead of using > > > > setsymbolset. > > > > > > > > If you are using constructors like "new classObj(myLayer)" and "new > > > > styleObj(c)" you might want to use mapserver 4.8.4 to avoid nasty heap > > > > corruptions and memory reference errors ;-) In that case using new > > > > layerObj(mymap) seems better than insertLayer since the extra layer > > > > copy is avoided. > > > > > > > > Best Regards, > > > > > > > > Tamas > > > > > > > > > > > > > > > > 2006/7/17, Christian Wilmes : > > > > > Hi All, > > > > > > > > > > I try to display a WFS-Layer with my application but I got only > > small > > > > points instead of the symbol in my Symbolset. > > > > > > > > > > My Symbolset looks like that: > > > > > SYMBOLSET > > > > > SYMBOL > > > > > NAME "Fahne" > > > > > TYPE VECTOR > > > > > FILLED TRUE > > > > > POINTS > > > > > 1 5 > > > > > 1 3 > > > > > 3 2 > > > > > 1 1 > > > > > 1 3 > > > > > END > > > > > END > > > > > END > > > > > > > > > > Some Code from the application: > > > > > mapObj myMap = new mapObj(""); > > > > > myMapHandler.Map.setSymbolSet(Environment.CurrentDirectory + > > > > @"\test.sym"); > > > > > : > > > > > layerObj myLayer = new layerObj(null); > > > > > myLayer.name = "RosoftWFS"; > > > > > myLayer.Type = MS_LAYER_TYPE.MS_LAYER_POINT; > > > > > myLayer.Connectiontype = MS_CONNECTION_TYPE.MS_WFS; > > > > > myLayer.Connection = "http://localhost/cgi-bin/mapserv.exe?"; > > > > > myLayer.metadata.set("wfs_typename", "myWFS"); > > > > > myLayer.metadata.set("wfs_version","1.0.0"); > > > > > myLayer.metadata.set("wfs_request_method", "GET"); > > > > > myLayer.metadata.set("wfs_service", "WFS"); > > > > > > > > > > myLayer.setProjection("EPSG:31467"); > > > > > classObj c = new classObj(myLayer); > > > > > c.name = "test"; > > > > > styleObj style = new styleObj(c); > > > > > style.symbolname = "Fahne"; > > > > > style.size = 150; > > > > > style.color = new colorObj(255, 0, 255, 0); > > > > > : > > > > > myMap.insertLayer(myLayer, -1); > > > > > > > > > > > > > > > Does anybody have an idea where to find the mistake? > > > > > > > > > > > > > > > Best Regards > > > > > Christian > > > > > -- > > > > > > > > > > > > > > > "Feel free" ? 10 GB Mailbox, 100 FreeSMS/Monat ... > > > > > Jetzt GMX TopMail testen: http://www.gmx.net/de/go/topmail > > > > > > > > > > > -- > > > > > > > > > "Feel free" ? 10 GB Mailbox, 100 FreeSMS/Monat ... > > > Jetzt GMX TopMail testen: http://www.gmx.net/de/go/topmail > > > > > -- > > > Echte DSL-Flatrate dauerhaft f?r 0,- Euro*! > "Feel free" mit GMX DSL! http://www.gmx.net/de/go/dsl > > > From szekerest at GMAIL.COM Wed Jul 19 08:38:04 2006 From: szekerest at GMAIL.COM (Tamas Szekeres) Date: Wed, 19 Jul 2006 17:38:04 +0200 Subject: CSharp-Mapscript: setSymbolSet doesn't work?! In-Reply-To: <20060719101557.235900@gmx.net> Message-ID: I wanted to write: symbol.sizex = 10; symbol.sizey = 10; in my previous post, apologies Tamas From ollerery at ENGR.ORST.EDU Wed Jul 19 09:16:16 2006 From: ollerery at ENGR.ORST.EDU (Ryan Ollerenshaw) Date: Wed, 19 Jul 2006 09:16:16 -0700 Subject: Eclipse MapServer libmapscript.so: cannot open shared object file In-Reply-To: <95f68e530607190817s71a61d5fw32e56748a41034f2@mail.gmail.com> Message-ID: When trying to create a java application using eclipse i get the following error: java.lang.UnsatisfiedLinkError: libmapscript: libmapscript.so: cannot open shared object file: No such file or directory Here is my code: import edu.umn.gis.mapscript.*; import java.io.*; public class HelloServlet { public static void main(String[] args) { System.loadLibrary("mapscript"); mapObj map; imageObj image; map=new mapObj("/var/www/html/mapserver/htdocs/display.map"); map.setProjection("init=epsg:4326"); image=map.draw(); image.save("test.png",map); } } From ollerery at ENGR.ORST.EDU Wed Jul 19 09:21:52 2006 From: ollerery at ENGR.ORST.EDU (Ryan Ollerenshaw) Date: Wed, 19 Jul 2006 09:21:52 -0700 Subject: Eclipse MapServer libmapscript.so: cannot open shared object file In-Reply-To: <1153325776.44be5ad056a4e@webmail.oregonstate.edu> Message-ID: Quoting Ryan Ollerenshaw : > When trying to create a java application using eclipse i get the following > error: > > java.lang.UnsatisfiedLinkError: libmapscript: libmapscript.so: cannot open > shared object file: No such file or directory I have the library libmapscript.so saved at /home/ryan/workspace/mapscript_test and I have tried setting my LD_LIBRARY_PATH using: export LD_LIBRARY_PATH=/home/ryan/workspace/mapscript_test But no luck, I have also tried adding the following to eclipse program arguments: -Djava.library.path=/home/ryan/workspace/mapscript_test/ But still no luck. Sorry i am new to eclipse to any help would be great. > Here is my code: > > import edu.umn.gis.mapscript.*; > import java.io.*; > > public class HelloServlet { > > public static void main(String[] args) { > > System.loadLibrary("mapscript"); > mapObj map; > imageObj image; > > map=new mapObj("/var/www/html/mapserver/htdocs/display.map"); > map.setProjection("init=epsg:4326"); > image=map.draw(); > image.save("test.png",map); > } > } > > > From nbarker at ITTVIS.COM Wed Jul 19 09:22:17 2006 From: nbarker at ITTVIS.COM (Norman Barker) Date: Wed, 19 Jul 2006 17:22:17 +0100 Subject: Eclipse MapServer libmapscript.so: cannot open shared object file Message-ID: -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Ryan Ollerenshaw Sent: Wednesday, July 19, 2006 5:16 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Eclipse MapServer libmapscript.so: cannot open shared object file When trying to create a java application using eclipse i get the following error: java.lang.UnsatisfiedLinkError: libmapscript: libmapscript.so: cannot open shared object file: No such file or directory Here is my code: import edu.umn.gis.mapscript.*; import java.io.*; public class HelloServlet { public static void main(String[] args) { System.loadLibrary("mapscript"); mapObj map; imageObj image; map=new mapObj("/var/www/html/mapserver/htdocs/display.map"); map.setProjection("init=epsg:4326"); image=map.draw(); image.save("test.png",map); } } Ryan, You need to add the path variable to eclipse, so in eclipse do the following Run -> Run -> (select your configuration) -> Environment -> add a variable called path and set it to /usr/local/lib (or /usr/lib) Similary in Tomcat, or JBoss, you need to add -Djava.library.path=... to run.bat Norman From ollerery at ENGR.ORST.EDU Wed Jul 19 09:40:30 2006 From: ollerery at ENGR.ORST.EDU (Ryan Ollerenshaw) Date: Wed, 19 Jul 2006 09:40:30 -0700 Subject: Eclipse MapServer libmapscript.so: cannot open shared object file In-Reply-To: Message-ID: Quoting Norman Barker : > > > -----Original Message----- > > When trying to create a java application using eclipse i get the > following > error: > > java.lang.UnsatisfiedLinkError: libmapscript: libmapscript.so: cannot > open > shared object file: No such file or directory > > Here is my code: > > import edu.umn.gis.mapscript.*; > import java.io.*; > > public class HelloServlet { > > public static void main(String[] args) { > > System.loadLibrary("mapscript"); > mapObj map; > imageObj image; > > map=new > mapObj("/var/www/html/mapserver/htdocs/display.map"); > map.setProjection("init=epsg:4326"); > image=map.draw(); > image.save("test.png",map); > } > } > > Ryan, > > You need to add the path variable to eclipse, so in eclipse do the > following > > Run -> Run -> (select your configuration) -> Environment -> add a > variable called path and set it to /usr/local/lib (or /usr/lib) > > Similary in Tomcat, or JBoss, you need to add -Djava.library.path=... to > run.bat > > Norman > thank you but still no luck i am getting the same error message, and i am running Apache on Fedora Core 5 if that helps any. From jarg58 at GMAIL.COM Wed Jul 19 10:19:08 2006 From: jarg58 at GMAIL.COM (Alejandro Rico) Date: Wed, 19 Jul 2006 12:19:08 -0500 Subject: file formats In-Reply-To: Message-ID: Hi!!! In my little experience with MapServer, i know that mapserver don't support E00 Files, so when i need to work with E00 maps, i convert it with GRASS, but you should import it first to GRASS format with v.in.e00 and then export to shp with v.out.ogr. May be, you will have problems with the dbf data, but it work properly in the most cases. On 7/18/06, Matthew Kane wrote: > > All, > > Does MapServer have the capability to deal with E00 files? If not, is > anyone aware of a conversion utility from E00 to shapefile? > > Thanks, > Matt > -- Alejandro Rico -------------- next part -------------- An HTML attachment was scrubbed... URL: From perrygeo at GMAIL.COM Wed Jul 19 10:41:57 2006 From: perrygeo at GMAIL.COM (Matthew Perry) Date: Wed, 19 Jul 2006 10:41:57 -0700 Subject: file formats In-Reply-To: Message-ID: On 7/18/06, Matthew Kane wrote: > Does MapServer have the capability to deal with E00 files? Not natively. You have to convert to another format. > If not, is anyone > aware of a conversion utility from E00 to shapefile? Check out http://avce00.maptools.org/avce00/. This will convert from e00 to coverage (which can be read directly by mapserver or converted to shapefile using ogr2ogr) -- Matt Perry perrygeo at gmail.com http://www.perrygeo.net From rjames57 at YAHOO.COM Wed Jul 19 10:41:54 2006 From: rjames57 at YAHOO.COM (Randy James) Date: Wed, 19 Jul 2006 10:41:54 -0700 Subject: file formats In-Reply-To: Message-ID: This site has downloads for converting e00 to shp. http://software.geocomm.com/translators/arcview/ randy --- Alejandro Rico wrote: > Hi!!! > > In my little experience with MapServer, i know that mapserver don't > support > E00 Files, so when i need to work with E00 maps, i convert it with > GRASS, > but you should import it first to GRASS format with v.in.e00 and > then export > to shp with v.out.ogr. > > May be, you will have problems with the dbf data, but it work > properly in > the most cases. > > On 7/18/06, Matthew Kane wrote: > > > > All, > > > > Does MapServer have the capability to deal with E00 files? If > not, is > > anyone aware of a conversion utility from E00 to shapefile? > > > > Thanks, > > Matt > > > > > > -- > Alejandro Rico > __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com From vitor.buitoni at DIGITRO.COM.BR Wed Jul 19 10:15:00 2006 From: vitor.buitoni at DIGITRO.COM.BR (Vitor Buitoni) Date: Wed, 19 Jul 2006 14:15:00 -0300 Subject: Eclipse MapServer libmapscript.so: cannot open shared object file In-Reply-To: <1153327230.44be607e32f6c@webmail.oregonstate.edu> Message-ID: Ryan Ollerenshaw escreveu: > Quoting Norman Barker : > > >> -----Original Message----- >> >> When trying to create a java application using eclipse i get the >> following >> error: >> >> java.lang.UnsatisfiedLinkError: libmapscript: libmapscript.so: cannot >> open >> shared object file: No such file or directory >> >> Here is my code: >> >> import edu.umn.gis.mapscript.*; >> import java.io.*; >> >> public class HelloServlet { >> >> public static void main(String[] args) { >> >> System.loadLibrary("mapscript"); >> mapObj map; >> imageObj image; >> >> map=new >> mapObj("/var/www/html/mapserver/htdocs/display.map"); >> map.setProjection("init=epsg:4326"); >> image=map.draw(); >> image.save("test.png",map); >> } >> } >> >> Ryan, >> >> You need to add the path variable to eclipse, so in eclipse do the >> following >> >> Run -> Run -> (select your configuration) -> Environment -> add a >> variable called path and set it to /usr/local/lib (or /usr/lib) >> >> Similary in Tomcat, or JBoss, you need to add -Djava.library.path=... to >> run.bat >> >> Norman >> >> > > thank you but still no luck i am getting the same error message, and i am > running Apache on Fedora Core 5 if that helps any. > Inside eclipse, if you are using linux, you should add the environment variable LD_LIBRARY_PATH pointing to the directory where the file libmapscript.so is placed, in the Run configuration of your project. (the way Norman explained) If you want it to work inside Tomcat (since you can't use java mapscript with Apache), you should follow these instructions: (I recommend you take a good look into it) http://mapserver.gis.umn.edu/docs/howto/java_mapscript_Tomcat_55 The part of putting things inside $TOMCAT_HOME/shared/lib is important, this way the mapscript library will be loaded only once. Also, I had to edit the file $TOMCAT_HOME/conf/setenv.sh , setting the environment variable LD_LIBRARY_PATH to point to the directory where libmapscript.so is. (-Djava.library.path is another option) Another thing you shouldn't do in your code is to call System.loadLibrary() when things are running inside tomcat. This will be done automatically by mapscript.jar. Vitor > > From ollerery at ENGR.ORST.EDU Wed Jul 19 11:21:25 2006 From: ollerery at ENGR.ORST.EDU (Ryan Ollerenshaw) Date: Wed, 19 Jul 2006 11:21:25 -0700 Subject: Eclipse MapServer libmapscript.so: cannot open shared object file In-Reply-To: <1153327230.44be607e32f6c@webmail.oregonstate.edu> Message-ID: Quoting Ryan Ollerenshaw : > Quoting Norman Barker : > > > > > > > -----Original Message----- > > > > When trying to create a java application using eclipse i get the > > following > > error: > > > > java.lang.UnsatisfiedLinkError: libmapscript: libmapscript.so: cannot > > open > > shared object file: No such file or directory > > > > Here is my code: > > > > import edu.umn.gis.mapscript.*; > > import java.io.*; > > > > public class HelloServlet { > > > > public static void main(String[] args) { > > > > System.loadLibrary("mapscript"); > > mapObj map; > > imageObj image; > > > > map=new > > mapObj("/var/www/html/mapserver/htdocs/display.map"); > > map.setProjection("init=epsg:4326"); > > image=map.draw(); > > image.save("test.png",map); > > } > > } > > > > Ryan, > > > > You need to add the path variable to eclipse, so in eclipse do the > > following > > > > Run -> Run -> (select your configuration) -> Environment -> add a > > variable called path and set it to /usr/local/lib (or /usr/lib) > > > > Similary in Tomcat, or JBoss, you need to add -Djava.library.path=... to > > run.bat > > > > Norman > > > Here is the solution, once the library is copied to your working directory add the following to the VM arguments in eclipse: -classpath ./:./mapscript.jar -Djava.library.path=. or from the command line it looks like this: #> javac -classpath ./:./mapscript.jar -Djava.library.path=. #> java -classpath ./:./mapscript.jar -Djava.library.path=. From tylermitchell at SHAW.CA Wed Jul 19 12:02:39 2006 From: tylermitchell at SHAW.CA (Tyler Mitchell) Date: Wed, 19 Jul 2006 12:02:39 -0700 Subject: file formats In-Reply-To: <5383fa5e0607191041r31edaf12o75ad2d7a5cc4d1ab@mail.gmail.com> Message-ID: I have also heard that OGR now supports E00 file format. Although you wouldn't want to read them directly due to performance issues, you can at least convert them using OGR now. I'm not sure if that is in the current binary release of GDAL/OGR or whether you need current source version. But either way, it's a hurdle we are now over.. whew :) Tyer On 19-Jul-06, at 10:41 AM, Matthew Perry wrote: > On 7/18/06, Matthew Kane wrote: >> Does MapServer have the capability to deal with E00 files? > > Not natively. You have to convert to another format. > >> If not, is anyone >> aware of a conversion utility from E00 to shapefile? > > Check out http://avce00.maptools.org/avce00/. This will convert from > e00 to coverage (which can be read directly by mapserver or converted > to shapefile using ogr2ogr) > > -- > Matt Perry > perrygeo at gmail.com > http://www.perrygeo.net From assefa at DMSOLUTIONS.CA Wed Jul 19 11:15:01 2006 From: assefa at DMSOLUTIONS.CA (Yewondwossen Assefa) Date: Wed, 19 Jul 2006 14:15:01 -0400 Subject: calculate polygon area In-Reply-To: Message-ID: Steve, I will add all the remaining geos support in PHP sometime next week. Steve Lime wrote: > Julien: The dev version of MapServer (which is quite stable) now has full support for GEOS operators in MapScript including a getArea() method. However, I don't know that Assefa has gotten around to adding them to PHP/MapScript. As far as I know the getArea method is planar... > > There is a distanceToPoint method for point objects I believe but again it is doing a simple planar distance computation. > > Steve > > >>>>Julien Bessiere 07/18/06 8:12 AM >>> > > Hi, > I'm using phpMapscript / Mapserver. > I wrote a little script that allows users to draw polygons on the map. I try to > figure out how to calculate the area of this polygon, but so far... > I found a formula and wrote the script below but as i'm using decimal latitude > and longitude, the result is unusable : > So my questions is : > > 1- Does phpmapscript has a function to calculate area > (something like distanceToPoint(pointObj poPoint))? > 2- If no, how to calculate area wiht lat long coordinates? > > thanks for your advices, > > Julien > > ============================================================ > function polygonArea($polygon_coordinates){ > $array_length = count($polygon_coordinates); > if ($array_length > 2){ > // add the first coordinates at the end to close de polygon > > array_push($polygon_coordinates,array($polygon_coordinates[0][0],$polygon_coordinates[0][1])); > $polygon_area = 0; > for ($i=0;$i <= $array_length;$i++){ > $polygon_area += ( > ($polygon_coordinates[$i][0] * > $polygon_coordinates[$i+1][1])- > ($polygon_coordinates[$i][1] * > $polygon_coordinates[$i+1][0])); > } > $polygon_area = abs($polygon_area / 2); > } > else { > $polygon_area = 'need at least 3 points'; > } > return $polygon_area; > } > ===================================================================== > -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: assefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- From bart_doggers at YAHOO.COM Wed Jul 19 12:23:55 2006 From: bart_doggers at YAHOO.COM (Albert Anderson) Date: Wed, 19 Jul 2006 12:23:55 -0700 Subject: Raster Layer Questions????? Message-ID: Hi everyone, I would like to know how to load my areial photo when I zoom in a city. Then when I zoom out I dont see the areial photo. I know it can be done. Do I need to step some sort of extent layer to come on and off? Can anyone help me? I am providing my some of my code of the map file. What more do I need to at to the code? ##################################### LAYER NAME "richmap" TYPE RASTER STATUS default DATA "richland.tif" METADATA "wms_srs" "EPSG:4326" "wms_name" "richmap" "wms_server_version" "1.1.1" "wms_format" "image/tif" END END Thanks, Albert --------------------------------- Talk is cheap. Use Yahoo! Messenger to make PC-to-Phone calls. Great rates starting at 1?/min. -------------- next part -------------- An HTML attachment was scrubbed... URL: From Steve.Lime at DNR.STATE.MN.US Wed Jul 19 13:29:08 2006 From: Steve.Lime at DNR.STATE.MN.US (Steve Lime) Date: Wed, 19 Jul 2006 15:29:08 -0500 Subject: Raster Layer Questions????? Message-ID: Check out MINSCALE/MAXSCALE in the layer object documentation... Steve >>> Albert Anderson 7/19/2006 2:23:55 PM >>> Hi everyone, I would like to know how to load my areial photo when I zoom in a city. Then when I zoom out I dont see the areial photo. I know it can be done. Do I need to step some sort of extent layer to come on and off? Can anyone help me? I am providing my some of my code of the map file. What more do I need to at to the code? ##################################### LAYER NAME "richmap" TYPE RASTER STATUS default DATA "richland.tif" METADATA "wms_srs" "EPSG:4326" "wms_name" "richmap" "wms_server_version" "1.1.1" "wms_format" "image/tif" END END Thanks, Albert --------------------------------- Talk is cheap. Use Yahoo! Messenger to make PC-to-Phone calls. Great rates starting at 1?/min. From David.Fawcett at STATE.MN.US Wed Jul 19 13:30:43 2006 From: David.Fawcett at STATE.MN.US (Fawcett, David) Date: Wed, 19 Jul 2006 15:30:43 -0500 Subject: Raster Layer Questions????? In-Reply-To: A<20060719192356.95712.qmail@web55707.mail.re3.yahoo.com> Message-ID: I recommend taking a look at this: http://mapserver.gis.umn.edu/docs/howto/raster_data David. -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Albert Anderson Sent: Wednesday, July 19, 2006 2:24 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Raster Layer Questions????? Hi everyone, I would like to know how to load my areial photo when I zoom in a city. Then when I zoom out I dont see the areial photo. I know it can be done. Do I need to step some sort of extent layer to come on and off? Can anyone help me? I am providing my some of my code of the map file. What more do I need to at to the code? ##################################### LAYER NAME "richmap" TYPE RASTER STATUS default DATA "richland.tif" METADATA "wms_srs" "EPSG:4326" "wms_name" "richmap" "wms_server_version" "1.1.1" "wms_format" "image/tif" END END Thanks, Albert ________________________________ Talk is cheap. Use Yahoo! Messenger to make PC-to-Phone calls. Great rates starting at 1?/min. -------------- next part -------------- An HTML attachment was scrubbed... URL: From delloblio at GMAIL.COM Wed Jul 19 14:19:49 2006 From: delloblio at GMAIL.COM (Nicola Gawaine) Date: Wed, 19 Jul 2006 23:19:49 +0200 Subject: Help for standalone java client Message-ID: Hi all, I'm a java developer and I'm new to this mailinglist and to mapserver. I've to develop a java standalone application that has to communicate with mapserver. Although I've read some documents, the only idea that I have about the communication between application and mapserver is: to create an application that sends an http request to mapserver, fetches the returning page, and parses the page's elements to display the map image etc. Does exists another system ? I hope my english is comprehensible :) -- Nicola 'GaWaiNe' Racco --- delloblio at gmail.com From earevaloch at GMAIL.COM Wed Jul 19 14:43:25 2006 From: earevaloch at GMAIL.COM (=?ISO-8859-1?Q?Eduardo_Ar=E9valo?=) Date: Wed, 19 Jul 2006 16:43:25 -0500 Subject: I look for solution....... In-Reply-To: Message-ID: greetings steve thanks for the suggestion. this he is mapfile that is used for example 1.9 of the manual of mapserver MAP NAME EX1.9_ IMAGETYPE PNG24 EXTENT 166221 -371954 1505849 632767 # LAEA #EXTENT -97.5 41.619778 -82.122902 49.38562 # Geographic SIZE 400 300 SHAPEPATH "../data" SYMBOLSET "../symbols/symbols35.sym" FONTSET "../fonts/fonts.list" WEB TEMPLATE 'example1-9.html' IMAGEPATH '/ms4w/tmp/ms_tmp/' IMAGEURL '/ms_tmp/' END # This is the output PROJECTION definition ------ PROJECTION # Projection parameters can be defined in two ways... # This is the traditional Proj.4 definition of Lambert Azimuthal Equal-Area # projection for the Continental U.S. # "proj=laea" # "ellps=clrk66" # "lat_0=45" # "lon_0=-100" # # Alternatively, you can specify an EPSG code. # This is the EPSG code for Lambert Azimuthal Equal-Area # projection for the U.S. "init=epsg:2163" END # Start of LAYER DEFINITIONS --------------------------------------------- LAYER # States polygon layer begins here NAME states DATA states_ugl STATUS OFF TYPE POLYGON # Here's an example of the input projection definition. # EPSG:4326 is code for geographic (latlong) projection # using the WGS84 datum. # # PROJECTION objects within the LAYER object define the input # projection--this is the native projection of your data. PROJECTION "init=epsg:4326" END CLASSITEM "CLASS" CLASS EXPRESSION 'land' STYLE SYMBOL 0 COLOR 232 232 232 END END END # States polygon layer ends here LAYER # MODIS raster layer begins here NAME modis DATA "raster/mod09a12003161_ugl_ll_8bit.tif" STATUS OFF #DEFAULT TYPE RASTER PROCESSING "BANDS=1,2,3" OFFSITE 71 74 65 PROJECTION "init=epsg:4326" END END # MODIS raster layer ends here LAYER # MODIS WMS map from JPL (or from USGS) NAME modis_jpl TYPE RASTER OFFSITE 0 0 0 STATUS OFF #OFF CONNECTIONTYPE WMS CONNECTION "http://mapus.jpl.nasa.gov/wms.cgi?" METADATA "wms_srs" "EPSG:4326" "wms_name" "daily_terra" #"global_mosaic" "daily_aqua" "wms_server_version" "1.1.1" "wms_format" "image/jpeg" END PROJECTION "init=epsg:4326" END END # MODIS WMS image ends here LAYER # States line layer begins here NAME states DATA states_ugl STATUS OFF TYPE LINE PROJECTION "init=epsg:4326" END CLASSITEM "CLASS" CLASS EXPRESSION 'land' STYLE SYMBOL 'line5' COLOR 32 32 32 SIZE 1 END END END # States line layer ends here LAYER # States label layer begins here NAME states DATA states_ugl STATUS OFF TYPE ANNOTATION PROJECTION "init=epsg:4326" END CLASSITEM "CLASS" LABELITEM "STATE" CLASS EXPRESSION 'land' STYLE COLOR -1 -1 -1 END LABEL COLOR 132 31 31 OUTLINECOLOR 128 128 128 SHADOWCOLOR 218 218 218 SHADOWSIZE 1 1 TYPE TRUETYPE FONT arial-bold SIZE 12 ANTIALIAS TRUE POSITION CL PARTIALS FALSE MINDISTANCE 200 BUFFER 4 END # end of label END # end of class END # States label layer ends here # End of LAYER DEFINITIONS ------------------------------- END # All map files must come to an end just as all other things must come to... # End of section 1, dude! the question specifies is as the EXTENT calculates so that it is different from all the used ones in previous examples 2006/7/19, Steve Lime : > > You can send questions to the mapserver mailing list and I'm sure folks > will help if they can. > > Steve > > >>> Eduardo Ar?valo 7/19/2006 10:17:08 AM >>> > I am following tutorial of Mapserver written by Pericles S. Nacionales, > lodged in > http://hypnos.cbs.umn.edu/tutorial/ > I need to make questions on: > Section 1 > 1.9 - Intro to MapServer Modes: map and browse > > as I can be put in contact with them ????? > > thanks > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From szekerest at GMAIL.COM Wed Jul 19 14:53:45 2006 From: szekerest at GMAIL.COM (Tamas Szekeres) Date: Wed, 19 Jul 2006 23:53:45 +0200 Subject: Help for standalone java client In-Reply-To: <91ddab2f0607191419u2d6eca3eq9e8aa6bc01cab260@mail.gmail.com> Message-ID: You might want to utilize java mapscript to build up your application. http://mapserver.gis.umn.edu/docs/howto/javamapscript Best Regards, Tamas 2006/7/19, Nicola Gawaine : > Hi all, > I'm a java developer and I'm new to this mailinglist and to mapserver. > I've to develop a java standalone application that has to communicate > with mapserver. Although I've read some documents, the only idea that > I have about the communication between application and mapserver is: > to create an application that sends an http request to mapserver, > fetches the returning page, and parses the page's elements to display > the map image etc. > Does exists another system ? > > I hope my english is comprehensible :) > -- > Nicola 'GaWaiNe' Racco --- delloblio at gmail.com > From bart_doggers at YAHOO.COM Wed Jul 19 14:18:23 2006 From: bart_doggers at YAHOO.COM (Albert Anderson) Date: Wed, 19 Jul 2006 14:18:23 -0700 Subject: Raster Layer Questions????? In-Reply-To: Message-ID: Hi, Thanks for the information. I got it working. Albert Steve Lime wrote: Check out MINSCALE/MAXSCALE in the layer object documentation... Steve >>> Albert Anderson 7/19/2006 2:23:55 PM >>> Hi everyone, I would like to know how to load my areial photo when I zoom in a city. Then when I zoom out I dont see the areial photo. I know it can be done. Do I need to step some sort of extent layer to come on and off? Can anyone help me? I am providing my some of my code of the map file. What more do I need to at to the code? ##################################### LAYER NAME "richmap" TYPE RASTER STATUS default DATA "richland.tif" METADATA "wms_srs" "EPSG:4326" "wms_name" "richmap" "wms_server_version" "1.1.1" "wms_format" "image/tif" END END Thanks, Albert --------------------------------- Talk is cheap. Use Yahoo! Messenger to make PC-to-Phone calls. Great rates starting at 1???/min. __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From rockwell_001 at YAHOO.COM Wed Jul 19 15:09:38 2006 From: rockwell_001 at YAHOO.COM (rock well) Date: Wed, 19 Jul 2006 15:09:38 -0700 Subject: Generating a map with mapfile context document Message-ID: Hi all, i am trying to generate a map from mapfile context document. I have a mapfile with a raster layer, MAP NAME "wallmap" SIZE 600 600 STATUS ON EXTENT 610537 5291088 627571 5308122 IMAGECOLOR 255 255 255 IMAGETYPE JPEG UNITS METERS WEB TEMPLATE "C:\Inetpub\wwwroot\index.html" IMAGEPATH "c:\Inetpub\wwwroot\tmp\" IMAGEURL "c:\Inetpub\wwwroot\tmp\" END LAYER NAME "raster1" TYPE RASTER PROJECTION "init=epsg:26914" END DATA "pathtotestfile.sid" OFFSITE 0 0 0 STATUS OFF END END The mapcontext document is as follows WMS Demo Server when i inlcude this context file in the browser, nothing gets displayed, the url is as follows http://localhost/scripts/mapserv.exe?MODE=map&MAP=c:/Inetpub/wwwroot/testmap.map&CONTEXT=c:/Inetpub/wwwroot/contextdoc.xml&LAYERS=raster1 What more do i need to add, do i need to add anything else in the url, if anyone has generated a map with context file can you suggest whats missing ... Thanks for your time ... kris --------------------------------- See the all-new, redesigned Yahoo.com. Check it out. -------------- next part -------------- An HTML attachment was scrubbed... URL: From JLittle at NRCAN.GC.CA Wed Jul 19 15:12:56 2006 From: JLittle at NRCAN.GC.CA (Little, John) Date: Wed, 19 Jul 2006 18:12:56 -0400 Subject: Shptree and tile4ms utilities Message-ID: Hi list, I have a couple shp files (poly and line) that are very large and I understand that I should use shptree and tile4ms to improve the performance of my mapserver application. I've read various posts and docs describing these utilities (i.e. http://mapserver.gis.umn.edu/docs/reference/utilityreference), but I'm still not clear as to how/where to access these tools/commands(?). I'd appreciate any clear information describing how this is done. (Please forgive my naivety). Thanks a lot! John -------------- next part -------------- An HTML attachment was scrubbed... URL: From banders at REFRACTIONS.NET Wed Jul 19 16:04:25 2006 From: banders at REFRACTIONS.NET (Brock Anderson) Date: Wed, 19 Jul 2006 16:04:25 -0700 Subject: Shptree and tile4ms utilities In-Reply-To: Message-ID: John, shptree and tile4ms are both included in Mapserver source downloads. When you compile Mapserver, you also compile shptree and tile4ms. Or if you have MS4W, look in c:\ms4w\tools\mapserv-utils\ Brock Little, John wrote: > Hi list, > > I have a couple shp files (poly and line) that are very large and I > understand that I should use shptree and tile4ms to improve the > performance of my mapserver application. I've read various posts and > docs describing these utilities (i.e. > _http://mapserver.gis.umn.edu/docs/reference/utilityreference_), but > I'm still not clear as to how/where to access these tools/commands(?). > I'd appreciate any clear information describing how this is done. > (Please forgive my naivety). > > Thanks a lot! > > John > > From ollerery at ENGR.ORST.EDU Wed Jul 19 16:24:19 2006 From: ollerery at ENGR.ORST.EDU (Ryan Ollerenshaw) Date: Wed, 19 Jul 2006 16:24:19 -0700 Subject: MapServer Java? In-Reply-To: <44BEBA79.4080304@refractions.net> Message-ID: I was able to create a java program which uses java mapscript, but now how do i get that program to run on my server so clients can access it. It seems like a java Servlet is the way to go but i cant find any good tutorials on how to get started. I know what the code looks like for a servelt (example below) but once i have that written where do i put it? do i need to install anything else to get it to run? I am running Apache on fedora core 5. Servelt code: import java.io.*; import javax.servlet.http.*; import javax.servlet.*; public class Servlet_test extends HttpServlet { public void doGet (HttpServletRequest req,HttpServletResponse res) throws ServletException, IOException { PrintWriter out = res.getWriter(); out.println("Hello, world!"); out.close(); } } From richard.greenwood at GMAIL.COM Wed Jul 19 16:28:21 2006 From: richard.greenwood at GMAIL.COM (Richard Greenwood) Date: Wed, 19 Jul 2006 17:28:21 -0600 Subject: Coordinate System Transformation (was: a few questions) Message-ID: Steve, Gary, et al; I've been working on porting the Proj.4 CS2CS program to javascript in a library form that can be used by any web map client (dBox, jBox, Mapbuilder, Mapbender, ka-Map, Open Layers). It's at: http://svn.codehaus.org/mapbuilder/cscs/trunk/cscs/ And has a fledgling listserv: mapbuilder-proj at lists.sourceforge.net The project is far from complete, but what is there is fully functional. Rich -- Richard Greenwood richard.greenwood at gmail.com www.greenwoodmap.com On 7/19/06, Steve Lime wrote: > Hi Gary: I only have code for UTM <=> Lat/Lon. I know there is some work as part of the MapBuilder project > to develop more general client-side coordinate transformations in javascript. As I understand it that capability > doesn't require MapBuilder, it's just the project where it lives. I've cc'd the author, Rich Greenwood, in case > he'd care to add to my comments... > > Steve > > >>> watry at steam.coaps.fsu.edu 7/19/2006 8:16 AM >>> > http://maps.dnr.state.mn.us/landview/experimental/landview.html > > shows position as utm and lat/lon. > > Does this only work for "UTM to Lat/Lon"or will it work for "LAEA to > Lat/Lon" ? > and could you point me to the source code. > > -- > Gary L. Watry > GIS Coordinator > Center for Ocean-Atmospheric Prediction Studies > FSU / COAPS > Johnson Building, RM 215 > 2035 East Paul Dirac Drive > Tallahassee, Florida 32306-2840 > > E-Mail: watry at coaps.fsu.edu > > > > > > -- Richard Greenwood richard.greenwood at gmail.com www.greenwoodmap.com From bryan.scott at FFA.INT Wed Jul 19 16:40:18 2006 From: bryan.scott at FFA.INT (Bryan Scott) Date: Thu, 20 Jul 2006 10:40:18 +1100 Subject: MapServer Java? In-Reply-To: <1153351459.44bebf23a5bcc@webmail.oregonstate.edu> Message-ID: Ryan For your clients have you thought about running standard mapserver cgi and in your java clients putting in a web render? Bryan Ryan Ollerenshaw wrote: > I was able to create a java program which uses java mapscript, but now how do i > get that program to run on my server so clients can access it. It seems like a > java Servlet is the way to go but i cant find any good tutorials on how to get > started. I know what the code looks like for a servelt (example below) but > once i have that written where do i put it? do i need to install anything else > to get it to run? I am running Apache on fedora core 5. > > Servelt code: > > import java.io.*; > import javax.servlet.http.*; > import javax.servlet.*; > > public class Servlet_test extends HttpServlet { > public void doGet (HttpServletRequest req,HttpServletResponse res) > throws ServletException, IOException > { > PrintWriter out = res.getWriter(); > > out.println("Hello, world!"); > out.close(); > > } > } > -- --------------------------------------------------- Bryan Scott Pacific Islands Forum Fisheries Agency Honiara, Solomon Islands http://www.ffa.int +677 21124 From bryan.scott at FFA.INT Wed Jul 19 17:16:45 2006 From: bryan.scott at FFA.INT (Bryan Scott) Date: Thu, 20 Jul 2006 11:16:45 +1100 Subject: MapServer Java? In-Reply-To: <1153353533.44bec73e02411@webmail.oregonstate.edu> Message-ID: Ryan Depends on what your actual requirements are, but some options are 1) JLabel and ImageIcon. You can get Mapserver to just display an image and use imageicon to load the image from a url. A bit of coding is required to achieve a workable solution, ie supporting interaction if you need to etc. 2) ****javax.swing.JEditorPane****. 3) https://xhtmlrenderer.dev.java.net/ The basic premise was that an option is have a mapserver/apache web site and simply display that website in a JComponent that renders html. Bryan Ryan Ollerenshaw wrote: > Quoting Bryan Scott : > > >> Ryan >> >> For your clients have you thought about running standard mapserver cgi >> and in your java clients putting in a web render? >> >> Bryan >> > > Thank you for the reply but i dont quite follow what it is you are saying. I > know that mapserver cgi is what allows you to display the .map files, but what > is a web render for a java client? > > >> Ryan Ollerenshaw wrote: >> >>> I was able to create a java program which uses java mapscript, but now how >>> >> do i >> >>> get that program to run on my server so clients can access it. It seems >>> >> like a >> >>> java Servlet is the way to go but i cant find any good tutorials on how to >>> >> get >> >>> started. I know what the code looks like for a servelt (example below) but >>> once i have that written where do i put it? do i need to install anything >>> >> else >> >>> to get it to run? I am running Apache on fedora core 5. >>> >>> Servelt code: >>> >>> import java.io.*; >>> import javax.servlet.http.*; >>> import javax.servlet.*; >>> >>> public class Servlet_test extends HttpServlet { >>> public void doGet (HttpServletRequest req,HttpServletResponse res) >>> throws ServletException, IOException >>> { >>> PrintWriter out = res.getWriter(); >>> >>> out.println("Hello, world!"); >>> out.close(); >>> >>> } >>> } >>> >>> >> -- >> --------------------------------------------------- >> Bryan Scott >> Pacific Islands Forum Fisheries Agency >> Honiara, Solomon Islands >> http://www.ffa.int >> +677 21124 >> >> > > -- --------------------------------------------------- Bryan Scott Pacific Islands Forum Fisheries Agency Honiara, Solomon Islands http://www.ffa.int +677 21124 From ollerery at ENGR.ORST.EDU Wed Jul 19 17:29:23 2006 From: ollerery at ENGR.ORST.EDU (Ryan Ollerenshaw) Date: Wed, 19 Jul 2006 17:29:23 -0700 Subject: MapServer Java? In-Reply-To: <44BECB6D.9020801@ffa.int> Message-ID: your answer is more advanced than what i am looking for, my problem is not how to display output from mapserver, but simply displaying the output from a java file. I just have a .java file and i want the print lines to be printed on a web page instead of the standard out. So i want a way for a client to browse to the URL of the java file and see the output. If i just use www.path/to/my/java/file.java just the text of the code is displayed. I assume that somehow i should be using the .class file but i am not sure how to get my web server to display the output of the java code. Thanks again, -Ryan Quoting Bryan Scott : > Ryan > > Depends on what your actual requirements are, but some options are > 1) JLabel and ImageIcon. You can get Mapserver to just display an image > and use imageicon to load the image from a url. A bit of coding is > required to achieve a workable solution, ie supporting interaction if > you need to etc. > 2) ****javax.swing.JEditorPane****. > 3) https://xhtmlrenderer.dev.java.net/ > > The basic premise was that an option is have a mapserver/apache web site > and simply display that website in a JComponent that renders html. > > Bryan > > Ryan Ollerenshaw wrote: > > Quoting Bryan Scott : > > > > > >> Ryan > >> > >> For your clients have you thought about running standard mapserver cgi > >> and in your java clients putting in a web render? > >> > >> Bryan > >> > > > > Thank you for the reply but i dont quite follow what it is you are saying. > I > > know that mapserver cgi is what allows you to display the .map files, but > what > > is a web render for a java client? > > > > > >> Ryan Ollerenshaw wrote: > >> > >>> I was able to create a java program which uses java mapscript, but now > how > >>> > >> do i > >> > >>> get that program to run on my server so clients can access it. It seems > >>> > >> like a > >> > >>> java Servlet is the way to go but i cant find any good tutorials on how > to > >>> > >> get > >> > >>> started. I know what the code looks like for a servelt (example below) > but > >>> once i have that written where do i put it? do i need to install anything > >>> > >> else > >> > >>> to get it to run? I am running Apache on fedora core 5. > >>> > >>> Servelt code: > >>> > >>> import java.io.*; > >>> import javax.servlet.http.*; > >>> import javax.servlet.*; > >>> > >>> public class Servlet_test extends HttpServlet { > >>> public void doGet (HttpServletRequest req,HttpServletResponse res) > >>> throws ServletException, IOException > >>> { > >>> PrintWriter out = res.getWriter(); > >>> > >>> out.println("Hello, world!"); > >>> out.close(); > >>> > >>> } > >>> } > >>> > >>> > >> -- > >> --------------------------------------------------- > >> Bryan Scott > >> Pacific Islands Forum Fisheries Agency > >> Honiara, Solomon Islands > >> http://www.ffa.int > >> +677 21124 > >> > >> > > > > > > > -- > --------------------------------------------------- > Bryan Scott > Pacific Islands Forum Fisheries Agency > Honiara, Solomon Islands > http://www.ffa.int > +677 21124 > From tom at MAPLINK.JP Wed Jul 19 18:15:51 2006 From: tom at MAPLINK.JP (Thomas Hammerlund) Date: Thu, 20 Jul 2006 10:15:51 +0900 Subject: Mapserver 4.8.3 Installation Problems Message-ID: Hi everyone, I'm installing Mapserver for the first time. I'm using Fedora 5and I've been trying to follow the Red Hat build notes (http://mapserver.gis.umn.edu/docs/howto/RedHat9andMapServer40), and I got to making mapserver, but I get the below error. Can anyone help me make sense of this? Thank you, Tom [root at dfserver02 mapserver-4.8.3]# make gcc -O2 -fPIC -Wall -DIGNORE_MISSING_DATA -DHAVE_VSNPRINTF -DNEED_STRLCAT - DUSE_PROJ -DUSE_WMS_SVR -DUSE_WMS_LYR -DUSE_WFS_SVR -DUSE_WFS_LYR -DUSE_MING_FL ASH -DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DGD_HA S_GDIMAGEGIFPTR -DGD_HAS_GETBITMAPFONTS -DUSE_OGR -DUSE_GDAL -DUSE_ICONV -DUSE_THREAD -DUSE_ZLIB -I/usr/local/lib/gd-2.0.33 -I/usr/local/includ e -I/usr/local/lib/ming-0.3.0 shp2img.o -L. -lmap -L/usr/local/lib/gd-2 .0.33 -lgd -ljpeg -lfreetype -lpng -lz -lXpm -lX11 -ljpeg -lfreetype -lpng -lz -lXpm -lX11 -lproj -ljpeg -L/usr/local/lib -lgdal -L/usr/local/lib/ming-0.3.0 -lming -L/usr/kerberos/lib -lcurl -ldl -lgssapi_krb5 -lkrb5 -lk5crypto -lkrb5 support -lcom_err -lresolv -lidn -lssl -lcrypto -lz -lpthread -lc -lz -lm -lstdc++ -o shp2img ./libmap.a(maputil.o): In function `msTransformShape': maputil.c:(.text+0x43a): undefined reference to `msTransformShapeSWF' ./libmap.a(maputil.o): In function `msImageCreate': maputil.c:(.text+0x624): undefined reference to `msImageCreateSWF' ./libmap.a(maputil.o): In function `msFreeImage': maputil.c:(.text+0xf66): undefined reference to `msFreeImageSWF' ./libmap.a(maputil.o): In function `msSaveImage': maputil.c:(.text+0x114d): undefined reference to `msSaveImageSWF' maputil.c:(.text+0x11e4): undefined reference to `msSaveImageSWF' ./libmap.a(mapdraw.o): In function `msDrawStartShape': mapdraw.c:(.text+0x466): undefined reference to `msDrawStartShapeSWF' ./libmap.a(mapdraw.o): In function `msImageStartLayer': mapdraw.c:(.text+0x4df): undefined reference to `msImageStartLayerSWF' ./libmap.a(mapdraw.o): In function `msDrawLabelCache': mapdraw.c:(.text+0x581): undefined reference to `msDrawLabelCacheSWF' ./libmap.a(mapdraw.o): In function `msDrawText': mapdraw.c:(.text+0x606): undefined reference to `draw_textSWF' ./libmap.a(mapdraw.o): In function `msDrawLabel': mapdraw.c:(.text+0x7c7): undefined reference to `msDrawLabelSWF' ./libmap.a(mapdraw.o): In function `msDrawShadeSymbol': mapdraw.c:(.text+0x97e): undefined reference to `msDrawShadeSymbolSWF' ./libmap.a(mapdraw.o): In function `msDrawLineSymbol': mapdraw.c:(.text+0xa4e): undefined reference to `msDrawLineSymbolSWF' ./libmap.a(mapdraw.o): In function `msDrawMarkerSymbol': mapdraw.c:(.text+0xb1e): undefined reference to `msDrawMarkerSymbolSWF' ./libmap.a(mapdraw.o): In function `msDrawWMSLayer': mapdraw.c:(.text+0xe30): undefined reference to `msDrawWMSLayerSWF' ./libmap.a(mapdraw.o): In function `msDrawRasterLayer': mapdraw.c:(.text+0xefd): undefined reference to `msDrawRasterLayerSWF' ./libmap.a(mapdraw.o): In function `msPrepareImage': mapdraw.c:(.text+0x1563): undefined reference to `msImageCreateSWF' ./libmap.a(mapdraw.o): In function `msDrawVectorLayer': mapdraw.c:(.text+0x3927): undefined reference to `msDrawVectorLayerAsRasterSWF' ./libmap.a(mapdraw.o): In function `msDrawMap': mapdraw.c:(.text+0x4809): undefined reference to `msDrawWMSLayerSWF' mapdraw.c:(.text+0x4a19): undefined reference to `msDrawWMSLayerSWF' collect2: ld returned 1 exit status make: *** [shp2img] Error 1 -------------- next part -------------- An HTML attachment was scrubbed... URL: From tom at MAPLINK.JP Tue Jul 18 22:41:03 2006 From: tom at MAPLINK.JP (Thomas Hammerlund) Date: Wed, 19 Jul 2006 14:41:03 +0900 Subject: Mapserver 4.8.3 Installation Problems Message-ID: Hi everyone, I'm installing Mapserver for the first time. I'm using Fedora 5and I've been trying to follow the Red Hat build notes (http://mapserver.gis.umn.edu/docs/howto/RedHat9andMapServer40), and I got to making mapserver, but I get the below error. Can anyone help me make sense of this? Thank you, Tom [root at dfserver02 mapserver-4.8.3]# make gcc -O2 -fPIC -Wall -DIGNORE_MISSING_DATA -DHAVE_VSNPRINTF -DNEED_STRLCAT - DUSE_PROJ -DUSE_WMS_SVR -DUSE_WMS_LYR -DUSE_WFS_SVR -DUSE_WFS_LYR -DUSE_MING_FL ASH -DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DGD_HA S_GDIMAGEGIFPTR -DGD_HAS_GETBITMAPFONTS -DUSE_OGR -DUSE_GDAL -DUSE_ICONV -DUSE_THREAD -DUSE_ZLIB -I/usr/local/lib/gd-2.0.33 -I/usr/local/includ e -I/usr/local/lib/ming-0.3.0 shp2img.o -L. -lmap -L/usr/local/lib/gd-2 .0.33 -lgd -ljpeg -lfreetype -lpng -lz -lXpm -lX11 -ljpeg -lfreetype -lpng -lz -lXpm -lX11 -lproj -ljpeg -L/usr/local/lib -lgdal -L/usr/local/lib/ming-0.3.0 -lming -L/usr/kerberos/lib -lcurl -ldl -lgssapi_krb5 -lkrb5 -lk5crypto -lkrb5 support -lcom_err -lresolv -lidn -lssl -lcrypto -lz -lpthread -lc -lz -lm -lstdc++ -o shp2img ./libmap.a(maputil.o): In function `msTransformShape': maputil.c:(.text+0x43a): undefined reference to `msTransformShapeSWF' ./libmap.a(maputil.o): In function `msImageCreate': maputil.c:(.text+0x624): undefined reference to `msImageCreateSWF' ./libmap.a(maputil.o): In function `msFreeImage': maputil.c:(.text+0xf66): undefined reference to `msFreeImageSWF' ./libmap.a(maputil.o): In function `msSaveImage': maputil.c:(.text+0x114d): undefined reference to `msSaveImageSWF' maputil.c:(.text+0x11e4): undefined reference to `msSaveImageSWF' ./libmap.a(mapdraw.o): In function `msDrawStartShape': mapdraw.c:(.text+0x466): undefined reference to `msDrawStartShapeSWF' ./libmap.a(mapdraw.o): In function `msImageStartLayer': mapdraw.c:(.text+0x4df): undefined reference to `msImageStartLayerSWF' ./libmap.a(mapdraw.o): In function `msDrawLabelCache': mapdraw.c:(.text+0x581): undefined reference to `msDrawLabelCacheSWF' ./libmap.a(mapdraw.o): In function `msDrawText': mapdraw.c:(.text+0x606): undefined reference to `draw_textSWF' ./libmap.a(mapdraw.o): In function `msDrawLabel': mapdraw.c:(.text+0x7c7): undefined reference to `msDrawLabelSWF' ./libmap.a(mapdraw.o): In function `msDrawShadeSymbol': mapdraw.c:(.text+0x97e): undefined reference to `msDrawShadeSymbolSWF' ./libmap.a(mapdraw.o): In function `msDrawLineSymbol': mapdraw.c:(.text+0xa4e): undefined reference to `msDrawLineSymbolSWF' ./libmap.a(mapdraw.o): In function `msDrawMarkerSymbol': mapdraw.c:(.text+0xb1e): undefined reference to `msDrawMarkerSymbolSWF' ./libmap.a(mapdraw.o): In function `msDrawWMSLayer': mapdraw.c:(.text+0xe30): undefined reference to `msDrawWMSLayerSWF' ./libmap.a(mapdraw.o): In function `msDrawRasterLayer': mapdraw.c:(.text+0xefd): undefined reference to `msDrawRasterLayerSWF' ./libmap.a(mapdraw.o): In function `msPrepareImage': mapdraw.c:(.text+0x1563): undefined reference to `msImageCreateSWF' ./libmap.a(mapdraw.o): In function `msDrawVectorLayer': mapdraw.c:(.text+0x3927): undefined reference to `msDrawVectorLayerAsRasterSWF' ./libmap.a(mapdraw.o): In function `msDrawMap': mapdraw.c:(.text+0x4809): undefined reference to `msDrawWMSLayerSWF' mapdraw.c:(.text+0x4a19): undefined reference to `msDrawWMSLayerSWF' collect2: ld returned 1 exit status make: *** [shp2img] Error 1 -------------- next part -------------- An HTML attachment was scrubbed... URL: From sherman at MRCC.COM Wed Jul 19 19:27:06 2006 From: sherman at MRCC.COM (Gary Sherman) Date: Wed, 19 Jul 2006 18:27:06 -0800 Subject: MapServer Java? In-Reply-To: <1153351459.44bebf23a5bcc@webmail.oregonstate.edu> Message-ID: Ryan Ollerenshaw wrote: > I was able to create a java program which uses java mapscript, but now how do i > get that program to run on my server so clients can access it. It seems like a > java Servlet is the way to go but i cant find any good tutorials on how to get > started. I know what the code looks like for a servelt (example below) but > once i have that written where do i put it? do i need to install anything else > to get it to run? I am running Apache on fedora core 5. To do this you need a servlet container such as Tomcat, JBoss, or Jetty running on the server. -- -gary -_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_- Gary Sherman Micro Resources: http://mrcc.com *Geospatial Hosting *Web Site Hosting "We work virtually everywhere" -_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_- From crisricana at GMAIL.COM Wed Jul 19 23:09:49 2006 From: crisricana at GMAIL.COM (cris ricana) Date: Thu, 20 Jul 2006 14:09:49 +0800 Subject: map loading error Message-ID: Hello! I'd like some help in using PHP/Mapscript. I have a freshly installed Mapserver machine and is testing some simple php webpages to see if everything is working, especially PHP/Mapscript: draw(); $image_url=$image->saveWebImage(); ?> Mapserver "hello world"

This is the simplest example I could come up with.

... I'm using the following map file. It should produce an image with just a line of text in it: MAP NAME HELLO STATUS ON EXTENT 0 0 4000 3000 SIZE 400 300 IMAGECOLOR 200 255 255 WEB IMAGEPATH "/usr/local/apache2/htdocs/tmp/" IMAGEURL "/tmp/" END LAYER NAME "credits" STATUS DEFAULT TRANSFORM FALSE TYPE ANNOTATION FEATURE POINTS 200 150 END TEXT 'Hello world. Mapserver rocks.' END CLASS LABEL TYPE BITMAP COLOR 0 0 0 END END END END The output I'm getting is the following: php_mapscript.so loaded. /usr/local/apache2/htdocs/recipe1/hello.map So From crisricana at GMAIL.COM Wed Jul 19 23:14:11 2006 From: crisricana at GMAIL.COM (cris ricana) Date: Thu, 20 Jul 2006 14:14:11 +0800 Subject: mapscript map loading error Message-ID: Hello! I'd like some help in using PHP/Mapscript. I have a freshly installed Mapserver machine and is testing some simple php webpages to see if everything is working, especially PHP/Mapscript: draw(); $image_url=$image->saveWebImage(); ?> Mapserver "hello world"

This is the simplest example I could come up with.

... I'm using the following map file. It should produce an image with just a line of text in it: MAP NAME HELLO STATUS ON EXTENT 0 0 4000 3000 SIZE 400 300 IMAGECOLOR 200 255 255 WEB IMAGEPATH "/usr/local/apache2/htdocs/tmp/" IMAGEURL "/tmp/" END LAYER NAME "credits" STATUS DEFAULT TRANSFORM FALSE TYPE ANNOTATION FEATURE POINTS 200 150 END TEXT 'Hello world. Mapserver rocks.' END CLASS LABEL TYPE BITMAP COLOR 0 0 0 END END END END The output I'm getting from the browsers is just the following: php_mapscript.so loaded. /usr/local/apache2/htdocs/recipe1/hello.map So it seems that everything is working, but only until it encounters the "$map = ms_newMapObj($map_path);" line. I've checked the tmp folder I've made to store the images and no images are made (no surprise there). Would somebody know what the problem might be and what could be the solution for this? I really, really need to know. Thanks, Maricris From siukola.antti at GMAIL.COM Wed Jul 19 23:32:40 2006 From: siukola.antti at GMAIL.COM (antti siukola) Date: Thu, 20 Jul 2006 09:32:40 +0300 Subject: Mapserver returns blank pages In-Reply-To: Message-ID: Hi! I added that patch and tried another one too but I still get blank pages, even if I set antialiasing to false. So it looks like there's something else broken. Antialiasing sure has something to do with it since the number of blank pages are multiplied if antialiasing is on. Cheers Antti S On 7/19/06, thomas bonfort wrote: > are you using an official release of gd or the patched version. there's a > bug in gd that causes these symptoms exactly > > > the patch is to add this near line 3035 of gd.c at the beginning of > > static void gdImageSetAAPixelColor(gdImagePtr im, int x, > int y, int > > color, int t) > > > > if(x<0||y<0||x>=im->sx||y>=im->sy) > > { > > return; > > } > > cheers > > > On 7/19/06, antti siukola wrote: > > HI! > > > > I just found out that using antialiasing produces more or less all of > > the blank page returns that I have. Is the antialias style parameter > > limited only to TrueType fonts and Cartoline symbols? I have used it > > on vector layers but after setting it to false on these layers all > > blank pages seem to disappear. > > > > Antti S > > > > On 7/18/06, Matthew Perry wrote: > > > On 7/18/06, antti siukola wrote: > > > > Hi! > > > > > > > > How do I set my projection? I mean I know that the projection of my > maps is > > > > VVJ , 24, 1016, 7, 24, 0, 1,-1.6, -6599998.7 but how do I set it so > > > > that mapserver understands it? Or how do even I understand it? ;) > > > > > > > > > > Check out > http://mapserver.gis.umn.edu/docs/reference/mapfile/projection/ > > > > > > -- > > > Matt Perry > > > perrygeo at gmail.com > > > http://www.perrygeo.net > > > > > > > From umberto.nicoletti at GMAIL.COM Wed Jul 19 23:42:48 2006 From: umberto.nicoletti at GMAIL.COM (Umberto Nicoletti) Date: Thu, 20 Jul 2006 08:42:48 +0200 Subject: MapServer Java? In-Reply-To: <1153351459.44bebf23a5bcc@webmail.oregonstate.edu> Message-ID: You could also use a jsp (which in fact is a special type of servlet). The tutorial from Sun's java site will help you to get started with both of them (and much more): http://java.sun.com/j2ee/1.4/docs/tutorial/doc/ Good luck, Umberto On 7/20/06, Ryan Ollerenshaw wrote: > I was able to create a java program which uses java mapscript, but now how do i > get that program to run on my server so clients can access it. It seems like a > java Servlet is the way to go but i cant find any good tutorials on how to get > started. I know what the code looks like for a servelt (example below) but > once i have that written where do i put it? do i need to install anything else > to get it to run? I am running Apache on fedora core 5. > > Servelt code: > > import java.io.*; > import javax.servlet.http.*; > import javax.servlet.*; > > public class Servlet_test extends HttpServlet { > public void doGet (HttpServletRequest req,HttpServletResponse res) > throws ServletException, IOException > { > PrintWriter out = res.getWriter(); > > out.println("Hello, world!"); > out.close(); > > } > } > From siukola.antti at GMAIL.COM Wed Jul 19 23:50:23 2006 From: siukola.antti at GMAIL.COM (antti siukola) Date: Thu, 20 Jul 2006 09:50:23 +0300 Subject: Mapserver returns blank pages In-Reply-To: Message-ID: Hello again! As an addition I also have a problem with turning off the antialiasing. I have a polygon layer that has a label set and if I set antialiasing to false it still gets antialiased. Other layers with text work without antialising but this polygon label uses antialiasing by default. Cheers! Antti S On 7/20/06, antti siukola wrote: > Hi! > > I added that patch and tried another one too but I still get blank > pages, even if I set antialiasing to false. So it looks like there's > something else broken. Antialiasing sure has something to do with it > since the number of blank pages are multiplied if antialiasing is on. > > Cheers > > Antti S > > On 7/19/06, thomas bonfort wrote: > > are you using an official release of gd or the patched version. there's a > > bug in gd that causes these symptoms exactly > > > > > the patch is to add this near line 3035 of gd.c at the beginning of > > > static void gdImageSetAAPixelColor(gdImagePtr im, int x, > > int y, int > > > color, int t) > > > > > > if(x<0||y<0||x>=im->sx||y>=im->sy) > > > { > > > return; > > > } > > > > cheers > > > > > > On 7/19/06, antti siukola wrote: > > > HI! > > > > > > I just found out that using antialiasing produces more or less all of > > > the blank page returns that I have. Is the antialias style parameter > > > limited only to TrueType fonts and Cartoline symbols? I have used it > > > on vector layers but after setting it to false on these layers all > > > blank pages seem to disappear. > > > > > > Antti S > > > > > > On 7/18/06, Matthew Perry wrote: > > > > On 7/18/06, antti siukola wrote: > > > > > Hi! > > > > > > > > > > How do I set my projection? I mean I know that the projection of my > > maps is > > > > > VVJ , 24, 1016, 7, 24, 0, 1,-1.6, -6599998.7 but how do I set it so > > > > > that mapserver understands it? Or how do even I understand it? ;) > > > > > > > > > > > > > Check out > > http://mapserver.gis.umn.edu/docs/reference/mapfile/projection/ > > > > > > > > -- > > > > Matt Perry > > > > perrygeo at gmail.com > > > > http://www.perrygeo.net > > > > > > > > > > > > From umberto.nicoletti at GMAIL.COM Wed Jul 19 23:52:38 2006 From: umberto.nicoletti at GMAIL.COM (Umberto Nicoletti) Date: Thu, 20 Jul 2006 08:52:38 +0200 Subject: Help for standalone java client In-Reply-To: <91ddab2f0607191419u2d6eca3eq9e8aa6bc01cab260@mail.gmail.com> Message-ID: I think you have two choices: 1) build a thick client which embeds all the map logic (zooming, browsing, etc) and will have direct access to the data sources (shape files, oracle or postgis) that are used to draw the map 2) build a GUI that wraps around a WMS/WFS client that forwards WMS/WFS requests to a mapserver application running on another server through http The first solution is more complicated and will probably require you to do a lot of work. Moreover the computer running the app must have direct access to the data sources, which is not always possible. The second solution is probably the one I'd choose because it is simpler, can be remoted better because the client does not need to access shapes, postgis or anything and http is usually allowed through proxies. Also I think that uDig already does this so what is left to do for you is to create and deploy the WMS/WFS server. Regards, Umberto On 7/19/06, Nicola Gawaine wrote: > Hi all, > I'm a java developer and I'm new to this mailinglist and to mapserver. > I've to develop a java standalone application that has to communicate > with mapserver. Although I've read some documents, the only idea that > I have about the communication between application and mapserver is: > to create an application that sends an http request to mapserver, > fetches the returning page, and parses the page's elements to display > the map image etc. > Does exists another system ? > > I hope my english is comprehensible :) > -- > Nicola 'GaWaiNe' Racco --- delloblio at gmail.com > From umberto.nicoletti at GMAIL.COM Wed Jul 19 23:59:00 2006 From: umberto.nicoletti at GMAIL.COM (Umberto Nicoletti) Date: Thu, 20 Jul 2006 08:59:00 +0200 Subject: Mapserver returns blank pages In-Reply-To: Message-ID: Antti, please tell us more: - version of mapserver - how you built it (yourself or picked one from where) - if you built it yourself the configure flags you used - are you using php as a shared module or as a cgi? - version of apache, php and linux (uname -a) Can you post the map file to the list? Regards, Umberto On 6/13/06, antti siukola wrote: > Hi! > > Every time MapServer returns a blank page I find "[notice] child pid > xxxx exit signal Segmentation fault (11)" from apache's error_log. Any > thoughts? Blank pages are returned randomly. > > AnttiS > From siukola.antti at GMAIL.COM Thu Jul 20 00:33:59 2006 From: siukola.antti at GMAIL.COM (antti siukola) Date: Thu, 20 Jul 2006 10:33:59 +0300 Subject: Mapserver returns blank pages In-Reply-To: <75b4b93e0607192359v770210deu207cc611c380aa5c@mail.gmail.com> Message-ID: Hello! Production: Redhat AS4 Upd 3 Mysql 5.0.21 Apache 2.2.2 with mod_php Mapserver 4.8.3 PHP 5.14 Gdal 1.3.2 Development: Ubuntu breezy MySQL 5.0.18 Apache 2.0.55 with mod_php MapServer 4.8.4 PHP PHP 5.0.5-2ubuntu1.2 Gdal 1.3.2 MapServer configure: --with-ogr --with-gdal --with-tiff --with-gd --with-jpeg --with-php=/usr/include/php5/ --with-odbc --with-httpd --with-proj It doesn't matter which on of the servers it is the problems are the same. And here is a sample of one of the map files: MAP NAME "name" FONTSET fontset.txt STATUS ON EXTENT 34083.890 75139.631 40587.098 79917.784 SIZE 500 367 SYMBOLSET ../etc/symbols.sym UNITS METERS IMAGECOLOR 240 240 240 WEB LOG "/mapserver.log" IMAGEPATH "/tmp/ms_tmp/" IMAGEURL "/ms_tmp/" MINSCALE 3000 MAXSCALE 50000 END # WEB ends IMAGETYPE JPEG OUTPUTFORMAT NAME png DRIVER "GD/PNG" MIMETYPE "image/png" IMAGEMODE PC256 EXTENSION "png" END OUTPUTFORMAT NAME png24 DRIVER "GD/PNG" MIMETYPE "image/png" IMAGEMODE RGBA EXTENSION "png" END OUTPUTFORMAT NAME jpeg DRIVER "GD/JPEG" FORMATOPTION "QUALITY=87" MIMETYPE "image/jpeg" IMAGEMODE RGB EXTENSION "jpg" END OUTPUTFORMAT NAME GTiff DRIVER "GDAL/GTiff" MIMETYPE "image/tiff" IMAGEMODE RGB EXTENSION "tif" END # # Start of legend # LEGEND KEYSIZE 18 12 LABEL TYPE BITMAP SIZE MEDIUM COLOR 0 0 89 END STATUS ON END # # Start of scalebar # SCALEBAR IMAGECOLOR 255 255 255 LABEL COLOR 0 0 0 SIZE SMALL END SIZE 300 5 COLOR 19 100 133 BACKGROUNDCOLOR 71 153 71 UNITS meters INTERVALS 5 STATUS ON END QUERYMAP STYLE HILITE COLOR 255 240 0 END LAYER NAME "name" DATA "data/raster/image.tif" TYPE RASTER STATUS OFF END #LAYER LAYER NAME name TYPE POLYGON DATA /url/to/shp/shp STATUS OFF CLASS NAME "name" COLOR 255 255 255 END END # Layer shapefile ends LAYER NAME name TYPE POLYGON STATUS OFF CONNECTIONTYPE OGR CONNECTION "/url/to/tab.TAB" LABELITEM "name" # STYLEITEM "AUTO" CLASS NAME "name" COLOR 216 176 255 LABEL TYPE TRUETYPE ANTIALIAS TRUE FONT FreeSans COLOR 0 0 0 OUTLINECOLOR 220 220 220 SIZE 8 OFFSET 0 2 buffer 2 END #label END END # Layer ends LAYER NAME name TYPE LINE STATUS OFF CONNECTIONTYPE OGR CONNECTION "/url/to/tab.TAB" LABELITEM "text" CLASS NAME "name" LABEL TYPE TRUETYPE ANTIALIAS TRUE FONT FreeSans COLOR 255 255 255 OUTLINECOLOR 0 0 0 SIZE 10 ANGLE AUTO POSITION UC OFFSET 0 2 buffer 2 END #label END #class END # Layer test ends LAYER NAME name TYPE LINE STATUS OFF CONNECTIONTYPE OGR CONNECTION "/url/to/tab.TAB" STYLEITEM "AUTO" CLASS NAME "name" END END # Layer ends END # MAP ends Cheers! On 7/20/06, Umberto Nicoletti wrote: > Antti, > please tell us more: > > - version of mapserver > - how you built it (yourself or picked one from where) > - if you built it yourself the configure flags you used > - are you using php as a shared module or as a cgi? > - version of apache, php and linux (uname -a) > > Can you post the map file to the list? > > Regards, > Umberto > > On 6/13/06, antti siukola wrote: > > Hi! > > > > Every time MapServer returns a blank page I find "[notice] child pid > > xxxx exit signal Segmentation fault (11)" from apache's error_log. Any > > thoughts? Blank pages are returned randomly. > > > > AnttiS > > > From umberto.nicoletti at GMAIL.COM Thu Jul 20 00:51:39 2006 From: umberto.nicoletti at GMAIL.COM (Umberto Nicoletti) Date: Thu, 20 Jul 2006 09:51:39 +0200 Subject: Mapserver returns blank pages In-Reply-To: Message-ID: I presume you are running php as shared module, right? If so recompile with this configure flag: --with-threads and then make sure you read the thread safety FAQ: http://mapserver.gis.umn.edu/docs/faq/thread_safety If you plan to use unsafe components (like cartoline symbols) switch php to cgi mode (and then you can avoid using the --with-threads option). HTH, Umberto On 7/20/06, antti siukola wrote: > Hello! > > Production: > Redhat AS4 Upd 3 > Mysql 5.0.21 > Apache 2.2.2 with mod_php > Mapserver 4.8.3 > PHP 5.14 > Gdal 1.3.2 > > Development: > Ubuntu breezy > MySQL 5.0.18 > Apache 2.0.55 with mod_php > MapServer 4.8.4 > PHP PHP 5.0.5-2ubuntu1.2 > Gdal 1.3.2 > > MapServer configure: > --with-ogr --with-gdal --with-tiff --with-gd --with-jpeg > --with-php=/usr/include/php5/ --with-odbc --with-httpd --with-proj > > It doesn't matter which on of the servers it is the problems are the same. > > And here is a sample of one of the map files: > > MAP > NAME "name" > FONTSET fontset.txt > STATUS ON > EXTENT 34083.890 75139.631 40587.098 79917.784 > SIZE 500 367 > SYMBOLSET ../etc/symbols.sym > UNITS METERS > IMAGECOLOR 240 240 240 > WEB > LOG "/mapserver.log" > IMAGEPATH "/tmp/ms_tmp/" > IMAGEURL "/ms_tmp/" > MINSCALE 3000 > MAXSCALE 50000 > END # WEB ends > > IMAGETYPE JPEG > > OUTPUTFORMAT > NAME png > DRIVER "GD/PNG" > MIMETYPE "image/png" > IMAGEMODE PC256 > EXTENSION "png" > END > OUTPUTFORMAT > NAME png24 > DRIVER "GD/PNG" > MIMETYPE "image/png" > IMAGEMODE RGBA > EXTENSION "png" > END > OUTPUTFORMAT > NAME jpeg > DRIVER "GD/JPEG" > FORMATOPTION "QUALITY=87" > MIMETYPE "image/jpeg" > IMAGEMODE RGB > EXTENSION "jpg" > END > OUTPUTFORMAT > NAME GTiff > DRIVER "GDAL/GTiff" > MIMETYPE "image/tiff" > IMAGEMODE RGB > EXTENSION "tif" > END > > # > # Start of legend > # > LEGEND > KEYSIZE 18 12 > LABEL > TYPE BITMAP > SIZE MEDIUM > COLOR 0 0 89 > END > STATUS ON > END > > # > # Start of scalebar > # > SCALEBAR > IMAGECOLOR 255 255 255 > LABEL > COLOR 0 0 0 > SIZE SMALL > END > SIZE 300 5 > COLOR 19 100 133 > BACKGROUNDCOLOR 71 153 71 > UNITS meters > INTERVALS 5 > STATUS ON > END > > QUERYMAP > STYLE HILITE > COLOR 255 240 0 > END > > > > LAYER > NAME "name" > DATA "data/raster/image.tif" > TYPE RASTER > STATUS OFF > END #LAYER > > > LAYER > NAME name > TYPE POLYGON > DATA /url/to/shp/shp > STATUS OFF > CLASS > NAME "name" > COLOR 255 255 255 > END > END # Layer shapefile ends > > > LAYER > NAME name > TYPE POLYGON > STATUS OFF > CONNECTIONTYPE OGR > CONNECTION "/url/to/tab.TAB" > LABELITEM "name" > # STYLEITEM "AUTO" > CLASS > NAME "name" > COLOR 216 176 255 > LABEL > TYPE TRUETYPE > ANTIALIAS TRUE > FONT FreeSans > COLOR 0 0 0 > OUTLINECOLOR 220 220 220 > SIZE 8 > OFFSET 0 2 > buffer 2 > END #label > END > END # Layer ends > > LAYER > NAME name > TYPE LINE > STATUS OFF > CONNECTIONTYPE OGR > CONNECTION "/url/to/tab.TAB" > LABELITEM "text" > CLASS > NAME "name" > LABEL > TYPE TRUETYPE > ANTIALIAS TRUE > FONT FreeSans > COLOR 255 255 255 > OUTLINECOLOR 0 0 0 > SIZE 10 > ANGLE AUTO > POSITION UC > OFFSET 0 2 > buffer 2 > END #label > END #class > END # Layer test ends > > > LAYER > NAME name > TYPE LINE > STATUS OFF > CONNECTIONTYPE OGR > CONNECTION "/url/to/tab.TAB" > STYLEITEM "AUTO" > CLASS > NAME "name" > END > END # Layer ends > > > END # MAP ends > > Cheers! > > On 7/20/06, Umberto Nicoletti wrote: > > Antti, > > please tell us more: > > > > - version of mapserver > > - how you built it (yourself or picked one from where) > > - if you built it yourself the configure flags you used > > - are you using php as a shared module or as a cgi? > > - version of apache, php and linux (uname -a) > > > > Can you post the map file to the list? > > > > Regards, > > Umberto > > > > On 6/13/06, antti siukola wrote: > > > Hi! > > > > > > Every time MapServer returns a blank page I find "[notice] child pid > > > xxxx exit signal Segmentation fault (11)" from apache's error_log. Any > > > thoughts? Blank pages are returned randomly. > > > > > > AnttiS > > > > > > From nbarker at ITTVIS.COM Thu Jul 20 00:52:58 2006 From: nbarker at ITTVIS.COM (Norman Barker) Date: Thu, 20 Jul 2006 08:52:58 +0100 Subject: MapServer Java? Message-ID: Hi, There have been a few replies to this thread, but if you use a servlet then I find using the init method quite helpful public void init() throws ServletException { super.init(); ServletConfig config = getServletConfig(); mapfile = config.getInitParameter("mapfile"); } And in web.xml mapfile /var/www/html/demo/bluemarble.map Just allows you to change the mapfile whenever you want and not have to recompile. Norman -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Umberto Nicoletti Sent: Thursday, July 20, 2006 7:43 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] MapServer Java? You could also use a jsp (which in fact is a special type of servlet). The tutorial from Sun's java site will help you to get started with both of them (and much more): http://java.sun.com/j2ee/1.4/docs/tutorial/doc/ Good luck, Umberto On 7/20/06, Ryan Ollerenshaw wrote: > I was able to create a java program which uses java mapscript, but now how do i > get that program to run on my server so clients can access it. It seems like a > java Servlet is the way to go but i cant find any good tutorials on how to get > started. I know what the code looks like for a servelt (example below) but > once i have that written where do i put it? do i need to install anything else > to get it to run? I am running Apache on fedora core 5. > > Servelt code: > > import java.io.*; > import javax.servlet.http.*; > import javax.servlet.*; > > public class Servlet_test extends HttpServlet { > public void doGet (HttpServletRequest req,HttpServletResponse res) > throws ServletException, IOException > { > PrintWriter out = res.getWriter(); > > out.println("Hello, world!"); > out.close(); > > } > } > From crisricana at GMAIL.COM Thu Jul 20 01:05:32 2006 From: crisricana at GMAIL.COM (cris ricana) Date: Thu, 20 Jul 2006 16:05:32 +0800 Subject: mapscript map loading error In-Reply-To: <7e2b31120607192314g6edfa1dey28363f8f76cb9b9f@mail.gmail.com> Message-ID: Hello! I'd like some help in using PHP/Mapscript. I have a freshly installed Mapserver machine and is testing some simple php webpages to see if everything is working, especially PHP/Mapscript: draw(); $image_url=$image->saveWebImage(); ?> Mapserver "hello world"

This is the simplest example I could come up with.

... I'm using the following map file. It should produce an image with just a line of text in it: MAP NAME HELLO STATUS ON EXTENT 0 0 4000 3000 SIZE 400 300 IMAGECOLOR 200 255 255 WEB IMAGEPATH "/usr/local/apache2/htdocs/tmp/" IMAGEURL "/tmp/" END LAYER NAME "credits" STATUS DEFAULT TRANSFORM FALSE TYPE ANNOTATION FEATURE POINTS 200 150 END TEXT 'Hello world. Mapserver rocks.' END CLASS LABEL TYPE BITMAP COLOR 0 0 0 END END END END The output I'm getting from the browsers is just the following: php_mapscript.so loaded. /usr/local/apache2/htdocs/recipe1/hello.map So it seems that everything is working, but only until it encounters the "$map = ms_newMapObj($map_path);" line. I've checked the tmp folder I've made to store the images and no images are made (no surprise there). Would somebody know what the problem might be and what could be the solution for this? I really, really need to know. Thanks, Maricris From spot.news at GMX.NET Thu Jul 20 01:10:46 2006 From: spot.news at GMX.NET (Spot) Date: Thu, 20 Jul 2006 10:10:46 +0200 Subject: Query and zoom mode In-Reply-To: <20060718083658.212860@gmx.net> Message-ID: Sorry for my late answer. Your proposal solves the problem only partially. When I substitute the "shape" value with the mapextent, I get the whole map as resulting image, but the selected features are not only these selected by my rectangle shape. Instead, all features of the current mapextent are selected. Regards, Philip > Hi Philip, > > did you find a solution to your problem? Please let me know. > > > regards > > Daniel > -------- Original-Nachricht -------- > Datum: Thu, 13 Jul 2006 11:48:10 +0200 > Betreff: [UMN_MAPSERVER-USERS] Query and zoom mode > >> Hi! >> >> I am experimenting with Mapserver for about 2 months now but still >> considering myself as relatively new and unexperienced. >> I use the Windows CGI together with jBox and static map sourcefiles. >> At the moment I have got a problem with the nquery-mode. The query is >> executed correctly and a query map image with highlighted features based >> on the user selection is created. When I submit the form with the query, >> everything goes fine. The query result is shown and the map is created, >> but the resulting map png is zoomed. >> The URL looks like this: >> >> http://localhost/path_to/mapserv.exe?imgbox=304+324+334+356&layer=layer1&layer=layer2&layer=layer3&qlayer=layer3&zoomdir=0&zoomsize=1&mode=nquery&dummyname=dummyvalue&buttonActive=button4&mapsize=500+500&querymode=&imgxy=304+324&imgext=396997.000000+4480748.500000+409180.000000+4492931.500000&mapxy=&scale=&map=path_to/mapfile.map&mapext=shapes&savequery=true >> >> >> When I remove the "zoomsize" or the "zoomdir" attribute the CGI doesn't >> create a results page for the query, but instead shows the normal map >> template with a zoomed map. >> If I set the "zoomsize" to 0, I get an error from the CGI. >> >> How can I solve this? >> >> Thanks, >> Philip From m.meier at SPIEKERMANN.DE Thu Jul 20 01:39:28 2006 From: m.meier at SPIEKERMANN.DE (Manfred Meier) Date: Thu, 20 Jul 2006 10:39:28 +0200 Subject: mapscript map loading error In-Reply-To: <7e2b31120607200105t6fd5e89ctff23b82f04788d12@mail.gmail.com> Message-ID: Hello, - is your tmp-dir writeable for the webserver? - if you look at the source-code for the html-page in your browser, does it show the correct url in the image tag? Manfred cris ricana schrieb: > Hello! > > I'd like some help in using PHP/Mapscript. I have a freshly installed > Mapserver machine and is testing some simple php webpages to see if > everything is working, especially PHP/Mapscript: > > dl ("php_mapscript.so"); > echo("php_mapscript.so loaded.\n"); //to see if the library will > sucessfully load. > $map_path="/usr/local/apache2/htdocs/recipe1/hello.map"; > echo($map_path); // absolute path > to the map file > $map = ms_newMapObj($map_path); > $image=$map->draw(); > $image_url=$image->saveWebImage(); > ?> > > > Mapserver "hello world" > > > >

This is the simplest example I could come up with.

> ... > > > > I'm using the following map file. It should produce an image with just > a line of text in it: > > MAP > NAME HELLO > STATUS ON > EXTENT 0 0 4000 3000 > SIZE 400 300 > IMAGECOLOR 200 255 255 > WEB > IMAGEPATH "/usr/local/apache2/htdocs/tmp/" > IMAGEURL "/tmp/" > END > > LAYER > NAME "credits" > STATUS DEFAULT > TRANSFORM FALSE > TYPE ANNOTATION > FEATURE > POINTS > 200 150 > END > TEXT 'Hello world. Mapserver rocks.' > END > CLASS > LABEL > TYPE BITMAP > COLOR 0 0 0 > END > END > END > > END > > The output I'm getting from the browsers is just the following: > > php_mapscript.so loaded. > /usr/local/apache2/htdocs/recipe1/hello.map > > So it seems that everything is working, but only until it encounters > the "$map = ms_newMapObj($map_path);" line. I've checked the tmp > folder I've made to store the images and no images are made (no > surprise there). Would somebody know what the problem might be and > what could be the solution for this? I really, really need to know. > > Thanks, > Maricris > From crisricana at GMAIL.COM Thu Jul 20 02:06:49 2006 From: crisricana at GMAIL.COM (cris ricana) Date: Thu, 20 Jul 2006 17:06:49 +0800 Subject: mapscript map loading error In-Reply-To: <44BF4140.30105@spiekermann.de> Message-ID: Hi! Here's the answer to your questions: > - is your tmp-dir writeable for the webserver? Yes it is. I've tested my mapserver installation successfully using CGI forms (the itasca samples, in particular) instead of PHP /mapscript. These CGI webpages performs well and writes their images in a temp folder I made (/usr/local/apache2/htdocs/tmp/). > - if you look at the source-code for the html-page in your browser, does > it show the correct url in the image tag? The output in the browser (as well as the source code) is simply these text: "php_mapscript.so loaded. /usr/local/apache2/htdocs/recipe1/hello.map" Which are text echoed from the php code (see my php code below) from line 3 and 5. There are no lines for the image at all. Actually, I added these text to locate where the problem is in my php code. Otherwise, the output in the browser would be a blank page. Regards, Maricris On 7/20/06, Manfred Meier wrote: > Hello, > > - is your tmp-dir writeable for the webserver? > - if you look at the source-code for the html-page in your browser, does > it show the correct url in the image tag? > > Manfred > > > cris ricana schrieb: > > > Hello! > > > > I'd like some help in using PHP/Mapscript. I have a freshly installed > > Mapserver machine and is testing some simple php webpages to see if > > everything is working, especially PHP/Mapscript: > > > > > dl ("php_mapscript.so"); > > echo("php_mapscript.so loaded.\n"); //to see if the library will > > sucessfully load. > > $map_path="/usr/local/apache2/htdocs/recipe1/hello.map"; > > echo($map_path); // absolute path > > to the map file > > $map = ms_newMapObj($map_path); > > $image=$map->draw(); > > $image_url=$image->saveWebImage(); > > ?> > > > > > > Mapserver "hello world" > > > > > > > >

This is the simplest example I could come up with.

> > ... > > > > > > > > I'm using the following map file. It should produce an image with just > > a line of text in it: > > > > MAP > > NAME HELLO > > STATUS ON > > EXTENT 0 0 4000 3000 > > SIZE 400 300 > > IMAGECOLOR 200 255 255 > > WEB > > IMAGEPATH "/usr/local/apache2/htdocs/tmp/" > > IMAGEURL "/tmp/" > > END > > > > LAYER > > NAME "credits" > > STATUS DEFAULT > > TRANSFORM FALSE > > TYPE ANNOTATION > > FEATURE > > POINTS > > 200 150 > > END > > TEXT 'Hello world. Mapserver rocks.' > > END > > CLASS > > LABEL > > TYPE BITMAP > > COLOR 0 0 0 > > END > > END > > END > > > > END > > > > The output I'm getting from the browsers is just the following: > > > > php_mapscript.so loaded. > > /usr/local/apache2/htdocs/recipe1/hello.map > > > > So it seems that everything is working, but only until it encounters > > the "$map = ms_newMapObj($map_path);" line. I've checked the tmp > > folder I've made to store the images and no images are made (no > > surprise there). Would somebody know what the problem might be and > > what could be the solution for this? I really, really need to know. > > > > Thanks, > > Maricris > > > > From m.meier at SPIEKERMANN.DE Thu Jul 20 03:34:52 2006 From: m.meier at SPIEKERMANN.DE (Manfred Meier) Date: Thu, 20 Jul 2006 12:34:52 +0200 Subject: mapscript map loading error In-Reply-To: <7e2b31120607200206p65ebffeetb775e2b555a91654@mail.gmail.com> Message-ID: Hello, I am not familiar with php. But with linux you can execute the php-script on the command line with "php scriptname". Can you do this? Are there error messages? Manfred cris ricana schrieb: > Hi! > > Here's the answer to your questions: > >> - is your tmp-dir writeable for the webserver? > > > Yes it is. I've tested my mapserver installation successfully using > CGI forms (the itasca samples, in particular) instead of PHP > /mapscript. These CGI webpages performs well and writes their images > in a temp folder I made (/usr/local/apache2/htdocs/tmp/). > > >> - if you look at the source-code for the html-page in your browser, does >> it show the correct url in the image tag? > > > The output in the browser (as well as the source code) is simply these > text: > > "php_mapscript.so loaded. /usr/local/apache2/htdocs/recipe1/hello.map" > > Which are text echoed from the php code (see my php code below) from > line 3 and 5. There are no lines for the image at all. Actually, I > added these text to locate where the problem is in my php code. > Otherwise, the output in the browser would be a blank page. > > > Regards, > Maricris > > > > > > > On 7/20/06, Manfred Meier wrote: > >> Hello, >> >> - is your tmp-dir writeable for the webserver? >> - if you look at the source-code for the html-page in your browser, does >> it show the correct url in the image tag? >> >> Manfred >> >> >> cris ricana schrieb: >> >> > Hello! >> > >> > I'd like some help in using PHP/Mapscript. I have a freshly installed >> > Mapserver machine and is testing some simple php webpages to see if >> > everything is working, especially PHP/Mapscript: >> > >> > > > dl ("php_mapscript.so"); >> > echo("php_mapscript.so loaded.\n"); //to see if the >> library will >> > sucessfully load. >> > $map_path="/usr/local/apache2/htdocs/recipe1/hello.map"; >> > echo($map_path); // absolute path >> > to the map file >> > $map = ms_newMapObj($map_path); >> > $image=$map->draw(); >> > $image_url=$image->saveWebImage(); >> > ?> >> > >> > >> > Mapserver "hello world" >> > >> > >> > >> >

This is the simplest example I could come up with.

>> > ... >> > >> > >> > >> > I'm using the following map file. It should produce an image with just >> > a line of text in it: >> > >> > MAP >> > NAME HELLO >> > STATUS ON >> > EXTENT 0 0 4000 3000 >> > SIZE 400 300 >> > IMAGECOLOR 200 255 255 >> > WEB >> > IMAGEPATH "/usr/local/apache2/htdocs/tmp/" >> > IMAGEURL "/tmp/" >> > END >> > >> > LAYER >> > NAME "credits" >> > STATUS DEFAULT >> > TRANSFORM FALSE >> > TYPE ANNOTATION >> > FEATURE >> > POINTS >> > 200 150 >> > END >> > TEXT 'Hello world. Mapserver rocks.' >> > END >> > CLASS >> > LABEL >> > TYPE BITMAP >> > COLOR 0 0 0 >> > END >> > END >> > END >> > >> > END >> > >> > The output I'm getting from the browsers is just the following: >> > >> > php_mapscript.so loaded. >> > /usr/local/apache2/htdocs/recipe1/hello.map >> > >> > So it seems that everything is working, but only until it encounters >> > the "$map = ms_newMapObj($map_path);" line. I've checked the tmp >> > folder I've made to store the images and no images are made (no >> > surprise there). Would somebody know what the problem might be and >> > what could be the solution for this? I really, really need to know. >> > >> > Thanks, >> > Maricris >> > >> >> > From m.meier at SPIEKERMANN.DE Thu Jul 20 04:24:00 2006 From: m.meier at SPIEKERMANN.DE (Manfred Meier) Date: Thu, 20 Jul 2006 13:24:00 +0200 Subject: mapscript map loading error In-Reply-To: <7e2b31120607200206p65ebffeetb775e2b555a91654@mail.gmail.com> Message-ID: Hello, some additional "ideas": (You know, I'm not a php man) - is in your php.ini display_errors set to "on", so that erors are shown? And are the errors and warnings activated? - you have this echo's in yout script as debug output. Can you insert an echo after each of these 3 lines too, > $map = ms_newMapObj($map_path); > $image=$map->draw(); > $image_url=$image->saveWebImage(); so that you ca see what the last executed statement is? Manfred cris ricana schrieb: > Hi! > > Here's the answer to your questions: > >> - is your tmp-dir writeable for the webserver? > > > Yes it is. I've tested my mapserver installation successfully using > CGI forms (the itasca samples, in particular) instead of PHP > /mapscript. These CGI webpages performs well and writes their images > in a temp folder I made (/usr/local/apache2/htdocs/tmp/). > > >> - if you look at the source-code for the html-page in your browser, does >> it show the correct url in the image tag? > > > The output in the browser (as well as the source code) is simply these > text: > > "php_mapscript.so loaded. /usr/local/apache2/htdocs/recipe1/hello.map" > > Which are text echoed from the php code (see my php code below) from > line 3 and 5. There are no lines for the image at all. Actually, I > added these text to locate where the problem is in my php code. > Otherwise, the output in the browser would be a blank page. > > > Regards, > Maricris > > > > > > > On 7/20/06, Manfred Meier wrote: > >> Hello, >> >> - is your tmp-dir writeable for the webserver? >> - if you look at the source-code for the html-page in your browser, does >> it show the correct url in the image tag? >> >> Manfred >> >> >> cris ricana schrieb: >> >> > Hello! >> > >> > I'd like some help in using PHP/Mapscript. I have a freshly installed >> > Mapserver machine and is testing some simple php webpages to see if >> > everything is working, especially PHP/Mapscript: >> > >> > > > dl ("php_mapscript.so"); >> > echo("php_mapscript.so loaded.\n"); //to see if the >> library will >> > sucessfully load. >> > $map_path="/usr/local/apache2/htdocs/recipe1/hello.map"; >> > echo($map_path); // absolute path >> > to the map file >> > $map = ms_newMapObj($map_path); >> > $image=$map->draw(); >> > $image_url=$image->saveWebImage(); >> > ?> >> > >> > >> > Mapserver "hello world" >> > >> > >> > >> >

This is the simplest example I could come up with.

>> > ... >> > >> > >> > >> > I'm using the following map file. It should produce an image with just >> > a line of text in it: >> > >> > MAP >> > NAME HELLO >> > STATUS ON >> > EXTENT 0 0 4000 3000 >> > SIZE 400 300 >> > IMAGECOLOR 200 255 255 >> > WEB >> > IMAGEPATH "/usr/local/apache2/htdocs/tmp/" >> > IMAGEURL "/tmp/" >> > END >> > >> > LAYER >> > NAME "credits" >> > STATUS DEFAULT >> > TRANSFORM FALSE >> > TYPE ANNOTATION >> > FEATURE >> > POINTS >> > 200 150 >> > END >> > TEXT 'Hello world. Mapserver rocks.' >> > END >> > CLASS >> > LABEL >> > TYPE BITMAP >> > COLOR 0 0 0 >> > END >> > END >> > END >> > >> > END >> > >> > The output I'm getting from the browsers is just the following: >> > >> > php_mapscript.so loaded. >> > /usr/local/apache2/htdocs/recipe1/hello.map >> > >> > So it seems that everything is working, but only until it encounters >> > the "$map = ms_newMapObj($map_path);" line. I've checked the tmp >> > folder I've made to store the images and no images are made (no >> > surprise there). Would somebody know what the problem might be and >> > what could be the solution for this? I really, really need to know. >> > >> > Thanks, >> > Maricris >> > >> >> > From fsimon at UNIVALI.BR Thu Jul 20 04:59:15 2006 From: fsimon at UNIVALI.BR (Fernando Simon) Date: Thu, 20 Jul 2006 08:59:15 -0300 Subject: GetFeatureInfo from Oracle: no coordinates In-Reply-To: <1153149629.16704.266210318@webmail.messagingengine.com> Message-ID: Hi Arjen, Sorry for the delay to reply your message. It's a strange problem for me because I'm not a WMS specialist, maybe Bart or another guy can help you about this WMS issue (he already used Oracle and WMS without problems). For Oracle Spatial connection I can help you without problem. The tokens RELATE and NONE just tell to core of maporaclespatial what operator of function will be used to retrieve the data from database, maybe you need to check if Locator have restrictions about the functions that the code use. Another way how to try to find the problem it's turn on the DEBUG for your layer and check in the log (error_log in Apache) what steps the maporaclespatial used to query the data, all the SQL's and Mapserver calls will appear in the log. For CGI test you can just use a simple Mapserver CGI call, without any WMS, to test your layer and connection. Like: http://localhost/cgi-bin/mapserv.exe?map=/ms4w/apps/geolocator/service/out.map&mode=map&layers=test1 Best regards. ------------------------------------------------------------------------ Fernando Simon Mapserver and Oracle Spatial developer G10 - Laboratorio de Computacao Aplicada - Brazil http://www.univali.br/g10 - UNIVALI/CTTMAR ------------------------------------------------------------------------ Arjen de Korte wrote: > Hello Fernando and list, > > Thank you for your reply. > > The layers are drawn correctly when I do a GetMap request. So I get a > correct map image. > > It makes no difference if I use NONE instead of RELATE; still no > coordinates in the GetFeatureInfo result. > > Does anyone on this list have WMS GetFeatureInfo working correctly with > Oracle Locator? > > Regards, > Arjen. > > > > On Thu, 13 Jul 2006 09:06:04 -0300, Fernando Simon said: > >> Hi Arjen, >> Sorry for the delay to reply you. >> It's a strange problem, because you can see the attributes but no >> the data, I'm not a WMS/WFS specialist and I will check if can be a >> WMS/WFS problem. >> About the Oracle Spatial connection, can you check if the layer will >> be draw using Mapserver CGI directly? Another issue, I don't know if in >> Locator the RELATE with geodetic SRID will work correctly, can you try >> to define the NONE instead of RELATE? >> Best regards. >> >> >> ------------------------------------------------------------------------ >> Fernando Simon >> Mapserver and Oracle Spatial developer >> G10 - Laboratorio de Computacao Aplicada - Brazil >> http://www.univali.br/g10 - UNIVALI/CTTMAR >> ------------------------------------------------------------------------ >> >> >> Arjen de Korte wrote: >> >>> Hello Mapserver users, >>> >>> I'm trying to get Mapserver to give me a GetFeatureInfo result from >>> Oracle. I do get an XML document back, with the attributes and bounding >>> box in it, but *without* the coordinates! >>> >>> So I do get a valid XML response, starting with and >>> followed by the bounding box () and the attributes, but it does >>> not contain feature coordinates like . >>> >>> We are using MS4W 1.5.3 and Oracle 9i Locator (no Spatial extensions). >>> >>> In the mapfile the layer is defined by: >>> >>> LAYER >>> NAME test1 >>> METADATA >>> "ows_title" "Test 1" >>> "gml_include_items" "all" >>> "wms_extent" "0 300000 300000 600000" >>> END >>> PROJECTION >>> "init=epsg:28992" >>> END >>> STATUS ON >>> TYPE POLYGON >>> MAXSCALE 50000 >>> CONNECTIONTYPE oraclespatial >>> CONNECTION "adk/adk at domain" >>> DATA "geometry from test1 using unique ID srid 90112 relate version >>> 9i" >>> DUMP true >>> TEMPLATE "../templates/rivers_query_header.html" >>> TRANSPARENCY 50 >>> CLASS >>> NAME "Test 1" >>> COLOR 0 100 0 >>> END >>> END >>> >>> This is the URL I use for the request: >>> >>> http://localhost/cgi-bin/mapserv.exe?map=/ms4w/apps/geolocator/service/out.map&service=WMS&version=1.1.1&request=GetFeatureInfo&srs=EPSG:28992&bbox=174800,604995,178736,607363&info_format=application/vnd.ogc.gml&layers=bebgeb,water,test1&query_layers=test1&x=280.999999999999&y=70&width=615&height=370 >>> >>> Does anybody have a suggestion how to fix this? >>> >>> Regards, >>> >>> Arjen. >>> >>> >>> > > From punkish at EIDESIS.ORG Thu Jul 20 05:19:06 2006 From: punkish at EIDESIS.ORG (P Kishor) Date: Thu, 20 Jul 2006 07:19:06 -0500 Subject: fastest way to convert lon-lat to points Message-ID: Folks, I have seen this question asked in the past, and have a similar problem. I want to convert many lon-lat to a shapefile of points quickly. The lon-lat are in a csv text file (values.txt) like so foo,bar,baz,long,lat,qux 1, bar1, baz1, -87.796341, 41.907504, s10 ... ... So, I installed FW_Tools 1.05, created a DSN out of the text file (this is and has to be on a Windows box), and ogrinfo happily gave me information that I wanted, but with a twist... OGRFeature(values.txt):1056 foo (Integer) = 1 bar(String) = ba1 baz(String) = baz1 long (Real) = -87.796341 lat (Real) = 41.907504 qux(String) = 10.0000 So, what's with interpreting qux? It converted my "s10" into a string of value "10.0000". Anyway, then I created an OVF file (values.ovf) like so ODBC:values values.txt wkbPoint well, ogr2ogr -f "ESRI Shapefile" . values.ovf values but while that seemed to do something without any error, I got no output. So, is what I am doing the right way of going about this? Is there a better or another way to try out and benchmark? Oh, did I mention? -- The values.txt file has about 5.25 million rows, so speed is important. -- Puneet Kishor http://punkish.eidesis.org/ Nelson Inst. for Env. Studies, UW-Madison http://www.ies.wisc.edu/ Open Source Geospatial Foundation https://edu.osgeo.org/ From bartvde at XS4ALL.NL Thu Jul 20 05:44:54 2006 From: bartvde at XS4ALL.NL (Bart van den Eijnden (OSGIS)) Date: Thu, 20 Jul 2006 14:44:54 +0200 Subject: GetFeatureInfo from Oracle: no coordinates In-Reply-To: <44BF7013.2020300@univali.br> Message-ID: Hi Fernando, Arjen, I have no idea what this could be. I just re-tested here, and using Mapserver 4.8.3 on RHE Linux 3 and Oracle Spatial 10g WMS GetFeatureInfo works fine. Best regards, Bart > Hi Arjen, > Sorry for the delay to reply your message. > It's a strange problem for me because I'm not a WMS specialist, > maybe Bart or another guy can help you about this WMS issue (he already > used Oracle and WMS without problems). For Oracle Spatial connection I > can help you without problem. > The tokens RELATE and NONE just tell to core of maporaclespatial > what operator of function will be used to retrieve the data from > database, maybe you need to check if Locator have restrictions about the > functions that the code use. Another way how to try to find the problem > it's turn on the DEBUG for your layer and check in the log (error_log in > Apache) what steps the maporaclespatial used to query the data, all the > SQL's and Mapserver calls will appear in the log. > For CGI test you can just use a simple Mapserver CGI call, without > any WMS, to test your layer and connection. Like: > > http://localhost/cgi-bin/mapserv.exe?map=/ms4w/apps/geolocator/service/out.map&mode=map&layers=test1 > Best regards. > > ------------------------------------------------------------------------ > Fernando Simon > Mapserver and Oracle Spatial developer > G10 - Laboratorio de Computacao Aplicada - Brazil > http://www.univali.br/g10 - UNIVALI/CTTMAR > ------------------------------------------------------------------------ > > > Arjen de Korte wrote: >> Hello Fernando and list, >> >> Thank you for your reply. >> >> The layers are drawn correctly when I do a GetMap request. So I get a >> correct map image. >> >> It makes no difference if I use NONE instead of RELATE; still no >> coordinates in the GetFeatureInfo result. >> >> Does anyone on this list have WMS GetFeatureInfo working correctly with >> Oracle Locator? >> >> Regards, >> Arjen. >> >> >> >> On Thu, 13 Jul 2006 09:06:04 -0300, Fernando Simon said: >> >>> Hi Arjen, >>> Sorry for the delay to reply you. >>> It's a strange problem, because you can see the attributes but no >>> the data, I'm not a WMS/WFS specialist and I will check if can be a >>> WMS/WFS problem. >>> About the Oracle Spatial connection, can you check if the layer >>> will >>> be draw using Mapserver CGI directly? Another issue, I don't know if in >>> Locator the RELATE with geodetic SRID will work correctly, can you try >>> to define the NONE instead of RELATE? >>> Best regards. >>> >>> >>> ------------------------------------------------------------------------ >>> Fernando Simon >>> Mapserver and Oracle Spatial developer >>> G10 - Laboratorio de Computacao Aplicada - Brazil >>> http://www.univali.br/g10 - UNIVALI/CTTMAR >>> ------------------------------------------------------------------------ >>> >>> >>> Arjen de Korte wrote: >>> >>>> Hello Mapserver users, >>>> >>>> I'm trying to get Mapserver to give me a GetFeatureInfo result from >>>> Oracle. I do get an XML document back, with the attributes and >>>> bounding >>>> box in it, but *without* the coordinates! >>>> >>>> So I do get a valid XML response, starting with and >>>> followed by the bounding box () and the attributes, but it >>>> does >>>> not contain feature coordinates like . >>>> >>>> We are using MS4W 1.5.3 and Oracle 9i Locator (no Spatial extensions). >>>> >>>> In the mapfile the layer is defined by: >>>> >>>> LAYER >>>> NAME test1 >>>> METADATA >>>> "ows_title" "Test 1" >>>> "gml_include_items" "all" >>>> "wms_extent" "0 300000 300000 600000" >>>> END >>>> PROJECTION >>>> "init=epsg:28992" >>>> END >>>> STATUS ON >>>> TYPE POLYGON >>>> MAXSCALE 50000 >>>> CONNECTIONTYPE oraclespatial >>>> CONNECTION "adk/adk at domain" >>>> DATA "geometry from test1 using unique ID srid 90112 relate version >>>> 9i" >>>> DUMP true >>>> TEMPLATE "../templates/rivers_query_header.html" >>>> TRANSPARENCY 50 >>>> CLASS >>>> NAME "Test 1" >>>> COLOR 0 100 0 >>>> END >>>> END >>>> >>>> This is the URL I use for the request: >>>> >>>> http://localhost/cgi-bin/mapserv.exe?map=/ms4w/apps/geolocator/service/out.map&service=WMS&version=1.1.1&request=GetFeatureInfo&srs=EPSG:28992&bbox=174800,604995,178736,607363&info_format=application/vnd.ogc.gml&layers=bebgeb,water,test1&query_layers=test1&x=280.999999999999&y=70&width=615&height=370 >>>> >>>> Does anybody have a suggestion how to fix this? >>>> >>>> Regards, >>>> >>>> Arjen. >>>> >>>> >>>> >> >> > From bartvde at XS4ALL.NL Thu Jul 20 05:55:50 2006 From: bartvde at XS4ALL.NL (Bart van den Eijnden (OSGIS)) Date: Thu, 20 Jul 2006 14:55:50 +0200 Subject: GetFeatureInfo from Oracle: no coordinates In-Reply-To: <16792.145.50.39.8.1153399494.squirrel@webmail.xs4all.nl> Message-ID: I was too quick in my response and forget the actual problem was not getting the geometry back. After inspecting the GML I encounter the same problem (see below). Steve, any ideas? 110320.007812,477782.156250 115568.656250,481898.562500 69386 4523 Luchtvaartterrein Schiphol Best regards, Bart > Hi Fernando, Arjen, > > I have no idea what this could be. > > I just re-tested here, and using Mapserver 4.8.3 on RHE Linux 3 and Oracle > Spatial 10g WMS GetFeatureInfo works fine. > > Best regards, > Bart > >> Hi Arjen, >> Sorry for the delay to reply your message. >> It's a strange problem for me because I'm not a WMS specialist, >> maybe Bart or another guy can help you about this WMS issue (he already >> used Oracle and WMS without problems). For Oracle Spatial connection I >> can help you without problem. >> The tokens RELATE and NONE just tell to core of maporaclespatial >> what operator of function will be used to retrieve the data from >> database, maybe you need to check if Locator have restrictions about the >> functions that the code use. Another way how to try to find the problem >> it's turn on the DEBUG for your layer and check in the log (error_log in >> Apache) what steps the maporaclespatial used to query the data, all the >> SQL's and Mapserver calls will appear in the log. >> For CGI test you can just use a simple Mapserver CGI call, without >> any WMS, to test your layer and connection. Like: >> >> http://localhost/cgi-bin/mapserv.exe?map=/ms4w/apps/geolocator/service/out.map&mode=map&layers=test1 >> Best regards. >> >> ------------------------------------------------------------------------ >> Fernando Simon >> Mapserver and Oracle Spatial developer >> G10 - Laboratorio de Computacao Aplicada - Brazil >> http://www.univali.br/g10 - UNIVALI/CTTMAR >> ------------------------------------------------------------------------ >> >> >> Arjen de Korte wrote: >>> Hello Fernando and list, >>> >>> Thank you for your reply. >>> >>> The layers are drawn correctly when I do a GetMap request. So I get a >>> correct map image. >>> >>> It makes no difference if I use NONE instead of RELATE; still no >>> coordinates in the GetFeatureInfo result. >>> >>> Does anyone on this list have WMS GetFeatureInfo working correctly with >>> Oracle Locator? >>> >>> Regards, >>> Arjen. >>> >>> >>> >>> On Thu, 13 Jul 2006 09:06:04 -0300, Fernando Simon said: >>> >>>> Hi Arjen, >>>> Sorry for the delay to reply you. >>>> It's a strange problem, because you can see the attributes but no >>>> the data, I'm not a WMS/WFS specialist and I will check if can be a >>>> WMS/WFS problem. >>>> About the Oracle Spatial connection, can you check if the layer >>>> will >>>> be draw using Mapserver CGI directly? Another issue, I don't know if >>>> in >>>> Locator the RELATE with geodetic SRID will work correctly, can you try >>>> to define the NONE instead of RELATE? >>>> Best regards. >>>> >>>> >>>> ------------------------------------------------------------------------ >>>> Fernando Simon >>>> Mapserver and Oracle Spatial developer >>>> G10 - Laboratorio de Computacao Aplicada - Brazil >>>> http://www.univali.br/g10 - UNIVALI/CTTMAR >>>> ------------------------------------------------------------------------ >>>> >>>> >>>> Arjen de Korte wrote: >>>> >>>>> Hello Mapserver users, >>>>> >>>>> I'm trying to get Mapserver to give me a GetFeatureInfo result from >>>>> Oracle. I do get an XML document back, with the attributes and >>>>> bounding >>>>> box in it, but *without* the coordinates! >>>>> >>>>> So I do get a valid XML response, starting with and >>>>> followed by the bounding box () and the attributes, but it >>>>> does >>>>> not contain feature coordinates like . >>>>> >>>>> We are using MS4W 1.5.3 and Oracle 9i Locator (no Spatial >>>>> extensions). >>>>> >>>>> In the mapfile the layer is defined by: >>>>> >>>>> LAYER >>>>> NAME test1 >>>>> METADATA >>>>> "ows_title" "Test 1" >>>>> "gml_include_items" "all" >>>>> "wms_extent" "0 300000 300000 600000" >>>>> END >>>>> PROJECTION >>>>> "init=epsg:28992" >>>>> END >>>>> STATUS ON >>>>> TYPE POLYGON >>>>> MAXSCALE 50000 >>>>> CONNECTIONTYPE oraclespatial >>>>> CONNECTION "adk/adk at domain" >>>>> DATA "geometry from test1 using unique ID srid 90112 relate version >>>>> 9i" >>>>> DUMP true >>>>> TEMPLATE "../templates/rivers_query_header.html" >>>>> TRANSPARENCY 50 >>>>> CLASS >>>>> NAME "Test 1" >>>>> COLOR 0 100 0 >>>>> END >>>>> END >>>>> >>>>> This is the URL I use for the request: >>>>> >>>>> http://localhost/cgi-bin/mapserv.exe?map=/ms4w/apps/geolocator/service/out.map&service=WMS&version=1.1.1&request=GetFeatureInfo&srs=EPSG:28992&bbox=174800,604995,178736,607363&info_format=application/vnd.ogc.gml&layers=bebgeb,water,test1&query_layers=test1&x=280.999999999999&y=70&width=615&height=370 >>>>> >>>>> Does anybody have a suggestion how to fix this? >>>>> >>>>> Regards, >>>>> >>>>> Arjen. >>>>> >>>>> >>>>> >>> >>> >> > > From mateusz at LOSKOT.NET Thu Jul 20 06:20:22 2006 From: mateusz at LOSKOT.NET (Mateusz Loskot) Date: Thu, 20 Jul 2006 15:20:22 +0200 Subject: calculate polygon area In-Reply-To: <4BF377919225F449BB097CB76FFE9BC83DDF89@ptolemy.topozone.com> Message-ID: Ed McNierney wrote: > Mateusz - > > I don't mind the Earth being spherical as much as I object to the > concept of a "square degree". Agreed. > Since a "degree" is an angular measurement, not a linear one, the > "square degree" mentioned in the code appears to refer to a patch on > the surface of the sphere defined by two perpendicular one-degree > angles with their vertices at the CENTER of the sphere. In other > words, for a given radius, one "square degree" is indeed a constant > area. And a useful concept for game programmers (I used to be one). Yes, that's my consideration too. If we don't need very accurate solution we can model the Earth as a sphere with constant well-defined radius (e.g. mean radious of some ellipsoid). Then we should get correct results, but as accurate as our model is accurate. > This is very confusingly similar to but different from the concept of > degrees of latitude and longitude, since a degree of longitude is a > one-degree angle with its vertex on a line between the poles, and NOT > at the center of the Earth. Yes. > It appears that the code given (it's hard to tell, given the almost > complete absence of comments) takes "latitude" and "longitude" > coordinates as inputs, and then finds the angles of the triangles > inside the defined polygon and calculates the area of those triangles > using standard spherical geometry. I think the input coordinates in this function are called lat/lon to make it simplier to imagine the idea. But users should not assume the results will be adequate to the Earth model in accuracy. > If that's the case, then it is possible that the magic "square mi per > spherical degree" is the appropriate conversion factor for a roughly > spherical Earth, but I can't verify it since the code makes no > effort to explain where that constant comes from. The only way to verify is to run some tests. I have used this procedure with small changes in one of my application and it gave quite reasonable results, but not accurate in GIS terms :-) > So it may indeed be possible that this code might produce rough and > not terribly accurate results. Yes. Ed, thanks for nice talk with your interesting explanations. Best regards -- Mateusz Loskot http://mateusz.loskot.net From Debbie.Pagurek at EC.GC.CA Thu Jul 20 07:00:23 2006 From: Debbie.Pagurek at EC.GC.CA (Pagurek,Debbie [NCR]) Date: Thu, 20 Jul 2006 10:00:23 -0400 Subject: fastest way to convert lon-lat to points Message-ID: Hi Puneet, How are you? I am working on some similar work with .csv files and OGR right now. I don't know why your field is being changed like that... As for debugging, aside from the ogrinfo test, you might want to embed your into a mapfile and then try the shp2img tool. If this produces an image for you, all the mapserver stuff is fine. But you might be having permissions problems on your server, which is where MY problem lies right now. I'm using IIS5, not apache... So I have some work ahead of me! You might also want to write a little PHP script to make sure that your ODBC DSN (a system DSN, right?) is working ok as well. It's when I did this that I realized that my problem has nothing to do with mapserver, ogrinfo etc. Good luck and let us know what you discover, Debbie Pagurek -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of P Kishor Sent: Thursday, July 20, 2006 8:19 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] fastest way to convert lon-lat to points Folks, I have seen this question asked in the past, and have a similar problem. I want to convert many lon-lat to a shapefile of points quickly. The lon-lat are in a csv text file (values.txt) like so foo,bar,baz,long,lat,qux 1, bar1, baz1, -87.796341, 41.907504, s10 ... ... So, I installed FW_Tools 1.05, created a DSN out of the text file (this is and has to be on a Windows box), and ogrinfo happily gave me information that I wanted, but with a twist... OGRFeature(values.txt):1056 foo (Integer) = 1 bar(String) = ba1 baz(String) = baz1 long (Real) = -87.796341 lat (Real) = 41.907504 qux(String) = 10.0000 So, what's with interpreting qux? It converted my "s10" into a string of value "10.0000". Anyway, then I created an OVF file (values.ovf) like so ODBC:values values.txt wkbPoint well, ogr2ogr -f "ESRI Shapefile" . values.ovf values but while that seemed to do something without any error, I got no output. So, is what I am doing the right way of going about this? Is there a better or another way to try out and benchmark? Oh, did I mention? -- The values.txt file has about 5.25 million rows, so speed is important. -- Puneet Kishor http://punkish.eidesis.org/ Nelson Inst. for Env. Studies, UW-Madison http://www.ies.wisc.edu/ Open Source Geospatial Foundation https://edu.osgeo.org/ From Debbie.Pagurek at EC.GC.CA Thu Jul 20 07:08:02 2006 From: Debbie.Pagurek at EC.GC.CA (Pagurek,Debbie [NCR]) Date: Thu, 20 Jul 2006 10:08:02 -0400 Subject: Generating a map with mapfile context document Message-ID: OK - I'll bite... you have a lot of different problems here, so I think you should do some reading first on the Mapserver web site. http://mapserver.gis.umn.edu/ and http://mapserver.gis.umn.edu/docs/reference/mapfile double check your imagepath and imageurl. the main point here is that a CONTEXT document is part of the OGC protocols, so it has to point to a Web Map Service (WMS). Your current mapfile is not producing a WMS. You have to add some additional things to your mapfile to produce a WMS. http://mapserver.gis.umn.edu/docs/howto/wms_server/?searchterm=wms%20ser ver get those things working first, and then try your context document stuff. another good source of information on OGC and mapserver is the OGC workshop: http://mapserver.gis.umn.edu/docs/tutorial/ms_ogc_workshop/ogc-workshop- link/?searchterm=ogc D. Pagurek _____ From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of rock well Sent: Wednesday, July 19, 2006 6:10 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Generating a map with mapfile context document Hi all, i am trying to generate a map from mapfile context document. I have a mapfile with a raster layer, MAP NAME "wallmap" SIZE 600 600 STATUS ON EXTENT 610537 5291088 627571 5308122 IMAGECOLOR 255 255 255 IMAGETYPE JPEG UNITS METERS WEB TEMPLATE "C:\Inetpub\wwwroot\index.html" IMAGEPATH "c:\Inetpub\wwwroot\tmp\" IMAGEURL "c:\Inetpub\wwwroot\tmp\" END LAYER NAME "raster1" TYPE RASTER PROJECTION "init=epsg:26914" END DATA "pathtotestfile.sid" OFFSITE 0 0 0 STATUS OFF END END The mapcontext document is as follows WMS Demo Server when i inlcude this context file in the browser, nothing gets displayed, the url is as follows http://localhost/scripts/mapserv.exe?MODE=map&MAP=c:/Inetpub/wwwroot/tes tmap.map&CONTEXT=c:/Inetpub/wwwroot/contextdoc.xml&LAYERS=raster1 What more do i need to add, do i need to add anything else in the url, if anyone has generated a map with context file can you suggest whats missing ... Thanks for your time ... kris _____ See the all-new, redesigned Yahoo.com. Check it out. -------------- next part -------------- An HTML attachment was scrubbed... URL: From C.Wilmes at GMX.DE Thu Jul 20 07:34:13 2006 From: C.Wilmes at GMX.DE (Christian Wilmes) Date: Thu, 20 Jul 2006 16:34:13 +0200 Subject: CSharp-Mapscript: setSymbolSet doesn't work?! In-Reply-To: Message-ID: Hi, I could not find a solu?tion for solving my problem. So I created a simple Exampels with VS2005. The examples uses a Point-Shape which is together with everything else in the zip-File. I tried it out with new Layer(myMap) and with the myMap.insert method. Both of them doesn't work. Best Regards Christian -------- Original-Nachricht -------- Datum: Wed, 19 Jul 2006 17:36:02 +0200 Von: "Tamas Szekeres" An: "Christian Wilmes" Betreff: Re: Re: Re: [UMN_MAPSERVER-USERS] CSharp-Mapscript: setSymbolSet doesn\'t work?! > Hi, > > You may also have to set the default symbol size to greater than 0, > like for example: > > symbol.sizex = 0; > symbol.sizey = 0; > > I would also suggest to use layerObj(mapObj map) instead of inserlayer > to avoid an unnecessary layer copy. > > If the problem still persists it would be helpful if you could post a > sample application to be able to reproduce the error and find a fix > for it. > > Best Regards, > > Tamas > > > 2006/7/19, Christian Wilmes : > > Hi, > > > > thanks for your quick response Tamas, but the symbols don't work up to > now. > > > > Normaly it should work with the gif-File in the parameterlist too, the > gif-File exists on my System. But I tested it with your code for the > symbolObj a lot of times, because that seems to be more simple. Directly before > and after calling mapObj.draw() I saved the mapfile build by my Application. > I tested both mapfiles in my Browser and both of them are working correct. > I will insert the two mapfiles in this email. > > > > Here is my original code I use with some expressions: > > > > public class Controller > > { > > //myMapHandler is a type of the class MapHandler which handels > Objects of the class Map. Map is a Subclass of mapObj > > private MapHandler myMapHandler = new MapHandler(); > > > > > > public void InitializeLayers() > > { > > > > //PipelineLayer is a Subclass from layerObj > > //The first parameter in the Constructor is the mapObj, > the second one the status of the Layer, the third one is the > Connectionstring to my WFS-Server > > //I've got good reasons for giving null in the > parameterlist for the mapObj and using the InsertLayer-Method later. > > //I tested it with giving directly the mapObj in the > constructor, it also doesn't work > > PipelineLayer trajektorie = new PipelineLayer(null, > true, "http://localhost/cgi-bin/mapserv.exe?"); > > > > //Building the Symbol: > > symbolObj symbol = new symbolObj("mySymbol", null); > > symbol.type = (int)MS_SYMBOL_TYPE.MS_SYMBOL_VECTOR; > > symbol.filled = mapscript.MS_TRUE; > > lineObj line = new lineObj(); > > line.add(new pointObj(1, 5, 0, 0)); > > line.add(new pointObj(1, 3, 0, 0)); > > line.add(new pointObj(3, 2, 0, 0)); > > line.add(new pointObj(1, 1, 0, 0)); > > line.add(new pointObj(1, 3, 0, 0)); > > symbol.setPoints(line); > > > > > > > > ? myMapHandler.Map.SymbolSet.appendSymbol(symbol); > > > > > > > > classObj classtest = new classObj(trajektorie); > > classtest.name = "test"; > > > > styleObj myStyle = new styleObj(classtest); > > myStyle.symbolname = "mySymbol"; > > > > myStyle.size = 150; > > myStyle.color = new colorObj(255, 0, 0, -1); > > > > > myMapHandler.Map.SymbolSet.save(Environment.CurrentDirectory + @"\test.sym"); > > > > myMapHandler.Map.InsertLayer(trajektorie, -1); > > // the Method Refresh Map is displayed above > > myMapHandler.Map.RefreshMap(); > > } > > } > > > > public class Map : mapObj > > { > > : > > : > > public void RefreshMap() > > { > > Cursor.Current = Cursors.WaitCursor; > > try > > { > > lock (this) > > { > > this.Save(Environment.CurrentDirectory + > @"\testBefore.map"); > > using (imageObj image = this.draw()) > > { > > this.Save(Environment.CurrentDirectory + > @"\testAfter.map"); > > byte[] img = image.getBytes(); > > using (MemoryStream ms = new MemoryStream(img)) > > { > > myImageHandler.ImageMap = > Image.FromStream(ms); > > } > > } > > } > > } > > catch (Exception ex) > > { > > MessageBox.Show(ex.Message + "\n" + (ex.InnerException > != null ? ex.InnerException.Message : "") > > , "Error", MessageBoxButtons.OK, > MessageBoxIcon.Error); > > } > > finally > > { > > Cursor.Current = Cursors.Default; > > } > > } > > : > > : > > } > > > > > > > > I've got no idea where else I have to search the mistake, or is it even > possible that there is a another Bug in the mapscript who is responsible > for that? > > > > > > Best Regards > > Christian > > -------- Original-Nachricht -------- > > Datum: Wed, 19 Jul 2006 00:57:19 +0200 > > Von: Tamas Szekeres > > An: Christian Wilmes > > Betreff: Re: Re: [UMN_MAPSERVER-USERS] CSharp-Mapscript: setSymbolSet > doesn\'t work?! > > > > > Hi, > > > > > > Constructing symbolObj you are using: > > > > > > "symbolObj(string symbolname, string imagefile)" > > > > > > The second parameter - if exists - point to an image for rendering > that > > > symbol. > > > In your case the followings should work: > > > > > > symbolObj mySymbol = new symbolObj("mySymbol", null); > > > mySymbol.type = (int)MS_SYMBOL_TYPE.MS_SYMBOL_VECTOR; > > > mySymbol.filled = mapscript.MS_TRUE; > > > lineObj line = new lineObj(); > > > line.add(new pointObj(1, 5, 0, 0)); > > > line.add(new pointObj(1, 3, 0, 0)); > > > line.add(new pointObj(3, 2, 0, 0)); > > > line.add(new pointObj(1, 1, 0, 0)); > > > line.add(new pointObj(1, 3, 0, 0)); > > > mySymbol.setPoints(line); > > > myMap.symbolset.appendSymbol(mySymbol); > > > > > > I haven't tested it so additional properties might be set, apologies. > > > > > > Tamas > > > > > > > > > 2006/7/18, Christian Wilmes : > > > > Hi, > > > > > > > > sorry, myMapHandler.Map was my mistake. But he was only in the mail, > I > > > just tried to create a very simple sample. Now I've changed my code > for > > > using myMap.symbolset.appendSymbol but it still doesn't work: > > > > > > > > mapObj myMap = new mapObj(""); > > > > symbolObj symbol = new symbolObj("mySymbol", directory); > > > > myMap.symbolSet.appendSymbol(symbol); > > > > : > > > > layerObj myLayer = new layerObj(null); > > > > myLayer.name = "RosoftWFS"; > > > > myLayer.Type = MS_LAYER_TYPE.MS_LAYER_POINT; > > > > myLayer.Connectiontype = MS_CONNECTION_TYPE.MS_WFS; > > > > myLayer.Connection = "http://localhost/cgi-bin/mapserv.exe?"; > > > > myLayer.metadata.set("wfs_typename", "myWFS"); > > > > myLayer.metadata.set("wfs_version","1.0.0"); > > > > myLayer.metadata.set("wfs_request_method", "GET"); > > > > myLayer.metadata.set("wfs_service", "WFS"); > > > > myLayer.setProjection("EPSG:31467"); > > > > > > > > classObj c = new classObj(myLayer); > > > > c.name = "test"; > > > > > > > > styleObj style = new styleObj(c); > > > > style.symbolname = "mySymbol"; > > > > style.size = 150; > > > > style.color = new colorObj(255, 0, 255, 0); > > > > : > > > > myMap.insertLayer(myLayer, -1); > > > > > > > > > > > > Best Regards > > > > Christian > > > > -------- Original-Nachricht -------- > > > > Datum: Mon, 17 Jul 2006 23:40:09 +0200 > > > > Von: Tamas Szekeres > > > > An: MAPSERVER-USERS at LISTS.UMN.EDU > > > > Betreff: Re: [UMN_MAPSERVER-USERS] CSharp-Mapscript: setSymbolSet > > > doesn\'t work?! > > > > > > > > > Christian, > > > > > > > > > > I'm a bit uncertain if you have added that symbolset to your map > > > > > (myMapHandler.Map may be another map reference :? ). > > > > > I would prefer using myMap.symbolset.appendSymbol instead of using > > > > > setsymbolset. > > > > > > > > > > If you are using constructors like "new classObj(myLayer)" and > "new > > > > > styleObj(c)" you might want to use mapserver 4.8.4 to avoid nasty > heap > > > > > corruptions and memory reference errors ;-) In that case using new > > > > > layerObj(mymap) seems better than insertLayer since the extra > layer > > > > > copy is avoided. > > > > > > > > > > Best Regards, > > > > > > > > > > Tamas > > > > > > > > > > > > > > > > > > > > 2006/7/17, Christian Wilmes : > > > > > > Hi All, > > > > > > > > > > > > I try to display a WFS-Layer with my application but I got only > > > small > > > > > points instead of the symbol in my Symbolset. > > > > > > > > > > > > My Symbolset looks like that: > > > > > > SYMBOLSET > > > > > > SYMBOL > > > > > > NAME "Fahne" > > > > > > TYPE VECTOR > > > > > > FILLED TRUE > > > > > > POINTS > > > > > > 1 5 > > > > > > 1 3 > > > > > > 3 2 > > > > > > 1 1 > > > > > > 1 3 > > > > > > END > > > > > > END > > > > > > END > > > > > > > > > > > > Some Code from the application: > > > > > > mapObj myMap = new mapObj(""); > > > > > > myMapHandler.Map.setSymbolSet(Environment.CurrentDirectory + > > > > > @"\test.sym"); > > > > > > : > > > > > > layerObj myLayer = new layerObj(null); > > > > > > myLayer.name = "RosoftWFS"; > > > > > > myLayer.Type = MS_LAYER_TYPE.MS_LAYER_POINT; > > > > > > myLayer.Connectiontype = MS_CONNECTION_TYPE.MS_WFS; > > > > > > myLayer.Connection = "http://localhost/cgi-bin/mapserv.exe?"; > > > > > > myLayer.metadata.set("wfs_typename", "myWFS"); > > > > > > myLayer.metadata.set("wfs_version","1.0.0"); > > > > > > myLayer.metadata.set("wfs_request_method", "GET"); > > > > > > myLayer.metadata.set("wfs_service", "WFS"); > > > > > > > > > > > > myLayer.setProjection("EPSG:31467"); > > > > > > classObj c = new classObj(myLayer); > > > > > > c.name = "test"; > > > > > > styleObj style = new styleObj(c); > > > > > > style.symbolname = "Fahne"; > > > > > > style.size = 150; > > > > > > style.color = new colorObj(255, 0, 255, 0); > > > > > > : > > > > > > myMap.insertLayer(myLayer, -1); > > > > > > > > > > > > > > > > > > Does anybody have an idea where to find the mistake? > > > > > > > > > > > > > > > > > > Best Regards > > > > > > Christian > > > > > > -- > > > > > > > > > > > > > > > > > > "Feel free" ? 10 GB Mailbox, 100 FreeSMS/Monat ... > > > > > > Jetzt GMX TopMail testen: http://www.gmx.net/de/go/topmail > > > > > > > > > > > > > > -- > > > > > > > > > > > > "Feel free" ? 10 GB Mailbox, 100 FreeSMS/Monat ... > > > > Jetzt GMX TopMail testen: http://www.gmx.net/de/go/topmail > > > > > > > > -- > > > > > > Echte DSL-Flatrate dauerhaft f?r 0,- Euro*! > > "Feel free" mit GMX DSL! http://www.gmx.net/de/go/dsl > > > > > > -- Echte DSL-Flatrate dauerhaft f?r 0,- Euro*! "Feel free" mit GMX DSL! http://www.gmx.net/de/go/dsl From szekerest at GMAIL.COM Thu Jul 20 07:44:17 2006 From: szekerest at GMAIL.COM (Tamas Szekeres) Date: Thu, 20 Jul 2006 16:44:17 +0200 Subject: CSharp-Mapscript: setSymbolSet doesn't work?! In-Reply-To: <20060720143413.233380@gmx.net> Message-ID: 2006/7/20, Christian Wilmes : > Hi, > > I could not find a solu?tion for solving my problem. So I created a simple Exampels with VS2005. The examples uses a Point-Shape which is together with everything else in the zip-File. Hi, Where can i find that one? Tamas From punkish at EIDESIS.ORG Thu Jul 20 07:36:37 2006 From: punkish at EIDESIS.ORG (P Kishor) Date: Thu, 20 Jul 2006 09:36:37 -0500 Subject: fastest way to convert lon-lat to points In-Reply-To: <3F34A5A15450C74C813BA20E31DBB45101A0E3E4@ncrx3.ncr.int.ec.gc.ca> Message-ID: Hey Debbie, Thanks for your reply. A few clarifications... On 7/20/06, Pagurek,Debbie [NCR] wrote: > I am working on some similar work with .csv files and OGR right now. > I don't know why your field is being changed like that... > Yup, this is strange, and unacceptable, so I need a workaround for this. > As for debugging, aside from the ogrinfo test, you might want to embed > your into a mapfile and then try the shp2img tool. If > this produces an image for you, all the mapserver stuff is fine. But you > might be having permissions problems on your server, which is where MY > problem lies right now. I'm using IIS5, not apache... So I have some > work ahead of me! I am not doing anything with the web at all here. This is pure command line stuff. The complete process I want to accomplish is as follows -- 1. convert lon-lat into shapefile points. 2. overlay (point-in-poly) #1 shapefile with a shapefile polys to determine, for each point, what poly it falls in... so, if #1 shapefile has cities, and the polys shapefile has states, I want to create an additional attribute for each city and fill it with the states value. This is all command line, and for quite a bit of data (upward of 5 million), so speed is an issue, although CPU and memory are not an issue (good hardware). I am using Perl for all the automation. I would like to keep everything in the realm of text files and dbf files as much as possible, but I am not averse to using SQLite or Berkeley DB. If push-comes-to-shove, I might be open to experimenting with PostGIS, but only if push really comes to shove. Many thanks, (and hope to see you again soon somewhere... maybe I will have to make a trip up North). > > You might also want to write a little PHP script to make sure that your > ODBC DSN (a system DSN, right?) is working ok as well. It's when I did > this that I realized that my problem has nothing to do with mapserver, > ogrinfo etc. > > Good luck and let us know what you discover, > Debbie Pagurek > > -----Original Message----- > From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On > Behalf Of P Kishor > Sent: Thursday, July 20, 2006 8:19 AM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: [UMN_MAPSERVER-USERS] fastest way to convert lon-lat to points > > Folks, > > I have seen this question asked in the past, and have a similar problem. > I want to convert many lon-lat to a shapefile of points quickly. The > lon-lat are in a csv text file (values.txt) like so > > foo,bar,baz,long,lat,qux > 1, bar1, baz1, -87.796341, 41.907504, s10 ... > ... > > So, I installed FW_Tools 1.05, created a DSN out of the text file (this > is and has to be on a Windows box), and ogrinfo happily gave me > information that I wanted, but with a twist... > > OGRFeature(values.txt):1056 > foo (Integer) = 1 > bar(String) = ba1 > baz(String) = baz1 > long (Real) = -87.796341 > lat (Real) = 41.907504 > qux(String) = 10.0000 > > So, what's with interpreting qux? It converted my "s10" into a string of > value "10.0000". > > Anyway, then I created an OVF file (values.ovf) like so > > > > ODBC:values > values.txt > > wkbPoint > > > > well, > > ogr2ogr -f "ESRI Shapefile" . values.ovf values > > but while that seemed to do something without any error, I got no > output. > > So, is what I am doing the right way of going about this? Is there a > better or another way to try out and benchmark? Oh, did I mention? -- > The values.txt file has about 5.25 million rows, so speed is important. > -- Puneet Kishor http://punkish.eidesis.org/ Nelson Inst. for Env. Studies, UW-Madison http://www.ies.wisc.edu/ Open Source Geospatial Foundation https://edu.osgeo.org/ From Debbie.Pagurek at EC.GC.CA Thu Jul 20 08:52:32 2006 From: Debbie.Pagurek at EC.GC.CA (Pagurek,Debbie [NCR]) Date: Thu, 20 Jul 2006 11:52:32 -0400 Subject: fastest way to convert lon-lat to points Message-ID: Yes, I'm following you. My suggestion to test out the OVF in a mapfile was just to make sure that the OVF is working. Funny you should mention all this point in polygon search stuff, because that is exactly what I'm working on right now, but I'm using a .csv file, WFS requests with a DWITHIN filter, and adding the results to the original .csv as new fields. I don't think the performance is going to be very good though ;) Is your work all to be done 'on the fly'? Repetitively? If not, I would just use Quantum GIS to load that textfile and create a shapefile... Hopefully some others on the list will have some suggestions for you / us! Debbie -----Original Message----- From: punk.kish at gmail.com [mailto:punk.kish at gmail.com] On Behalf Of P Kishor Sent: Thursday, July 20, 2006 10:37 AM To: Pagurek,Debbie [NCR] Cc: MAPSERVER-USERS at lists.umn.edu Subject: Re: [UMN_MAPSERVER-USERS] fastest way to convert lon-lat to points Hey Debbie, Thanks for your reply. A few clarifications... On 7/20/06, Pagurek,Debbie [NCR] wrote: > I am working on some similar work with .csv files and OGR right now. > I don't know why your field is being changed like that... > Yup, this is strange, and unacceptable, so I need a workaround for this. > As for debugging, aside from the ogrinfo test, you might want to embed > your into a mapfile and then try the shp2img tool. > If this produces an image for you, all the mapserver stuff is fine. > But you might be having permissions problems on your server, which is > where MY problem lies right now. I'm using IIS5, not apache... So I > have some work ahead of me! I am not doing anything with the web at all here. This is pure command line stuff. The complete process I want to accomplish is as follows -- 1. convert lon-lat into shapefile points. 2. overlay (point-in-poly) #1 shapefile with a shapefile polys to determine, for each point, what poly it falls in... so, if #1 shapefile has cities, and the polys shapefile has states, I want to create an additional attribute for each city and fill it with the states value. This is all command line, and for quite a bit of data (upward of 5 million), so speed is an issue, although CPU and memory are not an issue (good hardware). I am using Perl for all the automation. I would like to keep everything in the realm of text files and dbf files as much as possible, but I am not averse to using SQLite or Berkeley DB. If push-comes-to-shove, I might be open to experimenting with PostGIS, but only if push really comes to shove. Many thanks, (and hope to see you again soon somewhere... maybe I will have to make a trip up North). > > You might also want to write a little PHP script to make sure that > your ODBC DSN (a system DSN, right?) is working ok as well. It's when > I did this that I realized that my problem has nothing to do with > mapserver, ogrinfo etc. > > Good luck and let us know what you discover, Debbie Pagurek > > -----Original Message----- > From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] > On Behalf Of P Kishor > Sent: Thursday, July 20, 2006 8:19 AM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: [UMN_MAPSERVER-USERS] fastest way to convert lon-lat to > points > > Folks, > > I have seen this question asked in the past, and have a similar problem. > I want to convert many lon-lat to a shapefile of points quickly. The > lon-lat are in a csv text file (values.txt) like so > > foo,bar,baz,long,lat,qux > 1, bar1, baz1, -87.796341, 41.907504, s10 ... > ... > > So, I installed FW_Tools 1.05, created a DSN out of the text file > (this is and has to be on a Windows box), and ogrinfo happily gave me > information that I wanted, but with a twist... > > OGRFeature(values.txt):1056 > foo (Integer) = 1 > bar(String) = ba1 > baz(String) = baz1 > long (Real) = -87.796341 > lat (Real) = 41.907504 > qux(String) = 10.0000 > > So, what's with interpreting qux? It converted my "s10" into a string > of value "10.0000". > > Anyway, then I created an OVF file (values.ovf) like so > > > > ODBC:values > values.txt > > wkbPoint > > > > well, > > ogr2ogr -f "ESRI Shapefile" . values.ovf values > > but while that seemed to do something without any error, I got no > output. > > So, is what I am doing the right way of going about this? Is there a > better or another way to try out and benchmark? Oh, did I mention? -- > The values.txt file has about 5.25 million rows, so speed is important. > -- Puneet Kishor http://punkish.eidesis.org/ Nelson Inst. for Env. Studies, UW-Madison http://www.ies.wisc.edu/ Open Source Geospatial Foundation https://edu.osgeo.org/ From punkish at EIDESIS.ORG Thu Jul 20 10:00:08 2006 From: punkish at EIDESIS.ORG (P Kishor) Date: Thu, 20 Jul 2006 12:00:08 -0500 Subject: fastest way to convert lon-lat to points In-Reply-To: <3F34A5A15450C74C813BA20E31DBB45102D97F72@ncrx3.ncr.int.ec.gc.ca> Message-ID: On 7/20/06, Pagurek,Debbie [NCR] wrote: .. > Funny you should mention all this point in polygon search stuff, because > that is exactly what I'm working on right now, but I'm using a .csv > file, WFS requests with a DWITHIN filter, and adding the results to the > original .csv as new fields. I don't think the performance is going to > be very good though ;) "Algorithms with Perl" aka the wolf book has a point-in-poly algorigthm that I have used in the past successfully with shapefiles. I used Geo::ShapeFile to work with the shapefiles. I know that will work, but I have to work on optimizing the speed part because doing a 5 mill points in 200k polys is a cool trillion intersections. By the way, the task is not one-off. Hence the need for a program. > > -----Original Message----- > From: punk.kish at gmail.com [mailto:punk.kish at gmail.com] On Behalf Of P > Kishor > Sent: Thursday, July 20, 2006 10:37 AM > To: Pagurek,Debbie [NCR] > Cc: MAPSERVER-USERS at lists.umn.edu > Subject: Re: [UMN_MAPSERVER-USERS] fastest way to convert lon-lat to > points > > Hey Debbie, Thanks for your reply. A few clarifications... > > On 7/20/06, Pagurek,Debbie [NCR] wrote: > > > > I am working on some similar work with .csv files and OGR right now. > > I don't know why your field is being changed like that... > > > > Yup, this is strange, and unacceptable, so I need a workaround for this. > > > As for debugging, aside from the ogrinfo test, you might want to embed > > > your into a mapfile and then try the shp2img tool. > > If this produces an image for you, all the mapserver stuff is fine. > > But you might be having permissions problems on your server, which is > > where MY problem lies right now. I'm using IIS5, not apache... So I > > have some work ahead of me! > > I am not doing anything with the web at all here. This is pure command > line stuff. The complete process I want to accomplish is as follows -- > > 1. convert lon-lat into shapefile points. > 2. overlay (point-in-poly) #1 shapefile with a shapefile polys to > determine, for each point, what poly it falls in... so, if #1 shapefile > has cities, and the polys shapefile has states, I want to create an > additional attribute for each city and fill it with the states value. > > This is all command line, and for quite a bit of data (upward of 5 > million), so speed is an issue, although CPU and memory are not an issue > (good hardware). I am using Perl for all the automation. > > I would like to keep everything in the realm of text files and dbf files > as much as possible, but I am not averse to using SQLite or Berkeley DB. > If push-comes-to-shove, I might be open to experimenting with PostGIS, > but only if push really comes to shove. > > > Many thanks, (and hope to see you again soon somewhere... maybe I will > have to make a trip up North). > > > > > > You might also want to write a little PHP script to make sure that > > your ODBC DSN (a system DSN, right?) is working ok as well. It's when > > I did this that I realized that my problem has nothing to do with > > mapserver, ogrinfo etc. > > > > Good luck and let us know what you discover, Debbie Pagurek > > > > -----Original Message----- > > From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] > > On Behalf Of P Kishor > > Sent: Thursday, July 20, 2006 8:19 AM > > To: MAPSERVER-USERS at LISTS.UMN.EDU > > Subject: [UMN_MAPSERVER-USERS] fastest way to convert lon-lat to > > points > > > > Folks, > > > > I have seen this question asked in the past, and have a similar > problem. > > I want to convert many lon-lat to a shapefile of points quickly. The > > lon-lat are in a csv text file (values.txt) like so > > > > foo,bar,baz,long,lat,qux > > 1, bar1, baz1, -87.796341, 41.907504, s10 ... > > ... > > > > So, I installed FW_Tools 1.05, created a DSN out of the text file > > (this is and has to be on a Windows box), and ogrinfo happily gave me > > information that I wanted, but with a twist... > > > > OGRFeature(values.txt):1056 > > foo (Integer) = 1 > > bar(String) = ba1 > > baz(String) = baz1 > > long (Real) = -87.796341 > > lat (Real) = 41.907504 > > qux(String) = 10.0000 > > > > So, what's with interpreting qux? It converted my "s10" into a string > > of value "10.0000". > > > > Anyway, then I created an OVF file (values.ovf) like so > > > > > > > > ODBC:values > > values.txt > > > > wkbPoint > > > > > > > > well, > > > > ogr2ogr -f "ESRI Shapefile" . values.ovf values > > > > but while that seemed to do something without any error, I got no > > output. > > > > So, is what I am doing the right way of going about this? Is there a > > better or another way to try out and benchmark? Oh, did I mention? -- > > The values.txt file has about 5.25 million rows, so speed is > important. > > > > > > -- > Puneet Kishor http://punkish.eidesis.org/ Nelson Inst. for Env. Studies, > UW-Madison http://www.ies.wisc.edu/ Open Source Geospatial Foundation > https://edu.osgeo.org/ > -- Puneet Kishor http://punkish.eidesis.org/ Nelson Inst. for Env. Studies, UW-Madison http://www.ies.wisc.edu/ Open Source Geospatial Foundation https://edu.osgeo.org/ From adoyle at EOGEO.ORG Thu Jul 20 10:29:24 2006 From: adoyle at EOGEO.ORG (Allan Doyle) Date: Thu, 20 Jul 2006 13:29:24 -0400 Subject: Generating a map with mapfile context document In-Reply-To: <3F34A5A15450C74C813BA20E31DBB45102D97F71@ncrx3.ncr.int.ec.gc.ca> Message-ID: On Jul 20, 2006, at 10:08, Pagurek,Debbie [NCR] wrote: > OK - I'll bite... > you have a lot of different problems here, so I think you should do > some reading first on the Mapserver web site. > http://mapserver.gis.umn.edu/ > and > http://mapserver.gis.umn.edu/docs/reference/mapfile > double check your imagepath and imageurl. > > the main point here is that a CONTEXT document is part of the OGC > protocols, so it has to point to a Web Map Service (WMS). > Your current mapfile is not producing a WMS. You have to add some > additional things to your mapfile to produce a WMS. > http://mapserver.gis.umn.edu/docs/howto/wms_server/?searchterm=wms% > 20server MapBuilder uses WMS Context documents to configure itself to access WMS servers. There are also some online viewers that can do so. For instance http://viewer.digitalearth.gov/ does this. You have to first click on the "More Controls" link. Then you will see a text box you can enter a URL of a context document. So you have to put your context xml on the web somewhere, then paste that URL into the box. Of course, that's after you know the WMS the context points to is working. Allan > > get those things working first, and then try your context document > stuff. > another good source of information on OGC and mapserver is the OGC > workshop: > http://mapserver.gis.umn.edu/docs/tutorial/ms_ogc_workshop/ogc- > workshop-link/?searchterm=ogc > > D. Pagurek > From: UMN MapServer Users List [mailto:MAPSERVER- > USERS at LISTS.UMN.EDU] On Behalf Of rock well > Sent: Wednesday, July 19, 2006 6:10 PM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: [UMN_MAPSERVER-USERS] Generating a map with mapfile > context document > > Hi all, i am trying to generate a map from mapfile context > document. I have a mapfile with a raster layer, > > MAP > NAME "wallmap" > SIZE 600 600 > STATUS ON > EXTENT 610537 5291088 627571 5308122 > IMAGECOLOR 255 255 255 > IMAGETYPE JPEG > UNITS METERS > > WEB > TEMPLATE "C:\Inetpub\wwwroot\index.html" > IMAGEPATH "c:\Inetpub\wwwroot\tmp\" > IMAGEURL "c:\Inetpub\wwwroot\tmp\" > END > LAYER > NAME "raster1" > TYPE RASTER > PROJECTION > "init=epsg:26914" > END > DATA "pathtotestfile.sid" > OFFSITE 0 0 0 > STATUS OFF > END > END > > The mapcontext document is as follows > > > xsi:schemaLocation="http://www.opengis.net/context http:// > schemas.opengis.net/context/1.0.0/context.xsd"> > > > > miny="5291088.000000" maxx="627571.000000" maxy="5308122.000000"/> > > WMS Demo Server > > > > > > > when i inlcude this context file in the browser, nothing gets > displayed, the url is as follows > > http://localhost/scripts/mapserv.exe?MODE=map&MAP=c:/Inetpub/ > wwwroot/testmap.map&CONTEXT=c:/Inetpub/wwwroot/ > contextdoc.xml&LAYERS=raster1 > > What more do i need to add, do i need to add anything else in the > url, if anyone has generated a map with context file can you > suggest whats missing ... > > Thanks for your time ... > kris > > See the all-new, redesigned Yahoo.com. Check it out. -- Allan Doyle allan.doyle at gmail.com http://think.random-stuff.org/ -- Allan Doyle +1.781.433.2695 adoyle at eogeo.org From pcorti at GMAIL.COM Thu Jul 20 10:10:56 2006 From: pcorti at GMAIL.COM (Paolo Corti) Date: Thu, 20 Jul 2006 10:10:56 -0700 Subject: Again c# Unable to load DLL (mapscript) Message-ID: Hi I like MapServer, I have started to use it only since some days. What I would like to do is to use the c# connector with .NET 1.1 But since 2 days I have very big troubles to let it work, I always get the "Unable to load DLL (mapscript)" and I can't go on. I found several 3ds in this forum with my same problem, but none of them were helpfull for me. I tried to check missing dependencies, I tried to set the PATH env, I tried to copy dlls under system32, all without success. I first tried with the precompiled binaries distribution, then I downloaded an map server installation toolkit (mapserver-4.8.3-2-msvc71-buildk-kit.zip from http://hobu.stat.iastate.edu/mapserver/build_output/: 391 Mb!!!) and I compiled myself -with success- mapscript_csharp.dll. But when I create a stupid consol application with: mapObj map = new mapObj(@"C:\ms4w\apps\sample\sample1.map"); I am always getting the same message: Unable to load DLL (mapscript) I would be very happy to use C# with MapServer, as I do with ArcIMS (since several years) but I just can't start.... I am starting to think to write (in C#) a .NET Connector to the CGI Map Server... Thanks in advance if you will help me! -- View this message in context: http://www.nabble.com/Again-c--Unable-to-load-DLL-%28mapscript%29-tf1975214.html#a5419753 Sent from the Mapserver - User forum at Nabble.com. From szekerest at GMAIL.COM Thu Jul 20 11:30:02 2006 From: szekerest at GMAIL.COM (Tamas Szekeres) Date: Thu, 20 Jul 2006 20:30:02 +0200 Subject: Again c# Unable to load DLL (mapscript) In-Reply-To: <5419753.post@talk.nabble.com> Message-ID: Hi, If you are using the buildkit nmake -f makefile.vc install will copy the binaries into the "bin" directory. You should make available the dll-s from this directory and mapscript.dll should also available from your application. I recomment to place them into your app's directory since windows will try this path first. You might want to use sysinternal's filemon or a similar tool to detect whether all of the dll-s were found. If it does not help send your test project and let's look for the problem together. Best Regards, Tamas Szekeres 2006/7/20, Paolo Corti : > Hi > > I like MapServer, I have started to use it only since some days. > What I would like to do is to use the c# connector with .NET 1.1 > > But since 2 days I have very big troubles to let it work, I always get the > "Unable to load DLL (mapscript)" and I can't go on. > > I found several 3ds in this forum with my same problem, but none of them > were helpfull for me. I tried to check missing dependencies, I tried to set > the PATH env, I tried to copy dlls under system32, all without success. > > I first tried with the precompiled binaries distribution, then I downloaded > an map server installation toolkit (mapserver-4.8.3-2-msvc71-buildk-kit.zip > from http://hobu.stat.iastate.edu/mapserver/build_output/: 391 Mb!!!) and I > compiled myself -with success- mapscript_csharp.dll. > > But when I create a stupid consol application with: > > mapObj map = new mapObj(@"C:\ms4w\apps\sample\sample1.map"); > > I am always getting the same message: Unable to load DLL (mapscript) > > I would be very happy to use C# with MapServer, as I do with ArcIMS (since > several years) but I just can't start.... > I am starting to think to write (in C#) a .NET Connector to the CGI Map > Server... > > Thanks in advance if you will help me! > -- > View this message in context: http://www.nabble.com/Again-c--Unable-to-load-DLL-%28mapscript%29-tf1975214.html#a5419753 > Sent from the Mapserver - User forum at Nabble.com. > From punkish at EIDESIS.ORG Thu Jul 20 11:57:28 2006 From: punkish at EIDESIS.ORG (P Kishor) Date: Thu, 20 Jul 2006 13:57:28 -0500 Subject: fastest way to convert lon-lat to points In-Reply-To: <44BF83B00200008F00000045@co5.dnr.state.mn.us> Message-ID: On 7/20/06, Steve Lime wrote: > Puneet: Why is speed such a big deal or will you be doing this often? I will be doing this a few times a year (so, often, although not necessarily often enough), but this portion is only a part of a longer process. So, I have to optimize each step as much as I can for overall better rate of return. > > Anyway, if it were me I'd just write a quick MapScript script using > perl. Create a new shapefileObj, a new XBase table, open the file and > start looping. The loop itself should have like 3 lines of code. The > whole script should be about 15... > yup, here is what I have right now (using Geo::ShapeFile) -- foreach point foreach polygon pointIsInPoly($point, $poly) pointIsInPoly { my ($x, $y) = @$p; # point being tested my @xy = @$poly; # the poly being tested against my $n = @xy / 2; # Number of points in polygon. my @i = map {2 * $_} 0 .. (@xy/2); # The even indices of @xy. my @x = map {$xy[$_ ]} @i; # Even indices: x-coordinates. my @y = map {$xy[$_ + 1]} @i; # Odd indices: y-coordinates. my ($i, $j); # Indices. my $side = 0; # 0 = outside, 1 = inside. for ($i = 0, $j = $n - 1 ; $i < $n; $j = $i++) { if ( ( # If the y is between the (y-) borders ... (($y[$i] <= $y) && ($y < $y[$j])) || (($y[$j] <= $y) && ($y < $y[$i])) ) and # ...the (x,y) to infinity line crosses the edge # from the ith point to the jth point... ($x < ($x[$j] - $x[$i] ) * ($y - $y[$i]) / ($y[$j] - $y[$i]) + $x[$i] )) { $side = not $side; # Jump the fence. } } return $side ? 1 : 0; } > > >>> P Kishor 7/20/2006 7:19:06 AM >>> > Folks, > > I have seen this question asked in the past, and have a similar > problem. I want to convert many lon-lat to a shapefile of points > quickly. The lon-lat are in a csv text file (values.txt) like so > > foo,bar,baz,long,lat,qux > 1, bar1, baz1, -87.796341, 41.907504, s10 > ... > ... > > So, I installed FW_Tools 1.05, created a DSN out of the text file > (this is and has to be on a Windows box), and ogrinfo happily gave me > information that I wanted, but with a twist... > > OGRFeature(values.txt):1056 > foo (Integer) = 1 > bar(String) = ba1 > baz(String) = baz1 > long (Real) = -87.796341 > lat (Real) = 41.907504 > qux(String) = 10.0000 > > So, what's with interpreting qux? It converted my "s10" into a string > of value "10.0000". > > Anyway, then I created an OVF file (values.ovf) like so > > > > ODBC:values > values.txt > > wkbPoint > > > > well, > > ogr2ogr -f "ESRI Shapefile" . values.ovf values > > but while that seemed to do something without any error, I got no > output. > > So, is what I am doing the right way of going about this? Is there a > better or another way to try out and benchmark? Oh, did I mention? -- > The values.txt file has about 5.25 million rows, so speed is > important. > -- Puneet Kishor http://punkish.eidesis.org/ Nelson Inst. for Env. Studies, UW-Madison http://www.ies.wisc.edu/ Open Source Geospatial Foundation https://edu.osgeo.org/ From bpicinbono at WORLDONLINE.FR Thu Jul 20 12:56:39 2006 From: bpicinbono at WORLDONLINE.FR (Blaise) Date: Thu, 20 Jul 2006 21:56:39 +0200 Subject: Mapserver 4.8.3 Installation Problems In-Reply-To: <00a001c6ab9a$0aefaa70$ac0aa8c0@testxp8b8211e7> Message-ID: Hi Tom It seems that you've got some troubles with the Ming install. Can you post your ./configure options, please ? Does Mapserver build well without ming ? What ming version did you install ? Did you try it all alone in a simple php script ? Can you post also the output of ./configure relative to ming ? Regards Blaise Le Jeudi 20 Juillet 2006 03:15, Thomas Hammerlund a ?crit?: > Hi everyone, > > I'm installing Mapserver for the first time. I'm using Fedora 5and I've > been trying to follow the Red Hat build notes > (http://mapserver.gis.umn.edu/docs/howto/RedHat9andMapServer40), and I got > to making mapserver, but I get the below error. Can anyone help me make > sense of this? > > Thank you, > Tom > > > [root at dfserver02 mapserver-4.8.3]# make > gcc -O2 -fPIC -Wall -DIGNORE_MISSING_DATA -DHAVE_VSNPRINTF > -DNEED_STRLCAT - > DUSE_PROJ -DUSE_WMS_SVR -DUSE_WMS_LYR -DUSE_WFS_SVR -DUSE_WFS_LYR > -DUSE_MING_FL ASH -DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP > -DUSE_GD_FT -DGD_HA S_GDIMAGEGIFPTR -DGD_HAS_GETBITMAPFONTS -DUSE_OGR > -DUSE_GDAL -DUSE_ICONV > > -DUSE_THREAD -DUSE_ZLIB -I/usr/local/lib/gd-2.0.33 > -I/usr/local/includ e -I/usr/local/lib/ming-0.3.0 > shp2img.o -L. -lmap -L/usr/local/lib/gd-2 > .0.33 -lgd -ljpeg -lfreetype -lpng -lz -lXpm -lX11 -ljpeg -lfreetype > -lpng -lz > -lXpm -lX11 -lproj -ljpeg -L/usr/local/lib -lgdal > -L/usr/local/lib/ming-0.3.0 > > -lming -L/usr/kerberos/lib -lcurl -ldl -lgssapi_krb5 -lkrb5 -lk5crypto > -lkrb5 support -lcom_err -lresolv -lidn -lssl -lcrypto -lz -lpthread > -lc -lz -lm > -lstdc++ -o shp2img > ./libmap.a(maputil.o): In function `msTransformShape': > maputil.c:(.text+0x43a): undefined reference to `msTransformShapeSWF' > ./libmap.a(maputil.o): In function `msImageCreate': > maputil.c:(.text+0x624): undefined reference to `msImageCreateSWF' > ./libmap.a(maputil.o): In function `msFreeImage': > maputil.c:(.text+0xf66): undefined reference to `msFreeImageSWF' > ./libmap.a(maputil.o): In function `msSaveImage': > maputil.c:(.text+0x114d): undefined reference to `msSaveImageSWF' > maputil.c:(.text+0x11e4): undefined reference to `msSaveImageSWF' > ./libmap.a(mapdraw.o): In function `msDrawStartShape': > mapdraw.c:(.text+0x466): undefined reference to `msDrawStartShapeSWF' > ./libmap.a(mapdraw.o): In function `msImageStartLayer': > mapdraw.c:(.text+0x4df): undefined reference to `msImageStartLayerSWF' > ./libmap.a(mapdraw.o): In function `msDrawLabelCache': > mapdraw.c:(.text+0x581): undefined reference to `msDrawLabelCacheSWF' > ./libmap.a(mapdraw.o): In function `msDrawText': > mapdraw.c:(.text+0x606): undefined reference to `draw_textSWF' > ./libmap.a(mapdraw.o): In function `msDrawLabel': > mapdraw.c:(.text+0x7c7): undefined reference to `msDrawLabelSWF' > ./libmap.a(mapdraw.o): In function `msDrawShadeSymbol': > mapdraw.c:(.text+0x97e): undefined reference to `msDrawShadeSymbolSWF' > ./libmap.a(mapdraw.o): In function `msDrawLineSymbol': > mapdraw.c:(.text+0xa4e): undefined reference to `msDrawLineSymbolSWF' > ./libmap.a(mapdraw.o): In function `msDrawMarkerSymbol': > mapdraw.c:(.text+0xb1e): undefined reference to `msDrawMarkerSymbolSWF' > ./libmap.a(mapdraw.o): In function `msDrawWMSLayer': > mapdraw.c:(.text+0xe30): undefined reference to `msDrawWMSLayerSWF' > ./libmap.a(mapdraw.o): In function `msDrawRasterLayer': > mapdraw.c:(.text+0xefd): undefined reference to `msDrawRasterLayerSWF' > ./libmap.a(mapdraw.o): In function `msPrepareImage': > mapdraw.c:(.text+0x1563): undefined reference to `msImageCreateSWF' > ./libmap.a(mapdraw.o): In function `msDrawVectorLayer': > mapdraw.c:(.text+0x3927): undefined reference to > `msDrawVectorLayerAsRasterSWF' > ./libmap.a(mapdraw.o): In function `msDrawMap': > mapdraw.c:(.text+0x4809): undefined reference to `msDrawWMSLayerSWF' > mapdraw.c:(.text+0x4a19): undefined reference to `msDrawWMSLayerSWF' > collect2: ld returned 1 exit status > make: *** [shp2img] Error 1 From alexandre at ACQUASOFTWARE.COM.BR Thu Jul 20 13:16:09 2006 From: alexandre at ACQUASOFTWARE.COM.BR (Alexandre Abramides) Date: Thu, 20 Jul 2006 17:16:09 -0300 Subject: PHP/MapScript: How to change the color of a point? Message-ID: This is what I do to draw a point: $point = ms_newPointObj(); $point->setXY($x,$y); $line = ms_newLineObj(); $line->add($point); $feature = ms_newShapeObj(0); $feature->set("text"," "); $feature->add($line); $layer = $map->getLayerByName($layer_name); $layer->addFeature($feature); What I need is to change the color of the point (RGB) according to some condition, can anyone help me? Alexandre. From xslove at CENTRUM.CZ Thu Jul 20 13:35:18 2006 From: xslove at CENTRUM.CZ (xslove) Date: Thu, 20 Jul 2006 13:35:18 -0700 Subject: map drawing stretching Message-ID: Hi, it is possible to draw area with ratio for example 1:1.5 (image will be more stretched for Y axis). When I have specified extent smaller for Y axis, image is stretched for this axis. So it works on mapserv running through cgi. When I do it using java mapscript. image is never stretched... thanks Radim -- View this message in context: http://www.nabble.com/map-drawing-stretching-tf1977175.html#a5424045 Sent from the Mapserver - User forum at Nabble.com. From markane at INDIANA.EDU Thu Jul 20 15:03:39 2006 From: markane at INDIANA.EDU (Matthew Kane) Date: Thu, 20 Jul 2006 18:03:39 -0400 Subject: file formats In-Reply-To: Message-ID: Yep, ogr2ogr works like a charm, where my version is the latest from FWTools. Thanks for the help, everyone. Matt On 7/19/06, Tyler Mitchell wrote: > > I have also heard that OGR now supports E00 file format. Although > you wouldn't want to read them directly due to performance issues, > you can at least convert them using OGR now. I'm not sure if that is > in the current binary release of GDAL/OGR or whether you need current > source version. But either way, it's a hurdle we are now over.. whew :) > > Tyer > > On 19-Jul-06, at 10:41 AM, Matthew Perry wrote: > > > On 7/18/06, Matthew Kane wrote: > >> Does MapServer have the capability to deal with E00 files? > > > > Not natively. You have to convert to another format. > > > >> If not, is anyone > >> aware of a conversion utility from E00 to shapefile? > > > > Check out http://avce00.maptools.org/avce00/. This will convert from > > e00 to coverage (which can be read directly by mapserver or converted > > to shapefile using ogr2ogr) > > > > -- > > Matt Perry > > perrygeo at gmail.com > > http://www.perrygeo.net > -------------- next part -------------- An HTML attachment was scrubbed... URL: From rockwell_001 at YAHOO.COM Thu Jul 20 15:31:49 2006 From: rockwell_001 at YAHOO.COM (rock well) Date: Thu, 20 Jul 2006 15:31:49 -0700 Subject: Generating a map with mapfile context document In-Reply-To: <20060719220938.11939.qmail@web34212.mail.mud.yahoo.com> Message-ID: Thanks for your reply guys ...... rock well wrote: Hi all, i am trying to generate a map from mapfile context document. I have a mapfile with a raster layer, MAP NAME "wallmap" SIZE 600 600 STATUS ON EXTENT 610537 5291088 627571 5308122 IMAGECOLOR 255 255 255 IMAGETYPE JPEG UNITS METERS WEB TEMPLATE "C:\Inetpub\wwwroot\index.html" IMAGEPATH "c:\Inetpub\wwwroot\tmp\" IMAGEURL "c:\Inetpub\wwwroot\tmp\" END LAYER NAME "raster1" TYPE RASTER PROJECTION "init=epsg:26914" END DATA "pathtotestfile.sid" OFFSITE 0 0 0 STATUS OFF END END The mapcontext document is as follows WMS Demo Server when i inlcude this context file in the browser, nothing gets displayed, the url is as follows http://localhost/scripts/mapserv.exe?MODE=map&MAP=c:/Inetpub/wwwroot/testmap.map&CONTEXT=c:/Inetpub/wwwroot/contextdoc.xml&LAYERS=raster1 What more do i need to add, do i need to add anything else in the url, if anyone has generated a map with context file can you suggest whats missing ... Thanks for your time ... kris --------------------------------- See the all-new, redesigned Yahoo.com. Check it out. --------------------------------- Yahoo! Music Unlimited - Access over 1 million songs.Try it free. -------------- next part -------------- An HTML attachment was scrubbed... URL: From baris_999 at YAHOO.COM Thu Jul 20 15:45:54 2006 From: baris_999 at YAHOO.COM (Baris YILMAZ) Date: Thu, 20 Jul 2006 15:45:54 -0700 Subject: Dynamic map file, dynamic data item In-Reply-To: Message-ID: Hi, I am using Maplab, with php/mapscript and rosa applet. I have a map file which has some layers. The layers data is read from a postgis db extention. I have some linestrings which are read from a database with, DATA "geometry from schnittverlauf" and viewed in the rosa applet. What I want to do is, I want to dynamically filter the geometries read from the database as per the users input, since I don't want every linestring to be drawn. Can anyone tell me how I can do that? Thank you all Baris -------------- next part -------------- An HTML attachment was scrubbed... URL: From rockwell_001 at YAHOO.COM Thu Jul 20 15:49:03 2006 From: rockwell_001 at YAHOO.COM (rock well) Date: Thu, 20 Jul 2006 15:49:03 -0700 Subject: CGI Qlayer,Qstring variables usage Message-ID: Hello all, I was trying to query one of the layers from a shape file in the url, i am used map as the mode and gave the layer name for Qlayer, column name for Qitem and QString. Part of the URL looks like http://pathtomapserv.exe?MODE=map&LAYERS=layer1&QLAYER=layer1&QITEM=colname&QString=("colname=value") the map is displayed but it didnt filter the layer with the given querystring variables .... Is there something missing, can anyone suggest with something ... Thanks for your effort and time .... kris --------------------------------- Do you Yahoo!? Next-gen email? Have it all with the all-new Yahoo! Mail Beta. -------------- next part -------------- An HTML attachment was scrubbed... URL: From bwragg at TPG.COM.AU Thu Jul 20 16:40:27 2006 From: bwragg at TPG.COM.AU (Benjamin Wragg) Date: Fri, 21 Jul 2006 09:40:27 +1000 Subject: Mapserver + PHP +Apache options Message-ID: Hi all, I just want to try and sum up a heap of emails I've been reading on the list regading different possible mapserver/mapscript setups. I guess I'm trying to get a definative answer on the ways you can run mapserver (stably) with Apache and PHP. Below is what I have come to understand is possible, please offer any comments (particularly about the fcgi): Apache 1.x php as cgi (stable) mapscript as php module php as dso (unstable) mapscript as php module php as fcgi (???) mapscript as php module mapserver as cgi mapserver as fcgi Apache 2.x php as cgi (stable) mapscript as php module php as dso (unstable) mapscript as php module php as fcgi (???) mapscript as php module mapserver as cgi mapserver as fcgi Cheers, Benjamin Benjamin -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.394 / Virus Database: 268.10.2/393 - Release Date: 19/07/2006 From tom at MAPLINK.JP Thu Jul 20 18:20:44 2006 From: tom at MAPLINK.JP (Thomas Hammerlund) Date: Fri, 21 Jul 2006 10:20:44 +0900 Subject: Mapserver 4.8.3 Installation Problems Message-ID: Thank you for replying Blaise, You're right, it was my Ming install. I recompiled Mapserver with out Ming using this configuration: ./configure --without-tiff --without-eppl --with-threads --with-proj --with-gdal=/usr/local/bin/gdal-config --with-ogr --with-php=/usr/local/php-5.1.4 --with-gd=/usr/local/lib/gd-2.0.33 --with-freetype=/usr/bin --with-pdf --with-wmsclient --with-wfs --with-wfsclient I then did: make clean make and it seemed to install OK. Since I'm using Fedora 5, I can use yum, and that's what I did. (yum install ming) But I also tried to install ming myself with wget and I installed it to usr/local/lib. The two could have been conflicting. Again, thank you for replying. I'll go from here until I need to use Ming. ----- Original Message ----- From: "Blaise" To: Sent: Friday, July 21, 2006 4:56 AM Subject: Re: [UMN_MAPSERVER-USERS] Mapserver 4.8.3 Installation Problems > Hi Tom > It seems that you've got some troubles with the Ming install. > Can you post your ./configure options, please ? > Does Mapserver build well without ming ? > What ming version did you install ? Did you try it all alone in a simple > php > script ? > Can you post also the output of ./configure relative to ming ? > Regards > Blaise > > > Le Jeudi 20 Juillet 2006 03:15, Thomas Hammerlund a ?crit : >> Hi everyone, >> >> I'm installing Mapserver for the first time. I'm using Fedora 5and I've >> been trying to follow the Red Hat build notes >> (http://mapserver.gis.umn.edu/docs/howto/RedHat9andMapServer40), and I >> got >> to making mapserver, but I get the below error. Can anyone help me make >> sense of this? >> >> Thank you, >> Tom >> >> >> [root at dfserver02 mapserver-4.8.3]# make >> gcc -O2 -fPIC -Wall -DIGNORE_MISSING_DATA -DHAVE_VSNPRINTF >> -DNEED_STRLCAT - >> DUSE_PROJ -DUSE_WMS_SVR -DUSE_WMS_LYR -DUSE_WFS_SVR -DUSE_WFS_LYR >> -DUSE_MING_FL >> ASH -DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP >> -DUSE_GD_FT -DGD_HA S_GDIMAGEGIFPTR -DGD_HAS_GETBITMAPFONTS -DUSE_OGR >> -DUSE_GDAL -DUSE_ICONV >> >> -DUSE_THREAD -DUSE_ZLIB -I/usr/local/lib/gd-2.0.33 >> -I/usr/local/includ e -I/usr/local/lib/ming-0.3.0 >> shp2img.o -L. -lmap -L/usr/local/lib/gd-2 >> .0.33 -lgd -ljpeg -lfreetype -lpng -lz -lXpm -lX11 -ljpeg -lfreetype >> -lpng -lz >> -lXpm -lX11 -lproj -ljpeg -L/usr/local/lib -lgdal >> -L/usr/local/lib/ming-0.3.0 >> >> -lming -L/usr/kerberos/lib -lcurl -ldl -lgssapi_krb5 -lkrb5 -lk5crypto >> -lkrb5 support -lcom_err -lresolv -lidn -lssl -lcrypto -lz -lpthread >> -lc -lz -lm >> -lstdc++ -o shp2img >> ./libmap.a(maputil.o): In function `msTransformShape': >> maputil.c:(.text+0x43a): undefined reference to `msTransformShapeSWF' >> ./libmap.a(maputil.o): In function `msImageCreate': >> maputil.c:(.text+0x624): undefined reference to `msImageCreateSWF' >> ./libmap.a(maputil.o): In function `msFreeImage': >> maputil.c:(.text+0xf66): undefined reference to `msFreeImageSWF' >> ./libmap.a(maputil.o): In function `msSaveImage': >> maputil.c:(.text+0x114d): undefined reference to `msSaveImageSWF' >> maputil.c:(.text+0x11e4): undefined reference to `msSaveImageSWF' >> ./libmap.a(mapdraw.o): In function `msDrawStartShape': >> mapdraw.c:(.text+0x466): undefined reference to `msDrawStartShapeSWF' >> ./libmap.a(mapdraw.o): In function `msImageStartLayer': >> mapdraw.c:(.text+0x4df): undefined reference to `msImageStartLayerSWF' >> ./libmap.a(mapdraw.o): In function `msDrawLabelCache': >> mapdraw.c:(.text+0x581): undefined reference to `msDrawLabelCacheSWF' >> ./libmap.a(mapdraw.o): In function `msDrawText': >> mapdraw.c:(.text+0x606): undefined reference to `draw_textSWF' >> ./libmap.a(mapdraw.o): In function `msDrawLabel': >> mapdraw.c:(.text+0x7c7): undefined reference to `msDrawLabelSWF' >> ./libmap.a(mapdraw.o): In function `msDrawShadeSymbol': >> mapdraw.c:(.text+0x97e): undefined reference to `msDrawShadeSymbolSWF' >> ./libmap.a(mapdraw.o): In function `msDrawLineSymbol': >> mapdraw.c:(.text+0xa4e): undefined reference to `msDrawLineSymbolSWF' >> ./libmap.a(mapdraw.o): In function `msDrawMarkerSymbol': >> mapdraw.c:(.text+0xb1e): undefined reference to `msDrawMarkerSymbolSWF' >> ./libmap.a(mapdraw.o): In function `msDrawWMSLayer': >> mapdraw.c:(.text+0xe30): undefined reference to `msDrawWMSLayerSWF' >> ./libmap.a(mapdraw.o): In function `msDrawRasterLayer': >> mapdraw.c:(.text+0xefd): undefined reference to `msDrawRasterLayerSWF' >> ./libmap.a(mapdraw.o): In function `msPrepareImage': >> mapdraw.c:(.text+0x1563): undefined reference to `msImageCreateSWF' >> ./libmap.a(mapdraw.o): In function `msDrawVectorLayer': >> mapdraw.c:(.text+0x3927): undefined reference to >> `msDrawVectorLayerAsRasterSWF' >> ./libmap.a(mapdraw.o): In function `msDrawMap': >> mapdraw.c:(.text+0x4809): undefined reference to `msDrawWMSLayerSWF' >> mapdraw.c:(.text+0x4a19): undefined reference to `msDrawWMSLayerSWF' >> collect2: ld returned 1 exit status >> make: *** [shp2img] Error 1 > > From m.meier at SPIEKERMANN.DE Thu Jul 20 21:33:30 2006 From: m.meier at SPIEKERMANN.DE (Manfred Meier) Date: Fri, 21 Jul 2006 06:33:30 +0200 Subject: fastest way to convert lon-lat to points In-Reply-To: Message-ID: Hello, i have had some tasks with many points and polylines (streets) too, but not so many points. But the execution time in pure perl had been too long, therefore I used some algorithms in C and used swig for the coupling. That is very fine. For the pre-searching, which points are in a given rectangle, i use a range searching (tree2D from the book from Sedgewick) in C with swig. All this I use on Linux, so I think my using C and swig is a lot easier than on windows. Manfred P Kishor schrieb: > On 7/20/06, Steve Lime wrote: > >> Puneet: Why is speed such a big deal or will you be doing this often? > > > I will be doing this a few times a year (so, often, although not > necessarily often enough), but this portion is only a part of a longer > process. So, I have to optimize each step as much as I can for overall > better rate of return. > >> >> Anyway, if it were me I'd just write a quick MapScript script using >> perl. Create a new shapefileObj, a new XBase table, open the file and >> start looping. The loop itself should have like 3 lines of code. The >> whole script should be about 15... >> > > > yup, here is what I have right now (using Geo::ShapeFile) -- > > foreach point > foreach polygon > pointIsInPoly($point, $poly) > > > pointIsInPoly { > my ($x, $y) = @$p; # point being tested > my @xy = @$poly; # the poly being tested against > my $n = @xy / 2; # Number of points in polygon. > my @i = map {2 * $_} 0 .. (@xy/2); # The even indices of @xy. > my @x = map {$xy[$_ ]} @i; # Even indices: x-coordinates. > my @y = map {$xy[$_ + 1]} @i; # Odd indices: y-coordinates. > my ($i, $j); # Indices. > my $side = 0; # 0 = outside, 1 = inside. > for ($i = 0, $j = $n - 1 ; $i < $n; $j = $i++) { > if ( > ( > # If the y is between the (y-) borders ... > (($y[$i] <= $y) && ($y < $y[$j])) || > (($y[$j] <= $y) && ($y < $y[$i])) > ) > and > # ...the (x,y) to infinity line crosses the edge > # from the ith point to the jth point... > ($x > < > ($x[$j] - $x[$i] ) * > ($y - $y[$i]) / ($y[$j] - $y[$i]) + $x[$i] )) { > $side = not $side; # Jump the fence. > } > } > return $side ? 1 : 0; > } > >> >> >>> P Kishor 7/20/2006 7:19:06 AM >>> >> Folks, >> >> I have seen this question asked in the past, and have a similar >> problem. I want to convert many lon-lat to a shapefile of points >> quickly. The lon-lat are in a csv text file (values.txt) like so >> >> foo,bar,baz,long,lat,qux >> 1, bar1, baz1, -87.796341, 41.907504, s10 >> ... >> ... >> >> So, I installed FW_Tools 1.05, created a DSN out of the text file >> (this is and has to be on a Windows box), and ogrinfo happily gave me >> information that I wanted, but with a twist... >> >> OGRFeature(values.txt):1056 >> foo (Integer) = 1 >> bar(String) = ba1 >> baz(String) = baz1 >> long (Real) = -87.796341 >> lat (Real) = 41.907504 >> qux(String) = 10.0000 >> >> So, what's with interpreting qux? It converted my "s10" into a string >> of value "10.0000". >> >> Anyway, then I created an OVF file (values.ovf) like so >> >> >> >> ODBC:values >> values.txt >> >> wkbPoint >> >> >> >> well, >> >> ogr2ogr -f "ESRI Shapefile" . values.ovf values >> >> but while that seemed to do something without any error, I got no >> output. >> >> So, is what I am doing the right way of going about this? Is there a >> better or another way to try out and benchmark? Oh, did I mention? -- >> The values.txt file has about 5.25 million rows, so speed is >> important. >> > > From C.Wilmes at GMX.DE Fri Jul 21 01:37:29 2006 From: C.Wilmes at GMX.DE (Christian Wilmes) Date: Fri, 21 Jul 2006 10:37:29 +0200 Subject: c#-mapscript, queryByPoint Message-ID: Hi All, I try to query a point-layer in my c#-mapscript application. For that I write a function in my class Layer (base-class is layerObj) which should give me back a feature. I'm sure the point-coordinates I give in the function exists in the layer. But I got no result from the query. I think the reason could be the template. I red, that I have to set that propertie. So I create just create a html-document and set the propertie to it. Is there something that have to be in the document or is a empty document enough? What else could be the reason for getting no results? public class Layer : layerObj : : public shapeObj QueryByPoint(Map map, pointObj point) { base.template = Environment.CurrentDirectory + @"\Query.html"; base.tolerance = 1; int query = base.queryByPoint(map, point, mapscript.MS_SINGLE, 1); int numRes = base.getNumResults(); int open = base.open(); resultCacheMemberObj result = base.getResult(query); shapeObj shape = base.getFeature(result.shapeindex, result.tileindex); base.close(); return shape; } } Best Regards Christian -- "Feel free" ? 10 GB Mailbox, 100 FreeSMS/Monat ... Jetzt GMX TopMail testen: http://www.gmx.net/de/go/topmail From pcorti at GMAIL.COM Fri Jul 21 03:19:34 2006 From: pcorti at GMAIL.COM (Paolo Corti) Date: Fri, 21 Jul 2006 03:19:34 -0700 Subject: Again c# Unable to load DLL (mapscript) In-Reply-To: Message-ID: Thank you very much for helping me Tamas, now seems to work: This is what I did, according to your suggestion: ***************************************************** cd C:\cvs\buildkit\mapserver-4.8.3 nmake -f makefile.vc install cd mapscript\python c:\cvs\buildkit\mapserver-4.8.3\..\SWIG-1.3.27\swig -python -shadow -o mapscript_wrap.c ../mapscript.i "c:\cvs\buildkit\mapserver-4.8.3\..\Python-2.4.2"\PCBuild\python.exe setup.py bdist running bdist running bdist_dumb running build running build_py copying mapscript.py -> build\lib.win32-2.4 running build_ext building '_mapscript' extension C:\Programmi\Microsoft Visual Studio .NET 2003\Vc7\bin\cl.exe /c /nologo /Ox /MD /W3 /GX /DNDEBUG -DHAVE_STRING_H -DREGEX_MALLOC -DNEED_STRCASECMP -DNEED_STRNCASECMP -DNEED_STRLCAT -DUSE_POSTGIS -DWIN32 -D_WIN32 -DUSE_PROJ -DUSE_PROJ_API_H -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_GIF -DGD_HAS_GDIMAGEGIFPTR -DUSE_GD_FT -DGD_HAS_GETBITMAPFONT -DUSE_OGR -DUSE_WMS_SVR -DUSE_THREAD -DUSE_WMS_LYR -DUSE_MING_FLASH -DIGNORE_MISSING_DATA -DENABLE_STDERR_DEBUG -DUSE_GDAL -DUSE_WFS_SVR -DUSE_WFS_LYR -DUSE_WCS_SVR -DUSE_PDF -DUSE_GD_ANTIALIAS -DUSE_ICONV -DUSE_GEOS -DUSE_ZLIB -Ic:\cvs\buildkit\Python-2.4.2\include -Ic:\cvs\buildkit\mapserver-4.8.3\..\gd-2.0.33 -Ic:\cvs\buildkit\mapserver-4.8.3\..\jpeg-6b -Ic:\cvs\buildkit\mapserver-4.8.3\..\proj-4.4.9/src -Ic:\cvs\buildkit\mapserver-4.8.3\..\regex-0.12 -Ic:\cvs\buildkit\mapserver-4.8.3\..\gdal-1.3.2/gcore -Ic:\cvs\buildkit\mapserver-4.8.3\..\gdal-1.3.2/alg -Ic:\cvs\buildkit\mapserver-4.8.3\..\gdal-1.3.2/ogr -Ic:\cvs\buildkit\mapserver-4.8.3\..\gdal-1.3.2/port -Ic:\cvs\buildkit\mapserver-4.8.3\..\gdal-1.3.2/ogr/ogrsf_frmts -Ic:\cvs\buildkit\mapserver-4.8.3\..\curl-7.15.0/include -Ic:\cvs\buildkit\mapserver-4.8.3\..\ming-0.2a/src -Ic:\cvs\buildkit\mapserver-4.8.3\..\ming-0.2a -Ic:\cvs\buildkit\mapserver-4.8.3\..\PDFlib-Lite-6.0.2/libs/pdflib -Ic:\cvs\buildkit\mapserver-4.8.3\..\postgresql-8.1.2/src/interfaces/libpq -Ic:\cvs\buildkit\mapserver-4.8.3\..\postgresql-8.1.2/src/include -Ic:\cvs\buildkit\mapserver-4.8.3\..\libiconv-1.9.1\include -Ic:\cvs\buildkit\mapserver-4.8.3\..\geos-2.2.2/source/headers -Ic:\cvs\buildkit\mapserver-4.8.3\..\zlib-1.2.3 -Ic:\cvs\buildkit\Python-2.4.2\include -Ic:\cvs\buildkit\Python-2.4.2\PC /Tcmapscript_wrap.c /Fobuild\temp.win32-2.4\Release\mapscript_wrap.obj mapscript_wrap.c c:\cvs\buildkit\gdal-1.3.2\port\cpl_config.h(8) : warning C4005: 'HAVE_SNPRINTF' : macro redefinition c:\cvs\buildkit\Python-2.4.2\Include\pyerrors.h(220) : see previous definition of 'HAVE_SNPRINTF' C:\Programmi\Microsoft Visual Studio .NET 2003\Vc7\bin\link.exe /DLL /nologo /INCREMENTAL:NO /LIBPATH:c:\cvs\buildkit\mapserver-4.8.3\..\geos-2.2.2/source /LIBPATH:c:\cvs\buildkit\mapserver-4.8.3\..\gdal-1.3.2 /LIBPATH:c:\cvs\buildkit\mapserver-4.8.3\..\freetype-2.1.10/objs /LIBPATH:c:\cvs\buildkit\mapserver-4.8.3\..\libiconv-1.9.1\lib /LIBPATH:c:\cvs\buildkit\mapserver-4.8.3 /LIBPATH:c:\cvs\buildkit\mapserver-4.8.3\..\zlib-1.2.3 /LIBPATH:c:\cvs\buildkit\mapserver-4.8.3\..\curl-7.15.0 /LIBPATH:c:\cvs\buildkit\mapserver-4.8.3\..\jpeg-6b /LIBPATH:c:\cvs\buildkit\mapserver-4.8.3\..\proj-4.4.9/src /LIBPATH:c:\cvs\buildkit\mapserver-4.8.3\..\ming-0.2a/src /LIBPATH:c:\cvs\buildkit\mapserver-4.8.3\..\libpng-1.2.8\projects\visualc71\Win32_LIB_Release /LIBPATH:c:\cvs\buildkit\mapserver-4.8.3\..\PDFlib-Lite-6.0.2/libs/pdflib/Release_DLL /LIBPATH:c:\cvs\buildkit\mapserver-4.8.3\..\gd-2.0.33 /LIBPATH:c:\cvs\buildkit\mapserver-4.8.3\..\postgresql-8.1.2/src/interfaces/libpq/release /LIBPATH:c:\cvs\buildkit\Python-2.4.2\libs /LIBPATH:c:\cvs\buildkit\Python-2.4.2\PCBuild libpqdll.lib iconv.lib libcurl.lib mapserver_i.lib libming.lib geos.lib proj_i.lib libjpeg.lib gd.lib freetype2110.lib pdflib.lib libpng.lib gdal_i.lib zdll.lib /EXPORT:init_mapscript build\temp.win32-2.4\Release\mapscript_wrap.obj build\temp.win32-2.4\Release\pygdioctx/pygdioctx.obj /OUT:build\lib.win32-2.4\_mapscript.pyd /IMPLIB:build\temp.win32-2.4\Release\_mapscript.lib Creating library build\temp.win32-2.4\Release\_mapscript.lib and object build\temp.win32-2.4\Release\_mapscript.exp installing to build\bdist.win32\dumb running install running install_lib creating build\bdist.win32\dumb creating build\bdist.win32\dumb\cvs creating build\bdist.win32\dumb\cvs\buildkit creating build\bdist.win32\dumb\cvs\buildkit\Python-2.4.2 creating build\bdist.win32\dumb\cvs\buildkit\Python-2.4.2\Lib creating build\bdist.win32\dumb\cvs\buildkit\Python-2.4.2\Lib\site-packages copying build\lib.win32-2.4\mapscript.py -> build\bdist.win32\dumb\cvs\buildkit\Python-2.4.2\Lib\site-packages copying build\lib.win32-2.4\_mapscript.pyd -> build\bdist.win32\dumb\cvs\buildkit\Python-2.4.2\Lib\site-packages byte-compiling build\bdist.win32\dumb\cvs\buildkit\Python-2.4.2\Lib\site-packages\mapscript.py to mapscript.pyc creating 'C:\cvs\buildkit\mapserver-4.8.3\mapscript\python\dist\mapscript-4.8.3.win32.zip' and adding '.' to it adding 'cvs\buildkit\Python-2.4.2\Lib\site-packages\mapscript.py' adding 'cvs\buildkit\Python-2.4.2\Lib\site-packages\mapscript.pyc' adding 'cvs\buildkit\Python-2.4.2\Lib\site-packages\_mapscript.pyd' removing 'build\bdist.win32\dumb' (and everything under it) cd ..\.. cd mapscript\csharp nmake /f makefile.vc c:\cvs\buildkit\mapserver-4.8.3\..\SWIG-1.3.27\swig -csharp -o mapscript_wrap.c ../mapscript.i cl /nologo /Ox /MD /W3 /DDEBUG /EHsc -DWIN32 -D_WIN32 -Ic:\cvs\buildkit\mapserver-4.8.3\..\gd-2.0.33 -Ic:\cvs\buildkit\mapserver-4.8.3\..\jpeg-6b -Ic:\cvs\buildkit\mapserver-4.8.3\..\proj-4.4.9/src -Ic:\cvs\buildkit\mapserver-4.8.3\..\regex-0.12 -Ic:\cvs\buildkit\mapserver-4.8.3\..\gdal-1.3.2/gcore -Ic:\cvs\buildkit\mapserver-4.8.3\..\gdal-1.3.2/alg -Ic:\cvs\buildkit\mapserver-4.8.3\..\gdal-1.3.2/ogr -Ic:\cvs\buildkit\mapserver-4.8.3\..\gdal-1.3.2/port -Ic:\cvs\buildkit\mapserver-4.8.3\..\gdal-1.3.2/ogr/ogrsf_frmts -Ic:\cvs\buildkit\mapserver-4.8.3\..\gdal-1.3.2/ogr -Ic:\cvs\buildkit\mapserver-4.8.3\..\gdal-1.3.2/port -Ic:\cvs\buildkit\mapserver-4.8.3\..\curl-7.15.0/include -Ic:\cvs\buildkit\mapserver-4.8.3\..\ming-0.2a/src -Ic:\cvs\buildkit\mapserver-4.8.3\..\ming-0.2a -Ic:\cvs\buildkit\mapserver-4.8.3\..\PDFlib-Lite-6.0.2/libs/pdflib -Ic:\cvs\buildkit\mapserver-4.8.3\..\postgresql-8.1.2/src/interfaces/libpq -Ic:\cvs\buildkit\mapserver-4.8.3\..\postgresql-8.1.2/src/include -Ic:\cvs\buildkit\mapserver-4.8.3\..\libiconv-1.9.1\include -Ic:\cvs\buildkit\mapserver-4.8.3\..\geos-2.2.2/source/headers -Ic:\cvs\buildkit\mapserver-4.8.3\..\zlib-1.2.3 -DHAVE_STRING_H -DREGEX_MALLOC -DNEED_STRCASECMP -DNEED_STRNCASECMP -DNEED_STRLCAT -DUSE_POSTGIS -DWIN32 -D_WIN32 -DUSE_PROJ -DUSE_PROJ_API_H -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_GIF -DGD_HAS_GDIMAGEGIFPTR -DUSE_GD_FT -DGD_HAS_GETBITMAPFONT -DUSE_OGR -DUSE_WMS_SVR -DUSE_THREAD -DUSE_WMS_LYR -DUSE_MING_FLASH -DIGNORE_MISSING_DATA -DENABLE_STDERR_DEBUG -DUSE_GDAL -DUSE_WFS_SVR -DUSE_WFS_LYR -DUSE_WCS_SVR -DUSE_PDF -DUSE_GD_ANTIALIAS -DUSE_ICONV -DUSE_GEOS -DUSE_ZLIB -I../.. /DCOMPILE_DL=1 /c mapscript_wrap.c /Fomapscript_wrap.obj mapscript_wrap.c link /dll /debug /out:mapscript.dll mapscript_wrap.obj ../../mapserver_i.lib c:\cvs\buildkit\mapserver-4.8.3\..\gd-2.0.33/gd.lib c:\cvs\buildkit\mapserver-4.8.3\..\jpeg-6b/libjpeg.lib c:\cvs\buildkit\mapserver-4.8.3\..\libpng-1.2.8\projects\visualc71\Win32_LIB_Release\libpng.lib c:\cvs\buildkit\mapserver-4.8.3\..\zlib-1.2.3/zdll.lib c:\cvs\buildkit\mapserver-4.8.3\..\freetype-2.1.10/objs/freetype2110.lib c:\cvs\buildkit\mapserver-4.8.3\..\jpeg-6b/libjpeg.lib c:\cvs\buildkit\mapserver-4.8.3\..\proj-4.4.9/src/proj_i.lib c:\cvs\buildkit\mapserver-4.8.3\..\gdal-1.3.2/gdal_i.lib c:\cvs\buildkit\mapserver-4.8.3\..\gdal-1.3.2/gdal_i.lib c:\cvs\buildkit\mapserver-4.8.3\..\curl-7.15.0/libcurl.lib c:\cvs\buildkit\mapserver-4.8.3\..\ming-0.2a/src/libming.lib c:\cvs\buildkit\mapserver-4.8.3\..\PDFlib-Lite-6.0.2/libs/pdflib/Release_DLL/pdflib.lib "C:\Programmi\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Lib\WS2_32.Lib" c:\cvs\buildkit\mapserver-4.8.3\..\postgresql-8.1.2/src/interfaces/libpq/release/libpqdll.lib c:\cvs\buildkit\mapserver-4.8.3\..\libiconv-1.9.1\lib\iconv.lib c:\cvs\buildkit\mapserver-4.8.3\..\geos-2.2.2/source/geos.lib Microsoft (R) Incremental Linker Version 7.10.3077 Copyright (C) Microsoft Corporation. All rights reserved. csc /t:library /out:mapscript_csharp.dll *.cs Microsoft (R) Visual C# .NET Compiler version 7.10.3052.4 for Microsoft (R) .NET Framework version 1.1.4322 Copyright (C) Microsoft Corporation 2001-2002. All rights reserved. csc /r:mapscript_csharp.dll examples\shpdump.cs Microsoft (R) Visual C# .NET Compiler version 7.10.3052.4 for Microsoft (R) .NET Framework version 1.1.4322 Copyright (C) Microsoft Corporation 2001-2002. All rights reserved. csc /r:mapscript_csharp.dll examples\drawmap.cs Microsoft (R) Visual C# .NET Compiler version 7.10.3052.4 for Microsoft (R) .NET Framework version 1.1.4322 Copyright (C) Microsoft Corporation 2001-2002. All rights reserved. csc /r:mapscript_csharp.dll examples\shapeinfo.cs Microsoft (R) Visual C# .NET Compiler version 7.10.3052.4 for Microsoft (R) .NET Framework version 1.1.4322 Copyright (C) Microsoft Corporation 2001-2002. All rights reserved. cd ..\.. cd mapscript\java nmake /f makefile.vc mkdir edu\umn\gis\mapscript c:\cvs\buildkit\mapserver-4.8.3\..\SWIG-1.3.27\swig -java -package edu.umn.gis.mapscript -outdir edu/umn/gis/mapscript -o mapscript_wrap.c ../mapscript.i "C:\j2sdk1.4.2_06"\bin\javac edu\umn\gis\mapscript\*.java cl /MD -I"C:\j2sdk1.4.2_06"\include -I"C:\j2sdk1.4.2_06"\include\win32 -Ic:\cvs\buildkit\mapserver-4.8.3\..\gd-2.0.33 -Ic:\cvs\buildkit\mapserver-4.8.3\..\jpeg-6b -Ic:\cvs\buildkit\mapserver-4.8.3\..\proj-4.4.9/src -Ic:\cvs\buildkit\mapserver-4.8.3\..\regex-0.12 -Ic:\cvs\buildkit\mapserver-4.8.3\..\gdal-1.3.2/gcore -Ic:\cvs\buildkit\mapserver-4.8.3\..\gdal-1.3.2/alg -Ic:\cvs\buildkit\mapserver-4.8.3\..\gdal-1.3.2/ogr -Ic:\cvs\buildkit\mapserver-4.8.3\..\gdal-1.3.2/port -Ic:\cvs\buildkit\mapserver-4.8.3\..\gdal-1.3.2/ogr/ogrsf_frmts -Ic:\cvs\buildkit\mapserver-4.8.3\..\gdal-1.3.2/ogr -Ic:\cvs\buildkit\mapserver-4.8.3\..\gdal-1.3.2/port -Ic:\cvs\buildkit\mapserver-4.8.3\..\curl-7.15.0/include -Ic:\cvs\buildkit\mapserver-4.8.3\..\ming-0.2a/src -Ic:\cvs\buildkit\mapserver-4.8.3\..\ming-0.2a -Ic:\cvs\buildkit\mapserver-4.8.3\..\PDFlib-Lite-6.0.2/libs/pdflib -Ic:\cvs\buildkit\mapserver-4.8.3\..\postgresql-8.1.2/src/interfaces/libpq -Ic:\cvs\buildkit\mapserver-4.8.3\..\postgresql-8.1.2/src/include -Ic:\cvs\buildkit\mapserver-4.8.3\..\libiconv-1.9.1\include -Ic:\cvs\buildkit\mapserver-4.8.3\..\geos-2.2.2/source/headers -Ic:\cvs\buildkit\mapserver-4.8.3\..\zlib-1.2.3 -DHAVE_STRING_H -DREGEX_MALLOC -DNEED_STRCASECMP -DNEED_STRNCASECMP -DNEED_STRLCAT -DUSE_POSTGIS -DWIN32 -D_WIN32 -DUSE_PROJ -DUSE_PROJ_API_H -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_GIF -DGD_HAS_GDIMAGEGIFPTR -DUSE_GD_FT -DGD_HAS_GETBITMAPFONT -DUSE_OGR -DUSE_WMS_SVR -DUSE_THREAD -DUSE_WMS_LYR -DUSE_MING_FLASH -DIGNORE_MISSING_DATA -DENABLE_STDERR_DEBUG -DUSE_GDAL -DUSE_WFS_SVR -DUSE_WFS_LYR -DUSE_WCS_SVR -DUSE_PDF -DUSE_GD_ANTIALIAS -DUSE_ICONV -DUSE_GEOS -DUSE_ZLIB -DWIN32 -D_WIN32 /c mapscript_wrap.c /Fomapscript_wrap.obj mapscript_wrap.c link /dll /debug mapscript_wrap.obj c:\cvs\buildkit\mapserver-4.8.3\..\gd-2.0.33/gd.lib c:\cvs\buildkit\mapserver-4.8.3\..\jpeg-6b/libjpeg.lib c:\cvs\buildkit\mapserver-4.8.3\..\libpng-1.2.8\projects\visualc71\Win32_LIB_Release\libpng.lib c:\cvs\buildkit\mapserver-4.8.3\..\zlib-1.2.3/zdll.lib c:\cvs\buildkit\mapserver-4.8.3\..\freetype-2.1.10/objs/freetype2110.lib c:\cvs\buildkit\mapserver-4.8.3\..\jpeg-6b/libjpeg.lib c:\cvs\buildkit\mapserver-4.8.3\..\proj-4.4.9/src/proj_i.lib c:\cvs\buildkit\mapserver-4.8.3\..\gdal-1.3.2/gdal_i.lib c:\cvs\buildkit\mapserver-4.8.3\..\gdal-1.3.2/gdal_i.lib c:\cvs\buildkit\mapserver-4.8.3\..\curl-7.15.0/libcurl.lib c:\cvs\buildkit\mapserver-4.8.3\..\ming-0.2a/src/libming.lib c:\cvs\buildkit\mapserver-4.8.3\..\PDFlib-Lite-6.0.2/libs/pdflib/Release_DLL/pdflib.lib "C:\Programmi\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Lib\WS2_32.Lib" c:\cvs\buildkit\mapserver-4.8.3\..\postgresql-8.1.2/src/interfaces/libpq/release/libpqdll.lib c:\cvs\buildkit\mapserver-4.8.3\..\libiconv-1.9.1\lib\iconv.lib c:\cvs\buildkit\mapserver-4.8.3\..\geos-2.2.2/source/geos.lib ..\..\mapserver_i.lib /NODEFAULTLIB:"MSVCRTD" /NODEFAULTLIB:libcd /NODEFAULTLIB:libcmtd /NODEFAULTLIB:msvcrtd /NODEFAULTLIB:LIBC /DEBUG /def:..\..\mapserver.def /out:mapscript.dll /implib:mapscript_i.lib Microsoft (R) Incremental Linker Version 7.10.3077 Copyright (C) Microsoft Corporation. All rights reserved. "C:\j2sdk1.4.2_06"\bin\jar cf mapscript.jar edu cd ..\.. cd mapscript\php3 nmake /f makefile.vc cd ..\.. mkdir c:\cvs\buildkit\mapserver-4.8.3\..\bin xcopy /y /r /d /f libmap.dll c:\cvs\buildkit\mapserver-4.8.3\..\bin C:\cvs\buildkit\mapserver-4.8.3\libmap.dll -> C:\cvs\buildkit\bin\libmap.dll 1 File copiati copy *.exe c:\cvs\buildkit\mapserver-4.8.3\..\bin legend.exe mapserv.exe scalebar.exe shp2img.exe shptree.exe shptreevis.exe sortshp.exe tile4ms.exe 8 file copiati. mkdir c:\cvs\buildkit\mapserver-4.8.3\..\bin\mapscript\python xcopy /y /r /d /f .\mapscript\python\dist\*.zip c:\cvs\buildkit\mapserver-4.8.3\..\bin\mapscript\python C:\cvs\buildkit\mapserver-4.8.3\mapscript\python\dist\mapscript-4.8.3.win32.zip -> C:\cvs\buildkit\bin\mapscript\python\mapscript-4.8.3.win32.zip 1 File copiati mkdir c:\cvs\buildkit\mapserver-4.8.3\..\bin\mapscript\csharp xcopy /y /r /d /f .\mapscript\csharp\*.dll c:\cvs\buildkit\mapserver-4.8.3\..\bin\mapscript\csharp C:\cvs\buildkit\mapserver-4.8.3\mapscript\csharp\mapscript.dll -> C:\cvs\buildkit\bin\mapscript\csharp\mapscript.dll C:\cvs\buildkit\mapserver-4.8.3\mapscript\csharp\mapscript_csharp.dll -> C:\cvs\buildkit\bin\mapscript\csharp\mapscript_csharp.dll 2 File copiati xcopy /y /r /d /f .\mapscript\csharp\*.exe c:\cvs\buildkit\mapserver-4.8.3\..\bin\mapscript\csharp C:\cvs\buildkit\mapserver-4.8.3\mapscript\csharp\drawmap.exe -> C:\cvs\buildkit\bin\mapscript\csharp\drawmap.exe C:\cvs\buildkit\mapserver-4.8.3\mapscript\csharp\shapeinfo.exe -> C:\cvs\buildkit\bin\mapscript\csharp\shapeinfo.exe C:\cvs\buildkit\mapserver-4.8.3\mapscript\csharp\shpdump.exe -> C:\cvs\buildkit\bin\mapscript\csharp\shpdump.exe 3 File copiati xcopy /y /r /d /f .\mapscript\csharp\*.manifest c:\cvs\buildkit\mapserver-4.8.3\..\bin\mapscript\csharp 0 File copiati xcopy /y /r /d /f .\mapscript\csharp\*.config c:\cvs\buildkit\mapserver-4.8.3\..\bin\mapscript\csharp C:\cvs\buildkit\mapserver-4.8.3\mapscript\csharp\mapscript_csharp.dll.config -> C:\cvs\buildkit\bin\mapscript\csharp\mapscript_csharp.dll.config 1 File copiati mkdir c:\cvs\buildkit\mapserver-4.8.3\..\bin\mapscript\java xcopy /y /r /d /f .\mapscript\java\*.dll c:\cvs\buildkit\mapserver-4.8.3\..\bin\mapscript\java C:\cvs\buildkit\mapserver-4.8.3\mapscript\java\mapscript.dll -> C:\cvs\buildkit\bin\mapscript\java\mapscript.dll 1 File copiati xcopy /y /r /d /f .\mapscript\java\*.jar c:\cvs\buildkit\mapserver-4.8.3\..\bin\mapscript\java C:\cvs\buildkit\mapserver-4.8.3\mapscript\java\mapscript.jar -> C:\cvs\buildkit\bin\mapscript\java\mapscript.jar 1 File copiati mkdir c:\cvs\buildkit\mapserver-4.8.3\..\bin\mapscript\php xcopy /y /r /d /f .\mapscript\php3\*.dll c:\cvs\buildkit\mapserver-4.8.3\..\bin\mapscript\php C:\cvs\buildkit\mapserver-4.8.3\mapscript\php3\php_mapscript.dll -> C:\cvs\buildkit\bin\mapscript\php\php_mapscript.dll 1 File copiati ***************************************************** now the unable to load dll error went away, and I could finally start with C# map server progamming. But... this is a very simple sample code I did: //mapObj mapObj map = new mapObj(@"C:\ms4w\apps\sample\sample1.map"); Console.WriteLine("xmin: " + map.extent.minx.ToString() + ", ymin: " + map.extent.miny.ToString() + ", xmax: " + map.extent.maxx.ToString() + ", ymax: " + map.extent.maxy.ToString()); //shapefileObj shapefileObj shapefile = new shapefileObj(@"C:\temp\province",5); Console.WriteLine ("Num shapes = " + shapefile.numshapes); Console.WriteLine("Num Layers:" + map.numlayers); for (int i=0; i -------------- next part -------------- An HTML attachment was scrubbed... URL: From szekerest at GMAIL.COM Fri Jul 21 06:36:45 2006 From: szekerest at GMAIL.COM (Tamas Szekeres) Date: Fri, 21 Jul 2006 15:36:45 +0200 Subject: Again c# Unable to load DLL (mapscript) In-Reply-To: <5431443.post@talk.nabble.com> Message-ID: Hi, > But... > this is a very simple sample code I did: > > //mapObj > mapObj map = new mapObj(@"C:\ms4w\apps\sample\sample1.map"); > Console.WriteLine("xmin: " + map.extent.minx.ToString() + ", ymin: " + > map.extent.miny.ToString() + ", xmax: " + map.extent.maxx.ToString() + ", > ymax: " + map.extent.maxy.ToString()); > //shapefileObj > shapefileObj shapefile = new shapefileObj(@"C:\temp\province",5); > Console.WriteLine ("Num shapes = " + shapefile.numshapes); > Console.WriteLine("Num Layers:" + map.numlayers); > for (int i=0; i { > //layerObj > layerObj layer = map.getLayer(i); > Console.WriteLine("Layer [" + i + "] name: " + layer.name); > } > map.setImageType("jpeg"); > map.setSize(400,400); > //imageObj > imageObj image = map.draw(); > image.save(@"c:\temp\out4.jpg", map); > Console.WriteLine("Image URL = " + image.imageurl + "; Image path = " + > image.imagepath); > > and this is the output: > > xmin: 0, ymin: 0, xmax: 0, ymax: 0 > Num shapes = 0 > Num Layers:1 > Layer [0] name: province > Image URL = ; Image path = > > why the initial extent is 0 for each coordinate? (in the map file is not > so...) Could you post the mapfile you have used? > Why numShapes is 0? (it should be 103...) You have created shapefileObj with mode = 5. This setting will create a new empty shapefile by default. Use -1 as the mode parameter if you want to open an existing file. > why the generated blank map is not inserted in the imageurl and imagepath > properties of the mapObj? > Have you set WEB.IMAGEPATH and WEB.IMAGEURL in you map file? > Is there anywhere a C# API to MapServer? > What do you mean? For a description of the SWIG mapscript API visit: http://mapserver.gis.umn.edu/docs/reference/mapscript For the C# specific issues see: http://mapserver.gis.umn.edu/docs/howto/mapscriptcscompile > Whate are your future plans for using C# library in ASP .NET projects? > (somewhere in this forum I was reading that the library is not usable from > ASP .NET) > My plan is to have the C# API fully supported for the ASP.NET application models. To achieve this we should reconsider how mapserver supports the execution of the multiple threads. For more details see: http://mapserver.gis.umn.edu/docs/faq/thread_safety http://mapserver.gis.umn.edu/development/rfc/ms-rfc-15 These issues also apply to the other languages having multiple threads executed simultaneously. Best Regards, Tamas From szekerest at GMAIL.COM Fri Jul 21 06:53:11 2006 From: szekerest at GMAIL.COM (Tamas Szekeres) Date: Fri, 21 Jul 2006 15:53:11 +0200 Subject: c#-mapscript, queryByPoint In-Reply-To: <20060721083729.232510@gmx.net> Message-ID: Christian, You should set the classObj.template instead of the layerObj.template. An empty template file should be sufficient. How about your previous problem? I could not get your sample project for reproducing it. Best Regards, Tamas 2006/7/21, Christian Wilmes : > Hi All, > > I try to query a point-layer in my c#-mapscript application. For that I write a function in my class Layer (base-class is layerObj) which should give me back a feature. I'm sure the point-coordinates I give in the function exists in the layer. But I got no result from the query. I think the reason could be the template. I red, that I have to set that propertie. So I create just create a html-document and set the propertie to it. Is there something that have to be in the document or is a empty document enough? What else could be the reason for getting no results? > > > public class Layer : layerObj > : > : > public shapeObj QueryByPoint(Map map, pointObj point) > { > base.template = Environment.CurrentDirectory + @"\Query.html"; > > base.tolerance = 1; > int query = base.queryByPoint(map, point, mapscript.MS_SINGLE, 1); > int numRes = base.getNumResults(); > int open = base.open(); > resultCacheMemberObj result = base.getResult(query); > shapeObj shape = base.getFeature(result.shapeindex, result.tileindex); > base.close(); > > return shape; > } > } > > > Best Regards > Christian > -- > > > "Feel free" ? 10 GB Mailbox, 100 FreeSMS/Monat ... > Jetzt GMX TopMail testen: http://www.gmx.net/de/go/topmail > From bart_doggers at YAHOO.COM Fri Jul 21 06:38:44 2006 From: bart_doggers at YAHOO.COM (Albert Anderson) Date: Fri, 21 Jul 2006 06:38:44 -0700 Subject: creating my own image and using them as funcations?????? In-Reply-To: Message-ID: Hi, The question that I am asking is how can you load your own images in the html template w/out using mapserver drawing them? Like for zoom in, out, and etc..... I got my images created that I want. I dont know how to put that in the code. Does anyone have any suggestions? Thanks, Albert Steve Lime wrote: Albert: It's hard to visualize what you're after. Do you have a public site to check out? Steve >>> Albert Anderson 07/18/06 8:59 AM >>> Hi All, I created my own images for zooming in, out, and etc.... I dont understand why they dont load into my html template when I click the initialize button. I just look at the template and the images are there. The intialize button html is a post and the html template is a get. Cant I make and put my images in to make them work as navigation buttons? I am using a lunix machine with mapsever 4 on it. Could anyone help me. Thanks, Albert --------------------------------- See the all-new, redesigned Yahoo.com. Check it out. --------------------------------- Do you Yahoo!? Get on board. You're invited to try the new Yahoo! Mail Beta. -------------- next part -------------- An HTML attachment was scrubbed... URL: From pcorti at GMAIL.COM Fri Jul 21 07:05:07 2006 From: pcorti at GMAIL.COM (Paolo Corti) Date: Fri, 21 Jul 2006 07:05:07 -0700 Subject: Again c# Unable to load DLL (mapscript) In-Reply-To: Message-ID: Hi Tamas, thanks for your help nagyon koszonom!!! ;-) > Could you post the mapfile you have used? Maybe I am wrong, but I would swear that this is correct: MAP IMAGETYPE PNG EXTENT 233335 4090486 1318423 5122209 SIZE 400 300 SHAPEPATH "C:\cvs\data" IMAGECOLOR 255 255 255 LAYER NAME province DATA province STATUS OFF TYPE POLYGON CLASS NAME "Sample" STYLE COLOR 232 232 232 OUTLINECOLOR 32 32 32 END END END END > Why numShapes is 0? (it should be 103...) >You have created shapefileObj with mode = 5. This setting will create a new empty shapefile by default. Use -1 as the mode parameter if you want to open an existing file. you are right, I misunderstood the API and i placed 5 (it's a polygon shape). I wouldn't have thought that with mapserver you could create new shapes! (ArcIMS does not)... and i destroied my existing shape with 103 features :-) > why the generated blank map is not inserted in the imageurl and imagepath > properties of the mapObj? > Have you set WEB.IMAGEPATH and WEB.IMAGEURL in you map file? no I didn't - now I will carefully read the API before asking things on the forum. I didn't know that the API is just the same for php, c#, java... I thought every API is different, now I also understand why you where using SWIG > Is there anywhere a C# API to MapServer? > What do you mean? For a description of the SWIG mapscript API visit: http://mapserver.gis.umn.edu/docs/reference/mapscript For the C# specific issues see: http://mapserver.gis.umn.edu/docs/howto/mapscriptcscompile OK, now it's clear to me > Whate are your future plans for using C# library in ASP .NET projects? > (somewhere in this forum I was reading that the library is not usable from > ASP .NET) > My plan is to have the C# API fully supported for the ASP.NET application models. To achieve this we should reconsider how mapserver supports the execution of the multiple threads. For more details see: http://mapserver.gis.umn.edu/docs/faq/thread_safety http://mapserver.gis.umn.edu/development/rfc/ms-rfc-15 These issues also apply to the other languages having multiple threads executed simultaneously. Thanks again, last year when I checked mapserver I didn't get to know that a c# API is going to be implemented and I were thinking to implement a .NET API to make calls to the CGI interface. I guess your c# API is not using this approach, isnt it? by Paolo -- View this message in context: http://www.nabble.com/Again-c--Unable-to-load-DLL-%28mapscript%29-tf1975214.html#a5434223 Sent from the Mapserver - User forum at Nabble.com. From C.Wilmes at GMX.DE Fri Jul 21 07:41:44 2006 From: C.Wilmes at GMX.DE (Christian Wilmes) Date: Fri, 21 Jul 2006 16:41:44 +0200 Subject: c#-mapscript, queryByPoint In-Reply-To: Message-ID: Thanks Tamas, with the template in the classObj it works very well. Best Regards Christian -------- Original-Nachricht -------- Datum: Fri, 21 Jul 2006 15:53:11 +0200 Von: Tamas Szekeres An: MAPSERVER-USERS at LISTS.UMN.EDU Betreff: Re: [UMN_MAPSERVER-USERS] c#-mapscript, queryByPoint > Christian, > > You should set the classObj.template instead of the layerObj.template. > An empty template file should be sufficient. > > How about your previous problem? I could not get your sample project > for reproducing it. > > Best Regards, > > Tamas > > > 2006/7/21, Christian Wilmes : > > Hi All, > > > > I try to query a point-layer in my c#-mapscript application. For that I > write a function in my class Layer (base-class is layerObj) which should > give me back a feature. I'm sure the point-coordinates I give in the function > exists in the layer. But I got no result from the query. I think the > reason could be the template. I red, that I have to set that propertie. So I > create just create a html-document and set the propertie to it. Is there > something that have to be in the document or is a empty document enough? What > else could be the reason for getting no results? > > > > > > public class Layer : layerObj > > : > > : > > public shapeObj QueryByPoint(Map map, pointObj point) > > { > > base.template = Environment.CurrentDirectory + > @"\Query.html"; > > > > base.tolerance = 1; > > int query = base.queryByPoint(map, point, > mapscript.MS_SINGLE, 1); > > int numRes = base.getNumResults(); > > int open = base.open(); > > resultCacheMemberObj result = base.getResult(query); > > shapeObj shape = base.getFeature(result.shapeindex, > result.tileindex); > > base.close(); > > > > return shape; > > } > > } > > > > > > Best Regards > > Christian > > -- > > > > > > "Feel free" ? 10 GB Mailbox, 100 FreeSMS/Monat ... > > Jetzt GMX TopMail testen: http://www.gmx.net/de/go/topmail > > -- Echte DSL-Flatrate dauerhaft f?r 0,- Euro*. Nur noch kurze Zeit! "Feel free" mit GMX DSL: http://www.gmx.net/de/go/dsl From szekerest at GMAIL.COM Fri Jul 21 08:15:29 2006 From: szekerest at GMAIL.COM (Tamas Szekeres) Date: Fri, 21 Jul 2006 17:15:29 +0200 Subject: Again c# Unable to load DLL (mapscript) In-Reply-To: <5434223.post@talk.nabble.com> Message-ID: Hi, > > Maybe I am wrong, but I would swear that this is correct: > > MAP > IMAGETYPE PNG > EXTENT 233335 4090486 1318423 5122209 > SIZE 400 300 > SHAPEPATH "C:\cvs\data" > IMAGECOLOR 255 255 255 > LAYER > NAME province > DATA province > STATUS OFF > TYPE POLYGON > CLASS > NAME "Sample" > STYLE > COLOR 232 232 232 > OUTLINECOLOR 32 32 32 > END > END > END > END > Hmm, I have no idea, could you post your sample app and data in mail or to the bugzilla? > last year when I checked mapserver I didn't get to know that a c# API is > going to be implemented and I were thinking to implement a .NET API to make > calls to the CGI interface. I guess your c# API is not using this approach, > isnt it? > The C# interface uses the P/Invoke mechanism between the C# (mapscript_csharp.dll) and the C (mapscript.dll) interface part. Mapserver is working in-process to your application. Tamas From ollerery at ENGR.ORST.EDU Fri Jul 21 08:36:16 2006 From: ollerery at ENGR.ORST.EDU (Ryan Ollerenshaw) Date: Fri, 21 Jul 2006 08:36:16 -0700 Subject: recompiling PHP/Mapscript w/ SUPPORT=proj In-Reply-To: Message-ID: I was getting the following error in PHP: [MapServer Error]: loadProjection(): Projection support is not available So i changed some of the mapserver configuration options by adding: --with-proj=/usr/local --enable-runpath\ But i am still missing SUPPORTS=proj on my php_info() page, here is what i get: MapServer version 4.8.3 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=SVG SUPPORTS=FREETYPE INPUT=TIFF INPUT=EPPL7 INPUT=JPEG INPUT=SHAPEFILE I think that my problem is that i did not restart PHP after copying the new php_mapscript.so into the PHP extentions directory, could this be a source of the problem? if so i do not know how to restart PHP, when i restart apache with apachectl restart i get the error message: [warn] module php5_module is already loaded, skipping so how is it that i can restart php5_module? or is that even my problem? Thanks, -Ryan From rockwell_001 at YAHOO.COM Fri Jul 21 09:03:51 2006 From: rockwell_001 at YAHOO.COM (rock well) Date: Fri, 21 Jul 2006 09:03:51 -0700 Subject: CGI Qlayer,Qstring variables usage In-Reply-To: <6246727221874A4FB8D3F9BBC37D9BD5FB07EA@s-sp22.pca.state.mn.us> Message-ID: Hey david, Thanks for your reply, i tried this but it didnt work. I am going to give you the complete link that we are using. Actually we are trying to query a states layer from the shape file and display just the north dakota state. So the link we are using are http://localhost/scripts/mapserv.exe?MODE=map&MAP=c:/Inetpub/scripts/stateswms.map&CONTEXT=c:/Inetpub/wwwroot/mapserverdata/map_files/contextmap.xml&LAYERS=states&QLAYER=states&QITEM=state&QSTRING=('[state]'='ND') any suggestions please ... Thanks for your time and effort ... kris "Fawcett, David" wrote: Kris, This may not quite work, but it should be closer. Try something like: http://pathtomapserv.exe?MODE=itemnquerymap&LAYERS=layer1&QLAYER=layer1&QITEM=colname&QString=('[colname]'='value') David. -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of rock well Sent: Thursday, July 20, 2006 5:49 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] CGI Qlayer,Qstring variables usage Hello all, I was trying to query one of the layers from a shape file in the url, i am used map as the mode and gave the layer name for Qlayer, column name for Qitem and QString. Part of the URL looks like http://pathtomapserv.exe?MODE=map&LAYERS=layer1&QLAYER=layer1&QITEM=colname&QString=("colname=value") the map is displayed but it didnt filter the layer with the given querystring variables .... Is there something missing, can anyone suggest with something ... Thanks for your effort and time .... kris --------------------------------- Do you Yahoo!? Next-gen email? Have it all with the all-new Yahoo! Mail Beta. --------------------------------- Talk is cheap. Use Yahoo! Messenger to make PC-to-Phone calls. Great rates starting at 1?/min. -------------- next part -------------- An HTML attachment was scrubbed... URL: From mreyes at SISCAT.COM.AR Fri Jul 21 10:44:00 2006 From: mreyes at SISCAT.COM.AR (Reyes, Mariano) Date: Fri, 21 Jul 2006 14:44:00 -0300 Subject: Please help me with buffer in JavaMapscript!!!! Message-ID: Hi, I have a problem with shapeObj.buffer( int i ), when call buffer I get this error: Exception in thread "main" java.lang.UnknownError: GEOS support is not available My code is: .... pointObj punto = new pointObj( 250, 250, 0 ); lineObj line = new lineObj(); line.add(punto); shapeObj shape = new shapeObj( mapscriptConstants.MS_SHP_ARCM ); shape.add( line ); shapeObj buff = shape.buffer( 200 ); .... Then I try compiler mapserver with geos, and in make test of mapscript/java I have this message of error: # # An unexpected error has been detected by HotSpot Virtual Machine: # # SIGSEGV (0xb) at pc=0x400a89b0, pid=30009, tid=1075228800 # # Java VM: Java HotSpot (TM) Client VM ( 1.4.2_11-b06 mixed mode ) # Problematic frame: # C [libc.so.6+0x729b0] .... Please help me!!!! Thank You!!!! Mariano Reyes Buenos Aires, Argentina -------------- next part -------------- An HTML attachment was scrubbed... URL: From bart_doggers at YAHOO.COM Fri Jul 21 06:38:50 2006 From: bart_doggers at YAHOO.COM (Albert Anderson) Date: Fri, 21 Jul 2006 06:38:50 -0700 Subject: creating my own image and using them as funcations?????? In-Reply-To: Message-ID: Hi, The question that I am asking is how can you load your own images in the html template w/out using mapserver drawing them? Like for zoom in, out, and etc..... I got my images created that I want. I dont know how to put that in the code. Does anyone have any suggestions? Thanks, Albert Steve Lime wrote: Albert: It's hard to visualize what you're after. Do you have a public site to check out? Steve >>> Albert Anderson 07/18/06 8:59 AM >>> Hi All, I created my own images for zooming in, out, and etc.... I dont understand why they dont load into my html template when I click the initialize button. I just look at the template and the images are there. The intialize button html is a post and the html template is a get. Cant I make and put my images in to make them work as navigation buttons? I am using a lunix machine with mapsever 4 on it. Could anyone help me. Thanks, Albert --------------------------------- See the all-new, redesigned Yahoo.com. Check it out. --------------------------------- Do you Yahoo!? Next-gen email? Have it all with the all-new Yahoo! Mail Beta. -------------- next part -------------- An HTML attachment was scrubbed... URL: From Steve.Lime at DNR.STATE.MN.US Fri Jul 21 11:54:35 2006 From: Steve.Lime at DNR.STATE.MN.US (Steve Lime) Date: Fri, 21 Jul 2006 13:54:35 -0500 Subject: creating my own image and using them as funcations?????? In-Reply-To: <20060721133850.85759.qmail@web55703.mail.re3.yahoo.com> Message-ID: That's easy, just link to them (assuming they are on web server someplace). The key is that you'll need to use full path in the URLs. Let's say your setup is like so: web root: /usr/local/apache/htdocs graphics are in: /usr/local/apache/htdocs/graphics Then you could display an image in your template like so: Steve >>> Albert Anderson 7/21/2006 8:38:50 AM >>> Hi, The question that I am asking is how can you load your own images in the html template w/out using mapserver drawing them? Like for zoom in, out, and etc..... I got my images created that I want. I dont know how to put that in the code. Does anyone have any suggestions? Thanks, Albert Steve Lime wrote: Albert: It's hard to visualize what you're after. Do you have a public site to check out? Steve >>> Albert Anderson 07/18/06 8:59 AM >>> Hi All, I created my own images for zooming in, out, and etc.... I dont understand why they dont load into my html template when I click the initialize button. I just look at the template and the images are there. The intialize button html is a post and the html template is a get. Cant I make and put my images in to make them work as navigation buttons? I am using a lunix machine with mapsever 4 on it. Could anyone help me. Thanks, Albert --------------------------------- See the all-new, redesigned Yahoo.com. Check it out. --------------------------------- Do you Yahoo!? Next-gen email? Have it all with the all-new Yahoo! Mail Beta. From Steve.Lime at DNR.STATE.MN.US Fri Jul 21 11:56:54 2006 From: Steve.Lime at DNR.STATE.MN.US (Steve Lime) Date: Fri, 21 Jul 2006 13:56:54 -0500 Subject: CGI Qlayer,Qstring variables usage In-Reply-To: <20060721160351.24162.qmail@web34201.mail.mud.yahoo.com> Message-ID: If you're doing just straight string equality tests then just do: qlayer=states&qitem=state&qstring=ND No need for funky qstrings in that case. Steve >>> rock well 7/21/2006 11:03:51 AM >>> Hey david, Thanks for your reply, i tried this but it didnt work. I am going to give you the complete link that we are using. Actually we are trying to query a states layer from the shape file and display just the north dakota state. So the link we are using are http://localhost/scripts/mapserv.exe?MODE=map&MAP=c:/Inetpub/scripts/stateswms.map&CONTEXT=c:/Inetpub/wwwroot/mapserverdata/map_files/contextmap.xml&LAYERS=states&QLAYER=states&QITEM=state&QSTRING=('[state]'='ND') any suggestions please ... Thanks for your time and effort ... kris "Fawcett, David" wrote: Kris, This may not quite work, but it should be closer. Try something like: http://pathtomapserv.exe?MODE=itemnquerymap&LAYERS=layer1&QLAYER=layer1&QITEM=colname&QString=('[colname]'='value') David. -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of rock well Sent: Thursday, July 20, 2006 5:49 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] CGI Qlayer,Qstring variables usage Hello all, I was trying to query one of the layers from a shape file in the url, i am used map as the mode and gave the layer name for Qlayer, column name for Qitem and QString. Part of the URL looks like http://pathtomapserv.exe?MODE=map&LAYERS=layer1&QLAYER=layer1&QITEM=colname&QString=("colname=value") the map is displayed but it didnt filter the layer with the given querystring variables .... Is there something missing, can anyone suggest with something ... Thanks for your effort and time .... kris --------------------------------- Do you Yahoo!? Next-gen email? Have it all with the all-new Yahoo! Mail Beta. --------------------------------- Talk is cheap. Use Yahoo! Messenger to make PC-to-Phone calls. Great rates starting at 1?/min. From punkish at EIDESIS.ORG Fri Jul 21 11:49:11 2006 From: punkish at EIDESIS.ORG (P Kishor) Date: Fri, 21 Jul 2006 13:49:11 -0500 Subject: creating my own image and using them as funcations?????? In-Reply-To: <20060721133850.85759.qmail@web55703.mail.re3.yahoo.com> Message-ID: I am going to assume you are not asking for... If you have already created your own images, you have done what MapServer would do. So, why use MapServer at all? Unless you somehow want to merge MapServer's output with your images... which may be another can'o'worms altogether. On 7/21/06, Albert Anderson wrote: > Hi, > The question that I am asking is how can you load your own images in the > html template w/out using mapserver drawing them? Like for zoom in, out, > and etc..... I got my images created that I want. I dont know how to put > that in the code. Does anyone have any suggestions? > > Thanks, > Albert > > Steve Lime wrote: > Albert: It's hard to visualize what you're after. Do you have a public site > to check out? > > Steve > > >>> Albert Anderson 07/18/06 8:59 AM >>> > Hi All, > > I created my own images for zooming in, out, and etc.... I dont understand > why they dont load into my html template when I click the initialize button. > I just look at the template and the images are there. The intialize button > html is a post and the html template is a get. Cant I make and put my images > in to make them work as navigation buttons? I am using a lunix machine with > mapsever 4 on it. Could anyone help me. > > Thanks, > Albert > > > --------------------------------- > See the all-new, redesigned Yahoo.com. Check it out. > > > > > ________________________________ > Do you Yahoo!? > Next-gen email? Have it all with the all-new Yahoo! Mail Beta. > > -- Puneet Kishor http://punkish.eidesis.org/ Nelson Inst. for Env. Studies, UW-Madison http://www.ies.wisc.edu/ Open Source Geospatial Foundation https://edu.osgeo.org/ From bart_doggers at YAHOO.COM Fri Jul 21 12:04:02 2006 From: bart_doggers at YAHOO.COM (Albert Anderson) Date: Fri, 21 Jul 2006 12:04:02 -0700 Subject: creating my own image and using them as funcations?????? In-Reply-To: Message-ID: Hi, I figure out my images. Does anyone have a java script for using a image for panning. I have images set for the corners of my map. I want to use them to pan. Anyother question, is there a java script for images to zoom-in and out? One more question, I have a refresh button and pan radio button, then we I click refresh to take a layer off it moves the projective image. Why? I Thanks, Albert P Kishor wrote: I am going to assume you are not asking for... If you have already created your own images, you have done what MapServer would do. So, why use MapServer at all? Unless you somehow want to merge MapServer's output with your images... which may be another can'o'worms altogether. On 7/21/06, Albert Anderson wrote: > Hi, > The question that I am asking is how can you load your own images in the > html template w/out using mapserver drawing them? Like for zoom in, out, > and etc..... I got my images created that I want. I dont know how to put > that in the code. Does anyone have any suggestions? > > Thanks, > Albert > > Steve Lime wrote: > Albert: It's hard to visualize what you're after. Do you have a public site > to check out? > > Steve > > >>> Albert Anderson 07/18/06 8:59 AM >>> > Hi All, > > I created my own images for zooming in, out, and etc.... I dont understand > why they dont load into my html template when I click the initialize button. > I just look at the template and the images are there. The intialize button > html is a post and the html template is a get. Cant I make and put my images > in to make them work as navigation buttons? I am using a lunix machine with > mapsever 4 on it. Could anyone help me. > > Thanks, > Albert > > > --------------------------------- > See the all-new, redesigned Yahoo.com. Check it out. > > > > > ________________________________ > Do you Yahoo!? > Next-gen email? Have it all with the all-new Yahoo! Mail Beta. > > -- Puneet Kishor http://punkish.eidesis.org/ Nelson Inst. for Env. Studies, UW-Madison http://www.ies.wisc.edu/ Open Source Geospatial Foundation https://edu.osgeo.org/ --------------------------------- See the all-new, redesigned Yahoo.com. Check it out. --------------------------------- Yahoo! Messenger with Voice. Make PC-to-Phone Calls to the US (and 30+ countries) for 2?/min or less. -------------- next part -------------- An HTML attachment was scrubbed... URL: From jarg58 at GMAIL.COM Fri Jul 21 13:28:34 2006 From: jarg58 at GMAIL.COM (Alejandro Rico) Date: Fri, 21 Jul 2006 15:28:34 -0500 Subject: Please help me with buffer in JavaMapscript!!!! In-Reply-To: <5341EB12706351489DEFADBFEF06CC68412E2B@mercurio.sc.com> Message-ID: Hi !!! try to put in your /etc/ld.so.conf the line /usr/local/lib and then run ldconfig, this let mapserver find the libraries needed to execute properly. On 7/21/06, Reyes, Mariano wrote: > > Hi, > > I have a problem with shapeObj.buffer( int i ), when call buffer I get > this error: > > > > Exception in thread "main" java.lang.UnknownError: GEOS support is not > available > > > > My code is: > > > > .... > > > > pointObj punto = new pointObj( 250, 250, 0 ); > > lineObj line = new lineObj(); > > line.add(punto); > > shapeObj shape = new shapeObj( mapscriptConstants.MS_SHP_ARCM ); > > shape.add( line ); > > shapeObj buff = shape.buffer( 200 ); > > > > .... > > > > Then I try compiler mapserver with geos, and in make test of > mapscript/java I have this message of error: > > > > # > > # An unexpected error has been detected by HotSpot Virtual Machine: > > # > > # SIGSEGV (0xb) at pc=0x400a89b0, pid=30009, tid=1075228800 > > # > > # Java VM: Java HotSpot (TM) Client VM ( 1.4.2_11-b06 mixed mode ) > > # Problematic frame: > > # C [libc.so.6+0x729b0] > > > > .... > > > > Please help me!!!! > > Thank You!!!! > > Mariano Reyes > > Buenos Aires, Argentina > -- Alejandro Rico -------------- next part -------------- An HTML attachment was scrubbed... URL: From mreyes at SISCAT.COM.AR Fri Jul 21 13:43:15 2006 From: mreyes at SISCAT.COM.AR (Reyes, Mariano) Date: Fri, 21 Jul 2006 17:43:15 -0300 Subject: Please help me with buffer in JavaMapscript!!!! Message-ID: Hi, I have ld.so.conf with line /usr/local/lib Thank anyhow Mariano Reyes Buenos Aires, Argentina _____ De: Alejandro Rico [mailto:jarg58 at gmail.com] Enviado el: viernes, 21 de julio de 2006 17:29 Para: Reyes, Mariano CC: MAPSERVER-USERS at lists.umn.edu Asunto: Re: [UMN_MAPSERVER-USERS] Please help me with buffer in JavaMapscript!!!! Hi !!! try to put in your /etc/ld.so.conf the line /usr/local/lib and then run ldconfig, this let mapserver find the libraries needed to execute properly. On 7/21/06, Reyes, Mariano > wrote: Hi, I have a problem with shapeObj.buffer( int i ), when call buffer I get this error: Exception in thread "main" java.lang.UnknownError: GEOS support is not available My code is: .... pointObj punto = new pointObj( 250, 250, 0 ); lineObj line = new lineObj(); line.add(punto); shapeObj shape = new shapeObj( mapscriptConstants.MS_SHP_ARCM ); shape.add( line ); shapeObj buff = shape.buffer( 200 ); .... Then I try compiler mapserver with geos, and in make test of mapscript/java I have this message of error: # # An unexpected error has been detected by HotSpot Virtual Machine: # # SIGSEGV (0xb) at pc=0x400a89b0, pid=30009, tid=1075228800 # # Java VM: Java HotSpot (TM) Client VM ( 1.4.2_11-b06 mixed mode ) # Problematic frame: # C [libc.so.6+0x729b0] .... Please help me!!!! Thank You!!!! Mariano Reyes Buenos Aires, Argentina -- Alejandro Rico -------------- next part -------------- An HTML attachment was scrubbed... URL: From jarg58 at GMAIL.COM Fri Jul 21 13:55:36 2006 From: jarg58 at GMAIL.COM (Alejandro Rico) Date: Fri, 21 Jul 2006 15:55:36 -0500 Subject: Adding Labels to a Vector Map with Java Mapscript Message-ID: Hi !!! I'm working with a vector map made in Java Mapscript, with 2 layers, and i need that one of them has labels to identify a way, but when the program runs, mapserver draws a very little ununderstandable labels, and it doesn't take the font size change. Someone can help me with this??? thanks. here's my code: Capa = new layerObj(Mapa); Capa.setName("Vias"); Capa.setType(mapscriptConstants.MS_LAYER_LINE); Capa.setStatus(mapscriptConstants.MS_ON); String Comando = new String("the_geom FROM (select gid, the_geom, nomb_comun||' '||nomvial as Nombre FROM "+Localidad+" WHERE codigo IN ("+CodigoVia+","+CodigoInterseccion+")) AS ViasMapa USING UNIQUE gid USING SRID=-1"); Capa.setData(Comando); Capa.setLabelitem("Nombre"); Capa.setConnection("user=geotrans dbname=Geotrans host=localhost"); Capa.setConnectiontype(mapscriptConstants.MS_POSTGIS); Clase = new classObj(Capa); Estilo = new styleObj(Clase); Estilo.setColor(new colorObj(255,0,0,0)); labelObj Etiquetas = new labelObj(); Etiquetas.setSize(18); Etiquetas.setColor(new colorObj(0,255,255,0)); Etiquetas.setType(mapscriptConstants.MS_TRUETYPE); Etiquetas.setAntialias(mapscriptConstants.MS_TRUE); Etiquetas.setPosition(mapscriptConstants.MS_CL); Etiquetas.setPartials(mapscriptConstants.MS_FALSE); Etiquetas.setMindistance(300); Etiquetas.setFont("vera"); Clase.setLabel(Etiquetas); Mapa.draw ().save("/usr/local/tomcat/webapps/geotrans/Mapas/mapaAcc",null); -- Alejandro Rico -------------- next part -------------- An HTML attachment was scrubbed... URL: From bart_doggers at YAHOO.COM Fri Jul 21 14:41:45 2006 From: bart_doggers at YAHOO.COM (Albert Anderson) Date: Fri, 21 Jul 2006 14:41:45 -0700 Subject: panning, zoom in, zoom out questions???????????????????????????????? Message-ID: Hi, I am using radio buttons of panning, zoom in, and zoom out. Also a refresh button. When I have the pan selected, uncheck a layer, and click refresh my projective image pans se foward. Its not supposed to do that. It should just take off the layer I want uncheck and leave the image alone. Do you have an suggestions for me? Thanks, Albert --------------------------------- Yahoo! Messenger with Voice. Make PC-to-Phone Calls to the US (and 30+ countries) for 2?/min or less. -------------- next part -------------- An HTML attachment was scrubbed... URL: From szekerest at GMAIL.COM Fri Jul 21 14:47:24 2006 From: szekerest at GMAIL.COM (Tamas Szekeres) Date: Fri, 21 Jul 2006 23:47:24 +0200 Subject: CSharp-Mapscript: setSymbolSet doesn't work?! In-Reply-To: <20060720143413.233380@gmx.net> Message-ID: Christian, You have to set the symbol of the styleObj as: myStyle.symbolname = "mySymbol"; myStyle.symbol = myMap.symbolset.index("mySymbol"); I consider this issue is a bug in mapscript so added: http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=1837 Best Regards, Tamas 2006/7/20, Christian Wilmes : > Hi, > > I could not find a solu?tion for solving my problem. So I created a simple Exampels with VS2005. The examples uses a Point-Shape which is together with everything else in the zip-File. I tried it out with new Layer(myMap) and with the myMap.insert method. Both of them doesn't work. > > Best Regards > Christian > From szekerest at GMAIL.COM Fri Jul 21 15:04:00 2006 From: szekerest at GMAIL.COM (Tamas Szekeres) Date: Sat, 22 Jul 2006 00:04:00 +0200 Subject: C#-Mapscript: Bug in mapObj.insertLayer() In-Reply-To: <20060719102137.235930@gmx.net> Message-ID: Added http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=1838 Tamas 2006/7/19, Christian Wilmes : > Tamas, > > I didn't test the bug very often, but the Layer which shoult be insert in the map isn't there after calling the method. Instead of it another Layer is twice times in the map. I don't know exactly which of the other Layers it is. > > Best Regards > Christian > > -------- Original-Nachricht -------- > Datum: Wed, 19 Jul 2006 01:03:48 +0200 > Von: Tamas Szekeres > An: MAPSERVER-USERS at LISTS.UMN.EDU > Betreff: Re: [UMN_MAPSERVER-USERS] C#-Mapscript: Bug in mapObj.insertLayer() > > > Christian, > > > > You are right, a bug report should be posted accordingly. > > Good catch! > > > > How this problem results in error for you? > > > > Tamas > > > > > > > > 2006/7/18, Christian Wilmes : > > > Hi All, > > > > > > I think there is a bug in the method for mapObj.insertLayer(layerObj > > layer, int index). It only works for index = -1. > > > > > > I think reason for that might be in mapobject.c in the function > > msInsertLayerm, line 525: > > > > > > map->layers[map->numlayers].index = nIndex; > > > > > > > > > > > > Is it possible, that something like > > > > > > map->layers[nIndex].index = nIndex; > > > > > > is correct? > > > > > > > > > Best Regards > > > Christian > > > -- > > > > > > > > > Echte DSL-Flatrate dauerhaft f?r 0,- Euro*! > > > "Feel free" mit GMX DSL! http://www.gmx.net/de/go/dsl > > > > > -- > > > Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen! > Ideal f?r Modem und ISDN: http://www.gmx.net/de/go/smartsurfer > From punkish at EIDESIS.ORG Fri Jul 21 14:53:18 2006 From: punkish at EIDESIS.ORG (P Kishor) Date: Fri, 21 Jul 2006 16:53:18 -0500 Subject: panning, zoom in, zoom out questions???????????????????????????????? In-Reply-To: <20060721214145.29391.qmail@web55710.mail.re3.yahoo.com> Message-ID: Albert, On 7/21/06, Albert Anderson wrote: > Hi, > > I am using radio buttons of panning, zoom in, and zoom out. Also a refresh > button. When I have the pan selected, uncheck a layer, and click refresh my > projective image pans se foward. Its not supposed to do that. It should > just take off the layer I want uncheck and leave the image alone. Do you > have an suggestions for me? Assuming you are still working with the MapServer tutorial demo, the radio buttons just select the action you want to perform (think of it as a "runmode"), while the refresh button actually sends the request back to the server to perform the selected action. The action itself is made up of two major components -- what to draw (the layers), and what area to draw (the area of interest). The "pan" "zoomin" etc are just the latter portion of the action... the "what area to draw" part. If you uncheck a layer and click the refresh button in the application, that layer will be removed from the image, and the "what to draw" will depend upon whether you have chosen "pan" or "zoomin," etc. However, don't use the browser's refresh button, because that won't send back your choices... instead, that will send back the choices from the previous GET. I have a few suggestions -- 1. Could you give us a link to your application so we may better understand your problem? Your message is not entirely clear, at least to me. 2. And, take off those extra ??? in the subject line. They just distract, and don't make your question any more urgent than it is. Hope this helps. -- Puneet Kishor http://punkish.eidesis.org/ Nelson Inst. for Env. Studies, UW-Madison http://www.ies.wisc.edu/ Open Source Geospatial Foundation https://edu.osgeo.org/ From bart_doggers at YAHOO.COM Fri Jul 21 13:22:24 2006 From: bart_doggers at YAHOO.COM (Albert Anderson) Date: Fri, 21 Jul 2006 13:22:24 -0700 Subject: panning and zoomin and out, and ect.................. Message-ID: Hi, I figure out my images. Does anyone have a _java script for using a image for panning. I have images set for the corners of my map. I want to use them to pan. Anyother question, is there a _java script for images to zoom-in and out? One more question, I have a refresh button and pan radio button, then we I click refresh to take a layer off it moves the projective image. Why? But when I am on zoomin radio button and click refresh it acts like its panning? Why? Thanks, Albert __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From jvanulde at NRCAN.GC.CA Fri Jul 21 15:57:26 2006 From: jvanulde at NRCAN.GC.CA (Van Ulden, Joost) Date: Fri, 21 Jul 2006 18:57:26 -0400 Subject: MapServer SLD RasterSymbolizer Message-ID: Hi all, I am unsure how the raster symbolizer is supposed to work in MapServer. Do I create one Rule in the SLD with one ColorMap that has one or more ColorMapEntries? Or can I create a rule for each ColorMapEntry? Either way works (works using a filter too!!!) but ColorMapEntries can't be given a name. It is preferable from my point of view to create a rule for each ColorMapEntry so that a decent legend can be generated. Thoughts anyone? Joost From tfagin at COORDINATESOLUTIONS.COM Fri Jul 21 16:20:50 2006 From: tfagin at COORDINATESOLUTIONS.COM (Todd Fagin) Date: Fri, 21 Jul 2006 18:20:50 -0500 Subject: problems drawing highway symbols Message-ID: Greetings list, I am quite new to MapServer, so please bear with me on this one. Currently, I have a layer called highways and I am attempting to label each highway with an appropriate highway symbol. I have both gifs and pngs of the symbols I want to use and I am borrowing code from a map file that I know has worked in the past. I have attempted to do this several different ways. The first method receives an error that states: "Attempted to read or write protected memory. This is often an indication that other memory is corrupt." This is using the code that has worked in a previous map file (I do not know what version of MapServer was used, though. I am using the latest version). Below is an example of what I am doing in the map file: CLASS # Interstate Anno MINSCALE 850000 SYMBOL "interstate.png" EXPRESSION "IS" COLOR 0 0 0 LABEL TYPE BITMAP MINDISTANCE 200 COLOR 255 255 255 SIZE tiny POSITION CC buffer 4 END END I know that the problem is the interstate.png because when I comment that one line out, everything works (except, I do not get my symbol, of course). I have attempted to change the permissions on the file, the directory in which it is in, etc., but to no avail. I have also tried an alternative method in which I create a symbol in the symbol file and reference it. Here is what I have done: SYMBOL NAME "Interstate" TYPE PIXMAP IMAGE "interstate.png" END When I reference this symbol in the symbol file, my map builds without any errors, but my symbols still do not display. Any suggestions would be greatly, greatly appreciated. Thank you, Todd Fagin Coordinate Solutions, Inc. 501 N.E. 15th St. Oklahoma City, OK 73104 405.246.9396 (Voice) 405.227.0781 (Fax) -------------- next part -------------- An HTML attachment was scrubbed... URL: From umberto.nicoletti at GMAIL.COM Sat Jul 22 02:29:25 2006 From: umberto.nicoletti at GMAIL.COM (Umberto Nicoletti) Date: Sat, 22 Jul 2006 11:29:25 +0200 Subject: Adding Labels to a Vector Map with Java Mapscript In-Reply-To: Message-ID: Can you post a sample generated image with only this layer on and your fontset file? You could also try to remove mindistance and to set the layer's status to MS_DEFAULT. Regards, Umberto On 7/21/06, Alejandro Rico wrote: > Hi !!! > > I'm working with a vector map made in Java Mapscript, with 2 layers, and i > need that one of them has labels to identify a way, but when the program > runs, mapserver draws a very little ununderstandable labels, and it doesn't > take the font size change. Someone can help me with this??? thanks. > > here's my code: > > Capa = new layerObj(Mapa); > Capa.setName("Vias"); > Capa.setType(mapscriptConstants.MS_LAYER_LINE); > Capa.setStatus(mapscriptConstants.MS_ON ); > String Comando = new String("the_geom FROM (select gid, > the_geom, nomb_comun||' '||nomvial as Nombre FROM "+Localidad+" WHERE codigo > IN ("+CodigoVia+","+CodigoInterseccion+")) AS ViasMapa > USING UNIQUE gid USING SRID=-1"); > Capa.setData(Comando); > Capa.setLabelitem("Nombre"); > Capa.setConnection("user=geotrans dbname=Geotrans > host=localhost"); > Capa.setConnectiontype (mapscriptConstants.MS_POSTGIS); > Clase = new classObj(Capa); > Estilo = new styleObj(Clase); > Estilo.setColor(new colorObj(255,0,0,0)); > labelObj Etiquetas = new labelObj(); > Etiquetas.setSize(18); > Etiquetas.setColor(new colorObj(0,255,255,0)); > Etiquetas.setType(mapscriptConstants.MS_TRUETYPE); > Etiquetas.setAntialias(mapscriptConstants.MS_TRUE ); > Etiquetas.setPosition(mapscriptConstants.MS_CL); > Etiquetas.setPartials(mapscriptConstants.MS_FALSE); > Etiquetas.setMindistance(300); > Etiquetas.setFont("vera"); > Clase.setLabel(Etiquetas); > > Mapa.draw().save("/usr/local/tomcat/webapps/geotrans/Mapas/mapaAcc",null); > -- > Alejandro Rico From umberto.nicoletti at GMAIL.COM Sat Jul 22 02:30:38 2006 From: umberto.nicoletti at GMAIL.COM (Umberto Nicoletti) Date: Sat, 22 Jul 2006 11:30:38 +0200 Subject: Please help me with buffer in JavaMapscript!!!! In-Reply-To: <5341EB12706351489DEFADBFEF06CC68412E53@mercurio.sc.com> Message-ID: This issue has been fixed very recently. Try 4.8.4 or latest cvs. Umberto On 7/21/06, Reyes, Mariano wrote: > > > > > Hi, > > I have ld.so.conf with line /usr/local/lib > > > > Thank anyhow > > > > Mariano Reyes > > Buenos Aires, Argentina > > > > ________________________________ > > > De: Alejandro Rico [mailto:jarg58 at gmail.com] > Enviado el: viernes, 21 de julio de 2006 17:29 > Para: Reyes, Mariano > CC: MAPSERVER-USERS at lists.umn.edu > Asunto: Re: [UMN_MAPSERVER-USERS] Please help me with buffer in > JavaMapscript!!!! > > > > > Hi !!! > > try to put in your /etc/ld.so.conf the line /usr/local/lib > > and then run ldconfig, this let mapserver find the libraries needed to > execute properly. > > > > > > On 7/21/06, Reyes, Mariano wrote: > > > > > Hi, > > I have a problem with shapeObj.buffer( int i ), when call buffer I get this > error: > > > > Exception in thread "main" java.lang.UnknownError: GEOS support is not > available > > > > My code is: > > > > .... > > > > pointObj punto = new pointObj( 250, 250, 0 ); > > lineObj line = new lineObj(); > > line.add(punto); > > shapeObj shape = new shapeObj( mapscriptConstants.MS_SHP_ARCM ); > > shape.add( line ); > > shapeObj buff = shape.buffer( 200 ); > > > > .... > > > > Then I try compiler mapserver with geos, and in make test of mapscript/java > I have this message of error: > > > > # > > # An unexpected error has been detected by HotSpot Virtual Machine: > > # > > # SIGSEGV (0xb) at pc=0x400a89b0, pid=30009, tid=1075228800 > > # > > # Java VM: Java HotSpot (TM) Client VM ( 1.4.2_11-b06 mixed mode ) > > # Problematic frame: > > # C [libc.so.6+0x729b0] > > > > .... > > > > Please help me!!!! > > Thank You!!!! > > Mariano Reyes > > Buenos Aires, Argentina > > > > > -- > Alejandro Rico > From Tom.Kralidis at EC.GC.CA Sat Jul 22 08:01:30 2006 From: Tom.Kralidis at EC.GC.CA (Kralidis,Tom [Burlington]) Date: Sat, 22 Jul 2006 11:01:30 -0400 Subject: MapServer SLD RasterSymbolizer Message-ID: The OGC:SLD 1.0.0 schema allows for one ColorMap element with 0 or more ColorMapEntry elements. MapServer typically picks up Rule/Name and applies them as a legend title. For rasters, because of the way the schema is defined, I think MapServer should be picking up ColorMapEntry/@label when doing raster legends, but then what happens when someone creates a Rule/Name value earlier? ..Tom -----Original Message----- From: UMN MapServer Users List on behalf of Van Ulden, Joost Sent: Fri 21-Jul-06 18:57 To: MAPSERVER-USERS at lists.umn.edu Cc: Subject: [UMN_MAPSERVER-USERS] MapServer SLD RasterSymbolizer Hi all, I am unsure how the raster symbolizer is supposed to work in MapServer. Do I create one Rule in the SLD with one ColorMap that has one or more ColorMapEntries? Or can I create a rule for each ColorMapEntry? Either way works (works using a filter too!!!) but ColorMapEntries can't be given a name. It is preferable from my point of view to create a rule for each ColorMapEntry so that a decent legend can be generated. Thoughts anyone? Joost From Tom.Kralidis at EC.GC.CA Sat Jul 22 08:20:22 2006 From: Tom.Kralidis at EC.GC.CA (Kralidis,Tom [Burlington]) Date: Sat, 22 Jul 2006 11:20:22 -0400 Subject: MapServer SLD RasterSymbolizer Message-ID: Sorry, meant one ColorMap per Rule :) -----Original Message----- From: UMN MapServer Users List on behalf of Kralidis,Tom [Burlington] Sent: Sat 22-Jul-06 11:01 To: MAPSERVER-USERS at LISTS.UMN.EDU Cc: Subject: Re: [UMN_MAPSERVER-USERS] MapServer SLD RasterSymbolizer The OGC:SLD 1.0.0 schema allows for one ColorMap element with 0 or more ColorMapEntry elements. MapServer typically picks up Rule/Name and applies them as a legend title. For rasters, because of the way the schema is defined, I think MapServer should be picking up ColorMapEntry/@label when doing raster legends, but then what happens when someone creates a Rule/Name value earlier? ..Tom -----Original Message----- From: UMN MapServer Users List on behalf of Van Ulden, Joost Sent: Fri 21-Jul-06 18:57 To: MAPSERVER-USERS at lists.umn.edu Cc: Subject: [UMN_MAPSERVER-USERS] MapServer SLD RasterSymbolizer Hi all, I am unsure how the raster symbolizer is supposed to work in MapServer. Do I create one Rule in the SLD with one ColorMap that has one or more ColorMapEntries? Or can I create a rule for each ColorMapEntry? Either way works (works using a filter too!!!) but ColorMapEntries can't be given a name. It is preferable from my point of view to create a rule for each ColorMapEntry so that a decent legend can be generated. Thoughts anyone? Joost From punkish at EIDESIS.ORG Sat Jul 22 12:06:41 2006 From: punkish at EIDESIS.ORG (P Kishor) Date: Sat, 22 Jul 2006 14:06:41 -0500 Subject: Setting projection with ogr2ogr Message-ID: I am running ogr2ogr (partially successfully now) like so -- ogr2ogr -f "ESRI Shapefile" -a_srs "$prj" . "foo.ovf" foo which runs fine, and results in a shapefile feature class called "foo" in about 25% of the time as via ArcGIS geoprocessing. But, the ogr output has the following problems -- 1. It doesn't project correctly; and 2. It continues to not recognize one of the fields in the in-coming CSV file with lon/lat. Regarding projection, I need to understand the difference between -a_srs srs_def: Assign an output SRS -t_srs srs_def: Reproject/transform to this SRS on output -s_srs srs_def: Override source SRS I am using -a_srs, and obviously either that is inappriate or not enough. Am I supposed to use -t_srs? Re. not recognizing the one of the fields, it actually may be a problem with ODBC. The ODBC text driver thinks the problem field is "currency" (the values in the field look like "S80"). If I try to set field definitions in the ODBC driver settings, then ogrinfo croaks on me, but it works just fine if I don't set any field definitions... of course, in that case, ogr utilities also end up thinking that my "S80" field is currency data. Is there a non-ODBC way to define a text data source? -- Puneet Kishor http://punkish.eidesis.org/ Nelson Inst. for Env. Studies, UW-Madison http://www.ies.wisc.edu/ Open Source Geospatial Foundation https://edu.osgeo.org/ From oracle at PROVOCATION.NET Sat Jul 22 11:50:31 2006 From: oracle at PROVOCATION.NET (Zenon Panoussis) Date: Sat, 22 Jul 2006 13:50:31 -0500 Subject: Raster tiling Message-ID: Hello all I am trying to cut an SRTM30 global raster into smaller tiles. Like this, in grass 6.0.2: g.region n=90 s=-60 w=-180 e=180 nsres=0.00833333 ewres=0.00833333 r.colors map=srtm30_full rules=srtm for s in `seq 0 5 85` do for w in `seq 0 5 175` do n=$(($s+5)) e=$(($w+5)) region="s=$s w=$w n=$n e=$e" reg="${n}n${s}s${w}w${e}e" g.region $region r.resample output=srtm30_$reg input=srtm30_full r.out.tiff -t -v in=srtm30_$reg out=srtm30_$reg done done The resulting tiles have the right size and geometry. When they are overlayed in grass' own monitor with d.rast -o map=srtm30_$reg they look like http://gis.fundiaperu.com/tmp/grass_out.png , that is, perfectly alright. I then run gdaltindex srtm30_idx.shp srtm30_*.tif on the output tiffs and feed the .shp to mapserver. The result in mapserver looks like http://gis.fundiaperu.com/tmp/mapsrv_out.png , not OK at all. The colours keep shifting from one tile to another for no apparent reason. The .map file is very simple: LAYER NAME "SRTM30" TYPE RASTER STATUS DEFAULT # PROCESSING "DITHER=YES" PROCESSING "SCALE=AUTO" TILEINDEX "srtm30_idx.shp" END Does anyone understand what I'm doing wrong and/or how to get it right? Z From oracle at PROVOCATION.NET Sat Jul 22 15:00:37 2006 From: oracle at PROVOCATION.NET (Zenon Panoussis) Date: Sat, 22 Jul 2006 17:00:37 -0500 Subject: Raster tiling In-Reply-To: <44C27377.9070706@provocation.net> Message-ID: I wrote: > Does anyone understand what I'm doing wrong and/or how to get it right? I finally solved it. For the benefit of the next victim, here's the solution. The problem was > r.out.tiff -t -v in=srtm30_$reg out=srtm30_$reg presumably in combination with the colour bucket discussion at http://mapserver.gis.umn.edu/docs/howto/raster_data . Substituting r.out.gdal input=srtm30_$reg format=GTiff type=Int16 \ output=srtm30_$reg.tif createopt="TFW=YES" for the r.out.tiff command creates 1-band tiffs, which mapserver then can colour uniformly with class statements like CLASS NAME "Elevation 1500-2000m" EXPRESSION ([pixel]>=1500 AND [pixel]<2000) COLOR 254 153 41 END On a totally different subject, wouldn't it be better to have the list's reply-to set to the list rather than to the sender, so that replies get archived by default and can benefit more people than just the person asking a question? Z -- The best defence against logic is ignorance. The next best is stupidity. Both can be used simultaneously. From jarg58 at GMAIL.COM Sat Jul 22 16:21:11 2006 From: jarg58 at GMAIL.COM (Alejandro Rico) Date: Sat, 22 Jul 2006 18:21:11 -0500 Subject: Adding Labels to a Vector Map with Java Mapscript In-Reply-To: <75b4b93e0607220229k8254c3fmea6a7290cf50af16@mail.gmail.com> Message-ID: Hi !!! I try with your suggestions but it doesn't work. here's a sample image of the map generated, and the fontset file thanks !!! On 7/22/06, Umberto Nicoletti wrote: > > Can you post a sample generated image with only this layer on and your > fontset file? > You could also try to remove mindistance and to set the layer's status > to MS_DEFAULT. > > Regards, > Umberto > > On 7/21/06, Alejandro Rico wrote: > > Hi !!! > > > > I'm working with a vector map made in Java Mapscript, with 2 layers, and > i > > need that one of them has labels to identify a way, but when the > program > > runs, mapserver draws a very little ununderstandable labels, and it > doesn't > > take the font size change. Someone can help me with this??? thanks. > > > > here's my code: > > > > Capa = new layerObj(Mapa); > > Capa.setName("Vias"); > > Capa.setType(mapscriptConstants.MS_LAYER_LINE); > > Capa.setStatus(mapscriptConstants.MS_ON ); > > String Comando = new String("the_geom FROM (select gid, > > the_geom, nomb_comun||' '||nomvial as Nombre FROM "+Localidad+" WHERE > codigo > > IN ("+CodigoVia+","+CodigoInterseccion+")) AS ViasMapa > > USING UNIQUE gid USING SRID=-1"); > > Capa.setData(Comando); > > Capa.setLabelitem("Nombre"); > > Capa.setConnection("user=geotrans dbname=Geotrans > > host=localhost"); > > Capa.setConnectiontype (mapscriptConstants.MS_POSTGIS); > > Clase = new classObj(Capa); > > Estilo = new styleObj(Clase); > > Estilo.setColor(new colorObj(255,0,0,0)); > > labelObj Etiquetas = new labelObj(); > > Etiquetas.setSize(18); > > Etiquetas.setColor(new colorObj(0,255,255,0)); > > Etiquetas.setType(mapscriptConstants.MS_TRUETYPE); > > Etiquetas.setAntialias(mapscriptConstants.MS_TRUE ); > > Etiquetas.setPosition(mapscriptConstants.MS_CL); > > Etiquetas.setPartials(mapscriptConstants.MS_FALSE); > > Etiquetas.setMindistance(300); > > Etiquetas.setFont("vera"); > > Clase.setLabel(Etiquetas); > > > > Mapa.draw > ().save("/usr/local/tomcat/webapps/geotrans/Mapas/mapaAcc",null); > > -- > > Alejandro Rico > -- Alejandro Rico -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: mapaAcc Type: application/octet-stream Size: 9380 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: fontset Type: application/octet-stream Size: 71 bytes Desc: not available URL: From arndw at WTAL.DE Sat Jul 22 16:25:32 2006 From: arndw at WTAL.DE (Arnd Wippermann) Date: Sun, 23 Jul 2006 01:25:32 +0200 Subject: WMS SLD getlegendgraphic Message-ID: Hello, I use SLD-files (&SLD=http://.....) to render a shape polygon layer. It goes well. It's astonishing, how easy it is to display the layer for various classitems without changing the mapfile. To get the SLD-files I use a program to get the Styles out of Arcview 9. But i have no luck to get the legend for the used Style. I have looked at the examples in the doc and I don't see, what exact I must configure to get a legend. Without the SLD-file I get the legend for the classes of the layer. With the SLD-file i get a blank picture. ...&REQUEST=GetMap&layer=SLD_KNA&STYLES=&SLD=http://localhost/mapserver/mapf iles/SLD_KNA/test.xml GetMap shows a pretty map ...&REQUEST=GetLegendGraphic&layer=SLD_KNA&STYLES=TEST&SLD=http://localhost/ mapserver/mapfiles/SLD_KNA/test.xml GetLegendGraphic shows an empty picture. Have anyone a clue? Mit freundlichen Gr?ssen Arnd Wippermann http://gis.ibbeck.de/pinguinale/ From punkish at EIDESIS.ORG Sat Jul 22 18:13:53 2006 From: punkish at EIDESIS.ORG (P Kishor) Date: Sat, 22 Jul 2006 20:13:53 -0500 Subject: modifying Shapefile dbfs Message-ID: hmmmm... I can't, for the life of me, figure out how to edit Shapefile dbfs. I am on Windows, and would like a Perl-ish way of doing this... grab a feature, and change its attributes. Xbase and CAM::DBF, the two DBF modules on CPAN can read, but not edit. Any pointers? Does OGR have any way of doing this? -- Puneet Kishor http://punkish.eidesis.org/ Nelson Inst. for Env. Studies, UW-Madison http://www.ies.wisc.edu/ Open Source Geospatial Foundation https://edu.osgeo.org/ From jarg58 at GMAIL.COM Sat Jul 22 18:25:07 2006 From: jarg58 at GMAIL.COM (Alejandro Rico) Date: Sat, 22 Jul 2006 20:25:07 -0500 Subject: Adding Labels to a Vector Map with Java Mapscript In-Reply-To: Message-ID: > > Hi !!! > I try with your suggestions but it doesn't work. > here's a sample image of the map generated, and the fontset file > > thanks !!! > > > On 7/22/06, Umberto Nicoletti wrote: > > > > Can you post a sample generated image with only this layer on and your > > fontset file? > > You could also try to remove mindistance and to set the layer's status > > to MS_DEFAULT. > > > > Regards, > > Umberto > > > > On 7/21/06, Alejandro Rico < jarg58 at gmail.com> wrote: > > > Hi !!! > > > > > > I'm working with a vector map made in Java Mapscript, with 2 layers, > > and i > > > need that one of them has labels to identify a way, but when the > > program > > > runs, mapserver draws a very little ununderstandable labels, and it > > doesn't > > > take the font size change. Someone can help me with this??? thanks. > > > > > > here's my code: > > > > > > Capa = new layerObj(Mapa); > > > Capa.setName("Vias"); > > > Capa.setType(mapscriptConstants.MS_LAYER_LINE); > > > Capa.setStatus(mapscriptConstants.MS_ON ); > > > String Comando = new String("the_geom FROM (select gid, > > > the_geom, nomb_comun||' '||nomvial as Nombre FROM "+Localidad+" WHERE > > codigo > > > IN ("+CodigoVia+","+CodigoInterseccion+")) AS ViasMapa > > > USING UNIQUE gid USING SRID=-1"); > > > Capa.setData(Comando); > > > Capa.setLabelitem("Nombre"); > > > Capa.setConnection("user=geotrans dbname=Geotrans > > > host=localhost"); > > > Capa.setConnectiontype (mapscriptConstants.MS_POSTGIS); > > > Clase = new classObj(Capa); > > > Estilo = new styleObj(Clase); > > > Estilo.setColor(new colorObj(255,0,0,0)); > > > labelObj Etiquetas = new labelObj(); > > > Etiquetas.setSize(18); > > > Etiquetas.setColor(new colorObj(0,255,255,0)); > > > Etiquetas.setType(mapscriptConstants.MS_TRUETYPE); > > > Etiquetas.setAntialias(mapscriptConstants.MS_TRUE ); > > > Etiquetas.setPosition(mapscriptConstants.MS_CL); > > > Etiquetas.setPartials(mapscriptConstants.MS_FALSE); > > > Etiquetas.setMindistance (300); > > > Etiquetas.setFont("vera"); > > > Clase.setLabel(Etiquetas); > > > > > > Mapa.draw > > ().save("/usr/local/tomcat/webapps/geotrans/Mapas/mapaAcc",null); > > > -- > > > Alejandro Rico > > > > > > -- > Alejandro Rico > > -- Alejandro Rico -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: fontset.txt URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: mapaAcc.png Type: image/png Size: 9380 bytes Desc: not available URL: From punkish at EIDESIS.ORG Sat Jul 22 19:53:20 2006 From: punkish at EIDESIS.ORG (P Kishor) Date: Sat, 22 Jul 2006 21:53:20 -0500 Subject: modifying Shapefile dbfs In-Reply-To: <20060723024039.92370.qmail@web33210.mail.mud.yahoo.com> Message-ID: Thanks for the suggestions Brent. I solved it... the problem was Windoze case-insensitivity (and CPAN authors' naming insensitivity!). Neither CAM::DBF nor Xbase can edit DBF files, (well, CAM::DBF can minimally do so, but not what I want). However, XBase (note XBase != Xbase) can read and write happily, and even has a DBD style interface in DBD::XBase. Well, I installed XBase, and then installed Xbase, and the latter clobbered the former. Re-installed XBase and it works just peachy. Thanks for the suggestion re. PostGIS. While that route is tempting, that is a complexity I can live without for now. I am a firm believer in text files as much as possible. If all else fails, I will certainly look at PostGIS, but for now, I want to squeeze as much mileage out of shapefiles. All this has to end up in Oracle (via SDE), so there is one db already to make my life difficult. On 7/22/06, Brent Wood wrote: > > > --- P Kishor wrote: > > > hmmmm... I can't, for the life of me, figure out how to edit Shapefile > > dbfs. I am on Windows, and would like a Perl-ish way of doing this... > > grab a feature, and change its attributes. Xbase and CAM::DBF, the two > > DBF modules on CPAN can read, but not edit. Any pointers? Does OGR > > have any way of doing this? > > Hmmm... > > http://cpan.uwinnipeg.ca/dist/CAM-DBF > > suggests it can read & write, but the shapefile structure imposes a seqence > restriction that could be a pain to work around. > > > You might try shapelib or ogr for a backend, & I believe both v0,8(pre) of QGIS > & OpenJump are able to edit the geometries as well as the attribute data, but > they are both GUI apps, not perl type stuff. > > I've used PostGIS as the spatial data management tool to facilitate this sort > of thing as well. It's pretty much just shp2pgsql to load a shapefile or > pgsql2shp to export a table to shapefile. Having your attr data in RDBMS tables > instead of dbf's is a vast improvement from a management/edit perspective. > > & perl has very good links to Postgresql :-) > > > Cheers, > > Brent Wood > -- Puneet Kishor http://punkish.eidesis.org/ Nelson Inst. for Env. Studies, UW-Madison http://www.ies.wisc.edu/ Open Source Geospatial Foundation https://edu.osgeo.org/ From umberto.nicoletti at GMAIL.COM Sun Jul 23 06:00:18 2006 From: umberto.nicoletti at GMAIL.COM (Umberto Nicoletti) Date: Sun, 23 Jul 2006 15:00:18 +0200 Subject: Adding Labels to a Vector Map with Java Mapscript In-Reply-To: Message-ID: Try this modifications: Capa = new layerObj(Mapa); Capa.setName("Vias"); Capa.setType(mapscriptConstants.MS_LAYER_LINE); Capa.setStatus(mapscriptConstants.MS_ON ); String Comando = new String("the_geom FROM (select gid, the_geom, nomb_comun||' '||nomvial as Nombre FROM "+Localidad+" WHERE codigo IN ("+CodigoVia+","+CodigoInterseccion+")) AS ViasMapa USING UNIQUE gid USING SRID=-1"); Capa.setData(Comando); Capa.setLabelitem("Nombre"); Capa.setConnection("user=geotrans dbname=Geotrans host=localhost"); Capa.setConnectiontype (mapscriptConstants.MS_POSTGIS); Clase = new classObj(Capa); // CHANGE FROM HERE Clase.setName('Pick a name'); // comment out the style // Estilo = new styleObj(Clase); // Estilo.setColor(new colorObj(255,0,0,0)); // and use this to set the color instead Clase.setColor(new colorObj(255,0,0,0)); // END OF CHANGE labelObj Etiquetas = new labelObj(); Etiquetas.setSize(18); Etiquetas.setColor(new colorObj(0,255,255,0)); Etiquetas.setType(mapscriptConstants.MS_TRUETYPE); Etiquetas.setAntialias(mapscriptConstants.MS_TRUE ); Etiquetas.setPosition(mapscriptConstants.MS_CL); // CHANGE: comment this too //Etiquetas.setPartials(mapscriptConstants.MS_FALSE); //Etiquetas.setMindistance(300); Etiquetas.setFont("vera"); Clase.setLabel(Etiquetas); Mapa.draw().save("/usr/local/tomcat/webapps/geotrans/Mapas/mapaAcc",null); You could also try to save the map to a file to make sure everything got setup properly in mapscript. To do this simply call Mapa.save('filename'); then post the map file to the list. Regards, Umberto On 7/23/06, Alejandro Rico wrote: > > > > > Hi !!! > > I try with your suggestions but it doesn't work. > > here's a sample image of the map generated, and the fontset file > > > > thanks !!! > > > > > > > > On 7/22/06, Umberto Nicoletti < umberto.nicoletti at gmail.com> wrote: > > > Can you post a sample generated image with only this layer on and your > > > fontset file? > > > You could also try to remove mindistance and to set the layer's status > > > to MS_DEFAULT. > > > > > > Regards, > > > Umberto > > > > > > On 7/21/06, Alejandro Rico < jarg58 at gmail.com> wrote: > > > > Hi !!! > > > > > > > > I'm working with a vector map made in Java Mapscript, with 2 layers, > and i > > > > need that one of them has labels to identify a way, but when the > program > > > > runs, mapserver draws a very little ununderstandable labels, and it > doesn't > > > > take the font size change. Someone can help me with this??? thanks. > > > > > > > > here's my code: > > > > > > > > Capa = new layerObj(Mapa); > > > > Capa.setName("Vias"); > > > > > Capa.setType(mapscriptConstants.MS_LAYER_LINE); > > > > Capa.setStatus(mapscriptConstants.MS_ON ); > > > > String Comando = new String("the_geom FROM (select gid, > > > > the_geom, nomb_comun||' '||nomvial as Nombre FROM "+Localidad+" WHERE > codigo > > > > IN ("+CodigoVia+","+CodigoInterseccion+")) AS > ViasMapa > > > > USING UNIQUE gid USING SRID=-1"); > > > > Capa.setData(Comando); > > > > Capa.setLabelitem("Nombre"); > > > > Capa.setConnection("user=geotrans dbname=Geotrans > > > > host=localhost"); > > > > Capa.setConnectiontype (mapscriptConstants.MS_POSTGIS); > > > > Clase = new classObj(Capa); > > > > Estilo = new styleObj(Clase); > > > > Estilo.setColor(new colorObj(255,0,0,0)); > > > > labelObj Etiquetas = new labelObj(); > > > > Etiquetas.setSize(18); > > > > Etiquetas.setColor(new colorObj(0,255,255,0)); > > > > Etiquetas.setType(mapscriptConstants.MS_TRUETYPE); > > > > Etiquetas.setAntialias(mapscriptConstants.MS_TRUE ); > > > > Etiquetas.setPosition(mapscriptConstants.MS_CL); > > > > Etiquetas.setPartials(mapscriptConstants.MS_FALSE); > > > > Etiquetas.setMindistance (300); > > > > Etiquetas.setFont("vera"); > > > > Clase.setLabel(Etiquetas); > > > > > > > > > Mapa.draw().save("/usr/local/tomcat/webapps/geotrans/Mapas/mapaAcc",null); > > > > -- > > > > Alejandro Rico > > > > > > > > > > > > > -- > > > > Alejandro Rico > > > > > > -- > Alejandro Rico > From jarg58 at GMAIL.COM Sun Jul 23 13:42:20 2006 From: jarg58 at GMAIL.COM (Alejandro Rico) Date: Sun, 23 Jul 2006 15:42:20 -0500 Subject: Adding Labels to a Vector Map with Java Mapscript In-Reply-To: <75b4b93e0607230600t4a112f2bw5eaf10d75dcbd197@mail.gmail.com> Message-ID: Hi!!! I try what you said, but the method setColor in classObj doesn't exist, then i didn't modify the part of the style. However running the program it draws the map with the same labels. here's the mapfile and the map image. thanks for your help !!!!! On 7/23/06, Umberto Nicoletti wrote: > > Try this modifications: > > Capa = new layerObj(Mapa); > Capa.setName("Vias"); > Capa.setType(mapscriptConstants.MS_LAYER_LINE); > Capa.setStatus(mapscriptConstants.MS_ON ); > String Comando = new String("the_geom FROM (select gid, > the_geom, nomb_comun||' '||nomvial as Nombre FROM "+Localidad+" WHERE > codigo IN ("+CodigoVia+","+CodigoInterseccion+")) AS ViasMapa USING > UNIQUE gid USING SRID=-1"); > Capa.setData(Comando); > Capa.setLabelitem("Nombre"); > Capa.setConnection("user=geotrans dbname=Geotrans > host=localhost"); > Capa.setConnectiontype (mapscriptConstants.MS_POSTGIS); > Clase = new classObj(Capa); > // CHANGE FROM HERE > Clase.setName('Pick a name'); > // comment out the style > // Estilo = new styleObj(Clase); > // Estilo.setColor(new colorObj(255,0,0,0)); > // and use this to set the color instead > Clase.setColor(new colorObj(255,0,0,0)); > // END OF CHANGE > labelObj Etiquetas = new labelObj(); > Etiquetas.setSize(18); > Etiquetas.setColor(new colorObj(0,255,255,0)); > Etiquetas.setType(mapscriptConstants.MS_TRUETYPE); > Etiquetas.setAntialias(mapscriptConstants.MS_TRUE ); > Etiquetas.setPosition(mapscriptConstants.MS_CL); > // CHANGE: comment this too > //Etiquetas.setPartials(mapscriptConstants.MS_FALSE); > //Etiquetas.setMindistance(300); > Etiquetas.setFont("vera"); > Clase.setLabel(Etiquetas); > Mapa.draw > ().save("/usr/local/tomcat/webapps/geotrans/Mapas/mapaAcc",null); > > You could also try to save the map to a file to make sure everything > got setup properly in mapscript. To do this simply call > Mapa.save('filename'); then post the map file to the list. > > Regards, > Umberto > > > On 7/23/06, Alejandro Rico wrote: > > > > > > > > Hi !!! > > > I try with your suggestions but it doesn't work. > > > here's a sample image of the map generated, and the fontset file > > > > > > thanks !!! > > > > > > > > > > > > On 7/22/06, Umberto Nicoletti < umberto.nicoletti at gmail.com> wrote: > > > > Can you post a sample generated image with only this layer on and > your > > > > fontset file? > > > > You could also try to remove mindistance and to set the layer's > status > > > > to MS_DEFAULT. > > > > > > > > Regards, > > > > Umberto > > > > > > > > On 7/21/06, Alejandro Rico < jarg58 at gmail.com> wrote: > > > > > Hi !!! > > > > > > > > > > I'm working with a vector map made in Java Mapscript, with 2 > layers, > > and i > > > > > need that one of them has labels to identify a way, but when the > > program > > > > > runs, mapserver draws a very little ununderstandable labels, > and it > > doesn't > > > > > take the font size change. Someone can help me with > this??? thanks. > > > > > > > > > > here's my code: > > > > > > > > > > Capa = new layerObj(Mapa); > > > > > Capa.setName("Vias"); > > > > > > > Capa.setType(mapscriptConstants.MS_LAYER_LINE); > > > > > Capa.setStatus(mapscriptConstants.MS_ON ); > > > > > String Comando = new String("the_geom FROM (select > gid, > > > > > the_geom, nomb_comun||' '||nomvial as Nombre FROM "+Localidad+" > WHERE > > codigo > > > > > IN ("+CodigoVia+","+CodigoInterseccion+")) AS > > ViasMapa > > > > > USING UNIQUE gid USING SRID=-1"); > > > > > Capa.setData(Comando); > > > > > Capa.setLabelitem("Nombre"); > > > > > Capa.setConnection("user=geotrans dbname=Geotrans > > > > > host=localhost"); > > > > > Capa.setConnectiontype (mapscriptConstants.MS_POSTGIS > ); > > > > > Clase = new classObj(Capa); > > > > > Estilo = new styleObj(Clase); > > > > > Estilo.setColor(new colorObj(255,0,0,0)); > > > > > labelObj Etiquetas = new labelObj(); > > > > > Etiquetas.setSize(18); > > > > > Etiquetas.setColor(new colorObj(0,255,255,0)); > > > > > Etiquetas.setType(mapscriptConstants.MS_TRUETYPE); > > > > > Etiquetas.setAntialias(mapscriptConstants.MS_TRUE ); > > > > > Etiquetas.setPosition(mapscriptConstants.MS_CL); > > > > > Etiquetas.setPartials(mapscriptConstants.MS_FALSE); > > > > > Etiquetas.setMindistance (300); > > > > > Etiquetas.setFont("vera"); > > > > > Clase.setLabel(Etiquetas); > > > > > > > > > > > > Mapa.draw > ().save("/usr/local/tomcat/webapps/geotrans/Mapas/mapaAcc",null); > > > > > -- > > > > > Alejandro Rico > > > > > > > > > > > > > > > > > > > -- > > > > > > Alejandro Rico > > > > > > > > > > > -- > > Alejandro Rico > > > -- Alejandro Rico -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: mapaAcc.gif Type: image/gif Size: 10821 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: mapa.map Type: application/octet-stream Size: 2742 bytes Desc: not available URL: From tom at MAPLINK.JP Sun Jul 23 23:19:57 2006 From: tom at MAPLINK.JP (Thomas Hammerlund) Date: Mon, 24 Jul 2006 15:19:57 +0900 Subject: Line Width Problem Message-ID: Hi Everyone, I'm having a problem with my line widths. -------------- next part -------------- An HTML attachment was scrubbed... URL: From madprof at GMX.CH Sun Jul 23 23:21:11 2006 From: madprof at GMX.CH (Daniel Goetz) Date: Mon, 24 Jul 2006 08:21:11 +0200 Subject: CGI Qlayer,Qstring variables usage In-Reply-To: <20060721160351.24162.qmail@web34201.mail.mud.yahoo.com> Message-ID: Hi, I have two suggestions (but I am not quiet sure whether this is right): first I think you should put the value for "mode" from "map" to "query" or "itemquery" or itemnquery" or something like that. Second: I could not understand your qstring expression. In my little mapserver project I have the possibility to search for features that have the same values in a special database column. For example: When I want to search for all objects that have the value "13" in the database-column "TM_NR" then my qstring looks like this: "qstring=TM_NR=13". Very simple, but it works. Perhaps you could try this. But as I mentioned I don't really know whether it works or not. Good luck and bst regards Daniel -------- Original-Nachricht -------- Datum: Fri, 21 Jul 2006 09:03:51 -0700 Von: rock well An: MAPSERVER-USERS at LISTS.UMN.EDU Betreff: Re: [UMN_MAPSERVER-USERS] CGI Qlayer,Qstring variables usage > Hey david, > Thanks for your reply, i tried this but it didnt work. I am going > to give you the complete link that we are using. Actually we are trying to > query a states layer from the shape file and display just the north dakota > state. So the link we are using are > > > http://localhost/scripts/mapserv.exe?MODE=map&MAP=c:/Inetpub/scripts/stateswms.map&CONTEXT=c:/Inetpub/wwwroot/mapserverdata/map_files/contextmap.xml&LAYERS=states&QLAYER=states&QITEM=state&QSTRING=('[state]'='ND') > > any suggestions please ... > > Thanks for your time and effort ... > kris > > "Fawcett, David" wrote: > Kris, > > This may not quite work, but it should be closer. Try something like: > > > http://pathtomapserv.exe?MODE=itemnquerymap&LAYERS=layer1&QLAYER=layer1&QITEM=colname&QString=('[colname]'='value') > > David. > > > > -----Original Message----- > From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On > Behalf Of rock well > Sent: Thursday, July 20, 2006 5:49 PM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: [UMN_MAPSERVER-USERS] CGI Qlayer,Qstring variables usage > > > Hello all, > I was trying to query one of the layers from a shape file in the > url, i am used map as the mode and gave the layer name for Qlayer, column > name for Qitem and QString. Part of the URL looks like > > > http://pathtomapserv.exe?MODE=map&LAYERS=layer1&QLAYER=layer1&QITEM=colname&QString=("colname=value") > > the map is displayed but it didnt filter the layer with the given > querystring variables .... > > Is there something missing, can anyone suggest with something ... > > Thanks for your effort and time .... > kris > > --------------------------------- > Do you Yahoo!? > Next-gen email? Have it all with the all-new Yahoo! Mail Beta. > > > --------------------------------- > Talk is cheap. Use Yahoo! Messenger to make PC-to-Phone calls. Great > rates starting at 1?/min. -- Echte DSL-Flatrate dauerhaft f?r 0,- Euro*. Nur noch kurze Zeit! "Feel free" mit GMX DSL: http://www.gmx.net/de/go/dsl From tom at MAPLINK.JP Sun Jul 23 23:28:09 2006 From: tom at MAPLINK.JP (Thomas Hammerlund) Date: Mon, 24 Jul 2006 15:28:09 +0900 Subject: Line Width Problem Message-ID: Hi Everyone, I'm having a little trouble with my line widths. I'm using tiled layers, and when lines with a with greater than 1 reach the edge, they don't connect properly. Does anyone have a solution for this? Below is the class section for this layer. CLASS MAXSCALE 25000 MINSCALE 0 Name style1 EXPRESSION /l_bbbag|l_bbbaf/ STYLE COLOR 240 184 53 WIDTH 3 END END Is there maybe a symbol I could use that would go beyond the tile? Thank you, Tom -------------- next part -------------- An HTML attachment was scrubbed... URL: From tom at MAPLINK.JP Sun Jul 23 23:38:47 2006 From: tom at MAPLINK.JP (Thomas Hammerlund) Date: Mon, 24 Jul 2006 15:38:47 +0900 Subject: Line Width Problem Message-ID: Attached are a few screenshots to better illustrate the problem. Thank you. ----- Original Message ----- From: Thomas Hammerlund To: MAPSERVER-USERS at lists.umn.edu Sent: Monday, July 24, 2006 3:28 PM Subject: [UMN_MAPSERVER-USERS] Line Width Problem Hi Everyone, I'm having a little trouble with my line widths. I'm using tiled layers, and when lines with a with greater than 1 reach the edge, they don't connect properly. Does anyone have a solution for this? Below is the class section for this layer. CLASS MAXSCALE 25000 MINSCALE 0 Name style1 EXPRESSION /l_bbbag|l_bbbaf/ STYLE COLOR 240 184 53 WIDTH 3 END END Is there maybe a symbol I could use that would go beyond the tile? Thank you, Tom -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: #1.jpg Type: image/jpeg Size: 15593 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: #2.jpg Type: image/jpeg Size: 17762 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: problem.JPG Type: image/jpeg Size: 9404 bytes Desc: not available URL: From umberto.nicoletti at GMAIL.COM Mon Jul 24 00:00:33 2006 From: umberto.nicoletti at GMAIL.COM (Umberto Nicoletti) Date: Mon, 24 Jul 2006 09:00:33 +0200 Subject: Adding Labels to a Vector Map with Java Mapscript In-Reply-To: Message-ID: Try to change the font... I am really puzzled... Umberto On 7/23/06, Alejandro Rico wrote: > Hi!!! > > I try what you said, but the method setColor in classObj doesn't exist, then > i didn't modify the part of the style. However running the program it draws > the map with the same labels. > > here's the mapfile and the map image. > > thanks for your help !!!!! > > > > On 7/23/06, Umberto Nicoletti wrote: > > Try this modifications: > > > > Capa = new layerObj(Mapa); > > Capa.setName ("Vias"); > > > Capa.setType(mapscriptConstants.MS_LAYER_LINE); > > Capa.setStatus(mapscriptConstants.MS_ON ); > > String Comando = new String("the_geom FROM (select gid, > > the_geom, nomb_comun||' '||nomvial as Nombre FROM "+Localidad+" WHERE > > codigo IN ("+CodigoVia+","+CodigoInterseccion+")) AS > ViasMapa USING > > UNIQUE gid USING SRID=-1"); > > Capa.setData(Comando); > > Capa.setLabelitem("Nombre"); > > Capa.setConnection("user=geotrans dbname=Geotrans > host=localhost"); > > Capa.setConnectiontype (mapscriptConstants.MS_POSTGIS); > > Clase = new classObj(Capa); > > // CHANGE FROM HERE > > Clase.setName('Pick a name'); > > // comment out the style > > // Estilo = new styleObj(Clase); > > // Estilo.setColor(new colorObj(255,0,0,0)); > > // and use this to set the color instead > > Clase.setColor(new colorObj(255,0,0,0)); > > // END OF CHANGE > > labelObj Etiquetas = new labelObj(); > > Etiquetas.setSize(18); > > Etiquetas.setColor(new colorObj(0,255,255,0)); > > Etiquetas.setType(mapscriptConstants.MS_TRUETYPE); > > Etiquetas.setAntialias(mapscriptConstants.MS_TRUE ); > > Etiquetas.setPosition(mapscriptConstants.MS_CL); > > // CHANGE: comment this too > > > //Etiquetas.setPartials(mapscriptConstants.MS_FALSE); > > //Etiquetas.setMindistance(300); > > Etiquetas.setFont("vera"); > > Clase.setLabel(Etiquetas); > > > Mapa.draw().save("/usr/local/tomcat/webapps/geotrans/Mapas/mapaAcc",null); > > > > You could also try to save the map to a file to make sure everything > > got setup properly in mapscript. To do this simply call > > Mapa.save('filename'); then post the map file to the list. > > > > Regards, > > Umberto > > > > > > On 7/23/06, Alejandro Rico wrote: > > > > > > > > > > > Hi !!! > > > > I try with your suggestions but it doesn't work. > > > > here's a sample image of the map generated, and the fontset file > > > > > > > > thanks !!! > > > > > > > > > > > > > > > > On 7/22/06, Umberto Nicoletti < umberto.nicoletti at gmail.com> wrote: > > > > > Can you post a sample generated image with only this layer on and > your > > > > > fontset file? > > > > > You could also try to remove mindistance and to set the layer's > status > > > > > to MS_DEFAULT. > > > > > > > > > > Regards, > > > > > Umberto > > > > > > > > > > On 7/21/06, Alejandro Rico < jarg58 at gmail.com > wrote: > > > > > > Hi !!! > > > > > > > > > > > > I'm working with a vector map made in Java Mapscript, with 2 > layers, > > > and i > > > > > > need that one of them has labels to identify a way, but when the > > > program > > > > > > runs, mapserver draws a very little ununderstandable labels, and > it > > > doesn't > > > > > > take the font size change. Someone can help me with this??? > thanks. > > > > > > > > > > > > here's my code: > > > > > > > > > > > > Capa = new layerObj(Mapa); > > > > > > Capa.setName("Vias"); > > > > > > > > > Capa.setType (mapscriptConstants.MS_LAYER_LINE); > > > > > > Capa.setStatus(mapscriptConstants.MS_ON ); > > > > > > String Comando = new String("the_geom FROM (select > gid, > > > > > > the_geom, nomb_comun||' '||nomvial as Nombre FROM "+Localidad+" > WHERE > > > codigo > > > > > > IN ("+CodigoVia+","+CodigoInterseccion+")) AS > > > ViasMapa > > > > > > USING UNIQUE gid USING SRID=-1"); > > > > > > Capa.setData (Comando); > > > > > > Capa.setLabelitem("Nombre"); > > > > > > Capa.setConnection("user=geotrans dbname=Geotrans > > > > > > host=localhost"); > > > > > > Capa.setConnectiontype > (mapscriptConstants.MS_POSTGIS); > > > > > > Clase = new classObj(Capa); > > > > > > Estilo = new styleObj(Clase); > > > > > > Estilo.setColor(new colorObj(255,0,0,0)); > > > > > > labelObj Etiquetas = new labelObj(); > > > > > > Etiquetas.setSize(18); > > > > > > Etiquetas.setColor (new colorObj(0,255,255,0)); > > > > > > Etiquetas.setType(mapscriptConstants.MS_TRUETYPE); > > > > > > Etiquetas.setAntialias(mapscriptConstants.MS_TRUE ); > > > > > > Etiquetas.setPosition(mapscriptConstants.MS_CL); > > > > > > Etiquetas.setPartials(mapscriptConstants.MS_FALSE); > > > > > > Etiquetas.setMindistance (300); > > > > > > Etiquetas.setFont("vera"); > > > > > > Clase.setLabel(Etiquetas); > > > > > > > > > > > > > > > > Mapa.draw().save("/usr/local/tomcat/webapps/geotrans/Mapas/mapaAcc",null); > > > > > > -- > > > > > > Alejandro Rico > > > > > > > > > > > > > > > > > > > > > > > > > -- > > > > > > > > Alejandro Rico > > > > > > > > > > > > > > > > -- > > > Alejandro Rico > > > > > > > > > -- > Alejandro Rico > From madprof at GMX.CH Mon Jul 24 00:18:18 2006 From: madprof at GMX.CH (Daniel Goetz) Date: Mon, 24 Jul 2006 09:18:18 +0200 Subject: query, highlight and zoom Message-ID: Hi mapserver-community, I am working on a mapserver-project (running on a local mapserver-installation; ms4w 1.5.3). Client and mapserver shall communicate via CGI. Now I want to implement a query-function so that I am able to search for features by certain attributes. And I want them to be displayed (hilighted and zoomed on) on the map. Therefor I am using "mode=itemnquery", I define a qlayer, a qitem and a qstring. To achieve that the mapextent fits to the selected features I define the value for "mapext" as "shape". Furthermore I define a QUERYMAP as it follows: QUERYMAP STATUS ON STYLE HILITE COLOR 0 0 0 END Last I define a querytemplate in the CLASS-object of the qlayer in the .map-file (it is the same template that I use for paning and zooming when I start the map-project). So my URL-request for the query looks as it follows: http://localhost/cgi-bin/mapserv.exe?mapserv=/cgi-bin/mapserv.exe& map=/ms4w/apache/htdocs/oracle/suche_mitzoom.map&map_web_imagepath=/ms4w/apache/htdocs/tmp/& map_web_imageurl=/tmp/&mapext=shape&mode=itemnquery&qlayer=VIEW_RWG_TBS&qitem=TM_NR&qstring=TM_NR=13& So far it works properly only with one confinement: Mapserver sends back as many maps as features fit to the query. e.g. 12 features have the value 13 in the TM_NR column of the database, so mapserver displays 12 maps in the browser window and on each map all the 12 features are hilighted. But my goal is to get only ONE map where all features filtered by the qstring are highlighted and the mapextent fits to the extend of the higlighted features. Has anybody suggestions how to achieve that. What is the right way? Please give me some hints. Thank you so much for your time, your ideas and your help. Thank you. regards Daniel -- Echte DSL-Flatrate dauerhaft f?r 0,- Euro*. Nur noch kurze Zeit! "Feel free" mit GMX DSL: http://www.gmx.net/de/go/dsl From tom at MAPLINK.JP Mon Jul 24 00:26:50 2006 From: tom at MAPLINK.JP (Thomas Hammerlund) Date: Mon, 24 Jul 2006 16:26:50 +0900 Subject: Line Width Problem Message-ID: Thank you for your reply. I use the 'circle' symbol for when the line is less than 1. I did try using circle for all widths, but it produces the same result. I think when the line is about to reach the edge and it stops drawing, the half-circle is what is left and that's what is seen. (Does that make sense?) I think it's like if you put two quarters together. There's space in between them. Is there a different symbol that might work better? ----- Original Message ----- From: "Blammo" To: "Thomas Hammerlund" Sent: Monday, July 24, 2006 4:00 PM Subject: Re: Line Width Problem > >> >> >> >> Hi Everyone, >> >> I'm having a little trouble with my line widths. I'm using tiled >> layers, and when lines with a with greater than 1 reach the edge, they >> don't connect properly. Does anyone have a solution for this? Below is >> the class section for this layer. >> >> CLASS >> MAXSCALE 25000 >> MINSCALE 0 >> Name style1 >> EXPRESSION /l_bbbag|l_bbbaf/ >> STYLE >> COLOR 240 184 53 >> WIDTH 3 >> END >> END >> >> Is there maybe a symbol I could use that would go beyond the tile? >> >> > Did you try it with a SYMBOL defined in the style? > > My wide lines look like this for example: > > LAYER > . . . > TYPE LINE > CLASS > STYLE > SYMBOL 'circle' > SIZE 5 > END > COLOR 175 175 175 > NAME 'Local Roads' > END > END > > From C.Wilmes at GMX.DE Mon Jul 24 00:34:08 2006 From: C.Wilmes at GMX.DE (Christian Wilmes) Date: Mon, 24 Jul 2006 09:34:08 +0200 Subject: CSharp-Mapscript: setSymbolSet doesn't work?! In-Reply-To: Message-ID: Thanks a lot Tamas, now it works! Best Regards Christian -------- Original-Nachricht -------- Datum: Fri, 21 Jul 2006 23:47:24 +0200 Von: "Tamas Szekeres" An: "Christian Wilmes" Betreff: Re: Re: Re: Re: [UMN_MAPSERVER-USERS] CSharp-Mapscript: setSymbolSet doesn\'t work?! > Christian, > > You have to set the symbol of the styleObj as: > > myStyle.symbolname = "mySymbol"; > myStyle.symbol = myMap.symbolset.index("mySymbol"); > > I consider this issue is a bug in mapscript so added: > > http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=1837 > > Best Regards, > > Tamas > > > 2006/7/20, Christian Wilmes : > > Hi, > > > > I could not find a solu?tion for solving my problem. So I created a > simple Exampels with VS2005. The examples uses a Point-Shape which is together > with everything else in the zip-File. I tried it out with new Layer(myMap) > and with the myMap.insert method. Both of them doesn't work. > > > > Best Regards > > Christian > > -- Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen! Ideal f?r Modem und ISDN: http://www.gmx.net/de/go/smartsurfer From bytex at O2.NO Mon Jul 24 00:53:11 2006 From: bytex at O2.NO (Tormod Spigseth) Date: Mon, 24 Jul 2006 09:53:11 +0200 Subject: Generating raster overview to separate rasterset. Message-ID: I have a 240GB aerial rasterset in 4000 tiles, any idea how i can generate separate raster sets for higher zoomlevels? gdaladdo will still require mapserver to load 4000 files. -- Tormod Spigseth ByteX / Oxygen bytex at o2.no From Henrik.Stutz at FIMR.FI Mon Jul 24 00:54:36 2006 From: Henrik.Stutz at FIMR.FI (Henrik Stutz) Date: Mon, 24 Jul 2006 10:54:36 +0300 Subject: msDrawShape(): General error message. Unknown layer type Message-ID: Hi All, I'm trying to set up raster querying on Mapserver 4.8.3. When "mode=query" is enabled the following error occurs: "msDrawShape(): General error message. Unknown layer type". Does anyone has an idea how to solve this problem? Cheers and thanks, Henrik http://localhost/cgi-bin/mapserv_483?map=%2Fvar%2Fwww%2Fhtml%2Fperl_test %2FBalticBoundary.map&map_web_imagepath=%2Fvar%2Fwww%2Fhtml%2Ftmp% 2F&map_web_imageurl=%2Ftmp%2F&savequery=true&imgext=245990.225000 +6427447.275000+4190855.225000 +10372312.275000&layer=chlaYYMMDDsat&program=%2Fcgi-bin% 2Fmapserv_483&img.x=168&img.y=124&zoomsize=3&mode=query -------template.html----------- MapServer
. . . Select quad
. . .
----------------mapfile---------- NAME Boundary STATUS ON SIZE 600 600 WEB IMAGEPATH "/var/www/html/perl_test/tmp/" IMAGEURL "/tmp/" TEMPLATE "template.html" END EXTENT 252565 6.8044e+06 4.19743e+06 9.98221e+06 UNITS kilometers IMAGECOLOR 255 255 255 IMAGETYPE png FONTSET "/home/henriks/mapserver/mapserver-4.8.3/tests/fonts.txt" REFERENCE EXTENT 254657 6.80479e+06 4.19846e+06 9.98175e+06 IMAGE "./reference.png" SIZE 120 120 STATUS ON COLOR -1 -1 -1 OUTLINECOLOR 255 0 0 END QUERYMAP STATUS ON STYLE SELECTED END LAYER NAME baltic_mask TYPE RASTER STATUS DEFAULT DATA /opt/MODIS/GIS/2006g6/BalticMerc07/PERMANENT/cellhd/baltic_mask TOLERANCE 3 TOLERANCEUNITS PIXELS CLASS NAME "Baltic_mask" TEMPLATE quadtemplate.html OUTLINECOLOR 255 0 0 LABEL TYPE truetype FONT Vera SIZE 8 ANTIALIAS TRUE COLOR 0 0 0 OUTLINECOLOR 212 212 212 PARTIALS OFF END END END LAYER NAME chlaYYMMDDsat TYPE RASTER STATUS OFF TRANSPARENCY 50 DATA /opt/MODIS/GIS/2006g6/BalticMerc/T/cellhd/chlasat TOLERANCE 3 TOLERANCEUNITS PIXELS CLASS NAME "Chlorophyll-a" OUTLINECOLOR 255 0 0 TEMPLATE quadtemplate.html END END ------quadtemplate.html---------------------------- MapServer Test
You selected the [TILE_NAME] Quadrangle

[lrn] [PIN]

return to map... From janeks.kamerovskis at SILVA.LV Mon Jul 24 03:00:18 2006 From: janeks.kamerovskis at SILVA.LV (Janeks Kamerovskis) Date: Mon, 24 Jul 2006 13:00:18 +0300 Subject: offt: GIS model description Message-ID: Could somebody point me to a good decription(s) (with schema/diagram) of GIS ! I would be very thankfull! I need it for studies! Thanks in advance! Janeks From Jukka.Rahkonen at MMMTIKE.FI Mon Jul 24 03:01:44 2006 From: Jukka.Rahkonen at MMMTIKE.FI (Rahkonen Jukka) Date: Mon, 24 Jul 2006 13:01:44 +0300 Subject: Generating raster overview to separate rasterset. In-Reply-To: A<44C47C67.5030109@o2.no> Message-ID: Hi, Best way I have found so far is to use Mapserver itself. For the whole rasterset it goes very easily by using tileindex as raster input, mapfile extents taken from the tileindex shapefile with ogrinfo,GeoTIFF as outputformat, some reasonable image size, and then asking for the whole layer from Mapserver. I think in your case it would be good to have one more zoom level in between, and for that you would need to add BBOX parameter to your request. When the site is covered by a suitable number of tiles they can be combined with another tileindex. I don't remember any problem in creating subsampled images this way, but of cause it takes some time and server timeout value must be set accordingly. By the way, I suppose many Mapserver users would benefit if someone someday should make a simple semiautomatic application for performing this common task. It might for example show the tileindex shapefile as vector layer with full extents to start with, and then ask the user to give the number of rows and columns and size of the resulting images as inputs before splitting the raster layer to new tiles. I have also used GDAL (by using GDAL .vrt virtual format as input) and commercial software (mosaic utility of ERDAS Imagine) but I prefer Mapserver because it is fast and not too tricky to use even when editing the BBOX parameters manually. For more automation I use to collect the Mapserver requests to batch file. Regards, -Jukka Rahkonen- -----Alkuper?inen viesti----- L?hett?j?: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] Puolesta Tormod Spigseth L?hetetty: 24. hein?kuuta 2006 10:53 Vastaanottaja: MAPSERVER-USERS at LISTS.UMN.EDU Aihe: [UMN_MAPSERVER-USERS] Generating raster overview to separate rasterset. I have a 240GB aerial rasterset in 4000 tiles, any idea how i can generate separate raster sets for higher zoomlevels? gdaladdo will still require mapserver to load 4000 files. -- Tormod Spigseth ByteX / Oxygen bytex at o2.no From tom at MAPLINK.JP Mon Jul 24 03:13:20 2006 From: tom at MAPLINK.JP (Thomas Hammerlund) Date: Mon, 24 Jul 2006 19:13:20 +0900 Subject: Mapscript Installation Problems Message-ID: Hi, I'm almost set up with Mapserver, but I keep getting an error when I test php/mapscript. I modified the demo_init.html file here: and here: I also edited the demo.map file's WMS_ONLINERESOURCE value, and SHAPEPATH to "/data". However pointing the browser to test_draw_map.phtml gives me an error and this is displayed: numlayers; // phpinfo(); // // RENDER MAIN MAP // // Note: If you get errors with the saveWebImage() call below, then make sure // that the directory specified by IMAGEPATH in the .MAP file exists and is // writable by the httpd user. // $img = $map->draw(); $url = $img->saveWebImage(MS_PNG, 0, 0, 0); printf("\n", $url, $map->width, $map->height); // // LEGEND // $img = $map->drawLegend(); $url = $img->saveWebImage(MS_PNG, 0, 0, 0); printf(" I'm running Fedora 5. Does anyone have any ideas what the problem could be? -------------- next part -------------- An HTML attachment was scrubbed... URL: From siki at AGT.BME.HU Mon Jul 24 05:56:43 2006 From: siki at AGT.BME.HU (Siki Zoltan) Date: Mon, 24 Jul 2006 11:56:43 -0100 Subject: Line Width Problem {Scanned} In-Reply-To: <00c101c6aef2$87d1a560$ac0aa8c0@testxp8b8211e7> Message-ID: Hi, Check http://mapserver.gis.umn.edu/docs/howto/cartosymbols Look for cartoline and linejoin. Bye Zoltan On Mon, 24 Jul 2006, Thomas Hammerlund wrote: > Thank you for your reply. > > I use the 'circle' symbol for when the line is less than 1. I did try using > circle for all widths, but it produces the same result. I think when the > line is about to reach the edge and it stops drawing, the half-circle is > what is left and that's what is seen. (Does that make sense?) I think it's > like if you put two quarters together. There's space in between them. > > Is there a different symbol that might work better? > > > ----- Original Message ----- > From: "Blammo" > To: "Thomas Hammerlund" > Sent: Monday, July 24, 2006 4:00 PM > Subject: Re: Line Width Problem > > > > > >> > >> > >> > >> Hi Everyone, > >> > >> I'm having a little trouble with my line widths. I'm using tiled > >> layers, and when lines with a with greater than 1 reach the edge, they > >> don't connect properly. Does anyone have a solution for this? Below is > >> the class section for this layer. > >> > >> CLASS > >> MAXSCALE 25000 > >> MINSCALE 0 > >> Name style1 > >> EXPRESSION /l_bbbag|l_bbbaf/ > >> STYLE > >> COLOR 240 184 53 > >> WIDTH 3 > >> END > >> END > >> > >> Is there maybe a symbol I could use that would go beyond the tile? > >> > >> > > Did you try it with a SYMBOL defined in the style? > > > > My wide lines look like this for example: > > > > LAYER > > . . . > > TYPE LINE > > CLASS > > STYLE > > SYMBOL 'circle' > > SIZE 5 > > END > > COLOR 175 175 175 > > NAME 'Local Roads' > > END > > END > > > > > From gunter.becker at CSOGIS.DE Mon Jul 24 03:28:32 2006 From: gunter.becker at CSOGIS.DE (Becker, Gunter) Date: Mon, 24 Jul 2006 12:28:32 +0200 Subject: MapServer + MapGuide installation Message-ID: Hi list, Is there anyone having any problems installing UMN MapServer and MapGuide OS / Enterprise on the same machine? Since I've installed MapGuide on a machine where MapServer is already installed I found out that for example JPEG2000 support or ODBC does not work any longer (TIFF is still working). Someone out there who has made the same experience? Does anyone know if it is possible to have them both on the same machine without having trouble? Thanks, Gunter Becker -------------- next part -------------- An HTML attachment was scrubbed... URL: From warmerdam at POBOX.COM Mon Jul 24 06:26:41 2006 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Mon, 24 Jul 2006 09:26:41 -0400 Subject: msDrawShape(): General error message. Unknown layer type In-Reply-To: <1153727676.6004.27.camel@poseidon.fimr.fi> Message-ID: Henrik Stutz wrote: > Hi All, > > I'm trying to set up raster querying on Mapserver 4.8.3. When > "mode=query" is enabled the following error occurs: "msDrawShape(): > General error message. Unknown layer type". > > Does anyone has an idea how to solve this problem? Henrik, I don't think I have tried the query support in the way you are using it. If you can submit this as a bug report in MapServer bugzilla, and assign it to me, I'll try and reproduce your problem and track through to see what is happening. Please reduce the mapfile and dataset to the simplest form necessary to demonstrate the issue, and attach to the bug report. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | President OSGF, http://osgeo.org From madprof at GMX.CH Mon Jul 24 06:49:18 2006 From: madprof at GMX.CH (Daniel Goetz) Date: Mon, 24 Jul 2006 15:49:18 +0200 Subject: WFS and filter Message-ID: Hi coummunity, I bulid up a little WFS-server using mapserver (local mapserver installation; ms4w 1.5.3; CGI). Then I tried to map it using mapserver (on another machine in the intranet) as WFS-client. Everything works fine. Now I want to map only a single feature. Therefor I used a filter-expression in the LAYER-METADATA. This works fine too. But my question is: Is it possible to filter single features dynamically? I mean: Is it possible to filter features by writing the filter-expression in the URL of my browser (Similar to a filter-expression in a WFS-conform GetFeature-Request)? Hope you could understand what I mean. I want the user to be able to filter certain features without editing the .map-file but via specifying the filter-expression in the URL. Thank you for your ideas and helpings. regards Daniel -- Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen! Ideal f?r Modem und ISDN: http://www.gmx.net/de/go/smartsurfer From hrodriguez at SISCAT.COM.AR Mon Jul 24 06:49:09 2006 From: hrodriguez at SISCAT.COM.AR (Rodriguez, Heraldo) Date: Mon, 24 Jul 2006 10:49:09 -0300 Subject: Adding Labels to a Vector Map with Java Mapscript Message-ID: Hi Alejandro , I hope this helps. You should replicate in mapscript something similar to the configuration that appear below. I understand that he Type attribute should be setted to truetype By the way, did you check if the FONTSET attribute Is pointing to the correct location FONTSET "/usr/local/common/mapserver/font.list" Label Size 8 type truetype POSITION AUTO MINDISTANCE 100 font "vera" color 66 89 255 minfeaturesize 5 end Regards. Lic. Heraldo G. Rodriguez hrodriguez at siscat.com.ar TE 4326-4002 int 255 Dpto. Desarrollo Sistemas Catastrales S.A _____ De: Alejandro Rico [mailto:jarg58 at GMAIL.COM] Enviado el: s?bado, 22 de julio de 2006 20:21 Para: MAPSERVER-USERS at LISTS.UMN.EDU Asunto: Re: [UMN_MAPSERVER-USERS] Adding Labels to a Vector Map with Java Mapscript Hi !!! I try with your suggestions but it doesn't work. here's a sample image of the map generated, and the fontset file thanks !!! On 7/22/06, Umberto Nicoletti > wrote: Can you post a sample generated image with only this layer on and your fontset file? You could also try to remove mindistance and to set the layer's status to MS_DEFAULT. Regards, Umberto On 7/21/06, Alejandro Rico < jarg58 at gmail.com > wrote: > Hi !!! > > I'm working with a vector map made in Java Mapscript, with 2 layers, and i > need that one of them has labels to identify a way, but when the program > runs, mapserver draws a very little ununderstandable labels, and it doesn't > take the font size change. Someone can help me with this??? thanks. > > here's my code: > > Capa = new layerObj(Mapa); > Capa.setName("Vias"); > Capa.setType(mapscriptConstants.MS_LAYER_LINE); > Capa.setStatus(mapscriptConstants.MS_ON ); > String Comando = new String("the_geom FROM (select gid, > the_geom, nomb_comun||' '||nomvial as Nombre FROM "+Localidad+" WHERE codigo > IN ("+CodigoVia+","+CodigoInterseccion+")) AS ViasMapa > USING UNIQUE gid USING SRID=-1"); > Capa.setData(Comando); > Capa.setLabelitem("Nombre"); > Capa.setConnection("user=geotrans dbname=Geotrans > host=localhost"); > Capa.setConnectiontype (mapscriptConstants.MS_POSTGIS); > Clase = new classObj(Capa); > Estilo = new styleObj(Clase); > Estilo.setColor(new colorObj(255,0,0,0)); > labelObj Etiquetas = new labelObj(); > Etiquetas.setSize(18); > Etiquetas.setColor(new colorObj(0,255,255,0)); > Etiquetas.setType(mapscriptConstants.MS_TRUETYPE); > Etiquetas.setAntialias(mapscriptConstants.MS_TRUE ); > Etiquetas.setPosition(mapscriptConstants.MS_CL); > Etiquetas.setPartials(mapscriptConstants.MS_FALSE); > Etiquetas.setMindistance (300); > Etiquetas.setFont("vera"); > Clase.setLabel(Etiquetas); > > Mapa.draw().save("/usr/local/tomcat/webapps/geotrans/Mapas/mapaAcc",null); > -- > Alejandro Rico -- Alejandro Rico -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image001.jpg Type: image/jpeg Size: 1283 bytes Desc: not available URL: From Tom.Kralidis at EC.GC.CA Mon Jul 24 07:33:06 2006 From: Tom.Kralidis at EC.GC.CA (Kralidis,Tom [Burlington]) Date: Mon, 24 Jul 2006 10:33:06 -0400 Subject: WFS and filter Message-ID: Have you tried passing these as run-time variable substitutions? So, if you have a URL like: http://host/mapserv?filter_id=123456 with your mapfile constructed as follows: ... LAYER ... METADATA "wfs_filter" "id%filter_id%" ... END ... END I haven't tested this myself, but the docs at http://mapserver.gis.umn.edu/docs/reference/mapfile/variable_sub seem to suggest this would work. Hope this helps. ..Tom -----Original Message----- From: UMN MapServer Users List on behalf of Daniel Goetz Sent: Mon 24-Jul-06 09:49 To: MAPSERVER-USERS at LISTS.UMN.EDU Cc: Subject: [UMN_MAPSERVER-USERS] WFS and filter Hi coummunity, I bulid up a little WFS-server using mapserver (local mapserver installation; ms4w 1.5.3; CGI). Then I tried to map it using mapserver (on another machine in the intranet) as WFS-client. Everything works fine. Now I want to map only a single feature. Therefor I used a filter-expression in the LAYER-METADATA. This works fine too. But my question is: Is it possible to filter single features dynamically? I mean: Is it possible to filter features by writing the filter-expression in the URL of my browser (Similar to a filter-expression in a WFS-conform GetFeature-Request)? Hope you could understand what I mean. I want the user to be able to filter certain features without editing the .map-file but via specifying the filter-expression in the URL. Thank you for your ideas and helpings. regards Daniel -- Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen! Ideal f?r Modem und ISDN: http://www.gmx.net/de/go/smartsurfer From jvanulde at NRCAN.GC.CA Mon Jul 24 10:20:44 2006 From: jvanulde at NRCAN.GC.CA (Van Ulden, Joost) Date: Mon, 24 Jul 2006 13:20:44 -0400 Subject: MapServer SLD RasterSymbolizer In-Reply-To: A<2576812186CDD411BF1500508B6DCE950D17F48A@ecnwri1.ontario.int.ec.gc.ca> Message-ID: I agree Tom, I think MapServer should be picking up the ColorMapEntry/@label when doing raster legends. Is there plans for this? Cheers, Joost -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] Sent: Saturday, July 22, 2006 8:20 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] MapServer SLD RasterSymbolizer Sorry, meant one ColorMap per Rule :) -----Original Message----- From: UMN MapServer Users List on behalf of Kralidis,Tom [Burlington] Sent: Sat 22-Jul-06 11:01 To: MAPSERVER-USERS at LISTS.UMN.EDU Cc: Subject: Re: [UMN_MAPSERVER-USERS] MapServer SLD RasterSymbolizer The OGC:SLD 1.0.0 schema allows for one ColorMap element with 0 or more ColorMapEntry elements. MapServer typically picks up Rule/Name and applies them as a legend title. For rasters, because of the way the schema is defined, I think MapServer should be picking up ColorMapEntry/@label when doing raster legends, but then what happens when someone creates a Rule/Name value earlier? ..Tom -----Original Message----- From: UMN MapServer Users List on behalf of Van Ulden, Joost Sent: Fri 21-Jul-06 18:57 To: MAPSERVER-USERS at lists.umn.edu Cc: Subject: [UMN_MAPSERVER-USERS] MapServer SLD RasterSymbolizer Hi all, I am unsure how the raster symbolizer is supposed to work in MapServer. Do I create one Rule in the SLD with one ColorMap that has one or more ColorMapEntries? Or can I create a rule for each ColorMapEntry? Either way works (works using a filter too!!!) but ColorMapEntries can't be given a name. It is preferable from my point of view to create a rule for each ColorMapEntry so that a decent legend can be generated. Thoughts anyone? Joost From perrygeo at GMAIL.COM Mon Jul 24 11:08:28 2006 From: perrygeo at GMAIL.COM (Matthew Perry) Date: Mon, 24 Jul 2006 11:08:28 -0700 Subject: mapserver as wms client - gracefully handling errors Message-ID: Hey folks, I've set up a mapfile with a number of datasets plus the terraserver wms. When browsing parts of the earth not covered by terraserver, however, an in-image error message appears: msDrawMap(): WMS connection error. Failed to draw WMS layer named 'Terraserver_DOQ'. This most likely happened because the remote WMS server returned an invalid image, and XML exception or another unexpected result in response to the GetMap request. Also check and make sure that the layer's connection URL is valid. I can get the wms client and my wms server to return xml instead of an inline error but the real question is, how do I force mapserver to simply ignore the cascaded wms when an error occurs so that it can still render the other data in the mapfile without returning an exception? Here's my mapfile entry for reference: LAYER NAME "Terraserver_DOQ" STATUS OFF TYPE RASTER GROUP "main" CONNECTIONTYPE WMS CONNECTION "http://terraservice.net/OgcMap.ashx?" DEBUG ON METADATA "wms_srs" "EPSG:4326" "wms_title" "Digital_Orthophoto" "wms_name" "DOQ" "wms_server_version" "1.1.1" "wms_exceptions_format" "application/vnd.ogc.se_xml" "wms_format" "image/jpeg" "wms_layers" "doq" END MINSCALE 10000 MAXSCALE 40000 PROJECTION "init=epsg:4326" END END -- Matt Perry perrygeo at gmail.com http://www.perrygeo.net From xslove at CENTRUM.CZ Wed Jul 19 02:31:45 2006 From: xslove at CENTRUM.CZ (xslove) Date: Wed, 19 Jul 2006 02:31:45 -0700 Subject: map drawing via mapscript has incorrect extent Message-ID: Hi, when I will draw map with specific extent, that has ratio 1:1.5 - little heighter (my data has WGS-84 coords) features are drawn with ratio 1:1 !!! When I call mapserver via cgi request, specific extent is kept and drawing is correctly resized. I use this code: // set drawing width map.setWidth(width); // set drawing height map.setHeight(height); // set extent rectObj extent = new rectObj(request.getExtentMinX(), request.getExtentMinY(), request.getExtentMaxX(), request.getExtentMaxY(), mapscriptConstants.MS_FALSE); map.setExtent(extent); // create image imageObj image = map.draw(); -- View this message in context: http://www.nabble.com/map-drawing-via-mapscript-has-incorrect-extent-tf1965324.html#a5393219 Sent from the Mapserver - User forum at Nabble.com. From xslove at CENTRUM.CZ Wed Jul 19 02:37:57 2006 From: xslove at CENTRUM.CZ (xslove) Date: Wed, 19 Jul 2006 02:37:57 -0700 Subject: mapserv not following extents? In-Reply-To: Message-ID: hi, I have equivalent problem. I use java mapscript for map drawing and it behave identically. It works right when I call mapserv via cgi request, but I don't know what to do within my java code for mapscript. have you solved this behaviour??? Radim -- View this message in context: http://www.nabble.com/mapserv-not-following-extents--tf1643885.html#a5393284 Sent from the Mapserver - User forum at Nabble.com. From bartvde at XS4ALL.NL Mon Jul 24 12:42:13 2006 From: bartvde at XS4ALL.NL (Bart van den Eijnden (OSGIS)) Date: Mon, 24 Jul 2006 21:42:13 +0200 Subject: mapserver as wms client - gracefully handling errors In-Reply-To: <5383fa5e0607241108v65e60e3p49d7a7a94deb23d5@mail.gmail.com> Message-ID: Hi Matthew, I haven't tested, but the following could work (it should according to the WMS spec :-) ): "wms_exceptions_format "*application/vnd.ogc.se_blank *" Best regards, Bart Matthew Perry wrote: > Hey folks, > > I've set up a mapfile with a number of datasets plus the terraserver > wms. When browsing parts of the earth not covered by terraserver, > however, an in-image error message appears: > > msDrawMap(): WMS connection error. Failed to draw WMS layer named > 'Terraserver_DOQ'. This most likely happened because the > remote WMS server returned an invalid image, and XML exception or > another unexpected result in response to the GetMap request. Also > check and make sure that the layer's connection URL is valid. > > I can get the wms client and my wms server to return xml instead of an > inline error but the real question is, how do I force mapserver to > simply ignore the cascaded wms when an error occurs so that it can > still render the other data in the mapfile without returning an > exception? > > Here's my mapfile entry for reference: > > > LAYER > NAME "Terraserver_DOQ" > STATUS OFF > TYPE RASTER > GROUP "main" > CONNECTIONTYPE WMS > CONNECTION "http://terraservice.net/OgcMap.ashx?" > DEBUG ON > METADATA > "wms_srs" "EPSG:4326" > "wms_title" "Digital_Orthophoto" > "wms_name" "DOQ" > "wms_server_version" "1.1.1" > "wms_exceptions_format" "application/vnd.ogc.se_xml" > "wms_format" "image/jpeg" > "wms_layers" "doq" > END > MINSCALE 10000 > MAXSCALE 40000 > PROJECTION > "init=epsg:4326" > END > END > -- Bart van den Eijnden OSGIS, Open Source GIS http://www.osgis.nl From bartvde at XS4ALL.NL Mon Jul 24 12:43:29 2006 From: bartvde at XS4ALL.NL (Bart van den Eijnden (OSGIS)) Date: Mon, 24 Jul 2006 21:43:29 +0200 Subject: mapserver as wms client - gracefully handling errors In-Reply-To: <44C52294.3030808@xs4all.nl> Message-ID: Something went wrong with e-mail formatting (cut and paste from OGC pdf), for clarity, it should be: "wms_exceptions_format "application/vnd.ogc.se_blank" Best regards, Bart Bart van den Eijnden (OSGIS) wrote: > Hi Matthew, > > I haven't tested, but the following could work (it should according to > the WMS spec :-) ): > > "wms_exceptions_format "*application/vnd.ogc.se_blank *" > > > Best regards, > Bart > > Matthew Perry wrote: > >> Hey folks, >> >> I've set up a mapfile with a number of datasets plus the terraserver >> wms. When browsing parts of the earth not covered by terraserver, >> however, an in-image error message appears: >> >> msDrawMap(): WMS connection error. Failed to draw WMS layer named >> 'Terraserver_DOQ'. This most likely happened because the >> remote WMS server returned an invalid image, and XML exception or >> another unexpected result in response to the GetMap request. Also >> check and make sure that the layer's connection URL is valid. >> >> I can get the wms client and my wms server to return xml instead of an >> inline error but the real question is, how do I force mapserver to >> simply ignore the cascaded wms when an error occurs so that it can >> still render the other data in the mapfile without returning an >> exception? >> >> Here's my mapfile entry for reference: >> >> >> LAYER >> NAME "Terraserver_DOQ" >> STATUS OFF >> TYPE RASTER >> GROUP "main" >> CONNECTIONTYPE WMS >> CONNECTION "http://terraservice.net/OgcMap.ashx?" >> DEBUG ON >> METADATA >> "wms_srs" "EPSG:4326" >> "wms_title" "Digital_Orthophoto" >> "wms_name" "DOQ" >> "wms_server_version" "1.1.1" >> "wms_exceptions_format" "application/vnd.ogc.se_xml" >> "wms_format" "image/jpeg" >> "wms_layers" "doq" >> END >> MINSCALE 10000 >> MAXSCALE 40000 >> PROJECTION >> "init=epsg:4326" >> END >> END >> > > -- Bart van den Eijnden OSGIS, Open Source GIS http://www.osgis.nl From punkish at EIDESIS.ORG Mon Jul 24 12:48:47 2006 From: punkish at EIDESIS.ORG (P Kishor) Date: Mon, 24 Jul 2006 14:48:47 -0500 Subject: shp2pgsql | psql error: fseek(...) failed on DBF file. Message-ID: while running shp2pgsql foo foo | psql # shp2pgsql foo foo | psql -d foo I get a bunch of... fseek(-2045813584) failed on DBF file. fseek(-2045813584) failed on DBF file. before I Ctrl-C the operation. Any ideas why, and how I can correct it? By the way, I get the same errors even when I two-step the operation and try to create the interim sql file. What can I look for in my DBF file to try and correct it? Many thanks, -- Puneet Kishor http://punkish.eidesis.org/ Nelson Inst. for Env. Studies, UW-Madison http://www.ies.wisc.edu/ Open Source Geospatial Foundation https://edu.osgeo.org/ From kevin at PEOPLEGIS.COM Mon Jul 24 14:20:11 2006 From: kevin at PEOPLEGIS.COM (Kevin Flanders) Date: Mon, 24 Jul 2006 17:20:11 -0400 Subject: virtual spatial data fails Message-ID: I am trying to add a virtual spatial data layer to my project and failing! I have created my DSN, and tested it successfully with ogrinfo. I then added the following to my mapfile: LAYER NAME "Permits" GROUP "Permits" CONNECTION " ODBC:@Data_txt permitsummary.csv wkbPoint " CONNECTIONTYPE OGR DATA "permitsummary" METADATA "wms_srs" "88888" "wms_title" "Permit Points" END STATUS on TOLERANCE 5 SIZEUNITS pixels TYPE POINT CLASS NAME "Permits" COLOR 255 0 0 OUTLINECOLOR 0 0 0 SIZE 10 END END My map will not draw....any ideas? Kevin -------------- next part -------------- An HTML attachment was scrubbed... URL: From ltrevinoh at GMAIL.COM Mon Jul 24 18:38:54 2006 From: ltrevinoh at GMAIL.COM (=?ISO-8859-1?Q?Luis_Trevi=F1o?=) Date: Mon, 24 Jul 2006 20:38:54 -0500 Subject: panning and zoomin and out, and ect.................. In-Reply-To: <20060721202224.63333.qmail@web55709.mail.re3.yahoo.com> Message-ID: 2006/7/21, Albert Anderson : > > Hi, > > I figure out my images. Does anyone have a _java script for using a > image for panning. I have images set for the corners of my map. I want to > use them to pan. > You can use something like this, you have to handle your width and height of your image: alto = height, ancho = width. function paneo(direccion,alto,ancho) { var x,y; var pansize = 0.75; if(direccion == 'n') { x = (ancho-1)/2.0; y = 0 - (alto * pansize)/2.0; } else if(direccion == 'nw') { x = 0 - (ancho * pansize)/2.0; y = 0 - (ancho * pansize)/2.0; } else if(direccion == 'ne') { x = (ancho-1) + (ancho * pansize)/2.0; y = 0 - (alto * pansize)/2.0; } else if(direccion == 's') { x = (ancho-1)/2.0; y = (alto-1) + (alto * pansize)/2.0; } else if(direccion == 'sw') { x = 0 - (ancho * pansize)/2.0; y = (alto-1) + (alto * pansize)/2.0; } else if(direccion == 'se') { x = (ancho-1) + (ancho * pansize)/2.0; y = (alto-1) + (alto * pansize)/2.0; } else if(direccion == 'e') { x = (ancho-1) + (ancho * pansize)/2.0; y = (alto-1)/2.0; } else if(direccion == 'w') { x = 0 - (ancho * pansize)/2.0; y = (alto-1)/2.0; } document.mapserv.imgxy.value = x + " " + y; document.mapserv.submit(); } Anyother question, is there a _java script for images to zoom-in and out? > you can use the zoomdir and the zoom values within your template, like: for a zoom out., so you can use radio buttons to manage this values > One more question, I have a refresh button and pan radio button, then we I > click refresh to take a layer off it moves the projective image. Why? But > when I am on zoomin radio button and click refresh it acts like its panning? > Why? > > Thanks, > > Albert > > __________________________________________________ > Do You Yahoo!? > Tired of spam? Yahoo! Mail has the best spam protection around > http://mail.yahoo.com > Hope this helps. Regards, Luis -------------- next part -------------- An HTML attachment was scrubbed... URL: From kkoehn at ASPIREDILLUSION.COM Mon Jul 24 18:49:58 2006 From: kkoehn at ASPIREDILLUSION.COM (Kelly Koehn) Date: Mon, 24 Jul 2006 20:49:58 -0500 Subject: National Atlas Projections... driving me crazy! Message-ID: I've been working with mapserver for quite some time now and I thought I'd made some strides in the areas of projections but I seem to have went into it all backwards. I started out with the National Atlas datasets for counties and states. I've come to the conclusion that the projection they want you to use is 'latlong', ellps is 'GRS80', and datum is 'NAD83'. The names are 'statesp020' and 'countyp020' I believe. This is all fine and dandy except unless you project the map as LCC it seems to be vertically challenged. For instance, the county that I live in (Sedgwick, in Kansas) is not a rectangle.. its square. I've found some examples of the lat/long to LCC projection but most seem a bit foggy. My real question has to do with the whole 'lat/long to meters' conversion and how to make heads or tails of the 'cs2cs' program that supposedly converts the values. Is there some magic trick to this program that I'm not finding? I have some other questions about exactly what the lat_0, lat_1, lat_2, lon_0 values should be for the LCC projection but I'll save those for another time. Any help would be great! I'm about ready to rip my hair out! Kelly -------------- next part -------------- An HTML attachment was scrubbed... URL: From richard.greenwood at GMAIL.COM Mon Jul 24 19:08:11 2006 From: richard.greenwood at GMAIL.COM (Richard Greenwood) Date: Mon, 24 Jul 2006 20:08:11 -0600 Subject: Coordinate System Transformation demo Message-ID: I have been working on a port of the Proj.4 cs2cs program to JavaScript for use in web map clients. The source is at: http://svn.codehaus.org/mapbuilder/cscs/trunk/cscs/ and mailing list: mapbuilder-proj at lists.sourceforge.net I put a demo at: http://www2.tetonwyo.org/mapserver/tcd.html which uses Steve Lime's dBox client. The project is nowhere near finished, but I want to make people aware of it. Rich -- Richard Greenwood richard.greenwood at gmail.com www.greenwoodmap.com From tylermitchell at SHAW.CA Mon Jul 24 20:42:46 2006 From: tylermitchell at SHAW.CA (Tyler Mitchell) Date: Mon, 24 Jul 2006 20:42:46 -0700 Subject: National Atlas Projections... driving me crazy! In-Reply-To: <001b01c6af8c$a31e44f0$6801a8c0@WS84780> Message-ID: Hi Kelly, I'm not familiar with your national atlas specific projections, but do you have more details about the LCC projection you are referring to? LCC is a general class of projection that will have some more localised parameters depending on, generally speaking, where you are centering your map. The lat_0/1/2 and lon_0 values might change depending on where you are doing your mapping. Do you already know the more full description of the LCC projection you have in mind? Tyler On 24-Jul-06, at 6:49 PM, Kelly Koehn wrote: > I've been working with mapserver for quite some time now and I > thought I'd made some strides in the areas of projections but I > seem to have went into it all backwards. I started out with the > National Atlas datasets for counties and states. I've come to the > conclusion that the projection they want you to use is 'latlong', > ellps is 'GRS80', and datum is 'NAD83'. The names are 'statesp020' > and 'countyp020' I believe. > > This is all fine and dandy except unless you project the map as LCC > it seems to be vertically challenged. For instance, the county > that I live in (Sedgwick, in Kansas) is not a rectangle.. its > square. I've found some examples of the lat/long to LCC projection > but most seem a bit foggy. > > My real question has to do with the whole 'lat/long to meters' > conversion and how to make heads or tails of the 'cs2cs' program > that supposedly converts the values. Is there some magic trick > to this program that I'm not finding? > > I have some other questions about exactly what the lat_0, lat_1, > lat_2, lon_0 values should be for the LCC projection but I'll save > those for another time. > > Any help would be great! I'm about ready to rip my hair out! > > Kelly > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From perrygeo at GMAIL.COM Mon Jul 24 21:05:24 2006 From: perrygeo at GMAIL.COM (Matthew Perry) Date: Mon, 24 Jul 2006 21:05:24 -0700 Subject: mapserver as wms client - gracefully handling errors In-Reply-To: <44C522E1.9080102@xs4all.nl> Message-ID: Bart, Thanks for the tip. It did not seem to have any effect, however. This may be compounded by the fact that another cascaded WMS server in the chain (the NASA JPL site) is down today. I'll continue experimenting and let everyone know what I discover. If anyone has any tips on how to prevent one bad cascaded WMS service from ruining the entire image request, please let me know. - matt On 7/24/06, Bart van den Eijnden (OSGIS) wrote: > Something went wrong with e-mail formatting (cut and paste from OGC > pdf), for clarity, it should be: > > "wms_exceptions_format "application/vnd.ogc.se_blank" > > Best regards, > Bart > > Bart van den Eijnden (OSGIS) wrote: > > > Hi Matthew, > > > > I haven't tested, but the following could work (it should according to > > the WMS spec :-) ): > > > > "wms_exceptions_format "*application/vnd.ogc.se_blank *" > > > > > > Best regards, > > Bart > > > > Matthew Perry wrote: > > > >> Hey folks, > >> > >> I've set up a mapfile with a number of datasets plus the terraserver > >> wms. When browsing parts of the earth not covered by terraserver, > >> however, an in-image error message appears: > >> > >> msDrawMap(): WMS connection error. Failed to draw WMS layer named > >> 'Terraserver_DOQ'. This most likely happened because the > >> remote WMS server returned an invalid image, and XML exception or > >> another unexpected result in response to the GetMap request. Also > >> check and make sure that the layer's connection URL is valid. > >> > >> I can get the wms client and my wms server to return xml instead of an > >> inline error but the real question is, how do I force mapserver to > >> simply ignore the cascaded wms when an error occurs so that it can > >> still render the other data in the mapfile without returning an > >> exception? > >> > >> Here's my mapfile entry for reference: > >> > >> > >> LAYER > >> NAME "Terraserver_DOQ" > >> STATUS OFF > >> TYPE RASTER > >> GROUP "main" > >> CONNECTIONTYPE WMS > >> CONNECTION "http://terraservice.net/OgcMap.ashx?" > >> DEBUG ON > >> METADATA > >> "wms_srs" "EPSG:4326" > >> "wms_title" "Digital_Orthophoto" > >> "wms_name" "DOQ" > >> "wms_server_version" "1.1.1" > >> "wms_exceptions_format" "application/vnd.ogc.se_xml" > >> "wms_format" "image/jpeg" > >> "wms_layers" "doq" > >> END > >> MINSCALE 10000 > >> MAXSCALE 40000 > >> PROJECTION > >> "init=epsg:4326" > >> END > >> END > >> > > > > > > > -- > Bart van den Eijnden > OSGIS, Open Source GIS > http://www.osgis.nl > > -- Matt Perry perrygeo at gmail.com http://www.perrygeo.net From perrygeo at GMAIL.COM Mon Jul 24 21:13:20 2006 From: perrygeo at GMAIL.COM (Matthew Perry) Date: Mon, 24 Jul 2006 21:13:20 -0700 Subject: National Atlas Projections... driving me crazy! In-Reply-To: <001b01c6af8c$a31e44f0$6801a8c0@WS84780> Message-ID: Kelly, I assume you're refering to the US National Atlas coordinate system, right? There is an EPSG code corresponding to this ( http://ocean.csl.co.uk/OceanBrowser/browseDetail.php?DB=epsg_coordinatereferencesystem&field=coord_ref_sys_code&code=2163 ) So any data layers that were in this national atlas projection could use a projection block like: PROJECTION "init=epsg:2193" END Likewise the same projection block could be used to define the projection of the map output. Understanding the difference between a layer's native projection and the map's overall output projection is absolutely essential. Perhaps you could provide us with some more details and perhaps some mapfile samples? - matt On 7/24/06, Kelly Koehn wrote: > > > I've been working with mapserver for quite some time now and I thought I'd > made some strides in the areas of projections but I seem to have went into > it all backwards. I started out with the National Atlas datasets for > counties and states. I've come to the conclusion that the projection they > want you to use is 'latlong', ellps is 'GRS80', and datum is 'NAD83'. The > names are 'statesp020' and 'countyp020' I believe. > > This is all fine and dandy except unless you project the map as LCC it seems > to be vertically challenged. For instance, the county that I live in > (Sedgwick, in Kansas) is not a rectangle.. its square. I've found some > examples of the lat/long to LCC projection but most seem a bit foggy. > > My real question has to do with the whole 'lat/long to meters' conversion > and how to make heads or tails of the 'cs2cs' program that supposedly > converts the values. Is there some magic trick to this program that I'm > not finding? > > I have some other questions about exactly what the lat_0, lat_1, lat_2, > lon_0 values should be for the LCC projection but I'll save those for > another time. > > Any help would be great! I'm about ready to rip my hair out! > > Kelly > -- Matt Perry perrygeo at gmail.com http://www.perrygeo.net From kkoehn at ASPIREDILLUSION.COM Mon Jul 24 21:22:02 2006 From: kkoehn at ASPIREDILLUSION.COM (Kelly Koehn) Date: Mon, 24 Jul 2006 23:22:02 -0500 Subject: [SPAM] Re: [UMN_MAPSERVER-USERS] National Atlas Projections... driving me crazy! Message-ID: Tyler: Thanks for the prompt response. LCC may be the incorrect projection that I need to use but it seems to be the only projection that I can find that gives me the counties in the correct (porportional sp?) size. In the end I would really like to use a Mercator projection but alas I couldn't find any examples to figure out how to make it work. The specific National Atlas data I'm using is here: http://edcftp.cr.usgs.gov/pub/data/nationalatlas/countyp020.tar.gz According to the text file that came with the data they give the following information about the data: Latitude/Longitude Resolution: 0.000278 Geographic Coordinates: Decimal Degrees Datum: NAD83 Ellipsoid: GRS1980 Semi-major axis: 6378137 Denomiator of Flattening: 298.257222 Like I said, so far I've been able to get it to produce a map in LCC but its only because I've been playing around with the settings to 'make' it work. There is a sample map available here: http://www.aspiredillusion.com/cgi-bin/mapserv?map=fmfinder.map&mode=map In the end my goal is to be able to specify a specific latitude/longitude as a center and be able to plot out so many degrees, miles, whatever out to make a complete map for another project (hence why I think the Mercator projection would be best). If any of this makes any sense at all let me know because I feel like I'm rambling! :) By the way... another person suggested to use the EPSG codes... unfortunately my installation is not too happy with using those. It keeps giving me a Proj.4 error basically saying it can't find the file even though they are located in /usr/local/share/proj. For now I've just substituted in the definition (or is this bad?) Here is a copy of my map file: MAP NAME USA STATUS ON IMAGETYPE PNG SIZE 400 400 IMAGECOLOR 255 255 255 SHAPEPATH "/home/aspiredillusion/cgi-bin/gis" SYMBOLSET "symbol.ref" FONTSET "font.ref" extent 2086624.47 2893493.42 2267537.24 3111554.05 UNITS METERS PROJECTION "proj=lcc" "ellps=GRS80" "datum=NAD83" # "lat_0=38" # Latitude CENTER # "lat_1=38" # Set same as lat_0 # "lon_0=-90" # Longitude CENTER # "x_0=-80000" # Offset for longitude # "y_0=175000" # Offset for latitude "lat_0=24" "lat_1=50" "lon_0=-99" END LAYER NAME "County" DATA "countyp020" TYPE LINE STATUS DEFAULT PROJECTION "proj=latlong" "ellps=GRS80" "datum=NAD83" END CLASS OUTLINECOLOR 255 0 0 END END LAYER NAME "State" DATA "statesp020" TYPE LINE STATUS DEFAULT PROJECTION "proj=latlong" "ellps=GRS80" "datum=NAD83" END CLASS COLOR 0 0 0 END END LAYER NAME "pop_pnt" DATA "pop_pnt" TYPE POINT STATUS DEFAULT LABELITEM "NAME" PROJECTION "proj=latlong" "ellps=GRS80" "datum=NAD83" END CLASS STYLE SYMBOL "circle" SIZE 3 COLOR 0 0 0 END LABEL COLOR 0 0 0 FONT "arial" SIZE 10 TYPE TRUETYPE POSITION AUTO OUTLINECOLOR 255 255 255 BUFFER 8 END END END LAYER NAME "Notation" STATUS DEFAULT TRANSFORM FALSE TYPE ANNOTATION FEATURE POINTS 33 390 # Across, Down END TEXT 'FMFinder' END CLASS LABEL FONT "arial" TYPE TRUETYPE SIZE 10 BUFFER 1 COLOR 0 128 255 FORCE TRUE BACKGROUNDCOLOR 255 255 255 END END END END ----- Original Message ----- From: Tyler Mitchell To: Kelly Koehn Cc: MAPSERVER-USERS at LISTS.UMN.EDU Sent: Monday, July 24, 2006 10:42 PM Subject: [SPAM] Re: [UMN_MAPSERVER-USERS] National Atlas Projections... driving me crazy! Hi Kelly, I'm not familiar with your national atlas specific projections, but do you have more details about the LCC projection you are referring to? LCC is a general class of projection that will have some more localised parameters depending on, generally speaking, where you are centering your map. The lat_0/1/2 and lon_0 values might change depending on where you are doing your mapping. Do you already know the more full description of the LCC projection you have in mind? Tyler On 24-Jul-06, at 6:49 PM, Kelly Koehn wrote: I've been working with mapserver for quite some time now and I thought I'd made some strides in the areas of projections but I seem to have went into it all backwards. I started out with the National Atlas datasets for counties and states. I've come to the conclusion that the projection they want you to use is 'latlong', ellps is 'GRS80', and datum is 'NAD83'. The names are 'statesp020' and 'countyp020' I believe. This is all fine and dandy except unless you project the map as LCC it seems to be vertically challenged. For instance, the county that I live in (Sedgwick, in Kansas) is not a rectangle.. its square. I've found some examples of the lat/long to LCC projection but most seem a bit foggy. My real question has to do with the whole 'lat/long to meters' conversion and how to make heads or tails of the 'cs2cs' program that supposedly converts the values. Is there some magic trick to this program that I'm not finding? I have some other questions about exactly what the lat_0, lat_1, lat_2, lon_0 values should be for the LCC projection but I'll save those for another time. Any help would be great! I'm about ready to rip my hair out! Kelly -------------- next part -------------- An HTML attachment was scrubbed... URL: From tylermitchell at SHAW.CA Mon Jul 24 21:41:00 2006 From: tylermitchell at SHAW.CA (Tyler Mitchell) Date: Mon, 24 Jul 2006 21:41:00 -0700 Subject: Coordinate System Transformation demo In-Reply-To: Message-ID: On 24-Jul-06, at 7:08 PM, Richard Greenwood wrote: > I have been working on a port of the Proj.4 cs2cs program to > JavaScript for use in web map clients... I'm a javascript know-nothing, but wondered how this compares with: http://datashare.gis.unbc.ca/gctp-js/index.php ? Sounded similar, though I see gctp-js isn't a port of proj.4 but can't be far off with a bit of work, can it? I wonder how many other web map clients are reinventing the coordinate transformation wheel on this. Is there one we can all gather round? Js-n00bingly yours, Tyler From bartvde at XS4ALL.NL Mon Jul 24 23:27:22 2006 From: bartvde at XS4ALL.NL (Bart van den Eijnden (OSGIS)) Date: Tue, 25 Jul 2006 08:27:22 +0200 Subject: mapserver as wms client - gracefully handling errors In-Reply-To: <5383fa5e0607242105x39b6a4b6qb3deab7ad34b91db@mail.gmail.com> Message-ID: Hi Matthew, please bear in mind that this is an optional exception format for the WMS spec, so it could be that the WMS server you are accessing does not support it (check the WMS GetCapabilities response). Best regards, Bart > Bart, > > Thanks for the tip. It did not seem to have any effect, however. > > This may be compounded by the fact that another cascaded WMS server in > the chain (the NASA JPL site) is down today. I'll continue > experimenting and let everyone know what I discover. > > If anyone has any tips on how to prevent one bad cascaded WMS service > from ruining the entire image request, please let me know. > > - matt > > On 7/24/06, Bart van den Eijnden (OSGIS) wrote: >> Something went wrong with e-mail formatting (cut and paste from OGC >> pdf), for clarity, it should be: >> >> "wms_exceptions_format "application/vnd.ogc.se_blank" >> >> Best regards, >> Bart >> >> Bart van den Eijnden (OSGIS) wrote: >> >> > Hi Matthew, >> > >> > I haven't tested, but the following could work (it should according to >> > the WMS spec :-) ): >> > >> > "wms_exceptions_format "*application/vnd.ogc.se_blank *" >> > >> > >> > Best regards, >> > Bart >> > >> > Matthew Perry wrote: >> > >> >> Hey folks, >> >> >> >> I've set up a mapfile with a number of datasets plus the terraserver >> >> wms. When browsing parts of the earth not covered by terraserver, >> >> however, an in-image error message appears: >> >> >> >> msDrawMap(): WMS connection error. Failed to draw WMS layer named >> >> 'Terraserver_DOQ'. This most likely happened because the >> >> remote WMS server returned an invalid image, and XML exception or >> >> another unexpected result in response to the GetMap request. Also >> >> check and make sure that the layer's connection URL is valid. >> >> >> >> I can get the wms client and my wms server to return xml instead of >> an >> >> inline error but the real question is, how do I force mapserver to >> >> simply ignore the cascaded wms when an error occurs so that it can >> >> still render the other data in the mapfile without returning an >> >> exception? >> >> >> >> Here's my mapfile entry for reference: >> >> >> >> >> >> LAYER >> >> NAME "Terraserver_DOQ" >> >> STATUS OFF >> >> TYPE RASTER >> >> GROUP "main" >> >> CONNECTIONTYPE WMS >> >> CONNECTION "http://terraservice.net/OgcMap.ashx?" >> >> DEBUG ON >> >> METADATA >> >> "wms_srs" "EPSG:4326" >> >> "wms_title" "Digital_Orthophoto" >> >> "wms_name" "DOQ" >> >> "wms_server_version" "1.1.1" >> >> "wms_exceptions_format" "application/vnd.ogc.se_xml" >> >> "wms_format" "image/jpeg" >> >> "wms_layers" "doq" >> >> END >> >> MINSCALE 10000 >> >> MAXSCALE 40000 >> >> PROJECTION >> >> "init=epsg:4326" >> >> END >> >> END >> >> >> > >> > >> >> >> -- >> Bart van den Eijnden >> OSGIS, Open Source GIS >> http://www.osgis.nl >> >> > > > -- > Matt Perry > perrygeo at gmail.com > http://www.perrygeo.net > From m.meier at SPIEKERMANN.DE Mon Jul 24 23:49:26 2006 From: m.meier at SPIEKERMANN.DE (Manfred Meier) Date: Tue, 25 Jul 2006 08:49:26 +0200 Subject: shp2pgsql | psql error: fseek(...) failed on DBF file. In-Reply-To: Message-ID: Hello, I hope this is not trivial: - does dbfdump and dbfdump --info give you correct info about yout dbf file? - i had some time ago seg faults with shp2img because my dbf file had less records than i had shapes in the shapefile. it could be that shp2pgsql does not generate seg faults and instead makes a wrong fseek. Manfred P Kishor schrieb: > while running > > shp2pgsql foo foo | psql > > # shp2pgsql foo foo | psql -d foo > > I get a bunch of... > fseek(-2045813584) failed on DBF file. > fseek(-2045813584) failed on DBF file. > > before I Ctrl-C the operation. Any ideas why, and how I can correct it? > > By the way, I get the same errors even when I two-step the operation > and try to create the interim sql file. What can I look for in my DBF > file to try and correct it? > > > Many thanks, > From crisricana at GMAIL.COM Tue Jul 25 03:11:08 2006 From: crisricana at GMAIL.COM (cris ricana) Date: Tue, 25 Jul 2006 18:11:08 +0800 Subject: mapscript map loading error In-Reply-To: <44BF67D0.20909@spiekermann.de> Message-ID: Hi Manfred! Sorry, I haven't replied sooner. I have been away from the office for a few days and had just got back to fix this problem. I did what your new suggestions, with no success. But I returned to the tmp folder and your suggestion if it is indeed readable and writeable by apache and mapserver. I experimented on three locations for my tmp-folder: in /var/www/tmp; in /usr/local/tmp; and /usr/local/apache2/htdocs/tmp, making all three locations readable and writeable. Then I used these three locations successively in the IMAGEPATH line of the map file. I also made two versions of a html file, one has CGI forms using mapserv and the other one has PHP mapscripts extensions and tags. Using the CGI html file, mapserv had successfully written images to all three locations, but could only read/show the images from the /usr/local/apache2/htdocs/tmp folder. Mapscript can read/write on /usr/local/apache2/htdocs/tmp, but not on the other two. Therefore, it seems that the matter is all about permissions of the tmp-dir and the created images as well. To make these folders readable/writable, I used "chmod 777", a command I'm not comfortable using. Could there be safer way of doing these? I still don't know why both mapserv and mapscript is ok with me using /usr/local/apache2/htdocs/tmp, but not on the others. I had to admit I'm not really a linx expert, so I probably am embarrassing myself with these questions, so well... Maricris On 7/20/06, Manfred Meier wrote: > Hello, > > some additional "ideas": (You know, I'm not a php man) > > - is in your php.ini display_errors set to "on", so that erors are > shown? And are the errors and warnings activated? > > - you have this echo's in yout script as debug output. Can you insert an > echo after each of these 3 lines too, > > $map = ms_newMapObj($map_path); > > $image=$map->draw(); > > $image_url=$image->saveWebImage(); > so that you ca see what the last executed statement is? > > Manfred > > > cris ricana schrieb: > > > Hi! > > > > Here's the answer to your questions: > > > >> - is your tmp-dir writeable for the webserver? > > > > > > Yes it is. I've tested my mapserver installation successfully using > > CGI forms (the itasca samples, in particular) instead of PHP > > /mapscript. These CGI webpages performs well and writes their images > > in a temp folder I made (/usr/local/apache2/htdocs/tmp/). > > > > > >> - if you look at the source-code for the html-page in your browser, does > >> it show the correct url in the image tag? > > > > > > The output in the browser (as well as the source code) is simply these > > text: > > > > "php_mapscript.so loaded. /usr/local/apache2/htdocs/recipe1/hello.map" > > > > Which are text echoed from the php code (see my php code below) from > > line 3 and 5. There are no lines for the image at all. Actually, I > > added these text to locate where the problem is in my php code. > > Otherwise, the output in the browser would be a blank page. > > > > > > Regards, > > Maricris > > > > > > > > > > > > > > On 7/20/06, Manfred Meier wrote: > > > >> Hello, > >> > >> - is your tmp-dir writeable for the webserver? > >> - if you look at the source-code for the html-page in your browser, does > >> it show the correct url in the image tag? > >> > >> Manfred > >> > >> > >> cris ricana schrieb: > >> > >> > Hello! > >> > > >> > I'd like some help in using PHP/Mapscript. I have a freshly installed > >> > Mapserver machine and is testing some simple php webpages to see if > >> > everything is working, especially PHP/Mapscript: > >> > > >> > >> > dl ("php_mapscript.so"); > >> > echo("php_mapscript.so loaded.\n"); //to see if the > >> library will > >> > sucessfully load. > >> > $map_path="/usr/local/apache2/htdocs/recipe1/hello.map"; > >> > echo($map_path); // absolute path > >> > to the map file > >> > $map = ms_newMapObj($map_path); > >> > $image=$map->draw(); > >> > $image_url=$image->saveWebImage(); > >> > ?> > >> > > >> > > >> > Mapserver "hello world" > >> > > >> > > >> > > >> >

This is the simplest example I could come up with.

> >> > ... > >> > > >> > > >> > > >> > I'm using the following map file. It should produce an image with just > >> > a line of text in it: > >> > > >> > MAP > >> > NAME HELLO > >> > STATUS ON > >> > EXTENT 0 0 4000 3000 > >> > SIZE 400 300 > >> > IMAGECOLOR 200 255 255 > >> > WEB > >> > IMAGEPATH "/usr/local/apache2/htdocs/tmp/" > >> > IMAGEURL "/tmp/" > >> > END > >> > > >> > LAYER > >> > NAME "credits" > >> > STATUS DEFAULT > >> > TRANSFORM FALSE > >> > TYPE ANNOTATION > >> > FEATURE > >> > POINTS > >> > 200 150 > >> > END > >> > TEXT 'Hello world. Mapserver rocks.' > >> > END > >> > CLASS > >> > LABEL > >> > TYPE BITMAP > >> > COLOR 0 0 0 > >> > END > >> > END > >> > END > >> > > >> > END > >> > > >> > The output I'm getting from the browsers is just the following: > >> > > >> > php_mapscript.so loaded. > >> > /usr/local/apache2/htdocs/recipe1/hello.map > >> > > >> > So it seems that everything is working, but only until it encounters > >> > the "$map = ms_newMapObj($map_path);" line. I've checked the tmp > >> > folder I've made to store the images and no images are made (no > >> > surprise there). Would somebody know what the problem might be and > >> > what could be the solution for this? I really, really need to know. > >> > > >> > Thanks, > >> > Maricris > >> > > >> > >> > > > > From m.meier at SPIEKERMANN.DE Tue Jul 25 03:38:13 2006 From: m.meier at SPIEKERMANN.DE (Manfred Meier) Date: Tue, 25 Jul 2006 12:38:13 +0200 Subject: mapscript map loading error In-Reply-To: <7e2b31120607250311m3d118b02we4bdc6c154b4867b@mail.gmail.com> Message-ID: ..... > I still don't know why > both mapserv and mapscript is ok with me using > /usr/local/apache2/htdocs/tmp, but not on the others. Hello, perhaps there is a simple solution. If I understand right the mapserver doku, then IMAGEURL is relative to the apache document root. So "/tmp/" is by the apache interpreted as the absolute path "/usr/local/apache2/htdocs/tmp/" (I assume that /usr/local/apache2/htdocs is the documentroot in your httpd.conf). So this combination of IMAGEURL and IMAGEPATH works perfectly because that is a directory tree owned by the user, the apache is running on. Manfred cris ricana schrieb: > Hi Manfred! > > Sorry, I haven't replied sooner. I have been away from the office for > a few days and had just got back to fix this problem. > > I did what your new suggestions, with no success. But I returned to > the tmp folder and your suggestion if it is indeed readable and > writeable by apache and mapserver. I experimented on three locations > for my tmp-folder: in /var/www/tmp; in /usr/local/tmp; and > /usr/local/apache2/htdocs/tmp, making all three locations readable and > writeable. Then I used these three locations successively in the > IMAGEPATH line of the map file. I also made two versions of a html > file, one has CGI forms using mapserv and the other one has PHP > mapscripts extensions and tags. > > Using the CGI html file, mapserv had successfully written images to > all three locations, but could only read/show the images from the > /usr/local/apache2/htdocs/tmp folder. Mapscript can read/write on > /usr/local/apache2/htdocs/tmp, but not on the other two. > > Therefore, it seems that the matter is all about permissions of the > tmp-dir and the created images as well. To make these folders > readable/writable, I used "chmod 777", a command I'm not comfortable > using. Could there be safer way of doing these? I still don't know why > both mapserv and mapscript is ok with me using > /usr/local/apache2/htdocs/tmp, but not on the others. I had to admit > I'm not really a linx expert, so I probably am embarrassing myself > with these questions, so well... > > Maricris > > > > On 7/20/06, Manfred Meier wrote: > >> Hello, >> >> some additional "ideas": (You know, I'm not a php man) >> >> - is in your php.ini display_errors set to "on", so that erors are >> shown? And are the errors and warnings activated? >> >> - you have this echo's in yout script as debug output. Can you insert an >> echo after each of these 3 lines too, >> > $map = ms_newMapObj($map_path); >> > $image=$map->draw(); >> > $image_url=$image->saveWebImage(); >> so that you ca see what the last executed statement is? >> >> Manfred >> >> >> cris ricana schrieb: >> >> > Hi! >> > >> > Here's the answer to your questions: >> > >> >> - is your tmp-dir writeable for the webserver? >> > >> > >> > Yes it is. I've tested my mapserver installation successfully using >> > CGI forms (the itasca samples, in particular) instead of PHP >> > /mapscript. These CGI webpages performs well and writes their images >> > in a temp folder I made (/usr/local/apache2/htdocs/tmp/). >> > >> > >> >> - if you look at the source-code for the html-page in your browser, >> does >> >> it show the correct url in the image tag? >> > >> > >> > The output in the browser (as well as the source code) is simply these >> > text: >> > >> > "php_mapscript.so loaded. /usr/local/apache2/htdocs/recipe1/hello.map" >> > >> > Which are text echoed from the php code (see my php code below) from >> > line 3 and 5. There are no lines for the image at all. Actually, I >> > added these text to locate where the problem is in my php code. >> > Otherwise, the output in the browser would be a blank page. >> > >> > >> > Regards, >> > Maricris >> > >> > >> > >> > >> > >> > >> > On 7/20/06, Manfred Meier wrote: >> > >> >> Hello, >> >> >> >> - is your tmp-dir writeable for the webserver? >> >> - if you look at the source-code for the html-page in your browser, >> does >> >> it show the correct url in the image tag? >> >> >> >> Manfred >> >> >> >> >> >> cris ricana schrieb: >> >> >> >> > Hello! >> >> > >> >> > I'd like some help in using PHP/Mapscript. I have a freshly >> installed >> >> > Mapserver machine and is testing some simple php webpages to see if >> >> > everything is working, especially PHP/Mapscript: >> >> > >> >> > > >> > dl ("php_mapscript.so"); >> >> > echo("php_mapscript.so loaded.\n"); //to see if the >> >> library will >> >> > sucessfully load. >> >> > $map_path="/usr/local/apache2/htdocs/recipe1/hello.map"; >> >> > echo($map_path); // absolute >> path >> >> > to the map file >> >> > $map = ms_newMapObj($map_path); >> >> > $image=$map->draw(); >> >> > $image_url=$image->saveWebImage(); >> >> > ?> >> >> > >> >> > >> >> > Mapserver "hello world" >> >> > >> >> > >> >> > >> >> >

This is the simplest example I could come up with.

>> >> > ... >> >> > >> >> > >> >> > >> >> > I'm using the following map file. It should produce an image with >> just >> >> > a line of text in it: >> >> > >> >> > MAP >> >> > NAME HELLO >> >> > STATUS ON >> >> > EXTENT 0 0 4000 3000 >> >> > SIZE 400 300 >> >> > IMAGECOLOR 200 255 255 >> >> > WEB >> >> > IMAGEPATH "/usr/local/apache2/htdocs/tmp/" >> >> > IMAGEURL "/tmp/" >> >> > END >> >> > >> >> > LAYER >> >> > NAME "credits" >> >> > STATUS DEFAULT >> >> > TRANSFORM FALSE >> >> > TYPE ANNOTATION >> >> > FEATURE >> >> > POINTS >> >> > 200 150 >> >> > END >> >> > TEXT 'Hello world. Mapserver rocks.' >> >> > END >> >> > CLASS >> >> > LABEL >> >> > TYPE BITMAP >> >> > COLOR 0 0 0 >> >> > END >> >> > END >> >> > END >> >> > >> >> > END >> >> > >> >> > The output I'm getting from the browsers is just the following: >> >> > >> >> > php_mapscript.so loaded. >> >> > /usr/local/apache2/htdocs/recipe1/hello.map >> >> > >> >> > So it seems that everything is working, but only until it encounters >> >> > the "$map = ms_newMapObj($map_path);" line. I've checked the tmp >> >> > folder I've made to store the images and no images are made (no >> >> > surprise there). Would somebody know what the problem might be and >> >> > what could be the solution for this? I really, really need to know. >> >> > >> >> > Thanks, >> >> > Maricris >> >> > >> >> >> >> >> > >> >> > From fjgarcia at TCASA.ES Tue Jul 25 03:57:58 2006 From: fjgarcia at TCASA.ES (Javi) Date: Tue, 25 Jul 2006 03:57:58 -0700 Subject: refresh map Message-ID: Hello, I have a novel with mapserver and I am trying to do a web map using mapserver. I have managed to make a project with some shapefiles and one orthofoto. However when I do zoom out, zoom in, zoom all, etc the page is refreshing totality when I would like that only the map will be refresh. How can I do it? Thanks in advance and sorry for my bad english. Javi -- View this message in context: http://www.nabble.com/refresh-map-tf1997588.html#a5483272 Sent from the Mapserver - User forum at Nabble.com. From bertelli at CHARTA.ACME.COM Tue Jul 25 04:30:08 2006 From: bertelli at CHARTA.ACME.COM (Carlo A. Bertelli (Charta s.r.l.)) Date: Tue, 25 Jul 2006 13:30:08 +0200 Subject: NQuery or Query with overlapping planning regulations Message-ID: Hello, we are working at the website of the will-be Urban Center for the municipality of Genova, Italy. By now we have a website with descriptions of public and private works which is driven by interactive maps. The prototype works fairly well, it is mainly cgi mapserver inside a simple php custom made page and is supposed to become a cms driven site that uses Kaistar (http://www.kaistar.org - a java based open source cms). I think the problem I'm going to explain could be easily solved in php, but we are not going to use php as a long run solution. The problem could be conceived as a conditional choice between query and nquery and it's due to the specific nature of the geographic data. We use maps to go from one page (about areas, or problems, or public plans, or projects) to another. If we have project data that describe new developments or complete redevelopments, the problem does not arise. We will have projects spread all around the town area that do not overlap, so when we click on one area we can easily direct the user to a new page (a simple template contains the reference to the relevant project). All seems to work well. But when we deal with planning regulationswe cannot always direct the user to a single page. Sometimes regulations overlap. We should have some logic (java based or, by now, php based) in between that: * shows a page to let the user decide what page to go when multiples pages (for multiple regulations) are possible; * directly goes to the selected page when the query outputs only one page. Do someone have a better representation of the problem or a clean solution for this problem? Just to understand what happens in the prototype, look at: http://civis.comune.genova.it/uc5_web/ http://civis.comune.genova.it/uc5_web/interna.php?codp=RIGURB01_1 works well. This is the case of redevelopment; http://civis.comune.genova.it/uc5_web/interna.php?codp=GEC_RECCS1 does not work as supposed. Multiple regulations overlap here. -- -------------------------------------------------------------------------- Carlo A. Bertelli Charta servizi e sistemi per il territorio e la storia ambientale srl Dipendenze del palazzo di Clemente Doria, vc. alla Chiesa della Maddalena 9/2 16124 Genova (Italy) tel. +39(0)10 2475439 fax +39(0)10 2475439 gsm:+39 333 2298345 e-mail: bertelli at charta.acme.com http://www.charta.acme.com -------------------------------------------------------------------------- From m.meier at SPIEKERMANN.DE Tue Jul 25 05:09:09 2006 From: m.meier at SPIEKERMANN.DE (Manfred Meier) Date: Tue, 25 Jul 2006 14:09:09 +0200 Subject: refresh map In-Reply-To: <5483272.post@talk.nabble.com> Message-ID: Hello, assuming that your application is a html page with the zoom-, refresh- ... controls enclosed by a form tag, you could probably put your map into a separate frame (for example an iframe) and direct your target in the form-tag to this frame. Manfred Javi schrieb: > Hello, I have a novel with mapserver and I am trying to do a web map using > mapserver. I have managed to make a project with some shapefiles and one > orthofoto. However when I do zoom out, zoom in, zoom all, etc the page is > refreshing totality when I would like that only the map will be refresh. How > can I do it? > > Thanks in advance and sorry for my bad english. > > Javi From ed at TOPOZONE.COM Tue Jul 25 06:26:10 2006 From: ed at TOPOZONE.COM (Ed McNierney) Date: Tue, 25 Jul 2006 09:26:10 -0400 Subject: [SPAM] Re: [UMN_MAPSERVER-USERS] National Atlas Projections... driving me crazy! Message-ID: Kelly et al. - There are two different things going on here, and some of the advice is a little confusing. Your National Atlas data sets are distributed as shapefiles using geographic (lat/lon) coordinates on the NAD83 datum. This is not a "projection" - these are unprojected geodetic coordinates. That's good. You can use any projection you like to project this data on to a flat surface and use it on a map. You can even (as some users do) use a "geographic projection" and simply leave out the PROJECTION block at the top level of your map file. This will end up treating latitude and longitude as X/Y planar coordinates. It will give you a map that is useless for many applications, but it seems to be a popular way to make bad maps on the Web. You don't "have" to use LCC, and the National Atlas data isn't "intended for" LCC or any other projection. You can choose whatever projection you like - there are lots of different map projections in the world because they all have limitations and you can choose the one best suited for your application. The Mercator projection you mention distorts areas, distances, and directions, but it shows lines of constant compass declination as straight lines, so if you're navigating a ship with a compass that's an excellent application to choose. If that's not what you're doing there are other projections that are probably better choices. The Mercator projection is so commonplace, however, that many users think that's "how things are supposed to look". For example, your county is not square - it's a rectangle (with the top left corner cut out). Sedgwick County is five townships tall and six townships wide, so it's wider than it is tall. But the Mercator projection stretches things vertically as you move away from the Equator, so a Mercator projection of Sedgwick County probably looks square. But it's not, and that's not the "right" answer any more or less than any other projection. We can all help you choose a good output projection for your map, but you'll need to tell us something about what you want that projection to show. How large an area do you need to display at once? Do you need to show distances accurately, or areas accurately? - Ed Ed McNierney TopoZone.com ________________________________ From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Kelly Koehn Sent: Tuesday, July 25, 2006 12:22 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] [SPAM] Re: [UMN_MAPSERVER-USERS] National Atlas Projections... driving me crazy! Tyler: Thanks for the prompt response. LCC may be the incorrect projection that I need to use but it seems to be the only projection that I can find that gives me the counties in the correct (porportional sp?) size. In the end I would really like to use a Mercator projection but alas I couldn't find any examples to figure out how to make it work. The specific National Atlas data I'm using is here: http://edcftp.cr.usgs.gov/pub/data/nationalatlas/countyp020.tar.gz According to the text file that came with the data they give the following information about the data: Latitude/Longitude Resolution: 0.000278 Geographic Coordinates: Decimal Degrees Datum: NAD83 Ellipsoid: GRS1980 Semi-major axis: 6378137 Denomiator of Flattening: 298.257222 Like I said, so far I've been able to get it to produce a map in LCC but its only because I've been playing around with the settings to 'make' it work. There is a sample map available here: http://www.aspiredillusion.com/cgi-bin/mapserv?map=fmfinder.map&mode=map In the end my goal is to be able to specify a specific latitude/longitude as a center and be able to plot out so many degrees, miles, whatever out to make a complete map for another project (hence why I think the Mercator projection would be best). If any of this makes any sense at all let me know because I feel like I'm rambling! :) By the way... another person suggested to use the EPSG codes... unfortunately my installation is not too happy with using those. It keeps giving me a Proj.4 error basically saying it can't find the file even though they are located in /usr/local/share/proj. For now I've just substituted in the definition (or is this bad?) Here is a copy of my map file: MAP NAME USA STATUS ON IMAGETYPE PNG SIZE 400 400 IMAGECOLOR 255 255 255 SHAPEPATH "/home/aspiredillusion/cgi-bin/gis" SYMBOLSET "symbol.ref" FONTSET "font.ref" extent 2086624.47 2893493.42 2267537.24 3111554.05 UNITS METERS PROJECTION "proj=lcc" "ellps=GRS80" "datum=NAD83" # "lat_0=38" # Latitude CENTER # "lat_1=38" # Set same as lat_0 # "lon_0=-90" # Longitude CENTER # "x_0=-80000" # Offset for longitude # "y_0=175000" # Offset for latitude "lat_0=24" "lat_1=50" "lon_0=-99" END LAYER NAME "County" DATA "countyp020" TYPE LINE STATUS DEFAULT PROJECTION "proj=latlong" "ellps=GRS80" "datum=NAD83" END CLASS OUTLINECOLOR 255 0 0 END END LAYER NAME "State" DATA "statesp020" TYPE LINE STATUS DEFAULT PROJECTION "proj=latlong" "ellps=GRS80" "datum=NAD83" END CLASS COLOR 0 0 0 END END LAYER NAME "pop_pnt" DATA "pop_pnt" TYPE POINT STATUS DEFAULT LABELITEM "NAME" PROJECTION "proj=latlong" "ellps=GRS80" "datum=NAD83" END CLASS STYLE SYMBOL "circle" SIZE 3 COLOR 0 0 0 END LABEL COLOR 0 0 0 FONT "arial" SIZE 10 TYPE TRUETYPE POSITION AUTO OUTLINECOLOR 255 255 255 BUFFER 8 END END END LAYER NAME "Notation" STATUS DEFAULT TRANSFORM FALSE TYPE ANNOTATION FEATURE POINTS 33 390 # Across, Down END TEXT 'FMFinder' END CLASS LABEL FONT "arial" TYPE TRUETYPE SIZE 10 BUFFER 1 COLOR 0 128 255 FORCE TRUE BACKGROUNDCOLOR 255 255 255 END END END END ----- Original Message ----- From: Tyler Mitchell To: Kelly Koehn Cc: MAPSERVER-USERS at LISTS.UMN.EDU Sent: Monday, July 24, 2006 10:42 PM Subject: [SPAM] Re: [UMN_MAPSERVER-USERS] National Atlas Projections... driving me crazy! Hi Kelly, I'm not familiar with your national atlas specific projections, but do you have more details about the LCC projection you are referring to? LCC is a general class of projection that will have some more localised parameters depending on, generally speaking, where you are centering your map. The lat_0/1/2 and lon_0 values might change depending on where you are doing your mapping. Do you already know the more full description of the LCC projection you have in mind? Tyler On 24-Jul-06, at 6:49 PM, Kelly Koehn wrote: I've been working with mapserver for quite some time now and I thought I'd made some strides in the areas of projections but I seem to have went into it all backwards. I started out with the National Atlas datasets for counties and states. I've come to the conclusion that the projection they want you to use is 'latlong', ellps is 'GRS80', and datum is 'NAD83'. The names are 'statesp020' and 'countyp020' I believe. This is all fine and dandy except unless you project the map as LCC it seems to be vertically challenged. For instance, the county that I live in (Sedgwick, in Kansas) is not a rectangle.. its square. I've found some examples of the lat/long to LCC projection but most seem a bit foggy. My real question has to do with the whole 'lat/long to meters' conversion and how to make heads or tails of the 'cs2cs' program that supposedly converts the values. Is there some magic trick to this program that I'm not finding? I have some other questions about exactly what the lat_0, lat_1, lat_2, lon_0 values should be for the LCC projection but I'll save those for another time. Any help would be great! I'm about ready to rip my hair out! Kelly -------------- next part -------------- An HTML attachment was scrubbed... URL: From punkish at EIDESIS.ORG Tue Jul 25 06:31:46 2006 From: punkish at EIDESIS.ORG (P Kishor) Date: Tue, 25 Jul 2006 08:31:46 -0500 Subject: [SPAM] Re: [UMN_MAPSERVER-USERS] National Atlas Projections... driving me crazy! In-Reply-To: <4BF377919225F449BB097CB76FFE9BC83DDFB8@ptolemy.topozone.com> Message-ID: On 7/25/06, Ed McNierney wrote: .. > This will end up treating latitude and longitude as X/Y planar coordinates. > It will give you a map that is useless for many applications, but it seems > to be a popular way to make bad maps on the Web. very funny ;-) Interestingly, while dealing with the real world, we seem to be more comfortable saying, "I've gotta drive n miles (or whatever unit of distance)," strangely we empathize more with lon/lats on the maps (it is hard to think of some bazillion meters x some bazillion meters as being the coords of, say Wash DC). Therein lies the human-map tragedy... -- Puneet Kishor http://punkish.eidesis.org/ Nelson Inst. for Env. Studies, UW-Madison http://www.ies.wisc.edu/ Open Source Geospatial Foundation https://edu.osgeo.org/ From bart_doggers at YAHOO.COM Tue Jul 25 07:24:49 2006 From: bart_doggers at YAHOO.COM (Albert Anderson) Date: Tue, 25 Jul 2006 07:24:49 -0700 Subject: cant seem to figure out panning with images Message-ID: Hi all, I am a javascript for panning with images. I type in all the code but its not panning. Here is part of the html code. Is there something wrong with my code? I am using a projection image with an extent of 626173.309834 5085113.091715 694065.960556 5170035.212592. The image set in a table size of 309px by 417px. Could someone give a some suggestions. Thanks Albert pan nw
pan north
pan ne --------------------------------- See the all-new, redesigned Yahoo.com. Check it out. -------------- next part -------------- An HTML attachment was scrubbed... URL: From stephane.riff at CERENE.FR Tue Jul 25 07:48:44 2006 From: stephane.riff at CERENE.FR (=?ISO-8859-1?Q?St=E9phane_RIFF?=) Date: Tue, 25 Jul 2006 16:48:44 +0200 Subject: refresh map In-Reply-To: <5483272.post@talk.nabble.com> Message-ID: Look at the Steve Lime's dBox client wich use AJAX for refreshing the map Javi wrote: >Hello, I have a novel with mapserver and I am trying to do a web map using >mapserver. I have managed to make a project with some shapefiles and one >orthofoto. However when I do zoom out, zoom in, zoom all, etc the page is >refreshing totality when I would like that only the map will be refresh. How >can I do it? > >Thanks in advance and sorry for my bad english. > >Javi > > From ollerery at ENGR.ORST.EDU Tue Jul 25 07:49:25 2006 From: ollerery at ENGR.ORST.EDU (Ryan Ollerenshaw) Date: Tue, 25 Jul 2006 07:49:25 -0700 Subject: WMS re-projection In-Reply-To: Message-ID: When i change the projection in my map file to "proj=sinu" the image that is returned is blurred (reprojected incorrectly). But when i do the reprojection using PHP/MapScript the images gets reprojected just fine. Does anyone know why the reprojection would work work in PHP/Mapscript but not when entered into the mapfile directly? PHP Code, that works: $map3->setProjection("+proj=sinu",MS_TRUE); $map3->setExtent(-350878.81, -9890271.86, 350878.81, 9890271.86); $image3=$map3->draw(); Here is my mapfile: NAME WMS_WFS_WCS_server STATUS ON SIZE 1000 600 #EXTENT 0 -90 360 90 EXTENT -180 -90 180 90 #EXTENT -350878.81 -9890271.86 350878.81 9890271.86 SHAPEPATH "../data/" IMAGECOLOR 255 255 255 WEB TEMPLATE test_template.html IMAGEPATH "/tmp/ms_tmp/" IMAGEURL "/ms_tmp/" METADATA wcs_NAME "MapServer Web Services" wfs_title "WFS MapServer" wcs_ACCESSCONSTRAINTS "NONE" wcs_ONLINERESOURCE "http://neuron/cgi-bin/mapserv?map=webservices.map&" WCS_SRS "EPSG:4326" WCS_FEES "NONE" wcs_label 'Data Sets' END END PROJECTION "init=epsg:4326" # "proj=sinu" END #GTiff will not display but a PNG will OUTPUTFORMAT NAME PNG DRIVER "GDAL/PNG" MIMETYPE "image/png" #IMAGEMODE "RGBA" IMAGEMODE "PC256" EXTENSION "png" FORMATOPTION "COMPRESS=PACKBITS" END LAYER NAME "themis" STATUS ON TILEINDEX "thm_img.shp" TILEITEM "location" PROJECTION "init=epsg:4326" END TYPE RASTER DUMP TRUE METADATA wms_name "THEMIS_Data" wms_description "THEMIS dataset" wms_label "THEMIS dataset" wms_srs "EPSG:4326" ows_extent "-180 -90 180 90" #ows_extent "-350878.81 -9890271.86 350878.81 9890271.86" wcs_resolution "150 150" wcs_size "2700 3197" wcs_formats "GEOTIFF" wcs_rangeset_label 'THEMIS Data sets' wcs_rangeset_name 'THEMIS Data' END END From Debbie.Pagurek at EC.GC.CA Tue Jul 25 07:50:47 2006 From: Debbie.Pagurek at EC.GC.CA (Pagurek,Debbie [NCR]) Date: Tue, 25 Jul 2006 10:50:47 -0400 Subject: virtual spatial data fails Message-ID: Kevin, try to test this with shp2img and see if that works. If you do get an image output as expected, then you probably have a permissions problem with the internet user. What platform / server are you working with? I am currently experiencing this problem with Windows 2000 Server with IIS5. I'm trying to point to a .csv file and I can't get my mapfile to work, but ogrinfo and shp2img command line work fine. Then I set up a little php file to take mapserver out of the equation entirely and just used php and odbc to connect to the data and it fails. So - it's a permissions problem, but I still haven't figured out how to fix it. What is the error message that you're getting? D.Pagurek _____ From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Kevin Flanders Sent: Monday, July 24, 2006 5:20 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] virtual spatial data fails I am trying to add a virtual spatial data layer to my project and failing! I have created my DSN, and tested it successfully with ogrinfo. I then added the following to my mapfile: LAYER NAME "Permits" GROUP "Permits" CONNECTION " ODBC:@Data_txt permitsummary.csv wkbPoint " CONNECTIONTYPE OGR DATA "permitsummary" METADATA "wms_srs" "88888" "wms_title" "Permit Points" END STATUS on TOLERANCE 5 SIZEUNITS pixels TYPE POINT CLASS NAME "Permits" COLOR 255 0 0 OUTLINECOLOR 0 0 0 SIZE 10 END END My map will not draw....any ideas? Kevin -------------- next part -------------- An HTML attachment was scrubbed... URL: From David.Fawcett at STATE.MN.US Tue Jul 25 07:52:39 2006 From: David.Fawcett at STATE.MN.US (Fawcett, David) Date: Tue, 25 Jul 2006 09:52:39 -0500 Subject: refresh map In-Reply-To: A<44C62F4C.1060108@cerene.fr> Message-ID: Here is a URL for dBox. http://maps.dnr.state.mn.us/tools/dbox/ David. -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of St?phane RIFF Sent: Tuesday, July 25, 2006 9:49 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] refresh map Look at the Steve Lime's dBox client wich use AJAX for refreshing the map Javi wrote: >Hello, I have a novel with mapserver and I am trying to do a web map >using mapserver. I have managed to make a project with some shapefiles >and one orthofoto. However when I do zoom out, zoom in, zoom all, etc >the page is refreshing totality when I would like that only the map >will be refresh. How can I do it? > >Thanks in advance and sorry for my bad english. > >Javi > > From assefa at DMSOLUTIONS.CA Tue Jul 25 08:02:20 2006 From: assefa at DMSOLUTIONS.CA (Yewondwossen Assefa) Date: Tue, 25 Jul 2006 11:02:20 -0400 Subject: MapServer SLD RasterSymbolizer In-Reply-To: <2576812186CDD411BF1500508B6DCE950D17F48A@ecnwri1.ontario.int.ec.gc.ca> Message-ID: Hi There, We could maybe use the label element in the ColorMapEntry if available and if not use the quantity value or the exprsssion to set the class name. In this case, the Rule Name value would not affect the classes created based on a raster symbolizer. Is this acceptable ? Later, Kralidis,Tom [Burlington] wrote: > > Sorry, meant one ColorMap per Rule :) > > -----Original Message----- > From: UMN MapServer Users List on behalf of Kralidis,Tom [Burlington] > Sent: Sat 22-Jul-06 11:01 > To: MAPSERVER-USERS at LISTS.UMN.EDU > Cc: > Subject: Re: [UMN_MAPSERVER-USERS] MapServer SLD RasterSymbolizer > > > > > The OGC:SLD 1.0.0 schema allows for one ColorMap element with 0 or more ColorMapEntry elements. > > MapServer typically picks up Rule/Name and applies them as a legend title. For rasters, because of the way the schema is defined, I think MapServer should be picking up ColorMapEntry/@label when doing raster legends, but then what happens when someone creates a Rule/Name value earlier? > > ..Tom > > > > -----Original Message----- > From: UMN MapServer Users List on behalf of Van Ulden, Joost > Sent: Fri 21-Jul-06 18:57 > To: MAPSERVER-USERS at lists.umn.edu > Cc: > Subject: [UMN_MAPSERVER-USERS] MapServer SLD RasterSymbolizer > > > > Hi all, > > I am unsure how the raster symbolizer is supposed to work in MapServer. Do I create one Rule in the SLD with one ColorMap that has one or more ColorMapEntries? Or can I create a rule for each ColorMapEntry? Either way works (works using a filter too!!!) but ColorMapEntries can't be given a name. It is preferable from my point of view to create a rule for each ColorMapEntry so that a decent legend can be generated. > > Thoughts anyone? > > Joost > > > > -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: assefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- From ollerery at ENGR.ORST.EDU Tue Jul 25 08:56:27 2006 From: ollerery at ENGR.ORST.EDU (Ryan Ollerenshaw) Date: Tue, 25 Jul 2006 08:56:27 -0700 Subject: WFS Feature Info In-Reply-To: <6246727221874A4FB8D3F9BBC37D9BD5FB07F1@s-sp22.pca.state.mn.us> Message-ID: Sorry for such a simple question but i was having trouble finding any documentation stating what i need to add to my WFS map file inorder to get the identify button to work in ArcMap. Currently when i open my WFS in ArcMap or uDIG none of the layers are selectable. Here is one of my layers LAYER NAME "hrsc_other" STATUS DEFAULT TYPE POLYGON PROJECTION "init=epsg:4326" END DUMP TRUE CONNECTIONTYPE POSTGIS CONNECTION "host=localhost dbname=mars_db user=postgres" DATA "the_geom FROM hrsc0001_footprints_sep05_other" METADATA wfs_title "hrsc_other" wfs_extent "-180 -90 180 90" wfs_srs "EPSG:4326" END CLASS NAME "hrsc_other" STYLE COLOR 200 255 255 OUTLINECOLOR 120 120 120 END END END # layer From bart_doggers at YAHOO.COM Tue Jul 25 09:25:02 2006 From: bart_doggers at YAHOO.COM (Albert Anderson) Date: Tue, 25 Jul 2006 09:25:02 -0700 Subject: questions refresh the map without panning or zooming using javascript Message-ID: Hi All, I found a javascript // update the map without panning or zooming function updateMap() { document.mapserv.mode.value = "browse"; document.mapserv.target = "_self"; document.mapserv.zoomdir.value = "0"; document.mapserv.imgext.value = "[minx] [miny] [maxx] [maxy]"; document.mapserv.imgxy.value = "299.5 215.5"; document.mapserv.submit(); } How do I code my layer check boxes to imply this code to work together? Do I have to do anything with my code for my refresh button? Where do I attached this javascript in the tag or after my layer codes? Thanks, Albert --------------------------------- Yahoo! Messenger with Voice. Make PC-to-Phone Calls to the US (and 30+ countries) for 2?/min or less. -------------- next part -------------- An HTML attachment was scrubbed... URL: From parrott.sarah at GOOGLEMAIL.COM Tue Jul 25 09:52:08 2006 From: parrott.sarah at GOOGLEMAIL.COM (Sarah Parrott) Date: Tue, 25 Jul 2006 17:52:08 +0100 Subject: Failed to draw layer error with mysql points In-Reply-To: <44B5659D.6020109@pobox.com> Message-ID: Hi, I've tried shp2img, and to start with it couldn't find the path but I found it in the mapserver directory. When I issue this command: /usr/local/mapserver-4.8.3/shp2img -m dartmoor_points.map test.gif I get the following error: msDrawMap(): Image handling error. Failed to draw layer named 'test_gis'.
msOGRLayerOpen(): General error message. OGR support is not available.
so presumably I haven't compiled it with OGR support? But I don't understand because I include --with-ogr and --with-gdal when I compile mapserver. Using --help on the gdal configure.sh doesn't list anything for --with-ogr for gdal so how do I include ogr? Or is that not the problem? I have succesfully used ogrinfo on other files which makes me think that OGR is installed. Any ideas on what is wrong? Thanks, Sarah On 12/07/06, Frank Warmerdam wrote: > > Sarah Parrott wrote: > > Hi, > > > > I'm trying to get point data out of mysql to display on a map. I'm > > using the following .ovf file, which I've tested using ogrinfo and seems > > to work fine. > > > > > > > > > > MYSQL:test_gis,user=root,password=mypword,host=127.0.0.1 > > ,port=3306,tables=boxes > > SELECT fid, x, y FROM boxes > > wkbPoint > > > > > > > ... > > I've tried loads of different things in the .map file (below) but I > > still end up with the same problem. Does anyone know what I'm going > wrong? > > Sarah, > > I would suggest trying shp2img on your map. I *suspect* this is the > problem > with OGR datasources where OGR issues an error internally about not > supporting > setting attribute (or perhaps it was spatial) constraints on an > ExecuteSQL() > result and this causing unnecessary problems in mapserver. But the > expected > error message is not visible in your report - possibly because it is being > masked by something more generic. > > Possibly shp2img with DEBUG ON for the map and layer in question would > give > more detailed information. > > Best regards, > -- > > ---------------------------------------+-------------------------------------- > I set the clouds in motion - turn up | Frank Warmerdam, > warmerdam at pobox.com > light and sound - activate the windows | http://pobox.com/~warmerdam > and watch the world go round - Rush | President OSGF, http://osgeo.org > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From Tom.Kralidis at EC.GC.CA Tue Jul 25 10:46:39 2006 From: Tom.Kralidis at EC.GC.CA (Kralidis,Tom [Burlington]) Date: Tue, 25 Jul 2006 13:46:39 -0400 Subject: MapServer SLD RasterSymbolizer Message-ID: Yes, acceptable. Good idea! > -----Original Message----- > From: UMN MapServer Users List > [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of > Yewondwossen Assefa > Sent: Tuesday, July 25, 2006 11:02 AM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] MapServer SLD RasterSymbolizer > > Hi There, > > We could maybe use the label element in the ColorMapEntry > if available and if not use the quantity value or the > exprsssion to set the class name. In this case, the Rule > Name value would not affect the classes created based on a > raster symbolizer. Is this acceptable ? > > Later, > > > Kralidis,Tom [Burlington] wrote: > > > > Sorry, meant one ColorMap per Rule :) > > > > -----Original Message----- > > From: UMN MapServer Users List on behalf of > Kralidis,Tom [Burlington] > > Sent: Sat 22-Jul-06 11:01 > > To: MAPSERVER-USERS at LISTS.UMN.EDU > > Cc: > > Subject: Re: [UMN_MAPSERVER-USERS] MapServer SLD > RasterSymbolizer > > > > > > > > > > The OGC:SLD 1.0.0 schema allows for one ColorMap > element with 0 or more ColorMapEntry elements. > > > > MapServer typically picks up Rule/Name and applies them > as a legend title. For rasters, because of the way the > schema is defined, I think MapServer should be picking up > ColorMapEntry/@label when doing raster legends, but then what > happens when someone creates a Rule/Name value earlier? > > > > ..Tom > > > > > > > > -----Original Message----- > > From: UMN MapServer Users List on behalf of Van > Ulden, Joost > > Sent: Fri 21-Jul-06 18:57 > > To: MAPSERVER-USERS at lists.umn.edu > > Cc: > > Subject: [UMN_MAPSERVER-USERS] MapServer SLD > RasterSymbolizer > > > > > > > > Hi all, > > > > I am unsure how the raster symbolizer is > supposed to work in MapServer. Do I create one Rule in the > SLD with one ColorMap that has one or more ColorMapEntries? > Or can I create a rule for each ColorMapEntry? Either way > works (works using a filter too!!!) but ColorMapEntries can't > be given a name. It is preferable from my point of view to > create a rule for each ColorMapEntry so that a decent legend > can be generated. > > > > Thoughts anyone? > > > > Joost > > > > > > > > > > > -- > ---------------------------------------------------------------- > Assefa Yewondwossen > Software Analyst > > Email: assefa at dmsolutions.ca > http://www.dmsolutions.ca/ > > Phone: (613) 565-5056 (ext 14) > Fax: (613) 565-0925 > ---------------------------------------------------------------- > From warmerdam at POBOX.COM Tue Jul 25 11:22:05 2006 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Tue, 25 Jul 2006 14:22:05 -0400 Subject: Failed to draw layer error with mysql points In-Reply-To: <23c59e280607250952g3eb4815ak5094d45f352b284a@mail.gmail.com> Message-ID: Sarah Parrott wrote: > Hi, > > I've tried shp2img, and to start with it couldn't find the path but I > found it in the mapserver directory. When I issue this command: > /usr/local/mapserver-4.8.3 /shp2img -m dartmoor_points.map test.gif > > I get the following error: > > msDrawMap(): Image handling error. Failed to draw layer named > 'test_gis'.
> msOGRLayerOpen(): General error message. OGR support is not available.
> > so presumably I haven't compiled it with OGR support? But I don't > understand because I include --with-ogr and --with-gdal when I compile > mapserver. Using --help on the gdal configure.sh doesn't list anything > for --with-ogr for gdal so how do I include ogr? Or is that not the > problem? I have succesfully used ogrinfo on other files which makes me > think that OGR is installed. Sarah, You can check the mapserver version info to see if OGR support actually got compiled in. It should include "INPUT=OGR" somewhere. If you don't see that it seems likely that you either aren't running the same version you built, or you didn't do a 'make clean' before a re-configure, or the configure failed in some subtle way that disabled the OGR support. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | President OSGF, http://osgeo.org From Tom.Kralidis at EC.GC.CA Tue Jul 25 12:51:08 2006 From: Tom.Kralidis at EC.GC.CA (Kralidis,Tom [Burlington]) Date: Tue, 25 Jul 2006 15:51:08 -0400 Subject: FW: MapServer SOS problem Message-ID: Hi, We're trying to get our SOS going by testing as WMS/WFS first. Request: http://map2.ns.ec.gc.ca/envirodatows/ows.asp?SERVICE=WFS&VERSION=1.0.0&R EQUEST=GetFeature&typename=AL05AK0001 Error: msOGRFileNextShape(): OGR error. SetAttributeFilter() not supported on ExecuteSQL() results. - Testing the .ovf file via ogrinfo works fine (can see all features, etc.). OVF file: ODBC:scott/tiger at envirodat SELECT t_ResEau_Station_Data.Site_Number AS Number, t_ResEau_Station_Data.Latitude AS Y, t_ResEau_Station_Data.Longitude AS X, t_ResEau_Sample_Data.* FROM t_ResEau_Station_Data INNER JOIN t_ResEau_Sample_Data ON t_ResEau_Station_Data.Site_Number = t_ResEau_Sample_Data.Site_Number WHERE t_ResEau_Station_Data.Site_Number = 'AL05AK0001' wkbPoint WGS84 Mapfile LAYER block: LAYER NAME AL05AK0001 TYPE POINT STATUS ON DUMP TRUE CONNECTIONTYPE OGR CONNECTION ./envirodat.ovf DATA "AL05AK0001" PROJECTION "init=epsg:4326" END METADATA "ows_title" "Envirodat" "sos_offering_id" "Water" "sos_observedproperty_id" "WaterQuality" "ows_timeitem" "TIME" "sos_procedure" "AL05AK0001" "sos_describesensor_url" "http://map.ns.ec.gc.ca/envirodat_sensor/ca.gc.ec.envirodat-AL05AK0001.x ml" "gml_include_items" "all" END CLASS NAME "AL05AK0001" COLOR 180 136 148 SYMBOL 'circle' SIZE 10 END END We are on Windows using a MapServer CVS build for Win32 (from Assefa) from earlier this month, with map.h MS_MAXLAYERS set to 500 for our requirements (side note: this would be a neat mapfile configurable). The GDAL DLL is at 1.3.2.0. Any advice? From warmerdam at POBOX.COM Tue Jul 25 13:43:55 2006 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Tue, 25 Jul 2006 16:43:55 -0400 Subject: FW: MapServer SOS problem In-Reply-To: <2576812186CDD411BF1500508B6DCE950F0098EE@ecnwri1.ontario.int.ec.gc.ca> Message-ID: Kralidis,Tom [Burlington] wrote: > Hi, > > We're trying to get our SOS going by testing as WMS/WFS first. > > Request: > > http://map2.ns.ec.gc.ca/envirodatows/ows.asp?SERVICE=WFS&VERSION=1.0.0&R > EQUEST=GetFeature&typename=AL05AK0001 > > Error: > > msOGRFileNextShape(): OGR error. SetAttributeFilter() not supported on > ExecuteSQL() results. ... > We are on Windows using a MapServer CVS build for Win32 (from Assefa) > from earlier this month, with map.h MS_MAXLAYERS set to 500 for our > requirements (side note: this would be a neat mapfile configurable). > The GDAL DLL is at 1.3.2.0. Tom, This was a "sort of" bug in GDAL 1.3.2.0. You should either upgrade to GDAL CVS (ie. a nightly snapshot) or fallback to GDAL 1.3.1 though that might cause other problems. The MS_MAXLAYERS configurability was addressed in RFC 17, but I have some outstanding work to do before calling for a vote on that. I still vaguely hope to accomplish that this summer though it seems a bit unrealistic at this point. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | President OSGF, http://osgeo.org From ealpert at DIGITALGLOBE.COM Tue Jul 25 13:45:57 2006 From: ealpert at DIGITALGLOBE.COM (Ethan Alpert) Date: Tue, 25 Jul 2006 14:45:57 -0600 Subject: WFS Feature Info Message-ID: I'm not sure what "selectable" means but to expose features you need to add: gml_include_items all to the metadata of your layer to server up your attributes. I also think the STATUS needs to be ON rather than DEFAULT Have you read the wfs howto? http://ms.gis.umn.edu/docs/howto/wfs_server -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Ryan Ollerenshaw Sent: Tuesday, July 25, 2006 9:56 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] WFS Feature Info Sorry for such a simple question but i was having trouble finding any documentation stating what i need to add to my WFS map file inorder to get the identify button to work in ArcMap. Currently when i open my WFS in ArcMap or uDIG none of the layers are selectable. Here is one of my layers LAYER NAME "hrsc_other" STATUS DEFAULT TYPE POLYGON PROJECTION "init=epsg:4326" END DUMP TRUE CONNECTIONTYPE POSTGIS CONNECTION "host=localhost dbname=mars_db user=postgres" DATA "the_geom FROM hrsc0001_footprints_sep05_other" METADATA wfs_title "hrsc_other" wfs_extent "-180 -90 180 90" wfs_srs "EPSG:4326" END CLASS NAME "hrsc_other" STYLE COLOR 200 255 255 OUTLINECOLOR 120 120 120 END END END # layer From raymond_marcil at DNR.STATE.AK.US Tue Jul 25 14:28:38 2006 From: raymond_marcil at DNR.STATE.AK.US (Raymond Marcil) Date: Tue, 25 Jul 2006 13:28:38 -0800 Subject: Mapserver blank image Message-ID: Hi, I'm using mapserver-4.8.4. Using debian linux w/apache 1.3. Mapserver hits oracle spatial 9i (observed via tcpdump) and renders a blank image. I suspect a configuration issue. See attached gis.map. Adapted from demonstration demo.map. Any ideas/suggestions appreciated. Thanks, Ray -- ======================================== Raymond E. Marcil Analyst/Programmer IV Land Records Information Section Alaska Department of Natural Resources 550 West 7th., #706, Anchorage, AK 99501 Ph: (907)269-8855 / Fax: (907)269-8911 ========================================= -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: gis.map URL: From klawsteve at YAHOO.COM Tue Jul 25 15:39:52 2006 From: klawsteve at YAHOO.COM (Steve Walker) Date: Tue, 25 Jul 2006 15:39:52 -0700 Subject: TIGER - SRID 4326, 4269, & 32767 Performance Issues Message-ID: (RE-Posting, and Re-writing. The LISTSERV web interface ate my first posting telling me it had already been posted. and returned only the text "DD: MESSAGE" The copy I had cc'd to my self was equally canibalized.) I am working on a nation-wide project at usmapserver.com which includes TIGER roads data along with other nation-wide basemap data. All data included (with the exception of TIGER) are stored in geographic-WGS84 coordinates. In the MAP file they are properly tagged with SRID=4326. It also includes nation-wide TIGER data. Officially, TIGER data are stored in geographic-NAD83 coordinates (SRID=4269) (there are exceptions in minor outlying US posessions). However, *my* TIGER data are referenced to SRID=32767 (which I believe means 'undefined') Performance in drawing the TIGER data is killing me: 100 seconds... 1000 seconds ... ridiculous! All data are stored in PostGIS. All spatial indexes are built. Databases recently vacuumed. I am thus led to the hypothesis that it is the issue of the undefined SRID which is causing the performance breakdown. (Are the data being re-projected on the fly... only to be projected to the exact same lat-longs?) I am willing to ignore the differences between NAD83 and WGS84 and assign the SRID=4326 to the TIGER data so that *ALL* layers in my MAP file will reference the SAME SRID. However, simply changing this line in the MAP file from DATA "the_geom FROM roads USING SRID=32767" to DATA "the_geom FROM roads USING SRID=4326" fails (unsurprisingly) with the following message: -ERROR: Operation on two geometries with different SRIDs Thus, I have inititated the following: pgsql-> UPDATE roads SET the_geom = SetSRID(the_geom,4326); and expect this to churn away for a very long time. I have tested this on a small subset of the data however and believe it solves the problem. I will report back when the process is complete and discuss whether this eliminates the performance nightmare. In the meantime, however, any feedback (positive or negative) on the above would be appreciated. Thank you. Steve Walker Middle Fork Geographic Information Services walker AT mfgis.com Steve Walker Middle Fork Geographic Information Services PO Box 2157 Bellingham, WA 98227 steve at mfgis.com --------------------------------- Talk is cheap. Use Yahoo! Messenger to make PC-to-Phone calls. Great rates starting at 1?/min. -------------- next part -------------- An HTML attachment was scrubbed... URL: From jean-gabriel.hasbani at UCALGARY.CA Tue Jul 25 15:44:16 2006 From: jean-gabriel.hasbani at UCALGARY.CA (J-G Hasbani) Date: Tue, 25 Jul 2006 16:44:16 -0600 Subject: minimal Linux version required. Message-ID: Hello everybody. I am considering to buy an old server in order to run MapServer. The server has the following characteristics: *Red Hat Linus 6.0 for x86 compatible *Linux kernel 2.2 *glibc library *Appache 1.3.6 Is it possible to install (and run) MapServer with this version of Linux? Thanks, Jean From warmerdam at POBOX.COM Tue Jul 25 18:43:08 2006 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Tue, 25 Jul 2006 21:43:08 -0400 Subject: minimal Linux version required. In-Reply-To: <3489.136.159.247.99.1153867456.squirrel@136.159.247.99> Message-ID: J-G Hasbani wrote: > Hello everybody. > > I am considering to buy an old server in order to run MapServer. > The server has the following characteristics: > *Red Hat Linus 6.0 for x86 compatible > *Linux kernel 2.2 > *glibc library > *Appache 1.3.6 > > Is it possible to install (and run) MapServer with this version of Linux? Jean, MapServer will definitely run on this configuration. It is vaguely possibly you might run into some quirks building some of the recent versions of libraries that MapServer depends on but that should be fairly easily dealt with. You might be a bit wary about security bugs in older versions of Linux like this though. Not that I'm specifically aware of any. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | President OSGF, http://osgeo.org From richard.greenwood at GMAIL.COM Tue Jul 25 18:59:07 2006 From: richard.greenwood at GMAIL.COM (Richard Greenwood) Date: Tue, 25 Jul 2006 19:59:07 -0600 Subject: dBox with mode=itemquery or itemnquery In-Reply-To: Message-ID: So Steve, your suggestions for itemquery (below) work great. In mapserv.js I do not see any support for saved queries. Am I missing anything? Are saved queries still the way it's done, or is there some new and improved method? I'm thinking of adding something to mapserv.js like: if (this.savedqueryfile) this.url += '&queryfile=' + this.savedqueryfile; Adding an "itemqueryoptions" to the Mapserv object, and a couple methods to add and remove a saved query file. Using a template like: [img],[shpminx],[shpminy],[shpmaxx],[shpmaxy],[queryfile] Is this reasonably consistent with your stuff or am I in left field? Rich -- Richard Greenwood richard.greenwood at gmail.com www.greenwoodmap.com On 7/17/06, Steve Lime wrote: > Rich: This is where AJAX can really help. The dbox code really doesn't help you here. It gives you the > tools to do something with the query result but not with the query itself. > > So, to do this you need 2 things or so: > > 1) a method that is called to trigger the search (e.g. myLookup), and process the response > 2) a query template(s) to package the results for use in the client > > One might look like: > > function myLookup(map, layer, item, term) > { > var URL = map.mapserver + '?map=' + map.mapfile + '&mode=itemquery&qlayer=' + layer + '&qitem=' + item + '&qstring=' + term; > var response = get_content(URL); > > // parse the response somehow, check for errors and such... (in this case the response is just a delimeted line, see template) > var tokens = response.split(','); > > map.setExtent(tokens[1], tokens[2], tokens[3], tokens[4]); > map.draw(); > } > > Two might look like (simple delimited response): > > [NAME],[shpminx],[shpminy],[shpmaxx],[shpmaxy] > > Does this sort of make sense? You could respond with XML and use that to drive some interface stuff- your choice. I suppose one could write a dbox add-on to turn myLookup into a more formal feature of the software with a callback and all. > > Steve > > >>> Richard Greenwood 7/17/2006 10:05:27 AM >>> > I am working with Steve's dBox and mapserv.js. It's great stuff. Does > anyone have any examples or suggestions for using mode=itemquery or > itemnquery? Specifically, how are you getting the new extent from the > server into the javascript map object? And how are you updating the > main map image (in mode=map you get an image back, but in > mode=anything_else you get an image in a directory on the server). > > Rich From Antti.Roppola at BRS.GOV.AU Tue Jul 25 19:22:35 2006 From: Antti.Roppola at BRS.GOV.AU (Antti Roppola) Date: Wed, 26 Jul 2006 12:22:35 +1000 Subject: [UNCLASSIFIED]RE: [UMN_MAPSERVER-USERS] minimal Linux version req uired. Message-ID: Frank wrote: > J-G Hasbani wrote: >> Hello everybody. >> >> I am considering to buy an old server in order to run MapServer. >> The server has the following characteristics: >> *Red Hat Linus 6.0 for x86 compatible >You might be a bit wary about security bugs in older versions of Linux like this though. Not that I'm specifically aware of >any. I would most certainly consider re-installing a more recent operating system from scratch; especially if there's any uncertainty about what software is and isn't on the server, and how current (secure) it is. Ubuntu is free and easy to install, however you may have access to Red Hat knowledgable people. As a plus, you will have a means for getting system updates (not sure what the support status of Red Hat 6 is), and the confidence that you can rebuild the server from first principles if the hard disk ever dies. Note that some dedicated server hardware can use expensive or difficult to come by components. I had a server that was not worth fixing because one U-SCSI disk in the array cost more than I had paid for the entire server. If you want to tinker with Mapserver, pretty much any old PC will do (and probably be a lot quieter than a tower case crammed full of high speed disk). Antti ---------------------------------------------------------------------- IMPORTANT - This message has been issued by The Department of Agriculture, Fisheries and Forestry (DAFF). The information transmitted is for the use of the intended recipient only and may contain confidential and/or legally privileged material. It is your responsibility to check any attachments for viruses and defects before opening or sending them on. Any reproduction, publication, communication, re-transmission, disclosure, dissemination or other use of the information contained in this e-mail by persons or entities other than the intended recipient is prohibited. The taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. If you have received this e-mail in error please notify the sender and delete all copies of this transmission together with any attachments. If you have received this e-mail as part of a valid mailing list and no longer want to receive a message such as this one advise the sender by return e-mail accordingly. Only e-mail correspondence which includes this footer, has been authorised by DAFF ---------------------------------------------------------------------- From m.meier at SPIEKERMANN.DE Tue Jul 25 21:53:14 2006 From: m.meier at SPIEKERMANN.DE (Manfred Meier) Date: Wed, 26 Jul 2006 06:53:14 +0200 Subject: cant seem to figure out panning with images In-Reply-To: <20060725142449.69840.qmail@web55705.mail.re3.yahoo.com> Message-ID: Hello, I'm using mapbender (www.mapbender.org) for my work with mapserver. In one day I had a web application with two mapserver frames which are individually zoomable and pan-able (sorry) and queryable and a lot of tables and forms for my application data. Mapbender works with php and javascript. So, why not looking into mapbender for example or another client which does zoom and pan already. Even if you don't want to use it in production, you can learn from it. Manfred Albert Anderson schrieb: > Hi all, > > I am a javascript for panning with images. I type in all the code but > its not panning. Here is part of the html code. Is there something > wrong with my code? I am using a projection image with an extent of > 626173.309834 5085113.091715 694065.960556 5170035.212592. The image > set in a table size of 309px by 417px. Could someone give a some > suggestions. Thanks > > Albert > > > > > BGCOLOR="#e7a500"> src="../images/cornerarrow5.gif" alt="pan nw" width="25" height="25" > style="border-style:none"> > > > > href="javascript:pan('ne')"> alt="pan ne" width="25" height="25" style="border-style:none"> > > > ------------------------------------------------------------------------ > See the all-new, redesigned Yahoo.com. Check it out. > From m.meier at SPIEKERMANN.DE Tue Jul 25 23:13:08 2006 From: m.meier at SPIEKERMANN.DE (Manfred Meier) Date: Wed, 26 Jul 2006 08:13:08 +0200 Subject: NQuery or Query with overlapping planning regulations In-Reply-To: <303ea9510607250430o22ba9355l25ad8f2584ae578@mail.gmail.com> Message-ID: Hello, if your number of different regulations at the same time is small, you could generate all info for these regulations and display them on the same page in invisible div's or iframe's together with a javascript powered selection menu for the user. Surely there are problems with javascript, browser compatibility and so on, but perhaps it's an idea. Manfred Carlo A. Bertelli (Charta s.r.l.) schrieb: > Hello, > we are working at the website of the will-be Urban Center for the > municipality of Genova, Italy. > By now we have a website with descriptions of public and private works > which is driven by interactive maps. > The prototype works fairly well, it is mainly cgi mapserver inside a > simple php custom made page and is supposed to become a cms driven > site that uses Kaistar (http://www.kaistar.org - a java based open > source cms). > I think the problem I'm going to explain could be easily solved in > php, but we are not going to use php as a long run solution. > The problem could be conceived as a conditional choice between query > and nquery and it's due to the specific nature of the geographic data. > We use maps to go from one page (about areas, or problems, or public > plans, or projects) to another. > If we have project data that describe new developments or complete > redevelopments, the problem does not arise. We will have projects > spread all around the town area that do not overlap, so when we click > on one area we can easily direct the user to a new page (a simple > template contains the reference to the relevant project). > All seems to work well. > But when we deal with planning regulationswe cannot always direct the > user to a single page. Sometimes regulations overlap. We should have > some logic (java based or, by now, php based) in between that: > * shows a page to let the user decide what page to go when multiples > pages (for multiple regulations) are possible; > * directly goes to the selected page when the query outputs only one page. > Do someone have a better representation of the problem or a clean > solution for this problem? > Just to understand what happens in the prototype, look at: > http://civis.comune.genova.it/uc5_web/ > http://civis.comune.genova.it/uc5_web/interna.php?codp=RIGURB01_1 > works well. This is the case of redevelopment; > http://civis.comune.genova.it/uc5_web/interna.php?codp=GEC_RECCS1 > does not work as supposed. Multiple regulations overlap here. > From madprof at GMX.CH Tue Jul 25 23:58:02 2006 From: madprof at GMX.CH (Daniel Goetz) Date: Wed, 26 Jul 2006 08:58:02 +0200 Subject: itemnquery and hilighting Message-ID: Hi mapserver-community, I am working on a mapserver-project (running on a local mapserver-installation; ms4w 1.5.3). Client and mapserver shall communicate via CGI. Now I want to implement a query-function so that I am able to search for features by certain attributes. And I want them to be displayed (hilighted and zoomed on) on the map. Therefor I am using "mode=itemnquery", I define a qlayer, a qitem and a qstring. To achieve that the mapextent fits to the selected features I define the value for "mapext" as "shape". Furthermore I define a QUERYMAP as it follows: QUERYMAP STATUS ON STYLE HILITE COLOR 0 0 0 END Last I define a querytemplate in the CLASS-object of the qlayer in the .map-file (it is the same template that I use for paning and zooming when I start the map-project). So my URL-request for the query looks as it follows: http://localhost/cgi-bin/mapserv.exe?mapserv=/cgi-bin/mapserv.exe& map=/ms4w/apache/htdocs/oracle/suche_mitzoom.map&map_web_imagepath=/ms4w/apache/htdocs/tmp/& map_web_imageurl=/tmp/&mapext=shape&mode=itemnquery&qlayer=VIEW_RWG_TBS&qitem=TM_NR&qstring=TM_NR=13& So far it works properly only with one confinement: Mapserver sends back as many maps as features fit to the query. e.g. 12 features have the value 13 in the TM_NR column of the database, so mapserver displays 12 maps in the browser window and on each map all the 12 features are hilighted. But my goal is to get only ONE map where all features filtered by the qstring are highlighted and the mapextent fits to the extend of the higlighted features. Has anybody suggestions how to achieve that. What is the right way? Please give me some hints. Thank you so much for your time, your ideas and your help. Thank you. regards Daniel -- Echte DSL-Flatrate dauerhaft f?r 0,- Euro*. Nur noch kurze Zeit! "Feel free" mit GMX DSL: http://www.gmx.net/de/go/dsl From b.vdeijnden at AGI.RWS.MINVENW.NL Wed Jul 26 02:49:49 2006 From: b.vdeijnden at AGI.RWS.MINVENW.NL (Eijnden, Bart van den (AGI)) Date: Wed, 26 Jul 2006 11:49:49 +0200 Subject: bug in GML writer for multipoints Message-ID: Hi list, when Mapserver (we use 4.8.3) writes a multipoint, it writes: 139190.125000,461492.869000 This is not correct according to the GML schema, it is missing gml:pointMember in between. This seems like a critical fix to me. Best regards, Bart van den Eijnden ================================= drs. A.J. van den Eijnden adviseur Productteam Applicaties Geo-Informatie Rijkswaterstaat Adviesdienst Geo-informatie en ICT Postbus 5023, 2600 GA Delft Derde Werelddreef 1, 2622 HA Delft Telefoon: (015) 275 75 75 E-mail b.vdeijnden at agi.rws.minvenw.nl ================================= Disclaimer ************************************************************************ Aan dit bericht kunnen geen rechten worden ontleend. Dit bericht is uitsluitend bestemd voor de geadresseerde. Als u dit bericht per abuis hebt ontvangen, wordt u verzocht het te vernietigen en de afzender te informeren. Wij adviseren u om bij twijfel over de juistheid of de volledigheid van de mail contact met afzender op te nemen. This message shall not constitute any rights or obligations. This message is intended solely for the addressee. If you have received this message in error, please delete it and notify the sender immediately. When in doubt whether this message is correct or complete, please contact the sender. ************************************************************************ From mateusz at LOSKOT.NET Wed Jul 26 03:24:35 2006 From: mateusz at LOSKOT.NET (Mateusz Loskot) Date: Wed, 26 Jul 2006 12:24:35 +0200 Subject: bug in GML writer for multipoints In-Reply-To: <5AA6ED8DA479B048BAD1A84DAC2F07EB089160@rws-s001000.ad.rws.nl> Message-ID: Eijnden, Bart van den (AGI) wrote: > Hi list, > > when Mapserver (we use 4.8.3) writes a multipoint, it writes: > > > 139190.125000,461492.869000 > > > This is not correct according to the GML schema, it is missing > gml:pointMember in between. I'm not a MapServer developer but just to sleep well ;-) I checked if this problem applies to the OGR. And it does not :-) OGR outputs correct schema of MultiPoint geometry in GML 2 After quick look at the MS code, the problem is in mapgml.c file, in function gmlWriteGeometry_GML2. This function constructs GML geometry output and it does not include gml:pointMember for MultiPoint. Other Multi* geometries should be OK, with *Member elements included, as I see in the code. So, only MultiPoint is broken. BTW, there is also gmlWriteGeometry_GML3 function which does output gml:pointMember element. Best regards -- Mateusz Loskot http://mateusz.loskot.net From b.vdeijnden at AGI.RWS.MINVENW.NL Wed Jul 26 03:32:07 2006 From: b.vdeijnden at AGI.RWS.MINVENW.NL (Eijnden, Bart van den (AGI)) Date: Wed, 26 Jul 2006 12:32:07 +0200 Subject: bug in GML writer for multipoints Message-ID: Hi Mateusz, that is also my conclusion (I have patched my local copy already). I have opened up bug 1847 to track this issue. http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=1847 Best regards, Bart -----Oorspronkelijk bericht----- Van: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]Namens Mateusz Loskot Verzonden: woensdag 26 juli 2006 12:25 Aan: MAPSERVER-USERS at LISTS.UMN.EDU Onderwerp: Re: [UMN_MAPSERVER-USERS] bug in GML writer for multipoints Eijnden, Bart van den (AGI) wrote: > Hi list, > > when Mapserver (we use 4.8.3) writes a multipoint, it writes: > > > 139190.125000,461492.869000 > > > This is not correct according to the GML schema, it is missing > gml:pointMember in between. I'm not a MapServer developer but just to sleep well ;-) I checked if this problem applies to the OGR. And it does not :-) OGR outputs correct schema of MultiPoint geometry in GML 2 After quick look at the MS code, the problem is in mapgml.c file, in function gmlWriteGeometry_GML2. This function constructs GML geometry output and it does not include gml:pointMember for MultiPoint. Other Multi* geometries should be OK, with *Member elements included, as I see in the code. So, only MultiPoint is broken. BTW, there is also gmlWriteGeometry_GML3 function which does output gml:pointMember element. Best regards -- Mateusz Loskot http://mateusz.loskot.net Disclaimer ************************************************************************ Aan dit bericht kunnen geen rechten worden ontleend. Dit bericht is uitsluitend bestemd voor de geadresseerde. Als u dit bericht per abuis hebt ontvangen, wordt u verzocht het te vernietigen en de afzender te informeren. Wij adviseren u om bij twijfel over de juistheid of de volledigheid van de mail contact met afzender op te nemen. This message shall not constitute any rights or obligations. This message is intended solely for the addressee. If you have received this message in error, please delete it and notify the sender immediately. When in doubt whether this message is correct or complete, please contact the sender. ************************************************************************ From bartvde at XS4ALL.NL Wed Jul 26 04:34:06 2006 From: bartvde at XS4ALL.NL (Bart van den Eijnden (OSGIS)) Date: Wed, 26 Jul 2006 13:34:06 +0200 Subject: WMS time question Message-ID: Hi list, looking through the Mapserver WMS time HOWTO I wondered one thing, it is only possible to have 1 timeitem, a DB column which contains the date/time. Ofcourse this is pretty okay for satellite images (in a tileindex) which are taken every X days/months. But what happens to road network segments (geometries in Oracle Spatial for instance) which have a minimum date and a maximum date? So you need to specify 2 timeitems (one min and one max) for that. Was this use case just not implemented? Best regards, Bart From David.Fawcett at STATE.MN.US Wed Jul 26 06:33:26 2006 From: David.Fawcett at STATE.MN.US (Fawcett, David) Date: Wed, 26 Jul 2006 08:33:26 -0500 Subject: Mapserver blank image In-Reply-To: A<44C68D06.8050207@dnr.state.ak.us> Message-ID: Ray, There may be additional issues, but I see that your UNITS is set to Meters. Units should be the units of the projection. In your case, it would be 'dd' (for decimal degrees). David. -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Raymond Marcil Sent: Tuesday, July 25, 2006 4:29 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Mapserver blank image Hi, I'm using mapserver-4.8.4. Using debian linux w/apache 1.3. Mapserver hits oracle spatial 9i (observed via tcpdump) and renders a blank image. I suspect a configuration issue. See attached gis.map. Adapted from demonstration demo.map. Any ideas/suggestions appreciated. Thanks, Ray -- ======================================== Raymond E. Marcil Analyst/Programmer IV Land Records Information Section Alaska Department of Natural Resources 550 West 7th., #706, Anchorage, AK 99501 Ph: (907)269-8855 / Fax: (907)269-8911 ========================================= From proxiroxp at YAHOO.GR Wed Jul 26 06:55:26 2006 From: proxiroxp at YAHOO.GR (K S) Date: Wed, 26 Jul 2006 14:55:26 +0100 Subject: 3D Polygon Message-ID: Hello everybody, I have a shapefile which is GEOMETRY: 3D POLYGON. How can i draw the layer for this shapefile. To be more specific what would be the TYPE of such a layer Thank you in advance --------------------------------- ?????????????? Yahoo! ?????????? ?? ?????????? ???? ???? (spam); ?? Yahoo! Mail ???????? ??? ???????? ?????? ????????? ???? ??? ??????????? ????????? http://login.yahoo.com/config/mail?.intl=gr -------------- next part -------------- An HTML attachment was scrubbed... URL: From jay at SASSATLANTA.NET Wed Jul 26 06:54:14 2006 From: jay at SASSATLANTA.NET (Jay Varner) Date: Wed, 26 Jul 2006 09:54:14 -0400 Subject: Moving Points Message-ID: Hi everyone, I'm totally new to MapServer. I've been working with it for a little over a month now. I've read the books and worked through the tutorials. I'm now working on a demo project and I just can't get it all planned out in my head. I'm hopping ya'll can kick me in a good direction. So, the basic function of the map will be to track gps (or something similar) data on a map. The data will of course be updated regularly by various devices sending some sort of x,y,z location data. That data will be plotted on the map, and the zone (city, county, zip or something) the device is in will be recorded. I've searched around for the past few days and have not been able to find an example in MapServer. Any help and advice is most welcomed. Thanks, Jay P.S. I don't really know what sort of device will be used to send the data, so I just need to fake it. From bart_doggers at YAHOO.COM Wed Jul 26 07:09:14 2006 From: bart_doggers at YAHOO.COM (Albert Anderson) Date: Wed, 26 Jul 2006 07:09:14 -0700 Subject: how do you make this symbols Message-ID: Hi List, I wonder if someone can help me with coding this symbol for my map file? --|---|---|---|---|---|---|---|-- Kombinerte Linien Thanks, Albert --------------------------------- Do you Yahoo!? Everyone is raving about the all-new Yahoo! Mail Beta. -------------- next part -------------- An HTML attachment was scrubbed... URL: From tfagin at COORDINATESOLUTIONS.COM Wed Jul 26 07:25:21 2006 From: tfagin at COORDINATESOLUTIONS.COM (Todd Fagin) Date: Wed, 26 Jul 2006 09:25:21 -0500 Subject: how do you make this symbols In-Reply-To: <20060726140914.69048.qmail@web55708.mail.re3.yahoo.com> Message-ID: In your symbol file: SYMBOL NAME "punkt" TYPE ELLIPSE POINTS 1 1 END FILLED TRUE END SYMBOL NAME "linie-gepunkt2_C" TYPE cartoline LINECAP butt LINEJOIN miter LINEJOINMAXSIZE 3 STYLE 1 20 1 20 END END In your map file under the appropriate layer: CLASS STYLE SYMBOL "punkt" SIZE 0.5 COLOR 0 0 0 ANTIALIAS TRUE END STYLE SYMBOL "linie-gepunkt2_C" SIZE 4 COLOR 0 0 0 ANTIALIAS TRUE END END For more information on the construction of cartographic symbols, see: http://mapserver.gis.umn.edu/docs/howto/cartosymbols/#multiple-rendering-and -overlay. To download the examples used there: http://www.mapmedia.de/dokumente/umn_signaturen_howto/vortrag_demo.zip Todd Fagin Coordinate Solutions, Inc. 501 N.E. 15th St. Oklahoma City, OK 73104 405.246.9396 (Voice) 405.227.0781 (Fax) _____ From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Albert Anderson Sent: Wednesday, July 26, 2006 9:09 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] how do you make this symbols Hi List, I wonder if someone can help me with coding this symbol for my map file? --|---|---|---|---|---|---|---|-- Kombinerte Linien Thanks, Albert _____ Do you Yahoo!? Everyone is raving about the all-new Yahoo! Mail Beta. -------------- next part -------------- An HTML attachment was scrubbed... URL: From bitner at GYTTJA.ORG Wed Jul 26 08:31:03 2006 From: bitner at GYTTJA.ORG (David William Bitner) Date: Wed, 26 Jul 2006 10:31:03 -0500 Subject: Moving Points In-Reply-To: Message-ID: This sounds like more of a database problem than a MapServer problem. If you created a utility to update a PostgreSQL/PostGIS table with your datapoints, you could easily record the zone information with spatial operations in the database and then display the data with MapServer by just having a refresh of the map every so often of the whole map (or if you were using something like ka-map, you could use ajax techniques and you could move the points around without even refreshing the whole map). Once the data is in a database, you've got a lot of options. On 7/26/06, Jay Varner wrote: > > Hi everyone, I'm totally new to MapServer. I've been working with it > for a little over a month now. I've read the books and worked through > the tutorials. I'm now working on a demo project and I just can't get > it all planned out in my head. I'm hopping ya'll can kick me in a good > direction. > > So, the basic function of the map will be to track gps (or something > similar) data on a map. The data will of course be updated regularly > by various devices sending some sort of x,y,z location data. That data > will be plotted on the map, and the zone (city, county, zip or > something) the device is in will be recorded. > > I've searched around for the past few days and have not been able to > find an example in MapServer. Any help and advice is most welcomed. > > Thanks, > Jay > > P.S. > I don't really know what sort of device will be used to send the data, > so I just need to fake it. > -- ************************************ David William Bitner -------------- next part -------------- An HTML attachment was scrubbed... URL: From bartvde at XS4ALL.NL Wed Jul 26 09:08:21 2006 From: bartvde at XS4ALL.NL (Bart van den Eijnden (OSGIS)) Date: Wed, 26 Jul 2006 18:08:21 +0200 Subject: 3D Polygon In-Reply-To: <20060726135526.90755.qmail@web25503.mail.ukl.yahoo.com> Message-ID: You should just use TYPE POLYGON. Note I think you need Mapserver 4.6 or greater, best to try with the latest release (4.8.X). Btw, Mapserver has a compile option determining whether or not it will pick up Z and M values. # If you want to use shape Z and M parameter this option must be set. # It's OFF by default. #USE_POINT_Z_M=-DUSE_POINT_Z_M USE_POINT_Z_M= Best regards, Bart K S wrote: > Hello everybody, > I have a shapefile which is GEOMETRY: 3D POLYGON. How can i draw > the layer for this shapefile. To be more specific what would be the > TYPE of such a layer > > Thank you in advance > > ?????????????? Yahoo! > ?????????? ?? ?????????? ???? ???? (spam); ?? Yahoo! Mail ???????? ??? > ???????? ?????? ????????? ???? ??? ??????????? ????????? > http://login.yahoo.com/config/mail?.intl=gr -- Bart van den Eijnden OSGIS, Open Source GIS http://www.osgis.nl From bartvde at XS4ALL.NL Wed Jul 26 09:10:56 2006 From: bartvde at XS4ALL.NL (Bart van den Eijnden (OSGIS)) Date: Wed, 26 Jul 2006 18:10:56 +0200 Subject: Moving Points In-Reply-To: Message-ID: You can also check: http://www.geotracing.com/ Best regards, Bart Jay Varner wrote: > Hi everyone, I'm totally new to MapServer. I've been working with it > for a little over a month now. I've read the books and worked through > the tutorials. I'm now working on a demo project and I just can't get > it all planned out in my head. I'm hopping ya'll can kick me in a good > direction. > > So, the basic function of the map will be to track gps (or something > similar) data on a map. The data will of course be updated regularly > by various devices sending some sort of x,y,z location data. That data > will be plotted on the map, and the zone (city, county, zip or > something) the device is in will be recorded. > > I've searched around for the past few days and have not been able to > find an example in MapServer. Any help and advice is most welcomed. > > Thanks, > Jay > > P.S. > I don't really know what sort of device will be used to send the data, > so I just need to fake it. > > -- Bart van den Eijnden OSGIS, Open Source GIS http://www.osgis.nl From flavio at TYDAC.CH Wed Jul 26 09:13:15 2006 From: flavio at TYDAC.CH (Flavio Hendry) Date: Wed, 26 Jul 2006 18:13:15 +0200 Subject: how do you make this symbols In-Reply-To: <20060726140914.69048.qmail@web55708.mail.re3.yahoo.com> Message-ID: Hi Albert see http://umn.mapserver.ch/ under the menu "vector symbols". Mit freundlichem Gruss / Best Regards Flavio Hendry ---------------------------------------------------------------- TYDAC Web-Site: http://www.tydac.ch TYDAC MapServer: http://www.mapserver.ch ---------------------------------------------------------------- ############ Mit freundlichen Gruessen / Kind Regards ############ mailto:flavio at tydac.ch ############ TYDAC AG - http://www.tydac.ch #### #### Geographic Information Solutions #### #### Luternauweg 12 -- CH-3006 Bern ############ Tel +41 (0)31 368 0180 - Fax +41 (0)31 368 1860 ---------------------------------------------------------------- -----Original Message----- From: Albert Anderson To: MAPSERVER-USERS at LISTS.UMN.EDU Date: Wed, 26 Jul 2006 07:09:14 -0700 Subject: [UMN_MAPSERVER-USERS] how do you make this symbols > Hi List, > > I wonder if someone can help me with coding this symbol for my map > file? > > --|---|---|---|---|---|---|---|-- > Kombinerte Linien > > Thanks, > Albert > > > --------------------------------- > Do you Yahoo!? > Everyone is raving about the all-new Yahoo! Mail Beta. From bart_doggers at YAHOO.COM Wed Jul 26 09:29:15 2006 From: bart_doggers at YAHOO.COM (Albert Anderson) Date: Wed, 26 Jul 2006 09:29:15 -0700 Subject: how do you make this symbols In-Reply-To: <007701c6b0bf$55e2d910$6501a8c0@TFD620> Message-ID: Thanks a lot Todd Fagin. That worked sweet! Todd Fagin wrote: v\:* {behavior:url(#default#VML);} o\:* {behavior:url(#default#VML);} w\:* {behavior:url(#default#VML);} .shape {behavior:url(#default#VML);} st1\:*{behavior:url(#default#ieooui) } In your symbol file: SYMBOL NAME "punkt" TYPE ELLIPSE POINTS 1 1 END FILLED TRUE END SYMBOL NAME "linie-gepunkt2_C" TYPE cartoline LINECAP butt LINEJOIN miter LINEJOINMAXSIZE 3 STYLE 1 20 1 20 END END In your map file under the appropriate layer: CLASS STYLE SYMBOL "punkt" SIZE 0.5 COLOR 0 0 0 ANTIALIAS TRUE END STYLE SYMBOL "linie-gepunkt2_C" SIZE 4 COLOR 0 0 0 ANTIALIAS TRUE END END For more information on the construction of cartographic symbols, see: http://mapserver.gis.umn.edu/docs/howto/cartosymbols/#multiple-rendering-and-overlay. To download the examples used there: http://www.mapmedia.de/dokumente/umn_signaturen_howto/vortrag_demo.zip Todd Fagin Coordinate Solutions, Inc. 501 N.E. 15th St. Oklahoma City, OK 73104 405.246.9396 (Voice) 405.227.0781 (Fax) --------------------------------- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Albert Anderson Sent: Wednesday, July 26, 2006 9:09 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] how do you make this symbols Hi List, I wonder if someone can help me with coding this symbol for my map file? --|---|---|---|---|---|---|---|-- Kombinerte Linien Thanks, Albert --------------------------------- Do you Yahoo!? Everyone is raving about the all-new Yahoo! Mail Beta. --------------------------------- Do you Yahoo!? Next-gen email? Have it all with the all-new Yahoo! Mail Beta. -------------- next part -------------- An HTML attachment was scrubbed... URL: From jarg58 at GMAIL.COM Wed Jul 26 09:41:53 2006 From: jarg58 at GMAIL.COM (Alejandro Rico) Date: Wed, 26 Jul 2006 11:41:53 -0500 Subject: Mapserver blank image In-Reply-To: <44C68D06.8050207@dnr.state.ak.us> Message-ID: Hi Raymond looking at your mapfile, i found in the data source part in the layer, that you aren't using an identifier in the select statement, and mapserver need it, so add the column name that identify your geometries and use the clause USING UNIQUE column_name. May be this can help On 7/25/06, Raymond Marcil wrote: > > Hi, > > I'm using mapserver-4.8.4. Using debian linux w/apache 1.3. Mapserver > hits oracle spatial 9i (observed via tcpdump) and renders a blank image. > I suspect a configuration issue. See attached gis.map. Adapted from > demonstration demo.map. Any ideas/suggestions appreciated. > > Thanks, Ray > > > > -- > ======================================== > Raymond E. Marcil > Analyst/Programmer IV > Land Records Information Section > Alaska Department of Natural Resources > 550 West 7th., #706, Anchorage, AK 99501 > Ph: (907)269-8855 / Fax: (907)269-8911 > ========================================= > > > > # > # Start of map file > # > NAME DEMO > STATUS ON > SIZE 600 600 > > > # Anchorage: lat: 61d 13m N > # long: 149d 52' W > # Alaska latitude (y): 51-71 > # longitude (x): 129-187 > # EXTENT [minx] [miny] [maxx] [maxy] > # EXTENT -71.53179836 -41.29253644 -71.14854968 -41.04421467 > EXTENT -180 -90 180 80 > > UNITS METERS > SHAPEPATH "data" > IMAGECOLOR 255 255 255 > > CONFIG "PROJ_LIB" "/usr/local/share/proj/" > > # you may need to change this to match your MapServer build > IMAGETYPE PNG > > # > # Start of web interface definition (including WMS enabling metadata) > # > WEB > LOG /tmp/mapserver.log > HEADER gis_header.html > TEMPLATE gis.html > FOOTER gis_foot.html > IMAGEPATH "set in gis.html" > IMAGEURL "set in gis.html" > METADATA > WMS_TITLE "UMN MapServer Itasca Demo" > WMS_ABSTRACT "This is the UMN MapServer demonstration application for > Itasca County located in north central Minnesota." > > > # change this value to match your setup > WMS_ONLINERESOURCE "http://localhost/itasca/gis.html" > > WMS_SRS "EPSG:26915" > END > END > > QUERYMAP > SIZE 200 200 > STATUS ON > STYLE HILITE > COLOR 255 0 0 > END > > # > # Start of reference map > # > REFERENCE > #IMAGE graphics/reference.png > IMAGE graphics/alaska.gif > EXTENT -71.53179836 -41.29253644 -71.14854968 -41.04421467 > SIZE 120 120 > STATUS ON > COLOR -1 -1 -1 > OUTLINECOLOR 255 0 0 > END > > # > # Start of legend > # > LEGEND > KEYSIZE 18 12 > LABEL > TYPE BITMAP > SIZE MEDIUM > COLOR 0 0 89 > END > STATUS ON > END > > # > # Start of scalebar > # > SCALEBAR > IMAGECOLOR 255 255 255 > LABEL > COLOR 255 255 255 > SIZE tiny > END > STYLE 1 > SIZE 80 2 > COLOR 255 255 255 > UNITS MILES > INTERVALS 1 > TRANSPARENT TRUE > STATUS TRUE > END > > # > # Start of symbol definitions (we're only using a few) > # > SYMBOL > NAME 'circle' > TYPE ELLIPSE > POINTS 1 1 END > FILLED TRUE > END > > # > # Start of layer definitions > # > > # > # Define oracle spatial. > # > LAYER > NAME "coast" > DEBUG ON > TYPE POLYGON > STATUS DEFAULT > CONNECTIONTYPE oraclespatial > CONNECTION "mapper_web/***@dnrdev1" > #DATA "GEOM FROM MAPPER.MV_COAST_SIMPLE USING SRID 1000000" > DATA "GEOM FROM (SELECT GEOM FROM MAPPER.MV_COAST_SIMPLE) USING SRID > 1000000" > > DUMP TRUE > CLASS > NAME "coast" > STYLE > OUTLINECOLOR 0 0 0 > COLOR 0 128 128 > END > TEMPLATE "template.html" > COLOR 0 128 128 > END > > END > > END # Map File > > > -- Alejandro Rico -------------- next part -------------- An HTML attachment was scrubbed... URL: From raymond_marcil at DNR.STATE.AK.US Wed Jul 26 10:02:35 2006 From: raymond_marcil at DNR.STATE.AK.US (Raymond Marcil) Date: Wed, 26 Jul 2006 09:02:35 -0800 Subject: Mapserver blank image Message-ID: All, Ultimately I solved the issue by changing the EXTENT. I had the value in decimal degrees which upon observation did not correlate with the values in the GEOM column of the spatial table. I used much large values and the map was rendered. In order of evolution: # EXTENT [minx] [miny] [maxx] [maxy] # EXTENT -71.53179836 -41.29253644 -71.14854968 -41.04421467 <== Original try # EXTENT -180 -90 180 80 <== Pulled from http://mapserver.gis.umn.edu EXTENT -1000000 -1000000 1000000 1000000 <== Working values (could likely decrease with analysis) Thanks for all advice. --Ray -- ======================================== Raymond E. Marcil Analyst/Programmer IV Land Records Information Section Alaska Department of Natural Resources 550 West 7th., #706, Anchorage, AK 99501 Ph: (907)269-8855 / Fax: (907)269-8911 ========================================= From pcorti at GMAIL.COM Wed Jul 26 10:07:17 2006 From: pcorti at GMAIL.COM (Paolo Corti) Date: Wed, 26 Jul 2006 10:07:17 -0700 Subject: Again c# Unable to load DLL (mapscript) In-Reply-To: <5419753.post@talk.nabble.com> Message-ID: I solved this (thanks again to Tamas for helping me) On the first machine I solved building mapserver from the installation toolkit. it came out a very important thing when I was installing (this afternoon) mapserver on another machine. All the problems I had with my mapserver installation on my development machine (unable to load dll mapscript...) can be easily avoided without the need to build mapserver from the building kit. It is sufficient to copy on the server the mapserver directory distribuited as precompiled binaries (at http://maptools.org/ms4w/index.phtml?page=downloads.html) on the server and then include the path to the bin directory. For example I extracted ms4w under c, and then i added at the PATH environment variable this path: "C:\ms4w\Apache\cgi-bin" (under this dir there are all the dll needed by mapscript) and now it is working like a charm. -- View this message in context: http://www.nabble.com/Again-c--Unable-to-load-DLL-%28mapscript%29-tf1975214.html#a5507168 Sent from the Mapserver - User forum at Nabble.com. From bfraser at GEOANALYTIC.COM Wed Jul 26 10:07:05 2006 From: bfraser at GEOANALYTIC.COM (Brent Fraser) Date: Wed, 26 Jul 2006 11:07:05 -0600 Subject: Moving Points Message-ID: Jay, I assume you are eventually going to have a custom program to automatically "receive" locations via email, ftp, etc and put them somewhere (a datastore) where a viewing/display program like mapserver can access them. Because of the need to regularly update the positions, using a database (like PostgreSQL) as a data store is a good choice. If you were to use a shapefile or a text file to keep the locations, you may have file access problems when the display program tries to read the datastore when they are being updated. And as David Bitner points out, there are other good reasons to use a database for this kind of data. As for the client side, when tracking slow moving objects (ships, trucks) we use a plain html mapserver template rendering the symbols onto a png file, automatically refreshing the graphic every 10 minutes or so. If you need to track faster moving things, or require more sophisticated functions on the client, you may need to use Java, Javascript or some other client-side scripting language to build functions to retrieve the positions and see the symbols move in real time, appear animated, etc. Brent Fraser GeoAnalytic Inc Calgary, Alberta, Canada ----- Original Message ----- From: "Jay Varner" To: Sent: Wednesday, July 26, 2006 7:54 AM Subject: [UMN_MAPSERVER-USERS] Moving Points > Hi everyone, I'm totally new to MapServer. I've been working with it > for a little over a month now. I've read the books and worked through > the tutorials. I'm now working on a demo project and I just can't get > it all planned out in my head. I'm hopping ya'll can kick me in a good > direction. > > So, the basic function of the map will be to track gps (or something > similar) data on a map. The data will of course be updated regularly > by various devices sending some sort of x,y,z location data. That data > will be plotted on the map, and the zone (city, county, zip or > something) the device is in will be recorded. > > I've searched around for the past few days and have not been able to > find an example in MapServer. Any help and advice is most welcomed. > > Thanks, > Jay > > P.S. > I don't really know what sort of device will be used to send the data, > so I just need to fake it. From angusd at MIDWESTSURVEYS.COM Wed Jul 26 09:15:26 2006 From: angusd at MIDWESTSURVEYS.COM (Angus Dickey) Date: Wed, 26 Jul 2006 10:15:26 -0600 Subject: UDig & Mapserver WFS Message-ID: Hey List, Has anybody tried using UDig as a client for a WFS service from Mapserver? I have mapserver running a WFS service that seems to produce fine GML, some other clients can connect correctly, but UDig always errors out. I will post the actual error to the UDig list, but was hoping somebody might have some insight into whether this is a UDig or Mapserver problem. For a sample mapserver response try this: http://ogc.midwestsurveys.com/geoserve/ms?SERVICE=WFS&version=1.0.0&request=getfeature&TYPENAME=capitals&OUTPUTFORMAT=gml2 Thanks, ~Angus From bartvde at XS4ALL.NL Wed Jul 26 10:27:05 2006 From: bartvde at XS4ALL.NL (Bart van den Eijnden (OSGIS)) Date: Wed, 26 Jul 2006 19:27:05 +0200 Subject: UDig & Mapserver WFS In-Reply-To: Message-ID: I think your problem is with the schema (DescribeFeatureType refererence in the GML response). If I use: http://ogc.midwestsurveys.com/geoserve/ms?SERVICE=WFS&VERSION=1.0.0&REQUEST=DescribeFeatureType&TYPENAME=capitals&OUTPUTFORMAT=XMLSCHEMA I don't get back the schema. capitals should be Capitals then it works. uDIG is very sensitive to such things. Best regards, Bart Angus Dickey wrote: >Hey List, > >Has anybody tried using UDig as a client for a WFS service from Mapserver? I have mapserver running a WFS service that seems to produce fine GML, some other clients can connect correctly, but UDig always errors out. > >I will post the actual error to the UDig list, but was hoping somebody might have some insight into whether this is a UDig or Mapserver problem. > >For a sample mapserver response try this: > >http://ogc.midwestsurveys.com/geoserve/ms?SERVICE=WFS&version=1.0.0&request=getfeature&TYPENAME=capitals&OUTPUTFORMAT=gml2 > >Thanks, > >~Angus > > > > > -- Bart van den Eijnden OSGIS, Open Source GIS http://www.osgis.nl From roberto.bianconi at GMAIL.COM Wed Jul 26 10:39:15 2006 From: roberto.bianconi at GMAIL.COM (Roberto Bianconi) Date: Wed, 26 Jul 2006 19:39:15 +0200 Subject: fastest way to convert lon-lat to points In-Reply-To: Message-ID: On 7/20/06, P Kishor wrote: > On 7/20/06, Steve Lime wrote: > > Puneet: Why is speed such a big deal or will you be doing this often? > > I will be doing this a few times a year (so, often, although not > necessarily often enough), but this portion is only a part of a longer > process. So, I have to optimize each step as much as I can for overall > better rate of return. > > > > > Anyway, if it were me I'd just write a quick MapScript script using > > perl. Create a new shapefileObj, a new XBase table, open the file and > > start looping. The loop itself should have like 3 lines of code. The > > whole script should be about 15... > > Hi, suppose your csv file is made of these records: 12.500,41.890,790380 12.530,41.890,790480 ... In Perl you might go like this. Actually a bit more than 15 lines, but you can reduce it if you like :)) use mapscript; use XBase; my $csv = 'dummy.csv'; my $outfile = 'dummy_out'; # any name with no extension my $table = XBase->create(name => "$outfile.dbf", field_names =>['X','Y','VALUE'], field_types => ['N','N','N'], field_lengths => [8,8,10], field_decimals => [3,3,0]) or die XBase->errstr; my $shapefile = new mapscript::shapefileObj($outfile,1) or die; open (CSV,"<$csv") or die "Cannot open $csv: $!\n"; my @lines = ; close (CSV); my $i = -1; foreach (@lines) { chomp; my @rec = split /,/; my ($x,$y,$value) = @rec; $i++; $table->set_record($i, at rec) or die XBase->errstr; my $point = new mapscript::pointObj(); $point->setXY($x,$y); my $line = new mapscript::lineObj(); $line->add($point); my $shape = new mapscript::shapeObj(); $shape->add($line); $shapefile->add($shape); } $shapefile = ''; ciao Roberto From ollerery at ENGR.ORST.EDU Wed Jul 26 10:49:01 2006 From: ollerery at ENGR.ORST.EDU (Ryan Ollerenshaw) Date: Wed, 26 Jul 2006 10:49:01 -0700 Subject: UDig & Mapserver WFS In-Reply-To: <44C7A5E9.2010900@xs4all.nl> Message-ID: I have also been having a problem with uDIG and WFS which is the GML returned from my WFS seems to be good (all the data is present), but uDIG does not output any data about my features when using the Information tool. here is part of the XML returned using the HTTP request: http://neuron/cgi-bin/mapserv?map=../html/mapserver/htdocs/webservices.map&SERVICE=WFS&VERSION=1.0.0&REQUEST=GetFeature&TYPENAME=hrsc_nd& -180.000000,-79.029000 180.000000,83.969300 87.715900,-48.050500 92.044000,-31.895800 87.715900,-47.952400 87.748000,-47.752900 87.809800,-47.356500 .... ... 91.455800,-34.774400 91.461900,-34.915400 87.715900,-47.952400 1 4 h0010_0000_nd2.img MEX_HRSC_NADIR 0001 0000 2004-01-10T13:51:51.460Z 19.8 ... ... Quoting "Bart van den Eijnden (OSGIS)" : > I think your problem is with the schema (DescribeFeatureType refererence > in the GML response). > > If I use: > http://ogc.midwestsurveys.com/geoserve/ms?SERVICE=WFS&VERSION=1.0.0&REQUEST=DescribeFeatureType&TYPENAME=capitals&OUTPUTFORMAT=XMLSCHEMA > > I don't get back the schema. > > capitals should be Capitals then it works. > > uDIG is very sensitive to such things. > > Best regards, > Bart > > Angus Dickey wrote: > > >Hey List, > > > >Has anybody tried using UDig as a client for a WFS service from Mapserver? I > have mapserver running a WFS service that seems to produce fine GML, some > other clients can connect correctly, but UDig always errors out. > > > >I will post the actual error to the UDig list, but was hoping somebody might > have some insight into whether this is a UDig or Mapserver problem. > > > >For a sample mapserver response try this: > > > >http://ogc.midwestsurveys.com/geoserve/ms?SERVICE=WFS&version=1.0.0&request=getfeature&TYPENAME=capitals&OUTPUTFORMAT=gml2 > > > >Thanks, > > > >~Angus > > > > > > > > > > > > > -- > Bart van den Eijnden > OSGIS, Open Source GIS > http://www.osgis.nl > From bartvde at XS4ALL.NL Wed Jul 26 11:39:13 2006 From: bartvde at XS4ALL.NL (Bart van den Eijnden (OSGIS)) Date: Wed, 26 Jul 2006 20:39:13 +0200 Subject: WFS: why not use the default namespace? Message-ID: Hi list, why doesn't Mapserver WFS use the default namespace, i.e.: xmlns="http://mapserver.gis.umn.edu/mapserver" so that it does not have to put ms: in front of all the elements? I am asking this since we have a problem converting Mapserver GML into ESRI Shapefile using ogr2ogr. The attribute names will come out as ms_XXXX which confuses users who are also familiar with the native data. Hope to hear some thoughts on this. Best regards, Bart -- Bart van den Eijnden OSGIS, Open Source GIS http://www.osgis.nl From Tom.Kralidis at EC.GC.CA Wed Jul 26 11:47:21 2006 From: Tom.Kralidis at EC.GC.CA (Kralidis,Tom [Burlington]) Date: Wed, 26 Jul 2006 14:47:21 -0400 Subject: WFS: why not use the default namespace? Message-ID: Hi, I agree w/ Bart here. I would prefer to use a default namespace (i.e. xmlns=...), as opposed to explicitly specifying this in the output, for elements not carried by gml: or wfs:. The default namespace would be either what the user defines in wfs_namespace_uri, or, if not specified, would default to "http://mapserver.gis.umn.edu/mapserver". Having said this, I'm not sure how much of this is in MapServer code vs. the OGR GML code. ..Tom -----Original Message----- From: UMN MapServer Users List on behalf of Bart van den Eijnden (OSGIS) Sent: Wed 26-Jul-06 14:39 To: MAPSERVER-USERS at LISTS.UMN.EDU Cc: Subject: [UMN_MAPSERVER-USERS] WFS: why not use the default namespace? Hi list, why doesn't Mapserver WFS use the default namespace, i.e.: xmlns="http://mapserver.gis.umn.edu/mapserver" so that it does not have to put ms: in front of all the elements? I am asking this since we have a problem converting Mapserver GML into ESRI Shapefile using ogr2ogr. The attribute names will come out as ms_XXXX which confuses users who are also familiar with the native data. Hope to hear some thoughts on this. Best regards, Bart -- Bart van den Eijnden OSGIS, Open Source GIS http://www.osgis.nl From pramsey at REFRACTIONS.NET Wed Jul 26 11:52:25 2006 From: pramsey at REFRACTIONS.NET (Paul Ramsey) Date: Wed, 26 Jul 2006 11:52:25 -0700 Subject: UDig & Mapserver WFS In-Reply-To: <1153936141.44c7ab0d3c284@webmail.oregonstate.edu> Message-ID: This is a uDig problem. We are known to work with earlier mapserver versions, but later ones changed geometry representations a bit and confused us. We are working on WFS support now against Ionic servers, and hopefully those fixes will also fix the later versions of mapserver. P Ryan Ollerenshaw wrote: > I have also been having a problem with uDIG and WFS which is the GML returned > from my WFS seems to be good (all the data is present), but uDIG does not > output any data about my features when using the Information tool. > > here is part of the XML returned using the HTTP request: > http://neuron/cgi-bin/mapserv?map=../html/mapserver/htdocs/webservices.map&SERVICE=WFS&VERSION=1.0.0&REQUEST=GetFeature&TYPENAME=hrsc_nd& > > > > > -180.000000,-79.029000 180.000000,83.969300 > > > > > > > 87.715900,-48.050500 92.044000,-31.895800 > > > > > > > > 87.715900,-47.952400 87.748000,-47.752900 87.809800,-47.356500 > .... > ... > 91.455800,-34.774400 91.461900,-34.915400 87.715900,-47.952400 > > > > > > 1 > 4 > h0010_0000_nd2.img > MEX_HRSC_NADIR > 0001 > 0000 > 2004-01-10T13:51:51.460Z > 19.8 > ... > ... > > > Quoting "Bart van den Eijnden (OSGIS)" : > >> I think your problem is with the schema (DescribeFeatureType refererence >> in the GML response). >> >> If I use: >> > http://ogc.midwestsurveys.com/geoserve/ms?SERVICE=WFS&VERSION=1.0.0&REQUEST=DescribeFeatureType&TYPENAME=capitals&OUTPUTFORMAT=XMLSCHEMA >> I don't get back the schema. >> >> capitals should be Capitals then it works. >> >> uDIG is very sensitive to such things. >> >> Best regards, >> Bart >> >> Angus Dickey wrote: >> >>> Hey List, >>> >>> Has anybody tried using UDig as a client for a WFS service from Mapserver? I >> have mapserver running a WFS service that seems to produce fine GML, some >> other clients can connect correctly, but UDig always errors out. >>> I will post the actual error to the UDig list, but was hoping somebody might >> have some insight into whether this is a UDig or Mapserver problem. >>> For a sample mapserver response try this: >>> >> http://ogc.midwestsurveys.com/geoserve/ms?SERVICE=WFS&version=1.0.0&request=getfeature&TYPENAME=capitals&OUTPUTFORMAT=gml2 >>> Thanks, >>> >>> ~Angus >>> >>> >>> >>> >>> >> >> -- >> Bart van den Eijnden >> OSGIS, Open Source GIS >> http://www.osgis.nl >> From bartvde at XS4ALL.NL Wed Jul 26 12:01:28 2006 From: bartvde at XS4ALL.NL (Bart van den Eijnden (OSGIS)) Date: Wed, 26 Jul 2006 21:01:28 +0200 Subject: UDig & Mapserver WFS In-Reply-To: <44C7A5E9.2010900@xs4all.nl> Message-ID: Later on I realized this means Mapserver's parameter checking is more strict (therefore correct) on DescribeFeatureType than on GetFeature. Since parameter values need to be interpreted case-sensitive, it should already report on your GetFeature request with capitals instead of Capitals that it does not know of such a typename. Instead of that it's using the value of the typename parameter in the DescribeFeatureType url and giving back there an error that it does not know of such a feature type later on. I have opened up a bug for this: http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=1848 Best regards, Bart Bart van den Eijnden (OSGIS) wrote: > I think your problem is with the schema (DescribeFeatureType > refererence in the GML response). > > If I use: > http://ogc.midwestsurveys.com/geoserve/ms?SERVICE=WFS&VERSION=1.0.0&REQUEST=DescribeFeatureType&TYPENAME=capitals&OUTPUTFORMAT=XMLSCHEMA > > > I don't get back the schema. > > capitals should be Capitals then it works. > > uDIG is very sensitive to such things. > > Best regards, > Bart > > Angus Dickey wrote: > >> Hey List, >> >> Has anybody tried using UDig as a client for a WFS service from >> Mapserver? I have mapserver running a WFS service that seems to >> produce fine GML, some other clients can connect correctly, but UDig >> always errors out. >> >> I will post the actual error to the UDig list, but was hoping >> somebody might have some insight into whether this is a UDig or >> Mapserver problem. >> >> For a sample mapserver response try this: >> >> http://ogc.midwestsurveys.com/geoserve/ms?SERVICE=WFS&version=1.0.0&request=getfeature&TYPENAME=capitals&OUTPUTFORMAT=gml2 >> >> >> Thanks, >> >> ~Angus >> >> >> >> >> > > -- Bart van den Eijnden OSGIS, Open Source GIS http://www.osgis.nl From bartvde at XS4ALL.NL Wed Jul 26 12:03:27 2006 From: bartvde at XS4ALL.NL (Bart van den Eijnden (OSGIS)) Date: Wed, 26 Jul 2006 21:03:27 +0200 Subject: WFS: why not use the default namespace? In-Reply-To: <2576812186CDD411BF1500508B6DCE950D17F4A2@ecnwri1.ontario.int.ec.gc.ca> Message-ID: Hi Tom, thanks for the agreement. Wrt the OGR GML code, we had a lot of discussion there as well. Now it just replaces : by _ for attributes. Their argument is that if it would take off all namespaces, there could be name clashes for attributes. That seems a reasonable enough argument. Best regards, Bart Kralidis,Tom [Burlington] wrote: >Hi, > >I agree w/ Bart here. I would prefer to use a default namespace (i.e. xmlns=...), as opposed to explicitly specifying this in the output, for elements not carried by gml: or wfs:. The default namespace would be either what the user defines in wfs_namespace_uri, or, if not specified, would default to "http://mapserver.gis.umn.edu/mapserver". > >Having said this, I'm not sure how much of this is in MapServer code vs. the OGR GML code. > >..Tom > > > >-----Original Message----- >From: UMN MapServer Users List on behalf of Bart van den Eijnden (OSGIS) >Sent: Wed 26-Jul-06 14:39 >To: MAPSERVER-USERS at LISTS.UMN.EDU >Cc: >Subject: [UMN_MAPSERVER-USERS] WFS: why not use the default namespace? > >Hi list, > >why doesn't Mapserver WFS use the default namespace, i.e.: > >xmlns="http://mapserver.gis.umn.edu/mapserver" > >so that it does not have to put ms: in front of all the elements? > >I am asking this since we have a problem converting Mapserver GML into >ESRI Shapefile using ogr2ogr. The attribute names will come out as >ms_XXXX which confuses users who are also familiar with the native data. > >Hope to hear some thoughts on this. > >Best regards, >Bart > > > -- Bart van den Eijnden OSGIS, Open Source GIS http://www.osgis.nl From bertelli at CHARTA.ACME.COM Wed Jul 26 14:27:45 2006 From: bertelli at CHARTA.ACME.COM (Carlo A. Bertelli (Charta s.r.l.)) Date: Wed, 26 Jul 2006 23:27:45 +0200 Subject: NQuery or Query with overlapping planning regulations In-Reply-To: <44C707F4.3000801@spiekermann.de> Message-ID: Thank you, yes I think the overlapping regulations would always be less than 10, perfectly feasible as a solution, but how to decide when to show a target page - because we have only one option - or a selection page - because we have two or more answers? 2006/7/26, Manfred Meier : > Hello, > > if your number of different regulations at the same time is small, you > could generate all info for these regulations and display them on the > same page in invisible div's or iframe's together with a javascript > powered selection menu for the user. > > Surely there are problems with javascript, browser compatibility and so > on, but perhaps it's an idea. > > Manfred > > > > > Carlo A. Bertelli (Charta s.r.l.) schrieb: > > > Hello, > > we are working at the website of the will-be Urban Center for the > > municipality of Genova, Italy. > > By now we have a website with descriptions of public and private works > > which is driven by interactive maps. > > The prototype works fairly well, it is mainly cgi mapserver inside a > > simple php custom made page and is supposed to become a cms driven > > site that uses Kaistar (http://www.kaistar.org - a java based open > > source cms). > > I think the problem I'm going to explain could be easily solved in > > php, but we are not going to use php as a long run solution. > > The problem could be conceived as a conditional choice between query > > and nquery and it's due to the specific nature of the geographic data. > > We use maps to go from one page (about areas, or problems, or public > > plans, or projects) to another. > > If we have project data that describe new developments or complete > > redevelopments, the problem does not arise. We will have projects > > spread all around the town area that do not overlap, so when we click > > on one area we can easily direct the user to a new page (a simple > > template contains the reference to the relevant project). > > All seems to work well. > > But when we deal with planning regulationswe cannot always direct the > > user to a single page. Sometimes regulations overlap. We should have > > some logic (java based or, by now, php based) in between that: > > * shows a page to let the user decide what page to go when multiples > > pages (for multiple regulations) are possible; > > * directly goes to the selected page when the query outputs only one page. > > Do someone have a better representation of the problem or a clean > > solution for this problem? > > Just to understand what happens in the prototype, look at: > > http://civis.comune.genova.it/uc5_web/ > > http://civis.comune.genova.it/uc5_web/interna.php?codp=RIGURB01_1 > > works well. This is the case of redevelopment; > > http://civis.comune.genova.it/uc5_web/interna.php?codp=GEC_RECCS1 > > does not work as supposed. Multiple regulations overlap here. > > > > -- -------------------------------------------------------------------------- Carlo A. Bertelli Charta servizi e sistemi per il territorio e la storia ambientale srl Dipendenze del palazzo di Clemente Doria, vc. alla Chiesa della Maddalena 9/2 16124 Genova (Italy) tel. +39(0)10 2475439 fax +39(0)10 2475439 gsm:+39 333 2298345 e-mail: bertelli at charta.acme.com http://www.charta.acme.com -------------------------------------------------------------------------- From malabapa at CI.HARRISONBURG.VA.US Wed Jul 26 18:23:21 2006 From: malabapa at CI.HARRISONBURG.VA.US (Paul A Malabad) Date: Wed, 26 Jul 2006 21:23:21 -0400 Subject: Dlegend default layers on Message-ID: An HTML attachment was scrubbed... URL: From assefa at DMSOLUTIONS.CA Wed Jul 26 18:35:26 2006 From: assefa at DMSOLUTIONS.CA (Yewondwossen Assefa) Date: Wed, 26 Jul 2006 21:35:26 -0400 Subject: WMS time question In-Reply-To: <6603.145.50.39.8.1153913646.squirrel@webmail.xs4all.nl> Message-ID: Bart, Bart van den Eijnden (OSGIS) wrote: > Hi list, > > looking through the Mapserver WMS time HOWTO I wondered one thing, it is > only possible to have 1 timeitem, a DB column which contains the > date/time. Ofcourse this is pretty okay for satellite images (in a > tileindex) which are taken every X days/months. > > But what happens to road network segments (geometries in Oracle Spatial > for instance) which have a minimum date and a maximum date? So you need to > specify 2 timeitems (one min and one max) for that. Was this use case just > not implemented? > What would the min/max date represent : the valid time extents or simply 2 time fields on which we can do a query ? The wms request allows to send a time value that is then compared to the value inside the timeitem. Would you expect to be able to compare the time request between the 2 timeitmes defined ? > Best regards, > Bart > -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: assefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- From gerry.creager at TAMU.EDU Wed Jul 26 18:54:48 2006 From: gerry.creager at TAMU.EDU (Gerry Creager) Date: Wed, 26 Jul 2006 20:54:48 -0500 Subject: WMS time question In-Reply-To: <44C8185E.5030704@dmsolutions.ca> Message-ID: I'm thinking land-use/land-cover changes over time. While these could be represented by a single consensus timestamp, having a period/interval makes more sense. As Bart mentioned, his data are for roads and have a valid from-to timeset. As I recall WMS time series history, the requirement was for a single timestamp and that's what got implemented. GoMOOS, right? gerry Yewondwossen Assefa wrote: > Bart, > > > Bart van den Eijnden (OSGIS) wrote: > >> Hi list, >> >> looking through the Mapserver WMS time HOWTO I wondered one thing, it is >> only possible to have 1 timeitem, a DB column which contains the >> date/time. Ofcourse this is pretty okay for satellite images (in a >> tileindex) which are taken every X days/months. >> >> But what happens to road network segments (geometries in Oracle Spatial >> for instance) which have a minimum date and a maximum date? So you >> need to >> specify 2 timeitems (one min and one max) for that. Was this use case >> just >> not implemented? >> > > What would the min/max date represent : the valid time extents or > simply 2 time fields on which we can do a query ? > The wms request allows to send a time value that is then compared to > the value inside the timeitem. Would you expect to be able to compare > the time request between the 2 timeitmes defined ? > >> Best regards, >> Bart >> > > -- Gerry Creager -- gerry.creager at tamu.edu Texas Mesonet -- AATLT, Texas A&M University Cell: 979.229.5301 Office: 979.458.4020 FAX 979.862.3983 MAIL: AATLT, 3139 TAMU Physical: 1700 Research Parkway, Suite 160, College Station, TX 77843-3139 From m.meier at SPIEKERMANN.DE Wed Jul 26 21:56:26 2006 From: m.meier at SPIEKERMANN.DE (Manfred Meier) Date: Thu, 27 Jul 2006 06:56:26 +0200 Subject: NQuery or Query with overlapping planning regulations In-Reply-To: <303ea9510607261427j3a631851ie922d9f5d2663697@mail.gmail.com> Message-ID: Hello, I'm not sure, I understood your answer totally right, so here is what I would try: - the user clicks a point in the map, - on the server side your CGI-Script or anything like that identifies with the use of mapscript that there are different regulations, - it generates a new html-page with the multiple overlapping div's containing the maps and the text, and the uppermost div, which is a selection menu, - it also creates the javascript that makes that div visible which the user selects in the menu, - in each regulation's div you have a button to return to the selection div. Another solution may be not to generate the complete pages if you have more than one regulation. You could generate with mapscript the images which are in overlaying div's and in the text for the output page you inform your user, what he can select and why. With the images, which are separatly made visible the user has an overview of what he is selecting. Manfred Carlo A. Bertelli (Charta s.r.l.) schrieb: > Thank you, yes I think the overlapping regulations would always be > less than 10, perfectly feasible as a solution, but how to decide when > to show a target page - because we have only one option - or a > selection page - because we have two or more answers? > > 2006/7/26, Manfred Meier : > >> Hello, >> >> if your number of different regulations at the same time is small, you >> could generate all info for these regulations and display them on the >> same page in invisible div's or iframe's together with a javascript >> powered selection menu for the user. >> >> Surely there are problems with javascript, browser compatibility and so >> on, but perhaps it's an idea. >> >> Manfred >> >> >> >> >> Carlo A. Bertelli (Charta s.r.l.) schrieb: >> >> > Hello, >> > we are working at the website of the will-be Urban Center for the >> > municipality of Genova, Italy. >> > By now we have a website with descriptions of public and private works >> > which is driven by interactive maps. >> > The prototype works fairly well, it is mainly cgi mapserver inside a >> > simple php custom made page and is supposed to become a cms driven >> > site that uses Kaistar (http://www.kaistar.org - a java based open >> > source cms). >> > I think the problem I'm going to explain could be easily solved in >> > php, but we are not going to use php as a long run solution. >> > The problem could be conceived as a conditional choice between query >> > and nquery and it's due to the specific nature of the geographic data. >> > We use maps to go from one page (about areas, or problems, or public >> > plans, or projects) to another. >> > If we have project data that describe new developments or complete >> > redevelopments, the problem does not arise. We will have projects >> > spread all around the town area that do not overlap, so when we click >> > on one area we can easily direct the user to a new page (a simple >> > template contains the reference to the relevant project). >> > All seems to work well. >> > But when we deal with planning regulationswe cannot always direct the >> > user to a single page. Sometimes regulations overlap. We should have >> > some logic (java based or, by now, php based) in between that: >> > * shows a page to let the user decide what page to go when multiples >> > pages (for multiple regulations) are possible; >> > * directly goes to the selected page when the query outputs only one >> page. >> > Do someone have a better representation of the problem or a clean >> > solution for this problem? >> > Just to understand what happens in the prototype, look at: >> > http://civis.comune.genova.it/uc5_web/ >> > http://civis.comune.genova.it/uc5_web/interna.php?codp=RIGURB01_1 >> > works well. This is the case of redevelopment; >> > http://civis.comune.genova.it/uc5_web/interna.php?codp=GEC_RECCS1 >> > does not work as supposed. Multiple regulations overlap here. >> > >> >> > From mhln25 at YAHOO.COM Wed Jul 26 21:30:29 2006 From: mhln25 at YAHOO.COM (Mahalakshmi Narayanan) Date: Wed, 26 Jul 2006 21:30:29 -0700 Subject: MapServer source package download - fails Message-ID: Greetings from Chennai! It is observed that the download pages for source package are failing since last Saturday. It appears that the http://cvs.gis.umn.edu/dist/ folder does not have permission. http://cvs.gis.umn.edu/dist/mapserver-4.8.4.tar.gz fails and shows page cannot be displayed error. Kindly do the needful. With kind regards, Mahalakshmi Narayanan SSA National Informatics Centre Tamil Nadu State Centre Ministry of Information Technology Govt of India __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com From tylermitchell at SHAW.CA Wed Jul 26 22:30:11 2006 From: tylermitchell at SHAW.CA (Tyler Mitchell) Date: Wed, 26 Jul 2006 22:30:11 -0700 Subject: MapServer source package download - fails In-Reply-To: <20060727043029.37957.qmail@web55708.mail.re3.yahoo.com> Message-ID: It works for me just fine. I will put a copy up on another site and email you privately with the location. Tyler On 26-Jul-06, at 9:30 PM, Mahalakshmi Narayanan wrote: > Greetings from Chennai! > > It is observed that the download pages for source > package are failing since last Saturday. It appears > that the http://cvs.gis.umn.edu/dist/ folder does not > have permission. > > http://cvs.gis.umn.edu/dist/mapserver-4.8.4.tar.gz > fails and shows page cannot be displayed error. > > Kindly do the needful. > > With kind regards, > Mahalakshmi Narayanan > SSA > National Informatics Centre > Tamil Nadu State Centre > Ministry of Information Technology > Govt of India > > > __________________________________________________ > Do You Yahoo!? > Tired of spam? Yahoo! Mail has the best spam protection around > http://mail.yahoo.com From crisricana at GMAIL.COM Wed Jul 26 22:47:38 2006 From: crisricana at GMAIL.COM (cris ricana) Date: Thu, 27 Jul 2006 13:47:38 +0800 Subject: mapscript map loading error In-Reply-To: <44C5F495.3030703@spiekermann.de> Message-ID: Yes, you're right. I also need to give the tmp-dir absolute path in the IMAGEURL tab. There is indeed a simple solution in specifying a different tmp-dir than under the DocumentRoot folder (in my case, under /usr/local/apache2/htdocs/), that is, to make a symbolic link to that folder and then making sure that the php.ini and httpd.conf files follow this symlink. Anyway, thanks for all the help Manfred! :) Maricris On 7/25/06, Manfred Meier wrote: > ..... > > I still don't know why > > both mapserv and mapscript is ok with me using > > /usr/local/apache2/htdocs/tmp, but not on the others. > > Hello, > > perhaps there is a simple solution. If I understand right the mapserver > doku, then IMAGEURL is relative to the apache document root. So "/tmp/" > is by the apache interpreted as the absolute path > "/usr/local/apache2/htdocs/tmp/" (I assume that > /usr/local/apache2/htdocs is the documentroot in your httpd.conf). > > So this combination of IMAGEURL and IMAGEPATH works perfectly because > that is a directory tree owned by the user, the apache is running on. > > Manfred > > > > > cris ricana schrieb: > > Hi Manfred! > > > > Sorry, I haven't replied sooner. I have been away from the office for > > a few days and had just got back to fix this problem. > > > > I did what your new suggestions, with no success. But I returned to > > the tmp folder and your suggestion if it is indeed readable and > > writeable by apache and mapserver. I experimented on three locations > > for my tmp-folder: in /var/www/tmp; in /usr/local/tmp; and > > /usr/local/apache2/htdocs/tmp, making all three locations readable and > > writeable. Then I used these three locations successively in the > > IMAGEPATH line of the map file. I also made two versions of a html > > file, one has CGI forms using mapserv and the other one has PHP > > mapscripts extensions and tags. > > > > Using the CGI html file, mapserv had successfully written images to > > all three locations, but could only read/show the images from the > > /usr/local/apache2/htdocs/tmp folder. Mapscript can read/write on > > /usr/local/apache2/htdocs/tmp, but not on the other two. > > > > Therefore, it seems that the matter is all about permissions of the > > tmp-dir and the created images as well. To make these folders > > readable/writable, I used "chmod 777", a command I'm not comfortable > > using. Could there be safer way of doing these? I still don't know why > > both mapserv and mapscript is ok with me using > > /usr/local/apache2/htdocs/tmp, but not on the others. I had to admit > > I'm not really a linx expert, so I probably am embarrassing myself > > with these questions, so well... > > > > Maricris > > > > > > > > On 7/20/06, Manfred Meier wrote: > > > >> Hello, > >> > >> some additional "ideas": (You know, I'm not a php man) > >> > >> - is in your php.ini display_errors set to "on", so that erors are > >> shown? And are the errors and warnings activated? > >> > >> - you have this echo's in yout script as debug output. Can you insert an > >> echo after each of these 3 lines too, > >> > $map = ms_newMapObj($map_path); > >> > $image=$map->draw(); > >> > $image_url=$image->saveWebImage(); > >> so that you ca see what the last executed statement is? > >> > >> Manfred > >> > >> > >> cris ricana schrieb: > >> > >> > Hi! > >> > > >> > Here's the answer to your questions: > >> > > >> >> - is your tmp-dir writeable for the webserver? > >> > > >> > > >> > Yes it is. I've tested my mapserver installation successfully using > >> > CGI forms (the itasca samples, in particular) instead of PHP > >> > /mapscript. These CGI webpages performs well and writes their images > >> > in a temp folder I made (/usr/local/apache2/htdocs/tmp/). > >> > > >> > > >> >> - if you look at the source-code for the html-page in your browser, > >> does > >> >> it show the correct url in the image tag? > >> > > >> > > >> > The output in the browser (as well as the source code) is simply these > >> > text: > >> > > >> > "php_mapscript.so loaded. /usr/local/apache2/htdocs/recipe1/hello.map" > >> > > >> > Which are text echoed from the php code (see my php code below) from > >> > line 3 and 5. There are no lines for the image at all. Actually, I > >> > added these text to locate where the problem is in my php code. > >> > Otherwise, the output in the browser would be a blank page. > >> > > >> > > >> > Regards, > >> > Maricris > >> > > >> > > >> > > >> > > >> > > >> > > >> > On 7/20/06, Manfred Meier wrote: > >> > > >> >> Hello, > >> >> > >> >> - is your tmp-dir writeable for the webserver? > >> >> - if you look at the source-code for the html-page in your browser, > >> does > >> >> it show the correct url in the image tag? > >> >> > >> >> Manfred > >> >> > >> >> > >> >> cris ricana schrieb: > >> >> > >> >> > Hello! > >> >> > > >> >> > I'd like some help in using PHP/Mapscript. I have a freshly > >> installed > >> >> > Mapserver machine and is testing some simple php webpages to see if > >> >> > everything is working, especially PHP/Mapscript: > >> >> > > >> >> > >> >> > dl ("php_mapscript.so"); > >> >> > echo("php_mapscript.so loaded.\n"); //to see if the > >> >> library will > >> >> > sucessfully load. > >> >> > $map_path="/usr/local/apache2/htdocs/recipe1/hello.map"; > >> >> > echo($map_path); // absolute > >> path > >> >> > to the map file > >> >> > $map = ms_newMapObj($map_path); > >> >> > $image=$map->draw(); > >> >> > $image_url=$image->saveWebImage(); > >> >> > ?> > >> >> > > >> >> > > >> >> > Mapserver "hello world" > >> >> > > >> >> > > >> >> > > >> >> >

This is the simplest example I could come up with.

> >> >> > ... > >> >> > > >> >> > > >> >> > > >> >> > I'm using the following map file. It should produce an image with > >> just > >> >> > a line of text in it: > >> >> > > >> >> > MAP > >> >> > NAME HELLO > >> >> > STATUS ON > >> >> > EXTENT 0 0 4000 3000 > >> >> > SIZE 400 300 > >> >> > IMAGECOLOR 200 255 255 > >> >> > WEB > >> >> > IMAGEPATH "/usr/local/apache2/htdocs/tmp/" > >> >> > IMAGEURL "/tmp/" > >> >> > END > >> >> > > >> >> > LAYER > >> >> > NAME "credits" > >> >> > STATUS DEFAULT > >> >> > TRANSFORM FALSE > >> >> > TYPE ANNOTATION > >> >> > FEATURE > >> >> > POINTS > >> >> > 200 150 > >> >> > END > >> >> > TEXT 'Hello world. Mapserver rocks.' > >> >> > END > >> >> > CLASS > >> >> > LABEL > >> >> > TYPE BITMAP > >> >> > COLOR 0 0 0 > >> >> > END > >> >> > END > >> >> > END > >> >> > > >> >> > END > >> >> > > >> >> > The output I'm getting from the browsers is just the following: > >> >> > > >> >> > php_mapscript.so loaded. > >> >> > /usr/local/apache2/htdocs/recipe1/hello.map > >> >> > > >> >> > So it seems that everything is working, but only until it encounters > >> >> > the "$map = ms_newMapObj($map_path);" line. I've checked the tmp > >> >> > folder I've made to store the images and no images are made (no > >> >> > surprise there). Would somebody know what the problem might be and > >> >> > what could be the solution for this? I really, really need to know. > >> >> > > >> >> > Thanks, > >> >> > Maricris > >> >> > > >> >> > >> >> > >> > > >> > >> > > > > From b.vdeijnden at AGI.RWS.MINVENW.NL Wed Jul 26 23:58:45 2006 From: b.vdeijnden at AGI.RWS.MINVENW.NL (Eijnden, Bart van den (AGI)) Date: Thu, 27 Jul 2006 08:58:45 +0200 Subject: WMS time question Message-ID: Hi Assefa, so e.g. you would have (DD-MM-YYYY): ROAD_SEGMENT_ID MIN_DATE MAX_DATE 1 01-01-2006 01-04-2006 2 01-03-2006 01-06-2006 etc. So these represent validity, the road segment is valid/existant between MIN_DATE and MAX_DATE. So if I want a map with the situation of 01-05-2006, 1 would not be on it, but 2 would be. If I would want a map with the situation of 15-03-2006 until 15-04-2006, both would be on it. Does this make sense? Best regards, Bart -----Oorspronkelijk bericht----- Van: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]Namens Yewondwossen Assefa Verzonden: donderdag 27 juli 2006 3:35 Aan: MAPSERVER-USERS at LISTS.UMN.EDU Onderwerp: Re: [UMN_MAPSERVER-USERS] WMS time question Bart, Bart van den Eijnden (OSGIS) wrote: > Hi list, > > looking through the Mapserver WMS time HOWTO I wondered one thing, it is > only possible to have 1 timeitem, a DB column which contains the > date/time. Ofcourse this is pretty okay for satellite images (in a > tileindex) which are taken every X days/months. > > But what happens to road network segments (geometries in Oracle Spatial > for instance) which have a minimum date and a maximum date? So you need to > specify 2 timeitems (one min and one max) for that. Was this use case just > not implemented? > What would the min/max date represent : the valid time extents or simply 2 time fields on which we can do a query ? The wms request allows to send a time value that is then compared to the value inside the timeitem. Would you expect to be able to compare the time request between the 2 timeitmes defined ? > Best regards, > Bart > -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: assefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- Disclaimer ************************************************************************ Aan dit bericht kunnen geen rechten worden ontleend. Dit bericht is uitsluitend bestemd voor de geadresseerde. Als u dit bericht per abuis hebt ontvangen, wordt u verzocht het te vernietigen en de afzender te informeren. Wij adviseren u om bij twijfel over de juistheid of de volledigheid van de mail contact met afzender op te nemen. This message shall not constitute any rights or obligations. This message is intended solely for the addressee. If you have received this message in error, please delete it and notify the sender immediately. When in doubt whether this message is correct or complete, please contact the sender. ************************************************************************ From madprof at GMX.CH Thu Jul 27 00:04:39 2006 From: madprof at GMX.CH (Daniel Goetz) Date: Thu, 27 Jul 2006 09:04:39 +0200 Subject: WMS and SRS Message-ID: Hi coummunity, I built up a littel WMS-server with umn-mapserver (local installation; ms4w 2.1). The "original" projection of the single Layers is alway epsg:31468 (these are cartesian Gau?-Kr?ger-coordiantes). So I set the PORJECTION-object of each LAYER and in the MAP-object to "init=epsg:31468". In the METADATA of the MAP-object as well as in the single LAYER-objects I defined "wms_srs" as "EPSG:31468" as well. For testing purpose I did some WMS-GetMap-Requests with "SRS=EPSG:31468" and everything went fine. But now I want to make my WMS-service more interchangeable, so I want to define some more SRSs in that the WMS should be able to be displayed. I want to make it possible to "transform" (don't know the exact word in english) the WMS from its original Projection to another SRS (e.g. WGS 84; EPSG:4326). In my opinion this should be possible by adding another epsg-code to the METADATA. So my METADATA (both in the MAP and in the LAYERs-objects) look like this: "wms_srs" "EPSG:31468 EPSG:4326". But now every time I change the SRS block in my WMS-GetMap-request from "SRS=EPSG:31468" to "SRS=EPSG:4326" mapserver returns a blank image. I even tried to set the BBOX to latlon-coordinates when using "SRS=EPSG:4326" but even this failed. I also testes other SRSs (both geographic ones and real projections) but with no success. Could anybody please give me some help or hints what to do and what went wrong and why did this happen? I would be very glad and thankful. Thank you so much. regards Daniel -- Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen! Ideal f?r Modem und ISDN: http://www.gmx.net/de/go/smartsurfer From xslove at CENTRUM.CZ Thu Jul 27 00:56:43 2006 From: xslove at CENTRUM.CZ (xslove) Date: Thu, 27 Jul 2006 00:56:43 -0700 Subject: feature attribute character coding Message-ID: Hi, my shapefile has character attribute AT1, it has cp1250 coding within dbf file. When I show this dbf, characters are OK. When I read this data as the shapeObj usin mapscript, so getValue return bad coded character. where is problem? thanks radim -- View this message in context: http://www.nabble.com/feature-attribute-character-coding-tf2008222.html#a5516851 Sent from the Mapserver - User forum at Nabble.com. From spot.news at GMX.NET Thu Jul 27 02:19:02 2006 From: spot.news at GMX.NET (Spot) Date: Thu, 27 Jul 2006 11:19:02 +0200 Subject: Raster query gives error Message-ID: Good morning list! I have got a problem with raster queries. I use MapServer CGI on Windows with jBox as viewer. When I do a query by shape on a raster layer, MapServer throws the following error: mapserv(): Web application error. No way to generate a valid map extent from selected shapes. With a shape layer the query works without problems, meaning that the box rectangle is given to MapServer properly. Thanks for help, Philip From warmerdam at POBOX.COM Thu Jul 27 04:09:28 2006 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Thu, 27 Jul 2006 07:09:28 -0400 Subject: Raster query gives error In-Reply-To: <37000.217.194.34.116.1153991942.squirrel@wwws.franken.de> Message-ID: Spot wrote: > Good morning list! > > I have got a problem with raster queries. I use MapServer CGI on Windows > with jBox as viewer. > When I do a query by shape on a raster layer, MapServer throws the > following error: > > mapserv(): Web application error. No way to generate a valid map extent > from selected shapes. > > With a shape layer the query works without problems, meaning that the box > rectangle is given to MapServer properly. Philip, Can you see the cgi request that this corresponds to? If you can boil it down to a mapfile, a datafile and a request url that you can submit in a bug report then I can look into it. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | President OSGF, http://osgeo.org From warmerdam at POBOX.COM Thu Jul 27 04:46:14 2006 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Thu, 27 Jul 2006 07:46:14 -0400 Subject: WMS and SRS In-Reply-To: <20060727070439.147900@gmx.net> Message-ID: Daniel Goetz wrote: > But now every time I change the SRS block in my WMS-GetMap-request from > "SRS=EPSG:31468" to "SRS=EPSG:4326" mapserver returns a blank image. I even > tried to set the BBOX to latlon-coordinates when using "SRS=EPSG:4326" but > even this failed. I also testes other SRSs (both geographic ones and real > projections) but with no success. > > Could anybody please give me some help or hints what to do and what went > wrong and why did this happen? I would be very glad and thankful. Thank you > so much. Daniel, I think your approach of adding items to the wms_srs metadata is correct. But if you make your request in SRS=EPSG:4326 instead of SRS=EPSG:31468 you will also need to express your BBOX in 31468. That is, you need to reproject your BBOX values into 4326. Did you do that? Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | President OSGF, http://osgeo.org From proxiroxp at YAHOO.GR Thu Jul 27 04:54:36 2006 From: proxiroxp at YAHOO.GR (K S) Date: Thu, 27 Jul 2006 12:54:36 +0100 Subject: 3D Polygon In-Reply-To: <44C79375.9000109@xs4all.nl> Message-ID: I have tried using TYPE POLYGON in this LAYER but mapserver keeps showing the error message: msDrawShapes() General error message. Only polygon shapes can be drawn using a POLYGON layer definition. I am using mapserver version 4.8.4 from the precompiled pack that is distributed from maptools.org. I can use TYPE LINE for the LAYER without getting any error but that doesn't result to the map I want to show.Any ideas? Thank you for the response! "Bart van den Eijnden (OSGIS)" ??????: You should just use TYPE POLYGON. Note I think you need Mapserver 4.6 or greater, best to try with the latest release (4.8.X). Btw, Mapserver has a compile option determining whether or not it will pick up Z and M values. # If you want to use shape Z and M parameter this option must be set. # It's OFF by default. #USE_POINT_Z_M=-DUSE_POINT_Z_M USE_POINT_Z_M= Best regards, Bart K S wrote: > Hello everybody, > I have a shapefile which is GEOMETRY: 3D POLYGON. How can i draw > the layer for this shapefile. To be more specific what would be the > TYPE of such a layer > > Thank you in advance > > ?????????????? Yahoo! > ?????????? ?? ?????????? ???? ???? (spam); ?? Yahoo! Mail ???????? ??? > ???????? ?????? ????????? ???? ??? ??????????? ????????? > http://login.yahoo.com/config/mail?.intl=gr -- Bart van den Eijnden OSGIS, Open Source GIS http://www.osgis.nl --------------------------------- ?????????????? Yahoo! ?????????? ?? ?????????? ???? ???? (spam); ?? Yahoo! Mail ???????? ??? ???????? ?????? ????????? ???? ??? ??????????? ????????? http://login.yahoo.com/config/mail?.intl=gr -------------- next part -------------- An HTML attachment was scrubbed... URL: From bartvde at XS4ALL.NL Thu Jul 27 04:59:35 2006 From: bartvde at XS4ALL.NL (Bart van den Eijnden (OSGIS)) Date: Thu, 27 Jul 2006 13:59:35 +0200 Subject: 3D Polygon In-Reply-To: <20060727115436.93174.qmail@web25504.mail.ukl.yahoo.com> Message-ID: What does ogrinfo report on your shapefile? Can you send us the output? Best regards, Bart > I have tried using TYPE POLYGON in this LAYER but mapserver keeps showing > the error message: > > msDrawShapes() General error message. Only polygon shapes can be drawn > using a POLYGON layer definition. > > I am using mapserver version 4.8.4 from the precompiled pack that is > distributed from maptools.org. I can use TYPE LINE for the LAYER > without getting any error but that doesn't result to the map I want to > show.Any ideas? > > Thank you for the response! > > "Bart van den Eijnden (OSGIS)" ??????: You should > just use TYPE POLYGON. Note I think you need Mapserver 4.6 or > greater, best to try with the latest release (4.8.X). > > Btw, Mapserver has a compile option determining whether or not it will > pick up Z and M values. > > # If you want to use shape Z and M parameter this option must be set. > # It's OFF by default. > #USE_POINT_Z_M=-DUSE_POINT_Z_M > USE_POINT_Z_M= > > Best regards, > Bart > > K S wrote: > >> Hello everybody, >> I have a shapefile which is GEOMETRY: 3D POLYGON. How can i draw >> the layer for this shapefile. To be more specific what would be the >> TYPE of such a layer >> >> Thank you in advance >> >> ?????????????? Yahoo! >> ?????????? ?? ?????????? ???? ???? (spam); ?? Yahoo! Mail ???????? ??? >> ???????? ?????? ????????? ???? ??? ??????????? ????????? >> http://login.yahoo.com/config/mail?.intl=gr > > > > -- > Bart van den Eijnden > OSGIS, Open Source GIS > http://www.osgis.nl > > > > > --------------------------------- > ?????????????? Yahoo! > ?????????? ?? ?????????? ???? ???? (spam); ?? Yahoo! Mail ???????? ??? > ???????? ?????? ????????? ???? ??? ??????????? ????????? > http://login.yahoo.com/config/mail?.intl=gr From trondmm-mapserver at CRUSADERS.NO Thu Jul 27 05:35:42 2006 From: trondmm-mapserver at CRUSADERS.NO (Trond Michelsen) Date: Thu, 27 Jul 2006 14:35:42 +0200 Subject: WMS and SRS In-Reply-To: <20060727070439.147900@gmx.net> Message-ID: On Thu, Jul 27, 2006 at 09:04:39AM +0200, Daniel Goetz wrote: > I built up a littel WMS-server with umn-mapserver (local > installation; ms4w 2.1). The "original" projection of the single > Layers is alway epsg:31468 (these are cartesian > Gau?-Kr?ger-coordiantes). So I set the PORJECTION-object of each > LAYER and in the MAP-object to "init=epsg:31468". In the METADATA of > the MAP-object as well as in the single LAYER-objects I defined > "wms_srs" as "EPSG:31468" as well. For testing purpose I did some > WMS-GetMap-Requests with "SRS=EPSG:31468" and everything went fine. > But now I want to make my WMS-service more interchangeable, so I > want to define some more SRSs in that the WMS should be able to be > displayed. I want to make it possible to "transform" (don't know the > exact word in english) the WMS from its original Projection to > another SRS (e.g. WGS 84; EPSG:4326). In my opinion this should be > possible by adding another epsg-code to the METADATA. So my METADATA > (both in the MAP and in the LAYERs-objects) look like this: > "wms_srs" "EPSG:31468 EPSG:4326". I'm struggling a bit to grok projections myself, but if I understood your question properly, you should remove EPSG:4326 from the metadata of the individual layers. As I understood it, every layer is _always_ in EPSG:31468, and you want to display them in EPSG:4326. If you include EPSG:4326 in the layers' metadata, then mapserver will think it's OK to request that layer with EPSG:4326, when it probably isn't. When you remove EPSG:4326 from the layers' metadata, mapserver will fetch the layer with EPSG:31468 as the projection, then reproject it to EPSG:4326 -- Trond Michelsen From bitner at GYTTJA.ORG Thu Jul 27 05:47:27 2006 From: bitner at GYTTJA.ORG (David William Bitner) Date: Thu, 27 Jul 2006 07:47:27 -0500 Subject: WMS time question In-Reply-To: <5AA6ED8DA479B048BAD1A84DAC2F07EB089170@rws-s001000.ad.rws.nl> Message-ID: I've thought about capability like this for use with Aircraft Flight Tracks as well. Since all my data is in PostGIS, I was wondering how difficult it would be to implement an analog to being able to use !BBOX! to capture the bbox part of the query and to be able to put it where you want in the SQL query and to have a !TIME! that could intercept the WMS time request and pass it through to either your query (ie where !TIME! between MIN_DATE and MAX_DATE -- wouldn't work if !TIME! was a time range) or into a custom plpgsql function. What I do currently is to just use %time% with mapserver cgi and variable substitution, but there isn't quite a way to port that over to WMS-T. On 7/27/06, Eijnden, Bart van den (AGI) wrote: > > Hi Assefa, > > so e.g. you would have (DD-MM-YYYY): > > ROAD_SEGMENT_ID MIN_DATE MAX_DATE > 1 01-01-2006 01-04-2006 > 2 01-03-2006 01-06-2006 > etc. > > So these represent validity, the road segment is valid/existant between > MIN_DATE and MAX_DATE. > > So if I want a map with the situation of 01-05-2006, 1 would not be on it, > but 2 would be. > > If I would want a map with the situation of 15-03-2006 until 15-04-2006, > both would be on it. > > Does this make sense? > > Best regards, > Bart > > -----Oorspronkelijk bericht----- > Van: UMN MapServer Users List > [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]Namens Yewondwossen Assefa > Verzonden: donderdag 27 juli 2006 3:35 > Aan: MAPSERVER-USERS at LISTS.UMN.EDU > Onderwerp: Re: [UMN_MAPSERVER-USERS] WMS time question > > > Bart, > > > Bart van den Eijnden (OSGIS) wrote: > > Hi list, > > > > looking through the Mapserver WMS time HOWTO I wondered one thing, it is > > only possible to have 1 timeitem, a DB column which contains the > > date/time. Ofcourse this is pretty okay for satellite images (in a > > tileindex) which are taken every X days/months. > > > > But what happens to road network segments (geometries in Oracle Spatial > > for instance) which have a minimum date and a maximum date? So you need > to > > specify 2 timeitems (one min and one max) for that. Was this use case > just > > not implemented? > > > > What would the min/max date represent : the valid time extents or > simply 2 time fields on which we can do a query ? > The wms request allows to send a time value that is then compared to > the value inside the timeitem. Would you expect to be able to compare > the time request between the 2 timeitmes defined ? > > > Best regards, > > Bart > > > > > -- > ---------------------------------------------------------------- > Assefa Yewondwossen > Software Analyst > > Email: assefa at dmsolutions.ca > http://www.dmsolutions.ca/ > > Phone: (613) 565-5056 (ext 14) > Fax: (613) 565-0925 > ---------------------------------------------------------------- > > > Disclaimer > ************************************************************************ > Aan dit bericht kunnen geen rechten worden ontleend. Dit bericht is > uitsluitend bestemd voor de geadresseerde. Als u dit bericht per abuis > hebt ontvangen, wordt u verzocht het te vernietigen en de afzender te > informeren. Wij adviseren u om bij twijfel over de juistheid of de > volledigheid van de mail contact met afzender op te nemen. > > This message shall not constitute any rights or obligations. > This message is intended solely for the addressee. > If you have received this message in error, please delete it and > notify the sender immediately. When in doubt whether this message > is correct or complete, please contact the sender. > ************************************************************************ > -- ************************************ David William Bitner -------------- next part -------------- An HTML attachment was scrubbed... URL: From Jukka.Rahkonen at MMMTIKE.FI Thu Jul 27 05:50:23 2006 From: Jukka.Rahkonen at MMMTIKE.FI (Rahkonen Jukka) Date: Thu, 27 Jul 2006 15:50:23 +0300 Subject: 3D Polygon Message-ID: Hi, I suspect your precompiled Mapserver does not support 3D shapefiles. At least my, a bit old MS4W Mapserver does not. You may want to try converting your shapefile to normal 2D shapefile with ogr2ogr by using the switch: -nlt POLYGON. Regards, -Jukka Rahkonen- ________________________________ L?hett?j?: UMN MapServer Users List puolesta: K S L?hetetty: to 27.7.2006 14:54 Vastaanottaja: MAPSERVER-USERS at LISTS.UMN.EDU Aihe: Re: [UMN_MAPSERVER-USERS] 3D Polygon I have tried using TYPE POLYGON in this LAYER but mapserver keeps showing the error message: msDrawShapes() General error message. Only polygon shapes can be drawn using a POLYGON layer definition. I am using mapserver version 4.8.4 from the precompiled pack that is distributed from maptools.org. I can use TYPE LINE for the LAYER without getting any error but that doesn't result to the map I want to show.Any ideas? Thank you for the response! "Bart van den Eijnden (OSGIS)" ??????: You should just use TYPE POLYGON. Note I think you need Mapserver 4.6 or greater, best to try with the latest release (4.8.X). Btw, Mapserver has a compile option determining whether or not it will pick up Z and M values. # If you want to use shape Z and M parameter this option must be set. # It's OFF by default. #USE_POINT_Z_M=-DUSE_POINT_Z_M USE_POINT_Z_M= Best regards, Bart K S wrote: > Hello everybody, > I have a shapefile which is GEOMETRY: 3D POLYGON. How can i draw > the layer for this shapefile. To be more specific what would be the > TYPE of such a layer > > Thank you in advance > > ?????????????? Yahoo! > ?????????? ?? ?????????? ???? ???? (spam); ?? Yahoo! Mail ???????? ??? > ???????? ?????? ????????? ???? ??? ??????????? ????????? > http://login.yahoo.com/config/mail?.intl=gr -- Bart van den Eijnden OSGIS, Open Source GIS http://www.osgis.nl ________________________________ ?????????????? Yahoo! ?????????? ?? ?????????? ???? ???? (spam); ?? Yahoo! Mail ???????? ??? ???????? ?????? ????????? ???? ??? ??????????? ????????? http://login.yahoo.com/config/mail?.intl=gr From ed at TOPOZONE.COM Thu Jul 27 06:22:21 2006 From: ed at TOPOZONE.COM (Ed McNierney) Date: Thu, 27 Jul 2006 09:22:21 -0400 Subject: WMS and SRS Message-ID: Daniel - I think Frank's theory is likely to be correct, and that there is a problem with the BBOX coordinates used in your new request. It sounds like the changes you made are fine, although I think it is not necessary to add all supported SRS systems to the metadata for each layer - just the MAP-level metadata should be all you need to do. Can you post the SRS= and BBOX= parameters you are using in your original epsg:31468 request and in the new epsg:4326 requests? - Ed Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 ed at topozone.com (978) 251-4242 -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Daniel Goetz Sent: Thursday, July 27, 2006 3:05 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] WMS and SRS Hi coummunity, I built up a littel WMS-server with umn-mapserver (local installation; ms4w 2.1). The "original" projection of the single Layers is alway epsg:31468 (these are cartesian Gau?-Kr?ger-coordiantes). So I set the PORJECTION-object of each LAYER and in the MAP-object to "init=epsg:31468". In the METADATA of the MAP-object as well as in the single LAYER-objects I defined "wms_srs" as "EPSG:31468" as well. For testing purpose I did some WMS-GetMap-Requests with "SRS=EPSG:31468" and everything went fine. But now I want to make my WMS-service more interchangeable, so I want to define some more SRSs in that the WMS should be able to be displayed. I want to make it possible to "transform" (don't know the exact word in english) the WMS from its original Projection to another SRS (e.g. WGS 84; EPSG:4326). In my opinion this should be possible by adding another epsg-code to the METADATA. So my METADATA (both in the MAP and in the LAYERs-objects) look like this: "wms_srs" "EPSG:31468 EPSG:4326". But now every time I change the SRS block in my WMS-GetMap-request from "SRS=EPSG:31468" to "SRS=EPSG:4326" mapserver returns a blank image. I even tried to set the BBOX to latlon-coordinates when using "SRS=EPSG:4326" but even this failed. I also testes other SRSs (both geographic ones and real projections) but with no success. Could anybody please give me some help or hints what to do and what went wrong and why did this happen? I would be very glad and thankful. Thank you so much. regards Daniel -- Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen! Ideal f?r Modem und ISDN: http://www.gmx.net/de/go/smartsurfer From listuser at HERZSYS.DE Thu Jul 27 06:26:23 2006 From: listuser at HERZSYS.DE (listuser HH) Date: Thu, 27 Jul 2006 15:26:23 +0200 Subject: feature attribute character coding In-Reply-To: <5516851.post@talk.nabble.com> Message-ID: xslove schrieb: > Hi, my shapefile has character attribute AT1, it has cp1250 coding within dbf > file. > When I show this dbf, characters are OK. When I read this data as the > shapeObj usin mapscript, so getValue return bad coded character. where is > problem? > thanks radim > Hi, which mapscript do you use? If you use java then this can be a problem with your system language settings. How do you "show this dbf"? Regards Norbert From Ken.Boss at DNR.STATE.MN.US Thu Jul 27 07:09:54 2006 From: Ken.Boss at DNR.STATE.MN.US (Ken Boss) Date: Thu, 27 Jul 2006 09:09:54 -0500 Subject: Dlegend default layers on In-Reply-To: <20060727012321.0BD5F40C8037@mail.ci.harrisonburg.va.us> Message-ID: Paul-- Unfortunately, I don't think you're missing anything; dlegend is missing features. One is the ability to specify a set of layers that should be on by default; another is an automatic mechanism to turn a layer on/off as it goes in/out of scale (currently I think you'll find that you can't turn a layer on until it's in scale; it'll turn itself off when it goes out of scale, but if you go back in scale it remains off and needs to be turned on again manually). These things are on the to-do list... --Ken >>> Paul A Malabad 7/26/2006 8:23:21 PM >>> I am probably missing something simple, but I cannot seem to find a way to Turn my layers on once the scale is reached using the dlegend.js . All layers start off (as in the demo app) except for the layers set to STATUS DEFAULT. If I set the layer to STATUS DEFAULT, the layer is on, but the checkbox is not checked. I am using the .90 demo application for my framework if that helps any. Thanks for your help. From punkish at EIDESIS.ORG Thu Jul 27 07:23:31 2006 From: punkish at EIDESIS.ORG (P Kishor) Date: Thu, 27 Jul 2006 09:23:31 -0500 Subject: fastest way to convert lon-lat to points In-Reply-To: <29879c6d0607261039x6f8d2dd7x6e015330430d200@mail.gmail.com> Message-ID: Thanks for the guidance Roberto, however, this has to be done on Windows. Afaik, there is no Perl/MapScript on Windows (or is there? I can't figure out a definitive answer to this). Therefore, I can't use mapscript; sad. On 7/26/06, Roberto Bianconi wrote: > On 7/20/06, P Kishor wrote: > > On 7/20/06, Steve Lime wrote: > > > Puneet: Why is speed such a big deal or will you be doing this often? > > > > I will be doing this a few times a year (so, often, although not > > necessarily often enough), but this portion is only a part of a longer > > process. So, I have to optimize each step as much as I can for overall > > better rate of return. > > > > > > > > Anyway, if it were me I'd just write a quick MapScript script using > > > perl. Create a new shapefileObj, a new XBase table, open the file and > > > start looping. The loop itself should have like 3 lines of code. The > > > whole script should be about 15... > > > > > > Hi, > suppose your csv file is made of these records: > > 12.500,41.890,790380 > 12.530,41.890,790480 > ... > > In Perl you might go like this. Actually a bit more than 15 lines, but > you can reduce it if you like :)) > > use mapscript; -- Puneet Kishor http://punkish.eidesis.org/ Nelson Inst. for Env. Studies, UW-Madison http://www.ies.wisc.edu/ Open Source Geospatial Foundation https://edu.osgeo.org/ From tylermitchell at SHAW.CA Thu Jul 27 07:42:33 2006 From: tylermitchell at SHAW.CA (Tyler Mitchell) Date: Thu, 27 Jul 2006 07:42:33 -0700 Subject: fastest way to convert lon-lat to points In-Reply-To: Message-ID: Hi Puneet, If you install FWTools, I think you'll have access to python mapscript quite easily. As well as the cs2cs coordinate convertor program. Tyler On 27-Jul-06, at 7:23 AM, P Kishor wrote: > Thanks for the guidance Roberto, however, this has to be done on > Windows. Afaik, there is no Perl/MapScript on Windows (or is there? I > can't figure out a definitive answer to this). Therefore, I can't > > use mapscript; > > sad. > > > On 7/26/06, Roberto Bianconi wrote: >> On 7/20/06, P Kishor wrote: >> > On 7/20/06, Steve Lime wrote: >> > > Puneet: Why is speed such a big deal or will you be doing this >> often? >> > >> > I will be doing this a few times a year (so, often, although not >> > necessarily often enough), but this portion is only a part of a >> longer >> > process. So, I have to optimize each step as much as I can for >> overall >> > better rate of return. >> > >> > > >> > > Anyway, if it were me I'd just write a quick MapScript script >> using >> > > perl. Create a new shapefileObj, a new XBase table, open the >> file and >> > > start looping. The loop itself should have like 3 lines of >> code. The >> > > whole script should be about 15... >> > > >> >> >> Hi, >> suppose your csv file is made of these records: >> >> 12.500,41.890,790380 >> 12.530,41.890,790480 >> ... >> >> In Perl you might go like this. Actually a bit more than 15 lines, >> but >> you can reduce it if you like :)) >> >> use mapscript; > > > -- > Puneet Kishor http://punkish.eidesis.org/ > Nelson Inst. for Env. Studies, UW-Madison http://www.ies.wisc.edu/ > Open Source Geospatial Foundation https://edu.osgeo.org/ From assefa at DMSOLUTIONS.CA Thu Jul 27 08:53:47 2006 From: assefa at DMSOLUTIONS.CA (Yewondwossen Assefa) Date: Thu, 27 Jul 2006 11:53:47 -0400 Subject: WMS time question In-Reply-To: <5AA6ED8DA479B048BAD1A84DAC2F07EB089170@rws-s001000.ad.rws.nl> Message-ID: Hi There, We could add a support by supporting "wms_timeitem_min" and "wms_timeitem_max" (mutually exclusive with wms_timeitem) and doing the following for different time values passed in the wms TIME parameter : - single time for example: ...&TIME=2004-10-12&... would give (`[time_field_min]` <= `2004-10-12`) and `[time_field_max]` >= `2004-10-12`) - multiple values (2004-10-12, 2004-10-13) would give ((`[time_field_min]` <= `2004-10-12` and `[time_field_max]` >= `2004-10-12`) OR (`[time_field_min]` <= `2004-10-13`) and `[time_field_max]` >= `2004-10-13`)) - single range : 2004-10-12/2004-10-13 transforms to ((`[time_field_min]` <= `2004-10-12`) AND (`[time_field_max]` >= `2004-10-13`)) - multiple ranges (2004-10-12/2004-10-13, 2004-10-15/2004-10-16) transform to ((`[time_field_min]` <= `2004-10-12`) AND (`[time_field_max]` >= `2004-10-13`)) OR ((`[time_field_min]` <= `2004-10-15`) AND (`[time_field_max]` >= `2004-10-16`)) Is this acceptable ? Do you see other ways ? I have added a bug related to this http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=1849 Later, Eijnden, Bart van den (AGI) wrote: > Hi Assefa, > > so e.g. you would have (DD-MM-YYYY): > > ROAD_SEGMENT_ID MIN_DATE MAX_DATE > 1 01-01-2006 01-04-2006 > 2 01-03-2006 01-06-2006 > etc. > > So these represent validity, the road segment is valid/existant between MIN_DATE and MAX_DATE. > > So if I want a map with the situation of 01-05-2006, 1 would not be on it, but 2 would be. > > If I would want a map with the situation of 15-03-2006 until 15-04-2006, both would be on it. > > Does this make sense? > > Best regards, > Bart > > -----Oorspronkelijk bericht----- > Van: UMN MapServer Users List > [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]Namens Yewondwossen Assefa > Verzonden: donderdag 27 juli 2006 3:35 > Aan: MAPSERVER-USERS at LISTS.UMN.EDU > Onderwerp: Re: [UMN_MAPSERVER-USERS] WMS time question > > > Bart, > > > Bart van den Eijnden (OSGIS) wrote: > >>Hi list, >> >>looking through the Mapserver WMS time HOWTO I wondered one thing, it is >>only possible to have 1 timeitem, a DB column which contains the >>date/time. Ofcourse this is pretty okay for satellite images (in a >>tileindex) which are taken every X days/months. >> >>But what happens to road network segments (geometries in Oracle Spatial >>for instance) which have a minimum date and a maximum date? So you need to >>specify 2 timeitems (one min and one max) for that. Was this use case just >>not implemented? >> > > > What would the min/max date represent : the valid time extents or > simply 2 time fields on which we can do a query ? > The wms request allows to send a time value that is then compared to > the value inside the timeitem. Would you expect to be able to compare > the time request between the 2 timeitmes defined ? > > >>Best regards, >>Bart >> > > > -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: assefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- From mljacks2 at HOTMAIL.COM Thu Jul 27 09:11:26 2006 From: mljacks2 at HOTMAIL.COM (M.L. Jackson) Date: Thu, 27 Jul 2006 11:11:26 -0500 Subject: Random Map File Errors???!!! Message-ID: Hi. I am running mapserver 4.6.0-beta1 with Java Mapscript on Tomcat. While working on my project, I have encountered a weird series of errors. Everytime I restart the server and try to run my application, I get an error indicating what appears to be any random line in the map file. Most of the time the errors generated make absolutely no sense. Among the errors generated are "projection not named" and "major axis or radius = 0 or not given". The other errors are generally any line number with a piece of the map file indicated. Thanks for your replies. _________________________________________________________________ Don?t just search. Find. Check out the new MSN Search! http://search.msn.click-url.com/go/onm00200636ave/direct/01/ From gerry.creager at TAMU.EDU Thu Jul 27 09:20:20 2006 From: gerry.creager at TAMU.EDU (Gerry Creager) Date: Thu, 27 Jul 2006 11:20:20 -0500 Subject: WMS time question In-Reply-To: <44C8E18B.4010006@dmsolutions.ca> Message-ID: I think that'd work. gerry Yewondwossen Assefa wrote: > Hi There, > > We could add a support by supporting "wms_timeitem_min" and > "wms_timeitem_max" (mutually exclusive with wms_timeitem) and doing the > following for different time values passed in the wms TIME parameter : > > - single time for example: ...&TIME=2004-10-12&... would give > (`[time_field_min]` <= `2004-10-12`) and `[time_field_max]` >= > `2004-10-12`) > > - multiple values (2004-10-12, 2004-10-13) would give > ((`[time_field_min]` <= `2004-10-12` and `[time_field_max]` >= > `2004-10-12`) OR (`[time_field_min]` <= `2004-10-13`) and > `[time_field_max]` >= `2004-10-13`)) > > - single range : 2004-10-12/2004-10-13 transforms to > ((`[time_field_min]` <= `2004-10-12`) AND (`[time_field_max]` >= > `2004-10-13`)) > > - multiple ranges (2004-10-12/2004-10-13, 2004-10-15/2004-10-16) > transform to ((`[time_field_min]` <= `2004-10-12`) AND > (`[time_field_max]` >= `2004-10-13`)) OR ((`[time_field_min]` <= > `2004-10-15`) AND (`[time_field_max]` >= `2004-10-16`)) > > Is this acceptable ? Do you see other ways ? I have added a bug related > to this http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=1849 > > > Later, > > > Eijnden, Bart van den (AGI) wrote: > >> Hi Assefa, >> >> so e.g. you would have (DD-MM-YYYY): >> >> ROAD_SEGMENT_ID MIN_DATE MAX_DATE >> 1 01-01-2006 01-04-2006 >> 2 01-03-2006 01-06-2006 >> etc. >> >> So these represent validity, the road segment is valid/existant >> between MIN_DATE and MAX_DATE. >> >> So if I want a map with the situation of 01-05-2006, 1 would not be on >> it, but 2 would be. >> >> If I would want a map with the situation of 15-03-2006 until >> 15-04-2006, both would be on it. >> >> Does this make sense? >> >> Best regards, >> Bart >> >> -----Oorspronkelijk bericht----- >> Van: UMN MapServer Users List >> [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]Namens Yewondwossen Assefa >> Verzonden: donderdag 27 juli 2006 3:35 >> Aan: MAPSERVER-USERS at LISTS.UMN.EDU >> Onderwerp: Re: [UMN_MAPSERVER-USERS] WMS time question >> >> >> Bart, >> >> >> Bart van den Eijnden (OSGIS) wrote: >> >>> Hi list, >>> >>> looking through the Mapserver WMS time HOWTO I wondered one thing, it is >>> only possible to have 1 timeitem, a DB column which contains the >>> date/time. Ofcourse this is pretty okay for satellite images (in a >>> tileindex) which are taken every X days/months. >>> >>> But what happens to road network segments (geometries in Oracle Spatial >>> for instance) which have a minimum date and a maximum date? So you >>> need to >>> specify 2 timeitems (one min and one max) for that. Was this use case >>> just >>> not implemented? >>> >> >> >> What would the min/max date represent : the valid time extents or >> simply 2 time fields on which we can do a query ? >> The wms request allows to send a time value that is then compared to >> the value inside the timeitem. Would you expect to be able to compare >> the time request between the 2 timeitmes defined ? >> >> >>> Best regards, >>> Bart >>> >> >> >> > > -- Gerry Creager -- gerry.creager at tamu.edu Texas Mesonet -- AATLT, Texas A&M University Cell: 979.229.5301 Office: 979.458.4020 FAX 979.862.3983 MAIL: AATLT, 3139 TAMU Physical: 1700 Research Parkway, Suite 160, College Station, TX 77843-3139 From bartvde at XS4ALL.NL Thu Jul 27 09:39:52 2006 From: bartvde at XS4ALL.NL (Bart van den Eijnden (OSGIS)) Date: Thu, 27 Jul 2006 18:39:52 +0200 Subject: WMS time question In-Reply-To: <44C8E18B.4010006@dmsolutions.ca> Message-ID: Sounds like the correct approach. Best regards, Bart Yewondwossen Assefa wrote: > Hi There, > > We could add a support by supporting "wms_timeitem_min" and > "wms_timeitem_max" (mutually exclusive with wms_timeitem) and doing > the following for different time values passed in the wms TIME > parameter : > > - single time for example: ...&TIME=2004-10-12&... would give > (`[time_field_min]` <= `2004-10-12`) and `[time_field_max]` >= > `2004-10-12`) > > - multiple values (2004-10-12, 2004-10-13) would give > ((`[time_field_min]` <= `2004-10-12` and `[time_field_max]` >= > `2004-10-12`) OR (`[time_field_min]` <= `2004-10-13`) and > `[time_field_max]` >= `2004-10-13`)) > > - single range : 2004-10-12/2004-10-13 transforms to > ((`[time_field_min]` <= `2004-10-12`) AND (`[time_field_max]` >= > `2004-10-13`)) > > - multiple ranges (2004-10-12/2004-10-13, 2004-10-15/2004-10-16) > transform to ((`[time_field_min]` <= `2004-10-12`) AND > (`[time_field_max]` >= `2004-10-13`)) OR ((`[time_field_min]` <= > `2004-10-15`) AND (`[time_field_max]` >= `2004-10-16`)) > > Is this acceptable ? Do you see other ways ? I have added a bug > related to this http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=1849 > > > Later, > > > Eijnden, Bart van den (AGI) wrote: > >> Hi Assefa, >> >> so e.g. you would have (DD-MM-YYYY): >> >> ROAD_SEGMENT_ID MIN_DATE MAX_DATE >> 1 01-01-2006 01-04-2006 >> 2 01-03-2006 01-06-2006 >> etc. >> >> So these represent validity, the road segment is valid/existant >> between MIN_DATE and MAX_DATE. >> >> So if I want a map with the situation of 01-05-2006, 1 would not be >> on it, but 2 would be. >> >> If I would want a map with the situation of 15-03-2006 until >> 15-04-2006, both would be on it. >> >> Does this make sense? >> >> Best regards, >> Bart >> >> -----Oorspronkelijk bericht----- >> Van: UMN MapServer Users List >> [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]Namens Yewondwossen Assefa >> Verzonden: donderdag 27 juli 2006 3:35 >> Aan: MAPSERVER-USERS at LISTS.UMN.EDU >> Onderwerp: Re: [UMN_MAPSERVER-USERS] WMS time question >> >> >> Bart, >> >> >> Bart van den Eijnden (OSGIS) wrote: >> >>> Hi list, >>> >>> looking through the Mapserver WMS time HOWTO I wondered one thing, >>> it is >>> only possible to have 1 timeitem, a DB column which contains the >>> date/time. Ofcourse this is pretty okay for satellite images (in a >>> tileindex) which are taken every X days/months. >>> >>> But what happens to road network segments (geometries in Oracle Spatial >>> for instance) which have a minimum date and a maximum date? So you >>> need to >>> specify 2 timeitems (one min and one max) for that. Was this use >>> case just >>> not implemented? >>> >> >> >> What would the min/max date represent : the valid time extents or >> simply 2 time fields on which we can do a query ? >> The wms request allows to send a time value that is then compared to >> the value inside the timeitem. Would you expect to be able to compare >> the time request between the 2 timeitmes defined ? >> >> >>> Best regards, >>> Bart >>> >> >> >> > > -- Bart van den Eijnden OSGIS, Open Source GIS http://www.osgis.nl From perrygeo at GMAIL.COM Thu Jul 27 10:05:56 2006 From: perrygeo at GMAIL.COM (Matthew Perry) Date: Thu, 27 Jul 2006 10:05:56 -0700 Subject: mapserver as wms client - gracefully handling errors In-Reply-To: <4633.145.50.39.8.1153808842.squirrel@webmail.xs4all.nl> Message-ID: On 7/24/06, Bart van den Eijnden (OSGIS) wrote: > >>> "wms_exceptions_format "application/vnd.ogc.se_blank" > > please bear in mind that this is an optional exception format for the WMS > spec, so it could be that the WMS server you are accessing does not > support it (check the WMS GetCapabilities response). > This seems to be the case. Though their capabilities docs says otherwise, the terrasever WMS does not support this exception format properly (only text/html and xml). Still, I've come full circle back to the original issue. If all else fails and a cascaded WMS service returns something unexpected, how do I get mapserver to ignore this and continue rendering the other layers? Until I figure that out, I'll just set the end WMS client to request blank exceptions so users get a blank image rather than an error-ridden image. Thanks for pointing that out. -- Matt Perry perrygeo at gmail.com http://www.perrygeo.net From alexandre at ACQUASOFTWARE.COM.BR Thu Jul 27 10:20:36 2006 From: alexandre at ACQUASOFTWARE.COM.BR (Alexandre Abramides) Date: Thu, 27 Jul 2006 14:20:36 -0300 Subject: PHP/MapScript: How to change the color of a point? Message-ID: Anyone? I would really apreciate some help. Thanks, Alexandre. ----- Original Message ----- From: "Alexandre Abramides" To: Sent: Thursday, July 20, 2006 5:16 PM Subject: [UMN_MAPSERVER-USERS] PHP/MapScript: How to change the color of a point? > This is what I do to draw a point: > > $point = ms_newPointObj(); > $point->setXY($x,$y); > $line = ms_newLineObj(); > $line->add($point); > $feature = ms_newShapeObj(0); > $feature->set("text"," "); > $feature->add($line); > $layer = $map->getLayerByName($layer_name); > $layer->addFeature($feature); > > What I need is to change the color of the point (RGB) according to some > condition, can anyone help me? > > Alexandre. > From bartvde at XS4ALL.NL Thu Jul 27 10:30:58 2006 From: bartvde at XS4ALL.NL (Bart van den Eijnden (OSGIS)) Date: Thu, 27 Jul 2006 19:30:58 +0200 Subject: PHP/MapScript: How to change the color of a point? In-Reply-To: <002101c6b1a0$f95811a0$fa01a8c0@atum> Message-ID: Create a class and a style like eg: $oClass = ms_newClassObj($oLayer); $oStyle = ms_newStyleObj($oClass); $aColor[0] = 0; $aColor[1] = 0; $aColor[2] = 0; $oStyle->color->setRGB($aColor[0], $aColor[1], $aColor[2]); And set the expression of the class with set Expression: $oClass->setexpression( '([id] = '.$aRec['id'].')' ); Best regards, Bart Alexandre Abramides wrote: >Anyone? I would really apreciate some help. > >Thanks, >Alexandre. > >----- Original Message ----- >From: "Alexandre Abramides" >To: >Sent: Thursday, July 20, 2006 5:16 PM >Subject: [UMN_MAPSERVER-USERS] PHP/MapScript: How to change the color of a >point? > > > > >>This is what I do to draw a point: >> >> $point = ms_newPointObj(); >> $point->setXY($x,$y); >> $line = ms_newLineObj(); >> $line->add($point); >> $feature = ms_newShapeObj(0); >> $feature->set("text"," "); >> $feature->add($line); >> $layer = $map->getLayerByName($layer_name); >> $layer->addFeature($feature); >> >>What I need is to change the color of the point (RGB) according to some >>condition, can anyone help me? >> >>Alexandre. >> >> >> > > > > -- Bart van den Eijnden OSGIS, Open Source GIS http://www.osgis.nl From JLittle at NRCAN.GC.CA Thu Jul 27 10:54:27 2006 From: JLittle at NRCAN.GC.CA (Little, John) Date: Thu, 27 Jul 2006 13:54:27 -0400 Subject: Problem with MAXSCALE and STATUS on wms layer Message-ID: Hi all, I'm having a problem using MAXSCALE and STATUS on a layer that I'm accessing through wms. Here's the situation: I have two road layers, "Roads" which I have locally and "NTS_Roads" which I connect to through wms. I have the MINSCALE for "Roads" set at 500000, and the MAXSCALE for "NTS_Roads" set to 500000. Both STATUS for both layers should be ON. The "Roads" layer does disappear when the appropriate scale is reached, AND the "NTS_Roads" layers does show up on the legend when zoomed into the set scale, BUT the "NTS_Roads" are not turned on. (The layer DOES display properly when turned on). Am I missing something in my mapfile - or is there some problem related to wms connection? I had experienced similar problems before with some of my local data, but I got around the problem by using an SLD to render the layer and set the min and maxscaledenominator tags, however I don't believe I can use an SLD on a wms layer (I've tried and it didn't work - am I correct?). Here's the "NTS_Roads" layer from my mapfile #### NTS TEST ROADS #### LAYER TEMPLATE "dummy.html" NAME "NTS_Roads" GROUP "Base Layers" MAXSCALE 500000 CONNECTIONTYPE WMS CONNECTION "https://ca.nfis.org/cubewerx/cubeserv/cubeserv.cgi?...." UNITS METERS METADATA "wms_title" "NTS Roads (250K)" "wms_abstract" "" "legend_type" "layer" "wms_sld_body" "AUTO" END PROJECTION "init=epsg:42304" END STATUS default TYPE LINE END Please let me know if you know of a fix. Thanks! John -------------- next part -------------- An HTML attachment was scrubbed... URL: From peteris.bruns at GMAIL.COM Thu Jul 27 11:04:32 2006 From: peteris.bruns at GMAIL.COM (=?ISO-8859-13?Q?P=E7teris_Br=FBns?=) Date: Thu, 27 Jul 2006 21:04:32 +0300 Subject: How to use queryByFeatures? In-Reply-To: <200607271820.06048.maris.nartiss@gmail.com> Message-ID: Hi folks, I started to play with php5-mapscript and could not understand how layer->queryByFeatures() works. Here is sample from my php script: getLayerByName("pagasti"); $ciemi = $Map->getLayerByName("ciemi"); $pagasti->queryByPoint($point,MS_MULTIPLE,1000.0); $ciemi->queryByFeatures($pagasti); ?> and output is: Warning: [MapServer Error]: msQueryByFeatures(): Selection layer has not been queried. Any links to FM's or other hints? Bottom line. I added output of layer->resultcache->numresults at mapquery.c - here comes most interesting part - if I call 2 times queryByPoint(), then at second time there is layer->resultcache variable, but when I call queryByPoint() and then pass layer as slayer to queryByFeatures(), slayer has NO resultcache variable. My system: Kubuntu 6 kernel 2.6.15 Apache 2.0.55 PHP 5.1.2 PHP5-mapscript 4.6.1 -- pb -------------- next part -------------- An HTML attachment was scrubbed... URL: From woklist at KYNGCHAOS.COM Thu Jul 27 12:37:20 2006 From: woklist at KYNGCHAOS.COM (William Kyngesburye) Date: Thu, 27 Jul 2006 14:37:20 -0500 Subject: Mac OS X frameworks for support libraries Message-ID: Ready to be released into the wild. In a beta sort of way. The idea was to make them more Mac-like - bring them out into the open more, not hidden away in some invisible folder, and thus make them more of a drag-n-drop install, and hopefully more of a standard for other to use in their own software. While also keeping them easily usable in a normal Unix sort of way. They could be also easily embedded in Mac application packages like other normal frameworks. So far I'm sticking to the basics needed by the various GIS applications, and it's Tiger only right now. It's possible to make them Panther compatible, but it's a hassle and I just want to get them working and tested first, and get feedback. All are universal binaries. All can be installed with a simple drag-n-drop to /Library/ Frameworks. Included are: - Xerces framework - this was easy, there is a framework build in the source already - SQLite3 framework - FFTW3 framework - FreeType framework - UnixImageIO framework - a bit of an experiment. This is an 'umbrella framework', loading just the framework is the equivalent of loading all the individual libraries, that is all their symbols are available directly from the framework. It's just for image formats, and they include GIF, PNG, JPEG, JPEG2000, Xpm and TIFF. Mostly I just wanted to avoid the clutter of many small frameworks. If this doesn't work out, I'll think about doing individual frameworks. The individual libraries are still available within the package for use as normal libraries. - PROJ framework - a big problem was the datum grid files. The NAD grids are constructed at build-time from source ASCII tables, thus making them specific to an architecture for endianess. I patched PROJ so that it will read little-endian grid files on both PPC and Intel Macs, and do byte-swapping on PPC Macs. - GEOS framework - the default here is the C API, not C++. The normal C++ library is available as well. I need to look into the possibility of packaging both as an umbrella framework, like the UnixImageIO, then both would be available with a single -framework GEOS option. I'm not sure if having C and C++ in the same library will cause problems or not. - GDAL framework - This is similar in scope to the UnixImageIO 'umbrella' framework, but not an umbrella FW. All the support libraries for the various formats are embedded in the package and can be used in the normal library capacity by themselves. To make them more easily used in Unix porting, there is a 'unix' subfolder in the package that will behave as a normal /usr/local sort of prefix, so most configure scripts should work without changes. The exception would be the UnixImageIO framework. Used as a framework, configure would have to be changed so that all tests for the various image libraries test the same '-framework UnixImageIO'. But in a pinch, the 'unix' subfolder could still be used to get the individual libraries. To go along with these frameworks, there is a new GRASS build available. First, it uses the frameworks above (installed separately). And, it's a double-clickable, drag-n-drop installable, Mac application, and of course Universal. It can be installed anywhere, it's not fixed to /Applications and nothing else is installed in other locations (like /usr/local). I decided for now on using Abracode's OnMyCommand Droplet as the base for the application. It simply fires up a Terminal to start GRASS in the standard CLI way, including starting the GUI (in X11 or Aqua, however you have your preference, but it defaults to X11). One big problem I had to work out - the stroked font files. Like the PROJ datum files, they are constructed at build time. I did the same kind of patch - font files are fixed at little-endian, and the font loading routine byte-swaps on a PPC. The frameworks are mostly movable, given the right processing. They could be altered to be embeddable in another .app package. Library locations are handled by using install_name_tool to change them to relative paths. I'm not sure about GDAL plugins yet. Other data paths have environment and funtion controls to set them. But, I didn't do this for GRASS since that defeats part of the purpose of having libraries or frameworks in known, standard locations - reduced duplication, easier to update all applications. Why bloat BOTH GRASS and QGIS by 90MB? And MapServer and PostGIS don't really have (and won't have) an application package to put them in. All the utilities that come with the various libraries are also available in the Programs subfolder of the framework. It may mean more in your shell PATH, but they're there. Next, I'll work on rebuilding QGIS to make use of the frameworks. Which will make another good test to help iron out usability issues of the frameworks. When they are stabilized, I intend to replace my current /usr/local- based installers with the frameworks and switch over Mapserver, PHP and Postgres+PostGIS to use them. I may then work on making them Panther compatible if there is enough interest. That's it for now, but I may have forgotten something. Try them out. They won't get in the way of the standard installers, and are easily removed if desired. Comments welcome and encouraged. ----- William Kyngesburye http://www.kyngchaos.com/ "This is a question about the past, is it? ... How can I tell that the past isn't a fiction designed to account for the discrepancy between my immediate physical sensations and my state of mind?" - The Ruler of the Universe From joe at OTSYS.COM Thu Jul 27 13:04:29 2006 From: joe at OTSYS.COM (Joe Bussell) Date: Thu, 27 Jul 2006 13:04:29 -0700 Subject: How to show high resolution image Message-ID: I have a high resolution snapshot of worldwide weather that I am attempting to use in a similar manner. The image looks real nice all by itself, but when I pass it through my mapserver application the image appears tiled. Is this likely due to the number of colors in the original? Is there any special magic to getting native resolution using the latest stable Mapserver? Thanks, Joe Bussell On Time Systems > Sarawut, > > Mapserver should display your image at it's original resolution if you zoomed > in far enough. However, mapserver 3.6.x does not support 24bit color output. > Maybe the degradation that you see is not the spatial resolution but a > degradation in color? Mapservers dithering is not really sophisticated... You > will get far better results if you scale down your original 24bit color > landsat image to 8bit (using a color palet) and use that 8bit image in your > map file. You could do that with tools like imagemagick or probably other > image processing programs. > > Regards, > Vincent Schut. > > On Wednesday 14 May 2003 09:41, Sarawut Ninsawat wrote: >> > Dear all >> > >> > First I wish to show my Landsat image on mapserv 3.6 (RH8.0) with high >> > quality as same as my original TIFF file. >> > Even I set the minscale to only 5000. However,this is still not nice image >> > but it can zoom to that extent. I think the reason is Pixel size of output >> > image. How can I improve the resolution ? >> > >> > Best Regard >> > >> > Sarawut >> > >> > >> > _______________________________________________ >> > Mapserver-users mailing list >> > Mapserver-users at lists.gis.umn.edu >> > http://lists.gis.umn.edu/mailman/listinfo/mapserver-users > > -- ______________________________________ Vincent Schut Sarvision B.V. > Wageningen, The Netherlands www.sarvision.com > _______________________________________________ Mapserver-users > mailing list Mapserver-users at lists.gis.umn.edu > http://lists.gis.umn.edu/mailman/listinfo/mapserver-users From proxiroxp at YAHOO.GR Thu Jul 27 13:08:53 2006 From: proxiroxp at YAHOO.GR (K S) Date: Thu, 27 Jul 2006 21:08:53 +0100 Subject: 3D Polygon In-Reply-To: <13326.145.50.39.8.1154001575.squirrel@webmail.xs4all.nl> Message-ID: Sorry for the delay! Thanks for the response! Here is the report of ogrinfo for the shapefile. Supposed that the precompiled version of mapserver doesn't support 3D polygon how can I "enable" 3D polygons' support? Layer name: TownBlocks Geometry: 3D Polygon Feature Count: 8024 Extent: (496798.420507, 3874382.779711) - (692235.890369, 3932301.842024) Layer SRS WKT: PROJCS["Greek_Grid", GEOGCS["GCS_GGRS_1987", DATUM["Greek_Geodetic_Reference_System_1987", SPHEROID["GRS_1980",6378137.0,298.257222101]], PRIMEM["Greenwich",0.0], UNIT["Degree",0.0174532925199433]], PROJECTION["Transverse_Mercator"], PARAMETER["False_Easting",500000.0], PARAMETER["False_Northing",0.0], PARAMETER["Central_Meridian",24.0], PARAMETER["Scale_Factor",0.9996], PARAMETER["Latitude_Of_Origin",0.0], UNIT["Meter",1.0]] OBJECTID: Integer (9.0) FID_??????: Integer (9.0) SDE_blockc: Real (19.11) PERIMETER: Real (19.11) TBLOCK_: Real (19.11) TBLOCK_ID: Real (19.11) ESYE_CODE: Integer (9.0) MATCH_: Integer (9.0) XBLOCK: Real (19.11) YBLOCK: Real (19.11) MUN_NAME: String (40.0) MUN_CODE: String (8.0) OT: String (12.0) TR_POP: Real (19.11) PER_POP: Real (19.11) NOIK: Real (19.11) HOUSES: Real (19.11) H_OWN: Real (19.11) H_REN: Real (19.11) H_KAT: Real (19.11) H_KEN: Real (19.11) H_KY_KA: Real (19.11) H_EXOH: Real (19.11) PER_MEN: Real (19.11) PER_WOM: Real (19.11) AGE14: Real (19.11) AGE1564: Real (19.11) AGE65: Real (19.11) YDR: Real (19.11) EDR: Real (19.11) H_PKEN: Real (19.11) H_PREN: Real (19.11) H_POWN: Real (19.11) H_PEXOH: Real (19.11) M_W_RAT: Real (19.11) NOIK_MESO: Real (19.11) POPDEN: Real (19.11) FID_LLNew_: Integer (9.0) Shape_Leng: Real (19.11) Shape_Ar_1: Real (19.11) Shape_Le_1: Real (19.11) Shape_Area: Real (19.11) "Bart van den Eijnden (OSGIS)" ??????: What does ogrinfo report on your shapefile? Can you send us the output? Best regards, Bart > I have tried using TYPE POLYGON in this LAYER but mapserver keeps showing > the error message: > > msDrawShapes() General error message. Only polygon shapes can be drawn > using a POLYGON layer definition. > > I am using mapserver version 4.8.4 from the precompiled pack that is > distributed from maptools.org. I can use TYPE LINE for the LAYER > without getting any error but that doesn't result to the map I want to > show.Any ideas? > > Thank you for the response! > > "Bart van den Eijnden (OSGIS)" ??????: You should > just use TYPE POLYGON. Note I think you need Mapserver 4.6 or > greater, best to try with the latest release (4.8.X). > > Btw, Mapserver has a compile option determining whether or not it will > pick up Z and M values. > > # If you want to use shape Z and M parameter this option must be set. > # It's OFF by default. > #USE_POINT_Z_M=-DUSE_POINT_Z_M > USE_POINT_Z_M= > > Best regards, > Bart > > K S wrote: > >> Hello everybody, >> I have a shapefile which is GEOMETRY: 3D POLYGON. How can i draw >> the layer for this shapefile. To be more specific what would be the >> TYPE of such a layer >> >> Thank you in advance >> >> ?????????????? Yahoo! >> ?????????? ?? ?????????? ???? ???? (spam); ?? Yahoo! Mail ???????? ??? >> ???????? ?????? ????????? ???? ??? ??????????? ????????? >> http://login.yahoo.com/config/mail?.intl=gr > > > > -- > Bart van den Eijnden > OSGIS, Open Source GIS > http://www.osgis.nl > > > > > --------------------------------- > ?????????????? Yahoo! > ?????????? ?? ?????????? ???? ???? (spam); ?? Yahoo! Mail ???????? ??? > ???????? ?????? ????????? ???? ??? ??????????? ????????? > http://login.yahoo.com/config/mail?.intl=gr --------------------------------- ?????????????? Yahoo! ?????????? ?? ?????????? ???? ???? (spam); ?? Yahoo! Mail ???????? ??? ???????? ?????? ????????? ???? ??? ??????????? ????????? http://login.yahoo.com/config/mail?.intl=gr -------------- next part -------------- An HTML attachment was scrubbed... URL: From joe at OTSYS.COM Thu Jul 27 13:18:19 2006 From: joe at OTSYS.COM (Joe Bussell) Date: Thu, 27 Jul 2006 13:18:19 -0700 Subject: 3D Polygon In-Reply-To: <20060727200853.91747.qmail@web25509.mail.ukl.yahoo.com> Message-ID: What does shpinfo.pl -file=[your 3D filename] produce? Joe Bussell On Time Systems K S wrote: > Sorry for the delay! Thanks for the response! > Here is the report of ogrinfo for the shapefile. Supposed that the > precompiled version of mapserver doesn't support 3D polygon how can I > "enable" 3D polygons' support? > > Layer name: TownBlocks > Geometry: 3D Polygon > Feature Count: 8024 > Extent: (496798.420507, 3874382.779711) - (692235.890369, 3932301.842024) > Layer SRS WKT: > PROJCS["Greek_Grid", > GEOGCS["GCS_GGRS_1987", > DATUM["Greek_Geodetic_Reference_System_1987", > SPHEROID["GRS_1980",6378137.0,298.257222101]], > PRIMEM["Greenwich",0.0], > UNIT["Degree",0.0174532925199433]], > PROJECTION["Transverse_Mercator"], > PARAMETER["False_Easting",500000.0], > PARAMETER["False_Northing",0.0], > PARAMETER["Central_Meridian",24.0], > PARAMETER["Scale_Factor",0.9996], > PARAMETER["Latitude_Of_Origin",0.0], > UNIT["Meter",1.0]] > OBJECTID: Integer (9.0) > FID_??????: Integer (9.0) > SDE_blockc: Real (19.11) > PERIMETER: Real (19.11) > TBLOCK_: Real (19.11) > TBLOCK_ID: Real (19.11) > ESYE_CODE: Integer (9.0) > MATCH_: Integer (9.0) > XBLOCK: Real (19.11) > YBLOCK: Real (19.11) > MUN_NAME: String (40.0) > MUN_CODE: String (8.0) > OT: String (12.0) > TR_POP: Real (19.11) > PER_POP: Real (19.11) > NOIK: Real (19.11) > HOUSES: Real (19.11) > H_OWN: Real (19.11) > H_REN: Real (19.11) > H_KAT: Real (19.11) > H_KEN: Real (19.11) > H_KY_KA: Real (19.11) > H_EXOH: Real (19.11) > PER_MEN: Real (19.11) > PER_WOM: Real (19.11) > AGE14: Real (19.11) > AGE1564: Real (19.11) > AGE65: Real (19.11) > YDR: Real (19.11) > EDR: Real (19.11) > H_PKEN: Real (19.11) > H_PREN: Real (19.11) > H_POWN: Real (19.11) > H_PEXOH: Real (19.11) > M_W_RAT: Real (19.11) > NOIK_MESO: Real (19.11) > POPDEN: Real (19.11) > FID_LLNew_: Integer (9.0) > Shape_Leng: Real (19.11) > Shape_Ar_1: Real (19.11) > Shape_Le_1: Real (19.11) > Shape_Area: Real (19.11) > > */"Bart van den Eijnden (OSGIS)" /* ??????: > > What does ogrinfo report on your shapefile? Can you send us the > output? > > Best regards, > Bart > > > I have tried using TYPE POLYGON in this LAYER but mapserver > keeps showing > > the error message: > > > > msDrawShapes() General error message. Only polygon shapes can be > drawn > > using a POLYGON layer definition. > > > > I am using mapserver version 4.8.4 from the precompiled pack that is > > distributed from maptools.org. I can use TYPE LINE for the LAYER > > without getting any error but that doesn't result to the map I > want to > > show.Any ideas? > > > > Thank you for the response! > > > > "Bart van den Eijnden (OSGIS)" ??????: You should > > just use TYPE POLYGON. Note I think you need Mapserver 4.6 or > > greater, best to try with the latest release (4.8.X). > > > > Btw, Mapserver has a compile option determining whether or not > it will > > pick up Z and M values. > > > > # If you want to use shape Z and M parameter this option must be > set. > > # It's OFF by default. > > #USE_POINT_Z_M=-DUSE_POINT_Z_M > > USE_POINT_Z_M= > > > > Best regards, > > Bart > > > > K S wrote: > > > >> Hello everybody, > >> I have a shapefile which is GEOMETRY: 3D POLYGON. How can i draw > >> the layer for this shapefile. To be more specific what would be the > >> TYPE of such a layer > >> > >> Thank you in advance > >> > >> ?????????????? Yahoo! > >> ?????????? ?? ?????????? ???? ???? (spam); ?? Yahoo! Mail > ???????? ??? > >> ???????? ?????? ????????? ???? ??? ??????????? ????????? > >> http://login.yahoo.com/config/mail?.intl=gr > > > > > > > > -- > > Bart van den Eijnden > > OSGIS, Open Source GIS > > http://www.osgis.nl > > > > > > > > > > --------------------------------- > > ?????????????? Yahoo! > > ?????????? ?? ?????????? ???? ???? (spam); ?? Yahoo! Mail > ???????? ??? > > ???????? ?????? ????????? ???? ??? ??????????? ????????? > > http://login.yahoo.com/config/mail?.intl=gr > > > ------------------------------------------------------------------------ > ?????????????? Yahoo! > ?????????? ?? ?????????? ???? ???? (spam); ?? Yahoo! Mail ???????? ??? > ???????? ?????? ????????? ???? ??? ??????????? ????????? > http://login.yahoo.com/config/mail?.intl=gr From xslove at CENTRUM.CZ Thu Jul 27 13:19:47 2006 From: xslove at CENTRUM.CZ (xslove) Date: Thu, 27 Jul 2006 13:19:47 -0700 Subject: feature attribute character coding In-Reply-To: <44C8BEFF.2080401@herzsys.de> Message-ID: I use mapscript 4.2 and also throught java. I have solved this by workaround String rawbytes = feature.getValue(1); // read raw characters BufferedReader reader = new BufferedReader(new InputStreamReader(new StringBufferInputStream(rawbytes), "windows-1250")); String title = reader.readLine(); "show this DBF" I mean I view content in Simple DBF Viewer (Servant Salamander Plug-In) It is possible to get characters from mapserver data sources decoded in Unicode? -- View this message in context: http://www.nabble.com/feature-attribute-character-coding-tf2008222.html#a5528422 Sent from the Mapserver - User forum at Nabble.com. From joel at RHINOSYSTEMSINC.COM Thu Jul 27 14:15:11 2006 From: joel at RHINOSYSTEMSINC.COM (Joel Thompson) Date: Thu, 27 Jul 2006 14:15:11 -0700 Subject: map gps coordinates with CGI/ (java or Perl) In-Reply-To: Message-ID: Hello, I'd like to map GPS lat/long coordinates dynamically through CGI (preferred JAVA,perl, php, in that order) - I am new to MapServer... Can you help me to get in the right direction with this? is there any add-on tools that do this? or is is just done through the .map w/ html template architecture... where the CGI is used to create the HTML file??? Any samples would be nice... Thanks in advanced. -Joel From rockwell_001 at YAHOO.COM Thu Jul 27 14:52:21 2006 From: rockwell_001 at YAHOO.COM (rock well) Date: Thu, 27 Jul 2006 14:52:21 -0700 Subject: .Net Script equivalent to asp script to filter mapserver requests Message-ID: Hello all, i am trying to generate a map by requesting the map server using like a proxy call to the server. I found this asp script in http://mapserver.gis.umn.edu/docs/howto/wms_server which does the same, when i used the same script in asp.net i found that .net doesnt support xmlhttp, so i registered the required dlls for .net to support xmlhttp, but still the script doesnt give me any output .... Are there any changes to be made in this script to make it work in asp.net ... well i am sorry if this post is unclear, i could provide with more information if you need .. Thanks for your effort and time ..... kris --------------------------------- Yahoo! Music Unlimited - Access over 1 million songs.Try it free. -------------- next part -------------- An HTML attachment was scrubbed... URL: From madprof at GMX.CH Fri Jul 28 01:08:30 2006 From: madprof at GMX.CH (Daniel Goetz) Date: Fri, 28 Jul 2006 10:08:30 +0200 Subject: WMS and SRS In-Reply-To: <4BF377919225F449BB097CB76FFE9BC83DDFCD@ptolemy.topozone.com> Message-ID: Hi, thank you Frank, Trond and Ed for your help. I tried to use reporjected coordinates as BBOX-values in my "new" WMS-GetMap-request (SRS=WPSG:4326) and it works now. I got the new reprojected coordinates out of the GetCapabilities document (I took them out of the LatLonBoundingBox paragraph in the GetCapabilities document): VIEW_RWG_TBS RWG_TM_NR EPSG:31468 EPSG:4326 But I have two further questions: When I do a WMS-GetMap-request in the "new" SRS (EPSG:4326) the map maserver sends back does not vary form the map mapserver generates when sending a GetMap-request in the "original" SRS (EPSG:31468). I mean there is no deformation/distortion noticeable. But when I do a "normal" mapserver mode=browse-request in my simple pan and zoom template and tell mapserver to reproject the data in EPSG:4326 (I do that by putting the PROJECTION-object in the MAP-object of the .map-file to "init=epsg:4326" while the PROJECTION-objects in the LAYER-objects are still in the "origninal" "init=epsg:31468" projection. Of course I change the EXTENT-parameters in the .map-file too. Am I doing right?) the returned map looks different from the map genereated using the "original" projection. I mean that the reprojected map using mode=browse looks deformed/distorted compared to the "original" not reprojected map. The question is now: Why do the two maps (the reprojected one I get from the WMS-GetMap-request and the reprojected map I get by a mode=browse request) differ in their appearence (distortion) although I tell mapserver in both cases to reproject the map to "epsg:4326"? The secoond question is: As mentioned I got the "new" reprojeted coordinates for BBOX-values out of the GetCapabilities document. But is there a program that could do coordinate transformation for me, so that I am able to transform "epsg:31468" coordinates to "epsg:4326" coordinates? OK, that's it. Thak you again for your helpful hints. And would be very nice of you if you could help me further on with my problems/questions elucidated in this email. Thank you so much. regards Daniel -------- Original-Nachricht -------- Datum: Thu, 27 Jul 2006 09:22:21 -0400 Von: Ed McNierney An: MAPSERVER-USERS at LISTS.UMN.EDU Betreff: Re: [UMN_MAPSERVER-USERS] WMS and SRS > Daniel - > > I think Frank's theory is likely to be correct, and that there is a > problem with the BBOX coordinates used in your new request. It sounds like the > changes you made are fine, although I think it is not necessary to add all > supported SRS systems to the metadata for each layer - just the MAP-level > metadata should be all you need to do. > > Can you post the SRS= and BBOX= parameters you are using in your original > epsg:31468 request and in the new epsg:4326 requests? > > - Ed > > Ed McNierney > President and Chief Mapmaker > TopoZone.com / Maps a la carte, Inc. > 73 Princeton Street, Suite 305 > North Chelmsford, MA 01863 > ed at topozone.com > (978) 251-4242 > > -----Original Message----- > From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On > Behalf Of Daniel Goetz > Sent: Thursday, July 27, 2006 3:05 AM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: [UMN_MAPSERVER-USERS] WMS and SRS > > Hi coummunity, > > I built up a littel WMS-server with umn-mapserver (local installation; > ms4w 2.1). The "original" projection of the single Layers is alway epsg:31468 > (these are cartesian Gau?-Kr?ger-coordiantes). So I set the > PORJECTION-object of each LAYER and in the MAP-object to "init=epsg:31468". In the > METADATA of the MAP-object as well as in the single LAYER-objects I defined > "wms_srs" as "EPSG:31468" as well. For testing purpose I did some > WMS-GetMap-Requests with "SRS=EPSG:31468" and everything went fine. > > But now I want to make my WMS-service more interchangeable, so I want to > define some more SRSs in that the WMS should be able to be displayed. I want > to make it possible to "transform" (don't know the exact word in english) > the WMS from its original Projection to another SRS (e.g. WGS 84; > EPSG:4326). In my opinion this should be possible by adding another epsg-code to the > METADATA. So my METADATA (both in the MAP and in the LAYERs-objects) look > like this: "wms_srs" "EPSG:31468 EPSG:4326". > > But now every time I change the SRS block in my WMS-GetMap-request from > "SRS=EPSG:31468" to "SRS=EPSG:4326" mapserver returns a blank image. I even > tried to set the BBOX to latlon-coordinates when using "SRS=EPSG:4326" but > even this failed. I also testes other SRSs (both geographic ones and real > projections) but with no success. > > Could anybody please give me some help or hints what to do and what went > wrong and why did this happen? I would be very glad and thankful. Thank you > so much. > > > regards > > > Daniel > > > -- > > > Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen! > Ideal f?r Modem und ISDN: http://www.gmx.net/de/go/smartsurfer -- Echte DSL-Flatrate dauerhaft f?r 0,- Euro*. Nur noch kurze Zeit! "Feel free" mit GMX DSL: http://www.gmx.net/de/go/dsl From bartvde at XS4ALL.NL Fri Jul 28 01:26:38 2006 From: bartvde at XS4ALL.NL (Bart van den Eijnden (OSGIS)) Date: Fri, 28 Jul 2006 10:26:38 +0200 Subject: WMS and SRS In-Reply-To: <20060728080830.25780@gmx.net> Message-ID: Hi Daniel, please remember that if the ratio of your bbox and the ratio of your width versus height in pixels, differs, the map will be stretched. That could explain some of the behaviour. You need to make sure that the values in your WMS request have the same ratio. I don't know if this is the problem, but it could be a cause. Proj.4 has a utility to reproject. The proj utilities also come with MS4W. See also: http://proj.maptools.org/man_cs2cs.html Best regards, Bart Daniel Goetz wrote: >Hi, > >thank you Frank, Trond and Ed for your help. I tried to use reporjected coordinates as BBOX-values in my "new" WMS-GetMap-request (SRS=WPSG:4326) and it works now. I got the new reprojected coordinates out of the GetCapabilities document (I took them out of the LatLonBoundingBox paragraph in the GetCapabilities document): > > > VIEW_RWG_TBS > RWG_TM_NR > EPSG:31468 > EPSG:4326 > > minx="4.42695e+006" miny="5.46647e+006" maxx="4.44806e+006" maxy="5.48982e+006" /> > > > > >But I have two further questions: > >When I do a WMS-GetMap-request in the "new" SRS (EPSG:4326) the map maserver sends back does not vary form the map mapserver generates when sending a GetMap-request in the "original" SRS (EPSG:31468). I mean there is no deformation/distortion noticeable. But when I do a "normal" mapserver mode=browse-request in my simple pan and zoom template and tell mapserver to reproject the data in EPSG:4326 (I do that by putting the PROJECTION-object in the MAP-object of the .map-file to "init=epsg:4326" while the PROJECTION-objects in the LAYER-objects are still in the "origninal" "init=epsg:31468" projection. Of course I change the EXTENT-parameters in the .map-file too. Am I doing right?) the returned map looks different from the map genereated using the "original" projection. I mean that the reprojected map using mode=browse looks deformed/distorted compared to the "original" not reprojected map. > >The question is now: Why do the two maps (the reprojected one I get from the WMS-GetMap-request and the reprojected map I get by a mode=browse request) differ in their appearence (distortion) although I tell mapserver in both cases to reproject the map to "epsg:4326"? > >The secoond question is: As mentioned I got the "new" reprojeted coordinates for BBOX-values out of the GetCapabilities document. But is there a program that could do coordinate transformation for me, so that I am able to transform "epsg:31468" coordinates to "epsg:4326" coordinates? > > >OK, that's it. Thak you again for your helpful hints. And would be very nice of you if you could help me further on with my problems/questions elucidated in this email. Thank you so much. > > >regards > >Daniel > > >-------- Original-Nachricht -------- >Datum: Thu, 27 Jul 2006 09:22:21 -0400 >Von: Ed McNierney >An: MAPSERVER-USERS at LISTS.UMN.EDU >Betreff: Re: [UMN_MAPSERVER-USERS] WMS and SRS > > > >>Daniel - >> >>I think Frank's theory is likely to be correct, and that there is a >>problem with the BBOX coordinates used in your new request. It sounds like the >>changes you made are fine, although I think it is not necessary to add all >>supported SRS systems to the metadata for each layer - just the MAP-level >>metadata should be all you need to do. >> >>Can you post the SRS= and BBOX= parameters you are using in your original >>epsg:31468 request and in the new epsg:4326 requests? >> >> - Ed >> >>Ed McNierney >>President and Chief Mapmaker >>TopoZone.com / Maps a la carte, Inc. >>73 Princeton Street, Suite 305 >>North Chelmsford, MA 01863 >>ed at topozone.com >>(978) 251-4242 >> >>-----Original Message----- >>From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On >>Behalf Of Daniel Goetz >>Sent: Thursday, July 27, 2006 3:05 AM >>To: MAPSERVER-USERS at LISTS.UMN.EDU >>Subject: [UMN_MAPSERVER-USERS] WMS and SRS >> >>Hi coummunity, >> >>I built up a littel WMS-server with umn-mapserver (local installation; >>ms4w 2.1). The "original" projection of the single Layers is alway epsg:31468 >>(these are cartesian Gau?-Kr?ger-coordiantes). So I set the >>PORJECTION-object of each LAYER and in the MAP-object to "init=epsg:31468". In the >>METADATA of the MAP-object as well as in the single LAYER-objects I defined >>"wms_srs" as "EPSG:31468" as well. For testing purpose I did some >>WMS-GetMap-Requests with "SRS=EPSG:31468" and everything went fine. >> >>But now I want to make my WMS-service more interchangeable, so I want to >>define some more SRSs in that the WMS should be able to be displayed. I want >>to make it possible to "transform" (don't know the exact word in english) >>the WMS from its original Projection to another SRS (e.g. WGS 84; >>EPSG:4326). In my opinion this should be possible by adding another epsg-code to the >>METADATA. So my METADATA (both in the MAP and in the LAYERs-objects) look >>like this: "wms_srs" "EPSG:31468 EPSG:4326". >> >>But now every time I change the SRS block in my WMS-GetMap-request from >>"SRS=EPSG:31468" to "SRS=EPSG:4326" mapserver returns a blank image. I even >>tried to set the BBOX to latlon-coordinates when using "SRS=EPSG:4326" but >>even this failed. I also testes other SRSs (both geographic ones and real >>projections) but with no success. >> >>Could anybody please give me some help or hints what to do and what went >>wrong and why did this happen? I would be very glad and thankful. Thank you >>so much. >> >> >>regards >> >> >>Daniel >> >> >>-- >> >> >>Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen! >>Ideal f?r Modem und ISDN: http://www.gmx.net/de/go/smartsurfer >> >> > > > -- Bart van den Eijnden OSGIS, Open Source GIS http://www.osgis.nl From madprof at GMX.CH Fri Jul 28 01:44:23 2006 From: madprof at GMX.CH (Daniel Goetz) Date: Fri, 28 Jul 2006 10:44:23 +0200 Subject: WMS and SRS In-Reply-To: <44C9CA3E.7080009@xs4all.nl> Message-ID: Hi Bart, thank you for your reply. But the extent in the mapfile is the same as the BBOX-values in the WMS-request. And the SIZE in the MAP-object of the mapfile is the same as in WIDTH+HEIGHT in the WMS-request. And nevertheless the two "reprojected" maps differ in appearance (distortion). But you are right. I should check that the BBOX and the WIDTH/HEIGHT-values have the same proportion. Do I also have to check wheter SIZE and EXTENT in the MAP-object have the same proportions as well? And how can I measure the distance between the vertices of my EXTENT and the distance between the vertices of my BBOX? Any suggestion? Thank you for your help and hopefully your further ideas. Thank you. regards Daniel -------- Original-Nachricht -------- Datum: Fri, 28 Jul 2006 10:26:38 +0200 Von: "Bart van den Eijnden (OSGIS)" An: Daniel Goetz Betreff: Re: [UMN_MAPSERVER-USERS] WMS and SRS > Hi Daniel, > > please remember that if the ratio of your bbox and the ratio of your > width versus height in pixels, differs, the map will be stretched. That > could explain some of the behaviour. You need to make sure that the > values in your WMS request have the same ratio. I don't know if this is > the problem, but it could be a cause. > > Proj.4 has a utility to reproject. The proj utilities also come with > MS4W. See also: > > http://proj.maptools.org/man_cs2cs.html > > Best regards, > Bart > > Daniel Goetz wrote: > > >Hi, > > > >thank you Frank, Trond and Ed for your help. I tried to use reporjected > coordinates as BBOX-values in my "new" WMS-GetMap-request (SRS=WPSG:4326) > and it works now. I got the new reprojected coordinates out of the > GetCapabilities document (I took them out of the LatLonBoundingBox paragraph in the > GetCapabilities document): > > > > > > VIEW_RWG_TBS > > RWG_TM_NR > > EPSG:31468 > > EPSG:4326 > > maxy="49.5441" /> > > > minx="4.42695e+006" miny="5.46647e+006" > maxx="4.44806e+006" maxy="5.48982e+006" /> > > > > > > > > > >But I have two further questions: > > > >When I do a WMS-GetMap-request in the "new" SRS (EPSG:4326) the map > maserver sends back does not vary form the map mapserver generates when sending > a GetMap-request in the "original" SRS (EPSG:31468). I mean there is no > deformation/distortion noticeable. But when I do a "normal" mapserver > mode=browse-request in my simple pan and zoom template and tell mapserver to > reproject the data in EPSG:4326 (I do that by putting the PROJECTION-object in > the MAP-object of the .map-file to "init=epsg:4326" while the > PROJECTION-objects in the LAYER-objects are still in the "origninal" "init=epsg:31468" > projection. Of course I change the EXTENT-parameters in the .map-file too. Am > I doing right?) the returned map looks different >from the map genereated > using the "original" projection. I mean that the reprojected map using > mode=browse looks deformed/distorted compared to the "original" not reprojected > map. > > > >The question is now: Why do the two maps (the reprojected one I get from > the WMS-GetMap-request and the reprojected map I get by a mode=browse > request) differ in their appearence (distortion) although I tell mapserver in > both cases to reproject the map to "epsg:4326"? > > > >The secoond question is: As mentioned I got the "new" reprojeted > coordinates for BBOX-values out of the GetCapabilities document. But is there a > program that could do coordinate transformation for me, so that I am able to > transform "epsg:31468" coordinates to "epsg:4326" coordinates? > > > > > >OK, that's it. Thak you again for your helpful hints. And would be very > nice of you if you could help me further on with my problems/questions > elucidated in this email. Thank you so much. > > > > > >regards > > > >Daniel > > > > > >-------- Original-Nachricht -------- > >Datum: Thu, 27 Jul 2006 09:22:21 -0400 > >Von: Ed McNierney > >An: MAPSERVER-USERS at LISTS.UMN.EDU > >Betreff: Re: [UMN_MAPSERVER-USERS] WMS and SRS > > > > > > > >>Daniel - > >> > >>I think Frank's theory is likely to be correct, and that there is a > >>problem with the BBOX coordinates used in your new request. It sounds > like the > >>changes you made are fine, although I think it is not necessary to add > all > >>supported SRS systems to the metadata for each layer - just the > MAP-level > >>metadata should be all you need to do. > >> > >>Can you post the SRS= and BBOX= parameters you are using in your > original > >>epsg:31468 request and in the new epsg:4326 requests? > >> > >> - Ed > >> > >>Ed McNierney > >>President and Chief Mapmaker > >>TopoZone.com / Maps a la carte, Inc. > >>73 Princeton Street, Suite 305 > >>North Chelmsford, MA 01863 > >>ed at topozone.com > >>(978) 251-4242 > >> > >>-----Original Message----- > >>From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On > >>Behalf Of Daniel Goetz > >>Sent: Thursday, July 27, 2006 3:05 AM > >>To: MAPSERVER-USERS at LISTS.UMN.EDU > >>Subject: [UMN_MAPSERVER-USERS] WMS and SRS > >> > >>Hi coummunity, > >> > >>I built up a littel WMS-server with umn-mapserver (local installation; > >>ms4w 2.1). The "original" projection of the single Layers is alway > epsg:31468 > >>(these are cartesian Gau?-Kr?ger-coordiantes). So I set the > >>PORJECTION-object of each LAYER and in the MAP-object to > "init=epsg:31468". In the > >>METADATA of the MAP-object as well as in the single LAYER-objects I > defined > >>"wms_srs" as "EPSG:31468" as well. For testing purpose I did some > >>WMS-GetMap-Requests with "SRS=EPSG:31468" and everything went fine. > >> > >>But now I want to make my WMS-service more interchangeable, so I want to > >>define some more SRSs in that the WMS should be able to be displayed. I > want > >>to make it possible to "transform" (don't know the exact word in > english) > >>the WMS from its original Projection to another SRS (e.g. WGS 84; > >>EPSG:4326). In my opinion this should be possible by adding another > epsg-code to the > >>METADATA. So my METADATA (both in the MAP and in the LAYERs-objects) > look > >>like this: "wms_srs" "EPSG:31468 EPSG:4326". > >> > >>But now every time I change the SRS block in my WMS-GetMap-request from > >>"SRS=EPSG:31468" to "SRS=EPSG:4326" mapserver returns a blank image. I > even > >>tried to set the BBOX to latlon-coordinates when using "SRS=EPSG:4326" > but > >>even this failed. I also testes other SRSs (both geographic ones and > real > >>projections) but with no success. > >> > >>Could anybody please give me some help or hints what to do and what went > >>wrong and why did this happen? I would be very glad and thankful. Thank > you > >>so much. > >> > >> > >>regards > >> > >> > >>Daniel > >> > >> > >>-- > >> > >> > >>Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen! > >>Ideal f?r Modem und ISDN: http://www.gmx.net/de/go/smartsurfer > >> > >> > > > > > > > > > -- > Bart van den Eijnden > OSGIS, Open Source GIS > http://www.osgis.nl > -- "Feel free" ? 10 GB Mailbox, 100 FreeSMS/Monat ... Jetzt GMX TopMail testen: http://www.gmx.net/de/go/topmail From bartvde at XS4ALL.NL Fri Jul 28 01:52:39 2006 From: bartvde at XS4ALL.NL (Bart van den Eijnden (OSGIS)) Date: Fri, 28 Jul 2006 10:52:39 +0200 Subject: WMS and SRS In-Reply-To: <20060728084423.25800@gmx.net> Message-ID: Hi Daniel, I think the stretching behaviour (non square pixels) is specific to WMS and won't happen in Mapserver CGI mode. For WMS, the SIZE and EXTENT of the MAP file don't matter, since they are specified in the request. The easiest is to test with a square image. So eg 400 x 400 pixels. Then make sure that MAXX-MINX equals MAXY-MINY (BBOX=MINX,MINY,MAXX,MAXY). Best regards, Bart Daniel Goetz wrote: >Hi Bart, > >thank you for your reply. > >But the extent in the mapfile is the same as the BBOX-values in the WMS-request. And the SIZE in the MAP-object of the mapfile is the same as in WIDTH+HEIGHT in the WMS-request. And nevertheless the two "reprojected" maps differ in appearance (distortion). > >But you are right. I should check that the BBOX and the WIDTH/HEIGHT-values have the same proportion. Do I also have to check wheter SIZE and EXTENT in the MAP-object have the same proportions as well? And how can I measure the distance between the vertices of my EXTENT and the distance between the vertices of my BBOX? Any suggestion? > >Thank you for your help and hopefully your further ideas. Thank you. > > >regards > > >Daniel > > >-------- Original-Nachricht -------- >Datum: Fri, 28 Jul 2006 10:26:38 +0200 >Von: "Bart van den Eijnden (OSGIS)" >An: Daniel Goetz >Betreff: Re: [UMN_MAPSERVER-USERS] WMS and SRS > > > >>Hi Daniel, >> >>please remember that if the ratio of your bbox and the ratio of your >>width versus height in pixels, differs, the map will be stretched. That >>could explain some of the behaviour. You need to make sure that the >>values in your WMS request have the same ratio. I don't know if this is >>the problem, but it could be a cause. >> >>Proj.4 has a utility to reproject. The proj utilities also come with >>MS4W. See also: >> >>http://proj.maptools.org/man_cs2cs.html >> >>Best regards, >>Bart >> >>Daniel Goetz wrote: >> >> >> >>>Hi, >>> >>>thank you Frank, Trond and Ed for your help. I tried to use reporjected >>> >>> >>coordinates as BBOX-values in my "new" WMS-GetMap-request (SRS=WPSG:4326) >>and it works now. I got the new reprojected coordinates out of the >>GetCapabilities document (I took them out of the LatLonBoundingBox paragraph in the >>GetCapabilities document): >> >> >>> >>> VIEW_RWG_TBS >>> RWG_TM_NR >>> EPSG:31468 >>> EPSG:4326 >>> >> >>> >>maxy="49.5441" /> >> >> >>> >> minx="4.42695e+006" miny="5.46647e+006" >>> >>> >>maxx="4.44806e+006" maxy="5.48982e+006" /> >> >> >>> >>> >>> >>> >>>But I have two further questions: >>> >>>When I do a WMS-GetMap-request in the "new" SRS (EPSG:4326) the map >>> >>> >>maserver sends back does not vary form the map mapserver generates when sending >>a GetMap-request in the "original" SRS (EPSG:31468). I mean there is no >>deformation/distortion noticeable. But when I do a "normal" mapserver >>mode=browse-request in my simple pan and zoom template and tell mapserver to >>reproject the data in EPSG:4326 (I do that by putting the PROJECTION-object in >>the MAP-object of the .map-file to "init=epsg:4326" while the >>PROJECTION-objects in the LAYER-objects are still in the "origninal" "init=epsg:31468" >>projection. Of course I change the EXTENT-parameters in the .map-file too. Am >>I doing right?) the returned map looks different >from the map genereated >>using the "original" projection. I mean that the reprojected map using >>mode=browse looks deformed/distorted compared to the "original" not reprojected >>map. >> >> >>>The question is now: Why do the two maps (the reprojected one I get from >>> >>> >>the WMS-GetMap-request and the reprojected map I get by a mode=browse >>request) differ in their appearence (distortion) although I tell mapserver in >>both cases to reproject the map to "epsg:4326"? >> >> >>>The secoond question is: As mentioned I got the "new" reprojeted >>> >>> >>coordinates for BBOX-values out of the GetCapabilities document. But is there a >>program that could do coordinate transformation for me, so that I am able to >>transform "epsg:31468" coordinates to "epsg:4326" coordinates? >> >> >>>OK, that's it. Thak you again for your helpful hints. And would be very >>> >>> >>nice of you if you could help me further on with my problems/questions >>elucidated in this email. Thank you so much. >> >> >>>regards >>> >>>Daniel >>> >>> >>>-------- Original-Nachricht -------- >>>Datum: Thu, 27 Jul 2006 09:22:21 -0400 >>>Von: Ed McNierney >>>An: MAPSERVER-USERS at LISTS.UMN.EDU >>>Betreff: Re: [UMN_MAPSERVER-USERS] WMS and SRS >>> >>> >>> >>> >>> >>>>Daniel - >>>> >>>>I think Frank's theory is likely to be correct, and that there is a >>>>problem with the BBOX coordinates used in your new request. It sounds >>>> >>>> >>like the >> >> >>>>changes you made are fine, although I think it is not necessary to add >>>> >>>> >>all >> >> >>>>supported SRS systems to the metadata for each layer - just the >>>> >>>> >>MAP-level >> >> >>>>metadata should be all you need to do. >>>> >>>>Can you post the SRS= and BBOX= parameters you are using in your >>>> >>>> >>original >> >> >>>>epsg:31468 request and in the new epsg:4326 requests? >>>> >>>> - Ed >>>> >>>>Ed McNierney >>>>President and Chief Mapmaker >>>>TopoZone.com / Maps a la carte, Inc. >>>>73 Princeton Street, Suite 305 >>>>North Chelmsford, MA 01863 >>>>ed at topozone.com >>>>(978) 251-4242 >>>> >>>>-----Original Message----- >>>>From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On >>>>Behalf Of Daniel Goetz >>>>Sent: Thursday, July 27, 2006 3:05 AM >>>>To: MAPSERVER-USERS at LISTS.UMN.EDU >>>>Subject: [UMN_MAPSERVER-USERS] WMS and SRS >>>> >>>>Hi coummunity, >>>> >>>>I built up a littel WMS-server with umn-mapserver (local installation; >>>>ms4w 2.1). The "original" projection of the single Layers is alway >>>> >>>> >>epsg:31468 >> >> >>>>(these are cartesian Gau?-Kr?ger-coordiantes). So I set the >>>>PORJECTION-object of each LAYER and in the MAP-object to >>>> >>>> >>"init=epsg:31468". In the >> >> >>>>METADATA of the MAP-object as well as in the single LAYER-objects I >>>> >>>> >>defined >> >> >>>>"wms_srs" as "EPSG:31468" as well. For testing purpose I did some >>>>WMS-GetMap-Requests with "SRS=EPSG:31468" and everything went fine. >>>> >>>>But now I want to make my WMS-service more interchangeable, so I want to >>>>define some more SRSs in that the WMS should be able to be displayed. I >>>> >>>> >>want >> >> >>>>to make it possible to "transform" (don't know the exact word in >>>> >>>> >>english) >> >> >>>>the WMS from its original Projection to another SRS (e.g. WGS 84; >>>>EPSG:4326). In my opinion this should be possible by adding another >>>> >>>> >>epsg-code to the >> >> >>>>METADATA. So my METADATA (both in the MAP and in the LAYERs-objects) >>>> >>>> >>look >> >> >>>>like this: "wms_srs" "EPSG:31468 EPSG:4326". >>>> >>>>But now every time I change the SRS block in my WMS-GetMap-request from >>>>"SRS=EPSG:31468" to "SRS=EPSG:4326" mapserver returns a blank image. I >>>> >>>> >>even >> >> >>>>tried to set the BBOX to latlon-coordinates when using "SRS=EPSG:4326" >>>> >>>> >>but >> >> >>>>even this failed. I also testes other SRSs (both geographic ones and >>>> >>>> >>real >> >> >>>>projections) but with no success. >>>> >>>>Could anybody please give me some help or hints what to do and what went >>>>wrong and why did this happen? I would be very glad and thankful. Thank >>>> >>>> >>you >> >> >>>>so much. >>>> >>>> >>>>regards >>>> >>>> >>>>Daniel >>>> >>>> >>>>-- >>>> >>>> >>>>Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen! >>>>Ideal f?r Modem und ISDN: http://www.gmx.net/de/go/smartsurfer >>>> >>>> >>>> >>>> >>> >>> >>> >>> >>-- >>Bart van den Eijnden >>OSGIS, Open Source GIS >>http://www.osgis.nl >> >> >> > > > -- Bart van den Eijnden OSGIS, Open Source GIS http://www.osgis.nl From madprof at GMX.CH Fri Jul 28 02:18:41 2006 From: madprof at GMX.CH (Daniel Goetz) Date: Fri, 28 Jul 2006 11:18:41 +0200 Subject: WMS and SRS In-Reply-To: <44C9D057.3080608@xs4all.nl> Message-ID: Hi Bart, thank you again for your help. I am sorry, but I think because of my limited skills in writing in english you have misunderstood what I wanted to say. Sorry for that. I meant in my last email that the EXTENT in a mode=browse ("normal" mapserver CGI request) is the equivalent to the BBOX-values in the WMS-GetMap-request. And that SIZE in "normal" mapserver request is equivalent to WIDTH/HEIGHT in WMS-GetMap-requests. Am I right? And the EXTENT-values and the BBOX-values did not alter; neither in the WMS-request nor in the "normal" mode=browse CGI mapserver-request. Same with SIZE and WIDTH/HEIGHT. And nevertheless these values did not alter in the two different requests, the returened reprojected maps differ (stretching). > I think the stretching behaviour (non square pixels) is specific to WMS > and won't happen in Mapserver CGI mode. It is the map of the "normal" mode=browse mapserver-request that seems to be stretched compared to the not reprojected map. The reprojected map of the WMS-GetMap-request looks similar/equal to the not reprojected map. But isn't it quiet normal that reprocetion causes some kind of stretching and distortion? Please correct me if I am wrong. So thank you for your reply. And sorry for my bad english/description of my problems. Thank you for furhter support in advance. regards Daniel -------- Original-Nachricht -------- Datum: Fri, 28 Jul 2006 10:52:39 +0200 Von: "Bart van den Eijnden (OSGIS)" An: Daniel Goetz Betreff: Re: [UMN_MAPSERVER-USERS] WMS and SRS > Hi Daniel, > > I think the stretching behaviour (non square pixels) is specific to WMS > and won't happen in Mapserver CGI mode. > > For WMS, the SIZE and EXTENT of the MAP file don't matter, since they > are specified in the request. > > The easiest is to test with a square image. So eg 400 x 400 pixels. > > Then make sure that MAXX-MINX equals MAXY-MINY (BBOX=MINX,MINY,MAXX,MAXY). > > Best regards, > Bart > > Daniel Goetz wrote: > > >Hi Bart, > > > >thank you for your reply. > > > >But the extent in the mapfile is the same as the BBOX-values in the > WMS-request. And the SIZE in the MAP-object of the mapfile is the same as in > WIDTH+HEIGHT in the WMS-request. And nevertheless the two "reprojected" maps > differ in appearance (distortion). > > > >But you are right. I should check that the BBOX and the > WIDTH/HEIGHT-values have the same proportion. Do I also have to check wheter SIZE and EXTENT > in the MAP-object have the same proportions as well? And how can I measure > the distance between the vertices of my EXTENT and the distance between > the vertices of my BBOX? Any suggestion? > > > >Thank you for your help and hopefully your further ideas. Thank you. > > > > > >regards > > > > > >Daniel > > > > > >-------- Original-Nachricht -------- > >Datum: Fri, 28 Jul 2006 10:26:38 +0200 > >Von: "Bart van den Eijnden (OSGIS)" > >An: Daniel Goetz > >Betreff: Re: [UMN_MAPSERVER-USERS] WMS and SRS > > > > > > > >>Hi Daniel, > >> > >>please remember that if the ratio of your bbox and the ratio of your > >>width versus height in pixels, differs, the map will be stretched. That > >>could explain some of the behaviour. You need to make sure that the > >>values in your WMS request have the same ratio. I don't know if this is > >>the problem, but it could be a cause. > >> > >>Proj.4 has a utility to reproject. The proj utilities also come with > >>MS4W. See also: > >> > >>http://proj.maptools.org/man_cs2cs.html > >> > >>Best regards, > >>Bart > >> > >>Daniel Goetz wrote: > >> > >> > >> > >>>Hi, > >>> > >>>thank you Frank, Trond and Ed for your help. I tried to use reporjected > >>> > >>> > >>coordinates as BBOX-values in my "new" WMS-GetMap-request > (SRS=WPSG:4326) > >>and it works now. I got the new reprojected coordinates out of the > >>GetCapabilities document (I took them out of the LatLonBoundingBox > paragraph in the > >>GetCapabilities document): > >> > >> > >>> > >>> VIEW_RWG_TBS > >>> RWG_TM_NR > >>> EPSG:31468 > >>> EPSG:4326 > >>> >>> > >>> > >>maxy="49.5441" /> > >> > >> > >>> >>> minx="4.42695e+006" miny="5.46647e+006" > >>> > >>> > >>maxx="4.44806e+006" maxy="5.48982e+006" /> > >> > >> > >>> > >>> > >>> > >>> > >>>But I have two further questions: > >>> > >>>When I do a WMS-GetMap-request in the "new" SRS (EPSG:4326) the map > >>> > >>> > >>maserver sends back does not vary form the map mapserver generates when > sending > >>a GetMap-request in the "original" SRS (EPSG:31468). I mean there is no > >>deformation/distortion noticeable. But when I do a "normal" mapserver > >>mode=browse-request in my simple pan and zoom template and tell > mapserver to > >>reproject the data in EPSG:4326 (I do that by putting the > PROJECTION-object in > >>the MAP-object of the .map-file to "init=epsg:4326" while the > >>PROJECTION-objects in the LAYER-objects are still in the "origninal" > "init=epsg:31468" > >>projection. Of course I change the EXTENT-parameters in the .map-file > too. Am > >>I doing right?) the returned map looks different >from the map > genereated > >>using the "original" projection. I mean that the reprojected map using > >>mode=browse looks deformed/distorted compared to the "original" not > reprojected > >>map. > >> > >> > >>>The question is now: Why do the two maps (the reprojected one I get > from > >>> > >>> > >>the WMS-GetMap-request and the reprojected map I get by a mode=browse > >>request) differ in their appearence (distortion) although I tell > mapserver in > >>both cases to reproject the map to "epsg:4326"? > >> > >> > >>>The secoond question is: As mentioned I got the "new" reprojeted > >>> > >>> > >>coordinates for BBOX-values out of the GetCapabilities document. But is > there a > >>program that could do coordinate transformation for me, so that I am > able to > >>transform "epsg:31468" coordinates to "epsg:4326" coordinates? > >> > >> > >>>OK, that's it. Thak you again for your helpful hints. And would be very > >>> > >>> > >>nice of you if you could help me further on with my problems/questions > >>elucidated in this email. Thank you so much. > >> > >> > >>>regards > >>> > >>>Daniel > >>> > >>> > >>>-------- Original-Nachricht -------- > >>>Datum: Thu, 27 Jul 2006 09:22:21 -0400 > >>>Von: Ed McNierney > >>>An: MAPSERVER-USERS at LISTS.UMN.EDU > >>>Betreff: Re: [UMN_MAPSERVER-USERS] WMS and SRS > >>> > >>> > >>> > >>> > >>> > >>>>Daniel - > >>>> > >>>>I think Frank's theory is likely to be correct, and that there is a > >>>>problem with the BBOX coordinates used in your new request. It sounds > >>>> > >>>> > >>like the > >> > >> > >>>>changes you made are fine, although I think it is not necessary to add > >>>> > >>>> > >>all > >> > >> > >>>>supported SRS systems to the metadata for each layer - just the > >>>> > >>>> > >>MAP-level > >> > >> > >>>>metadata should be all you need to do. > >>>> > >>>>Can you post the SRS= and BBOX= parameters you are using in your > >>>> > >>>> > >>original > >> > >> > >>>>epsg:31468 request and in the new epsg:4326 requests? > >>>> > >>>> - Ed > >>>> > >>>>Ed McNierney > >>>>President and Chief Mapmaker > >>>>TopoZone.com / Maps a la carte, Inc. > >>>>73 Princeton Street, Suite 305 > >>>>North Chelmsford, MA 01863 > >>>>ed at topozone.com > >>>>(978) 251-4242 > >>>> > >>>>-----Original Message----- > >>>>From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] > On > >>>>Behalf Of Daniel Goetz > >>>>Sent: Thursday, July 27, 2006 3:05 AM > >>>>To: MAPSERVER-USERS at LISTS.UMN.EDU > >>>>Subject: [UMN_MAPSERVER-USERS] WMS and SRS > >>>> > >>>>Hi coummunity, > >>>> > >>>>I built up a littel WMS-server with umn-mapserver (local installation; > >>>>ms4w 2.1). The "original" projection of the single Layers is alway > >>>> > >>>> > >>epsg:31468 > >> > >> > >>>>(these are cartesian Gau?-Kr?ger-coordiantes). So I set the > >>>>PORJECTION-object of each LAYER and in the MAP-object to > >>>> > >>>> > >>"init=epsg:31468". In the > >> > >> > >>>>METADATA of the MAP-object as well as in the single LAYER-objects I > >>>> > >>>> > >>defined > >> > >> > >>>>"wms_srs" as "EPSG:31468" as well. For testing purpose I did some > >>>>WMS-GetMap-Requests with "SRS=EPSG:31468" and everything went fine. > >>>> > >>>>But now I want to make my WMS-service more interchangeable, so I want > to > >>>>define some more SRSs in that the WMS should be able to be displayed. > I > >>>> > >>>> > >>want > >> > >> > >>>>to make it possible to "transform" (don't know the exact word in > >>>> > >>>> > >>english) > >> > >> > >>>>the WMS from its original Projection to another SRS (e.g. WGS 84; > >>>>EPSG:4326). In my opinion this should be possible by adding another > >>>> > >>>> > >>epsg-code to the > >> > >> > >>>>METADATA. So my METADATA (both in the MAP and in the LAYERs-objects) > >>>> > >>>> > >>look > >> > >> > >>>>like this: "wms_srs" "EPSG:31468 EPSG:4326". > >>>> > >>>>But now every time I change the SRS block in my WMS-GetMap-request > from > >>>>"SRS=EPSG:31468" to "SRS=EPSG:4326" mapserver returns a blank image. I > >>>> > >>>> > >>even > >> > >> > >>>>tried to set the BBOX to latlon-coordinates when using "SRS=EPSG:4326" > >>>> > >>>> > >>but > >> > >> > >>>>even this failed. I also testes other SRSs (both geographic ones and > >>>> > >>>> > >>real > >> > >> > >>>>projections) but with no success. > >>>> > >>>>Could anybody please give me some help or hints what to do and what > went > >>>>wrong and why did this happen? I would be very glad and thankful. > Thank > >>>> > >>>> > >>you > >> > >> > >>>>so much. > >>>> > >>>> > >>>>regards > >>>> > >>>> > >>>>Daniel > >>>> > >>>> > >>>>-- > >>>> > >>>> > >>>>Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen! > >>>>Ideal f?r Modem und ISDN: http://www.gmx.net/de/go/smartsurfer > >>>> > >>>> > >>>> > >>>> > >>> > >>> > >>> > >>> > >>-- > >>Bart van den Eijnden > >>OSGIS, Open Source GIS > >>http://www.osgis.nl > >> > >> > >> > > > > > > > > > -- > Bart van den Eijnden > OSGIS, Open Source GIS > http://www.osgis.nl -- Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen! Ideal f?r Modem und ISDN: http://www.gmx.net/de/go/smartsurfer From bartvde at XS4ALL.NL Fri Jul 28 02:21:43 2006 From: bartvde at XS4ALL.NL (Bart van den Eijnden (OSGIS)) Date: Fri, 28 Jul 2006 11:21:43 +0200 Subject: WMS and SRS In-Reply-To: <20060728091841.25790@gmx.net> Message-ID: Hi Daniel, you are right, SIZE is equivalent to WIDTH/HEIGHT in WMS. And EXTENT is equivalent to BBOX. Are you able to send us some screendumps of what you are experiencing? Or put them on a website and send the links? Best regards, Bart Daniel Goetz wrote: >Hi Bart, > >thank you again for your help. > >I am sorry, but I think because of my limited skills in writing in english you have misunderstood what I wanted to say. Sorry for that. > >I meant in my last email that the EXTENT in a mode=browse ("normal" mapserver CGI request) is the equivalent to the BBOX-values in the WMS-GetMap-request. And that SIZE in "normal" mapserver request is equivalent to WIDTH/HEIGHT in WMS-GetMap-requests. Am I right? And the EXTENT-values and the BBOX-values did not alter; neither in the WMS-request nor in the "normal" mode=browse CGI mapserver-request. Same with SIZE and WIDTH/HEIGHT. And nevertheless these values did not alter in the two different requests, the returened reprojected maps differ (stretching). > > > > > >>I think the stretching behaviour (non square pixels) is specific to WMS >>and won't happen in Mapserver CGI mode. >> >> > >It is the map of the "normal" mode=browse mapserver-request that seems to be stretched compared to the not reprojected map. The reprojected map of the WMS-GetMap-request looks similar/equal to the not reprojected map. > >But isn't it quiet normal that reprocetion causes some kind of stretching and distortion? Please correct me if I am wrong. > > >So thank you for your reply. And sorry for my bad english/description of my problems. Thank you for furhter support in advance. > > > >regards > > >Daniel > > > >-------- Original-Nachricht -------- >Datum: Fri, 28 Jul 2006 10:52:39 +0200 >Von: "Bart van den Eijnden (OSGIS)" >An: Daniel Goetz >Betreff: Re: [UMN_MAPSERVER-USERS] WMS and SRS > > > >>Hi Daniel, >> >>I think the stretching behaviour (non square pixels) is specific to WMS >>and won't happen in Mapserver CGI mode. >> >>For WMS, the SIZE and EXTENT of the MAP file don't matter, since they >>are specified in the request. >> >>The easiest is to test with a square image. So eg 400 x 400 pixels. >> >>Then make sure that MAXX-MINX equals MAXY-MINY (BBOX=MINX,MINY,MAXX,MAXY). >> >>Best regards, >>Bart >> >>Daniel Goetz wrote: >> >> >> >>>Hi Bart, >>> >>>thank you for your reply. >>> >>>But the extent in the mapfile is the same as the BBOX-values in the >>> >>> >>WMS-request. And the SIZE in the MAP-object of the mapfile is the same as in >>WIDTH+HEIGHT in the WMS-request. And nevertheless the two "reprojected" maps >>differ in appearance (distortion). >> >> >>>But you are right. I should check that the BBOX and the >>> >>> >>WIDTH/HEIGHT-values have the same proportion. Do I also have to check wheter SIZE and EXTENT >>in the MAP-object have the same proportions as well? And how can I measure >>the distance between the vertices of my EXTENT and the distance between >>the vertices of my BBOX? Any suggestion? >> >> >>>Thank you for your help and hopefully your further ideas. Thank you. >>> >>> >>>regards >>> >>> >>>Daniel >>> >>> >>>-------- Original-Nachricht -------- >>>Datum: Fri, 28 Jul 2006 10:26:38 +0200 >>>Von: "Bart van den Eijnden (OSGIS)" >>>An: Daniel Goetz >>>Betreff: Re: [UMN_MAPSERVER-USERS] WMS and SRS >>> >>> >>> >>> >>> >>>>Hi Daniel, >>>> >>>>please remember that if the ratio of your bbox and the ratio of your >>>>width versus height in pixels, differs, the map will be stretched. That >>>>could explain some of the behaviour. You need to make sure that the >>>>values in your WMS request have the same ratio. I don't know if this is >>>>the problem, but it could be a cause. >>>> >>>>Proj.4 has a utility to reproject. The proj utilities also come with >>>>MS4W. See also: >>>> >>>>http://proj.maptools.org/man_cs2cs.html >>>> >>>>Best regards, >>>>Bart >>>> >>>>Daniel Goetz wrote: >>>> >>>> >>>> >>>> >>>> >>>>>Hi, >>>>> >>>>>thank you Frank, Trond and Ed for your help. I tried to use reporjected >>>>> >>>>> >>>>> >>>>> >>>>coordinates as BBOX-values in my "new" WMS-GetMap-request >>>> >>>> >>(SRS=WPSG:4326) >> >> >>>>and it works now. I got the new reprojected coordinates out of the >>>>GetCapabilities document (I took them out of the LatLonBoundingBox >>>> >>>> >>paragraph in the >> >> >>>>GetCapabilities document): >>>> >>>> >>>> >>>> >>>>> >>>>> VIEW_RWG_TBS >>>>> RWG_TM_NR >>>>> EPSG:31468 >>>>> EPSG:4326 >>>>> >>>> >>>>> >>>>> >>>>> >>>>maxy="49.5441" /> >>>> >>>> >>>> >>>> >>>>> >>>> minx="4.42695e+006" miny="5.46647e+006" >>>>> >>>>> >>>>> >>>>> >>>>maxx="4.44806e+006" maxy="5.48982e+006" /> >>>> >>>> >>>> >>>> >>>>> >>>>> >>>>> >>>>> >>>>>But I have two further questions: >>>>> >>>>>When I do a WMS-GetMap-request in the "new" SRS (EPSG:4326) the map >>>>> >>>>> >>>>> >>>>> >>>>maserver sends back does not vary form the map mapserver generates when >>>> >>>> >>sending >> >> >>>>a GetMap-request in the "original" SRS (EPSG:31468). I mean there is no >>>>deformation/distortion noticeable. But when I do a "normal" mapserver >>>>mode=browse-request in my simple pan and zoom template and tell >>>> >>>> >>mapserver to >> >> >>>>reproject the data in EPSG:4326 (I do that by putting the >>>> >>>> >>PROJECTION-object in >> >> >>>>the MAP-object of the .map-file to "init=epsg:4326" while the >>>>PROJECTION-objects in the LAYER-objects are still in the "origninal" >>>> >>>> >>"init=epsg:31468" >> >> >>>>projection. Of course I change the EXTENT-parameters in the .map-file >>>> >>>> >>too. Am >> >> >>>>I doing right?) the returned map looks different >from the map >>>> >>>> >>genereated >> >> >>>>using the "original" projection. I mean that the reprojected map using >>>>mode=browse looks deformed/distorted compared to the "original" not >>>> >>>> >>reprojected >> >> >>>>map. >>>> >>>> >>>> >>>> >>>>>The question is now: Why do the two maps (the reprojected one I get >>>>> >>>>> >>from >> >> >>>>> >>>>> >>>>> >>>>> >>>>the WMS-GetMap-request and the reprojected map I get by a mode=browse >>>>request) differ in their appearence (distortion) although I tell >>>> >>>> >>mapserver in >> >> >>>>both cases to reproject the map to "epsg:4326"? >>>> >>>> >>>> >>>> >>>>>The secoond question is: As mentioned I got the "new" reprojeted >>>>> >>>>> >>>>> >>>>> >>>>coordinates for BBOX-values out of the GetCapabilities document. But is >>>> >>>> >>there a >> >> >>>>program that could do coordinate transformation for me, so that I am >>>> >>>> >>able to >> >> >>>>transform "epsg:31468" coordinates to "epsg:4326" coordinates? >>>> >>>> >>>> >>>> >>>>>OK, that's it. Thak you again for your helpful hints. And would be very >>>>> >>>>> >>>>> >>>>> >>>>nice of you if you could help me further on with my problems/questions >>>>elucidated in this email. Thank you so much. >>>> >>>> >>>> >>>> >>>>>regards >>>>> >>>>>Daniel >>>>> >>>>> >>>>>-------- Original-Nachricht -------- >>>>>Datum: Thu, 27 Jul 2006 09:22:21 -0400 >>>>>Von: Ed McNierney >>>>>An: MAPSERVER-USERS at LISTS.UMN.EDU >>>>>Betreff: Re: [UMN_MAPSERVER-USERS] WMS and SRS >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>>>Daniel - >>>>>> >>>>>>I think Frank's theory is likely to be correct, and that there is a >>>>>>problem with the BBOX coordinates used in your new request. It sounds >>>>>> >>>>>> >>>>>> >>>>>> >>>>like the >>>> >>>> >>>> >>>> >>>>>>changes you made are fine, although I think it is not necessary to add >>>>>> >>>>>> >>>>>> >>>>>> >>>>all >>>> >>>> >>>> >>>> >>>>>>supported SRS systems to the metadata for each layer - just the >>>>>> >>>>>> >>>>>> >>>>>> >>>>MAP-level >>>> >>>> >>>> >>>> >>>>>>metadata should be all you need to do. >>>>>> >>>>>>Can you post the SRS= and BBOX= parameters you are using in your >>>>>> >>>>>> >>>>>> >>>>>> >>>>original >>>> >>>> >>>> >>>> >>>>>>epsg:31468 request and in the new epsg:4326 requests? >>>>>> >>>>>> - Ed >>>>>> >>>>>>Ed McNierney >>>>>>President and Chief Mapmaker >>>>>>TopoZone.com / Maps a la carte, Inc. >>>>>>73 Princeton Street, Suite 305 >>>>>>North Chelmsford, MA 01863 >>>>>>ed at topozone.com >>>>>>(978) 251-4242 >>>>>> >>>>>>-----Original Message----- >>>>>>From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] >>>>>> >>>>>> >>On >> >> >>>>>>Behalf Of Daniel Goetz >>>>>>Sent: Thursday, July 27, 2006 3:05 AM >>>>>>To: MAPSERVER-USERS at LISTS.UMN.EDU >>>>>>Subject: [UMN_MAPSERVER-USERS] WMS and SRS >>>>>> >>>>>>Hi coummunity, >>>>>> >>>>>>I built up a littel WMS-server with umn-mapserver (local installation; >>>>>>ms4w 2.1). The "original" projection of the single Layers is alway >>>>>> >>>>>> >>>>>> >>>>>> >>>>epsg:31468 >>>> >>>> >>>> >>>> >>>>>>(these are cartesian Gau?-Kr?ger-coordiantes). So I set the >>>>>>PORJECTION-object of each LAYER and in the MAP-object to >>>>>> >>>>>> >>>>>> >>>>>> >>>>"init=epsg:31468". In the >>>> >>>> >>>> >>>> >>>>>>METADATA of the MAP-object as well as in the single LAYER-objects I >>>>>> >>>>>> >>>>>> >>>>>> >>>>defined >>>> >>>> >>>> >>>> >>>>>>"wms_srs" as "EPSG:31468" as well. For testing purpose I did some >>>>>>WMS-GetMap-Requests with "SRS=EPSG:31468" and everything went fine. >>>>>> >>>>>>But now I want to make my WMS-service more interchangeable, so I want >>>>>> >>>>>> >>to >> >> >>>>>>define some more SRSs in that the WMS should be able to be displayed. >>>>>> >>>>>> >>I >> >> >>>>>> >>>>>> >>>>>> >>>>>> >>>>want >>>> >>>> >>>> >>>> >>>>>>to make it possible to "transform" (don't know the exact word in >>>>>> >>>>>> >>>>>> >>>>>> >>>>english) >>>> >>>> >>>> >>>> >>>>>>the WMS from its original Projection to another SRS (e.g. WGS 84; >>>>>>EPSG:4326). In my opinion this should be possible by adding another >>>>>> >>>>>> >>>>>> >>>>>> >>>>epsg-code to the >>>> >>>> >>>> >>>> >>>>>>METADATA. So my METADATA (both in the MAP and in the LAYERs-objects) >>>>>> >>>>>> >>>>>> >>>>>> >>>>look >>>> >>>> >>>> >>>> >>>>>>like this: "wms_srs" "EPSG:31468 EPSG:4326". >>>>>> >>>>>>But now every time I change the SRS block in my WMS-GetMap-request >>>>>> >>>>>> >>from >> >> >>>>>>"SRS=EPSG:31468" to "SRS=EPSG:4326" mapserver returns a blank image. I >>>>>> >>>>>> >>>>>> >>>>>> >>>>even >>>> >>>> >>>> >>>> >>>>>>tried to set the BBOX to latlon-coordinates when using "SRS=EPSG:4326" >>>>>> >>>>>> >>>>>> >>>>>> >>>>but >>>> >>>> >>>> >>>> >>>>>>even this failed. I also testes other SRSs (both geographic ones and >>>>>> >>>>>> >>>>>> >>>>>> >>>>real >>>> >>>> >>>> >>>> >>>>>>projections) but with no success. >>>>>> >>>>>>Could anybody please give me some help or hints what to do and what >>>>>> >>>>>> >>went >> >> >>>>>>wrong and why did this happen? I would be very glad and thankful. >>>>>> >>>>>> >>Thank >> >> >>>>>> >>>>>> >>>>>> >>>>>> >>>>you >>>> >>>> >>>> >>>> >>>>>>so much. >>>>>> >>>>>> >>>>>>regards >>>>>> >>>>>> >>>>>>Daniel >>>>>> >>>>>> >>>>>>-- >>>>>> >>>>>> >>>>>>Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen! >>>>>>Ideal f?r Modem und ISDN: http://www.gmx.net/de/go/smartsurfer >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>> >>>>> >>>>> >>>>> >>>>-- >>>>Bart van den Eijnden >>>>OSGIS, Open Source GIS >>>>http://www.osgis.nl >>>> >>>> >>>> >>>> >>>> >>> >>> >>> >>> >>-- >>Bart van den Eijnden >>OSGIS, Open Source GIS >>http://www.osgis.nl >> >> > > > -- Bart van den Eijnden OSGIS, Open Source GIS http://www.osgis.nl From p.shapley at GMAIL.COM Fri Jul 28 02:13:55 2006 From: p.shapley at GMAIL.COM (Paul Shapley) Date: Fri, 28 Jul 2006 10:13:55 +0100 Subject: Tile4ms Message-ID: Hi, I'm trying to create a tile index using the 'Tile4ms' utility. After executing the initial command in DOS the processed text (named landline.shp) file displays a mass of characters. When you open the resulting 'landline_list.txt' file it is empty. Here is a copy of the command - long paths:- .....\data\landline.shp /b /s > landline_list.txt Any thoughts would be much appreciated. Regards, Paul Shapley -------------- next part -------------- An HTML attachment was scrubbed... URL: From mateusz at LOSKOT.NET Fri Jul 28 02:28:58 2006 From: mateusz at LOSKOT.NET (Mateusz Loskot) Date: Fri, 28 Jul 2006 11:28:58 +0200 Subject: Tile4ms In-Reply-To: Message-ID: Paul Shapley wrote: > Hi, > > I'm trying to create a tile index using the 'Tile4ms' utility. After > executing the initial command in DOS the processed text (named > landline.shp) file displays a mass of characters. When you open the > resulting 'landline_list.txt' file it is empty. Here is a copy of the > command - long paths:- > > > .....\data\landline.shp /b /s > landline_list.txt > > Any thoughts would be much appreciated. I'm not a MapServer guru, but according to the tile4ms manual you generates metafile from a set of input files, but not from single file, so following the manual: http://mapserver.gis.umn.edu/docs/reference/utilityreference/tile4ms it should be *.shp: dir /b /s *.shp > metafile.txt tile4ms metafile.txt tileindex Best regards -- Mateusz Loskot http://mateusz.loskot.net From szekerest at GMAIL.COM Fri Jul 28 02:31:53 2006 From: szekerest at GMAIL.COM (Tamas Szekeres) Date: Fri, 28 Jul 2006 11:31:53 +0200 Subject: .Net Script equivalent to asp script to filter mapserver requests In-Reply-To: <20060727215221.60565.qmail@web34209.mail.mud.yahoo.com> Message-ID: How about: http://www.nabble.com/WMS-Server-call-in-.net-tf1577953.html#a4295350 Tamas 2006/7/27, rock well : > > Hello all, i am trying to generate a map by requesting the map server using > like a proxy call to the server. I found this asp script in > http://mapserver.gis.umn.edu/docs/howto/wms_server which > does the same, when i used the same script in asp.net i found that .net > doesnt support xmlhttp, so i registered the required dlls for .net to > support xmlhttp, but still the script doesnt give me any output .... Are > there any changes to be made in this script to make it work in asp.net ... > > well i am sorry if this post is unclear, i could provide with more > information if you need .. > > Thanks for your effort and time ..... > kris > > > ________________________________ > Yahoo! Music Unlimited - Access over 1 million songs. Try it free. > > From madprof at GMX.CH Fri Jul 28 04:16:40 2006 From: madprof at GMX.CH (Daniel Goetz) Date: Fri, 28 Jul 2006 13:16:40 +0200 Subject: WMS and SRS In-Reply-To: <44C9D727.5020502@xs4all.nl> Message-ID: Hi Bart, thanks again. I put the images (including parameters of the reequests) on a website. Just follow this link: http://www.toe-net.de/WMS_SRS.html Perhaps now you can better understand what I mean and perhaps you have a solution for my problems. Thank you so much for your time, your thoughts and your ideas. Thank you. regards Daniel -------- Original-Nachricht -------- Datum: Fri, 28 Jul 2006 11:21:43 +0200 Von: "Bart van den Eijnden (OSGIS)" An: MAPSERVER-USERS at LISTS.UMN.EDU Betreff: Re: [UMN_MAPSERVER-USERS] WMS and SRS > Hi Daniel, > > you are right, SIZE is equivalent to WIDTH/HEIGHT in WMS. And EXTENT is > equivalent to BBOX. > > Are you able to send us some screendumps of what you are experiencing? > Or put them on a website and send the links? > > Best regards, > Bart > > Daniel Goetz wrote: > > >Hi Bart, > > > >thank you again for your help. > > > >I am sorry, but I think because of my limited skills in writing in > english you have misunderstood what I wanted to say. Sorry for that. > > > >I meant in my last email that the EXTENT in a mode=browse ("normal" > mapserver CGI request) is the equivalent to the BBOX-values in the > WMS-GetMap-request. And that SIZE in "normal" mapserver request is equivalent to > WIDTH/HEIGHT in WMS-GetMap-requests. Am I right? And the EXTENT-values and the > BBOX-values did not alter; neither in the WMS-request nor in the "normal" > mode=browse CGI mapserver-request. Same with SIZE and WIDTH/HEIGHT. And > nevertheless these values did not alter in the two different requests, the > returened reprojected maps differ (stretching). > > > > > > > > > > > >>I think the stretching behaviour (non square pixels) is specific to WMS > >>and won't happen in Mapserver CGI mode. > >> > >> > > > >It is the map of the "normal" mode=browse mapserver-request that seems to > be stretched compared to the not reprojected map. The reprojected map of > the WMS-GetMap-request looks similar/equal to the not reprojected map. > > > >But isn't it quiet normal that reprocetion causes some kind of stretching > and distortion? Please correct me if I am wrong. > > > > > >So thank you for your reply. And sorry for my bad english/description of > my problems. Thank you for furhter support in advance. > > > > > > > >regards > > > > > >Daniel > > > > > > > >-------- Original-Nachricht -------- > >Datum: Fri, 28 Jul 2006 10:52:39 +0200 > >Von: "Bart van den Eijnden (OSGIS)" > >An: Daniel Goetz > >Betreff: Re: [UMN_MAPSERVER-USERS] WMS and SRS > > > > > > > >>Hi Daniel, > >> > >>I think the stretching behaviour (non square pixels) is specific to WMS > >>and won't happen in Mapserver CGI mode. > >> > >>For WMS, the SIZE and EXTENT of the MAP file don't matter, since they > >>are specified in the request. > >> > >>The easiest is to test with a square image. So eg 400 x 400 pixels. > >> > >>Then make sure that MAXX-MINX equals MAXY-MINY > (BBOX=MINX,MINY,MAXX,MAXY). > >> > >>Best regards, > >>Bart > >> > >>Daniel Goetz wrote: > >> > >> > >> > >>>Hi Bart, > >>> > >>>thank you for your reply. > >>> > >>>But the extent in the mapfile is the same as the BBOX-values in the > >>> > >>> > >>WMS-request. And the SIZE in the MAP-object of the mapfile is the same > as in > >>WIDTH+HEIGHT in the WMS-request. And nevertheless the two "reprojected" > maps > >>differ in appearance (distortion). > >> > >> > >>>But you are right. I should check that the BBOX and the > >>> > >>> > >>WIDTH/HEIGHT-values have the same proportion. Do I also have to check > wheter SIZE and EXTENT > >>in the MAP-object have the same proportions as well? And how can I > measure > >>the distance between the vertices of my EXTENT and the distance between > >>the vertices of my BBOX? Any suggestion? > >> > >> > >>>Thank you for your help and hopefully your further ideas. Thank you. > >>> > >>> > >>>regards > >>> > >>> > >>>Daniel > >>> > >>> > >>>-------- Original-Nachricht -------- > >>>Datum: Fri, 28 Jul 2006 10:26:38 +0200 > >>>Von: "Bart van den Eijnden (OSGIS)" > >>>An: Daniel Goetz > >>>Betreff: Re: [UMN_MAPSERVER-USERS] WMS and SRS > >>> > >>> > >>> > >>> > >>> > >>>>Hi Daniel, > >>>> > >>>>please remember that if the ratio of your bbox and the ratio of your > >>>>width versus height in pixels, differs, the map will be stretched. > That > >>>>could explain some of the behaviour. You need to make sure that the > >>>>values in your WMS request have the same ratio. I don't know if this > is > >>>>the problem, but it could be a cause. > >>>> > >>>>Proj.4 has a utility to reproject. The proj utilities also come with > >>>>MS4W. See also: > >>>> > >>>>http://proj.maptools.org/man_cs2cs.html > >>>> > >>>>Best regards, > >>>>Bart > >>>> > >>>>Daniel Goetz wrote: > >>>> > >>>> > >>>> > >>>> > >>>> > >>>>>Hi, > >>>>> > >>>>>thank you Frank, Trond and Ed for your help. I tried to use > reporjected > >>>>> > >>>>> > >>>>> > >>>>> > >>>>coordinates as BBOX-values in my "new" WMS-GetMap-request > >>>> > >>>> > >>(SRS=WPSG:4326) > >> > >> > >>>>and it works now. I got the new reprojected coordinates out of the > >>>>GetCapabilities document (I took them out of the LatLonBoundingBox > >>>> > >>>> > >>paragraph in the > >> > >> > >>>>GetCapabilities document): > >>>> > >>>> > >>>> > >>>> > >>>>> > >>>>> VIEW_RWG_TBS > >>>>> RWG_TM_NR > >>>>> EPSG:31468 > >>>>> EPSG:4326 > >>>>> >>>>> > >>>>> > >>>>> > >>>>> > >>>>maxy="49.5441" /> > >>>> > >>>> > >>>> > >>>> > >>>>> >>>>> minx="4.42695e+006" miny="5.46647e+006" > >>>>> > >>>>> > >>>>> > >>>>> > >>>>maxx="4.44806e+006" maxy="5.48982e+006" /> > >>>> > >>>> > >>>> > >>>> > >>>>> > >>>>> > >>>>> > >>>>> > >>>>>But I have two further questions: > >>>>> > >>>>>When I do a WMS-GetMap-request in the "new" SRS (EPSG:4326) the map > >>>>> > >>>>> > >>>>> > >>>>> > >>>>maserver sends back does not vary form the map mapserver generates > when > >>>> > >>>> > >>sending > >> > >> > >>>>a GetMap-request in the "original" SRS (EPSG:31468). I mean there is > no > >>>>deformation/distortion noticeable. But when I do a "normal" mapserver > >>>>mode=browse-request in my simple pan and zoom template and tell > >>>> > >>>> > >>mapserver to > >> > >> > >>>>reproject the data in EPSG:4326 (I do that by putting the > >>>> > >>>> > >>PROJECTION-object in > >> > >> > >>>>the MAP-object of the .map-file to "init=epsg:4326" while the > >>>>PROJECTION-objects in the LAYER-objects are still in the "origninal" > >>>> > >>>> > >>"init=epsg:31468" > >> > >> > >>>>projection. Of course I change the EXTENT-parameters in the .map-file > >>>> > >>>> > >>too. Am > >> > >> > >>>>I doing right?) the returned map looks different >from the map > >>>> > >>>> > >>genereated > >> > >> > >>>>using the "original" projection. I mean that the reprojected map using > >>>>mode=browse looks deformed/distorted compared to the "original" not > >>>> > >>>> > >>reprojected > >> > >> > >>>>map. > >>>> > >>>> > >>>> > >>>> > >>>>>The question is now: Why do the two maps (the reprojected one I get > >>>>> > >>>>> > >>from > >> > >> > >>>>> > >>>>> > >>>>> > >>>>> > >>>>the WMS-GetMap-request and the reprojected map I get by a mode=browse > >>>>request) differ in their appearence (distortion) although I tell > >>>> > >>>> > >>mapserver in > >> > >> > >>>>both cases to reproject the map to "epsg:4326"? > >>>> > >>>> > >>>> > >>>> > >>>>>The secoond question is: As mentioned I got the "new" reprojeted > >>>>> > >>>>> > >>>>> > >>>>> > >>>>coordinates for BBOX-values out of the GetCapabilities document. But > is > >>>> > >>>> > >>there a > >> > >> > >>>>program that could do coordinate transformation for me, so that I am > >>>> > >>>> > >>able to > >> > >> > >>>>transform "epsg:31468" coordinates to "epsg:4326" coordinates? > >>>> > >>>> > >>>> > >>>> > >>>>>OK, that's it. Thak you again for your helpful hints. And would be > very > >>>>> > >>>>> > >>>>> > >>>>> > >>>>nice of you if you could help me further on with my problems/questions > >>>>elucidated in this email. Thank you so much. > >>>> > >>>> > >>>> > >>>> > >>>>>regards > >>>>> > >>>>>Daniel > >>>>> > >>>>> > >>>>>-------- Original-Nachricht -------- > >>>>>Datum: Thu, 27 Jul 2006 09:22:21 -0400 > >>>>>Von: Ed McNierney > >>>>>An: MAPSERVER-USERS at LISTS.UMN.EDU > >>>>>Betreff: Re: [UMN_MAPSERVER-USERS] WMS and SRS > >>>>> > >>>>> > >>>>> > >>>>> > >>>>> > >>>>> > >>>>> > >>>>>>Daniel - > >>>>>> > >>>>>>I think Frank's theory is likely to be correct, and that there is a > >>>>>>problem with the BBOX coordinates used in your new request. It > sounds > >>>>>> > >>>>>> > >>>>>> > >>>>>> > >>>>like the > >>>> > >>>> > >>>> > >>>> > >>>>>>changes you made are fine, although I think it is not necessary to > add > >>>>>> > >>>>>> > >>>>>> > >>>>>> > >>>>all > >>>> > >>>> > >>>> > >>>> > >>>>>>supported SRS systems to the metadata for each layer - just the > >>>>>> > >>>>>> > >>>>>> > >>>>>> > >>>>MAP-level > >>>> > >>>> > >>>> > >>>> > >>>>>>metadata should be all you need to do. > >>>>>> > >>>>>>Can you post the SRS= and BBOX= parameters you are using in your > >>>>>> > >>>>>> > >>>>>> > >>>>>> > >>>>original > >>>> > >>>> > >>>> > >>>> > >>>>>>epsg:31468 request and in the new epsg:4326 requests? > >>>>>> > >>>>>> - Ed > >>>>>> > >>>>>>Ed McNierney > >>>>>>President and Chief Mapmaker > >>>>>>TopoZone.com / Maps a la carte, Inc. > >>>>>>73 Princeton Street, Suite 305 > >>>>>>North Chelmsford, MA 01863 > >>>>>>ed at topozone.com > >>>>>>(978) 251-4242 > >>>>>> > >>>>>>-----Original Message----- > >>>>>>From: UMN MapServer Users List > [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] > >>>>>> > >>>>>> > >>On > >> > >> > >>>>>>Behalf Of Daniel Goetz > >>>>>>Sent: Thursday, July 27, 2006 3:05 AM > >>>>>>To: MAPSERVER-USERS at LISTS.UMN.EDU > >>>>>>Subject: [UMN_MAPSERVER-USERS] WMS and SRS > >>>>>> > >>>>>>Hi coummunity, > >>>>>> > >>>>>>I built up a littel WMS-server with umn-mapserver (local > installation; > >>>>>>ms4w 2.1). The "original" projection of the single Layers is alway > >>>>>> > >>>>>> > >>>>>> > >>>>>> > >>>>epsg:31468 > >>>> > >>>> > >>>> > >>>> > >>>>>>(these are cartesian Gau?-Kr?ger-coordiantes). So I set the > >>>>>>PORJECTION-object of each LAYER and in the MAP-object to > >>>>>> > >>>>>> > >>>>>> > >>>>>> > >>>>"init=epsg:31468". In the > >>>> > >>>> > >>>> > >>>> > >>>>>>METADATA of the MAP-object as well as in the single LAYER-objects I > >>>>>> > >>>>>> > >>>>>> > >>>>>> > >>>>defined > >>>> > >>>> > >>>> > >>>> > >>>>>>"wms_srs" as "EPSG:31468" as well. For testing purpose I did some > >>>>>>WMS-GetMap-Requests with "SRS=EPSG:31468" and everything went fine. > >>>>>> > >>>>>>But now I want to make my WMS-service more interchangeable, so I > want > >>>>>> > >>>>>> > >>to > >> > >> > >>>>>>define some more SRSs in that the WMS should be able to be > displayed. > >>>>>> > >>>>>> > >>I > >> > >> > >>>>>> > >>>>>> > >>>>>> > >>>>>> > >>>>want > >>>> > >>>> > >>>> > >>>> > >>>>>>to make it possible to "transform" (don't know the exact word in > >>>>>> > >>>>>> > >>>>>> > >>>>>> > >>>>english) > >>>> > >>>> > >>>> > >>>> > >>>>>>the WMS from its original Projection to another SRS (e.g. WGS 84; > >>>>>>EPSG:4326). In my opinion this should be possible by adding another > >>>>>> > >>>>>> > >>>>>> > >>>>>> > >>>>epsg-code to the > >>>> > >>>> > >>>> > >>>> > >>>>>>METADATA. So my METADATA (both in the MAP and in the LAYERs-objects) > >>>>>> > >>>>>> > >>>>>> > >>>>>> > >>>>look > >>>> > >>>> > >>>> > >>>> > >>>>>>like this: "wms_srs" "EPSG:31468 EPSG:4326". > >>>>>> > >>>>>>But now every time I change the SRS block in my WMS-GetMap-request > >>>>>> > >>>>>> > >>from > >> > >> > >>>>>>"SRS=EPSG:31468" to "SRS=EPSG:4326" mapserver returns a blank image. > I > >>>>>> > >>>>>> > >>>>>> > >>>>>> > >>>>even > >>>> > >>>> > >>>> > >>>> > >>>>>>tried to set the BBOX to latlon-coordinates when using > "SRS=EPSG:4326" > >>>>>> > >>>>>> > >>>>>> > >>>>>> > >>>>but > >>>> > >>>> > >>>> > >>>> > >>>>>>even this failed. I also testes other SRSs (both geographic ones and > >>>>>> > >>>>>> > >>>>>> > >>>>>> > >>>>real > >>>> > >>>> > >>>> > >>>> > >>>>>>projections) but with no success. > >>>>>> > >>>>>>Could anybody please give me some help or hints what to do and what > >>>>>> > >>>>>> > >>went > >> > >> > >>>>>>wrong and why did this happen? I would be very glad and thankful. > >>>>>> > >>>>>> > >>Thank > >> > >> > >>>>>> > >>>>>> > >>>>>> > >>>>>> > >>>>you > >>>> > >>>> > >>>> > >>>> > >>>>>>so much. > >>>>>> > >>>>>> > >>>>>>regards > >>>>>> > >>>>>> > >>>>>>Daniel > >>>>>> > >>>>>> > >>>>>>-- > >>>>>> > >>>>>> > >>>>>>Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen! > >>>>>>Ideal f?r Modem und ISDN: http://www.gmx.net/de/go/smartsurfer > >>>>>> > >>>>>> > >>>>>> > >>>>>> > >>>>>> > >>>>>> > >>>>> > >>>>> > >>>>> > >>>>> > >>>>-- > >>>>Bart van den Eijnden > >>>>OSGIS, Open Source GIS > >>>>http://www.osgis.nl > >>>> > >>>> > >>>> > >>>> > >>>> > >>> > >>> > >>> > >>> > >>-- > >>Bart van den Eijnden > >>OSGIS, Open Source GIS > >>http://www.osgis.nl > >> > >> > > > > > > > > > -- > Bart van den Eijnden > OSGIS, Open Source GIS > http://www.osgis.nl -- "Feel free" ? 10 GB Mailbox, 100 FreeSMS/Monat ... Jetzt GMX TopMail testen: http://www.gmx.net/de/go/topmail From bart_doggers at YAHOO.COM Fri Jul 28 05:45:09 2006 From: bart_doggers at YAHOO.COM (Albert Anderson) Date: Fri, 28 Jul 2006 05:45:09 -0700 Subject: how do I get rid of clicking the button and loading it my html? Message-ID: Hi List, My question is how do I get my page to load auto like without using initialzing button. I dont want to use the button. I just want to page just load. Is there a way around this? I'm using a linux machine with mapsever 4. Could someone help me? Thanks, Albert --------------------------------- Do you Yahoo!? Next-gen email? Have it all with the all-new Yahoo! Mail Beta. -------------- next part -------------- An HTML attachment was scrubbed... URL: From piero.cavalieri at HEIDI.IT Fri Jul 28 05:40:43 2006 From: piero.cavalieri at HEIDI.IT (Piero Cavalieri) Date: Fri, 28 Jul 2006 14:40:43 +0200 Subject: .Net Script equivalent to asp script to filter mapserver requests In-Reply-To: Message-ID: And on client side, something like this (this is only a piece): function retrieveMap() { var layersString = getLayers(); baseUrl = document.getElementById("baseUrl").value; imgext = document.getElementById("imgext").value; //existing inline image imgbox = document.getElementById("imgbox").value; //setted by dbox imgxy = document.getElementById("imgxy").value; //setted by dbox //build url queryString = baseUrl + layersString + "&mode=browse" + zoomStr +"&imgext=" + imgext + "&imgbox=" + imgbox + "&imgxy=" + imgxy; if(jsDebug == 1) alert(queryString); mapsrvNet.AjaxMethods.getMap(queryString, retrieveMapImage_callback); } function retrieveMapImage_callback(res) { if(jsDebug == 1) alert("\nres.error: " + res.error +"\nres.value: "+res.value+"\nType of res.value: "+typeof(res.value)); try { if(typeof(res.value) == 'object' && res.error == null) { //immagini imgMapOff.src = res.value.mapImgUrl; imgRefOff.src = res.value.referenceMap; imgScalebarOff.src = res.value.scalebar; if(jsDebug == 1) alert(imgMapOff.src+"\n"+imgRefOff.src+"\n"+imgScalebarOff.src); //hidden variables document.getElementById("mapwidth").value = res.value.mapwidth; document.getElementById("mapheight").value = res.value.mapheight; document.getElementById("imgxy").value = res.value.imgxy; document.getElementById("imgext").value = res.value.imgext; document.getElementById("legend").innerHTML = res.value.legend; document.getElementById("referenceMap").value = res.value.referenceMap; if(jsDebug == 1) alert(res.value.legend); setTimeout("updateImg()",swapMapImageTime); } else { throw res.error.toString(); } } catch (exception) { this.status = "----------- PROBLEMS RETRIEVING MAP ! -------------"; if(jsDebug == 1) { alert(exception); } } } You could work in similar ways for query mode, etc. This was build using AjaxPro (http://www.codeplex.com/Wiki/View.aspx?ProjectName=AjaxProStarterKit). Obviously this is only one possible way to work with MapserverCGI. Ciao Piero Tamas Szekeres ha scritto: > How about: > > http://www.nabble.com/WMS-Server-call-in-.net-tf1577953.html#a4295350 > > Tamas > > > > 2006/7/27, rock well : >> >> Hello all, i am trying to generate a map by requesting the map server >> using >> like a proxy call to the server. I found this asp script in >> http://mapserver.gis.umn.edu/docs/howto/wms_server which >> does the same, when i used the same script in asp.net i found that .net >> doesnt support xmlhttp, so i registered the required dlls for .net to >> support xmlhttp, but still the script doesnt give me any output .... Are >> there any changes to be made in this script to make it work in >> asp.net ... >> >> well i am sorry if this post is unclear, i could provide with more >> information if you need .. >> >> Thanks for your effort and time ..... >> kris >> >> >> ________________________________ >> Yahoo! Music Unlimited - Access over 1 million songs. Try it free. >> >> > -- Il contenuto di questo messaggio e' confidenziale e la lettura non autorizzata dello stesso viola i diritti di privacy del mittente e del destinatario. Se avete ricevuto questo messaggio per errore siete pregati di rimuoverlo dal Vostro sistema. From mljacks2 at HOTMAIL.COM Fri Jul 28 07:48:58 2006 From: mljacks2 at HOTMAIL.COM (M.L. Jackson) Date: Fri, 28 Jul 2006 09:48:58 -0500 Subject: Map File Problem? Message-ID: Hi. I am running mapserver 4.6.0-beta1 with Java Mapscript on Tomcat. While working on my project, I have encountered a weird series of errors. Everytime I restart the server and try to run my application, I get an error indicating what appears to be any random line in the map file. Most of the time the errors generated make absolutely no sense. Among the errors generated are "projection not named" and "major axis or radius = 0 or not given". The other errors are generally any line number with a piece of the map file indicated. Thanks for your replies. _________________________________________________________________ FREE pop-up blocking with the new MSN Toolbar ? get it now! http://toolbar.msn.click-url.com/go/onm00200415ave/direct/01/ From jmckenna at DMSOLUTIONS.CA Fri Jul 28 07:55:45 2006 From: jmckenna at DMSOLUTIONS.CA (Jeff McKenna) Date: Fri, 28 Jul 2006 10:55:45 -0400 Subject: Map File Problem? In-Reply-To: Message-ID: I'm not sure about your random problem...but you might want to check the errors section of the mapserver documentation page, and battle those errors one by one: http://mapserver.gis.umn.edu/docs/error jeff M.L. Jackson wrote: > Hi. I am running mapserver 4.6.0-beta1 with Java Mapscript on Tomcat. > While working on my project, I have encountered a weird series of > errors. Everytime I restart the server and try to run my application, I > get an error indicating what appears to be any random line in the map > file. Most of the time the errors generated make absolutely no sense. > Among the errors generated are "projection not named" and "major axis > or radius = 0 or not given". The other errors are generally any line > number with a piece of the map file indicated. Thanks for your replies. > > _________________________________________________________________ -- Jeff McKenna DM Solutions Group Inc. http://www.dmsolutions.ca From mljacks2 at HOTMAIL.COM Fri Jul 28 08:40:57 2006 From: mljacks2 at HOTMAIL.COM (M.L. Jackson) Date: Fri, 28 Jul 2006 10:40:57 -0500 Subject: Map File Problem? In-Reply-To: <44CA2571.4050500@dmsolutions.ca> Message-ID: The thing is.......the errors occur at random. If the errors weren't related to some central problem, then the same error should keep occuring until I fix it before any other errors are displayed. Instead each time the server is restarted and the application is run a new error supposedly in the map file is displayed. >From: Jeff McKenna >Reply-To: Jeff McKenna >To: MAPSERVER-USERS at LISTS.UMN.EDU >Subject: Re: [UMN_MAPSERVER-USERS] Map File Problem? >Date: Fri, 28 Jul 2006 10:55:45 -0400 > >I'm not sure about your random problem...but you might want to check the >errors section of the mapserver documentation page, and battle those errors >one by one: http://mapserver.gis.umn.edu/docs/error > >jeff > > >M.L. Jackson wrote: >>Hi. I am running mapserver 4.6.0-beta1 with Java Mapscript on Tomcat. >>While working on my project, I have encountered a weird series of errors. >>Everytime I restart the server and try to run my application, I get an >>error indicating what appears to be any random line in the map file. >>Most of the time the errors generated make absolutely no sense. Among the >>errors generated are "projection not named" and "major axis or radius = 0 >>or not given". The other errors are generally any line number with a piece >>of the map file indicated. Thanks for your replies. >> >>_________________________________________________________________ > > > >-- >Jeff McKenna >DM Solutions Group Inc. >http://www.dmsolutions.ca _________________________________________________________________ Don?t just search. Find. Check out the new MSN Search! http://search.msn.click-url.com/go/onm00200636ave/direct/01/ From jmckenna at DMSOLUTIONS.CA Fri Jul 28 08:46:39 2006 From: jmckenna at DMSOLUTIONS.CA (Jeff McKenna) Date: Fri, 28 Jul 2006 11:46:39 -0400 Subject: Map File Problem? In-Reply-To: Message-ID: have u tried using the shp2img utility, to see if your mapfile is ok? I'd first make sure your mapfile is fine, then worry about your application. jeff M.L. Jackson wrote: > The thing is.......the errors occur at random. If the errors weren't > related to some central problem, then the same error should keep > occuring until I fix it before any other errors are displayed. Instead > each time the server is restarted and the application is run a new error > supposedly in the map file is displayed. > > >> From: Jeff McKenna >> Reply-To: Jeff McKenna >> To: MAPSERVER-USERS at LISTS.UMN.EDU >> Subject: Re: [UMN_MAPSERVER-USERS] Map File Problem? >> Date: Fri, 28 Jul 2006 10:55:45 -0400 >> >> I'm not sure about your random problem...but you might want to check >> the errors section of the mapserver documentation page, and battle >> those errors one by one: http://mapserver.gis.umn.edu/docs/error >> >> jeff >> >> >> M.L. Jackson wrote: >>> Hi. I am running mapserver 4.6.0-beta1 with Java Mapscript on >>> Tomcat. While working on my project, I have encountered a weird >>> series of errors. Everytime I restart the server and try to run my >>> application, I get an error indicating what appears to be any random >>> line in the map file. Most of the time the errors generated make >>> absolutely no sense. Among the errors generated are "projection not >>> named" and "major axis or radius = 0 or not given". The other errors >>> are generally any line number with a piece of the map file >>> indicated. Thanks for your replies. -- Jeff McKenna DM Solutions Group Inc. http://www.dmsolutions.ca From mljacks2 at HOTMAIL.COM Fri Jul 28 09:59:47 2006 From: mljacks2 at HOTMAIL.COM (M.L. Jackson) Date: Fri, 28 Jul 2006 11:59:47 -0500 Subject: Map File Problem? In-Reply-To: <44CA315F.3080704@dmsolutions.ca> Message-ID: Where is the shp2img utility? Does it come with mapserver or do you have to download it? Sorry for the newbie questions but thanks for your help. >From: Jeff McKenna >Reply-To: Jeff McKenna >To: MAPSERVER-USERS at LISTS.UMN.EDU >Subject: Re: [UMN_MAPSERVER-USERS] Map File Problem? >Date: Fri, 28 Jul 2006 11:46:39 -0400 > >have u tried using the shp2img utility, to see if your mapfile is ok? I'd >first make sure your mapfile is fine, then worry about your application. > >jeff > > > > >M.L. Jackson wrote: >>The thing is.......the errors occur at random. If the errors weren't >>related to some central problem, then the same error should keep occuring >>until I fix it before any other errors are displayed. Instead each time >>the server is restarted and the application is run a new error supposedly >>in the map file is displayed. >> >> >>>From: Jeff McKenna >>>Reply-To: Jeff McKenna >>>To: MAPSERVER-USERS at LISTS.UMN.EDU >>>Subject: Re: [UMN_MAPSERVER-USERS] Map File Problem? >>>Date: Fri, 28 Jul 2006 10:55:45 -0400 >>> >>>I'm not sure about your random problem...but you might want to check the >>>errors section of the mapserver documentation page, and battle those >>>errors one by one: http://mapserver.gis.umn.edu/docs/error >>> >>>jeff >>> >>> >>>M.L. Jackson wrote: >>>>Hi. I am running mapserver 4.6.0-beta1 with Java Mapscript on Tomcat. >>>>While working on my project, I have encountered a weird series of >>>>errors. Everytime I restart the server and try to run my application, I >>>>get an error indicating what appears to be any random line in the map >>>>file. Most of the time the errors generated make absolutely no sense. >>>>Among the errors generated are "projection not named" and "major axis >>>>or radius = 0 or not given". The other errors are generally any line >>>>number with a piece of the map file indicated. Thanks for your replies. > > >-- >Jeff McKenna >DM Solutions Group Inc. >http://www.dmsolutions.ca _________________________________________________________________ Don?t just search. Find. Check out the new MSN Search! http://search.msn.click-url.com/go/onm00200636ave/direct/01/ From rjames57 at YAHOO.COM Fri Jul 28 10:16:43 2006 From: rjames57 at YAHOO.COM (Randy James) Date: Fri, 28 Jul 2006 10:16:43 -0700 Subject: Map File Problem? In-Reply-To: Message-ID: The shp2img utility comes with mapserver. Could the problem be in your http server rather than Mapserver? Or even a client side browser problem? Randy "M.L. Jackson" wrote: Where is the shp2img utility? Does it come with mapserver or do you have to download it? Sorry for the newbie questions but thanks for your help. >From: Jeff McKenna >Reply-To: Jeff McKenna >To: MAPSERVER-USERS at LISTS.UMN.EDU >Subject: Re: [UMN_MAPSERVER-USERS] Map File Problem? >Date: Fri, 28 Jul 2006 11:46:39 -0400 > >have u tried using the shp2img utility, to see if your mapfile is ok? I'd >first make sure your mapfile is fine, then worry about your application. > >jeff > > > > >M.L. Jackson wrote: >>The thing is.......the errors occur at random. If the errors weren't >>related to some central problem, then the same error should keep occuring >>until I fix it before any other errors are displayed. Instead each time >>the server is restarted and the application is run a new error supposedly >>in the map file is displayed. >> >> >>>From: Jeff McKenna >>>Reply-To: Jeff McKenna >>>To: MAPSERVER-USERS at LISTS.UMN.EDU >>>Subject: Re: [UMN_MAPSERVER-USERS] Map File Problem? >>>Date: Fri, 28 Jul 2006 10:55:45 -0400 >>> >>>I'm not sure about your random problem...but you might want to check the >>>errors section of the mapserver documentation page, and battle those >>>errors one by one: http://mapserver.gis.umn.edu/docs/error >>> >>>jeff >>> >>> >>>M.L. Jackson wrote: >>>>Hi. I am running mapserver 4.6.0-beta1 with Java Mapscript on Tomcat. >>>>While working on my project, I have encountered a weird series of >>>>errors. Everytime I restart the server and try to run my application, I >>>>get an error indicating what appears to be any random line in the map >>>>file. Most of the time the errors generated make absolutely no sense. >>>>Among the errors generated are "projection not named" and "major axis >>>>or radius = 0 or not given". The other errors are generally any line >>>>number with a piece of the map file indicated. Thanks for your replies. > > >-- >Jeff McKenna >DM Solutions Group Inc. >http://www.dmsolutions.ca _________________________________________________________________ Don?t just search. Find. Check out the new MSN Search! http://search.msn.click-url.com/go/onm00200636ave/direct/01/ --------------------------------- Yahoo! Music Unlimited - Access over 1 million songs.Try it free. -------------- next part -------------- An HTML attachment was scrubbed... URL: From nbarker at ITTVIS.COM Fri Jul 28 11:35:25 2006 From: nbarker at ITTVIS.COM (Norman Barker) Date: Fri, 28 Jul 2006 19:35:25 +0100 Subject: NetCDF WCS python script Message-ID: Hi, this isn't really suitable to go on the WCS how to (which uses Steve Lime's perl script as an example), but I have pasted a below a python script that creates mapserver time index files var1index.shp, var2index.shp etc., for the netCDF driver in GDAL with subdatasets. The script is crude (it was hacked quickly), hopefully someone will find it useful. The met community (as a result of GALEON) seem keen to host netCDF WCSs. Norman # Create index shapefile # derived from example at http://zcologia.com/news/categorylist_html?cat_id=2 - Sean Gillies import ogr import os import glob import gdal from time import strftime, strptime for var in ['u','v']: output = var + 'index.shp' # Create the Shapefile driver = ogr.GetDriverByName('ESRI Shapefile') if os.path.exists(output): driver.DeleteDataSource(output) index_shp = driver.CreateDataSource(output) index = index_shp.CreateLayer('quikscat', geom_type=ogr.wkbPolygon) fd = ogr.FieldDefn('LOCATION', ogr.OFTString) fd.SetWidth(100) index.CreateField(fd) fdt = ogr.FieldDefn('TIME', ogr.OFTString) fdt.SetWidth(30) index.CreateField(fdt) # Loop over a number of georeferenced images # The data files are 4 deep files = glob.glob('*/*/*/*.nc') times = "" for file in files: # Get georeferencing and size of imagery # read geoinfo from var component, missing geo-information at top level subfilename = "NETCDF:" + "\"" + os.path.abspath(file) + "\"" + ":" + var; dataset = gdal.Open(subfilename) g = dataset.GetGeoTransform() pixels = dataset.RasterXSize lines = dataset.RasterYSize minx = g[0] maxx = minx + pixels * g[1] maxy = g[3] miny = maxy + lines * g[5] # append to the 'index' layer wkt = 'POLYGON ((%f %f, %f %f, %f %f, %f %f, %f %f))' \ % (minx, miny, minx, maxy, maxx, maxy, maxx, miny, minx, miny) g = ogr.CreateGeometryFromWkt(wkt) # calculate the date string, parse the ordinal date first length = len(file) dateStr = file[length - 12: length - 3] date = strptime(dateStr, "%Y%j%H") frmtDate = strftime("%Y-%m-%dT%H", date) times += "," + frmtDate f = ogr.Feature(feature_def=index.GetLayerDefn()) f.SetField(0, subfilename) f.SetField(1, frmtDate) f.SetGeometryDirectly(g) index.CreateFeature(f) f.Destroy() # destroy index_shp to flush and close index_shp.Destroy() # print out times as they are useful for mapfile print "TIMES VAR: " + var print times[1:] -------------- next part -------------- An HTML attachment was scrubbed... URL: From mljacks2 at HOTMAIL.COM Fri Jul 28 11:42:21 2006 From: mljacks2 at HOTMAIL.COM (M.L. Jackson) Date: Fri, 28 Jul 2006 13:42:21 -0500 Subject: Map File Problem? In-Reply-To: <20060728171643.79764.qmail@web30311.mail.mud.yahoo.com> Message-ID: I think that the problem is not client side at all. The errors generated appear to come directly from the server. It could be the http server (Apache Tomcat) because I've also had deployment issues lately which I think I have resolved. I'm just really not sure at all about the errors. I guess I will have some trial and error debugging to do. I will also try the shp2img utility. Thanks. :-) Any other suggestions would be great as well. >From: Randy James >Reply-To: Randy James >To: MAPSERVER-USERS at LISTS.UMN.EDU >Subject: Re: [UMN_MAPSERVER-USERS] Map File Problem? >Date: Fri, 28 Jul 2006 10:16:43 -0700 > >The shp2img utility comes with mapserver. Could the problem be in your http >server rather than Mapserver? Or even a client side browser problem? > > Randy > > >"M.L. Jackson" wrote: > Where is the shp2img utility? Does it come with mapserver or do you have >to >download it? Sorry for the newbie questions but thanks for your help. > > >From: Jeff McKenna > >Reply-To: Jeff McKenna > >To: MAPSERVER-USERS at LISTS.UMN.EDU > >Subject: Re: [UMN_MAPSERVER-USERS] Map File Problem? > >Date: Fri, 28 Jul 2006 11:46:39 -0400 > > > >have u tried using the shp2img utility, to see if your mapfile is ok? I'd > >first make sure your mapfile is fine, then worry about your application. > > > >jeff > > > > > > > > > >M.L. Jackson wrote: > >>The thing is.......the errors occur at random. If the errors weren't > >>related to some central problem, then the same error should keep >occuring > >>until I fix it before any other errors are displayed. Instead each time > >>the server is restarted and the application is run a new error >supposedly > >>in the map file is displayed. > >> > >> > >>>From: Jeff McKenna > >>>Reply-To: Jeff McKenna > >>>To: MAPSERVER-USERS at LISTS.UMN.EDU > >>>Subject: Re: [UMN_MAPSERVER-USERS] Map File Problem? > >>>Date: Fri, 28 Jul 2006 10:55:45 -0400 > >>> > >>>I'm not sure about your random problem...but you might want to check >the > >>>errors section of the mapserver documentation page, and battle those > >>>errors one by one: http://mapserver.gis.umn.edu/docs/error > >>> > >>>jeff > >>> > >>> > >>>M.L. Jackson wrote: > >>>>Hi. I am running mapserver 4.6.0-beta1 with Java Mapscript on Tomcat. > >>>>While working on my project, I have encountered a weird series of > >>>>errors. Everytime I restart the server and try to run my application, >I > >>>>get an error indicating what appears to be any random line in the map > >>>>file. Most of the time the errors generated make absolutely no sense. > >>>>Among the errors generated are "projection not named" and "major axis > >>>>or radius = 0 or not given". The other errors are generally any line > >>>>number with a piece of the map file indicated. Thanks for your >replies. > > > > > >-- > >Jeff McKenna > >DM Solutions Group Inc. > >http://www.dmsolutions.ca > >_________________________________________________________________ >Don?t just search. Find. Check out the new MSN Search! >http://search.msn.click-url.com/go/onm00200636ave/direct/01/ > > > >--------------------------------- >Yahoo! Music Unlimited - Access over 1 million songs.Try it free. _________________________________________________________________ Express yourself instantly with MSN Messenger! Download today - it's FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/ From tkirstine at JDBARNES.COM Fri Jul 28 13:11:23 2006 From: tkirstine at JDBARNES.COM (Travis Kirstine GIS Tech) Date: Fri, 28 Jul 2006 16:11:23 -0400 Subject: Symbol scaling based on labels Message-ID: Is it possible to scale symbols (png) based on text labels. I have a highway layer I would like to label using text with a png image my problem is that label are not consistant in length ranging from 5 char to 15 char. Travis From rockwell_001 at YAHOO.COM Fri Jul 28 15:53:26 2006 From: rockwell_001 at YAHOO.COM (rock well) Date: Fri, 28 Jul 2006 15:53:26 -0700 Subject: .Net Script equivalent to asp script to filter mapserver requests In-Reply-To: <44CA05CB.5040800@heidi.it> Message-ID: Thanks for your reply guys, i am able to do what i want ... kris Piero Cavalieri wrote: And on client side, something like this (this is only a piece): function retrieveMap() { var layersString = getLayers(); baseUrl = document.getElementById("baseUrl").value; imgext = document.getElementById("imgext").value; //existing inline image imgbox = document.getElementById("imgbox").value; //setted by dbox imgxy = document.getElementById("imgxy").value; //setted by dbox //build url queryString = baseUrl + layersString + "&mode=browse" + zoomStr +"&imgext=" + imgext + "&imgbox=" + imgbox + "&imgxy=" + imgxy; if(jsDebug == 1) alert(queryString); mapsrvNet.AjaxMethods.getMap(queryString, retrieveMapImage_callback); } function retrieveMapImage_callback(res) { if(jsDebug == 1) alert("\nres.error: " + res.error +"\nres.value: "+res.value+"\nType of res.value: "+typeof(res.value)); try { if(typeof(res.value) == 'object' && res.error == null) { //immagini imgMapOff.src = res.value.mapImgUrl; imgRefOff.src = res.value.referenceMap; imgScalebarOff.src = res.value.scalebar; if(jsDebug == 1) alert(imgMapOff.src+"\n"+imgRefOff.src+"\n"+imgScalebarOff.src); //hidden variables document.getElementById("mapwidth").value = res.value.mapwidth; document.getElementById("mapheight").value = res.value.mapheight; document.getElementById("imgxy").value = res.value.imgxy; document.getElementById("imgext").value = res.value.imgext; document.getElementById("legend").innerHTML = res.value.legend; document.getElementById("referenceMap").value = res.value.referenceMap; if(jsDebug == 1) alert(res.value.legend); setTimeout("updateImg()",swapMapImageTime); } else { throw res.error.toString(); } } catch (exception) { this.status = "----------- PROBLEMS RETRIEVING MAP ! -------------"; if(jsDebug == 1) { alert(exception); } } } You could work in similar ways for query mode, etc. This was build using AjaxPro (http://www.codeplex.com/Wiki/View.aspx?ProjectName=AjaxProStarterKit). Obviously this is only one possible way to work with MapserverCGI. Ciao Piero Tamas Szekeres ha scritto: > How about: > > http://www.nabble.com/WMS-Server-call-in-.net-tf1577953.html#a4295350 > > Tamas > > > > 2006/7/27, rock well : >> >> Hello all, i am trying to generate a map by requesting the map server >> using >> like a proxy call to the server. I found this asp script in >> http://mapserver.gis.umn.edu/docs/howto/wms_server which >> does the same, when i used the same script in asp.net i found that .net >> doesnt support xmlhttp, so i registered the required dlls for .net to >> support xmlhttp, but still the script doesnt give me any output .... Are >> there any changes to be made in this script to make it work in >> asp.net ... >> >> well i am sorry if this post is unclear, i could provide with more >> information if you need .. >> >> Thanks for your effort and time ..... >> kris >> >> >> ________________________________ >> Yahoo! Music Unlimited - Access over 1 million songs. Try it free. >> >> > -- Il contenuto di questo messaggio e' confidenziale e la lettura non autorizzata dello stesso viola i diritti di privacy del mittente e del destinatario. Se avete ricevuto questo messaggio per errore siete pregati di rimuoverlo dal Vostro sistema. --------------------------------- Groups are talking. We´re listening. Check out the handy changes to Yahoo! Groups. -------------- next part -------------- An HTML attachment was scrubbed... URL: From rockwell_001 at YAHOO.COM Fri Jul 28 16:03:57 2006 From: rockwell_001 at YAHOO.COM (rock well) Date: Fri, 28 Jul 2006 16:03:57 -0700 Subject: CGI Qlayer,Qstring variables usage In-Reply-To: <6246727221874A4FB8D3F9BBC37D9BD5FB07EA@s-sp22.pca.state.mn.us> Message-ID: Hi all, i got this working to query a layer and am able to display the result too ... the url looks like http://localhost/mapserv.exe?MODE=map&MAP=c:/Inetpub/states.map&LAYERS=states&filter_id=SD but what i am trying now is to pass the projection id in the url, but i guess mapserver doesnt support this form of variable substitution. Is there anyother way to pass the projection id from the url ... Thanks for your effort and time .. kris "Fawcett, David" wrote: Kris, This may not quite work, but it should be closer. Try something like: http://pathtomapserv.exe?MODE=itemnquerymap&LAYERS=layer1&QLAYER=layer1&QITEM=colname&QString=('[colname]'='value') David. -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of rock well Sent: Thursday, July 20, 2006 5:49 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] CGI Qlayer,Qstring variables usage Hello all, I was trying to query one of the layers from a shape file in the url, i am used map as the mode and gave the layer name for Qlayer, column name for Qitem and QString. Part of the URL looks like http://pathtomapserv.exe?MODE=map&LAYERS=layer1&QLAYER=layer1&QITEM=colname&QString=("colname=value") the map is displayed but it didnt filter the layer with the given querystring variables .... Is there something missing, can anyone suggest with something ... Thanks for your effort and time .... kris --------------------------------- Do you Yahoo!? Next-gen email? Have it all with the all-new Yahoo! Mail Beta. --------------------------------- Yahoo! Messenger with Voice. Make PC-to-Phone Calls to the US (and 30+ countries) for 2?/min or less. -------------- next part -------------- An HTML attachment was scrubbed... URL: From joel at RHINOSYSTEMSINC.COM Fri Jul 28 17:29:43 2006 From: joel at RHINOSYSTEMSINC.COM (Joel Thompson) Date: Fri, 28 Jul 2006 17:29:43 -0700 Subject: map gps coordinates with CGI/ (java or Perl) In-Reply-To: <44C92CDF.8020504@rhinosystemsinc.com> Message-ID: Hi Guys - sorry to bug you again, but can someone give me some general direction? 1) should I try to manipulate the map file directly through the CGI env? If so, what would a sample map file look like to that showed, say Cities and the lat/lon coordinates that I provide to show a route...? 2) Or do I have to use CGI (perl, php...etc.) w/ its API into the MapScript to execute this some how? Not sure at all how to do this, so a simple sample would be very helpful. 3) or is there some other CGI type tools that does this for me already? IE. Just pass in a list of lat/lon pairs and it would map it out for me? Thanks for you help... I really appreciate it, Joel Joel Thompson wrote: > > Hello, > > I'd like to map GPS lat/long coordinates dynamically through CGI > (preferred JAVA,perl, php, in that order) - I am new to MapServer... > Can you help me to get in the right direction with this? is there any > add-on tools that do this? or is is just done through the .map w/ html > template architecture... where the CGI is used to create the HTML file??? > Any samples would be nice... Thanks in advanced. > > -Joel From punkish at EIDESIS.ORG Fri Jul 28 19:28:55 2006 From: punkish at EIDESIS.ORG (P Kishor) Date: Fri, 28 Jul 2006 21:28:55 -0500 Subject: map gps coordinates with CGI/ (java or Perl) In-Reply-To: <44CAABF7.2050104@rhinosystemsinc.com> Message-ID: Joel, I don't have a specific suggestion for you, but I offer the following to think about... You asked -- > > I'd like to map GPS lat/long coordinates dynamically through CGI First, what does "dynamically" mean? You will have to somehow transfer the lon/lat from the GPS to the computer that hosts MapServer. So, that is your first task. Then you will have to convert the lon/lat into x,y point features that MapServer can read. That is your second task. Then you will have to create an web app that refreshes every few seconds in order to be qualified as "dynamically." That is your final task. Your best bet might be to send the GPS stream into a PostGIS database, and set up a MapServer map file that reads that data source. Write an Ajax-y app that refreshes the map without touching the rest of the cruft, and you have a dynamic app. When you get it all hooked up and working, I would love to see it and happily plagiarize it ;-). Better yet, you can write up a nice how-to, and attach your app for the rest of us to benefit. Seriously, search the list archives. If I recall correctly, this kind of stuff has been asked, and done before. On 7/28/06, Joel Thompson wrote: > Hi Guys - sorry to bug you again, but can someone give me some general > direction? > > 1) should I try to manipulate the map file directly through the CGI env? > If so, what would a sample map file look like to that showed, say Cities > and the lat/lon coordinates that I provide to show a route...? > > 2) Or do I have to use CGI (perl, php...etc.) w/ its API into the > MapScript to execute this some how? Not sure at all how to do this, so a > simple sample would be very helpful. > > 3) or is there some other CGI type tools that does this for me already? > IE. Just pass in a list of lat/lon pairs and it would map it out for me? > > > Thanks for you help... I really appreciate it, > Joel > > Joel Thompson wrote: > > > > > Hello, > > > > I'd like to map GPS lat/long coordinates dynamically through CGI > > (preferred JAVA,perl, php, in that order) - I am new to MapServer... > > Can you help me to get in the right direction with this? is there any > > add-on tools that do this? or is is just done through the .map w/ html > > template architecture... where the CGI is used to create the HTML file??? > > Any samples would be nice... Thanks in advanced. > > > > -Joel > -- Puneet Kishor http://punkish.eidesis.org/ Nelson Inst. for Env. Studies, UW-Madison http://www.ies.wisc.edu/ Open Source Geospatial Foundation https://edu.osgeo.org/ From punkish at EIDESIS.ORG Fri Jul 28 19:55:33 2006 From: punkish at EIDESIS.ORG (P Kishor) Date: Fri, 28 Jul 2006 21:55:33 -0500 Subject: map gps coordinates with CGI/ (java or Perl) In-Reply-To: Message-ID: In the spirit of "the simplest thing that could work," you could rig up a "watch folder" where you could dump your GPS stream (or, even a "watch file") and set up a Perl script with a constantly open file handle that would flush the lon/lat to a Shapefile that could then be taken over by your MapServer application. Don't have to have PostGIS, although a database would likely make things easier for you with its triggers and what-nots. By the way, ogr2ogr will convert your lon/lat into a Shapefile happily. Dunno if MapServer can read a .ovf file without the interim conversion. I am skating on thin ice here, so I defer to the washed masses... I am not that experienced in these tools yet. On 7/28/06, P Kishor wrote: > Joel, > > I don't have a specific suggestion for you, but I offer the following > to think about... You asked -- > > > > I'd like to map GPS lat/long coordinates dynamically through CGI > > First, what does "dynamically" mean? > > You will have to somehow transfer the lon/lat from the GPS to the > computer that hosts MapServer. So, that is your first task. > > Then you will have to convert the lon/lat into x,y point features that > MapServer can read. That is your second task. > > Then you will have to create an web app that refreshes every few > seconds in order to be qualified as "dynamically." That is your final > task. > > Your best bet might be to send the GPS stream into a PostGIS database, > and set up a MapServer map file that reads that data source. Write an > Ajax-y app that refreshes the map without touching the rest of the > cruft, and you have a dynamic app. > > When you get it all hooked up and working, I would love to see it and > happily plagiarize it ;-). Better yet, you can write up a nice how-to, > and attach your app for the rest of us to benefit. > > Seriously, search the list archives. If I recall correctly, this kind > of stuff has been asked, and done before. > > On 7/28/06, Joel Thompson wrote: > > Hi Guys - sorry to bug you again, but can someone give me some general > > direction? > > > > 1) should I try to manipulate the map file directly through the CGI env? > > If so, what would a sample map file look like to that showed, say Cities > > and the lat/lon coordinates that I provide to show a route...? > > > > 2) Or do I have to use CGI (perl, php...etc.) w/ its API into the > > MapScript to execute this some how? Not sure at all how to do this, so a > > simple sample would be very helpful. > > > > 3) or is there some other CGI type tools that does this for me already? > > IE. Just pass in a list of lat/lon pairs and it would map it out for me? > > > > > > Thanks for you help... I really appreciate it, > > Joel > > > > Joel Thompson wrote: > > > > > > > > Hello, > > > > > > I'd like to map GPS lat/long coordinates dynamically through CGI > > > (preferred JAVA,perl, php, in that order) - I am new to MapServer... > > > Can you help me to get in the right direction with this? is there any > > > add-on tools that do this? or is is just done through the .map w/ html > > > template architecture... where the CGI is used to create the HTML file??? > > > Any samples would be nice... Thanks in advanced. > > > > > > -Joel > > > > > -- > Puneet Kishor http://punkish.eidesis.org/ > Nelson Inst. for Env. Studies, UW-Madison http://www.ies.wisc.edu/ > Open Source Geospatial Foundation https://edu.osgeo.org/ > -- Puneet Kishor http://punkish.eidesis.org/ Nelson Inst. for Env. Studies, UW-Madison http://www.ies.wisc.edu/ Open Source Geospatial Foundation https://edu.osgeo.org/ From chris at APPSCI.COM Fri Jul 28 22:05:08 2006 From: chris at APPSCI.COM (Chris Galagan) Date: Sat, 29 Jul 2006 01:05:08 -0400 Subject: automated response Message-ID: I am currently out of the office, returning August 14. Chris Galagan Applied Science Associates, Inc From m.meier at SPIEKERMANN.DE Fri Jul 28 22:48:10 2006 From: m.meier at SPIEKERMANN.DE (Manfred Meier) Date: Sat, 29 Jul 2006 07:48:10 +0200 Subject: how do I get rid of clicking the button and loading it my html? In-Reply-To: <20060728124509.96285.qmail@web55706.mail.re3.yahoo.com> Message-ID: I don't know your application and so don't know which initialzing button you mean. But if there is a button then it is most likely a submit button of a form. Look at the source code of the html page in your browser and try to find out, to what url the action property in the form tag points. If there are no other hidden or visible input tags, try to point your browser to the url in the action property. If there are input tags, try to append the neccessary values to the url. I don't know if that works in your case. But its a often used method to circumvent the manual filling of forms. Manfred Albert Anderson schrieb: > Hi List, > > My question is how do I get my page to load auto like without using > initialzing button. I dont want to use the button. I just want to page > just load. Is there a way around this? I'm using a linux machine with > mapsever 4. Could someone help me? > > Thanks, > Albert > > ------------------------------------------------------------------------ > Do you Yahoo!? > Next-gen email? Have it all with the all-new Yahoo! Mail Beta. > > From woklist at KYNGCHAOS.COM Sat Jul 29 11:11:25 2006 From: woklist at KYNGCHAOS.COM (William Kyngesburye) Date: Sat, 29 Jul 2006 13:11:25 -0500 Subject: Mac OS X frameworks beta 2 Message-ID: Fine tuned a few things. For all frameworks, they should work in Panther now (10.3.9). It was simpler than I made it sound ^_^ I also switched to disk images for distribution because I was having problems with Apple's zipping. The GEOS framework includes both normal C++ and C APIs in one. So, saying -framework GEOS is the same as saying -lgeos -lgeos_c, like I do with the UnixImageIO framework. For the UnixImageIO framework, I linked the unix/lib/*.dylib's to the framework itself instead of the internal libraries, so no messing around with configure scripts should be needed now. And that effectively hides the internal libraries. Curl was added internally to the GDAL framework for the Panther compatibility. I may have broken something else, and there may still be other issues to work out, but it's beta. To go along with this (sorry for the cross-posting on this), another GRASS.app beta. It now should work in Panther (but I haven't tested it much there). I made it automatically start X11 if not running already. Updated to today's CVS snapshot. As an example to use the frameworks, here's part of my GRASS configure line: ./configure --enable-sysv --with-freetype --with-freetype-includes="/ Library/Frameworks/FreeType.framework/Headers/freetype2 \ /Library/Frameworks/FreeType.framework/Headers" \ --with-freetype-libs=/Library/Frameworks/FreeType.framework/unix/lib \ --with-gdal=/Library/Frameworks/GDAL.framework/Programs/gdal-config \ --with-proj --with-proj-includes=/Library/Frameworks/PROJ.framework/ Headers \ --with-proj-libs=/Library/Frameworks/PROJ.framework/unix/lib \ --with-proj-share=/Library/Frameworks/PROJ.framework/Resources/proj \ --with-jpeg-includes=/Library/Frameworks/UnixImageIO.framework/Headers \ --with-jpeg-libs=/Library/Frameworks/UnixImageIO.framework/unix/lib \ --with-png-includes=/Library/Frameworks/UnixImageIO.framework/Headers \ --with-png-libs=/Library/Frameworks/UnixImageIO.framework/unix/lib \ --with-tiff-includes=/Library/Frameworks/UnixImageIO.framework/Headers \ --with-tiff-libs=/Library/Frameworks/UnixImageIO.framework/unix/lib \ --with-cxx --with-sqlite \ --with-sqlite-libs=/Library/Frameworks/SQLite3.framework/unix/lib \ --with-sqlite-includes=/Library/Frameworks/SQLite3.framework/Headers \ --with-fftw-includes=/Library/Frameworks/FFTW3.framework/Headers \ --with-fftw-libs=/Library/Frameworks/FFTW3.framework/unix/lib \ --with-tcltk-includes=/usr/local/grasslibs/include \ --with-tcltk-libs=/usr/local/grasslibs/lib \ --with-x --without-motif --without-glw --with-opengl=x11 The Tcl/Tk libs are an X11 build. I left out the various DB options, you would use those as you normally would. Notice how the includes point to the Headers folder in the frameworks, and the libs point to the unix/lib in the frameworks. Since the actual binary of the library is the framework name, the unix/lib has a normal lib*.dylib symlinked to the framework binary, so detecting and using -lfoo works. If a *-config script is used, like for GDAL, the script will give you the correct -framework and include flags to use. ----- William Kyngesburye http://www.kyngchaos.com/ "Oh, look, I seem to have fallen down a deep, dark hole. Now what does that remind me of? Ah, yes - life." - Marvin From Steve.Lime at DNR.STATE.MN.US Sun Jul 30 23:18:21 2006 From: Steve.Lime at DNR.STATE.MN.US (Steve Lime) Date: Mon, 31 Jul 2006 01:18:21 -0500 Subject: How to use queryByFeatures? Message-ID: pb: You need to pass the layer index of the selection layer not the layer itself- a quirk in the API. In perl you'd do: $ciemi->queryByFeatures($pagasti->{index}); I'm sure something similar would work in PHP as well... Steve >>> ?ISO-8859-13?Q?P=E7teris_Br=FBns?= 07/27/06 1:04 PM >>> Hi folks, I started to play with php5-mapscript and could not understand how layer->queryByFeatures() works. Here is sample from my php script: getLayerByName("pagasti"); $ciemi = $Map->getLayerByName("ciemi"); $pagasti->queryByPoint($point,MS_MULTIPLE,1000.0); $ciemi->queryByFeatures($pagasti); ?> and output is: Warning: [MapServer Error]: msQueryByFeatures(): Selection layer has not been queried. Any links to FM's or other hints? Bottom line. I added output of layer->resultcache->numresults at mapquery.c - here comes most interesting part - if I call 2 times queryByPoint(), then at second time there is layer->resultcache variable, but when I call queryByPoint() and then pass layer as slayer to queryByFeatures(), slayer has NO resultcache variable. My system: Kubuntu 6 kernel 2.6.15 Apache 2.0.55 PHP 5.1.2 PHP5-mapscript 4.6.1 -- pb From Steve.Lime at DNR.STATE.MN.US Sun Jul 30 23:24:55 2006 From: Steve.Lime at DNR.STATE.MN.US (Steve Lime) Date: Mon, 31 Jul 2006 01:24:55 -0500 Subject: CGI Qlayer,Qstring variables usage Message-ID: Kris: Have you tried using the map_layername_projection=... syntax? Will work for the main projection as well using map_projection=... Steve >>> rock well 07/28/06 6:03 PM >>> Hi all, i got this working to query a layer and am able to display the result too ... the url looks like http://localhost/mapserv.exe?MODE=map&MAP=c:/Inetpub/states.map&LAYERS=states&filter_id=SD but what i am trying now is to pass the projection id in the url, but i guess mapserver doesnt support this form of variable substitution. Is there anyother way to pass the projection id from the url ... Thanks for your effort and time .. kris "Fawcett, David" wrote: Kris, This may not quite work, but it should be closer. Try something like: http://pathtomapserv.exe?MODE=itemnquerymap&LAYERS=layer1&QLAYER=layer1&QITEM=colname&QString=('[colname]'='value') David. -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of rock well Sent: Thursday, July 20, 2006 5:49 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] CGI Qlayer,Qstring variables usage Hello all, I was trying to query one of the layers from a shape file in the url, i am used map as the mode and gave the layer name for Qlayer, column name for Qitem and QString. Part of the URL looks like http://pathtomapserv.exe?MODE=map&LAYERS=layer1&QLAYER=layer1&QITEM=colname&QString=("colname=value") the map is displayed but it didnt filter the layer with the given querystring variables .... Is there something missing, can anyone suggest with something ... Thanks for your effort and time .... kris --------------------------------- Do you Yahoo!? Next-gen email? Have it all with the all-new Yahoo! Mail Beta. --------------------------------- Yahoo! Messenger with Voice. Make PC-to-Phone Calls to the US (and 30+ countries) for 2?/min or less. From Steve.Lime at DNR.STATE.MN.US Sun Jul 30 23:29:40 2006 From: Steve.Lime at DNR.STATE.MN.US (Steve Lime) Date: Mon, 31 Jul 2006 01:29:40 -0500 Subject: Symbol scaling based on labels Message-ID: I'm having a bit of trouble visualizing what you're after. Perhaps you could post an image. One thing that might help is that you can setup classes based on the length of an attribute. E.g. CLASS EXPRESSION (length([MYLABEL]) == 5) ... END CLASS EXPRESSION (length([MYLABEL]) == 6) ... END and so on. Get's kinda verbose but it'd work. Steve >>> Travis Kirstine GIS Tech 07/28/06 3:11 PM >>> Is it possible to scale symbols (png) based on text labels. I have a highway layer I would like to label using text with a png image my problem is that label are not consistant in length ranging from 5 char to 15 char. Travis From marcoscobena at GMAIL.COM Mon Jul 31 01:35:21 2006 From: marcoscobena at GMAIL.COM (=?UTF-8?Q?Marcos_Cobe=C3=B1a?=) Date: Mon, 31 Jul 2006 10:35:21 +0200 Subject: From MySQL (MYD, MYI and FRM) to SHP Message-ID: Hi dudes, Does anyone know how to create shape files from MySQL tables with geodata inside? Really thanks in advance. Regards, -- Marcos - http://www.youcannoteatbits.org From labian15 at HOTMAIL.COM Mon Jul 31 01:56:27 2006 From: labian15 at HOTMAIL.COM (Luis (Hotmail)) Date: Mon, 31 Jul 2006 10:56:27 +0200 Subject: UNSUB DO-WIRE Message-ID: An HTML attachment was scrubbed... URL: From marcoscobena at GMAIL.COM Mon Jul 31 02:43:55 2006 From: marcoscobena at GMAIL.COM (=?UTF-8?Q?Marcos_Cobe=C3=B1a?=) Date: Mon, 31 Jul 2006 11:43:55 +0200 Subject: On SHP files, projections and SRS Message-ID: Hi all, I'd like to know if it's currently possible to add a layer into a MAP file for drawing a SHP file, built using a known projection (UTM, datum EUROPEAM 1950 SPAIN PORTUGAL, time zone 30), but receiving request using EPSG:4326 over WMS. Could it be? This would be nice as I wouldn't have to transform every SHP file into EPSG:4326. Thanks in advance. Regards, -- Marcos - http://www.youcannoteatbits.org From b.vdeijnden at AGI.RWS.MINVENW.NL Mon Jul 31 02:48:29 2006 From: b.vdeijnden at AGI.RWS.MINVENW.NL (Eijnden, Bart van den (AGI)) Date: Mon, 31 Jul 2006 11:48:29 +0200 Subject: On SHP files, projections and SRS Message-ID: That's possible. Set the PROJECTION block of your LAYER to the native projection, and advertize EPSG:4326 using WMS_SRS metadata at either the WEB or LAYER level. Best regards, Bart -----Oorspronkelijk bericht----- Van: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]Namens Marcos Cobe?a Verzonden: maandag 31 juli 2006 11:44 Aan: MAPSERVER-USERS at LISTS.UMN.EDU Onderwerp: [UMN_MAPSERVER-USERS] On SHP files, projections and SRS Hi all, I'd like to know if it's currently possible to add a layer into a MAP file for drawing a SHP file, built using a known projection (UTM, datum EUROPEAM 1950 SPAIN PORTUGAL, time zone 30), but receiving request using EPSG:4326 over WMS. Could it be? This would be nice as I wouldn't have to transform every SHP file into EPSG:4326. Thanks in advance. Regards, -- Marcos - http://www.youcannoteatbits.org From umberto.nicoletti at GMAIL.COM Mon Jul 31 06:49:27 2006 From: umberto.nicoletti at GMAIL.COM (Umberto Nicoletti) Date: Mon, 31 Jul 2006 15:49:27 +0200 Subject: [UMN_MAPSERVER-DEV] Java MapScript Versions In-Reply-To: <44CE0976.1020503@polimi.it> Message-ID: Diego, I am using latest cvs and I don't see all the changes you claim. So I think you must have some problem with your environment (like old builds/dll in classpath or path). Could you try building your app on a fresh system? Also, always cc the list. Umberto On 7/31/06, Diego Magni wrote: > Dear Umberto, > our old version is 4.6 and new one is 4.8. > Many changed mapObj methods have been replaced by > get[set]ConfigOption(string key[, string value]) method[s]. > Moreover, some rectObj methods, such as get[set]Minx[Maxx,Miny,Maxy] are > not usable now. > In fact, you can find them into sources *.java, but they don't work, > probably because they aren't loaded into the mapscript.dll. > These changes can be unpleasant in particular if the object type is also > changed. > For example: mapObj.getExtent gave a rectObj result, while > mapObj.getConfigOption("EXTENT") gives a String result. By consequence, > you cannot use it anymore for map browsing functions without any > conversion from String to rectObj. > Best regards, > Diego > > > > On 7/28/06, Diego Magni wrote: > > > >> Dear List, > >> > >> I'm implementing a mobile GIS with Java MapScript on an Apache > >> Tomcat-based platform. > >> > >> I've started the implementation with the obsolete version of Java > >> MapScript, downloaded from http://hobu.stat.iastate.edu/mapserver/. > >> > >> Now, I need to update my implementation, but the new version of Java > >> MapScript (from MS4W distribution, > >> http://maptools.org/ms4w/index.phtml?page=downloads.html) is quite > >> different and some methods have been changed or removed. > > > > > > Hi Diego, > > this is quite possible. Java mapscript has evolved quite a lot in the > > last years and backward compatibility may have been traded for > > functionality. > > Just out of curiosity, what old version where you using and what > > methods do you find changed? Over time i have upgraded a GIS web app > > of mine from ancient 4.4.x to the CVS version and found that very few > > changes were necessary and all between mapserver 4.4 and 4.6. > > > >> > >> I'd like to use a current downloadable version: is the MS4W version > >> stable? Are new versions of Java MapScript going to be published? Will > >> they follow the MS4W version template? > >> > > > > Since Java mapscript is shipped together with the mapserver source the > > idea is that a new Java mapscript is released whenever a new mapserver > > is released. I do not know if the MS4W mantainers ship a new package > > whenever mapserver is released or if they use cvs (that is > > development) versions. By looking at their site it seems that the > > latest MS4W is using the 4.8.4 mapserver version. > > > > Regards, > > Umberto > > > >> Many thanks, > >> > >> best regards, > >> > >> Diego Magni > >> > >> > >> > >> Ing. Diego Magni > >> ------------------------------------------------- > >> Politecnico di Milano - Polo Regionale di Como > >> Laboratorio di Geomatica > >> via Valleggio 11, 22100 Como > >> e-mail: diego at geomatica.como.polimi.it > >> tel. +39 (0)31 3327529 > >> > > From umberto.nicoletti at GMAIL.COM Mon Jul 31 07:23:51 2006 From: umberto.nicoletti at GMAIL.COM (Umberto Nicoletti) Date: Mon, 31 Jul 2006 16:23:51 +0200 Subject: [UMN_MAPSERVER-DEV] Java MapScript Versions In-Reply-To: <44CE0DDD.7030800@polimi.it> Message-ID: Search your system for all *map*.dll and *map*.jar, maybe you have a naming conflict or more probably the wrong file in classpath? What do you use to build and code the application (Eclipse, ANT, Idea, Notepad) and where do you deploy it (Tomcat, WebSphere,Resin, etc)? Umberto On 7/31/06, Diego Magni wrote: > Dear Umberto, > I send you an example of exception. > We've already installed Java MapScript on a fresh system without any result. > Morevoer, also in the APIs documentation > (http://mapserver.gis.umn.edu/docs/reference/mapscript/index_html) the > methods I said you are not present. > I'll do other tests in the next days. > Regards, > Diego > > > Diego, > > I am using latest cvs and I don't see all the changes you claim. > > So I think you must have some problem with your environment (like old > > builds/dll in classpath or path). Could you try building your app on a > > fresh system? > > > > Also, always cc the list. > > > > Umberto > > > > On 7/31/06, Diego Magni wrote: > > > >> Dear Umberto, > >> our old version is 4.6 and new one is 4.8. > >> Many changed mapObj methods have been replaced by > >> get[set]ConfigOption(string key[, string value]) method[s]. > >> Moreover, some rectObj methods, such as get[set]Minx[Maxx,Miny,Maxy] are > >> not usable now. > >> In fact, you can find them into sources *.java, but they don't work, > >> probably because they aren't loaded into the mapscript.dll. > >> These changes can be unpleasant in particular if the object type is also > >> changed. > >> For example: mapObj.getExtent gave a rectObj result, while > >> mapObj.getConfigOption("EXTENT") gives a String result. By consequence, > >> you cannot use it anymore for map browsing functions without any > >> conversion from String to rectObj. > >> Best regards, > >> Diego > >> > >> > >> > On 7/28/06, Diego Magni wrote: > >> > > >> >> Dear List, > >> >> > >> >> I'm implementing a mobile GIS with Java MapScript on an Apache > >> >> Tomcat-based platform. > >> >> > >> >> I've started the implementation with the obsolete version of Java > >> >> MapScript, downloaded from http://hobu.stat.iastate.edu/mapserver/. > >> >> > >> >> Now, I need to update my implementation, but the new version of Java > >> >> MapScript (from MS4W distribution, > >> >> http://maptools.org/ms4w/index.phtml?page=downloads.html) is quite > >> >> different and some methods have been changed or removed. > >> > > >> > > >> > Hi Diego, > >> > this is quite possible. Java mapscript has evolved quite a lot in the > >> > last years and backward compatibility may have been traded for > >> > functionality. > >> > Just out of curiosity, what old version where you using and what > >> > methods do you find changed? Over time i have upgraded a GIS web app > >> > of mine from ancient 4.4.x to the CVS version and found that very few > >> > changes were necessary and all between mapserver 4.4 and 4.6. > >> > > >> >> > >> >> I'd like to use a current downloadable version: is the MS4W version > >> >> stable? Are new versions of Java MapScript going to be published? > >> Will > >> >> they follow the MS4W version template? > >> >> > >> > > >> > Since Java mapscript is shipped together with the mapserver source the > >> > idea is that a new Java mapscript is released whenever a new mapserver > >> > is released. I do not know if the MS4W mantainers ship a new package > >> > whenever mapserver is released or if they use cvs (that is > >> > development) versions. By looking at their site it seems that the > >> > latest MS4W is using the 4.8.4 mapserver version. > >> > > >> > Regards, > >> > Umberto > >> > > >> >> Many thanks, > >> >> > >> >> best regards, > >> >> > >> >> Diego Magni > >> >> > >> >> > >> >> > >> >> Ing. Diego Magni > >> >> ------------------------------------------------- > >> >> Politecnico di Milano - Polo Regionale di Como > >> >> Laboratorio di Geomatica > >> >> via Valleggio 11, 22100 Como > >> >> e-mail: diego at geomatica.como.polimi.it > >> >> tel. +39 (0)31 3327529 > >> >> > >> > >> > > > > type Exception report > > message > > description The server encountered an internal error () that prevented it from > fulfilling this request. > > exception > > javax.servlet.ServletException: Servlet execution threw an exception > it.cefriel.webeca.filter.WebECAFilter.handlePageRequest(WebECAFilter.java:539) > it.cefriel.webeca.filter.WebECAFilter.doFilter(WebECAFilter.java:433) > it.cefriel.saf2.filter.ContextFilter.doFilter(ContextFilter.java:275) > it.cefriel.util.servlet.ResponseHeaderFilter.doFilter(ResponseHeaderFilter.java:128) > it.cefriel.pusher.PushFilter.filterPageRequest(PushFilter.java:215) > it.cefriel.pusher.PushFilter.doFilter(PushFilter.java:192) > it.cefriel.archeomedsat.driver.CoordFilter.doFilter(CoordFilter.java:117) > > root cause > > java.lang.UnsatisfiedLinkError: get_mapObj_extent > edu.umn.gis.mapscript.mapscriptJNI.get_mapObj_extent(Native Method) > edu.umn.gis.mapscript.mapObj.getExtent(mapObj.java:136) > it.polimi.como.geomatica.camgis.Camgis.doGet(Camgis.java:46) > javax.servlet.http.HttpServlet.service(HttpServlet.java:689) > javax.servlet.http.HttpServlet.service(HttpServlet.java:802) > it.cefriel.webeca.filter.WebECAFilter.handlePageRequest(WebECAFilter.java:539) > it.cefriel.webeca.filter.WebECAFilter.doFilter(WebECAFilter.java:433) > it.cefriel.saf2.filter.ContextFilter.doFilter(ContextFilter.java:275) > it.cefriel.util.servlet.ResponseHeaderFilter.doFilter(ResponseHeaderFilter.java:128) > it.cefriel.pusher.PushFilter.filterPageRequest(PushFilter.java:215) > it.cefriel.pusher.PushFilter.doFilter(PushFilter.java:192) > it.cefriel.archeomedsat.driver.CoordFilter.doFilter(CoordFilter.java:117) > > From joel at RHINOSYSTEMSINC.COM Mon Jul 31 11:14:55 2006 From: joel at RHINOSYSTEMSINC.COM (Joel Thompson) Date: Mon, 31 Jul 2006 11:14:55 -0700 Subject: map gps coordinates with CGI/ (java or Perl) In-Reply-To: Message-ID: Thanks for the feedback. I really appreciate it alot. By dynamically I meant that the CGI would some be given the coordinates at runtime - either read from db, or passed as PARAMETERS in CGI ... and so actually I don't need help in setting up that part. What I would like to know is what is the best approach for dealing with the list of Long/Lats??? 1) Is it to create a MAP file w/ layers and features? OR 2) create a SHAPE file? OR 3) Is this kind of behavior already built into the MAP or MapServer some how? 4) Are their tools that help with this sort of stuff? Like GRASS or something else? 5) Also - I am having problems setting up the Perl MapScript env - I can't get/find any directions on how to integrate the Perl modules into MapServer - Yet Perl works from Apache as a plain-old-cgi env. So I am wondering if I should attempt #1, or #2 in this CGI w/o the perl map module? or should I keep attempting to get the Perl Module integrated... (seemed straight forward, but not quite since I download prebuilt MapServer for Windows 2k and can't rebuild to integrated PERL...sigh..) Thanks Again!! -- Joel A. Thompson email: joel at rhinosystemsinc.com P Kishor wrote: > Joel, > > I don't have a specific suggestion for you, but I offer the following > to think about... You asked -- > >> > I'd like to map GPS lat/long coordinates dynamically through CGI > > > First, what does "dynamically" mean? > > You will have to somehow transfer the lon/lat from the GPS to the > computer that hosts MapServer. So, that is your first task. > > Then you will have to convert the lon/lat into x,y point features that > MapServer can read. That is your second task. > > Then you will have to create an web app that refreshes every few > seconds in order to be qualified as "dynamically." That is your final > task. > > Your best bet might be to send the GPS stream into a PostGIS database, > and set up a MapServer map file that reads that data source. Write an > Ajax-y app that refreshes the map without touching the rest of the > cruft, and you have a dynamic app. > > When you get it all hooked up and working, I would love to see it and > happily plagiarize it ;-). Better yet, you can write up a nice how-to, > and attach your app for the rest of us to benefit. > > Seriously, search the list archives. If I recall correctly, this kind > of stuff has been asked, and done before. > > On 7/28/06, Joel Thompson wrote: > >> Hi Guys - sorry to bug you again, but can someone give me some general >> direction? >> >> 1) should I try to manipulate the map file directly through the CGI env? >> If so, what would a sample map file look like to that showed, say Cities >> and the lat/lon coordinates that I provide to show a route...? >> >> 2) Or do I have to use CGI (perl, php...etc.) w/ its API into the >> MapScript to execute this some how? Not sure at all how to do this, so a >> simple sample would be very helpful. >> >> 3) or is there some other CGI type tools that does this for me already? >> IE. Just pass in a list of lat/lon pairs and it would map it out for me? >> >> >> Thanks for you help... I really appreciate it, >> Joel >> >> Joel Thompson wrote: >> >> > >> > Hello, >> > >> > I'd like to map GPS lat/long coordinates dynamically through CGI >> > (preferred JAVA,perl, php, in that order) - I am new to MapServer... >> > Can you help me to get in the right direction with this? is there any >> > add-on tools that do this? or is is just done through the .map w/ html >> > template architecture... where the CGI is used to create the HTML >> file??? >> > Any samples would be nice... Thanks in advanced. >> > >> > -Joel >> > > From punkish at EIDESIS.ORG Mon Jul 31 11:41:26 2006 From: punkish at EIDESIS.ORG (P Kishor) Date: Mon, 31 Jul 2006 13:41:26 -0500 Subject: map gps coordinates with CGI/ (java or Perl) In-Reply-To: <44CE489F.5090007@rhinosystemsinc.com> Message-ID: ya then... On 7/31/06, Joel Thompson wrote: > Thanks for the feedback. I really appreciate it alot. > > By dynamically I meant that the CGI would some be given the > coordinates at runtime - either read from db, or passed as PARAMETERS > in CGI ... and so actually I don't need help in setting up that part. so, it is not dynamic in as I thought of dynamic -- as in, a moving dot on the screen. The above is plain, vanilla MapServer, so you are set there. > What I would like to know is what is the best approach for dealing > with the list of Long/Lats??? > > 1) Is it to create a MAP file w/ layers and features? OR > 2) create a SHAPE file? OR > 3) Is this kind of behavior already built into the MAP or MapServer > some how? > 4) Are their tools that help with this sort of stuff? Like GRASS or > something else? Well, MapServer will need a .map file with layer definitions. There is no way around that. That is the direction that MapServer needs. That said, within the .map file, you can define the layer as a shapefile (in which case, you will need to create a shapefile), or you might even be able to define it as an OGR datasource (although, once again, I am skating on thin-ice here... truth be told, I have been doing more data-munging lately instead of actually working with MapServer). Whether you have to convert your lon/lat into a shapefile or define it as an OGR datasource, FW's eponymous tools will help you greatly. You can use ogr2ogr to convert lon/lat into shapefile, for which, you will have to set up a .ovf file anyway (c'est compliqu?, non?). Search for ogr2ogr and FW_tools on the MapServer website. > 5) Also - I am having problems setting up the Perl MapScript env - > I can't get/find any directions on how to integrate the Perl modules into > MapServer - Yet Perl works from Apache as a plain-old-cgi env. > So I am wondering if I should attempt #1, or #2 in this CGI w/o the > perl map module? or should I keep attempting to get the Perl Module > integrated... (seemed straight forward, but not quite since I download > prebuilt MapServer for Windows 2k and can't rebuild to integrated > PERL...sigh..) This is the main reason I have not been using MapServer lately. Afaik, Perl/MapScript does not work on Windows, and I am, in my current phase in life, stuck with Windows for some time. Other flavors of MapScript apparently work on Windows, but I have little interest in those languages. If anyone has been able to build Perl/MapScript on Windows successfully, please share the knowledge. (Steve Lime, le p?re de MapServer, might be able to confirm this; then maybe not). > P Kishor wrote: > > > Joel, > > > > I don't have a specific suggestion for you, but I offer the following > > to think about... You asked -- > > > >> > I'd like to map GPS lat/long coordinates dynamically through CGI > > > > > > First, what does "dynamically" mean? > > > > You will have to somehow transfer the lon/lat from the GPS to the > > computer that hosts MapServer. So, that is your first task. > > > > Then you will have to convert the lon/lat into x,y point features that > > MapServer can read. That is your second task. > > > > Then you will have to create an web app that refreshes every few > > seconds in order to be qualified as "dynamically." That is your final > > task. > > > > Your best bet might be to send the GPS stream into a PostGIS database, > > and set up a MapServer map file that reads that data source. Write an > > Ajax-y app that refreshes the map without touching the rest of the > > cruft, and you have a dynamic app. > > > > When you get it all hooked up and working, I would love to see it and > > happily plagiarize it ;-). Better yet, you can write up a nice how-to, > > and attach your app for the rest of us to benefit. > > > > Seriously, search the list archives. If I recall correctly, this kind > > of stuff has been asked, and done before. > > > > On 7/28/06, Joel Thompson wrote: > > > >> Hi Guys - sorry to bug you again, but can someone give me some general > >> direction? > >> > >> 1) should I try to manipulate the map file directly through the CGI env? > >> If so, what would a sample map file look like to that showed, say Cities > >> and the lat/lon coordinates that I provide to show a route...? > >> > >> 2) Or do I have to use CGI (perl, php...etc.) w/ its API into the > >> MapScript to execute this some how? Not sure at all how to do this, so a > >> simple sample would be very helpful. > >> > >> 3) or is there some other CGI type tools that does this for me already? > >> IE. Just pass in a list of lat/lon pairs and it would map it out for me? > >> > >> > >> Thanks for you help... I really appreciate it, > >> Joel > >> > >> Joel Thompson wrote: > >> > >> > > >> > Hello, > >> > > >> > I'd like to map GPS lat/long coordinates dynamically through CGI > >> > (preferred JAVA,perl, php, in that order) - I am new to MapServer... > >> > Can you help me to get in the right direction with this? is there any > >> > add-on tools that do this? or is is just done through the .map w/ html > >> > template architecture... where the CGI is used to create the HTML > >> file??? > >> > Any samples would be nice... Thanks in advanced. > >> > > >> > -Joel > >> > > > > > > > -- Puneet Kishor http://punkish.eidesis.org/ Nelson Inst. for Env. Studies, UW-Madison http://www.ies.wisc.edu/ Open Source Geospatial Foundation https://edu.osgeo.org/ From rockwell_001 at YAHOO.COM Mon Jul 31 12:11:51 2006 From: rockwell_001 at YAHOO.COM (rock well) Date: Mon, 31 Jul 2006 12:11:51 -0700 Subject: CGI Qlayer,Qstring variables usage In-Reply-To: <44CD5BE70200008F000002DE@co5.dnr.state.mn.us> Message-ID: Thanks for your reply steve, its working. i was wondering if you can tell me where did you find the documentation for this so that i could read and see if there are any other features or parameters than i can use in the url. Thanks again kris Steve Lime wrote: Kris: Have you tried using the map_layername_projection=... syntax? Will work for the main projection as well using map_projection=... Steve >>> rock well 07/28/06 6:03 PM >>> Hi all, i got this working to query a layer and am able to display the result too ... the url looks like http://localhost/mapserv.exe?MODE=map&MAP=c:/Inetpub/states.map&LAYERS=states&filter_id=SD but what i am trying now is to pass the projection id in the url, but i guess mapserver doesnt support this form of variable substitution. Is there anyother way to pass the projection id from the url ... Thanks for your effort and time .. kris "Fawcett, David" wrote: Kris, This may not quite work, but it should be closer. Try something like: http://pathtomapserv.exe?MODE=itemnquerymap&LAYERS=layer1&QLAYER=layer1&QITEM=colname&QString=('[colname]'='value') David. -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of rock well Sent: Thursday, July 20, 2006 5:49 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] CGI Qlayer,Qstring variables usage Hello all, I was trying to query one of the layers from a shape file in the url, i am used map as the mode and gave the layer name for Qlayer, column name for Qitem and QString. Part of the URL looks like http://pathtomapserv.exe?MODE=map&LAYERS=layer1&QLAYER=layer1&QITEM=colname&QString=("colname=value") the map is displayed but it didnt filter the layer with the given querystring variables .... Is there something missing, can anyone suggest with something ... Thanks for your effort and time .... kris --------------------------------- Do you Yahoo!? Next-gen email? Have it all with the all-new Yahoo! Mail Beta. --------------------------------- Yahoo! Messenger with Voice. Make PC-to-Phone Calls to the US (and 30+ countries) for 2?/min or less. --------------------------------- Yahoo! Messenger with Voice. Make PC-to-Phone Calls to the US (and 30+ countries) for 2?/min or less. -------------- next part -------------- An HTML attachment was scrubbed... URL: From parrott.sarah at GOOGLEMAIL.COM Mon Jul 31 13:53:01 2006 From: parrott.sarah at GOOGLEMAIL.COM (Sarah Parrott) Date: Mon, 31 Jul 2006 21:53:01 +0100 Subject: Failed to draw layer error with mysql points In-Reply-To: <44C6614D.8000802@pobox.com> Message-ID: Hi, You were right about that - somehow it had left off ogr support. I've fixed that now and the map file draws fine with shp2img. But I still get the same error when I try and do it from the JSP page. I've attached all the files I'm using and below are the errors I end up with. Is there anything specific I need to know about OGR and java mapscript? I have tried remaking the java mapscript jar after recompiling mapserver but it doesn't seem to have made any difference. Cheers, Sarah *type* Exception report *message* *description* *The server encountered an internal error () that prevented it from fulfilling this request.* *exception* org.apache.jasper.JasperException: Exception in JSP: /boxes/simple_points/points.jsp:14 11: 12: String vMapFile = "/usr/local/apache-tomcat-5.5.17/webapps/ROOT/boxes/simple_points/points.mapfile"; 13: vMap.setMappath(vMapName); 14: imageObj img = vMap.draw(); 15: img.save(vMapFile,vMap); 16: 17: Stacktrace: org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:504) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:375) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) *root cause* javax.servlet.ServletException: Failed to draw layer named 'test_gis'. org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:858) org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:791) org.apache.jsp.boxes.simple_005fpoints.points_jsp._jspService(points_jsp.java:74) org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:332) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) *root cause* java.lang.UnknownError: Failed to draw layer named 'test_gis'. edu.umn.gis.mapscript.mapscriptJNI.mapObj_draw(Native Method) edu.umn.gis.mapscript.mapObj.draw(mapObj.java:382) org.apache.jsp.boxes.simple_005fpoints.points_jsp._jspService(points_jsp.java:56) org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:332) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: points.jsp Type: application/octet-stream Size: 734 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: points.map Type: application/octet-stream Size: 575 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: test_gis.ovf Type: application/octet-stream Size: 348 bytes Desc: not available URL: From Steve.Lime at DNR.STATE.MN.US Mon Jul 31 14:43:42 2006 From: Steve.Lime at DNR.STATE.MN.US (Steve Lime) Date: Mon, 31 Jul 2006 16:43:42 -0500 Subject: CGI Qlayer,Qstring variables usage In-Reply-To: <20060731191152.46389.qmail@web34208.mail.mud.yahoo.com> Message-ID: There is reference to this capability at: http://mapserver.gis.umn.edu/docs/reference/cgi/controls At the end of the document. Many parameters can be modified this way although if I were doing much with this I would likely suggest using MapScript. I typically just use the mechanism to change the units on a second scalebar (e.g. mode=scalebar) or add a dynamic feature or two. Steve >>> rock well 7/31/2006 2:11:51 PM >>> Thanks for your reply steve, its working. i was wondering if you can tell me where did you find the documentation for this so that i could read and see if there are any other features or parameters than i can use in the url. Thanks again kris Steve Lime wrote: Kris: Have you tried using the map_layername_projection=... syntax? Will work for the main projection as well using map_projection=... Steve >>> rock well 07/28/06 6:03 PM >>> Hi all, i got this working to query a layer and am able to display the result too ... the url looks like http://localhost/mapserv.exe?MODE=map&MAP=c:/Inetpub/states.map&LAYERS=states&filter_id=SD but what i am trying now is to pass the projection id in the url, but i guess mapserver doesnt support this form of variable substitution. Is there anyother way to pass the projection id from the url ... Thanks for your effort and time .. kris "Fawcett, David" wrote: Kris, This may not quite work, but it should be closer. Try something like: http://pathtomapserv.exe?MODE=itemnquerymap&LAYERS=layer1&QLAYER=layer1&QITEM=colname&QString=('[colname]'='value') David. -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of rock well Sent: Thursday, July 20, 2006 5:49 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] CGI Qlayer,Qstring variables usage Hello all, I was trying to query one of the layers from a shape file in the url, i am used map as the mode and gave the layer name for Qlayer, column name for Qitem and QString. Part of the URL looks like http://pathtomapserv.exe?MODE=map&LAYERS=layer1&QLAYER=layer1&QITEM=colname&QString=("colname=value") the map is displayed but it didnt filter the layer with the given querystring variables .... Is there something missing, can anyone suggest with something ... Thanks for your effort and time .... kris --------------------------------- Do you Yahoo!? Next-gen email? Have it all with the all-new Yahoo! Mail Beta. --------------------------------- Yahoo! Messenger with Voice. Make PC-to-Phone Calls to the US (and 30+ countries) for 2?/min or less. --------------------------------- Yahoo! Messenger with Voice. Make PC-to-Phone Calls to the US (and 30+ countries) for 2?/min or less. From dlowther at COORDINATESOLUTIONS.COM Mon Jul 31 18:02:33 2006 From: dlowther at COORDINATESOLUTIONS.COM (David Lowther) Date: Mon, 31 Jul 2006 20:02:33 -0500 Subject: CSharp Mapscript in WebForm (ASP.NET 2.0) Message-ID: Hi List, Has anyone successfully used CSharp Mapscript in a ASP.NET 2.0 Webform? I've gotten things working in Winforms (with a bit of help from Tamas - thanks!) but can't seem to make Webform work. I suspect that the issue is related to the fact that I cannot set a reference to the VC.manifest file. I get an error (can't load mapscript.dll) when I try to instantiate a mapObj. Thank for any help, if I can provide more detail or a sample app please let me know. David Lowther Coordinate Solutions, Inc. 501 N.E. 15th Street Oklahoma City, OK 73104 405.246.9396 (Voice) 405.227.0781 (Fax) www.coordinatesolutions.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From dlowther at COORDINATESOLUTIONS.COM Mon Jul 31 20:15:21 2006 From: dlowther at COORDINATESOLUTIONS.COM (David Lowther) Date: Mon, 31 Jul 2006 22:15:21 -0500 Subject: CSharp Mapscript in WebForm (ASP.NET 2.0) In-Reply-To: <006901c6b506$2c2a2ab0$660ba8c0@dld410> Message-ID: Sorry to post before fully reviewing archive. It seems there has been some discussion of this issue. Suggestions included placing all DLLs in the bin directory of application, in windows/system32 - I've tried all of this and still get the same error. If I modify the reference to mapscript_csharp.dll the first time I run the application I get an error from the MS VC++ Runtime Library that says "R6034 An application has made an attempt to load the C runtime library incorrectly." Even if I do get it working it appears that I am fighting an uphill battle against the thread safety issues. I've reviewed Sean's write up of this (http://ms.gis.umn.edu/docs/faq/thread_safety) situation and had a few questions. - What exactly does unsafe, but locked mean vs. unsafe? - Map config file loading - is this opening a Mapfile from disk? If so, would building the Mapfile dynamically remove the issue? - WMS/WFS - is it fixable? What is the level of effort (hours / $$$)? Thanks in advance for your assistance. David Lowther _____ From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of David Lowther Sent: Monday, July 31, 2006 8:03 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] CSharp Mapscript in WebForm (ASP.NET 2.0) Hi List, Has anyone successfully used CSharp Mapscript in a ASP.NET 2.0 Webform? I've gotten things working in Winforms (with a bit of help from Tamas - thanks!) but can't seem to make Webform work. I suspect that the issue is related to the fact that I cannot set a reference to the VC.manifest file. I get an error (can't load mapscript.dll) when I try to instantiate a mapObj. Thank for any help, if I can provide more detail or a sample app please let me know. David Lowther Coordinate Solutions, Inc. 501 N.E. 15th Street Oklahoma City, OK 73104 405.246.9396 (Voice) 405.227.0781 (Fax) www.coordinatesolutions.com -------------- next part -------------- An HTML attachment was scrubbed... URL: