From cp_n18 at yahoo.com Mon Feb 1 04:45:47 2010 From: cp_n18 at yahoo.com (Jon Miner) Date: Mon, 1 Feb 2010 04:45:47 -0800 (PST) Subject: [mapserver-users] New to mapserver; question about USGS DRG/GeoTIFF files In-Reply-To: References: <218739.31548.qm@web111405.mail.gq1.yahoo.com><9c2015091001291316n2c1eb236s5fffc41da61c7e74@mail.gmail.com> <262533.72457.qm@web111414.mail.gq1.yahoo.com> Message-ID: <912339.56784.qm@web111411.mail.gq1.yahoo.com> Thanks Jukka, That did it. I guess I need to better understand the relationship between EXTENT and UNITS. I thought that my original bounds, in degrees, would have worked? EXTENT -72 42 -71 44 UNITS DD - Jon ----- Original Message ---- From: Rahkonen Jukka To: Jon Miner ; mapserver-users at lists.osgeo.org Sent: Mon, February 1, 2010 12:28:09 AM Subject: Re: [mapserver-users] New to mapserver;question about USGS DRG/GeoTIFF files Hi, One possibility is that your image is not inside the spatial window of your request. Extents or the image in epsg:26719 system seem to be Lower Left ( 295125.999, 4761593.049) ( 71d30'45.52"W, 42d58'52.88"N) Upper Right ( 308264.099, 4778305.843) ( 71d21'26.67"W, 43d 8'6.54"N) Extents of the MAP are in epsg:4326 system EXTENT -72 42 -71 44. If the image is not inside this box you won't see it which is natural. Make a test by changing the MAP estents and projection temporary to suit the image EXTENT 295125.999 4761593.049 308264.099, 4778305.843 PROJECTION "init=epsg:26719" END If you get the image now with shp2img you know that everything is OK with the geotiff. -Jukka Rahkonen- Jon Miner wrote: Hi Roger - Thanks for the advice, but no change. I did stumble across the advice to try to run "shp2img" and even with debug set to "5", get very little debugging information. # shp2img -m test.map -all_debug 5 -o test.png GDAL: GDALOpen(/opt/fgs/apps/gmap-demo-cvs_MS_VERSION_54/htdocs/./../data/o43071a4.tif, this=0x9bd61b0) succeeds as GTiff. GDAL: GDALDeregister_GTiff() called. The resulting test.png ends up being all white. The actual TIFF file (10MB) can be found here: http://trainguy.dyn.dhs.org/~jminer/o43071a4.tif Thanks ________________________________ From: Roger Andr? To: Jon Miner Cc: mapserver-users at lists.osgeo.org Sent: Fri, January 29, 2010 4:16:08 PM Subject: Re: [mapserver-users] New to mapserver; question about USGS DRG/GeoTIFF files Hi Jon, You don't appear to have any projection info in your map file. Since you have "UNITS dd" in it, I assume you want to display the map in lat/lon WGS84? If so, your MAP file needs an entry that looks like this: PROJECTION "init=epsg:4326" END and your usgs LAYER (the name should be quoted btw) should have the UTM projection defined in it, like this: LAYER NAME "usgs" PROJECTION "init=epsg:26719" END Best of luck, Roger -- On Fri, Jan 29, 2010 at 4:38 AM, Jon Miner wrote: > > >>Hi - > >>I'm new to Mapserver, and so far impressed by it's capabilities. I've installed the FGS package via fgs-mapserver_basic_5.6.0-fgs_9.5-linux-i386.bin and played with their demo program. > >>I'm having a problem with a USGS DRG file that is encoded as a GeoTIFF file. It doesn't display on the webpage, and I'm not sure where to start debugging this. I've checked the file with gdalinfo: > >>Driver: GTiff/GeoTIFF >>Files: o43071a4.tif >>Size is 5388, 6854 >>Coordinate System is: >>PROJCS["NAD27 / UTM zone 19N", >> GEOGCS["NAD27", >> DATUM["North_American_Datum_1927", >> SPHEROID["Clarke 1866",6378206.4,294.9786982138982, >> AUTHORITY["EPSG","7008"]], >> AUTHORITY["EPSG","6267"]], >> PRIMEM["Greenwich",0], >> UNIT["degree",0.0174532925199433], >> AUTHORITY["EPSG","4267"]], >> PROJECTION["Transverse_Mercator"], >> PARAMETER["latitude_of_origin",0], >> PARAMETER["central_meridian",-69], >> PARAMETER["scale_factor",0.9996], >> PARAMETER["false_easting",500000], >> PARAMETER["false_northing",0], >> UNIT["metre",1, >> AUTHORITY["EPSG","9001"]], >> AUTHORITY["EPSG","26719"]] >>Origin = (295125.999493999988772,4778305.842659999616444) >>Pixel Size = (2.438400000000000,-2.438400000000000) >>Metadata: >> AREA_OR_POINT=Area >> TIFFTAG_IMAGEDESCRIPTION=USGS GeoTIFF DRG 1:24000 Quad of Manchester North. Product:522644 >> TIFFTAG_SOFTWARE=USGS CD Archiver program tif2usgsdrg v.1.0 >> TIFFTAG_DATETIME=1997:01:10 07:16:28 >> TIFFTAG_XRESOLUTION=72 >> TIFFTAG_YRESOLUTION=72 >> TIFFTAG_RESOLUTIONUNIT=2 (pixels/inch) >>Image Structure Metadata: >> COMPRESSION=PACKBITS >> INTERLEAVE=BAND >>Corner Coordinates: >>Upper Left ( 295125.999, 4778305.843) ( 71d31'7.66"W, 43d 7'54.16"N) >>Lower Left ( 295125.999, 4761593.049) ( 71d30'45.52"W, 42d58'52.88"N) >>Upper Right ( 308264.099, 4778305.843) ( 71d21'26.67"W, 43d 8'6.54"N) >>Lower Right ( 308264.099, 4761593.049) ( 71d21'5.95"W, 42d59'5.20"N) >>Center ( 301695.049, 4769949.446) ( 71d26'6.44"W, 43d 3'29.80"N) >>Band 1 Block=5388x1 Type=Byte, ColorInterp=Palette >> Color Table (RGB with 256 entries) >> 0: 0,0,0,255 >> 1: 255,255,255,255 >> 2: 0,151,164,255 >> 3: 203,0,23,255 >> 4: 131,66,37,255 >> 5: 201,234,157,255 >> 6: 137,51,128,255 >> 7: 255,234,0,255 >> 8: 167,226,226,255 >> 9: 255,184,184,255 >> 10: 218,179,214,255 >> 11: 209,209,209,255 >> 12: 207,164,142,255 >>(etc...) > >>And my map file looks like this: > >>MAP >>NAME DEMO >>STATUS ON >>SIZE 400 300 >>SYMBOLSET ../etc/symbols.sym >>EXTENT -72 42 -71 44 >>UNITS dd >>SCALEDENOM 24000 >>SHAPEPATH "../data" >>IMAGECOLOR 255 255 255 >>FONTSET ../etc/fonts.txt >>CONFIG "MS_ERRORFILE" "/tmp/ms_error.txt" >># >># Start of web interface definition >># >>WEB >> MINSCALEDENOM 24000 >> MAXSCALEDENOM 24000 >># >># On Windows systems, /tmp and /opt/fgs/tmp/ms_tmp/ should be created at the root >># of the drive where the .MAP file resides. >># >> IMAGEPATH "/opt/fgs/tmp/ms_tmp/" >> IMAGEURL "/ms_tmp/" >> LOG "/tmp/gmap.log" >>END > >>LAYER >> NAME usgs >> METADATA >> "DESCRIPTION" "USGS GeoTIFF" >> END >> TYPE RASTER >> STATUS ON >> DATA o43071a4.tif >>END > >>END # Map File > > > >>_______________________________________________ >>mapserver-users mailing list >mapserver-users at lists.osgeo.org >http://lists.osgeo.org/mailman/listinfo/mapserver-users > From Jukka.Rahkonen at mmmtike.fi Mon Feb 1 05:07:58 2010 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Mon, 1 Feb 2010 15:07:58 +0200 Subject: [mapserver-users] New to mapserver; question about USGS DRG/GeoTIFF files In-Reply-To: <912339.56784.qm@web111411.mail.gq1.yahoo.com> References: <218739.31548.qm@web111405.mail.gq1.yahoo.com><9c2015091001291316n2c1eb236s5fffc41da61c7e74@mail.gmail.com><262533.72457.qm@web111414.mail.gq1.yahoo.com> <912339.56784.qm@web111411.mail.gq1.yahoo.com> Message-ID: Hi, EPSG:4326 bounds do work all the time but in order to see your image the epsg:4326 extents must be the same than the epsg:26719 extents of the image projected to epsg:4326. This may go wrong, I have not used cs2cs program much, but let's hope I did this correctly So I tried to take the 26716 coordinates and reproject them to 4321 d:\FWTools2.4.6>cs2cs +init=epsg:26716 +to +init=epsg:4326 #reproject from 26716 -> to 4326 295125.999 4761593.049 #input coordinates 89d30'45.961"W 42d58'52.872"N 0.000 #cs2cs output 308264.099 4778305.843 #input coordinates 89d21'27.097"W 43d8'6.525"N 0.000 #cs2cs output If this want OK it means that your image should be inside an epsg:4326 box defined by EXTENT -90 42 -89 44 If it went wrong some more experienced cs2cs user will certainly help you further. -Jukka- > -----Alkuper?inen viesti----- > L?hett?j?: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] Puolesta Jon Miner > L?hetetty: 1. helmikuuta 2010 14:46 > Vastaanottaja: mapserver-users at lists.osgeo.org > Aihe: Re: [mapserver-users] New to mapserver;question about > USGS DRG/GeoTIFF files > > > > Thanks Jukka, > > That did it. I guess I need to better understand the > relationship between EXTENT and UNITS. I thought that my > original bounds, in degrees, would have worked? > > EXTENT -72 42 -71 44 > UNITS DD > > - Jon > > > > > > ----- Original Message ---- > From: Rahkonen Jukka > To: Jon Miner ; mapserver-users at lists.osgeo.org > Sent: Mon, February 1, 2010 12:28:09 AM > Subject: Re: [mapserver-users] New to mapserver;question > about USGS DRG/GeoTIFF files > > Hi, > > One possibility is that your image is not inside the spatial > window of your request. Extents or the image in epsg:26719 > system seem to be > Lower Left ( 295125.999, 4761593.049) ( 71d30'45.52"W, > 42d58'52.88"N) > Upper Right ( 308264.099, 4778305.843) ( 71d21'26.67"W, 43d 8'6.54"N) > > Extents of the MAP are in epsg:4326 system EXTENT -72 42 -71 > 44. If the image is not inside this box you won't see it > which is natural. > > Make a test by changing the MAP estents and projection > temporary to suit the image > EXTENT 295125.999 4761593.049 308264.099 4778305.843 > PROJECTION > "init=epsg:26719" > END > > If you get the image now with shp2img you know that > everything is OK with the geotiff. > > -Jukka Rahkonen- > > Jon Miner wrote: > > Hi Roger - > > Thanks for the advice, but no change. I did stumble across > the advice to try to run "shp2img" and even with debug set to > "5", get very little debugging information. > > # shp2img -m test.map -all_debug 5 -o test.png > GDAL: > GDALOpen(/opt/fgs/apps/gmap-demo-cvs_MS_VERSION_54/htdocs/./.. > /data/o43071a4.tif, this=0x9bd61b0) succeeds as GTiff. > GDAL: GDALDeregister_GTiff() called. > > The resulting test.png ends up being all white. > > The actual TIFF file (10MB) can be found here: > > http://trainguy.dyn.dhs.org/~jminer/o43071a4.tif > > Thanks > > > > > ________________________________ > From: Roger Andr? > To: Jon Miner > Cc: mapserver-users at lists.osgeo.org > Sent: Fri, January 29, 2010 4:16:08 PM > Subject: Re: [mapserver-users] New to mapserver; question > about USGS DRG/GeoTIFF files > > Hi Jon, > > You don't appear to have any projection info in your map > file. Since you have "UNITS dd" in it, I assume you want to > display the map in lat/lon WGS84? If so, your MAP file needs > an entry that looks like this: > > PROJECTION > "init=epsg:4326" > END > > and your usgs LAYER (the name should be quoted btw) should > have the UTM projection defined in it, like this: > > LAYER > NAME "usgs" > PROJECTION "init=epsg:26719" END > > Best of luck, > > Roger > -- > > > > > > On Fri, Jan 29, 2010 at 4:38 AM, Jon Miner wrote: > > > > > > > >>Hi - > > > >>I'm new to Mapserver, and so far impressed by it's > capabilities. I've installed the FGS package via > fgs-mapserver_basic_5.6.0-fgs_9.5-linux-i386.bin and played > with their demo program. > > > >>I'm having a problem with a USGS DRG file that is encoded > as a GeoTIFF file. It doesn't display on the webpage, and > I'm not sure where to start debugging this. I've checked the > file with gdalinfo: > > > >>Driver: GTiff/GeoTIFF > >>Files: o43071a4.tif > >>Size is 5388, 6854 > >>Coordinate System is: > >>PROJCS["NAD27 / UTM zone 19N", > >> GEOGCS["NAD27", > >> DATUM["North_American_Datum_1927", > >> SPHEROID["Clarke 1866",6378206.4,294.9786982138982, > >> AUTHORITY["EPSG","7008"]], > >> AUTHORITY["EPSG","6267"]], > >> PRIMEM["Greenwich",0], > >> UNIT["degree",0.0174532925199433], > >> AUTHORITY["EPSG","4267"]], > >> PROJECTION["Transverse_Mercator"], > >> PARAMETER["latitude_of_origin",0], > >> PARAMETER["central_meridian",-69], > >> PARAMETER["scale_factor",0.9996], > >> PARAMETER["false_easting",500000], > >> PARAMETER["false_northing",0], > >> UNIT["metre",1, > >> AUTHORITY["EPSG","9001"]], > >> AUTHORITY["EPSG","26719"]] > >>Origin = (295125.999493999988772,4778305.842659999616444) > >>Pixel Size = (2.438400000000000,-2.438400000000000) > >>Metadata: > >> AREA_OR_POINT=Area > >> TIFFTAG_IMAGEDESCRIPTION=USGS GeoTIFF DRG 1:24000 Quad of > Manchester North. Product:522644 > >> TIFFTAG_SOFTWARE=USGS CD Archiver program tif2usgsdrg v.1.0 > >> TIFFTAG_DATETIME=1997:01:10 07:16:28 > >> TIFFTAG_XRESOLUTION=72 > >> TIFFTAG_YRESOLUTION=72 > >> TIFFTAG_RESOLUTIONUNIT=2 (pixels/inch) > >>Image Structure Metadata: > >> COMPRESSION=PACKBITS > >> INTERLEAVE=BAND > >>Corner Coordinates: > >>Upper Left ( 295125.999, 4778305.843) ( 71d31'7.66"W, 43d > 7'54.16"N) > >>Lower Left ( 295125.999, 4761593.049) ( 71d30'45.52"W, > 42d58'52.88"N) > >>Upper Right ( 308264.099, 4778305.843) ( 71d21'26.67"W, > 43d 8'6.54"N) > >>Lower Right ( 308264.099, 4761593.049) ( 71d21'5.95"W, > 42d59'5.20"N) > >>Center ( 301695.049, 4769949.446) ( 71d26'6.44"W, 43d > 3'29.80"N) > >>Band 1 Block=5388x1 Type=Byte, ColorInterp=Palette > >> Color Table (RGB with 256 entries) > >> 0: 0,0,0,255 > >> 1: 255,255,255,255 > >> 2: 0,151,164,255 > >> 3: 203,0,23,255 > >> 4: 131,66,37,255 > >> 5: 201,234,157,255 > >> 6: 137,51,128,255 > >> 7: 255,234,0,255 > >> 8: 167,226,226,255 > >> 9: 255,184,184,255 > >> 10: 218,179,214,255 > >> 11: 209,209,209,255 > >> 12: 207,164,142,255 > >>(etc...) > > > >>And my map file looks like this: > > > >>MAP > >>NAME DEMO > >>STATUS ON > >>SIZE 400 300 > >>SYMBOLSET ../etc/symbols.sym > >>EXTENT -72 42 -71 44 > >>UNITS dd > >>SCALEDENOM 24000 > >>SHAPEPATH "../data" > >>IMAGECOLOR 255 255 255 > >>FONTSET ../etc/fonts.txt > >>CONFIG "MS_ERRORFILE" "/tmp/ms_error.txt" > >># > >># Start of web interface definition > >># > >>WEB > >> MINSCALEDENOM 24000 > >> MAXSCALEDENOM 24000 > >># > >># On Windows systems, /tmp and /opt/fgs/tmp/ms_tmp/ should > be created at the root > >># of the drive where the .MAP file resides. > >># > >> IMAGEPATH "/opt/fgs/tmp/ms_tmp/" > >> IMAGEURL "/ms_tmp/" > >> LOG "/tmp/gmap.log" > >>END > > > >>LAYER > >> NAME usgs > >> METADATA > >> "DESCRIPTION" "USGS GeoTIFF" > >> END > >> TYPE RASTER > >> STATUS ON > >> DATA o43071a4.tif > >>END > > > >>END # Map File > > > > > > > >>_______________________________________________ > >>mapserver-users mailing list > >mapserver-users at lists.osgeo.org > >http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From damarmo at gmail.com Mon Feb 1 06:32:02 2010 From: damarmo at gmail.com (David Martinez Morata) Date: Mon, 1 Feb 2010 10:02:02 -0430 Subject: [mapserver-users] How to define a transparent background for a raster layer? Message-ID: <9771eb541002010632j4104d206x38b8cb29ed182921@mail.gmail.com> I have a WMS service with a re?aster layer, and I try to filter the white value of the background, but I don't know how...I search in the Mapserver Documentation but I don't found it. Some suggestions please? Thanks -- Martinez Morata David Thinking GIS -------------- next part -------------- An HTML attachment was scrubbed... URL: From thomas.bonfort at gmail.com Mon Feb 1 06:54:57 2010 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Mon, 1 Feb 2010 15:54:57 +0100 Subject: [mapserver-users] How to define a transparent background for a raster layer? In-Reply-To: <9771eb541002010632j4104d206x38b8cb29ed182921@mail.gmail.com> References: <9771eb541002010632j4104d206x38b8cb29ed182921@mail.gmail.com> Message-ID: the keyword you're looking for is OFFSITE -- thomas On Mon, Feb 1, 2010 at 15:32, David Martinez Morata wrote: > I have a WMS service with a re?aster layer, and I try to filter the white > value of the background, but I don't know how...I search in the Mapserver > Documentation but I don't found it. > > Some suggestions please? > > Thanks > > -- > Martinez Morata David > Thinking GIS > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > From martijnvanderpauw at gmail.com Mon Feb 1 07:48:49 2010 From: martijnvanderpauw at gmail.com (windfreak) Date: Mon, 1 Feb 2010 07:48:49 -0800 (PST) Subject: [mapserver-users] display isolines with raster data Message-ID: <1265039329115-4495049.post@n2.nabble.com> I am wondering if it's possible to present isolines from raster data. I have NETCDF/GRIB/HDF5 data and want to plot lines. Until now I haven't found any examples like that. If it's not possible, I think the best workaround is to create an application that generates shapefiles from raster data. Then I can use these shapefiles to plot lines with mapserver. Do you have suggestions for better workarounds? ----- http://www.topspots.org -- View this message in context: http://n2.nabble.com/display-isolines-with-raster-data-tp4495049p4495049.html Sent from the Mapserver - User mailing list archive at Nabble.com. From warmerdam at pobox.com Mon Feb 1 07:57:05 2010 From: warmerdam at pobox.com (Frank Warmerdam) Date: Mon, 01 Feb 2010 10:57:05 -0500 Subject: [mapserver-users] display isolines with raster data In-Reply-To: <1265039329115-4495049.post@n2.nabble.com> References: <1265039329115-4495049.post@n2.nabble.com> Message-ID: <4B66F9D1.9060202@pobox.com> windfreak wrote: > I am wondering if it's possible to present isolines from raster data. I have > NETCDF/GRIB/HDF5 data and want to plot lines. Until now I haven't found any > examples like that. > > If it's not possible, I think the best workaround is to create an > application that generates shapefiles from raster data. Then I can use these > shapefiles to plot lines with mapserver. Do you have suggestions for better > workarounds? Windfreak, MapServer does not support computing isolines on the fly, though you might get a vaguely similar effect by defining a class for each iso level with different colors. You can use the GDAL/OGR gdal_contour utility to produce iso-contours from a raster file. Be aware that it produces very fine isolines with one segment for each pixel crossed so some simplification might be appropriate before using the results for map rendering. 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 | Geospatial Programmer for Rent From Steve.Lime at state.mn.us Mon Feb 1 10:24:05 2010 From: Steve.Lime at state.mn.us (Lime, Steve D (DNR)) Date: Mon, 1 Feb 2010 12:24:05 -0600 Subject: [mapserver-users] FW: [OSGeo-Discuss] FOSS4G 2010 Call for Abstract Message-ID: Apologies for the cross post... Steve -----Original Message----- From: discuss-bounces at lists.osgeo.org [mailto:discuss-bounces at lists.osgeo.org] On Behalf Of Tyler Mitchell (OSGeo) Sent: Monday, February 01, 2010 12:21 PM To: OSGeo Discussions Subject: [OSGeo-Discuss] FOSS4G 2010 Call for Abstract We are pleased to announce the Call for Abstract for the FOSS4G (Free and Open Source Software for Geospatial) 2010 conference, being held September 6-9, in beautiful Barcelona, Spain. Held annually, FOSS4G is the premier conference for the open source geospatial community, providing a full-immersion experience in established and leading edge geospatial technologies for developers, users, and people new to open source geospatial. http://2010.foss4g.org FOSS4G 2010 presentations are 25 minute talks, with 5 minute question and answer sessions at the end. Presentations cover the use or development of open source geospatial software. Anyone can can submit a presentation proposal and take part in the conference as a presenter. Some topics of interest for this year are: * Case Studies: Relate the experiences of you and your organization using open source geospatial. Where do things work well? Poorly? What problems did you solve, and at what cost? What do you recommend for others? Why? * Benchmarks: Comparisons between pieces of geospatial software. How do features compare? Speed? Ease of use? What do you recommend for others? * Visualization: Tell about your tips and tricks for effective visualization. How do you present information in a compelling way? 3D? Cartographic tricks? Labelling and naming ideas? Graphs and hybrid map/data combinations? * Development: What are the new developments in your open source geospatial software product? How does it work, how do people use it, what are the technical issues you are running into? * Hacks and Mashing: Have you put together something novel or cool this year? What did you stick together, how did it work, show us your gizmo! * Collaboration: What techniques are you using to improve collaboration between organizations and between individuals. Public geodata, collaborative data collection, data sharing, open standards, de facto standards, and more! If you have an open source geospatial story to tell, we want to hear it! For more information, see the FOSS4G site: http://2010.foss4g.org/presentations.php The deadline for abstract submissions is April 1, 2010. Submit early, submit often! Academic Track The FOSS4G 2010 academic track aims to bringing together researchers, developers, users and practitioners carrying out research and development in the geospatial and the free and open source fields and willing to share original and recent research developments and experiences. The academic track will act as an inventory of current research topics, but the major goal is to promote cooperative research between OSGeo developers and the academia. The academic track is the right forum to highlight the most important research challenges and trends in the domain, and let them became the basis for an informal OSGeo research agenda. It will foster interdisciplinary discussions in all aspects of the geospatial and free and open source domains. It will be organized in a way to promote networking between the participants, to initiate and favour discussions regarding cutting-edge technologies in the field, to exchange research ideas and to promote international collaboration. Submission guidelines All submissions to the academic track must be original unpublished work written in English. Papers should not exceed the 6000 words limit. Formatting guidelines will be available soon. Submitted papers will be thoroughly reviewed by three members of the international scientific committee and refereed for their quality, originality and relevance. Submission deadline (full paper for the academic track) - May, 31th, 2010 upcoming milestones * 15 Jan 2010, Call for Workshops/Tutorials opens * 30 Jan 2010, Call for Workshops/Tutorials closes * 1 Feb 2010, Call for Abstracts opens * 16 Feb 2010, Notification of acceptance for workshops/tutorials * 22 Feb 2010, Registration for workshop and tutorials opens * 1 Apr 2010, Abstract submission deadline * 1 May 2010, Presenters notified of acceptance for talks * 15 Jun 2010, Author/Early registration deadline * 15 Jul 2010 Full article submission deadline * Aug 2010, Completed program available * 6-7 Sep 2010, FOSS4G Workshops * 7-9 Sep 2010, FOSS4G Presentations and Tutorials * 10 Sep 2010, FOSS4G Code Sprint _______________________________________________ Discuss mailing list Discuss at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/discuss From chrisgnicholas at att.net Mon Feb 1 10:20:14 2010 From: chrisgnicholas at att.net (Chris Nicholas) Date: Mon, 1 Feb 2010 10:20:14 -0800 (PST) Subject: [mapserver-users] transparent on black for tindex layers? Message-ID: <716159.8692.qm@web180112.mail.gq1.yahoo.com> greetings - I was wondering if 'there are ways' to have the same 'transparent on black' performed on raster tindex layers, as is done so well by the gdal_merge.py routine. gotta few thousand reprojected images in Haiti suffering the black-triangle blues when I make them a single layer; see 1:5000 and below on the varioous layers at: http://wms.cis.rit.edu/cgi-bin/mapserv.csh?map=/local2/home/cnicholas/mapfiles/haiti.map&Request=GetCapabilities thanks! Chris From pmoen at nd.gov Mon Feb 1 12:42:09 2010 From: pmoen at nd.gov (Moen, Paul T.) Date: Mon, 1 Feb 2010 14:42:09 -0600 Subject: [mapserver-users] php mapscript loadQuery problem Message-ID: I have not been able to get loadQuery to work. The saveQuery command creates the file and returns MS_SUCCESS. When I try to load the file using loadQuery, it always returns MS_FAILURE. I get no other errors. The permissions are good. Is there a way to enable more verbose error logging to find out what is going on? Is there any documentation on what should be in the saved file? The following is the text from one of the saved query files. MapServer Query - Generated by msSaveQuery() 1 2 83 -1 -1 -1 0 0 2183769.22727273 944435.909090909 2331977.40909091 1066349.09090909 -1 -1 1 NULL NULL -1 0 This is my version. MapServer version 5.6.1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=SWF OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=CAIRO SUPPORTS=FREETYPE SUPPORTS=ICONV SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=SOS_SERVER SUPPORTS=GEOS INPUT=EPPL7 INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE Thanks, Paul -------------- next part -------------- An HTML attachment was scrubbed... URL: From Steve.Lime at state.mn.us Mon Feb 1 13:55:42 2010 From: Steve.Lime at state.mn.us (Lime, Steve D (DNR)) Date: Mon, 1 Feb 2010 15:55:42 -0600 Subject: [mapserver-users] php mapscript loadQuery problem In-Reply-To: References: Message-ID: I'll send you more details when I get time tonite (I hope) and can test things. I've been using 5.6 save/load query functions a ton via the CGI but not PHP. I tested a bunch with Perl MapScript and will have to check those methods against what PHP is doing. Here's what the lines mean: Line - Contents 0 - magic string 1 - mode, type (single or multiple), qlayer, slayer 2 - point x, point y, buffer, max results (queryByPoint) 3 - query rect (minx, miny, maxx, maxy) (queryByRect) 4 - shp index, tile index, clear cache flag (queryByIndex) 5 - qitem or NULL (queryByAttribute) 6 - qstring or NULL 7 - operator (used by WFS) 8+ - query shape (queryByShape) Basically each line or so after the first couple match a MapServer query method and it's parameters. The file contents look fine to me. The query file parser will throw a detailed error message if it has a parsing problem. Steve From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Moen, Paul T. Sent: Monday, February 01, 2010 2:42 PM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] php mapscript loadQuery problem I have not been able to get loadQuery to work. The saveQuery command creates the file and returns MS_SUCCESS. When I try to load the file using loadQuery, it always returns MS_FAILURE. I get no other errors. The permissions are good. Is there a way to enable more verbose error logging to find out what is going on? Is there any documentation on what should be in the saved file? The following is the text from one of the saved query files. MapServer Query - Generated by msSaveQuery() 1 2 83 -1 -1 -1 0 0 2183769.22727273 944435.909090909 2331977.40909091 1066349.09090909 -1 -1 1 NULL NULL -1 0 This is my version. MapServer version 5.6.1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=SWF OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=CAIRO SUPPORTS=FREETYPE SUPPORTS=ICONV SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=SOS_SERVER SUPPORTS=GEOS INPUT=EPPL7 INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE Thanks, Paul -------------- next part -------------- An HTML attachment was scrubbed... URL: From Morten.Sickel at nrpa.no Tue Feb 2 01:51:39 2010 From: Morten.Sickel at nrpa.no (Morten Sickel) Date: Tue, 2 Feb 2010 10:51:39 +0100 Subject: [mapserver-users] Projection and mapquery In-Reply-To: <4B61E870.40305@rogers.com> References: <0CE0A03D0F390E46B12B64489D20B1D406BA300A52@MAILHUB.NRPA.LOCAL> <4B61E870.40305@rogers.com> Message-ID: <0CE0A03D0F390E46B12B64489D20B1D406BA2BFCBD@MAILHUB.NRPA.LOCAL> Josh, Thanks, but could you please elaborate this a bit? Do you mean that you are doing a reprojection in mapscript of the projected layer or that you are projecting the layer 'as saved' before mapserver gets to see i at all? since the query is towards the map object, I cannot see how I can do any more reprojection of the layer, except what has been done when the layer was plotted. -- Morten Sickel Norwegian Radiation Protection Authority -----Original Message----- From: Josh Hevenor [mailto:jhevenor at rogers.com] Sent: Thursday, January 28, 2010 8:42 PM To: Morten Sickel Subject: Re: [mapserver-users] Projection and mapquery I have to wrap my head around this subject every time I come back to it. I've only done this using $layer->queryByPoint() and I tend to project both the layer and the point into the map projection. Not much of a hint but something to consider, Josh Morten Sickel wrote: > I presently have a set up in which I plot some measurements on some > background maps. Things work fine, but I want to add the possibility > to query the measurement data set by clicking on a measurement. The > measurements have coordinates in lat lon and I only manage to query > those data if I plot the entire map in the same projection. > Are there any ways to overcome this? As I am mostly working on maps from 60 deg north and upwards, geographical projection > is not the projection of choise and I would prefer not having to reproject the measurement data. > > From bastian2025 at gmx.de Tue Feb 2 03:54:35 2010 From: bastian2025 at gmx.de (Basti2025) Date: Tue, 2 Feb 2010 03:54:35 -0800 (PST) Subject: [mapserver-users] high quality print from external wms Message-ID: <1265111675995-4500369.post@n2.nabble.com> Hi all, i got an external wms included in my mapfile, like this: LAYER NAME 'grenzen_50000' TYPE RASTER STATUS ON CONNECTION 'http://....????????????????..........?SERVICE=WMS&' CONNECTIONTYPE WMS METADATA 'wms_srs' 'EPSG:31467' 'wms_title' 'Grenzen 50000' 'wms_name' 'grenzen_50000' 'wms_format' 'image/png' 'wms_server_version' '1.1.1' 'wms_onlineresource' 'http://....????????????????..........SERVICE=WMS&version=1.1.1&service=WMS&request=GetLegendGraphic&layer=grenzen_50000&format=image/png&STYLE=default' END END Normaly the wms is not able to print with 288dpi. My question is, how can i mod my mapfile so that i can use high quality print with an external wms. thx, basti -- View this message in context: http://n2.nabble.com/high-quality-print-from-external-wms-tp4500369p4500369.html Sent from the Mapserver - User mailing list archive at Nabble.com. From Morten.Sickel at nrpa.no Tue Feb 2 04:20:26 2010 From: Morten.Sickel at nrpa.no (Morten Sickel) Date: Tue, 2 Feb 2010 13:20:26 +0100 Subject: [mapserver-users] Projection and mapquery In-Reply-To: <0CE0A03D0F390E46B12B64489D20B1D406BA2BFCBD@MAILHUB.NRPA.LOCAL> References: <0CE0A03D0F390E46B12B64489D20B1D406BA300A52@MAILHUB.NRPA.LOCAL> <4B61E870.40305@rogers.com> <0CE0A03D0F390E46B12B64489D20B1D406BA2BFCBD@MAILHUB.NRPA.LOCAL> Message-ID: <0CE0A03D0F390E46B12B64489D20B1D406BA2BFCC0@MAILHUB.NRPA.LOCAL> OK, i found a workaround to the original problem: > I presently have a set up in which I plot some measurements on some > background maps. Things work fine, but I want to add the possibility > to query the measurement data set by clicking on a measurement. The > measurements have coordinates in lat lon and I only manage to query > those data if I plot the entire map in the same projection. (the map should be in utm, I would prefer not having to reproject the measurement locations) I create a new map object with the layer to be queried, set the projection of the new map object to the same as the queried layer and then I do a queryByPoint on the new map object. This works to get find a object. To plot the query map, I get a unique id for the selected point, do a queryByAttributes on the corresponding layer in the drawn map. -- Morten Sickel Norwegian Radiation Protection Authority === php code == some parts removed // I am querying a map layer called "mobile" // I am using smarty templating for my php script, if you don't know that, just consider the // $smarty->assign calls as a way to get something printed out. function pix2geo($mapx,$mapy,$minx,$miny,$maxx,$maxy,$sizex,$sizey) // calculates geographical coordinates in the map from click coordinates on the image { list($miny,$maxy)=array($maxy,$miny); // swaps miny and max y since the coordinates acsends upwards in the map, downwards in the picture $geopoint=array(); foreach( array('x','y') as $dim){ $p=array(); foreach(array('map','min','max','size') as $par){ $name="$par$dim"; $p[$par]=$$name; } $geowidth=$p['max']-$p['min']; $geopoint[$dim]=$p['map']/$p['size']*$geowidth+$p['min']; } return(array($geopoint['x'],$geopoint['y'])); } $map=ms_newMapObj($map_path.'mobilweb.map'); $foundresults=false; if($_GET['extent']){ list($minx,$miny,$maxx,$maxy)=explode(" ",$_GET['extent']); $map->setextent($minx,$miny,$maxx,$maxy); } $clickpoint=ms_newpointObj(); $clickpoint->setXY($_GET['MAP_x']*1,$_GET['MAP_y']*1); if(!isset($_GET['update'])){ if($_GET['action']=='QUERY'){ list($geoX,$geoY)=pix2geo($_GET['MAP_x']*1,$_GET['MAP_y']*1,$minx,$miny,$maxx,$maxy,$map->width,$map->height); $geopoint=ms_newpointObj(); $geopoint->setXY($geoX,$geoY); $mapproj=$map->getProjection(); $layerproj=$map->getlayerbyname('mobil')->getProjection(); if($mapproj!=$layerproj){ $oMapproj=ms_newProjectionObj($mapproj); $oLayerproj=ms_newProjectionObj($layerproj); $geopoint->project($oMapproj, $oLayerproj); // projects the point from the projection of the map to the projection of layer $newmap=$map->clone(); // Might be better to make a new object and then add the querylayer to that object $newmap->setProjection($layerproj); $querymap=$newmap; }else{ $querymap=$map; } $result=@$querymap->queryByPoint($geopoint, MS_SINGLE , -1); if ( $result==MS_FAILURE ) {$smarty->assign('mapmessage','No data found');} $layername='mobil'; $layerfield='id'; $oLayer = $querymap->GetLayerByName($layername); $numResults = $oLayer->getNumResults(); if($numResults){ $foundresults=true; $oLayer->open(); for ($iRes=0; $iRes < $numResults; $iRes++) { $oRes = $oLayer->getResult($iRes); $oShape = $oLayer->getShape($oRes->tileindex,$oRes->shapeindex); $result=$oShape->values[$layerfield]; $smarty->assign('queryresult',$result); $smarty->assign('querytime',date("Y.m.d H:i:s",$oShape->values['utctime'])); $oShape->free; } $oLayer->close; if($querymap!=$map){ // Must transfer the information back to the map that is to be plotted // NB, the field I'm using is the primary index in the database table, i know it is unique. $oLayer=$map->GetLayerByName($layername); $oLayer->queryByAttributes($layerfield,$result,MS_SINGLE); } } } } From paul_pag00 at hotmail.com Tue Feb 2 06:49:09 2010 From: paul_pag00 at hotmail.com (Paul Alarcon) Date: Tue, 2 Feb 2010 06:49:09 -0800 (PST) Subject: [mapserver-users] dinamic layer mapfile Message-ID: <1265122149293-4501207.post@n2.nabble.com> Hello, im using mapserver, since a while, but i have a dout, there is a way to make a layer from a view, im using postgis, and i want to make a dinamic layer using a view insted of a table, is this posible, which is the best way to do it? Thanks a lot Paul A. -- View this message in context: http://n2.nabble.com/dinamic-layer-mapfile-tp4501207p4501207.html Sent from the Mapserver - User mailing list archive at Nabble.com. From jgolinowski at codematix.de Tue Feb 2 07:42:41 2010 From: jgolinowski at codematix.de (Jana Golinowski) Date: Tue, 02 Feb 2010 16:42:41 +0100 Subject: [mapserver-users] dinamic layer mapfile In-Reply-To: <1265122149293-4501207.post@n2.nabble.com> References: <1265122149293-4501207.post@n2.nabble.com> Message-ID: <4B6847F1.2050306@codematix.de> Hi Paul, > Hello, im using mapserver, since a while, but i have a dout, there is a way > to make a layer from a view, im using postgis, and i want to make a dinamic > layer using a view insted of a table, is this posible, which is the best way > to do it? you have to insert your view into geometry_columns at least. Greetings, Jana. From cp_n18 at yahoo.com Tue Feb 2 08:32:19 2010 From: cp_n18 at yahoo.com (Jon Miner) Date: Tue, 2 Feb 2010 08:32:19 -0800 (PST) Subject: [mapserver-users] Using e00 files Message-ID: <506038.40546.qm@web111403.mail.gq1.yahoo.com> Making progress... Thanks to everyone's help, I have a simple app displaying a USGS Topo sheet using GeoTIFF. Now, I'm trying to layer on information from the GRANIT website: http://www.granit.unh.edu/ ftp://ftp.granit.sr.unh.edu/pub/GRANIT_Data/Vector_Data/Transportation_Networks/d-railroads/rrnh.e00 These files are "e00" files. Based on some other mailing list entries, I used the ogr2ogr command to convert the file into Shapefiles: ogr2ogr -f "ESRI Shapefile" temp ../data/rrnh.e00 then copied the files into my data directory, and added a new layer to the map file: LAYER NAME "rail" TYPE LINE STATUS on DATA nhrail CLASS NAME "Railroads" SYMBOL 0 COLOR 168 0 184 END END Something is wrong since the line data does not get rendered. Maybe there is a better approach instead of converting to Shapefiles? From David.Fawcett at state.mn.us Tue Feb 2 09:07:29 2010 From: David.Fawcett at state.mn.us (Fawcett, David (MPCA)) Date: Tue, 2 Feb 2010 11:07:29 -0600 Subject: [mapserver-users] Using e00 files In-Reply-To: <506038.40546.qm@web111403.mail.gq1.yahoo.com> References: <506038.40546.qm@web111403.mail.gq1.yahoo.com> Message-ID: Jon, If you are not calling the layer name explicitly in the URL, try setting the layer status to DEFAULT. David. -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Jon Miner Sent: Tuesday, February 02, 2010 10:32 AM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] Using e00 files Making progress... Thanks to everyone's help, I have a simple app displaying a USGS Topo sheet using GeoTIFF. Now, I'm trying to layer on information from the GRANIT website: http://www.granit.unh.edu/ ftp://ftp.granit.sr.unh.edu/pub/GRANIT_Data/Vector_Data/Transportation_Networks/d-railroads/rrnh.e00 These files are "e00" files. Based on some other mailing list entries, I used the ogr2ogr command to convert the file into Shapefiles: ogr2ogr -f "ESRI Shapefile" temp ../data/rrnh.e00 then copied the files into my data directory, and added a new layer to the map file: LAYER NAME "rail" TYPE LINE STATUS on DATA nhrail CLASS NAME "Railroads" SYMBOL 0 COLOR 168 0 184 END END Something is wrong since the line data does not get rendered. Maybe there is a better approach instead of converting to Shapefiles? _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From pschweitzer at usgs.gov Tue Feb 2 09:24:44 2010 From: pschweitzer at usgs.gov (Peter N. Schweitzer) Date: Tue, 02 Feb 2010 12:24:44 -0500 Subject: [mapserver-users] Using e00 files In-Reply-To: <506038.40546.qm@web111403.mail.gq1.yahoo.com> References: <506038.40546.qm@web111403.mail.gq1.yahoo.com> Message-ID: <4B685FDC.5010403@usgs.gov> On 02/02/2010 11:32 AM, Jon Miner wrote: > Now, I'm trying to layer on information from the GRANIT website: > > http://www.granit.unh.edu/ > > ftp://ftp.granit.sr.unh.edu/pub/GRANIT_Data/Vector_Data/Transportation_Networks/d-railroads/rrnh.e00 > > These files are "e00" files. Based on some other mailing list entries, I used the ogr2ogr command to convert the file into Shapefiles: > > ogr2ogr -f "ESRI Shapefile" temp ../data/rrnh.e00 > > then copied the files into my data directory, and added a new layer to the map file: > > LAYER > NAME "rail" > TYPE LINE > STATUS on > DATA nhrail > CLASS > NAME "Railroads" > SYMBOL 0 > COLOR 168 0 184 > END > END > > Something is wrong since the line data does not get rendered. Maybe there is a better approach instead of converting to Shapefiles? Jon, The rr data are in NH state plane coordinates--are the other data you are using in the same projection? Peter -- Peter N. Schweitzer (MS 954, U.S. Geological Survey, Reston, VA 20192) (703) 648-6533 FAX: (703) 648-6252 email: pschweitzer at usgs.gov From bfraser at geoanalytic.com Tue Feb 2 09:14:29 2010 From: bfraser at geoanalytic.com (Brent Fraser) Date: Tue, 02 Feb 2010 10:14:29 -0700 Subject: [mapserver-users] Using e00 files In-Reply-To: <506038.40546.qm@web111403.mail.gq1.yahoo.com> References: <506038.40546.qm@web111403.mail.gq1.yahoo.com> Message-ID: <4B685D75.2020308@geoanalytic.com> You haven't defined the LAYER's PROJECTION (we really should enhance mapserver to read .prj files!) Jon Miner wrote: > Making progress... Thanks to everyone's help, I have a simple app displaying a USGS Topo sheet using GeoTIFF. > > Now, I'm trying to layer on information from the GRANIT website: > > http://www.granit.unh.edu/ > > ftp://ftp.granit.sr.unh.edu/pub/GRANIT_Data/Vector_Data/Transportation_Networks/d-railroads/rrnh.e00 > > These files are "e00" files. Based on some other mailing list entries, I used the ogr2ogr command to convert the file into Shapefiles: > > ogr2ogr -f "ESRI Shapefile" temp ../data/rrnh.e00 > > then copied the files into my data directory, and added a new layer to the map file: > > LAYER > NAME "rail" > TYPE LINE > STATUS on > DATA nhrail > CLASS > NAME "Railroads" > SYMBOL 0 > COLOR 168 0 184 > END > END > > Something is wrong since the line data does not get rendered. Maybe there is a better approach instead of converting to Shapefiles? > > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From cp_n18 at yahoo.com Tue Feb 2 10:23:52 2010 From: cp_n18 at yahoo.com (Jon Miner) Date: Tue, 2 Feb 2010 10:23:52 -0800 (PST) Subject: [mapserver-users] Using e00 files In-Reply-To: References: <506038.40546.qm@web111403.mail.gq1.yahoo.com> Message-ID: <19016.20269.qm@web111416.mail.gq1.yahoo.com> Hi David, The layer name is explicitly called out in the URL; changing it to DEFAULT has no effect. - Jon ----- Original Message ---- From: "Fawcett, David (MPCA)" To: Jon Miner ; "mapserver-users at lists.osgeo.org" Sent: Tue, February 2, 2010 12:07:29 PM Subject: RE: [mapserver-users] Using e00 files Jon, If you are not calling the layer name explicitly in the URL, try setting the layer status to DEFAULT. David. -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Jon Miner Sent: Tuesday, February 02, 2010 10:32 AM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] Using e00 files Making progress... Thanks to everyone's help, I have a simple app displaying a USGS Topo sheet using GeoTIFF. Now, I'm trying to layer on information from the GRANIT website: http://www.granit.unh.edu/ ftp://ftp.granit.sr.unh.edu/pub/GRANIT_Data/Vector_Data/Transportation_Networks/d-railroads/rrnh.e00 These files are "e00" files. Based on some other mailing list entries, I used the ogr2ogr command to convert the file into Shapefiles: ogr2ogr -f "ESRI Shapefile" temp ../data/rrnh.e00 then copied the files into my data directory, and added a new layer to the map file: LAYER NAME "rail" TYPE LINE STATUS on DATA nhrail CLASS NAME "Railroads" SYMBOL 0 COLOR 168 0 184 END END Something is wrong since the line data does not get rendered. Maybe there is a better approach instead of converting to Shapefiles? _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From mrdouville at shaw.ca Tue Feb 2 11:03:09 2010 From: mrdouville at shaw.ca (Michelle Douvil) Date: Tue, 2 Feb 2010 11:03:09 -0800 (PST) Subject: [mapserver-users] Re: GetFeatureINFO errors in Mapserver notoccurringin Geoserver. In-Reply-To: <1240594965541-2693869.post@n2.nabble.com> References: <1240520397380-2686390.post@n2.nabble.com> <49F0933E.5157.008F.0@dnr.state.mn.us> <1240530355847-2688375.post@n2.nabble.com> <49F171C9.5157.008F.0@dnr.state.mn.us> <1240590894559-2693553.post@n2.nabble.com> <1240594965541-2693869.post@n2.nabble.com> Message-ID: <1265137389137-4502863.post@n2.nabble.com> Just an update to the problem we are having with the spatial views in ORACLE/SDE.. It turns out that some, and I am not sure all, of our spatial views in SDE 9.1 will work with a GetFEATUREINFO request IF the OBJECTID is dropped from the SVW. This is not an ideal solution however, since other applications (Arcgis Desktop, Geoserver etc), may start to have a problems without the OBJECTID in the the SVW. This is counterintuitive to what I understand about OBJECTIDs.. http://webhelp.esri.com/arcgisdesktop/9.3/index.cfm?TopicName=About_ObjectID_fields http://webhelp.esri.com/arcgisdesktop/9.3/index.cfm?TopicName=About_ObjectID_fields It would be great if we could narrow down what it is about OBJECTIDs in Spatial Views that Mapserver does not like.. Many thanks! Michelle -- View this message in context: http://n2.nabble.com/GetFeatureINFO-errors-in-Mapserver-not-occurring-in-Geoserver-tp2686390p4502863.html Sent from the Mapserver - User mailing list archive at Nabble.com. From jbloc1878 at googlemail.com Tue Feb 2 12:04:09 2010 From: jbloc1878 at googlemail.com (jbloc1878 at googlemail.com) Date: Tue, 2 Feb 2010 20:04:09 +0000 Subject: [mapserver-users] Maxextent , resolution and zoom issue Message-ID: <0DF1146A-1C7F-42F5-8314-2134AE86FBB5@googlemail.com> Hi, i have been struggling with this problem for some time now. Basically I am trying to display two layers. 50k and 250K of the uk. Can anyone explain further what resolution, maxextent and zoom values I should have to display these layers correctly? My layers cover the whole of the UK. I have tried quite a few different values however I cannot make sense of how this works. The example I am referring to is below. Thanks for any help in advance Create an options object that holds a limited set of map resolutions and a maximum bounding extent to show the map. A new OS OpenSpace map object is created by passing in our 'map' HTML div element id and the map options. 1. var options = {resolutions: [10, 5], 2. maxExtent: new OpenSpace.MapBounds(400000, 100000, 450000, 150000) ); 3. osMap = new OpenSpace.Map('map', options); We now set the centre of the map and set the initial map zoom level to 1 (corresponding to the second defined layer in the resolutions array). 1. osMap osMap.setCenter(new OpenSpace.MapPoint(400000,100000), 1); Cheers -------------- next part -------------- An HTML attachment was scrubbed... URL: From cp_n18 at yahoo.com Tue Feb 2 12:50:45 2010 From: cp_n18 at yahoo.com (Jon Miner) Date: Tue, 2 Feb 2010 12:50:45 -0800 (PST) Subject: [mapserver-users] Using e00 files In-Reply-To: <19016.20269.qm@web111416.mail.gq1.yahoo.com> References: <506038.40546.qm@web111403.mail.gq1.yahoo.com> <19016.20269.qm@web111416.mail.gq1.yahoo.com> Message-ID: <207424.5231.qm@web111405.mail.gq1.yahoo.com> I've added the output from `ogrinfo -summary` at the bottom off this thread... -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Jon Miner Sent: Tuesday, February 02, 2010 10:32 AM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] Using e00 files Making progress... Thanks to everyone's help, I have a simple app displaying a USGS Topo sheet using GeoTIFF. Now, I'm trying to layer on information from the GRANIT website: http://www.granit.unh.edu/ ftp://ftp.granit.sr.unh.edu/pub/GRANIT_Data/Vector_Data/Transportation_Networks/d-railroads/rrnh.e00 These files are "e00" files. Based on some other mailing list entries, I used the ogr2ogr command to convert the file into Shapefiles: ogr2ogr -f "ESRI Shapefile" temp ../data/rrnh.e00 then copied the files into my data directory, and added a new layer to the map file: LAYER NAME "rail" TYPE LINE STATUS on DATA nhrail CLASS NAME "Railroads" SYMBOL 0 COLOR 168 0 184 END END Something is wrong since the line data does not get rendered. Maybe there is a better approach instead of converting to Shapefiles? ----------------------------------------- $ ogrinfo -summary nhrail.shp nhrail INFO: Open of `nhrail.shp' using driver `ESRI Shapefile' successful. Layer name: nhrail Geometry: Line String Feature Count: 2207 Extent: (745250.250000, 70273.328000) - (1231517.800000, 915630.000000) Layer SRS WKT: PROJCS["NAD83 / New Hampshire", GEOGCS["GCS_North_American_1983", DATUM["North_American_Datum_1983", SPHEROID["GRS_1980",6378137,298.257222101]], PRIMEM["Greenwich",0], UNIT["Degree",0.017453292519943295]], PROJECTION["Transverse_Mercator"], PARAMETER["latitude_of_origin",42.5], PARAMETER["central_meridian",-71.66666666666667], PARAMETER["scale_factor",0.999966667], PARAMETER["false_easting",984250.031003876], PARAMETER["false_northing",0], UNIT["Foot_US",0.3048006]] UserId: Real (11.0) FNODE_: Real (11.0) TNODE_: Real (11.0) LPOLY_: Real (11.0) RPOLY_: Real (11.0) LENGTH: Real (12.3) RRNH#: Integer (5.0) RRNH-ID: Integer (5.0) GRANITID: Integer (8.0) RRA: Integer (2.0) From wendell at enflight.com Tue Feb 2 13:34:46 2010 From: wendell at enflight.com (Wendell Turner) Date: Tue, 2 Feb 2010 21:34:46 +0000 Subject: [mapserver-users] areas of high res Message-ID: <20100202213446.GA455@cloud3.rho.net> The base layer of my map has full coverage of the US at a scale of 1:500,000. That works fine. I have some areas of detail that have tif files at a scale of 1:250,000. What do I put in the mapfile to say 'use high res if available for this tile, otherwise use the low res one'? Thanks, Wendell From Jukka.Rahkonen at mmmtike.fi Tue Feb 2 14:30:28 2010 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Wed, 3 Feb 2010 00:30:28 +0200 Subject: [mapserver-users] areas of high res References: <20100202213446.GA455@cloud3.rho.net> Message-ID: Hi, Easy solution is to push all the images into same tileindex. Add a new attribute, let's say "draw_order" and give value 1 for 1:500000 images, value 2 for 1:250000 images. Run the tileindex through "sortshp" utility and sort it by draw_order. Now Mapserver will draw both tiffs in overlapping area, but high-resolution will be on top. Improved way is to remove those tiles which will not be drawn from the tileindex. It goes well with OpenJUMP but there is a little bit work. - create tileindex of 1:500000 with draw_order field - create tileindex of 1:250000 with draw_order field - make union of all polygons in the 1:250000 tileindex - select polygons from 1:500000 which are covered by the union - delete selected polygons - combine what is left from 1:500000 tileindex and 1:250000 tileindex - sort with "sortshp". Now there will be less double rendering and 1:250000 areas will be faster. -Jukka Rahkonen- -----Alkuper?inen viesti----- L?hett?j?: mapserver-users-bounces at lists.osgeo.org puolesta: Wendell Turner L?hetetty: ti 2.2.2010 23:34 Vastaanottaja: mapserver-users at lists.osgeo.org Aihe: [mapserver-users] areas of high res The base layer of my map has full coverage of the US at a scale of 1:500,000. That works fine. I have some areas of detail that have tif files at a scale of 1:250,000. What do I put in the mapfile to say 'use high res if available for this tile, otherwise use the low res one'? Thanks, Wendell _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From tchaddad at gmail.com Tue Feb 2 15:10:40 2010 From: tchaddad at gmail.com (TC Haddad) Date: Tue, 2 Feb 2010 15:10:40 -0800 Subject: [mapserver-users] areas of high res In-Reply-To: <20100202213446.GA455@cloud3.rho.net> References: <20100202213446.GA455@cloud3.rho.net> Message-ID: <25de2c7c1002021510v10f1009dkdf4ea4acc975f7d5@mail.gmail.com> use two different tile indexes and use MIN- and MAXSCALEDENOM to control when they are each used. presumably you already have one tileindex working for the nationwide 500,000 scale images? so make a second one that is a compound index - looks like the above, but also includes the footprints of the 250,000 areas (replacing the 500,000 references in those areas). Switch between the two something like this: LAYER NAME "Overview Imagery" STATUS OFF TYPE RASTER TILEINDEX "img_index_500k" TILEITEM "PATH" MINSCALEDENOM 300001 END LAYER NAME "Detailed Imagery" STATUS OFF TYPE RASTER TILEINDEX "img_index_250k" TILEITEM "PATH" MAXSCALEDENOM 300000 END On Tue, Feb 2, 2010 at 1:34 PM, Wendell Turner wrote: The base layer of my map has full coverage of the US at a > scale of 1:500,000. That works fine. I have some areas of > detail that have tif files at a scale of 1:250,000. What do > I put in the mapfile to say 'use high res if available for > this tile, otherwise use the low res one'? > > Thanks, > > Wendell > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -------------- next part -------------- An HTML attachment was scrubbed... URL: From crschmidt at metacarta.com Tue Feb 2 15:23:01 2010 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Tue, 2 Feb 2010 18:23:01 -0500 Subject: [mapserver-users] areas of high res In-Reply-To: <25de2c7c1002021510v10f1009dkdf4ea4acc975f7d5@mail.gmail.com> References: <20100202213446.GA455@cloud3.rho.net> <25de2c7c1002021510v10f1009dkdf4ea4acc975f7d5@mail.gmail.com> Message-ID: <20100202232301.GG20135@metacarta.com> On Tue, Feb 02, 2010 at 03:10:40PM -0800, TC Haddad wrote: > use two different tile indexes and use MIN- and MAXSCALEDENOM to control > when they are each used. Or just don't use min/max at all, and just paint over the lower res layers with the higher res layers. -- Chris > presumably you already have one tileindex working for the nationwide 500,000 > scale images? > > so make a second one that is a compound index - looks like the above, but > also includes the footprints of the 250,000 areas (replacing the 500,000 > references in those areas). Switch between the two something like this: > > LAYER > NAME "Overview Imagery" > STATUS OFF > TYPE RASTER > TILEINDEX "img_index_500k" > TILEITEM "PATH" > MINSCALEDENOM 300001 > END > > LAYER > NAME "Detailed Imagery" > STATUS OFF > TYPE RASTER > TILEINDEX "img_index_250k" > TILEITEM "PATH" > MAXSCALEDENOM 300000 > END > > > > > > > > > On Tue, Feb 2, 2010 at 1:34 PM, Wendell Turner wrote: > > The base layer of my map has full coverage of the US at a > > scale of 1:500,000. That works fine. I have some areas of > > detail that have tif files at a scale of 1:250,000. What do > > I put in the mapfile to say 'use high res if available for > > this tile, otherwise use the low res one'? > > > > Thanks, > > > > Wendell > > > > _______________________________________________ > > mapserver-users mailing list > > mapserver-users at lists.osgeo.org > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Christopher Schmidt MetaCarta From wendell at enflight.com Tue Feb 2 15:34:05 2010 From: wendell at enflight.com (Wendell Turner) Date: Tue, 2 Feb 2010 23:34:05 +0000 Subject: [mapserver-users] areas of high res In-Reply-To: <20100202232301.GG20135@metacarta.com> References: <20100202213446.GA455@cloud3.rho.net> <25de2c7c1002021510v10f1009dkdf4ea4acc975f7d5@mail.gmail.com> <20100202232301.GG20135@metacarta.com> Message-ID: <20100202233405.GA6050@cloud3.rho.net> On Tue, Feb 02, 2010 at 06:23:01PM -0500, Christopher Schmidt wrote: > On Tue, Feb 02, 2010 at 03:10:40PM -0800, TC Haddad wrote: > > use two different tile indexes and use MIN- and MAXSCALEDENOM to control > > when they are each used. Is that done by listing the higher res layer items after the lower res itesm in the arguments to gdaltindex? That appears to work, but is it loading tiles twice where the high res areas are? P.s., thanks for all the responses. > Or just don't use min/max at all, and just paint over the lower res > layers with the higher res layers. > > -- Chris > > > presumably you already have one tileindex working for the nationwide 500,000 > > scale images? > > > > so make a second one that is a compound index - looks like the above, but > > also includes the footprints of the 250,000 areas (replacing the 500,000 > > references in those areas). Switch between the two something like this: > > > > LAYER > > NAME "Overview Imagery" > > STATUS OFF > > TYPE RASTER > > TILEINDEX "img_index_500k" > > TILEITEM "PATH" > > MINSCALEDENOM 300001 > > END > > > > LAYER > > NAME "Detailed Imagery" > > STATUS OFF > > TYPE RASTER > > TILEINDEX "img_index_250k" > > TILEITEM "PATH" > > MAXSCALEDENOM 300000 > > END > > > > > > > > > > > > > > > > > > On Tue, Feb 2, 2010 at 1:34 PM, Wendell Turner wrote: > > > > The base layer of my map has full coverage of the US at a > > > scale of 1:500,000. That works fine. I have some areas of > > > detail that have tif files at a scale of 1:250,000. What do > > > I put in the mapfile to say 'use high res if available for > > > this tile, otherwise use the low res one'? > > > > > > Thanks, > > > > > > Wendell > > > > > > _______________________________________________ > > > mapserver-users mailing list > > > mapserver-users at lists.osgeo.org > > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > > > _______________________________________________ > > mapserver-users mailing list > > mapserver-users at lists.osgeo.org > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > -- > Christopher Schmidt > MetaCarta From tchaddad at gmail.com Tue Feb 2 15:54:53 2010 From: tchaddad at gmail.com (TC Haddad) Date: Tue, 2 Feb 2010 15:54:53 -0800 Subject: [mapserver-users] areas of high res In-Reply-To: <20100202233405.GA6050@cloud3.rho.net> References: <20100202213446.GA455@cloud3.rho.net> <25de2c7c1002021510v10f1009dkdf4ea4acc975f7d5@mail.gmail.com> <20100202232301.GG20135@metacarta.com> <20100202233405.GA6050@cloud3.rho.net> Message-ID: <25de2c7c1002021554q3e83b431u91939b43c8a8da8a@mail.gmail.com> On Tue, Feb 2, 2010 at 3:34 PM, Wendell Turner wrote: > Is that done by listing the higher res layer items after the > lower res itesm in the arguments to gdaltindex? Yes - draw order is from top to bottom in a map file. > That appears > to work, but is it loading tiles twice where the high res > areas are? > If you do not use a compound index, then yes (that's what Chris means by "paint over") Either way you should still use MAXSCALEDENOM to stop the 250k images from being drawn at way zoomed out levels. -------------- next part -------------- An HTML attachment was scrubbed... URL: From vasileestan at gmail.com Tue Feb 2 17:19:11 2010 From: vasileestan at gmail.com (Vasile Cristian Stan) Date: Tue, 2 Feb 2010 17:19:11 -0800 (PST) Subject: [mapserver-users] qGIS mapfile error! Message-ID: <1265159951129-4504943.post@n2.nabble.com> I've created a mapfile using qGiS and when i run mapfile on the mapserver it gives me this error: loadSymbolSet(): Unable to access file. (./symbols/symbols.txt) any ideas? Thanks! -- View this message in context: http://n2.nabble.com/qGIS-mapfile-error-tp4504943p4504943.html Sent from the Mapserver - User mailing list archive at Nabble.com. -------------- next part -------------- An HTML attachment was scrubbed... URL: From crschmidt at metacarta.com Tue Feb 2 17:35:13 2010 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Tue, 2 Feb 2010 20:35:13 -0500 Subject: [mapserver-users] areas of high res In-Reply-To: <20100202233405.GA6050@cloud3.rho.net> References: <20100202213446.GA455@cloud3.rho.net> <25de2c7c1002021510v10f1009dkdf4ea4acc975f7d5@mail.gmail.com> <20100202232301.GG20135@metacarta.com> <20100202233405.GA6050@cloud3.rho.net> Message-ID: <20100203013513.GH20135@metacarta.com> On Tue, Feb 02, 2010 at 11:34:05PM +0000, Wendell Turner wrote: > On Tue, Feb 02, 2010 at 06:23:01PM -0500, Christopher Schmidt wrote: > > On Tue, Feb 02, 2010 at 03:10:40PM -0800, TC Haddad wrote: > > > use two different tile indexes and use MIN- and MAXSCALEDENOM to control > > > when they are each used. > > Is that done by listing the higher res layer items after the > lower res itesm in the arguments to gdaltindex? That appears > to work, but is it loading tiles twice where the high res > areas are? Sure, or making two different layers in the mapfile. And yes, it is. If you're in an 'edge' though, you'll want to have both on, right? So when someone gets to the viewable edge they don't end up with white/empty space? If so, there's not any other practical option. Regards, -- Christopher Schmidt MetaCarta From Gabe at Agtrix.com Tue Feb 2 19:00:46 2010 From: Gabe at Agtrix.com (Gabe Codina) Date: Wed, 3 Feb 2010 14:00:46 +1100 Subject: [mapserver-users] msplugin_mssql2008 and getFeature() In-Reply-To: <20100203013513.GH20135@metacarta.com> References: <20100202213446.GA455@cloud3.rho.net> <25de2c7c1002021510v10f1009dkdf4ea4acc975f7d5@mail.gmail.com> <20100202232301.GG20135@metacarta.com> <20100202233405.GA6050@cloud3.rho.net> <20100203013513.GH20135@metacarta.com> Message-ID: <005701caa47d$15485690$3fd903b0$@com> Hi All I have a web mapping app based on ms 5.2.1 and php mapScript. Our business layers are stored in MSSQL2008 and were transferred from postgis some time ago. I have a requirement to highlight selected features on the map - the way this used to work was I would add a highlight layer to the map and addthe selected features to it by using getShape and addFeature. Using the mssql plugin my calls to getShape (and getFeature) always return FALSE. I know the features are there but they cannot be retrieved. Info: Sample data statement DATA "gExtent FROM (SELECT [iId],geometry::STGeomFromWKB([binExtentWKB], 4326) AS gExtent ,[cIdentifiers],[cLabel],[iSessionId] FROM [Scratch].[tManagementUnitsGeometry] WHERE [iSessionId] = 310) AS FOO USING UNIQUE [iId] USING SRID=4326" Some Mapscript if ($resTileShpIdx){ $resShape = $qLayer->getShape($resTileShpIdx, $resShpIdx); } else { $resShape = $qLayer->getFeature($resShpIdx); } ... $newResLayer->addFeature($resShape); Any help will be greatly appreciated. Gabe Codina From Jukka.Rahkonen at mmmtike.fi Tue Feb 2 21:23:50 2010 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Wed, 3 Feb 2010 07:23:50 +0200 Subject: [mapserver-users] areas of high res References: <20100202213446.GA455@cloud3.rho.net><25de2c7c1002021510v10f1009dkdf4ea4acc975f7d5@mail.gmail.com><20100202232301.GG20135@metacarta.com><20100202233405.GA6050@cloud3.rho.net> <20100203013513.GH20135@metacarta.com> Message-ID: Hi, That's why I am doing the tileindex editing exercise every time when we get updates for our imagery. I remove the totally covered old images from the tileindex but leave the overlapping ones. This way the double drawing is minimised. Have a try with shapefile editing, after doing it a few times it goes as fast as it takes to write how to do it. -Jukka- -----Alkuper?inen viesti----- L?hett?j?: mapserver-users-bounces at lists.osgeo.org puolesta: Christopher Schmidt L?hetetty: ke 3.2.2010 3:35 Vastaanottaja: Wendell Turner Kopio: mapserver-users at lists.osgeo.org Aihe: Re: [mapserver-users] areas of high res On Tue, Feb 02, 2010 at 11:34:05PM +0000, Wendell Turner wrote: > On Tue, Feb 02, 2010 at 06:23:01PM -0500, Christopher Schmidt wrote: > > On Tue, Feb 02, 2010 at 03:10:40PM -0800, TC Haddad wrote: > > > use two different tile indexes and use MIN- and MAXSCALEDENOM to control > > > when they are each used. > > Is that done by listing the higher res layer items after the > lower res itesm in the arguments to gdaltindex? That appears > to work, but is it loading tiles twice where the high res > areas are? Sure, or making two different layers in the mapfile. And yes, it is. If you're in an 'edge' though, you'll want to have both on, right? So when someone gets to the viewable edge they don't end up with white/empty space? If so, there's not any other practical option. Regards, -- Christopher Schmidt MetaCarta _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From James.Card at calcad.com Tue Feb 2 22:09:46 2010 From: James.Card at calcad.com (James Card) Date: Tue, 2 Feb 2010 22:09:46 -0800 Subject: [mapserver-users] qGIS mapfile error! In-Reply-To: <1265159951129-4504943.post@n2.nabble.com> References: <1265159951129-4504943.post@n2.nabble.com> Message-ID: On Tue, 02 Feb 2010 17:19:11 -0800, Vasile Cristian Stan wrote: > I've created a mapfile using qGiS and when i run mapfile on the > mapserver it gives me this error: > > loadSymbolSet(): Unable to access file. (./symbols/symbols.txt) Either make sure that you've got a valid symbols file at that path, or comment out that line of your map-file if you don't need it for labels in your map. The map-file wizard does not produce a complete, ready-to-run map-file. It does most of the tedious layer-related stuff, but you must still edit the map-file to ensure that projections and paths and other details are valid. At least that has been my experience. -- James Card California CAD Solutions, Inc. 209-578-5580 - Voice 209-521-6493 - FAX From jmckenna at gatewaygeomatics.com Wed Feb 3 00:27:55 2010 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Wed, 03 Feb 2010 17:27:55 +0900 Subject: [mapserver-users] qGIS mapfile error! In-Reply-To: References: <1265159951129-4504943.post@n2.nabble.com> Message-ID: <4B69338B.3050807@gatewaygeomatics.com> James Card wrote: > On Tue, 02 Feb 2010 17:19:11 -0800, Vasile Cristian Stan > wrote: > >> I've created a mapfile using qGiS and when i run mapfile on the >> mapserver it gives me this error: >> >> loadSymbolSet(): Unable to access file. (./symbols/symbols.txt) > > Either make sure that you've got a valid symbols file at that path, or > comment out that line of your map-file if you don't need it for labels > in your map. > > The map-file wizard does not produce a complete, ready-to-run map-file. > It does most of the tedious layer-related stuff, but you must still edit > the map-file to ensure that projections and paths and other details are > valid. At least that has been my experience. > James is right that you might have to edit your mapfile by hand to remove these problems; however the QGIS Export to Mapfile tool is improving with each release. They also need feedback on their tool, so you can let them know your testing results through their qgis-users email list (join at http://lists.osgeo.org/mailman/listinfo/qgis-user). If you need a symbols.txt file, you can search this archive and use its symbols.txt file to start: http://www.maptools.org/dl/ms4w/gmap_ms4w_ms5.zip -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ From dalda at ikt.es Wed Feb 3 00:16:03 2010 From: dalda at ikt.es (David Alda Fernandez de Lezea) Date: Wed, 3 Feb 2010 09:16:03 +0100 Subject: [mapserver-users] Access to a remote raster file in wms-mapfile Message-ID: <224DBDAF88A6AC47BD22432815351BE007B9CFD5@nekaposta1> Hi list, I'm trying to access a remote raster file stored in NAS device (Iomega StorCenter Pro NAS 150D) which ip address is (192.168.1.4). In my mapfile I'm putting the url like this: DATA "\\192.168.1.4\ortofotos\EUSKADI_2009_ED50.ecw" But when I try to load the wms layer, I don't get anything and mapserver throws the following error: ... [Wed Feb 03 09:11:13 2010].67000 msDrawRaster(): Unable to access file. \\192.168.1.4\ortofotos\EUSKADI_2009_ED50.ecw using full path \\192.168.1.4\ortofotos\EUSKADI_2009_ED50.ecw [Wed Feb 03 09:11:13 2010].67000 Unable to open file \\192.168.1.4\ortofotos\EUSKADI_2009_ED50.ecw for layer orto0 ... ignoring this missing data. [Wed Feb 03 09:11:13 2010].67000 msDrawMap(): Layer 1 (orto0), 0.000s ... The thing, is that if I type this url in my web browser, I get the file downloading. What I'm doing wrong? Any ideas? Thanks in advance. Un saludo, ?????????????????????????????????????????????????????????????????????????????????? David Alda Fern?ndez de Lezea Lurralde eta Biodibertsitate Saila / Dpto. de Territorio y Biodiversidad IKT Granja Modelo s/n ? 01192 ? Arkaute (Araba) ?????????????????????????????????????????????????????????????????????????????????? Tlfnos.: 945-00-32-95 Fax: 945-00.32.90 ?????????????????????????????????????????????????????????????????????????????????? email: dalda at ikt.es web: www.ikt.es ?????????????????????????????????????????????????????????????????????????????????? From Jukka.Rahkonen at mmmtike.fi Wed Feb 3 01:44:54 2010 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Wed, 3 Feb 2010 11:44:54 +0200 Subject: [mapserver-users] high quality print from external wms In-Reply-To: <1265111675995-4500369.post@n2.nabble.com> References: <1265111675995-4500369.post@n2.nabble.com> Message-ID: Hi, WMS servers have often an upper limit for the output image size. If that is the case you can not do anything else than capture the print area in smaller pieces and combine them with your application. Test the service by sending WMS calls manually with different HEIGHT and WIDTH parameters. -Jukka Rahkonen- Puolesta Basti2025 wrote: > Hi all, > i got an external wms included in my mapfile, like this: > > LAYER > NAME 'grenzen_50000' > TYPE RASTER > STATUS ON > CONNECTION 'http://....????????????????..........?SERVICE=WMS&' > CONNECTIONTYPE WMS > METADATA > 'wms_srs' 'EPSG:31467' > 'wms_title' 'Grenzen 50000' > 'wms_name' 'grenzen_50000' > 'wms_format' 'image/png' > 'wms_server_version' '1.1.1' > 'wms_onlineresource' > 'http://....????????????????..........SERVICE=WMS&version=1.1. > 1&service=WMS&request=GetLegendGraphic&layer=grenzen_50000&for > mat=image/png&STYLE=default' > END > END > > Normaly the wms is not able to print with 288dpi. > > My question is, how can i mod my mapfile so that i can use > high quality > print with an external wms. > > thx, > basti > -- > View this message in context: > http://n2.nabble.com/high-quality-print-from-external-wms-tp45 > 00369p4500369.html > Sent from the Mapserver - User mailing list archive at Nabble.com. > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From tommasodb at googlemail.com Wed Feb 3 04:08:23 2010 From: tommasodb at googlemail.com (tommasodb) Date: Wed, 03 Feb 2010 13:08:23 +0100 Subject: [mapserver-users] Rendering bridges Message-ID: <4B696737.6070401@gmail.com> Hallo list, how can I render road bridges, like in mapnik? (Example: http://www.openstreetmap.org/?lat=53.398022&lon=-2.352222&zoom=18&layers=null) Which symbol can I use? Greets, Tom From bartvde at osgis.nl Wed Feb 3 03:12:24 2010 From: bartvde at osgis.nl (Bart van den Eijnden) Date: Wed, 3 Feb 2010 12:12:24 +0100 Subject: [mapserver-users] colorramp and datarange on the fly? Message-ID: <8CF4F4E7-1CEB-4CAA-8B6C-4FCDD74D03EC@osgis.nl> Hi list, is it possible to have a colorramp in Mapserver based on the min and max value in the current extent? So instead of predefining the min and max in DATARANGE, have Mapserver use the min and max value of the dataset in the current extent? If not, would it be an easy change or a very complex one? Best regards, Bart From martijnvanderpauw at gmail.com Wed Feb 3 04:43:15 2010 From: martijnvanderpauw at gmail.com (windfreak) Date: Wed, 3 Feb 2010 04:43:15 -0800 (PST) Subject: [mapserver-users] Re: display isolines with raster data In-Reply-To: <4B66F9D1.9060202@pobox.com> References: <1265039329115-4495049.post@n2.nabble.com> <4B66F9D1.9060202@pobox.com> Message-ID: <65be3691002030443h23091436gdd73ed4c00f117e3@mail.gmail.com> I tested gdal_contour and it actually looks ok. I think I can use that as a pre process for mapserver. My eye immediately fell on gdal_polygonize because I think that can create polygon shapefiles. I haven't got gdal_polygonize running yet because of some compatibility errors (gdal.Polygonize() not available) but will try to find that out. Thanks for your help 2010/2/1 Frank Warmerdam [via OSGeo.org] < ml-node+4495096-771874491 at n2.nabble.com > > windfreak wrote: > > I am wondering if it's possible to present isolines from raster data. I > have > > NETCDF/GRIB/HDF5 data and want to plot lines. Until now I haven't found > any > > examples like that. > > > > If it's not possible, I think the best workaround is to create an > > application that generates shapefiles from raster data. Then I can use > these > > shapefiles to plot lines with mapserver. Do you have suggestions for > better > > workarounds? > > Windfreak, > > MapServer does not support computing isolines on the fly, though you might > get a vaguely similar effect by defining a class for each iso level with > different colors. > > You can use the GDAL/OGR gdal_contour utility to produce iso-contours from > a raster file. Be aware that it produces very fine isolines with one > segment > for each pixel crossed so some simplification might be appropriate before > using the results for map rendering. > > Best regards, > -- > ---------------------------------------+-------------------------------------- > > I set the clouds in motion - turn up | Frank Warmerdam, [hidden email] > light and sound - activate the windows | http://pobox.com/~warmerdam > and watch the world go round - Rush | Geospatial Programmer for Rent > > _______________________________________________ > mapserver-users mailing list > [hidden email] > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > ------------------------------ > View message @ > http://n2.nabble.com/display-isolines-with-raster-data-tp4495049p4495096.html > To unsubscribe from display isolines with raster data, click here< (link removed) ==>. > > > -- -http://www.topspots.org the best windsurfspots -http://www.weer.nl the site I work at with work ----- http://www.topspots.org -- View this message in context: http://n2.nabble.com/display-isolines-with-raster-data-tp4495049p4506967.html Sent from the Mapserver - User mailing list archive at Nabble.com. -------------- next part -------------- An HTML attachment was scrubbed... URL: From SSchantz at BfS.de Wed Feb 3 04:54:58 2010 From: SSchantz at BfS.de (Stefan Schantz) Date: Wed, 03 Feb 2010 13:54:58 +0100 Subject: [mapserver-users] OCI-22053: overflow error with CONNECTIONTYPE oraclespatial Message-ID: <4B697222.9090509@BfS.de> Hello, I am trying to visualize some points from a oracle database (10.2) : I am using MapServer version 5.2.0 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=ICONV SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=GEOS INPUT=EPPL7 INPUT=POSTGIS INPUT=ORACLESPATIAL INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE My layer description is ---- LAYER NAME "tra_punkte" TYPE POINT STATUS ON DEBUG ON #DUMP TRUE CONNECTIONTYPE oraclespatial CONNECTION "***/***@(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=***)(PORT= 1521)))(CONNECT_DATA=(SID=***)))" DATA "GEOM from (select geom, HOEHE, AUSGANGSHOEHE, ID FROM imis_geo.trapkt_6222 ) USING UNIQUE ID SRID 4326" ------- and the following statement is written in the log-file ------ [Wed Feb 3 12:54:00 2010].603594 msOracleSpatialLayerWhichShapes. Using this Sql to retrieve the data: SELECT ID, GEOM FROM (select geom, HOEHE, AUSGANGSHOEHE, ID FROM imis_geo.trapkt_6222 ) WHERE SDO_FILTER( GEOM, MDSYS.SDO_GEOMETRY(2003, 4326, NULL,MDSYS.SDO_ELEM_INFO_ARRAY(1,1003,3),MDSYS.SDO_ORDINATE_ARRAY(-70.5721827,29.3243683,69.9787827,79.1709317) ),'querytype=window') = 'TRUE' [Wed Feb 3 12:54:00 2010].823525 osGetOrdinates(): OracleSpatial error. OCI-22053: overflow error ------ But if I try the sql in SQL-Developer, i get the result without any errors? The connection between UMN and oracle database is working fine in several different layers, but not in this one. Is there anything I can do? Best Regards, Stefan From j.l.h.hartmann at uva.nl Wed Feb 3 05:11:16 2010 From: j.l.h.hartmann at uva.nl (Jan Hartmann) Date: Wed, 03 Feb 2010 14:11:16 +0100 Subject: [mapserver-users] colorramp and datarange on the fly? In-Reply-To: <8CF4F4E7-1CEB-4CAA-8B6C-4FCDD74D03EC@osgis.nl> References: <8CF4F4E7-1CEB-4CAA-8B6C-4FCDD74D03EC@osgis.nl> Message-ID: <4B6975F4.2000307@uva.nl> Would be dead easy with postGIS ... Jan On 3-2-2010 12:12, Bart van den Eijnden wrote: > Hi list, > > is it possible to have a colorramp in Mapserver based on the min and max value in the current extent? > > So instead of predefining the min and max in DATARANGE, have Mapserver use the min and max value of the dataset in the current extent? > > If not, would it be an easy change or a very complex one? > > Best regards, > Bart_______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From stelaanders at gmail.com Wed Feb 3 05:14:02 2010 From: stelaanders at gmail.com (stela anders) Date: Wed, 3 Feb 2010 10:14:02 -0300 Subject: [mapserver-users] msplugin_mssql2008 and getFeature() In-Reply-To: <005701caa47d$15485690$3fd903b0$@com> References: <20100202213446.GA455@cloud3.rho.net> <25de2c7c1002021510v10f1009dkdf4ea4acc975f7d5@mail.gmail.com> <20100202232301.GG20135@metacarta.com> <20100202233405.GA6050@cloud3.rho.net> <20100203013513.GH20135@metacarta.com> <005701caa47d$15485690$3fd903b0$@com> Message-ID: Hi... All I can say is mssql2008 is broken... I can?t use WMS GetFeatureInfo because is buggy... The CGI nquery also doest work... You should back to PostGis or something else... Stella 2010/2/3 Gabe Codina > Hi All > > I have a web mapping app based on ms 5.2.1 and php mapScript. Our business > layers are stored in MSSQL2008 and were transferred from postgis some time > ago. > > I have a requirement to highlight selected features on the map - the way > this used to work was I would add a highlight layer to the map and addthe > selected features to it by using getShape and addFeature. > > Using the mssql plugin my calls to getShape (and getFeature) always return > FALSE. I know the features are there but they cannot be retrieved. > > Info: > > Sample data statement > > DATA "gExtent FROM (SELECT [iId],geometry::STGeomFromWKB([binExtentWKB], > 4326) AS gExtent > ,[cIdentifiers],[cLabel],[iSessionId] FROM > [Scratch].[tManagementUnitsGeometry] WHERE [iSessionId] = 310) AS FOO USING > UNIQUE [iId] USING SRID=4326" > > Some Mapscript > > if ($resTileShpIdx){ > $resShape = $qLayer->getShape($resTileShpIdx, > $resShpIdx); > } else { > $resShape = $qLayer->getFeature($resShpIdx); > } > > ... > > > $newResLayer->addFeature($resShape); > > > Any help will be greatly appreciated. > > Gabe Codina > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -------------- next part -------------- An HTML attachment was scrubbed... URL: From bartvde at osgis.nl Wed Feb 3 05:14:30 2010 From: bartvde at osgis.nl (Bart van den Eijnden) Date: Wed, 3 Feb 2010 14:14:30 +0100 Subject: [mapserver-users] colorramp and datarange on the fly? In-Reply-To: <4B6975F4.2000307@uva.nl> References: <8CF4F4E7-1CEB-4CAA-8B6C-4FCDD74D03EC@osgis.nl> <4B6975F4.2000307@uva.nl> Message-ID: <7731E303-7192-4A3E-A030-C04756142F85@osgis.nl> Hi Jan, can you elaborate on this approach? Using WKTRaster? Best regards, Bart On Feb 3, 2010, at 2:11 PM, Jan Hartmann wrote: > Would be dead easy with postGIS ... > > Jan > > On 3-2-2010 12:12, Bart van den Eijnden wrote: >> Hi list, >> >> is it possible to have a colorramp in Mapserver based on the min and max value in the current extent? >> >> So instead of predefining the min and max in DATARANGE, have Mapserver use the min and max value of the dataset in the current extent? >> >> If not, would it be an easy change or a very complex one? >> >> Best regards, >> Bart_______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> > From kristian_frost7 at hotmail.com Wed Feb 3 06:00:29 2010 From: kristian_frost7 at hotmail.com (Frost89) Date: Wed, 3 Feb 2010 06:00:29 -0800 (PST) Subject: [mapserver-users] Raster layer as a way of branding In-Reply-To: <4B5A1D00.3010409@gatewaygeomatics.com> References: <1264153662038-4439127.post@n2.nabble.com> <4B5A1D00.3010409@gatewaygeomatics.com> Message-ID: <1265205629624-4507272.post@n2.nabble.com> That's exactly what i was looking for, thanks a lot. - Kristian -- View this message in context: http://n2.nabble.com/Raster-layer-as-a-way-of-branding-tp4439127p4507272.html Sent from the Mapserver - User mailing list archive at Nabble.com. From j.l.h.hartmann at uva.nl Wed Feb 3 06:27:48 2010 From: j.l.h.hartmann at uva.nl (Jan Hartmann) Date: Wed, 03 Feb 2010 15:27:48 +0100 Subject: [mapserver-users] colorramp and datarange on the fly? In-Reply-To: <7731E303-7192-4A3E-A030-C04756142F85@osgis.nl> References: <8CF4F4E7-1CEB-4CAA-8B6C-4FCDD74D03EC@osgis.nl> <4B6975F4.2000307@uva.nl> <7731E303-7192-4A3E-A030-C04756142F85@osgis.nl> Message-ID: <4B6987E4.7020408@uva.nl> Hi Bart, Not sure if this is what you mean, but you can always compute a variable with the range you want. The following is inefficient, and not really dead easy, but it works. Say, in your PostGIS table "tbl", your want to display the column "val" in 10 colors, with "[minx],[miny],[maxx],[maxy]" as the current extent values (e.g. from a template) and "mysrid" as the srid: LABELITEM labelval select round ( ((val::float - min) / (max - min)) * 10) as labelval from ( select min(val) as min,max(val) as max from tbl where the_geom && st_setsrid('BOX3D(' || [minx] || ' ' || [miny] || ',' || [maxx] || ' ' || [maxy] || ')'::box3d,mysrid) ) as foo1 , ( select val from tbl ) as foo2 ; Jan On 3-2-2010 14:14, Bart van den Eijnden wrote: > Hi Jan, > > can you elaborate on this approach? Using WKTRaster? > > Best regards, > Bart > > On Feb 3, 2010, at 2:11 PM, Jan Hartmann wrote: > > >> Would be dead easy with postGIS ... >> >> Jan >> >> On 3-2-2010 12:12, Bart van den Eijnden wrote: >> >>> Hi list, >>> >>> is it possible to have a colorramp in Mapserver based on the min and max value in the current extent? >>> >>> So instead of predefining the min and max in DATARANGE, have Mapserver use the min and max value of the dataset in the current extent? >>> >>> If not, would it be an easy change or a very complex one? >>> >>> Best regards, >>> Bart_______________________________________________ >>> mapserver-users mailing list >>> mapserver-users at lists.osgeo.org >>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>> >>> >> > From DeDuikertjes at xs4all.nl Wed Feb 3 06:39:12 2010 From: DeDuikertjes at xs4all.nl (DeDuikertjes) Date: Wed, 03 Feb 2010 15:39:12 +0100 Subject: [mapserver-users] high quality print from external wms In-Reply-To: References: <1265111675995-4500369.post@n2.nabble.com> Message-ID: <4B698A90.5050409@xs4all.nl> Hi, WMS services do often have an upper limit for the output image size. According to WMS specs they should advertise that in response to a getcapabilities request. Despite that, Mapserver doesn't always do that. At least my version (5.1) doesn't. Piecing together an image from smaller pieces isn't that easy when labels are involved (and perhaps also when hatch symbols are involved). Cheers, MArco Rahkonen Jukka schreef: > Hi, > > WMS servers have often an upper limit for the output image size. If > that is the case you can not do anything else than capture the print > area in smaller pieces and combine them with your application. Test the > service by sending WMS calls manually with different HEIGHT and WIDTH > parameters. > > -Jukka Rahkonen- > > Puolesta Basti2025 wrote: > > > >> Hi all, >> i got an external wms included in my mapfile, like this: >> >> LAYER >> NAME 'grenzen_50000' >> TYPE RASTER >> STATUS ON >> CONNECTION 'http://....????????????????..........?SERVICE=S&' >> CONNECTIONTYPE WMS >> METADATA >> 'wms_srs' 'EPSG:31467' >> 'wms_title' 'Grenzen 50000' >> 'wms_name' 'grenzen_50000' >> 'wms_format' 'image/png' >> 'wms_server_version' '1.1.1' >> 'wms_onlineresource' >> 'http://....????????????????..........SERVICE=S&version=1.1. >> 1&service=S&request=GetLegendGraphic&layer=grenzen_50000&for >> mat=age/png&STYLE?fault' >> END >> END >> >> Normaly the wms is not able to print with 288dpi. >> >> My question is, how can i mod my mapfile so that i can use >> high quality >> print with an external wms. >> >> thx, >> basti >> -- >> View this message in context: >> http://n2.nabble.com/high-quality-print-from-external-wms-tp45 >> 00369p4500369.html >> Sent from the Mapserver - User mailing list archive at Nabble.com. >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> >> > > From dmorissette at mapgears.com Wed Feb 3 06:47:04 2010 From: dmorissette at mapgears.com (Daniel Morissette) Date: Wed, 03 Feb 2010 09:47:04 -0500 Subject: [mapserver-users] Access to a remote raster file in wms-mapfile In-Reply-To: <224DBDAF88A6AC47BD22432815351BE007B9CFD5@nekaposta1> References: <224DBDAF88A6AC47BD22432815351BE007B9CFD5@nekaposta1> Message-ID: <4B698C68.8010307@mapgears.com> I'd suggest you start by making sure GDAL can open the file: 1- Does "gdalinfo --formats" list the ECW format? 2- Check that you are able to open the file with gdalinfo \\192.168.1.4\ortofotos\EUSKADI_2009_ED50.ecw Daniel David Alda Fernandez de Lezea wrote: > Hi list, > > I'm trying to access a remote raster file stored in NAS device (Iomega StorCenter Pro NAS 150D) which ip address is (192.168.1.4). > > In my mapfile I'm putting the url like this: > > DATA "\\192.168.1.4\ortofotos\EUSKADI_2009_ED50.ecw" > > But when I try to load the wms layer, I don't get anything and mapserver throws the following error: > > ... > [Wed Feb 03 09:11:13 2010].67000 msDrawRaster(): Unable to access file. \\192.168.1.4\ortofotos\EUSKADI_2009_ED50.ecw using full path \\192.168.1.4\ortofotos\EUSKADI_2009_ED50.ecw > [Wed Feb 03 09:11:13 2010].67000 Unable to open file \\192.168.1.4\ortofotos\EUSKADI_2009_ED50.ecw for layer orto0 ... ignoring this missing data. > [Wed Feb 03 09:11:13 2010].67000 msDrawMap(): Layer 1 (orto0), 0.000s > ... > > The thing, is that if I type this url in my web browser, I get the file downloading. What I'm doing wrong? Any ideas? > > Thanks in advance. > > > Un saludo, > > ?????????????????????????????????????????????????????????????????????????????????? > > David Alda Fern?ndez de Lezea > Lurralde eta Biodibertsitate Saila / Dpto. de Territorio y Biodiversidad > > IKT > Granja Modelo s/n ? 01192 ? Arkaute (Araba) > > ?????????????????????????????????????????????????????????????????????????????????? > Tlfnos.: 945-00-32-95 Fax: 945-00.32.90 > ?????????????????????????????????????????????????????????????????????????????????? > email: dalda at ikt.es web: www.ikt.es > ?????????????????????????????????????????????????????????????????????????????????? > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Daniel Morissette http://www.mapgears.com/ From bartvde at osgis.nl Wed Feb 3 06:55:19 2010 From: bartvde at osgis.nl (Bart van den Eijnden) Date: Wed, 3 Feb 2010 15:55:19 +0100 Subject: [mapserver-users] high quality print from external wms In-Reply-To: <4B698A90.5050409@xs4all.nl> References: <1265111675995-4500369.post@n2.nabble.com> <4B698A90.5050409@xs4all.nl> Message-ID: <3BB65ECB-C82C-4CB3-87DE-9F0468AF0DF8@osgis.nl> Marco, this is not exactly right. Only WMS 1.3 has elements in the GetCapabilities response to advertize this limit (MaxWidth and MaxHeight). WMS 1.1.X did not have this mechanism. You are using MS 5.1, and there is no WMS 1.3 support in that version. So it's logical that Mapserver can't advertize those limits in WMS 1.1.X. Best regards, Bart On Feb 3, 2010, at 3:39 PM, DeDuikertjes wrote: > Hi, > > WMS services do often have an upper limit for the output image size. > > According to WMS specs they should advertise that in response to a getcapabilities request. > Despite that, Mapserver doesn't always do that. At least my version (5.1) doesn't. > > Piecing together an image from smaller pieces isn't that easy when labels are involved (and perhaps also when hatch symbols are involved). > > Cheers, MArco > > > Rahkonen Jukka schreef: >> Hi, >> >> WMS servers have often an upper limit for the output image size. If >> that is the case you can not do anything else than capture the print >> area in smaller pieces and combine them with your application. Test the >> service by sending WMS calls manually with different HEIGHT and WIDTH >> parameters. >> >> -Jukka Rahkonen- >> Puolesta Basti2025 wrote: >> >> >>> Hi all, >>> i got an external wms included in my mapfile, like this: >>> >>> LAYER >>> NAME 'grenzen_50000' >>> TYPE RASTER >>> STATUS ON >>> CONNECTION 'http://....????????????????..........?SERVICE=S&' >>> CONNECTIONTYPE WMS >>> METADATA >>> 'wms_srs' 'EPSG:31467' >>> 'wms_title' 'Grenzen 50000' >>> 'wms_name' 'grenzen_50000' >>> 'wms_format' 'image/png' >>> 'wms_server_version' '1.1.1' >>> 'wms_onlineresource' >>> 'http://....????????????????..........SERVICE=S&version=1.1. >>> 1&service=S&request=GetLegendGraphic&layer=grenzen_50000&for >>> mat=age/png&STYLE?fault' >>> END >>> END >>> >>> Normaly the wms is not able to print with 288dpi. >>> >>> My question is, how can i mod my mapfile so that i can use high quality >>> print with an external wms. >>> >>> thx, >>> basti -- >>> View this message in context: http://n2.nabble.com/high-quality-print-from-external-wms-tp45 >>> 00369p4500369.html >>> Sent from the Mapserver - User mailing list archive at Nabble.com. >>> _______________________________________________ >>> mapserver-users mailing list >>> mapserver-users at lists.osgeo.org >>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>> >>> >> >> > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From DeDuikertjes at xs4all.nl Wed Feb 3 06:59:32 2010 From: DeDuikertjes at xs4all.nl (DeDuikertjes) Date: Wed, 03 Feb 2010 15:59:32 +0100 Subject: [mapserver-users] high quality print from external wms In-Reply-To: <3BB65ECB-C82C-4CB3-87DE-9F0468AF0DF8@osgis.nl> References: <1265111675995-4500369.post@n2.nabble.com> <4B698A90.5050409@xs4all.nl> <3BB65ECB-C82C-4CB3-87DE-9F0468AF0DF8@osgis.nl> Message-ID: <4B698F54.3050403@xs4all.nl> Bart, OK, I stand corrected! Nice to see that there are actually people who know such things by heart. Marco Bart van den Eijnden schreef: > Marco, > > this is not exactly right. > > Only WMS 1.3 has elements in the GetCapabilities response to advertize this limit (MaxWidth and MaxHeight). WMS 1.1.X did not have this mechanism. > > You are using MS 5.1, and there is no WMS 1.3 support in that version. So it's logical that Mapserver can't advertize those limits in WMS 1.1.X. > > Best regards, > Bart > > On Feb 3, 2010, at 3:39 PM, DeDuikertjes wrote: > > >> Hi, >> >> WMS services do often have an upper limit for the output image size. >> >> According to WMS specs they should advertise that in response to a getcapabilities request. >> Despite that, Mapserver doesn't always do that. At least my version (5.1) doesn't. >> >> Piecing together an image from smaller pieces isn't that easy when labels are involved (and perhaps also when hatch symbols are involved). >> >> Cheers, MArco >> >> >> Rahkonen Jukka schreef: >> >>> Hi, >>> >>> WMS servers have often an upper limit for the output image size. If >>> that is the case you can not do anything else than capture the print >>> area in smaller pieces and combine them with your application. Test the >>> service by sending WMS calls manually with different HEIGHT and WIDTH >>> parameters. >>> >>> -Jukka Rahkonen- >>> Puolesta Basti2025 wrote: >>> >>> >>> >>>> Hi all, >>>> i got an external wms included in my mapfile, like this: >>>> >>>> LAYER >>>> NAME 'grenzen_50000' >>>> TYPE RASTER >>>> STATUS ON >>>> CONNECTION 'http://....????????????????..........?SERVICE=S&' >>>> CONNECTIONTYPE WMS >>>> METADATA >>>> 'wms_srs' 'EPSG:31467' >>>> 'wms_title' 'Grenzen 50000' >>>> 'wms_name' 'grenzen_50000' >>>> 'wms_format' 'image/png' >>>> 'wms_server_version' '1.1.1' >>>> 'wms_onlineresource' >>>> 'http://....????????????????..........SERVICE=S&version=1.1. >>>> 1&service=S&request=GetLegendGraphic&layer=grenzen_50000&for >>>> mat=age/png&STYLE?fault' >>>> END >>>> END >>>> >>>> Normaly the wms is not able to print with 288dpi. >>>> >>>> My question is, how can i mod my mapfile so that i can use high quality >>>> print with an external wms. >>>> >>>> thx, >>>> basti -- >>>> View this message in context: http://n2.nabble.com/high-quality-print-from-external-wms-tp45 >>>> 00369p4500369.html >>>> Sent from the Mapserver - User mailing list archive at Nabble.com. >>>> _______________________________________________ >>>> mapserver-users mailing list >>>> mapserver-users at lists.osgeo.org >>>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>>> >>>> >>>> >>> >>> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> >> > > > From cp_n18 at yahoo.com Wed Feb 3 06:29:34 2010 From: cp_n18 at yahoo.com (Jon Miner) Date: Wed, 3 Feb 2010 06:29:34 -0800 (PST) Subject: [mapserver-users] Using e00 files In-Reply-To: <4B685FDC.5010403@usgs.gov> References: <506038.40546.qm@web111403.mail.gq1.yahoo.com> <4B685FDC.5010403@usgs.gov> Message-ID: <793100.28006.qm@web111414.mail.gq1.yahoo.com> ----- Original Message ---- From: Peter N. Schweitzer To: mapserver-users at lists.osgeo.org Sent: Tue, February 2, 2010 12:24:44 PM Subject: Re: [mapserver-users] Using e00 files On 02/02/2010 11:32 AM, Jon Miner wrote: > Now, I'm trying to layer on information from the GRANIT website: > > http://www.granit.unh.edu/ > > ftp://ftp.granit.sr.unh.edu/pub/GRANIT_Data/Vector_Data/Transportation_Networks/d-railroads/rrnh.e00 > > These files are "e00" files. Based on some other mailing list entries, I used the ogr2ogr command to convert the file into Shapefiles: > > ogr2ogr -f "ESRI Shapefile" temp ../data/rrnh.e00 > > then copied the files into my data directory, and added a new layer to the map file: > > LAYER > NAME "rail" > TYPE LINE > STATUS on > DATA nhrail > CLASS > NAME "Railroads" > SYMBOL 0 > COLOR 168 0 184 > END > END > > Something is wrong since the line data does not get rendered. Maybe there is a better approach instead of converting to Shapefiles? Jon, The rr data are in NH state plane coordinates--are the other data you are using in the same projection? ------------------------------------------ Thanks Peter, I had to specify the raster layer as: LAYER NAME "usgs" TYPE RASTER STATUS on DATA o43071a4.tif PROJECTION "init=epsg:26719" END END So, I think the answer to your question is, no they're not in the same projection. What do I need to do to get mapserver to translate between the two? Seems to me that mapserver should be able to read the information out of the files (like ogrinfo and gdalinfo do) and do the "right thing". I admit this might be a total misunderstanding on my part... still learning about mapserver's capabilities. From pschweitzer at usgs.gov Wed Feb 3 07:46:06 2010 From: pschweitzer at usgs.gov (Peter N. Schweitzer) Date: Wed, 03 Feb 2010 10:46:06 -0500 Subject: [mapserver-users] Using e00 files In-Reply-To: <793100.28006.qm@web111414.mail.gq1.yahoo.com> References: <506038.40546.qm@web111403.mail.gq1.yahoo.com> <4B685FDC.5010403@usgs.gov> <793100.28006.qm@web111414.mail.gq1.yahoo.com> Message-ID: <4B699A3E.9030101@usgs.gov> On 02/03/2010 09:29 AM, Jon Miner wrote: > I had to specify the raster layer as: > > LAYER > NAME "usgs" > TYPE RASTER > STATUS on > DATA o43071a4.tif > PROJECTION > "init=epsg:26719" > END > END > > So, I think the answer to your question is, no they're not in the same projection. What do I need to do to get mapserver to translate between the two? Seems to me that mapserver should be able to read the information out of the files (like ogrinfo and gdalinfo do) and do the "right thing". I admit this might be a total misunderstanding on my part... still learning about mapserver's capabilities. Yes, epsg:26719 refers to UTM zone 19; the NH state plane is, I think, somewhat different. The ARC.prj file generated by ogr2ogr contains this (expanded for clarity): PROJCS[ "NAD83_New_Hampshire", GEOGCS[ "GCS_North_American_1983", DATUM[ "D_North_American_1983", SPHEROID["GRS_1980",6378137,298.257222101] ], PRIMEM["Greenwich",0], UNIT["Degree",0.017453292519943295] ], PROJECTION["Transverse_Mercator"], PARAMETER["latitude_of_origin",42.5], PARAMETER["central_meridian",-71.66666666666667], PARAMETER["scale_factor",0.999966667], PARAMETER["false_easting",984250], PARAMETER["false_northing",0], UNIT["Foot_US",0.30480060960121924] ] epsg:3437 would use PROJECTION "proj=tmerc" "lat_0=42.5" "lon_0=-71.66666666666667" "k=0.999966667" "x_0=300000.0" "y_0=0" "ellps=GRS80" "datum=NAD83" "units=us-ft" end but because the false_easting in the prj file is not 300000, it looks to me like you should try this: PROJECTION "proj=tmerc" "lat_0=42.5" "lon_0=-71.66666666666667" "k=0.999966667" "x_0=984250.0" "y_0=0" "ellps=GRS80" "datum=NAD83" "units=us-ft" end I wouldn't claim to be expert in any of this, so I welcome a review by someone more familiar with these projection parameters. Peter -- Peter N. Schweitzer (MS 954, U.S. Geological Survey, Reston, VA 20192) (703) 648-6533 FAX: (703) 648-6252 email: pschweitzer at usgs.gov From Steve.Lime at state.mn.us Wed Feb 3 07:49:48 2010 From: Steve.Lime at state.mn.us (Lime, Steve D (DNR)) Date: Wed, 3 Feb 2010 09:49:48 -0600 Subject: [mapserver-users] Rendering bridges In-Reply-To: <4B696737.6070401@gmail.com> References: <4B696737.6070401@gmail.com> Message-ID: What feature type are bridges represented with in OpenStreetMap? -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of tommasodb Sent: Wednesday, February 03, 2010 6:08 AM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] Rendering bridges Hallo list, how can I render road bridges, like in mapnik? (Example: http://www.openstreetmap.org/?lat=53.398022&lon=-2.352222&zoom=18&layers=null) Which symbol can I use? Greets, Tom _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From Steve.Lime at state.mn.us Wed Feb 3 08:02:45 2010 From: Steve.Lime at state.mn.us (Lime, Steve D (DNR)) Date: Wed, 3 Feb 2010 10:02:45 -0600 Subject: [mapserver-users] colorramp and datarange on the fly? In-Reply-To: <8CF4F4E7-1CEB-4CAA-8B6C-4FCDD74D03EC@osgis.nl> References: <8CF4F4E7-1CEB-4CAA-8B6C-4FCDD74D03EC@osgis.nl> Message-ID: How big a change would depend on the implementation. The brute force approach where you simply loop through features once to compute ranges and then again to draw would be probably pretty straight forward and driver independent. Wouldn't be fast (but would be simple). Complexity would be added as you try and boost performance by: - allowing drivers to compute stats in their own way (e.g. add to the layer API something like msLayerGetStats(...)) - caching geometries from a first pass through the shapes for the second Steve BTW The color ramp support needs to be cleaned up first. I think we scared the originator of that code away when an RFC was originally put together. -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Bart van den Eijnden Sent: Wednesday, February 03, 2010 5:12 AM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] colorramp and datarange on the fly? Hi list, is it possible to have a colorramp in Mapserver based on the min and max value in the current extent? So instead of predefining the min and max in DATARANGE, have Mapserver use the min and max value of the dataset in the current extent? If not, would it be an easy change or a very complex one? Best regards, Bart_______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From woodbri at swoodbridge.com Wed Feb 3 08:10:48 2010 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Wed, 03 Feb 2010 11:10:48 -0500 Subject: [mapserver-users] Rendering bridges In-Reply-To: References: <4B696737.6070401@gmail.com> Message-ID: <4B69A008.7020508@swoodbridge.com> Lime, Steve D (DNR) wrote: > What feature type are bridges represented with in OpenStreetMap? I believe they are just vector "ways" that have an attribute tag on them like tunnel=yes or bridge=yes So you would just add an additional STYLE to draw the dark outline before the road or you could use the new OUTLINEWIDTH within the STYLE. -Steve W > -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of tommasodb > Sent: Wednesday, February 03, 2010 6:08 AM > To: mapserver-users at lists.osgeo.org > Subject: [mapserver-users] Rendering bridges > > Hallo list, > > how can I render road bridges, like in mapnik? > (Example: > http://www.openstreetmap.org/?lat=53.398022&lon=-2.352222&zoom=18&layers=null) > Which symbol can I use? > > Greets, > Tom > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From David.Fawcett at state.mn.us Wed Feb 3 08:12:59 2010 From: David.Fawcett at state.mn.us (Fawcett, David (MPCA)) Date: Wed, 3 Feb 2010 10:12:59 -0600 Subject: [mapserver-users] Rendering bridges In-Reply-To: References: <4B696737.6070401@gmail.com> Message-ID: The feature that he is referencing is just a line segment with an additional attribute of 'bridge=yes'. * bridge: yes * highway: trunk * layer: 1 * name: Manchester Road * ref: A56 If you just wanted to use the road data and not create an additional bridges data set, you would likely need to split up the road features so that the segment that is a bridge is an individual feature. I haven't worked with any shapefile extracts from OSM, so the data may already be like this. Assuming that you have a line shapefile that has a column called 'bridge', you could set up two classes in your roads layer. The first one would have an expression like ('[bridge] = 'yes') and the second class wouldn't have an expression so it would catch the rest of the lines. In the first class, you would stack two lines, the bottom one being the color of your bridge and wider than the roads line that will go on top of it. David. -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Lime, Steve D (DNR) Sent: Wednesday, February 03, 2010 9:50 AM To: tommasodb; mapserver-users at lists.osgeo.org Subject: RE: [mapserver-users] Rendering bridges What feature type are bridges represented with in OpenStreetMap? -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of tommasodb Sent: Wednesday, February 03, 2010 6:08 AM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] Rendering bridges Hallo list, how can I render road bridges, like in mapnik? (Example: http://www.openstreetmap.org/?lat=53.398022&lon=-2.352222&zoom=18&layers=null) Which symbol can I use? Greets, Tom _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From j.l.h.hartmann at uva.nl Wed Feb 3 08:15:58 2010 From: j.l.h.hartmann at uva.nl (Jan Hartmann) Date: Wed, 03 Feb 2010 17:15:58 +0100 Subject: [mapserver-dev] RE: [mapserver-users] colorramp and datarange on the fly? In-Reply-To: References: <8CF4F4E7-1CEB-4CAA-8B6C-4FCDD74D03EC@osgis.nl> Message-ID: <4B69A13E.3010708@uva.nl> If you allow two passes, you can have all sorts of summarized values in the template, to be used in the second pass, like Bart's actual extent used for coloring. Doesn't look to difficult to implement to me, as long as the two passes only get called when really necessary. I'm not sure if performance is an issue for MapServer itself: if you really want high performance, you should use the underlying format or database directly. Jan On 3-2-2010 17:02, Lime, Steve D (DNR) wrote: > How big a change would depend on the implementation. The brute force approach where you simply loop through features once to compute ranges and then again to draw would be probably pretty straight forward and driver independent. Wouldn't be fast (but would be simple). Complexity would be added as you try and boost performance by: > > - allowing drivers to compute stats in their own way (e.g. add to the layer API something like msLayerGetStats(...)) > - caching geometries from a first pass through the shapes for the second > > Steve > > BTW The color ramp support needs to be cleaned up first. I think we scared the originator of that code away when an RFC was originally put together. > > -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Bart van den Eijnden > Sent: Wednesday, February 03, 2010 5:12 AM > To: mapserver-users at lists.osgeo.org > Subject: [mapserver-users] colorramp and datarange on the fly? > > Hi list, > > is it possible to have a colorramp in Mapserver based on the min and max value in the current extent? > > So instead of predefining the min and max in DATARANGE, have Mapserver use the min and max value of the dataset in the current extent? > > If not, would it be an easy change or a very complex one? > > Best regards, > Bart_______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > _______________________________________________ > mapserver-dev mailing list > mapserver-dev at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-dev > From joe.harwood at gmail.com Wed Feb 3 08:20:30 2010 From: joe.harwood at gmail.com (Joseph Harwood) Date: Wed, 3 Feb 2010 11:20:30 -0500 Subject: [mapserver-users] WMS Mapfile implementation Message-ID: Greetings, I have a 2 part question. The USGS offers aerial imagery WMS service. This URL shows the location: http://seamless.usgs.gov/wms_services.php?layerid=15 I want to incorporate a WMS service from the USGS that references many layers (in this case, county aerial imagery). The getcapabilites request show the layers in xml: ... OH_WoodCounty_1.0ft_Color_Mar_2006 OH_WilliamsCounty_1.0ft_Color_Mar_2006 OH_WayneCounty_1.0ft_Color_Mar_2006 and so on. The online service URL is: http://imsortho.cr.usgs.gov/wmsconnector/com.esri.wms.Esrimap/USGS_EDC_Ortho_Ohio?REQUEST=capabilities&SERVICE=WMS 1. Is there a way to populate all these layers into my map with a single request, or do I need to make a mapfile layer object for each county? 2. If so, In doing this do I need the metadata to spell out each layer's(county) specific metadata? {title, bbox, name, layer, srid} My mapfile currently reads: LAYER NAME "OSIP-WMS" TYPE RASTER #TRANSPARENCY 40 STATUS OFF #MINSCALEDENOM 6000 CONNECTIONTYPE WMS CONNECTION " http://imsortho.cr.usgs.gov/wmsconnector/com.esri.wms.Esrimap/USGS_EDC_Ortho_Ohio?REQUEST=capabilities&SERVICE=WMS&layers=OH_AllenCounty_1.0ft_Color_Mar_2006 " METADATA "wms_srs" "EPSG:4326" "wms_title" "OH_AllenCounty_1.0ft_Color_Mar_2006" "wms_name" "OH_AllenCounty_1.0ft_Color_Mar_2006" "wms_layer" "OH_AllenCounty_1.0ft_Color_Mar_2006" "wms_server_version" "1.1.1" "wms_format" "image/png" #"wms_latlonboundingbox" "-85.000000, 38.000000, -80.250000, 42.000000" #"wms_opaque" "255,255,255" "basemap" "1" END END As I have tried to get a single county to work, but I have had no success, yet. Any haelp would be appreciated. Thank you Joe -------------- next part -------------- An HTML attachment was scrubbed... URL: From tommasodb at googlemail.com Wed Feb 3 08:38:14 2010 From: tommasodb at googlemail.com (tommasodb) Date: Wed, 03 Feb 2010 17:38:14 +0100 Subject: [mapserver-users] Rendering bridges In-Reply-To: <4B699142.6090503@swoodbridge.com> References: <4B696737.6070401@gmail.com> <4B699142.6090503@swoodbridge.com> Message-ID: <4B69A676.3090704@gmail.com> Stephen Woodbridge wrote: > Check out this: > http://code.google.com/p/mapserver-utils > > This code has an example of how to do that. > > -Steve W Hallo Stephen, thanks, but unfortunately the rendering of bridges are not configured there. cheers, tom From woodbri at swoodbridge.com Wed Feb 3 08:38:43 2010 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Wed, 03 Feb 2010 11:38:43 -0500 Subject: [mapserver-dev] RE: [mapserver-users] colorramp and datarange on the fly? In-Reply-To: <4B69A13E.3010708@uva.nl> References: <8CF4F4E7-1CEB-4CAA-8B6C-4FCDD74D03EC@osgis.nl> <4B69A13E.3010708@uva.nl> Message-ID: <4B69A693.8010507@swoodbridge.com> Right, I think there are two use cases: 1) data exploration - can be slower but needs flexibility 2) production serving - needs to be fast, and probably limits flexibility to some predefined models I think that there is also another angle to this, which is how the summary data is computed for example: 1) min/max/average/std 2) statistical analysis 3) binning into some number of classes 4) removing outliers so the results are not skewed by them 5) etc There are a lot of ways the people might need to summarize they data. If the data is in a database, then you can add all the analysis, slicing and dicing to the database and the rendering to mapserver. So, I think that it would be nice to be able to read some "metadata" about a layer and then use that for building the display using something like colorramp and datarange. We might want to look at ways that we could establish in mapserver for fetching the "metadata" about a layer. For example: 1) define the "metadata" in the METADATA object 2) define a .met file for a shapefile or tileindex that contained the "metadata" for that layer 3) define a separate SQL query that could be used to fetch the "metadata" for the layer 4) something similar for other layer providers. 5) scan the data in two passes to compute some simple "metadata" Thoughts? -Steve W Jan Hartmann wrote: > If you allow two passes, you can have all sorts of summarized values in > the template, to be used in the second pass, like Bart's actual extent > used for coloring. Doesn't look to difficult to implement to me, as long > as the two passes only get called when really necessary. I'm not sure if > performance is an issue for MapServer itself: if you really want high > performance, you should use the underlying format or database directly. > > Jan > > On 3-2-2010 17:02, Lime, Steve D (DNR) wrote: >> How big a change would depend on the implementation. The brute force >> approach where you simply loop through features once to compute ranges >> and then again to draw would be probably pretty straight forward and >> driver independent. Wouldn't be fast (but would be simple). Complexity >> would be added as you try and boost performance by: >> >> - allowing drivers to compute stats in their own way (e.g. add to >> the layer API something like msLayerGetStats(...)) >> - caching geometries from a first pass through the shapes for the >> second >> >> Steve >> >> BTW The color ramp support needs to be cleaned up first. I think we >> scared the originator of that code away when an RFC was originally put >> together. >> >> -----Original Message----- >> From: mapserver-users-bounces at lists.osgeo.org >> [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Bart van >> den Eijnden >> Sent: Wednesday, February 03, 2010 5:12 AM >> To: mapserver-users at lists.osgeo.org >> Subject: [mapserver-users] colorramp and datarange on the fly? >> >> Hi list, >> >> is it possible to have a colorramp in Mapserver based on the min and >> max value in the current extent? >> >> So instead of predefining the min and max in DATARANGE, have Mapserver >> use the min and max value of the dataset in the current extent? >> >> If not, would it be an easy change or a very complex one? >> >> Best regards, >> Bart_______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> _______________________________________________ >> mapserver-dev mailing list >> mapserver-dev at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-dev >> > _______________________________________________ > mapserver-dev mailing list > mapserver-dev at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-dev From woodbri at swoodbridge.com Wed Feb 3 08:54:25 2010 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Wed, 03 Feb 2010 11:54:25 -0500 Subject: [mapserver-dev] RE: [mapserver-users] colorramp and datarange on the fly? In-Reply-To: <4B69A693.8010507@swoodbridge.com> References: <8CF4F4E7-1CEB-4CAA-8B6C-4FCDD74D03EC@osgis.nl> <4B69A13E.3010708@uva.nl> <4B69A693.8010507@swoodbridge.com> Message-ID: <4B69AA41.4040105@swoodbridge.com> To add a little more to this... What I have done in the past for thematic maps is to do the analysis in the database and to bin the data into a new column or columns for each analysis. Then in my mapfile, I can select the column that I want to display. This made it easy to get fast maps because mapserver only had to render based on a simple value 1-n based on the number of bins I computed. I have also create a stored procedure in the past that I could pass in the number of bins and the type of analysis, and it would then compute the binned values on the fly. I found that there was a lot of flexibility doing this in postgresql and have mapserver generate the maps. This would also be a good way to prototype up the various analysis that you might want to explore. The one big missing piece to doing this is that there is not easy way to dynamically change the number of classes (bins) that are being generated in mapserver and assign them colors, which the colorramp and datarange would help with especially if there were a way to get those values dynamically from the data source. -Steve W Stephen Woodbridge wrote: > Right, I think there are two use cases: > > 1) data exploration - can be slower but needs flexibility > 2) production serving - needs to be fast, and probably limits > flexibility to some predefined models > > I think that there is also another angle to this, which is how the > summary data is computed for example: > > 1) min/max/average/std > 2) statistical analysis > 3) binning into some number of classes > 4) removing outliers so the results are not skewed by them > 5) etc > > There are a lot of ways the people might need to summarize they data. > > If the data is in a database, then you can add all the analysis, slicing > and dicing to the database and the rendering to mapserver. > > So, I think that it would be nice to be able to read some "metadata" > about a layer and then use that for building the display using something > like colorramp and datarange. We might want to look at ways that we > could establish in mapserver for fetching the "metadata" about a layer. > For example: > > 1) define the "metadata" in the METADATA object > 2) define a .met file for a shapefile or tileindex that contained the > "metadata" for that layer > 3) define a separate SQL query that could be used to fetch the > "metadata" for the layer > 4) something similar for other layer providers. > 5) scan the data in two passes to compute some simple "metadata" > > Thoughts? > > -Steve W > > > Jan Hartmann wrote: >> If you allow two passes, you can have all sorts of summarized values >> in the template, to be used in the second pass, like Bart's actual >> extent used for coloring. Doesn't look to difficult to implement to >> me, as long as the two passes only get called when really necessary. >> I'm not sure if performance is an issue for MapServer itself: if you >> really want high performance, you should use the underlying format or >> database directly. >> >> Jan >> >> On 3-2-2010 17:02, Lime, Steve D (DNR) wrote: >>> How big a change would depend on the implementation. The brute force >>> approach where you simply loop through features once to compute >>> ranges and then again to draw would be probably pretty straight >>> forward and driver independent. Wouldn't be fast (but would be >>> simple). Complexity would be added as you try and boost performance by: >>> >>> - allowing drivers to compute stats in their own way (e.g. add to >>> the layer API something like msLayerGetStats(...)) >>> - caching geometries from a first pass through the shapes for the >>> second >>> >>> Steve >>> >>> BTW The color ramp support needs to be cleaned up first. I think we >>> scared the originator of that code away when an RFC was originally >>> put together. >>> >>> -----Original Message----- >>> From: mapserver-users-bounces at lists.osgeo.org >>> [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Bart >>> van den Eijnden >>> Sent: Wednesday, February 03, 2010 5:12 AM >>> To: mapserver-users at lists.osgeo.org >>> Subject: [mapserver-users] colorramp and datarange on the fly? >>> >>> Hi list, >>> >>> is it possible to have a colorramp in Mapserver based on the min and >>> max value in the current extent? >>> >>> So instead of predefining the min and max in DATARANGE, have >>> Mapserver use the min and max value of the dataset in the current >>> extent? >>> >>> If not, would it be an easy change or a very complex one? >>> >>> Best regards, >>> Bart_______________________________________________ >>> mapserver-users mailing list >>> mapserver-users at lists.osgeo.org >>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>> _______________________________________________ >>> mapserver-dev mailing list >>> mapserver-dev at lists.osgeo.org >>> http://lists.osgeo.org/mailman/listinfo/mapserver-dev >>> >> _______________________________________________ >> mapserver-dev mailing list >> mapserver-dev at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-dev > > _______________________________________________ > mapserver-dev mailing list > mapserver-dev at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-dev From pauljame at gmail.com Wed Feb 3 09:18:18 2010 From: pauljame at gmail.com (Paul james) Date: Wed, 3 Feb 2010 14:18:18 -0300 Subject: [mapserver-users] Layer (line) with LABELITEM... In-Reply-To: <48FCA6810200008F0001CC9D@co5.dnr.state.mn.us> References: <48FCA6810200008F0001CC9D@co5.dnr.state.mn.us> Message-ID: <33fad6881002030918h6b0ed185ked25e3a7341124ff@mail.gmail.com> Hi Steve! Is it posible to do that now with new mapserver? Thanks On Mon, Oct 20, 2008 at 5:40 PM, Steve Lime wrote: > Hi Paul: For now you must have 2 layers. There's no way to make one > style apply > to the line work and the another to a label marker. That may change in > 5.4 but for > now you're stuck with 2. > > Steve > > >>> "Paul james" 10/17/08 12:44 PM >>> > Hello guys... > I have 2 layers, LINE and ANNOTATION... > Like that : > > LAYER > NAME TestLINE > TYPE LINE > ... > CLASS > STYLE > SYMBOL 'circle' > SIZE 16 > COLOR 175 175 175 > END ## BG > STYLE > SYMBOL 'circle' > SIZE 12 > COLOR 247 190 33 > END > MAXSCALE 40000 > END > CLASS > MINSCALE 40001 > #NAME 'US Interstate' ## Using Interstate Shield Symbol > Instead > STYLE > SYMBOL 'circle' > SIZE 14 > COLOR 175 175 175 > END ## BG > STYLE > SYMBOL 'circle' > SIZE 10 > COLOR 247 190 33 > END > MAXSCALE 45000 > END > END > > And I have a ANNOTATION to label the TestLINE layer: > LAYER > NAME 'road_sym' > TYPE ANNOTATION > LABELITEM 'roadnumber' > CLASS > STYLE > SYMBOL 'road' > SIZE 28 > COLOR 255 0 0 > END > STYLE > SYMBOL 'road' > SIZE 28 > COLOR 115 113 206 > OUTLINECOLOR 254 254 254 > END > LABEL > TYPE TRUETYPE > FONT Arial > SIZE 8 > COLOR 254 254 254 > MINDISTANCE 100 > MINFEATURESIZE 10 > OFFSET 0 0 > PARTIALS FALSE > END > MAXSCALE 20000000 > END > END > > That works great... > But, Is that possible to make just one layer with lines and annotation.. > I > tried using LABELITEM and LABEL on LINE layer... But where Am I supposed > to > write the label Style ? > > []?s > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From Steve.Lime at state.mn.us Wed Feb 3 09:52:52 2010 From: Steve.Lime at state.mn.us (Lime, Steve D (DNR)) Date: Wed, 3 Feb 2010 11:52:52 -0600 Subject: [mapserver-users] Rendering bridges In-Reply-To: References: <4B696737.6070401@gmail.com> Message-ID: I don't believe this will get you the desired effect. You'll get the lines but you'll also get the line end caps. That's the real trick, turning those off. I'm not sure that you can. Steve -----Original Message----- From: Fawcett, David (MPCA) Sent: Wednesday, February 03, 2010 10:13 AM To: Lime, Steve D (DNR); tommasodb; mapserver-users at lists.osgeo.org Subject: RE: [mapserver-users] Rendering bridges The feature that he is referencing is just a line segment with an additional attribute of 'bridge=yes'. * bridge: yes * highway: trunk * layer: 1 * name: Manchester Road * ref: A56 If you just wanted to use the road data and not create an additional bridges data set, you would likely need to split up the road features so that the segment that is a bridge is an individual feature. I haven't worked with any shapefile extracts from OSM, so the data may already be like this. Assuming that you have a line shapefile that has a column called 'bridge', you could set up two classes in your roads layer. The first one would have an expression like ('[bridge] = 'yes') and the second class wouldn't have an expression so it would catch the rest of the lines. In the first class, you would stack two lines, the bottom one being the color of your bridge and wider than the roads line that will go on top of it. David. -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Lime, Steve D (DNR) Sent: Wednesday, February 03, 2010 9:50 AM To: tommasodb; mapserver-users at lists.osgeo.org Subject: RE: [mapserver-users] Rendering bridges What feature type are bridges represented with in OpenStreetMap? -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of tommasodb Sent: Wednesday, February 03, 2010 6:08 AM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] Rendering bridges Hallo list, how can I render road bridges, like in mapnik? (Example: http://www.openstreetmap.org/?lat=53.398022&lon=-2.352222&zoom=18&layers=null) Which symbol can I use? Greets, Tom _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From Steve.Lime at state.mn.us Wed Feb 3 09:55:41 2010 From: Steve.Lime at state.mn.us (Lime, Steve D (DNR)) Date: Wed, 3 Feb 2010 11:55:41 -0600 Subject: [mapserver-dev] RE: [mapserver-users] colorramp and datarange on the fly? In-Reply-To: <4B69A693.8010507@swoodbridge.com> References: <8CF4F4E7-1CEB-4CAA-8B6C-4FCDD74D03EC@osgis.nl> <4B69A13E.3010708@uva.nl> <4B69A693.8010507@swoodbridge.com> Message-ID: At one point I toyed with the idea of supporting a .stats file for a layer and supplying a routine (command-line) that would populate it. The file would contain data like you're talking about. Doesn't help with the on-the-fly needs Bart was articulating. Steve -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Stephen Woodbridge Sent: Wednesday, February 03, 2010 10:39 AM To: Jan Hartmann Cc: Lime, Steve D (DNR); MapServer Dev Mailing List; mapserver-users at lists.osgeo.org Subject: Re: [mapserver-dev] RE: [mapserver-users] colorramp and datarange on the fly? Right, I think there are two use cases: 1) data exploration - can be slower but needs flexibility 2) production serving - needs to be fast, and probably limits flexibility to some predefined models I think that there is also another angle to this, which is how the summary data is computed for example: 1) min/max/average/std 2) statistical analysis 3) binning into some number of classes 4) removing outliers so the results are not skewed by them 5) etc There are a lot of ways the people might need to summarize they data. If the data is in a database, then you can add all the analysis, slicing and dicing to the database and the rendering to mapserver. So, I think that it would be nice to be able to read some "metadata" about a layer and then use that for building the display using something like colorramp and datarange. We might want to look at ways that we could establish in mapserver for fetching the "metadata" about a layer. For example: 1) define the "metadata" in the METADATA object 2) define a .met file for a shapefile or tileindex that contained the "metadata" for that layer 3) define a separate SQL query that could be used to fetch the "metadata" for the layer 4) something similar for other layer providers. 5) scan the data in two passes to compute some simple "metadata" Thoughts? -Steve W Jan Hartmann wrote: > If you allow two passes, you can have all sorts of summarized values in > the template, to be used in the second pass, like Bart's actual extent > used for coloring. Doesn't look to difficult to implement to me, as long > as the two passes only get called when really necessary. I'm not sure if > performance is an issue for MapServer itself: if you really want high > performance, you should use the underlying format or database directly. > > Jan > > On 3-2-2010 17:02, Lime, Steve D (DNR) wrote: >> How big a change would depend on the implementation. The brute force >> approach where you simply loop through features once to compute ranges >> and then again to draw would be probably pretty straight forward and >> driver independent. Wouldn't be fast (but would be simple). Complexity >> would be added as you try and boost performance by: >> >> - allowing drivers to compute stats in their own way (e.g. add to >> the layer API something like msLayerGetStats(...)) >> - caching geometries from a first pass through the shapes for the >> second >> >> Steve >> >> BTW The color ramp support needs to be cleaned up first. I think we >> scared the originator of that code away when an RFC was originally put >> together. >> >> -----Original Message----- >> From: mapserver-users-bounces at lists.osgeo.org >> [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Bart van >> den Eijnden >> Sent: Wednesday, February 03, 2010 5:12 AM >> To: mapserver-users at lists.osgeo.org >> Subject: [mapserver-users] colorramp and datarange on the fly? >> >> Hi list, >> >> is it possible to have a colorramp in Mapserver based on the min and >> max value in the current extent? >> >> So instead of predefining the min and max in DATARANGE, have Mapserver >> use the min and max value of the dataset in the current extent? >> >> If not, would it be an easy change or a very complex one? >> >> Best regards, >> Bart_______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> _______________________________________________ >> mapserver-dev mailing list >> mapserver-dev at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-dev >> > _______________________________________________ > mapserver-dev mailing list > mapserver-dev at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-dev _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From cnieman at dmsolutions.ca Wed Feb 3 10:13:09 2010 From: cnieman at dmsolutions.ca (Christy Nieman) Date: Wed, 03 Feb 2010 13:13:09 -0500 Subject: [mapserver-users] Rendering bridges In-Reply-To: References: <4B696737.6070401@gmail.com> Message-ID: <4B69BCB5.7010505@dmsolutions.ca> Hi, If you draw it in two layers, one with the colour and width you want for the bridges, and the other with the road line to go on top, you will essentially cover up the end caps. The bridges layer would have to come first in the mapfile, followed by the road line layer. Christy -- Christy Nieman GIS Technician DM Solutions Group, Inc. Email: cnieman at dmsolutions.ca Web: http://dmsolutions.ca Web: http://research.dmsolutions.ca On 02/03/2010 12:52 PM, Lime, Steve D (DNR) wrote: > I don't believe this will get you the desired effect. You'll get the lines but you'll also get the line end caps. That's the real trick, turning those off. I'm not sure that you can. > > Steve > > -----Original Message----- > From: Fawcett, David (MPCA) > Sent: Wednesday, February 03, 2010 10:13 AM > To: Lime, Steve D (DNR); tommasodb; mapserver-users at lists.osgeo.org > Subject: RE: [mapserver-users] Rendering bridges > > The feature that he is referencing is just a line segment with an additional attribute of 'bridge=yes'. > > * bridge: yes > * highway: trunk > * layer: 1 > * name: Manchester Road > * ref: A56 > > If you just wanted to use the road data and not create an additional bridges data set, you would likely need to split up the road features so that the segment that is a bridge is an individual feature. > > I haven't worked with any shapefile extracts from OSM, so the data may already be like this. > > Assuming that you have a line shapefile that has a column called 'bridge', you could set up two classes in your roads layer. The first one would have an expression like ('[bridge] = 'yes') and the second class wouldn't have an expression so it would catch the rest of the lines. > > In the first class, you would stack two lines, the bottom one being the color of your bridge and wider than the roads line that will go on top of it. > > David. > > -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Lime, Steve D (DNR) > Sent: Wednesday, February 03, 2010 9:50 AM > To: tommasodb; mapserver-users at lists.osgeo.org > Subject: RE: [mapserver-users] Rendering bridges > > What feature type are bridges represented with in OpenStreetMap? > > -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of tommasodb > Sent: Wednesday, February 03, 2010 6:08 AM > To: mapserver-users at lists.osgeo.org > Subject: [mapserver-users] Rendering bridges > > Hallo list, > > how can I render road bridges, like in mapnik? > (Example: > http://www.openstreetmap.org/?lat=53.398022&lon=-2.352222&zoom=18&layers=null) > Which symbol can I use? > > Greets, > Tom > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -------------- next part -------------- An HTML attachment was scrubbed... URL: From Steve.Lime at state.mn.us Wed Feb 3 10:23:21 2010 From: Steve.Lime at state.mn.us (Lime, Steve D (DNR)) Date: Wed, 3 Feb 2010 12:23:21 -0600 Subject: [mapserver-users] Rendering bridges In-Reply-To: <4B69BCB5.7010505@dmsolutions.ca> References: <4B696737.6070401@gmail.com> <4B69BCB5.7010505@dmsolutions.ca> Message-ID: Good idea. The width of the bridge would have to be larger than the road so it sticks out a bit at well... From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Christy Nieman Sent: Wednesday, February 03, 2010 12:13 PM To: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Rendering bridges Hi, If you draw it in two layers, one with the colour and width you want for the bridges, and the other with the road line to go on top, you will essentially cover up the end caps. The bridges layer would have to come first in the mapfile, followed by the road line layer. Christy -- Christy Nieman GIS Technician DM Solutions Group, Inc. Email: cnieman at dmsolutions.ca Web: http://dmsolutions.ca Web: http://research.dmsolutions.ca On 02/03/2010 12:52 PM, Lime, Steve D (DNR) wrote: I don't believe this will get you the desired effect. You'll get the lines but you'll also get the line end caps. That's the real trick, turning those off. I'm not sure that you can. Steve -----Original Message----- From: Fawcett, David (MPCA) Sent: Wednesday, February 03, 2010 10:13 AM To: Lime, Steve D (DNR); tommasodb; mapserver-users at lists.osgeo.org Subject: RE: [mapserver-users] Rendering bridges The feature that he is referencing is just a line segment with an additional attribute of 'bridge=yes'. * bridge: yes * highway: trunk * layer: 1 * name: Manchester Road * ref: A56 If you just wanted to use the road data and not create an additional bridges data set, you would likely need to split up the road features so that the segment that is a bridge is an individual feature. I haven't worked with any shapefile extracts from OSM, so the data may already be like this. Assuming that you have a line shapefile that has a column called 'bridge', you could set up two classes in your roads layer. The first one would have an expression like ('[bridge] = 'yes') and the second class wouldn't have an expression so it would catch the rest of the lines. In the first class, you would stack two lines, the bottom one being the color of your bridge and wider than the roads line that will go on top of it. David. -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Lime, Steve D (DNR) Sent: Wednesday, February 03, 2010 9:50 AM To: tommasodb; mapserver-users at lists.osgeo.org Subject: RE: [mapserver-users] Rendering bridges What feature type are bridges represented with in OpenStreetMap? -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of tommasodb Sent: Wednesday, February 03, 2010 6:08 AM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] Rendering bridges Hallo list, how can I render road bridges, like in mapnik? (Example: http://www.openstreetmap.org/?lat=53.398022&lon=-2.352222&zoom=18&layers=null) Which symbol can I use? Greets, Tom _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From Tim.Nolte at ipcswirelessinc.com Wed Feb 3 11:44:15 2010 From: Tim.Nolte at ipcswirelessinc.com (Nolte, Tim) Date: Wed, 3 Feb 2010 14:44:15 -0500 Subject: [mapserver-users] OCI-22053: overflow error with CONNECTIONTYPEoraclespatial In-Reply-To: <4B697222.9090509@BfS.de> References: <4B697222.9090509@BfS.de> Message-ID: Stefan, Do you have the Georaptor extension installed in SQL Dev? Have you tried to run the verification on all of the geom data in that table? - Tim ---- Timothy J Nolte - tnolte at ilpcs.com Network Planning Engineer 4717 Broadmoor Ave, Suite G Kentwood, MI 49512 Office: 616-656-5163 PCS:??? 616-706-2438 Support: 616-929-0289 Fax: 616-554-6484 -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Stefan Schantz Sent: Wednesday, February 03, 2010 7:55 AM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] OCI-22053: overflow error with CONNECTIONTYPEoraclespatial Hello, I am trying to visualize some points from a oracle database (10.2) : I am using MapServer version 5.2.0 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=ICONV SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=GEOS INPUT=EPPL7 INPUT=POSTGIS INPUT=ORACLESPATIAL INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE My layer description is ---- LAYER NAME "tra_punkte" TYPE POINT STATUS ON DEBUG ON #DUMP TRUE CONNECTIONTYPE oraclespatial CONNECTION "***/***@(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=***)(PORT= 1521)))(CONNECT_DATA=(SID=***)))" DATA "GEOM from (select geom, HOEHE, AUSGANGSHOEHE, ID FROM imis_geo.trapkt_6222 ) USING UNIQUE ID SRID 4326" ------- and the following statement is written in the log-file ------ [Wed Feb 3 12:54:00 2010].603594 msOracleSpatialLayerWhichShapes. Using this Sql to retrieve the data: SELECT ID, GEOM FROM (select geom, HOEHE, AUSGANGSHOEHE, ID FROM imis_geo.trapkt_6222 ) WHERE SDO_FILTER( GEOM, MDSYS.SDO_GEOMETRY(2003, 4326, NULL,MDSYS.SDO_ELEM_INFO_ARRAY(1,1003,3),MDSYS.SDO_ORDINATE_ARRAY(-70.5721827,29.3243683,69.9787827,79.1709317) ),'querytype=window') = 'TRUE' [Wed Feb 3 12:54:00 2010].823525 osGetOrdinates(): OracleSpatial error. OCI-22053: overflow error ------ But if I try the sql in SQL-Developer, i get the result without any errors? The connection between UMN and oracle database is working fine in several different layers, but not in this one. Is there anything I can do? Best Regards, Stefan _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From Steve.Toutant at inspq.qc.ca Wed Feb 3 13:18:49 2010 From: Steve.Toutant at inspq.qc.ca (Steve.Toutant at inspq.qc.ca) Date: Wed, 3 Feb 2010 16:18:49 -0500 Subject: [mapserver-users] Triangle symbol In-Reply-To: <4B5DBFEC.3040206@gatewaygeomatics.com> Message-ID: Hi, I need to create 2 triangles as symbol. I thought that would be an easy task but I can'T make it works!! >From this example http://mapserver.org/mapfile/symbology/examples.html#example-3-vector-triangle-marker-symbol I use SYMBOL NAME "triangle" TYPE vector POINTS 0 4 2 0 4 4 0 4 END END I thought that would give a triangle like this \/ But I got /\ What is it I don't understand please? thanks Steve -------------- next part -------------- An HTML attachment was scrubbed... URL: From woodbri at swoodbridge.com Wed Feb 3 13:23:37 2010 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Wed, 03 Feb 2010 16:23:37 -0500 Subject: [mapserver-users] Rendering bridges In-Reply-To: References: <4B696737.6070401@gmail.com> <4B69BCB5.7010505@dmsolutions.ca> Message-ID: <4B69E959.8090106@swoodbridge.com> This is just from memory (haven't tried it, but something like this should work wit agg on 5.6 bridge gets a solid black outline tunnel gets a dashed black outline others get a normal rendition Try playing with this LAYER CLASS # if its a bridge draw it here EXPRESSION ("[bridge]" == "yes") STYLE COLOR "#888888" WIDTH 11 OUTLINECOLOR "#000000" OUTLINEWIDTH 3 END STYLE COLOR "#DDDDDD" WIDTH 9 END END CLASS # else if it is a tunnel draw it here EXPRESSION ("[tunnel]" == "yes") STYLE COLOR "#000000" SYMBOL "dash" WIDTH 17 END STYLE COLOR "#888888" WIDTH 11 END STYLE COLOR "#DDDDDD" WIDTH 9 END END CLASS # otherwise draw it here STYLE STYLE COLOR "#888888" WIDTH 11 END STYLE COLOR "#DDDDDD" WIDTH 9 END END END -Steve W http://imaptools.com/ Lime, Steve D (DNR) wrote: > Good idea. The width of the bridge would have to be larger than the > road so it sticks out a bit at well? > > > > *From:* mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] *On Behalf Of *Christy > Nieman > *Sent:* Wednesday, February 03, 2010 12:13 PM > *To:* mapserver-users at lists.osgeo.org > *Subject:* Re: [mapserver-users] Rendering bridges > > > > Hi, > > If you draw it in two layers, one with the colour and width you want for > the bridges, and the other with the road line to go on top, you will > essentially cover up the end caps. The bridges layer would have to come > first in the mapfile, followed by the road line layer. > > Christy > -- > Christy Nieman > GIS Technician > DM Solutions Group, Inc. > Email: cnieman at dmsolutions.ca > Web: http://dmsolutions.ca > Web: http://research.dmsolutions.ca > > On 02/03/2010 12:52 PM, Lime, Steve D (DNR) wrote: > > I don't believe this will get you the desired effect. You'll get the lines but you'll also get the line end caps. That's the real trick, turning those off. I'm not sure that you can. > > > > Steve > > > > -----Original Message----- > > From: Fawcett, David (MPCA) > > Sent: Wednesday, February 03, 2010 10:13 AM > > To: Lime, Steve D (DNR); tommasodb; mapserver-users at lists.osgeo.org > > Subject: RE: [mapserver-users] Rendering bridges > > > > The feature that he is referencing is just a line segment with an additional attribute of 'bridge=yes'. > > > > * bridge: yes > > * highway: trunk > > * layer: 1 > > * name: Manchester Road > > * ref: A56 > > > > If you just wanted to use the road data and not create an additional bridges data set, you would likely need to split up the road features so that the segment that is a bridge is an individual feature. > > > > I haven't worked with any shapefile extracts from OSM, so the data may already be like this. > > > > Assuming that you have a line shapefile that has a column called 'bridge', you could set up two classes in your roads layer. The first one would have an expression like ('[bridge] = 'yes') and the second class wouldn't have an expression so it would catch the rest of the lines. > > > > In the first class, you would stack two lines, the bottom one being the color of your bridge and wider than the roads line that will go on top of it. > > > > David. > > > > -----Original Message----- > > From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Lime, Steve D (DNR) > > Sent: Wednesday, February 03, 2010 9:50 AM > > To: tommasodb; mapserver-users at lists.osgeo.org > > Subject: RE: [mapserver-users] Rendering bridges > > > > What feature type are bridges represented with in OpenStreetMap? > > > > -----Original Message----- > > From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of tommasodb > > Sent: Wednesday, February 03, 2010 6:08 AM > > To: mapserver-users at lists.osgeo.org > > Subject: [mapserver-users] Rendering bridges > > > > Hallo list, > > > > how can I render road bridges, like in mapnik? > > (Example: > > http://www.openstreetmap.org/?lat=53.398022&lon=-2.352222&zoom=18&layers=null ) > > Which symbol can I use? > > > > Greets, > > Tom > > _______________________________________________ > > mapserver-users mailing list > > mapserver-users at lists.osgeo.org > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > _______________________________________________ > > mapserver-users mailing list > > mapserver-users at lists.osgeo.org > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > _______________________________________________ > > mapserver-users mailing list > > mapserver-users at lists.osgeo.org > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > > > > ------------------------------------------------------------------------ > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From Jukka.Rahkonen at mmmtike.fi Wed Feb 3 14:22:38 2010 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Thu, 4 Feb 2010 00:22:38 +0200 Subject: [mapserver-users] Access to a remote raster file in wms-mapfile References: <224DBDAF88A6AC47BD22432815351BE007B9CFD5@nekaposta1> <4B698C68.8010307@mapgears.com> Message-ID: Hi, I guess that you will also need to configure Apache server so that it gives an access to the remote disk. I have not done it with IP-address but by assigning a drive letter for it first. This has a side effect that Apache cannot be installed as Windows service in a simple way. -Jukka Rahkonen- Daniel Morissette wrote: I'd suggest you start by making sure GDAL can open the file: 1- Does "gdalinfo --formats" list the ECW format? 2- Check that you are able to open the file with gdalinfo \\192.168.1.4\ortofotos\EUSKADI_2009_ED50.ecw Daniel David Alda Fernandez de Lezea wrote: > Hi list, > > I'm trying to access a remote raster file stored in NAS device (Iomega StorCenter Pro NAS 150D) which ip address is (192.168.1.4). > > In my mapfile I'm putting the url like this: > > DATA "\\192.168.1.4\ortofotos\EUSKADI_2009_ED50.ecw" > > But when I try to load the wms layer, I don't get anything and mapserver throws the following error: > > ... > [Wed Feb 03 09:11:13 2010].67000 msDrawRaster(): Unable to access file. \\192.168.1.4\ortofotos\EUSKADI_2009_ED50.ecw using full path \\192.168.1.4\ortofotos\EUSKADI_2009_ED50.ecw > [Wed Feb 03 09:11:13 2010].67000 Unable to open file \\192.168.1.4\ortofotos\EUSKADI_2009_ED50.ecw for layer orto0 ... ignoring this missing data. > [Wed Feb 03 09:11:13 2010].67000 msDrawMap(): Layer 1 (orto0), 0.000s > ... > > The thing, is that if I type this url in my web browser, I get the file downloading. What I'm doing wrong? Any ideas? > > Thanks in advance. > > > Un saludo, > > ?????????????????????????????????????????????????????????????????????????????????? > > David Alda Fern?ndez de Lezea > Lurralde eta Biodibertsitate Saila / Dpto. de Territorio y Biodiversidad > > IKT > Granja Modelo s/n ? 01192 ? Arkaute (Araba) > > ?????????????????????????????????????????????????????????????????????????????????? > Tlfnos.: 945-00-32-95 Fax: 945-00.32.90 > ?????????????????????????????????????????????????????????????????????????????????? > email: dalda at ikt.es web: www.ikt.es > ?????????????????????????????????????????????????????????????????????????????????? > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Daniel Morissette http://www.mapgears.com/ _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From szekerest at gmail.com Wed Feb 3 14:43:04 2010 From: szekerest at gmail.com (Tamas Szekeres) Date: Wed, 3 Feb 2010 23:43:04 +0100 Subject: [mapserver-users] msplugin_mssql2008 and getFeature() In-Reply-To: <005701caa47d$15485690$3fd903b0$@com> References: <20100202213446.GA455@cloud3.rho.net> <25de2c7c1002021510v10f1009dkdf4ea4acc975f7d5@mail.gmail.com> <20100202232301.GG20135@metacarta.com> <20100202233405.GA6050@cloud3.rho.net> <20100203013513.GH20135@metacarta.com> <005701caa47d$15485690$3fd903b0$@com> Message-ID: Gabe, I suspect your issue may be related to some parsing problem with the DATA section. I think you might want to try defining a single view for your data and then use this view to define the DATA section like: gExtent from MyView using unique [iId] using SRID=4326 Best regards, Tamas 2010/2/3 Gabe Codina > Hi All > > I have a web mapping app based on ms 5.2.1 and php mapScript. Our business > layers are stored in MSSQL2008 and were transferred from postgis some time > ago. > > I have a requirement to highlight selected features on the map - the way > this used to work was I would add a highlight layer to the map and addthe > selected features to it by using getShape and addFeature. > > Using the mssql plugin my calls to getShape (and getFeature) always return > FALSE. I know the features are there but they cannot be retrieved. > > Info: > > Sample data statement > > DATA "gExtent FROM (SELECT [iId],geometry::STGeomFromWKB([binExtentWKB], > 4326) AS gExtent > ,[cIdentifiers],[cLabel],[iSessionId] FROM > [Scratch].[tManagementUnitsGeometry] WHERE [iSessionId] = 310) AS FOO USING > UNIQUE [iId] USING SRID=4326" > > Some Mapscript > > if ($resTileShpIdx){ > $resShape = $qLayer->getShape($resTileShpIdx, > $resShpIdx); > } else { > $resShape = $qLayer->getFeature($resShpIdx); > } > > ... > > > $newResLayer->addFeature($resShape); > > > Any help will be greatly appreciated. > > Gabe Codina > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -------------- next part -------------- An HTML attachment was scrubbed... URL: From Steve.Lime at state.mn.us Wed Feb 3 14:53:48 2010 From: Steve.Lime at state.mn.us (Lime, Steve D (DNR)) Date: Wed, 3 Feb 2010 16:53:48 -0600 Subject: [mapserver-users] Triangle symbol In-Reply-To: References: <4B5DBFEC.3040206@gatewaygeomatics.com> Message-ID: The origin for graphics coordinates is in the UL corner of an image. Symbol defs are the same with 0,0 being the UL corner of a symbol. Steve From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Steve.Toutant at inspq.qc.ca Sent: Wednesday, February 03, 2010 3:19 PM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] Triangle symbol Hi, I need to create 2 triangles as symbol. I thought that would be an easy task but I can'T make it works!! >From this example http://mapserver.org/mapfile/symbology/examples.html#example-3-vector-triangle-marker-symbol I use SYMBOL NAME "triangle" TYPE vector POINTS 0 4 2 0 4 4 0 4 END END I thought that would give a triangle like this \/ But I got /\ What is it I don't understand please? thanks Steve -------------- next part -------------- An HTML attachment was scrubbed... URL: From Gabe at Agtrix.com Wed Feb 3 16:22:33 2010 From: Gabe at Agtrix.com (Gabe Codina) Date: Thu, 4 Feb 2010 11:22:33 +1100 Subject: [mapserver-users] msplugin_mssql2008 and getFeature() In-Reply-To: References: <20100202213446.GA455@cloud3.rho.net> <25de2c7c1002021510v10f1009dkdf4ea4acc975f7d5@mail.gmail.com> <20100202232301.GG20135@metacarta.com> <20100202233405.GA6050@cloud3.rho.net> <20100203013513.GH20135@metacarta.com> <005701caa47d$15485690$3fd903b0$@com> Message-ID: <006301caa530$25b17300$71145900$@com> Thanks I have a work around - I am maintaining the selection in the database and have defined a class to highlight the selected features - ironically making my data section even more verbose. If I have to come back to this I will have a look at the simple view approach (you should see some of my other data statements). Unfortunately Postgis is not an option as we have lots of distributed components that all work with MSSQL, the only way we would do that is to link a postgis server to the sql one and use some sort of data synchronization. G From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Tamas Szekeres Sent: Thursday, 4 February 2010 9:43 AM To: Gabe Codina Cc: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] msplugin_mssql2008 and getFeature() Gabe, I suspect your issue may be related to some parsing problem with the DATA section. I think you might want to try defining a single view for your data and then use this view to define the DATA section like: gExtent from MyView using unique [iId] using SRID=4326 Best regards, Tamas 2010/2/3 Gabe Codina Hi All I have a web mapping app based on ms 5.2.1 and php mapScript. Our business layers are stored in MSSQL2008 and were transferred from postgis some time ago. I have a requirement to highlight selected features on the map - the way this used to work was I would add a highlight layer to the map and addthe selected features to it by using getShape and addFeature. Using the mssql plugin my calls to getShape (and getFeature) always return FALSE. I know the features are there but they cannot be retrieved. Info: Sample data statement DATA "gExtent FROM (SELECT [iId],geometry::STGeomFromWKB([binExtentWKB], 4326) AS gExtent ,[cIdentifiers],[cLabel],[iSessionId] FROM [Scratch].[tManagementUnitsGeometry] WHERE [iSessionId] = 310) AS FOO USING UNIQUE [iId] USING SRID=4326" Some Mapscript if ($resTileShpIdx){ $resShape = $qLayer->getShape($resTileShpIdx, $resShpIdx); } else { $resShape = $qLayer->getFeature($resShpIdx); } ... $newResLayer->addFeature($resShape); Any help will be greatly appreciated. Gabe Codina _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From guineau at earthlink.net Wed Feb 3 16:50:21 2010 From: guineau at earthlink.net (W.John Guineau) Date: Wed, 3 Feb 2010 19:50:21 -0500 Subject: [mapserver-users] unsubscribe Message-ID: <030b01caa534$0833dee0$189b9ca0$@net> -------------- next part -------------- An HTML attachment was scrubbed... URL: From dalda at ikt.es Wed Feb 3 23:39:49 2010 From: dalda at ikt.es (David Alda Fernandez de Lezea) Date: Thu, 4 Feb 2010 08:39:49 +0100 Subject: [mapserver-users] Access to a remote raster file in wms-mapfile Message-ID: <224DBDAF88A6AC47BD22432815351BE007B9D4F7@nekaposta1> Thanks for your answers: Daniel: I tried what you mentioned: 1- Does "gdalinfo --formats" list the ECW format? Yes it does. Supported Formats: VRT (rw+): Virtual Raster GTiff (rw+): GeoTIFF NITF (rw+): National Imagery Transmission Format RPFTOC (ro): Raster Product Format TOC format HFA (rw+): Erdas Imagine Images (.img) SAR_CEOS (ro): CEOS SAR Image CEOS (ro): CEOS Image JAXAPALSAR (ro): JAXA PALSAR Product Reader (Level 1.1/1.5) GFF (ro): Ground-based SAR Applications Testbed File Format (.gff) 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 FITS (rw+): Flexible Image Transport System BSB (ro): Maptech BSB Nautical Charts XPM (rw): X11 PixMap Format BMP (rw+): MS Windows Device Independent Bitmap DIMAP (ro): SPOT DIMAP 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 SGI (rw+): SGI Image File Format 1.0 SRTMHGT (rw): SRTMHGT File Format Leveller (rw+): Leveller heightfield Terragen (rw+): Terragen heightfield GMT (rw): GMT NetCDF Grid Format netCDF (rw): Network Common Data Format ISIS3 (ro): USGS Astrogeology ISIS cube (Version 3) ISIS2 (ro): USGS Astrogeology ISIS cube (Version 2) PDS (ro): NASA Planetary Data System ERS (rw+): ERMapper .ers Labelled ECW (rw): ERMapper Compressed Wavelets JP2ECW (rw+): ERMapper JPEG2000 L1B (ro): NOAA Polar Orbiter Level 1b Data Set FIT (rw): FIT Image GRIB (ro): GRIdded Binary (.grb) MrSID (ro): Multi-resolution Seamless Image Database (MrSID) JP2MrSID (ro): MrSID JPEG2000 RMF (rw+): Raster Matrix Format WCS (ro): OGC Web Coverage Service WMS (ro): OGC Web Map Service MSGN (ro): EUMETSAT Archive native (.nat) RST (rw+): Idrisi Raster A.1 INGR (rw+): Intergraph Raster GSAG (rw): Golden Software ASCII Grid (.grd) GSBG (rw+): Golden Software Binary Grid (.grd) GS7BG (ro): Golden Software 7 Binary Grid (.grd) COSAR (ro): COSAR Annotated Binary Matrix (TerraSAR-X) TSX (ro): TerraSAR-X Product COASP (ro): DRDC COASP SAR Processor Raster 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 GenBin (ro): Generic Binary (.hdr Labelled) PAux (rw+): PCI .aux Labelled MFF (rw+): Vexcel MFF Raster MFF2 (rw+): Vexcel 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 EIR (ro): Erdas Imagine Raw DIPEx (ro): DIPEx LCP (ro): FARSITE v.4 Landscape File (.lcp) RIK (ro): Swedish Grid RIK (.rik) USGSDEM (rw): USGS Optional ASCII DEM (and CDED) GXF (ro): GeoSoft Grid Exchange Format HTTP (ro): HTTP Fetching Wrapper HDF5 (ro): Hierarchical Data Format Release 5 HDF5Image (ro): HDF5 Dataset ADRG (rw+): ARC Digitized Raster Graphics BLX (rw): Magellan topo (.blx) 2- Check that you are able to open the file with gdalinfo \\192.168.1.4\ortofotos\EUSKADI_2009_ED50.ecw I'm able to get file info: Driver: ECW/ERMapper Compressed Wavelets Files: \\192.168.1.4\ortofotos\EUSKADI_2009_ED50.ecw Size is 596353, 462680 Coordinate System is `' Origin = (457707.500000000000000,4811974.969999999700000) Pixel Size = (0.250000000000000,-0.250000000000000) Corner Coordinates: Upper Left ( 457707.500, 4811974.970) Lower Left ( 457707.500, 4696304.970) Upper Right ( 606795.750, 4811974.970) Lower Right ( 606795.750, 4696304.970) Center ( 532251.625, 4754139.970) Band 1 Block=596353x1 Type=Byte, ColorInterp=Red Overviews: arbitrary Metadata: LAYER_TYPE=athematic Band 2 Block=596353x1 Type=Byte, ColorInterp=Green Overviews: arbitrary Metadata: LAYER_TYPE=athematic Band 3 Block=596353x1 Type=Byte, ColorInterp=Blue Overviews: arbitrary Metadata: LAYER_TYPE=athematic Jukka: I've got another raster file that I CAN access from my WMS an it's located in a mapped unit: DATA "\\iktfs1\Estatica$\ORTOFOTOS\Euskadi_2006_rgb_25cm_ed50.ecw" It's weird isn't it?? I guess it could be something related to the named units or something like that. More suggestions?? Thanks again. Un saludo, ?????????????????????????????????????????????????????????????????????????????????? David Alda Fern?ndez de Lezea Lurralde eta Biodibertsitate Saila / Dpto. de Territorio y Biodiversidad IKT Granja Modelo s/n ? 01192 ? Arkaute (Araba) ?????????????????????????????????????????????????????????????????????????????????? Tlfnos.: 945-00-32-95 Fax: 945-00.32.90 ?????????????????????????????????????????????????????????????????????????????????? email: dalda at ikt.es web: www.ikt.es ?????????????????????????????????????????????????????????????????????????????????? -----Mensaje original----- De: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] En nombre de Rahkonen Jukka Enviado el: mi?rcoles, 03 de febrero de 2010 23:23 Para: mapserver-users at lists.osgeo.org Asunto: Re: [mapserver-users] Access to a remote raster file in wms-mapfile Hi, I guess that you will also need to configure Apache server so that it gives an access to the remote disk. I have not done it with IP-address but by assigning a drive letter for it first. This has a side effect that Apache cannot be installed as Windows service in a simple way. -Jukka Rahkonen- Daniel Morissette wrote: I'd suggest you start by making sure GDAL can open the file: 1- Does "gdalinfo --formats" list the ECW format? 2- Check that you are able to open the file with gdalinfo \\192.168.1.4\ortofotos\EUSKADI_2009_ED50.ecw Daniel David Alda Fernandez de Lezea wrote: > Hi list, > > I'm trying to access a remote raster file stored in NAS device (Iomega StorCenter Pro NAS 150D) which ip address is (192.168.1.4). > > In my mapfile I'm putting the url like this: > > DATA "\\192.168.1.4\ortofotos\EUSKADI_2009_ED50.ecw" > > But when I try to load the wms layer, I don't get anything and mapserver throws the following error: > > ... > [Wed Feb 03 09:11:13 2010].67000 msDrawRaster(): Unable to access > file. \\192.168.1.4\ortofotos\EUSKADI_2009_ED50.ecw using full path > \\192.168.1.4\ortofotos\EUSKADI_2009_ED50.ecw > [Wed Feb 03 09:11:13 2010].67000 Unable to open file \\192.168.1.4\ortofotos\EUSKADI_2009_ED50.ecw for layer orto0 ... ignoring this missing data. > [Wed Feb 03 09:11:13 2010].67000 msDrawMap(): Layer 1 (orto0), 0.000s > ... > > The thing, is that if I type this url in my web browser, I get the file downloading. What I'm doing wrong? Any ideas? > > Thanks in advance. > > > Un saludo, > > ?????????????????????????????????????????????????????????????????????? > ???????????? > > David Alda Fern?ndez de Lezea > Lurralde eta Biodibertsitate Saila / Dpto. de Territorio y > Biodiversidad > > IKT > Granja Modelo s/n ? 01192 ? Arkaute (Araba) > > ?????????????????????????????????????????????????????????????????????????????????? > Tlfnos.: 945-00-32-95 Fax: 945-00.32.90 > ?????????????????????????????????????????????????????????????????????????????????? > email: dalda at ikt.es web: www.ikt.es > ?????????????????????????????????????????????????????????????????????? > ???????????? _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Daniel Morissette http://www.mapgears.com/ _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From bastian2025 at gmx.de Thu Feb 4 00:48:18 2010 From: bastian2025 at gmx.de (Basti2025) Date: Thu, 4 Feb 2010 00:48:18 -0800 (PST) Subject: [mapserver-users] Re: high quality print from external wms In-Reply-To: <4B698F54.3050403@xs4all.nl> References: <1265111675995-4500369.post@n2.nabble.com> <4B698A90.5050409@xs4all.nl> <3BB65ECB-C82C-4CB3-87DE-9F0468AF0DF8@osgis.nl> <4B698F54.3050403@xs4all.nl> Message-ID: <1265273298835-4512284.post@n2.nabble.com> Hi, thanks for all the answers. I've checked out the following request: http://????????????????????????????????????????????/Mapfiles/wms_client_4.map&VERSION=1.1.1&REQUEST=GetMap&SERVICE=WMS&LAYERS=grenzen_50000,grenzen_200000,grenzen_400000,grenzen_100000000,flaechen_5000,flaechen_20000,flaechen_100000,flaechen_200000,flaechen_2000000,flaechen_100000000,gebaeude_flaechen_01,adressen,wasser_50000,wasser_100000,wasser_200000,wasser_500000,wasser_1000000,wasser_100000000,strassen_br,strassen_20000,strassen_50000,strassen_200000,strassen_400000,strassen_1000000,strassen_100000000,strassen_x,orte&STYLES=,,,,,,,,,,,,,,,,,,,,,,,,,,&SRS=EPSG:31467&BBOX=3299936.509179781,5598000,3568000,5973563.328189&WIDTH=1780&HEIGHT=2496&FORMAT=image/png&BGCOLOR=0xffffff&TRANSPARENT=TRUE&EXCEPTIONS=application/vnd.ogc.se_inimage I tried to set my MAXSIZE in the Mapfile to 2048 and SIZE to 2048 2048, but the request always said WIDTH=1780&HEIGHT=2496 Is there any other option in the MAPFILE that i have to activate? regards Bastian -- View this message in context: http://n2.nabble.com/high-quality-print-from-external-wms-tp4500369p4512284.html Sent from the Mapserver - User mailing list archive at Nabble.com. From bastian2025 at gmx.de Thu Feb 4 01:22:50 2010 From: bastian2025 at gmx.de (Basti2025) Date: Thu, 4 Feb 2010 01:22:50 -0800 (PST) Subject: [mapserver-users] Re: high quality print from external wms In-Reply-To: <1265111675995-4500369.post@n2.nabble.com> References: <1265111675995-4500369.post@n2.nabble.com> Message-ID: <1265275370259-4512400.post@n2.nabble.com> Hi, thanks for all the answers. I've checked out the following request: http://????????????????????????????????????????????/Mapfiles/wms_client_4.map&VERSION=1.1.1&REQUEST=GetMap&SERVICE=WMS&LAYERS=grenzen_50000,grenzen_200000,grenzen_400000,grenzen_100000000,flaechen_5000,flaechen_20000,flaechen_100000,flaechen_200000,flaechen_2000000,flaechen_100000000,gebaeude_flaechen_01,adressen,wasser_50000,wasser_100000,wasser_200000,wasser_500000,wasser_1000000,wasser_100000000,strassen_br,strassen_20000,strassen_50000,strassen_200000,strassen_400000,strassen_1000000,strassen_100000000,strassen_x,orte&STYLES=,,,,,,,,,,,,,,,,,,,,,,,,,,&SRS=EPSG:31467&BBOX=3299936.509179781,5598000,3568000,5973563.328189& WIDTH=1780&HEIGHT=2496 &FORMAT=image/png&BGCOLOR=0xffffff&TRANSPARENT=TRUE&EXCEPTIONS=application/vnd.ogc.se_inimage I tried to set my MAXSIZE in the Mapfile to 2048 and SIZE to 2048 2048, but the request always said WIDTH=1780&HEIGHT=2496 Is there any other option in the MAPFILE that i have to activate? regards Bastian -- View this message in context: http://n2.nabble.com/high-quality-print-from-external-wms-tp4500369p4512400.html Sent from the Mapserver - User mailing list archive at Nabble.com. From Jukka.Rahkonen at mmmtike.fi Thu Feb 4 01:40:52 2010 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Thu, 4 Feb 2010 11:40:52 +0200 Subject: [mapserver-users] Re: high quality print from external wms In-Reply-To: <1265273298835-4512284.post@n2.nabble.com> References: <1265111675995-4500369.post@n2.nabble.com><4B698A90.5050409@xs4all.nl><3BB65ECB-C82C-4CB3-87DE-9F0468AF0DF8@osgis.nl><4B698F54.3050403@xs4all.nl> <1265273298835-4512284.post@n2.nabble.com> Message-ID: Hi, You can only control your own WMS, not the one which you are chaining. Try contact them and negotiate if they are willing to serve bigger images. Don't be surprised if they don't. -Jukka Rahkonen- Basti2025 wrote: > Hi, > thanks for all the answers. > > I've checked out the following request: > > http://????????????????????????????????????????????/Mapfiles/w > ms_client_4.map&VERSION=1.1.1&REQUEST=GetMap&SERVICE=WMS&LAYER > S=grenzen_50000,grenzen_200000,grenzen_400000,grenzen_10000000 > 0,flaechen_5000,flaechen_20000,flaechen_100000,flaechen_200000 > ,flaechen_2000000,flaechen_100000000,gebaeude_flaechen_01,adre > ssen,wasser_50000,wasser_100000,wasser_200000,wasser_500000,wa > sser_1000000,wasser_100000000,strassen_br,strassen_20000,stras > sen_50000,strassen_200000,strassen_400000,strassen_1000000,str > assen_100000000,strassen_x,orte&STYLES=,,,,,,,,,,,,,,,,,,,,,,, > ,,,&SRS=EPSG:31467&BBOX=3299936.509179781,5598000,3568000,5973 > 563.328189&WIDTH=1780&HEIGHT=2496&FORMAT=image/png&BGCOLOR=0xf fffff&TRANSPARENT=TRUE&EXCEPTIONS=application/vnd.ogc.se_inimage > > I tried to set my MAXSIZE in the Mapfile to 2048 and SIZE to > 2048 2048, but > the request always said WIDTH=1780&HEIGHT=2496 > > Is there any other option in the MAPFILE that i have to activate? > > regards > Bastian > > > > -- > View this message in context: > http://n2.nabble.com/high-quality-print-from-external-wms-tp45 > 00369p4512284.html > Sent from the Mapserver - User mailing list archive at Nabble.com. > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From Jukka.Rahkonen at mmmtike.fi Thu Feb 4 02:49:31 2010 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Thu, 4 Feb 2010 12:49:31 +0200 Subject: [mapserver-users] Re: high quality print from external wms In-Reply-To: <1265275370259-4512400.post@n2.nabble.com> References: <1265111675995-4500369.post@n2.nabble.com> <1265275370259-4512400.post@n2.nabble.com> Message-ID: Hi, Could you explain what request do you mean and where did you capture it? How are you creating the requests that you send for your own WMS? Is is some application that has a print option? The request chain goes this way: - You send (or your application sends) a WMS request for your own Mapserver with WIDTH and HEIGHT parameters. It is you who decides WIDTH and HEIGHT, not Mapserver. You can copy and paste the WMS request and send it with web browser and edit WIDTH and HEIGHT parameters as you like if you do not have a control over the application. - SIZE in mapfile does not have any effect with WMS. - MAXSIZE of your own WMS may have an effect; if you ask for a bigger image than defined with MAXSIZE you won't get it. - A request is sent to remote WMS. It has its own rules and it may refuse to send you an image if the size is bigger than it accepts. -Jukka- > -----Alkuper?inen viesti----- > L?hett?j?: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] Puolesta Basti2025 > L?hetetty: 4. helmikuuta 2010 11:23 > Vastaanottaja: mapserver-users at lists.osgeo.org > Aihe: [mapserver-users] Re: high quality print from external wms > > > Hi, > thanks for all the answers. > > I've checked out the following request: > > http://????????????????????????????????????????????/Mapfiles/w > ms_client_4.map&VERSION=1.1.1&REQUEST=GetMap&SERVICE=WMS&LAYER > S=grenzen_50000,grenzen_200000,grenzen_400000,grenzen_10000000 > 0,flaechen_5000,flaechen_20000,flaechen_100000,flaechen_200000 > ,flaechen_2000000,flaechen_100000000,gebaeude_flaechen_01,adre > ssen,wasser_50000,wasser_100000,wasser_200000,wasser_500000,wa > sser_1000000,wasser_100000000,strassen_br,strassen_20000,stras > sen_50000,strassen_200000,strassen_400000,strassen_1000000,str > assen_100000000,strassen_x,orte&STYLES=,,,,,,,,,,,,,,,,,,,,,,, > ,,,&SRS=EPSG:31467&BBOX=3299936.509179781,5598000,3568000,5973 > 563.328189& > > WIDTH=1780&HEIGHT=2496 > > &FORMAT=image/png&BGCOLOR=0xffffff&TRANSPARENT=TRUE&EXCEPTIONS > =application/vnd.ogc.se_inimage > > I tried to set my MAXSIZE in the Mapfile to 2048 and SIZE to > 2048 2048, but > the request always said > > WIDTH=1780&HEIGHT=2496 > > > > Is there any other option in the MAPFILE that i have to activate? > > regards > Bastian > -- > View this message in context: > http://n2.nabble.com/high-quality-print-from-external-wms-tp45 > 00369p4512400.html > Sent from the Mapserver - User mailing list archive at Nabble.com. > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From mschulz at webgis.de Thu Feb 4 02:56:23 2010 From: mschulz at webgis.de (Michael Schulz) Date: Thu, 4 Feb 2010 11:56:23 +0100 Subject: [mapserver-users] Re: high quality print from external wms In-Reply-To: <1265273298835-4512284.post@n2.nabble.com> References: <1265111675995-4500369.post@n2.nabble.com> <4B698A90.5050409@xs4all.nl> <3BB65ECB-C82C-4CB3-87DE-9F0468AF0DF8@osgis.nl> <4B698F54.3050403@xs4all.nl> <1265273298835-4512284.post@n2.nabble.com> Message-ID: Hi Bastian, set MAXSIZE to 10000, that's all you need. SIZE is not relevant in this context. Maxsize defines the maximum pixel count off the bigger edge of an image mapserver will create. If one edge is requested bigger (in your case maxsize is set to 2048, but your getmap has height=2496) you will get the error. Cheers, Michael 2010/2/4 Basti2025 : > > Hi, > thanks for all the answers. > > I've checked out the following request: > > http://????????????????????????????????????????????/Mapfiles/wms_client_4.map&VERSION=1.1.1&REQUEST=GetMap&SERVICE=WMS&LAYERS=grenzen_50000,grenzen_200000,grenzen_400000,grenzen_100000000,flaechen_5000,flaechen_20000,flaechen_100000,flaechen_200000,flaechen_2000000,flaechen_100000000,gebaeude_flaechen_01,adressen,wasser_50000,wasser_100000,wasser_200000,wasser_500000,wasser_1000000,wasser_100000000,strassen_br,strassen_20000,strassen_50000,strassen_200000,strassen_400000,strassen_1000000,strassen_100000000,strassen_x,orte&STYLES=,,,,,,,,,,,,,,,,,,,,,,,,,,&SRS=EPSG:31467&BBOX=3299936.509179781,5598000,3568000,5973563.328189&WIDTH=1780&HEIGHT=2496&FORMAT=image/png&BGCOLOR=0xffffff&TRANSPARENT=TRUE&EXCEPTIONS=application/vnd.ogc.se_inimage > > I tried to set my MAXSIZE in the Mapfile to 2048 and SIZE to 2048 2048, but > the request always said WIDTH=1780&HEIGHT=2496 > > Is there any other option in the MAPFILE that i have to activate? > > regards > Bastian > > > > -- > View this message in context: http://n2.nabble.com/high-quality-print-from-external-wms-tp4500369p4512284.html > Sent from the Mapserver - User mailing list archive at Nabble.com. > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Aufwind durch Wissen! Qualifizierte Open Source Schulungen bei der http://www.foss-akademie.de/ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ----------------------------------------------------------- Michael Schulz mschulz at webgis.de in medias res Gesellschaft f?r Informationstechnologie mbH +++ Bitte beachten Sie unsere neue Adresse und Durchwahl +++ Schwimmbadstra?e 2 D-79100 Freiburg i. Br. Tel: +49 (0)761 705798-102 Tel: +49 (0)761 705798-0 Fax: +49 (0)761 705798-09 +++ Bitte beachten Sie unsere neue Adresse und Durchwahl +++ http://www.webgis.de / http://www.zopecms.de -------------------------------------------------------------- Gesch?ftsf?hrer: Stefan Giese, Dr. Christof Lindenbeck Eingetragen im Handelsregister HRB 5930 beim Amtsgericht Freiburg From tommasodb at googlemail.com Thu Feb 4 03:04:50 2010 From: tommasodb at googlemail.com (tommasodb) Date: Thu, 04 Feb 2010 12:04:50 +0100 Subject: [mapserver-users] Rendering bridges - SOLVED In-Reply-To: <4B69E959.8090106@swoodbridge.com> References: <4B696737.6070401@gmail.com> <4B69BCB5.7010505@dmsolutions.ca> <4B69E959.8090106@swoodbridge.com> Message-ID: <4B6AA9D2.6030603@gmail.com> Hallo list, > I don't believe this will get you the desired effect. You'll get the > lines but you'll also get the line end caps. Yes, this was the problem > >>thanks, but unfortunately the rendering of bridges are not > configured there. > > OK, but you would do bridges similar to tunnels. So look at the > tunnels and adjust your styling to match what you want. > > -Steve W You are right! I did so and got the solution: SYMBOL NAME bridge TYPE SIMPLE END STYLE WIDTH 29 SYMBOL "bridge" OUTLINEWIDTH 1 OUTLINECOLOR "#24277A" END STYLE WIDTH 27 COLOR 255 195 69 END The trick was SYMBOL SIMPLE, which is not really documented on the official docu (http://mapserver.org/mapfile/symbol.html): > > TYPE [vector|ellipse|pixmap|truetype|simple|cartoline|hatch] > > * vector: a simple drawing is used to define the shape of the > symbol. > * ellipse: radius values in the x and y directions define an > ellipse. > * pixmap: a user supplied GIF image will be used as the symbol. > * truetype: TrueType font to use as defined in the FONTSET. > * cartoline: allows for different designs of line ends > (mitered, rounded, beveled). More information can be found > in the /Cartographic Symbols document/ > . > * hatch: produces hatched lines throughout the shape. > Thanks! Tom Stephen Woodbridge wrote: > This is just from memory (haven't tried it, but something like this > should work wit agg on 5.6 > > bridge gets a solid black outline > tunnel gets a dashed black outline > others get a normal rendition > > Try playing with this > > LAYER > CLASS # if its a bridge draw it here > EXPRESSION ("[bridge]" == "yes") > STYLE > COLOR "#888888" > WIDTH 11 > OUTLINECOLOR "#000000" > OUTLINEWIDTH 3 > END > STYLE > COLOR "#DDDDDD" > WIDTH 9 > END > END > CLASS # else if it is a tunnel draw it here > EXPRESSION ("[tunnel]" == "yes") > STYLE > COLOR "#000000" > SYMBOL "dash" > WIDTH 17 > END > STYLE > COLOR "#888888" > WIDTH 11 > END > STYLE > COLOR "#DDDDDD" > WIDTH 9 > END > END CLASS # otherwise draw it here > STYLE > STYLE > COLOR "#888888" > WIDTH 11 > END > STYLE > COLOR "#DDDDDD" > WIDTH 9 > END > END > END > > > -Steve W > http://imaptools.com/ > > Lime, Steve D (DNR) wrote: >> Good idea. The width of the bridge would have to be larger than the >> road so it sticks out a bit at well? >> >> >> >> *From:* mapserver-users-bounces at lists.osgeo.org >> [mailto:mapserver-users-bounces at lists.osgeo.org] *On Behalf Of >> *Christy Nieman >> *Sent:* Wednesday, February 03, 2010 12:13 PM >> *To:* mapserver-users at lists.osgeo.org >> *Subject:* Re: [mapserver-users] Rendering bridges >> >> >> >> Hi, >> >> If you draw it in two layers, one with the colour and width you want >> for the bridges, and the other with the road line to go on top, you >> will essentially cover up the end caps. The bridges layer would have >> to come first in the mapfile, followed by the road line layer. >> >> Christy >> -- >> Christy Nieman >> GIS Technician >> DM Solutions Group, Inc. >> Email: cnieman at dmsolutions.ca >> Web: http://dmsolutions.ca >> Web: http://research.dmsolutions.ca >> >> On 02/03/2010 12:52 PM, Lime, Steve D (DNR) wrote: >> >> I don't believe this will get you the desired effect. You'll get the >> lines but you'll also get the line end caps. That's the real trick, >> turning those off. I'm not sure that you can. >> >> >> >> Steve >> >> >> >> -----Original Message----- >> >> From: Fawcett, David (MPCA) >> Sent: Wednesday, February 03, 2010 10:13 AM >> >> To: Lime, Steve D (DNR); tommasodb; mapserver-users at lists.osgeo.org >> >> >> Subject: RE: [mapserver-users] Rendering bridges >> >> >> >> The feature that he is referencing is just a line segment with an >> additional attribute of 'bridge=yes'. >> >> >> * bridge: yes >> >> * highway: trunk >> >> * layer: 1 >> >> * name: Manchester Road >> >> * ref: A56 >> >> >> >> If you just wanted to use the road data and not create an additional >> bridges data set, you would likely need to split up the road features >> so that the segment that is a bridge is an individual feature. >> >> >> I haven't worked with any shapefile extracts from OSM, so the data >> may already be like this. >> >> >> Assuming that you have a line shapefile that has a column called >> 'bridge', you could set up two classes in your roads layer. The >> first one would have an expression like ('[bridge] = 'yes') and the >> second class wouldn't have an expression so it would catch the rest >> of the lines. >> >> >> In the first class, you would stack two lines, the bottom one being >> the color of your bridge and wider than the roads line that will go >> on top of it. >> >> >> >> David. >> >> >> >> -----Original Message----- >> >> From: mapserver-users-bounces at lists.osgeo.org >> >> [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Lime, >> Steve D (DNR) >> >> Sent: Wednesday, February 03, 2010 9:50 AM >> >> To: tommasodb; mapserver-users at lists.osgeo.org >> >> >> Subject: RE: [mapserver-users] Rendering bridges >> >> >> >> What feature type are bridges represented with in OpenStreetMap? >> >> >> >> -----Original Message----- >> >> From: mapserver-users-bounces at lists.osgeo.org >> >> [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of tommasodb >> >> Sent: Wednesday, February 03, 2010 6:08 AM >> >> To: mapserver-users at lists.osgeo.org >> >> >> Subject: [mapserver-users] Rendering bridges >> >> >> >> Hallo list, >> >> >> >> how can I render road bridges, like in mapnik? >> >> (Example: >> http://www.openstreetmap.org/?lat=53.398022&lon=-2.352222&zoom=18&layers=null >> ) >> >> >> Which symbol can I use? >> >> >> >> Greets, >> >> Tom >> >> ___ From bastian2025 at gmx.de Thu Feb 4 03:57:10 2010 From: bastian2025 at gmx.de (Basti2025) Date: Thu, 4 Feb 2010 03:57:10 -0800 (PST) Subject: [mapserver-users] Re: high quality print from external wms In-Reply-To: References: <1265111675995-4500369.post@n2.nabble.com> <1265275370259-4512400.post@n2.nabble.com> Message-ID: <1265284630619-4513023.post@n2.nabble.com> Hi Jukka, At first, I?m using Mapbender, who created the request to my mapserver. In the mapfile is a connection to another wms. -> I have to go this way, because the legend of the external wms is really bad I know that the external wms accept a size not bigger then 2048. And when I change HEIGHT and WIDTH in the URL to 2048. I see a very nice map. But i don't know how to change these settings? It seems like my changes in the mapfile (MAXSIZE) has no effect on the request. regards Bastian -- View this message in context: http://n2.nabble.com/high-quality-print-from-external-wms-tp4500369p4513023.html Sent from the Mapserver - User mailing list archive at Nabble.com. From j.l.h.hartmann at uva.nl Thu Feb 4 04:00:29 2010 From: j.l.h.hartmann at uva.nl (Jan Hartmann) Date: Thu, 04 Feb 2010 13:00:29 +0100 Subject: [mapserver-users] Rendering bridges - SOLVED In-Reply-To: <4B6AA9D2.6030603@gmail.com> References: <4B696737.6070401@gmail.com> <4B69BCB5.7010505@dmsolutions.ca> <4B69E959.8090106@swoodbridge.com> <4B6AA9D2.6030603@gmail.com> Message-ID: <4B6AB6DD.2050306@uva.nl> On 4-2-2010 12:04, tommasodb wrote: > The trick was SYMBOL SIMPLE, which is not really documented on the > official docu (http://mapserver.org/mapfile/symbol.html): > /lists.osgeo.org/mailman/listinfo/mapserver-users Neither is DATARANGE and friends, at least not in the official MapFile reference. You can find it it http://mapserver.org/input/raster.html, but shouldn't these keywords be included in the MapFile section too? Jan From Jukka.Rahkonen at mmmtike.fi Thu Feb 4 04:10:37 2010 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Thu, 4 Feb 2010 14:10:37 +0200 Subject: [mapserver-users] Re: high quality print from external wms In-Reply-To: <1265284630619-4513023.post@n2.nabble.com> References: <1265111675995-4500369.post@n2.nabble.com><1265275370259-4512400.post@n2.nabble.com> <1265284630619-4513023.post@n2.nabble.com> Message-ID: Hi, Looks like the question is about how to configure Mapbender because it is the one that sends the requests. Unfortunately I cannot help you with it. For sure there is pease of code that defines the printout extents. You will see the effect of MAXSIZE if you change it to 500 and repeat the request that used to yield a nice map. MAXSIZE is just a throttle that is there for protecting Mapserver against oversized requests. It either prevents the request or let it go through to Mapserver, it does not alter the request in any way. -Jukka- Puolesta Basti2025 wrote: > > > Hi Jukka, > > At first, I?m using Mapbender, who created the request to my > mapserver. > In the mapfile is a connection to another wms. > -> I have to go this way, because the legend of the external wms is > really bad > > I know that the external wms accept a size not bigger then 2048. > > And when I change HEIGHT and WIDTH in the URL to 2048. I see > a very nice > map. > > But i don't know how to change these settings? > It seems like my changes in the mapfile (MAXSIZE) has no effect on the > request. > > regards > Bastian > > > -- > View this message in context: > http://n2.nabble.com/high-quality-print-from-external-wms-tp45 > 00369p4513023.html > Sent from the Mapserver - User mailing list archive at Nabble.com. > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From bastian2025 at gmx.de Thu Feb 4 04:20:43 2010 From: bastian2025 at gmx.de (Basti2025) Date: Thu, 4 Feb 2010 04:20:43 -0800 (PST) Subject: [mapserver-users] Re: high quality print from external wms In-Reply-To: References: <1265111675995-4500369.post@n2.nabble.com> <1265275370259-4512400.post@n2.nabble.com> <1265284630619-4513023.post@n2.nabble.com> Message-ID: <1265286043404-4513131.post@n2.nabble.com> Hi, At first thank you for all. I know that mapbender multiplicate WIDTH and HEIGHT with factor 4. I will try to change these parameters in the javascript file and hope that works. If I know a workaround I will also post it here. @Michael Sorry that i didn?t answered. I tried your way and I got only a white page. Thanks to all Bastian -- View this message in context: http://n2.nabble.com/high-quality-print-from-external-wms-tp4500369p4513131.html Sent from the Mapserver - User mailing list archive at Nabble.com. From bastian2025 at gmx.de Thu Feb 4 04:27:06 2010 From: bastian2025 at gmx.de (Basti2025) Date: Thu, 4 Feb 2010 04:27:06 -0800 (PST) Subject: [mapserver-users] Re: high quality print from external wms In-Reply-To: <1265286043404-4513131.post@n2.nabble.com> References: <1265111675995-4500369.post@n2.nabble.com> <1265275370259-4512400.post@n2.nabble.com> <1265284630619-4513023.post@n2.nabble.com> <1265286043404-4513131.post@n2.nabble.com> Message-ID: <1265286426026-4513156.post@n2.nabble.com> Ok, that works. I changed the "get Width" and "get Height"parameter in the file "mod_printPDF_pdf.php" near line 170 from "4" to "3". Now my request look like this SRS=EPSG:31467&BBOX=3484700,5898490,3486390,5900860.948905109& WIDTH=1335&HEIGHT=1872 &FORMAT=image/png&BGCOLOR=0xffffff&TRANSPARENT=TRUE&EXCEPTIONS=application/vnd.ogc.se_inimage Maybe this will help someone else. Regards Basti -- View this message in context: http://n2.nabble.com/high-quality-print-from-external-wms-tp4500369p4513156.html Sent from the Mapserver - User mailing list archive at Nabble.com. From john.pulles at gmail.com Thu Feb 4 04:34:56 2010 From: john.pulles at gmail.com (John Pulles) Date: Thu, 4 Feb 2010 12:34:56 +0000 Subject: [mapserver-users] mapserver as a tile cache client? Message-ID: <77e806671002040434s6c77acb6l73b42ad0784ac7ce@mail.gmail.com> Hi, We are having a arcgis tile cache layer but also need to have static images with a given bounding box, not limited by the tiling scheme, but making it available as a wms. Is it possible to use mapserver as a tile cache client, or can you suggest other solutions? Thanks, John -------------- next part -------------- An HTML attachment was scrubbed... URL: From mschulz at webgis.de Thu Feb 4 04:40:15 2010 From: mschulz at webgis.de (Michael Schulz) Date: Thu, 4 Feb 2010 13:40:15 +0100 Subject: [mapserver-users] Re: high quality print from external wms In-Reply-To: <1265284630619-4513023.post@n2.nabble.com> References: <1265111675995-4500369.post@n2.nabble.com> <1265275370259-4512400.post@n2.nabble.com> <1265284630619-4513023.post@n2.nabble.com> Message-ID: Hi Bastian, sorry, I forgot that the problem is a remote wms layer... maybe switch to the mapbender users lists ... Ok, glad you solved the problem, there is also the overview section in the mod_printpdf_pdf.php around line 195, that would also need this adjustment. The resulting resolution should then be sth. around 216 dpi. Cheers, Michael 2010/2/4 Basti2025 : > > Hi Jukka, > > At first, I?m using Mapbender, who created the request to my mapserver. > ?In the mapfile is a connection to another wms. > ? -> I have to go this way, because the legend of the external wms is > really bad > > I know that the external wms accept a size not bigger then 2048. > > And when I change HEIGHT and WIDTH in the URL to 2048. I see a very nice > map. > > But i don't know how to change these settings? > It seems like my changes in the mapfile (MAXSIZE) has no effect on the > request. > > regards > Bastian > > > -- > View this message in context: http://n2.nabble.com/high-quality-print-from-external-wms-tp4500369p4513023.html > Sent from the Mapserver - User mailing list archive at Nabble.com. > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Aufwind durch Wissen! Qualifizierte Open Source Schulungen bei der http://www.foss-akademie.de/ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ----------------------------------------------------------- Michael Schulz mschulz at webgis.de in medias res Gesellschaft f?r Informationstechnologie mbH +++ Bitte beachten Sie unsere neue Adresse und Durchwahl +++ Schwimmbadstra?e 2 D-79100 Freiburg i. Br. Tel: +49 (0)761 705798-102 Tel: +49 (0)761 705798-0 Fax: +49 (0)761 705798-09 +++ Bitte beachten Sie unsere neue Adresse und Durchwahl +++ http://www.webgis.de / http://www.zopecms.de -------------------------------------------------------------- Gesch?ftsf?hrer: Stefan Giese, Dr. Christof Lindenbeck Eingetragen im Handelsregister HRB 5930 beim Amtsgericht Freiburg From Bob.Basques at ci.stpaul.mn.us Thu Feb 4 06:18:58 2010 From: Bob.Basques at ci.stpaul.mn.us (Bob Basques) Date: Thu, 04 Feb 2010 08:18:58 -0600 Subject: [mapserver-dev] RE: [mapserver-users] colorramp and datarangeon the fly? In-Reply-To: References: <8CF4F4E7-1CEB-4CAA-8B6C-4FCDD74D03EC@osgis.nl> <4B69A13E.3010708@uva.nl> <4B69A693.8010507@swoodbridge.com> Message-ID: <4B6A82F2.163B.00A8.0@ci.stpaul.mn.us> All, Just to mix it up a little, what about doing a half and half approach. MapServer could generate something simpler (the data basics from a data read on the fly, and return a simple ramping config file, which could be used to pass back as a file for the custom aspects. Just having these two options would open up some doors, MapServer returning a simple ramp structure as a file, could be used in a User interface to do more complicated theming for example. Once the basic data limits are known, the ramping divisions are much easier to decide on. Could this work as a compiled in module for those that need/want it instead of always in? or would it make more sense to build in, ?? Something similar to a mode=legend sort of thing, like mode=ramp_txt ?? bobb >>> "Lime, Steve D (DNR)" wrote: At one point I toyed with the idea of supporting a .stats file for a layer and supplying a routine (command-line) that would populate it. The file would contain data like you're talking about. Doesn't help with the on-the-fly needs Bart was articulating. Steve -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Stephen Woodbridge Sent: Wednesday, February 03, 2010 10:39 AM To: Jan Hartmann Cc: Lime, Steve D (DNR); MapServer Dev Mailing List; mapserver-users at lists.osgeo.org Subject: Re: [mapserver-dev] RE: [mapserver-users] colorramp and datarange on the fly? Right, I think there are two use cases: 1) data exploration - can be slower but needs flexibility 2) production serving - needs to be fast, and probably limits flexibility to some predefined models I think that there is also another angle to this, which is how the summary data is computed for example: 1) min/max/average/std 2) statistical analysis 3) binning into some number of classes 4) removing outliers so the results are not skewed by them 5) etc There are a lot of ways the people might need to summarize they data. If the data is in a database, then you can add all the analysis, slicing and dicing to the database and the rendering to mapserver. So, I think that it would be nice to be able to read some "metadata" about a layer and then use that for building the display using something like colorramp and datarange. We might want to look at ways that we could establish in mapserver for fetching the "metadata" about a layer. For example: 1) define the "metadata" in the METADATA object 2) define a .met file for a shapefile or tileindex that contained the "metadata" for that layer 3) define a separate SQL query that could be used to fetch the "metadata" for the layer 4) something similar for other layer providers. 5) scan the data in two passes to compute some simple "metadata" Thoughts? -Steve W Jan Hartmann wrote: > If you allow two passes, you can have all sorts of summarized values in > the template, to be used in the second pass, like Bart's actual extent > used for coloring. Doesn't look to difficult to implement to me, as long > as the two passes only get called when really necessary. I'm not sure if > performance is an issue for MapServer itself: if you really want high > performance, you should use the underlying format or database directly. > > Jan > > On 3-2-2010 17:02, Lime, Steve D (DNR) wrote: >> How big a change would depend on the implementation. The brute force >> approach where you simply loop through features once to compute ranges >> and then again to draw would be probably pretty straight forward and >> driver independent. Wouldn't be fast (but would be simple). Complexity >> would be added as you try and boost performance by: >> >> - allowing drivers to compute stats in their own way (e.g. add to >> the layer API something like msLayerGetStats(...)) >> - caching geometries from a first pass through the shapes for the >> second >> >> Steve >> >> BTW The color ramp support needs to be cleaned up first. I think we >> scared the originator of that code away when an RFC was originally put >> together. >> >> -----Original Message----- >> From: mapserver-users-bounces at lists.osgeo.org >> [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Bart van >> den Eijnden >> Sent: Wednesday, February 03, 2010 5:12 AM >> To: mapserver-users at lists.osgeo.org >> Subject: [mapserver-users] colorramp and datarange on the fly? >> >> Hi list, >> >> is it possible to have a colorramp in Mapserver based on the min and >> max value in the current extent? >> >> So instead of predefining the min and max in DATARANGE, have Mapserver >> use the min and max value of the dataset in the current extent? >> >> If not, would it be an easy change or a very complex one? >> >> Best regards, >> Bart_______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> _______________________________________________ >> mapserver-dev mailing list >> mapserver-dev at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-dev >> > _______________________________________________ > mapserver-dev mailing list > mapserver-dev at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-dev _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users _______________________________________________ mapserver-dev mailing list mapserver-dev at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-dev -------------- next part -------------- An HTML attachment was scrubbed... URL: From SSchantz at BfS.de Thu Feb 4 06:27:48 2010 From: SSchantz at BfS.de (Stefan Schantz) Date: Thu, 04 Feb 2010 15:27:48 +0100 Subject: [mapserver-users] OCI-22053: overflow error with CONNECTIONTYPEoraclespatial In-Reply-To: References: <4B697222.9090509@BfS.de> Message-ID: <4B6AD964.4060106@BfS.de> Hi Tim, with Georaptor I could draw all the point from the table without any error messages. But if I use the geom-validator, I get an error "ORA-13000: dimension number is out of range". After I corrected the dimension number, the error message from the UMN disappeared. Thank you! Stefan Nolte, Tim schrieb: > Stefan, > > Do you have the Georaptor extension installed in SQL Dev? Have you tried to run the verification on all of the geom data in that table? > > - Tim > > ---- > Timothy J Nolte - tnolte at ilpcs.com > Network Planning Engineer > > 4717 Broadmoor Ave, Suite G > Kentwood, MI 49512 > > Office: 616-656-5163 > PCS: 616-706-2438 > Support: 616-929-0289 > Fax: 616-554-6484 > > > -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Stefan Schantz > Sent: Wednesday, February 03, 2010 7:55 AM > To: mapserver-users at lists.osgeo.org > Subject: [mapserver-users] OCI-22053: overflow error with CONNECTIONTYPEoraclespatial > > Hello, > I am trying to visualize some points from a oracle database (10.2) : > I am using > MapServer version 5.2.0 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP > OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=ICONV > SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER > SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=GEOS INPUT=EPPL7 > INPUT=POSTGIS INPUT=ORACLESPATIAL INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE > > My layer description is > ---- > LAYER > NAME "tra_punkte" > TYPE POINT > STATUS ON > DEBUG ON > #DUMP TRUE > CONNECTIONTYPE oraclespatial > CONNECTION > "***/***@(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=***)(PORT= > 1521)))(CONNECT_DATA=(SID=***)))" > DATA "GEOM > from > (select geom, HOEHE, AUSGANGSHOEHE, ID > FROM imis_geo.trapkt_6222 > ) > USING UNIQUE ID SRID 4326" > ------- > > and the following statement is written in the log-file > ------ > [Wed Feb 3 12:54:00 2010].603594 msOracleSpatialLayerWhichShapes. Using > this Sql to retrieve the data: SELECT ID, GEOM FROM (select geom, HOEHE, > AUSGANGSHOEHE, ID > FROM imis_geo.trapkt_6222 > ) WHERE SDO_FILTER( GEOM, MDSYS.SDO_GEOMETRY(2003, 4326, > NULL,MDSYS.SDO_ELEM_INFO_ARRAY(1,1003,3),MDSYS.SDO_ORDINATE_ARRAY(-70.5721827,29.3243683,69.9787827,79.1709317) > ),'querytype=window') = 'TRUE' > [Wed Feb 3 12:54:00 2010].823525 osGetOrdinates(): OracleSpatial error. > OCI-22053: overflow error > ------ > > But if I try the sql in SQL-Developer, i get the result without any errors? > > The connection between UMN and oracle database is working fine in > several different layers, but not in this one. Is there anything I can do? > > Best Regards, > Stefan > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > From bartvde at osgis.nl Thu Feb 4 06:45:57 2010 From: bartvde at osgis.nl (bartvde at osgis.nl) Date: Thu, 4 Feb 2010 15:45:57 +0100 (CET) Subject: [mapserver-users] mapserver as a tile cache client? In-Reply-To: <77e806671002040434s6c77acb6l73b42ad0784ac7ce@mail.gmail.com> References: <77e806671002040434s6c77acb6l73b42ad0784ac7ce@mail.gmail.com> Message-ID: <45330.145.50.39.11.1265294757.squirrel@webmail.hostingdiscounter.nl> John, yes it's possible see: http://www.gdal.org/frmt_wms.html Best regards, Bart > Hi, > > We are having a arcgis tile cache layer but also need to have static > images > with a given bounding box, not limited by the tiling scheme, but making it > available as a wms. Is it possible to use mapserver as a tile cache > client, > or can you suggest other solutions? > > Thanks, > John > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From woodbri at swoodbridge.com Thu Feb 4 07:43:54 2010 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Thu, 04 Feb 2010 10:43:54 -0500 Subject: Documentation of "experimental" features was: Re: [mapserver-users] Rendering bridges - SOLVED In-Reply-To: <4B6AB6DD.2050306@uva.nl> References: <4B696737.6070401@gmail.com> <4B69BCB5.7010505@dmsolutions.ca> <4B69E959.8090106@swoodbridge.com> <4B6AA9D2.6030603@gmail.com> <4B6AB6DD.2050306@uva.nl> Message-ID: <4B6AEB3A.8090501@swoodbridge.com> Jan Hartmann wrote: > > > On 4-2-2010 12:04, tommasodb wrote: >> The trick was SYMBOL SIMPLE, which is not really documented on the >> official docu (http://mapserver.org/mapfile/symbol.html): >> /lists.osgeo.org/mailman/listinfo/mapserver-users > > Neither is DATARANGE and friends, at least not in the official MapFile > reference. You can find it it http://mapserver.org/input/raster.html, > but shouldn't these keywords be included in the MapFile section too? Hi Jan, Regarding the DATARANGE documentation ... I do not remember the full discussion that we had on thess keywords at the time, but I believe that they were considered "experimental" and subject to change or removal. The issue for the PSC is that sometimes code is in the trunk and gets released, but we have not agreed on the RFC and the design of the code and features. We do not want a bunch of users jumping on some feature that is not ready for prime-time only to cause them pain later when we have to change it. I think that there might be a case for documenting stuff like this and labeling it as "experimental" and therefore subject to change or removal. I think that this would have value in: 1) giving it more visibility which would lead to more input from users 2) providing better overall documentation 3) alerting users to its state as "experimental" which does not happen now I've cc'd the dev list on this to start this particular discussion there. Best regards, -Steve W From cp_n18 at yahoo.com Thu Feb 4 08:47:07 2010 From: cp_n18 at yahoo.com (Jon Miner) Date: Thu, 4 Feb 2010 08:47:07 -0800 (PST) Subject: [mapserver-users] Using e00 files In-Reply-To: <793100.28006.qm@web111414.mail.gq1.yahoo.com> References: <506038.40546.qm@web111403.mail.gq1.yahoo.com> <4B685FDC.5010403@usgs.gov> <793100.28006.qm@web111414.mail.gq1.yahoo.com> Message-ID: <609429.73876.qm@web111405.mail.gq1.yahoo.com> On 02/02/2010 11:32 AM, Jon Miner wrote: > Now, I'm trying to layer on information from the GRANIT website: > > http://www.granit.unh.edu/ > > ftp://ftp.granit.sr.unh.edu/pub/GRANIT_Data/Vector_Data/Transportation_Networks/d-railroads/rrnh.e00 > > These files are "e00" files. Based on some other mailing list entries, I used the ogr2ogr command to convert the file into Shapefiles: > > ogr2ogr -f "ESRI Shapefile" temp ../data/rrnh.e00 > I got it working! The solution was to re-run the ogr2ogr command like this: ogr2ogr -t_srs EPSG:26719 -f "ESRI Shapefile" temp rrnh.e00 My question is... if tools like ogrinfo can read all the projection data out of the file, why can't mapserver do this on the fly? Or is it just the case where we don't want to have to do all the work every time for performance reasons? Thanks for everyone's help! - Jon From dmorissette at mapgears.com Thu Feb 4 09:03:14 2010 From: dmorissette at mapgears.com (Daniel Morissette) Date: Thu, 04 Feb 2010 12:03:14 -0500 Subject: [mapserver-users] Access to a remote raster file in wms-mapfile In-Reply-To: <224DBDAF88A6AC47BD22432815351BE007B9D4F7@nekaposta1> References: <224DBDAF88A6AC47BD22432815351BE007B9D4F7@nekaposta1> Message-ID: <4B6AFDD2.8020701@mapgears.com> David Alda Fernandez de Lezea wrote: > > I've got another raster file that I CAN access from my WMS an it's located in a mapped unit: > > DATA "\\iktfs1\Estatica$\ORTOFOTOS\Euskadi_2006_rgb_25cm_ed50.ecw" > > It's weird isn't it?? I guess it could be something related to the named units or something like that. > > More suggestions?? > I think Jukka is right. This sounds very much like a permission issue. The user running Apache would have permissions to access the remote drive by share name, but not if you use the path with the IP address, which may require different permissions. Daniel -- Daniel Morissette http://www.mapgears.com/ From Steve.Lime at state.mn.us Thu Feb 4 09:42:26 2010 From: Steve.Lime at state.mn.us (Lime, Steve D (DNR)) Date: Thu, 4 Feb 2010 11:42:26 -0600 Subject: [mapserver-dev] RE: [mapserver-users] colorramp and datarangeon the fly? In-Reply-To: <4B6A82F2.163B.00A8.0@ci.stpaul.mn.us> References: <8CF4F4E7-1CEB-4CAA-8B6C-4FCDD74D03EC@osgis.nl> <4B69A13E.3010708@uva.nl> <4B69A693.8010507@swoodbridge.com> <4B6A82F2.163B.00A8.0@ci.stpaul.mn.us> Message-ID: You're always mixing things up aren't you... I don't think you need a special mode. This strikes me as just another special form of template output based on a query. Presently you can get layer level query data (e.g. number of results) and of course spatial and non-spatial attributes for each feature. What's needed here is the mechanism to gather layer stats (and a definition of what those are) in either draw or query context and then a means of using or presenting them. Imaging in a new "stats" tag within a result set like so (within a resultset tag): [stats item="foo" format="$stddev,$min,$max"] You could use that to populate XML, JSON or just plain HTML output for use on the client. This tag would draw from a populated layerStatsObj which might consist of an array or hash of itemStatsObj's... You could populate those objects on-the-fly or perhaps even from a file. Would probably need a new STATS ... END block within a layer to drive this. Just thinking out loud. Steve From: Bob Basques [mailto:Bob.Basques at ci.stpaul.mn.us] Sent: Thursday, February 04, 2010 8:19 AM To: Lime, Steve D (DNR); Stephen Woodbridge; Jan Hartmann Cc: MapServer Dev Mailing List; mapserver-users at lists.osgeo.org Subject: RE: [mapserver-dev] RE: [mapserver-users] colorramp and datarangeon the fly? All, Just to mix it up a little, what about doing a half and half approach. MapServer could generate something simpler (the data basics from a data read on the fly, and return a simple ramping config file, which could be used to pass back as a file for the custom aspects. Just having these two options would open up some doors, MapServer returning a simple ramp structure as a file, could be used in a User interface to do more complicated theming for example. Once the basic data limits are known, the ramping divisions are much easier to decide on. Could this work as a compiled in module for those that need/want it instead of always in? or would it make more sense to build in, ?? Something similar to a mode=legend sort of thing, like mode=ramp_txt ?? bobb >>> "Lime, Steve D (DNR)" wrote: At one point I toyed with the idea of supporting a .stats file for a layer and supplying a routine (command-line) that would populate it. The file would contain data like you're talking about. Doesn't help with the on-the-fly needs Bart was articulating. Steve -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Stephen Woodbridge Sent: Wednesday, February 03, 2010 10:39 AM To: Jan Hartmann Cc: Lime, Steve D (DNR); MapServer Dev Mailing List; mapserver-users at lists.osgeo.org Subject: Re: [mapserver-dev] RE: [mapserver-users] colorramp and datarange on the fly? Right, I think there are two use cases: 1) data exploration - can be slower but needs flexibility 2) production serving - needs to be fast, and probably limits flexibility to some predefined models I think that there is also another angle to this, which is how the summary data is computed for example: 1) min/max/average/std 2) statistical analysis 3) binning into some number of classes 4) removing outliers so the results are not skewed by them 5) etc There are a lot of ways the people might need to summarize they data. If the data is in a database, then you can add all the analysis, slicing and dicing to the database and the rendering to mapserver. So, I think that it would be nice to be able to read some "metadata" about a layer and then use that for building the display using something like colorramp and datarange. We might want to look at ways that we could establish in mapserver for fetching the "metadata" about a layer. For example: 1) define the "metadata" in the METADATA object 2) define a .met file for a shapefile or tileindex that contained the "metadata" for that layer 3) define a separate SQL query that could be used to fetch the "metadata" for the layer 4) something similar for other layer providers. 5) scan the data in two passes to compute some simple "metadata" Thoughts? -Steve W Jan Hartmann wrote: > If you allow two passes, you can have all sorts of summarized values in > the template, to be used in the second pass, like Bart's actual extent > used for coloring. Doesn't look to difficult to implement to me, as long > as the two passes only get called when really necessary. I'm not sure if > performance is an issue for MapServer itself: if you really want high > performance, you should use the underlying format or database directly. > > Jan > > On 3-2-2010 17:02, Lime, Steve D (DNR) wrote: >> How big a change would depend on the implementation. The brute force >> approach where you simply loop through features once to compute ranges >> and then again to draw would be probably pretty straight forward and >> driver independent. Wouldn't be fast (but would be simple). Complexity >> would be added as you try and boost performance by: >> >> - allowing drivers to compute stats in their own way (e.g. add to >> the layer API something like msLayerGetStats(...)) >> - caching geometries from a first pass through the shapes for the >> second >> >> Steve >> >> BTW The color ramp support needs to be cleaned up first. I think we >> scared the originator of that code away when an RFC was originally put >> together. >> >> -----Original Message----- >> From: mapserver-users-bounces at lists.osgeo.org >> [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Bart van >> den Eijnden >> Sent: Wednesday, February 03, 2010 5:12 AM >> To: mapserver-users at lists.osgeo.org >> Subject: [mapserver-users] colorramp and datarange on the fly? >> >> Hi list, >> >> is it possible to have a colorramp in Mapserver based on the min and >> max value in the current extent? >> >> So instead of predefining the min and max in DATARANGE, have Mapserver >> use the min and max value of the dataset in the current extent? >> >> If not, would it be an easy change or a very complex one? >> >> Best regards, >> Bart_______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> _______________________________________________ >> mapserver-dev mailing list >> mapserver-dev at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-dev >> > _______________________________________________ > mapserver-dev mailing list > mapserver-dev at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-dev _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users _______________________________________________ mapserver-dev mailing list mapserver-dev at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-dev -------------- next part -------------- An HTML attachment was scrubbed... URL: From pramsey at opengeo.org Thu Feb 4 10:16:55 2010 From: pramsey at opengeo.org (Paul Ramsey) Date: Thu, 4 Feb 2010 10:16:55 -0800 Subject: [mapserver-users] PostGIS 1.5.0 Released Message-ID: <30fe546d1002041016v2d44159x16704d71c34b3cf7@mail.gmail.com> February 4, 2010 The PostGIS development team has, after a long course of reflection and a detailed self-examination of our various personal failings, decided to release PostGIS 1.5.0 to the public. http://postgis.org/download/postgis-1.5.0.tar.gz This new version of PostGIS includes a new "geography" type for managing geodetic (lat/lon) data, performance-enhanced distance calculations, GML and KML format readers, an improved shape loading GUI, and other new features as well. Especial thanks to: * Dave Skea for algorithms and mathematics necessary to support spherical geometry * Nicklas Av?n for the new performance enhanced distance calculations and other distance-related functions * Sandro Santilli for new buffering features (end caps and style options) * Olivier Courtin for GML/KML input functions * Guillaume Lelarge for support for the upcoming PgSQL 9.0 * George Silva for an example implementation of history tables * Vincent Picavet for Hausdorff distance calculations * The maintainers of GEOS, Proj4, and LibXML, without whom we would have less of a spatial database Love, the PostGIS project steering committee, Mark Cave-Ayland Kevin Neufeld Regina Obe Paul Ramsey ----- Release Notes ---- PostGIS 1.5.0 2010/02/04 * Important Changes * - =~ operator now indicates bounding box equality, not feature equality - GEOS 3.1 is now the minimum accepted version of GEOS - GEOS 3.2 is needed if you want to use enhanced buffering features and ST_HausdorffDistance - GEOS, LibXML2, and Proj4 are now mandatory dependencies * New Features * - Added Hausdorff distance calculations (#209) (Vincent Picavet) - Added parameters argument to ST_Buffer operation to support one-sided buffering and other buffering styles (Sandro Santilli) - Performance improvements to ST_Distance (Nicklas Av?n) - Addition of other Distance related visualization and analysis functions (Nicklas Av?n) - ST_ClosestPoint - ST_DFullyWithin - ST_LongestLine - ST_MaxDistance - ST_ShortestLine - KML, GML input via ST_GeomFromGML and ST_GeomFromKML (Olivier Courtin) - Extract homogeneous collection with ST_CollectionExtract (Paul Ramsey) - Add measure values to existing linestring with ST_AddMeasure (Paul Ramsey) - History table implementation in utils (George Silva) - Win32 support and improvement of core shp2pgsql-gui (Mark Cave-Ayland) - In place 'make check' support (Paul Ramsey) - Geography type and supporting functions - Spherical algorithms from Dave Skea - Object/index implementation from Paul Ramsey - Selectivitiy implementation from Mark Cave-Ayland - Serializations (KML, GML, JSON) from Olivier Courtin - ST_Area, ST_Distance, ST_DWithin, ST_GeogFromText, ST_GeogFromWKB, ST_Intersects, ST_Covers, ST_Buffer - Documentation updates and improvements (Regina Obe, Kevin Neufeld) - Testing and quality control (Regina Obe) - PostGIS 1.5 support PostgreSQL 8.5 trunk (Guillaume Lelarge) - Many many other changes: http://trac.osgeo.org/postgis/query?status=closed&milestone=PostGIS+1.5.0 From woodbri at swoodbridge.com Thu Feb 4 10:38:33 2010 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Thu, 04 Feb 2010 13:38:33 -0500 Subject: [mapserver-dev] RE: [mapserver-users] colorramp and datarangeon the fly? In-Reply-To: References: <8CF4F4E7-1CEB-4CAA-8B6C-4FCDD74D03EC@osgis.nl> <4B69A13E.3010708@uva.nl> <4B69A693.8010507@swoodbridge.com> <4B6A82F2.163B.00A8.0@ci.stpaul.mn.us> Message-ID: <4B6B1429.20407@swoodbridge.com> To build on what Steve is saying it might help to think of features in mapserver as requiring two separate components: 1) the algorithm 2) the presentation Obviously you can not present something that you do not have. the algorithm is how you generate stuff. Once we have stuff we need to present it via the multitude of rendering modules and interfaces, like the CGI interface or template interface, etc and rendered as text, json, xml, etc. I think adding a STATS object might be a good way to add pluggable algorithms and filters into the layer. A year plus ago, I did some research into thematic cartography and the math and statistics involved in that. Here are some of the data classification methods we might want to support: 1) equal intervals 2) quantiles (quartiles are n=4 quantiles) 3) mean-standard deviation 4) maximum breaks 5) natural breaks 6) optimal You can probably find more on these on wikipedia if you want the math behind them. In addition to the above for choropleths we might want to consider bivariant or multivariant analysis. And there is also a need to apply filters to the data like: 1) eliminate outliers 2) numerous smoothing algorithms that might be appropriate - triangularization - inverse distance - kriging - various interpolation routines that solve various issues with the data 3) probably others You might look on Amazon used books for some reference material on thematic mapping. I got the following: Introduction to Thematic Cartography, by Judith Tyner Thematic Cartography and Visualization, by Terry Slocum Thematic Cartography and Geographic Visualization, by Slocum, McMaster, Kessler and Howard These are all excellent and there are a lot of others. I think the point here is that there is a lot of research that has gone into this field and if we want to build tools that will allow mapserver to work effectively in this area, and I DO think we should do this, then we need to understand the scope of what needs to be done even if it is not all done at once and we need to build a pluggable interface that allows us to easily add stats analysis and apply statistical filters as the need arises. I think for the most part what Steve L has described will meet (I guessing) 80-90% of the requirements that might reasonably thrown at us and the others we can most likely say are too specialized or out of scope. I will also note that for the most part it can be argued that mapserver should NOT do the analysis, that that is the realm of other tools, but given that the analysis has been preformed that mapserver needs to support rendering it. Some of the analysis mentioned above it non-trivial to do on the fly. It is not clear to me where we draw a line in the sand and justify yes this in mapserver, no, that is not in mapserver. Ok, sorry this probably way more than any of you want to know :) -Steve W Lime, Steve D (DNR) wrote: > You?re always mixing things up aren?t you? > > I don?t think you need a special mode. This strikes me as just another > special form of template output based on a query. Presently you can get > layer level query data (e.g. number of results) and of course spatial > and non-spatial attributes for each feature. What?s needed here is the > mechanism to gather layer stats (and a definition of what those are) in > either draw or query context and then a means of using or presenting > them. Imaging in a new ?stats? tag within a result set like so (within > a resultset tag): > > [stats item=?foo? format=?$stddev,$min,$max?] > > You could use that to populate XML, JSON or just plain HTML output for > use on the client. This tag would draw from a populated layerStatsObj > which might consist of an array or hash of itemStatsObj?s? You could > populate those objects on-the-fly or perhaps even from a file. Would > probably need a new STATS ? END block within a layer to drive this. Just > thinking out loud. > > Steve > > *From:* Bob Basques [mailto:Bob.Basques at ci.stpaul.mn.us] > *Sent:* Thursday, February 04, 2010 8:19 AM > *To:* Lime, Steve D (DNR); Stephen Woodbridge; Jan Hartmann > *Cc:* MapServer Dev Mailing List; mapserver-users at lists.osgeo.org > *Subject:* RE: [mapserver-dev] RE: [mapserver-users] colorramp and > datarangeon the fly? > > > > All, > > > > Just to mix it up a little, what about doing a half and half approach. > MapServer could generate something simpler (the data basics from a data > read on the fly, and return a simple ramping config file, which could be > used to pass back as a file for the custom aspects. > > > > Just having these two options would open up some doors, MapServer > returning a simple ramp structure as a file, could be used in a User > interface to do more complicated theming for example. Once the basic > data limits are known, the ramping divisions are much easier to decide on. > > > > Could this work as a compiled in module for those that need/want it > instead of always in? or would it make more sense to build in, ?? > Something similar to a mode=legend sort of thing, like mode=ramp_txt ?? > > > > bobb > > > > > > >>> "Lime, Steve D (DNR)" wrote: > > At one point I toyed with the idea of supporting a .stats file for a > layer and supplying a routine (command-line) that would populate it. The > file would contain data like you're talking about. Doesn't help with the > on-the-fly needs Bart was articulating. > > Steve > > -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Stephen > Woodbridge > Sent: Wednesday, February 03, 2010 10:39 AM > To: Jan Hartmann > Cc: Lime, Steve D (DNR); MapServer Dev Mailing List; > mapserver-users at lists.osgeo.org > Subject: Re: [mapserver-dev] RE: [mapserver-users] colorramp and > datarange on the fly? > > Right, I think there are two use cases: > > 1) data exploration - can be slower but needs flexibility > 2) production serving - needs to be fast, and probably limits > flexibility to some predefined models > > I think that there is also another angle to this, which is how the > summary data is computed for example: > > 1) min/max/average/std > 2) statistical analysis > 3) binning into some number of classes > 4) removing outliers so the results are not skewed by them > 5) etc > > There are a lot of ways the people might need to summarize they data. > > If the data is in a database, then you can add all the analysis, slicing > and dicing to the database and the rendering to mapserver. > > So, I think that it would be nice to be able to read some "metadata" > about a layer and then use that for building the display using something > like colorramp and datarange. We might want to look at ways that we > could establish in mapserver for fetching the "metadata" about a layer. > For example: > > 1) define the "metadata" in the METADATA object > 2) define a .met file for a shapefile or tileindex that contained the > "metadata" for that layer > 3) define a separate SQL query that could be used to fetch the > "metadata" for the layer > 4) something similar for other layer providers. > 5) scan the data in two passes to compute some simple "metadata" > > Thoughts? > > -Steve W > > > Jan Hartmann wrote: > > If you allow two passes, you can have all sorts of summarized values in > > the template, to be used in the second pass, like Bart's actual extent > > used for coloring. Doesn't look to difficult to implement to me, as long > > as the two passes only get called when really necessary. I'm not sure if > > performance is an issue for MapServer itself: if you really want high > > performance, you should use the underlying format or database directly. > > > > Jan > > > > On 3-2-2010 17:02, Lime, Steve D (DNR) wrote: > >> How big a change would depend on the implementation. The brute force > >> approach where you simply loop through features once to compute ranges > >> and then again to draw would be probably pretty straight forward and > >> driver independent. Wouldn't be fast (but would be simple). Complexity > >> would be added as you try and boost performance by: > >> > >> - allowing drivers to compute stats in their own way (e.g. add to > >> the layer API something like msLayerGetStats(...)) > >> - caching geometries from a first pass through the shapes for the > >> second > >> > >> Steve > >> > >> BTW The color ramp support needs to be cleaned up first. I think we > >> scared the originator of that code away when an RFC was originally put > >> together. > >> > >> -----Original Message----- > >> From: mapserver-users-bounces at lists.osgeo.org > >> [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Bart van > >> den Eijnden > >> Sent: Wednesday, February 03, 2010 5:12 AM > >> To: mapserver-users at lists.osgeo.org > >> Subject: [mapserver-users] colorramp and datarange on the fly? > >> > >> Hi list, > >> > >> is it possible to have a colorramp in Mapserver based on the min and > >> max value in the current extent? > >> > >> So instead of predefining the min and max in DATARANGE, have Mapserver > >> use the min and max value of the dataset in the current extent? > >> > >> If not, would it be an easy change or a very complex one? > >> > >> Best regards, > >> Bart_______________________________________________ > >> mapserver-users mailing list > >> mapserver-users at lists.osgeo.org > >> http://lists.osgeo.org/mailman/listinfo/mapserver-users > >> _______________________________________________ > >> mapserver-dev mailing list > >> mapserver-dev at lists.osgeo.org > >> http://lists.osgeo.org/mailman/listinfo/mapserver-dev > >> > > _______________________________________________ > > mapserver-dev mailing list > > mapserver-dev at lists.osgeo.org > > http://lists.osgeo.org/mailman/listinfo/mapserver-dev > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > _______________________________________________ > mapserver-dev mailing list > mapserver-dev at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-dev > From Bob.Basques at ci.stpaul.mn.us Thu Feb 4 11:04:55 2010 From: Bob.Basques at ci.stpaul.mn.us (Bob Basques) Date: Thu, 04 Feb 2010 13:04:55 -0600 Subject: [mapserver-dev] RE: [mapserver-users] colorramp and datarangeonthe fly? In-Reply-To: References: <8CF4F4E7-1CEB-4CAA-8B6C-4FCDD74D03EC@osgis.nl> <4B69A13E.3010708@uva.nl> <4B69A693.8010507@swoodbridge.com> <4B6A82F2.163B.00A8.0@ci.stpaul.mn.us> Message-ID: <4B6AC5F7.163B.00A8.0@ci.stpaul.mn.us> Steve, I thought about the template process, and this would likely work with the first pass, where MapServer does a basic or simple version of a set of settings after looking at the datasource, Using the preconceived STAT string seems limiting as far as user interaction. If all the setting from the user or site config are already known, then that would work. I was looking at how to augment or adjust a specific ramp value within a set of them, but you have that possibility in your example as well. I'm interested for the most part in how to capture user input for the ramp classing. bobb >>> "Lime, Steve D (DNR)" wrote: You?re always mixing things up aren?t you? I don?t think you need a special mode. This strikes me as just another special form of template output based on a query. Presently you can get layer level query data (e.g. number of results) and of course spatial and non-spatial attributes for each feature. What?s needed here is the mechanism to gather layer stats (and a definition of what those are) in either draw or query context and then a means of using or presenting them. Imaging in a new ?stats? tag within a result set like so (within a resultset tag): [stats item=?foo? format=?$stddev,$min,$max?] You could use that to populate XML, JSON or just plain HTML output for use on the client. This tag would draw from a populated layerStatsObj which might consist of an array or hash of itemStatsObj?s? You could populate those objects on-the-fly or perhaps even from a file. Would probably need a new STATS ? END block within a layer to drive this. Just thinking out loud. Steve From: Bob Basques [mailto:Bob.Basques at ci.stpaul.mn.us] Sent: Thursday, February 04, 2010 8:19 AM To: Lime, Steve D (DNR); Stephen Woodbridge; Jan Hartmann Cc: MapServer Dev Mailing List; mapserver-users at lists.osgeo.org Subject: RE: [mapserver-dev] RE: [mapserver-users] colorramp and datarangeon the fly? All, Just to mix it up a little, what about doing a half and half approach. MapServer could generate something simpler (the data basics from a data read on the fly, and return a simple ramping config file, which could be used to pass back as a file for the custom aspects. Just having these two options would open up some doors, MapServer returning a simple ramp structure as a file, could be used in a User interface to do more complicated theming for example. Once the basic data limits are known, the ramping divisions are much easier to decide on. Could this work as a compiled in module for those that need/want it instead of always in? or would it make more sense to build in, ?? Something similar to a mode=legend sort of thing, like mode=ramp_txt ?? bobb >>> "Lime, Steve D (DNR)" wrote: At one point I toyed with the idea of supporting a .stats file for a layer and supplying a routine (command-line) that would populate it. The file would contain data like you're talking about. Doesn't help with the on-the-fly needs Bart was articulating. Steve -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Stephen Woodbridge Sent: Wednesday, February 03, 2010 10:39 AM To: Jan Hartmann Cc: Lime, Steve D (DNR); MapServer Dev Mailing List; mapserver-users at lists.osgeo.org Subject: Re: [mapserver-dev] RE: [mapserver-users] colorramp and datarange on the fly? Right, I think there are two use cases: 1) data exploration - can be slower but needs flexibility 2) production serving - needs to be fast, and probably limits flexibility to some predefined models I think that there is also another angle to this, which is how the summary data is computed for example: 1) min/max/average/std 2) statistical analysis 3) binning into some number of classes 4) removing outli ers so the results are not skewedIf the data is in a database, then you can add all the analysis, slicing and dicing to the database and the rendering to mapserver. So, I think that it would be nice to be able to read some "metadata" about a layer and then use that for building the display using something like colorramp and datarange. We might want to look at ways that we could establish in mapserver for fetching the "metadata" about a layer. For example: 1) define the "metadata" in the METADATA object 2) define a .met file for a shapefile or tileindex that contained the "metadata" for that layer 3) define a separate SQL query that could be used to fetch the "metadata" for the layer 4) something similar for other layer providers. 5) scan the data in two passes to compute some simple "metadata" Thoughts? -Steve W Jan Hartmann wrote: > If you allow two passes, you can have all sorts of summarized values in > the template, to be used in the second pass, like Bart's actual extent > used for coloring. Doesn't look to difficult to implement to me, as long > as the two passes only get called when really necessary. I'm not sure if > performance is an issue for MapServer itself: if you really want high > performance, you should use the underlying format or database directly. > > Jan > > On 3-2-2010 17:02, Lime, Steve D (DNR) wrote: >> How big a change would depend on the implementation. The brute force >> approach where you simply loop through features once to compute ranges >> and then again to draw would be probably pretty straight forward and >> driver independent. Wouldn't be fast (but would be simple). Complexity >> would be added as you try and boost performance by: >> >> - allowing drivers to compute stats in their own way (e.g. add to >> the layer API something like msLayerGetStats(...)) >> - caching geometries from a first pass through the shapes for the >> second >> >> Steve >> >> BTW The color ramp support needs to be cleaned up first. I think we >> scared the originator of that code away when an RFC was originally put >> together. >> >> -----Original Message----- >> From: mapserver-users-bounces at lists.osgeo.org >> [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Bart van >> den Eijnden >> Sent: Wednesday, February 03, 2010 5:12 AM >> To: mapserver-users at lists.osgeo.org >> Subject: [mapserver-users] colorramp and datarange on the fly? >> >> Hi list, >> >> is it possible to have a colorramp in Mapserver based on the min and >> max value in the current extent? >> >> So instead of predefining the min and max in DATARANGE, have Mapserver >> use the min and max value of the dataset in the current extent? >> >> If not, would it be an easy change or a very complex one? >> >> Best regards, >> Bart_______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> _______________________________________________ >> mapserver-dev mailing list >> mapserver-dev at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-dev >> > _______________________________________________ > mapserver-dev mailing list > mapserver-dev at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-dev _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users _______________________________________________ mapserver-dev mailing list mapserver-dev at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-dev -------------- next part -------------- An HTML attachment was scrubbed... URL: From j.l.h.hartmann at uva.nl Thu Feb 4 13:56:53 2010 From: j.l.h.hartmann at uva.nl (Jan Hartmann) Date: Thu, 04 Feb 2010 22:56:53 +0100 Subject: [mapserver-users] Re: [postgis-users] PostGIS 1.5.0 Released In-Reply-To: <30fe546d1002041016v2d44159x16704d71c34b3cf7@mail.gmail.com> References: <30fe546d1002041016v2d44159x16704d71c34b3cf7@mail.gmail.com> Message-ID: <4B6B42A5.9000303@uva.nl> Congratulations Paul and team. Just a question: what are the plans/status for topology under PostGIS? http://trac.osgeo.org/postgis/wiki/UsersWikiPostgisTopology Jan On 04-Feb-10 19:16, Paul Ramsey wrote: > February 4, 2010 > > The PostGIS development team has, after a long course of reflection > and a detailed self-examination of our various personal failings, > decided to release PostGIS 1.5.0 to the public. > > http://postgis.org/download/postgis-1.5.0.tar.gz > > This new version of PostGIS includes a new "geography" type for > managing geodetic (lat/lon) data, performance-enhanced distance > calculations, GML and KML format readers, an improved shape loading > GUI, and other new features as well. > > Especial thanks to: > > * Dave Skea for algorithms and mathematics necessary to support > spherical geometry > * Nicklas Av?n for the new performance enhanced distance calculations > and other distance-related functions > * Sandro Santilli for new buffering features (end caps and style options) > * Olivier Courtin for GML/KML input functions > * Guillaume Lelarge for support for the upcoming PgSQL 9.0 > * George Silva for an example implementation of history tables > * Vincent Picavet for Hausdorff distance calculations > * The maintainers of GEOS, Proj4, and LibXML, without whom we would > have less of a spatial database > > Love, the PostGIS project steering committee, > > Mark Cave-Ayland > Kevin Neufeld > Regina Obe > Paul Ramsey > > > ----- Release Notes ---- > > PostGIS 1.5.0 > 2010/02/04 > > * Important Changes * > > - =~ operator now indicates bounding box equality, not feature equality > - GEOS 3.1 is now the minimum accepted version of GEOS > - GEOS 3.2 is needed if you want to use enhanced buffering features > and ST_HausdorffDistance > - GEOS, LibXML2, and Proj4 are now mandatory dependencies > > * New Features * > > - Added Hausdorff distance calculations (#209) (Vincent Picavet) > - Added parameters argument to ST_Buffer operation to support one-sided > buffering and other buffering styles (Sandro Santilli) > - Performance improvements to ST_Distance (Nicklas Av?n) > - Addition of other Distance related visualization and analysis > functions (Nicklas Av?n) > - ST_ClosestPoint > - ST_DFullyWithin > - ST_LongestLine > - ST_MaxDistance > - ST_ShortestLine > - KML, GML input via ST_GeomFromGML and ST_GeomFromKML (Olivier Courtin) > - Extract homogeneous collection with ST_CollectionExtract (Paul Ramsey) > - Add measure values to existing linestring with ST_AddMeasure (Paul Ramsey) > - History table implementation in utils (George Silva) > - Win32 support and improvement of core shp2pgsql-gui (Mark Cave-Ayland) > - In place 'make check' support (Paul Ramsey) > - Geography type and supporting functions > - Spherical algorithms from Dave Skea > - Object/index implementation from Paul Ramsey > - Selectivitiy implementation from Mark Cave-Ayland > - Serializations (KML, GML, JSON) from Olivier Courtin > - ST_Area, ST_Distance, ST_DWithin, ST_GeogFromText, ST_GeogFromWKB, > ST_Intersects, ST_Covers, ST_Buffer > - Documentation updates and improvements (Regina Obe, Kevin Neufeld) > - Testing and quality control (Regina Obe) > - PostGIS 1.5 support PostgreSQL 8.5 trunk (Guillaume Lelarge) > - Many many other changes: > http://trac.osgeo.org/postgis/query?status=closed&milestone=PostGIS+1.5.0 > _______________________________________________ > postgis-users mailing list > postgis-users at postgis.refractions.net > http://postgis.refractions.net/mailman/listinfo/postgis-users > From martijnvanderpauw at gmail.com Fri Feb 5 05:32:46 2010 From: martijnvanderpauw at gmail.com (windfreak) Date: Fri, 5 Feb 2010 05:32:46 -0800 (PST) Subject: [mapserver-users] Re: Making labels appear less often on adjacent tiles In-Reply-To: <4AD6E468.1080804@romtelecom.ro> References: <4AD5B609.90705@romtelecom.ro> <2922382e0910140437p3d2ef19di4f0b6e511dc13a5d@mail.gmail.com> <4AD5C7D3.1050108@romtelecom.ro> <2922382e0910140743l5b68ac3dk12049f1f4367a009@mail.gmail.com> <4AD6E468.1080804@romtelecom.ro> Message-ID: <1265376766062-4519886.post@n2.nabble.com> Now I have an intermediate example. What if I have a large polygon or a large polyline. I don't want to see the labels for every tile of 250 x 250 pixels, but I don't like it when there's only one label when the polygon or polyline spans 40 tiles for example. ----- http://www.topspots.org -- View this message in context: http://n2.nabble.com/Making-labels-appear-less-often-on-adjacent-tiles-tp3822139p4519886.html Sent from the Mapserver - User mailing list archive at Nabble.com. From john.pulles at gmail.com Fri Feb 5 07:09:05 2010 From: john.pulles at gmail.com (John Pulles) Date: Fri, 5 Feb 2010 15:09:05 +0000 Subject: [mapserver-users] mapserver as a tile cache client? In-Reply-To: <45330.145.50.39.11.1265294757.squirrel@webmail.hostingdiscounter.nl> References: <77e806671002040434s6c77acb6l73b42ad0784ac7ce@mail.gmail.com> <45330.145.50.39.11.1265294757.squirrel@webmail.hostingdiscounter.nl> Message-ID: <77e806671002050709w27bc2fb2w5ebdb41dc4e5e4f6@mail.gmail.com> Hi Bart, Thanks for mentioning this! I'm not getting the examples working though, with mapserver. Apart from that, a problem with the arcgis mapcache is that it's tiles are named like L01/R00000000/C00000000.png. Do you think the TMS minidriver supports formatting of the {x}, {y} and {z}? Regards, John 2010/2/4 > John, > > yes it's possible see: > > http://www.gdal.org/frmt_wms.html > > Best regards, > Bart > > > Hi, > > > > We are having a arcgis tile cache layer but also need to have static > > images > > with a given bounding box, not limited by the tiling scheme, but making > it > > available as a wms. Is it possible to use mapserver as a tile cache > > client, > > or can you suggest other solutions? > > > > Thanks, > > John > > _______________________________________________ > > mapserver-users mailing list > > mapserver-users at lists.osgeo.org > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From crschmidt at metacarta.com Fri Feb 5 07:17:07 2010 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Fri, 5 Feb 2010 10:17:07 -0500 Subject: [mapserver-users] mapserver as a tile cache client? In-Reply-To: <77e806671002050709w27bc2fb2w5ebdb41dc4e5e4f6@mail.gmail.com> References: <77e806671002040434s6c77acb6l73b42ad0784ac7ce@mail.gmail.com> <45330.145.50.39.11.1265294757.squirrel@webmail.hostingdiscounter.nl> <77e806671002050709w27bc2fb2w5ebdb41dc4e5e4f6@mail.gmail.com> Message-ID: <20100205151707.GR20135@metacarta.com> On Fri, Feb 05, 2010 at 03:09:05PM +0000, John Pulles wrote: > Hi Bart, > > Thanks for mentioning this! > I'm not getting the examples working though, with mapserver. > Apart from that, a problem with the arcgis mapcache is that it's tiles are > named like L01/R00000000/C00000000.png. Do you think the TMS minidriver > supports formatting of the {x}, {y} and {z}? It does not. -- Chris > Regards, > John > > 2010/2/4 > > > John, > > > > yes it's possible see: > > > > http://www.gdal.org/frmt_wms.html > > > > Best regards, > > Bart > > > > > Hi, > > > > > > We are having a arcgis tile cache layer but also need to have static > > > images > > > with a given bounding box, not limited by the tiling scheme, but making > > it > > > available as a wms. Is it possible to use mapserver as a tile cache > > > client, > > > or can you suggest other solutions? > > > > > > Thanks, > > > John > > > _______________________________________________ > > > mapserver-users mailing list > > > mapserver-users at lists.osgeo.org > > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > > > > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Christopher Schmidt MetaCarta From bartvde at osgis.nl Fri Feb 5 08:57:24 2010 From: bartvde at osgis.nl (Bart van den Eijnden) Date: Fri, 5 Feb 2010 17:57:24 +0100 Subject: [mapserver-users] mapserver as a tile cache client? In-Reply-To: <20100205151707.GR20135@metacarta.com> References: <77e806671002040434s6c77acb6l73b42ad0784ac7ce@mail.gmail.com> <45330.145.50.39.11.1265294757.squirrel@webmail.hostingdiscounter.nl> <77e806671002050709w27bc2fb2w5ebdb41dc4e5e4f6@mail.gmail.com> <20100205151707.GR20135@metacarta.com> Message-ID: <6978C1D2-089D-4065-941D-4BC3EA3CE421@osgis.nl> Some people made an extension to Geoserver to read ESRI mapcache, so maybe that could be used instead? See: http://download.osgeo.org/osgeo/foss4g/2009/SPREP/3Fri/Parkside%20Auditorium/1300/fri paud 1300 Jonsson.ppt Best regards, Bart On Feb 5, 2010, at 4:17 PM, Christopher Schmidt wrote: > On Fri, Feb 05, 2010 at 03:09:05PM +0000, John Pulles wrote: >> Hi Bart, >> >> Thanks for mentioning this! >> I'm not getting the examples working though, with mapserver. >> Apart from that, a problem with the arcgis mapcache is that it's tiles are >> named like L01/R00000000/C00000000.png. Do you think the TMS minidriver >> supports formatting of the {x}, {y} and {z}? > > It does not. > > -- Chris > >> Regards, >> John >> >> 2010/2/4 >> >>> John, >>> >>> yes it's possible see: >>> >>> http://www.gdal.org/frmt_wms.html >>> >>> Best regards, >>> Bart >>> >>>> Hi, >>>> >>>> We are having a arcgis tile cache layer but also need to have static >>>> images >>>> with a given bounding box, not limited by the tiling scheme, but making >>> it >>>> available as a wms. Is it possible to use mapserver as a tile cache >>>> client, >>>> or can you suggest other solutions? >>>> >>>> Thanks, >>>> John >>>> _______________________________________________ >>>> mapserver-users mailing list >>>> mapserver-users at lists.osgeo.org >>>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>>> >>> >>> >>> > >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > -- > Christopher Schmidt > MetaCarta > From apetkov at fs.fed.us Fri Feb 5 10:22:12 2010 From: apetkov at fs.fed.us (Alexander Petkov) Date: Fri, 5 Feb 2010 11:22:12 -0700 Subject: [mapserver-users] Re: Actual coverage data+colormap In-Reply-To: References: Message-ID: I am still trying to figure this out, so any ideas are much welcome :) So far I am thinking to either: 1. Somehow use a template that calls an external utility/function much like gdal_translate for the subsetting. From reading the docs this doesn't seem possible. 2. Use apache redirect to another page that does the subsetting, sets the content headers and streams the file. A very clumsy solution from a design point of view. Thanks in advance for any ideas :) Alex On Thu, May 14, 2009 at 1:37 PM, Alexander Petkov wrote: > Is it possible to include the colormap from an image being served as a > coverage through mapserver? In other words, definining BYTE or INT16 > for the IMAGEMODE will provide the actual data from the raster (which > is what I am after), but the colormap is discarded when the data is > requested through a GetCoverage request. Then I tried PC256 for the > IMAGEMODE but I lost the actual data. > > Is there currently a way to allow me to include a colormap in the > OUTPUTFORMAT definition, while providing the actual data through a > GetCoverage request? > > I have defined the output format as follows: > > OUTPUTFORMAT > ? NAME "GTIFF" > ? MIMETYPE "image/tiff" > ? DRIVER "GDAL/GTiff" > ? EXTENSION "tif" > ? IMAGEMODE "BYTE" > ? TRANSPARENT TRUE > ? FORMATOPTION "COMPRESS=PACKBITS" > ?END > > Thanks in advance, > Alex > From osgeo.mailinglist at gmail.com Fri Feb 5 15:09:00 2010 From: osgeo.mailinglist at gmail.com (Thomas Gratier) Date: Sat, 6 Feb 2010 00:09:00 +0100 Subject: [mapserver-users] Duplicate entry on a page of the official documentation Message-ID: Hello list, I don't know where I can report this. So on this page http://mapserver.org/errors.html#errors You will find twice the topic below. msQueryByPoint: search returned no results One is in the middle of the topic and one at the end. ThomasG -------------- next part -------------- An HTML attachment was scrubbed... URL: From mercier.simon at gmail.com Sun Feb 7 09:33:50 2010 From: mercier.simon at gmail.com (Simon Mercier) Date: Sun, 7 Feb 2010 12:33:50 -0500 Subject: [mapserver-users] WMS Mapfile implementation In-Reply-To: References: Message-ID: Joseph, you add in your CONNECTION tag a capabilitiess request...?? you have to put this for your connection: http://imsortho.cr.usgs.gov/wmsconnector/com.esri.wms.Esrimap/USGS_EDC_Ortho_Ohio 1)If you have to show county separately, you have to add one county in one layer... But you can also cascading your request in other WMS to group them in just one layer... (with the GROUP tag) 2)In a WMS layers, you sould have at least this in your Metadata tag: wms_srs(you need for your service), wms_name(WMS name you call), wms_title(you want show in your service) wms_server_version(usualy 1.1.1) wms_format(format support by your WMS provider) regards simon mercier 2010/2/3 Joseph Harwood > Greetings, > > I have a 2 part question. > The USGS offers aerial imagery WMS service. This URL shows the location: > http://seamless.usgs.gov/wms_services.php?layerid=15 > > I want to incorporate a WMS service from the USGS that references many > layers (in this case, county aerial imagery). The getcapabilites request > show the layers in xml: > ... > OH_WoodCounty_1.0ft_Color_Mar_2006 > OH_WilliamsCounty_1.0ft_Color_Mar_2006 > OH_WayneCounty_1.0ft_Color_Mar_2006 > and so on. > > The online service URL is: > http://imsortho.cr.usgs.gov/wmsconnector/com.esri.wms.Esrimap/USGS_EDC_Ortho_Ohio?REQUEST=capabilities&SERVICE=WMS > > 1. Is there a way to populate all these layers into my map with a single > request, or do I need to make a mapfile layer object for each county? > > 2. If so, In doing this do I need the metadata to spell out each > layer's(county) specific metadata? {title, bbox, name, layer, srid} > > > My mapfile currently reads: > > LAYER > NAME "OSIP-WMS" > TYPE RASTER > #TRANSPARENCY 40 > STATUS OFF > #MINSCALEDENOM 6000 > CONNECTIONTYPE WMS > CONNECTION " > http://imsortho.cr.usgs.gov/wmsconnector/com.esri.wms.Esrimap/USGS_EDC_Ortho_Ohio?REQUEST=capabilities&SERVICE=WMS&layers=OH_AllenCounty_1.0ft_Color_Mar_2006 > " > > METADATA > "wms_srs" "EPSG:4326" > "wms_title" "OH_AllenCounty_1.0ft_Color_Mar_2006" > "wms_name" "OH_AllenCounty_1.0ft_Color_Mar_2006" > "wms_layer" "OH_AllenCounty_1.0ft_Color_Mar_2006" > "wms_server_version" "1.1.1" > "wms_format" "image/png" > #"wms_latlonboundingbox" "-85.000000, 38.000000, -80.250000, > 42.000000" > #"wms_opaque" "255,255,255" > "basemap" "1" > END > > END > > As I have tried to get a single county to work, but I have had no success, > yet. > Any haelp would be appreciated. > > Thank you > > Joe > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From lists at remoteinformation.com.au Sun Feb 7 22:25:43 2010 From: lists at remoteinformation.com.au (Ben Madin) Date: Mon, 8 Feb 2010 14:25:43 +0800 Subject: [mapserver-users] Managing offset in the legend Message-ID: <742CD226-2427-40E4-9DC7-AA03788E65B3@remoteinformation.com.au> G'day all, We have been showing some boolean information on the map using segments of a circle, created using vector symbols (of maximum dimension 1 x 1 pixel, and a size of 10.) In order to keep sizes and stuff easy, all the vectors are just a quarter of a circle, and then we scale them up and use offsets to put them into position. -------------- next part -------------- A non-text attachment was scrubbed... Name: mapimage.png Type: image/png Size: 8608 bytes Desc: not available URL: -------------- next part -------------- While this is working great on the maps, we can't get the legend to work (see attachment) with all the segments being offset, sometimes out of the legend. Is there some solution we could use to 'recentre' the segments. At the moment the only client friendly solution we have is to create manually an image for the legend and superimpose it on the map, but the map creation system allows clients to create their own maps. cheers Ben From ivan.mincik at gista.sk Mon Feb 8 07:30:03 2010 From: ivan.mincik at gista.sk (Ivan Mincik) Date: Mon, 8 Feb 2010 16:30:03 +0100 Subject: [mapserver-users] Re: mapserver documentation: unique gid using srid=x ? Message-ID: <201002081630.03728.ivan.mincik@gista.sk> >Hi, >according Mapserver docs: http://mapserver.org/input/vector/postgis.html there is different syntax of using "USING >UNIQUE gid USING SRID=x" string in DATA line in similar cases. >In simple case example: >DATA "the_geom from the_database USING unique gid using srid=4326" >In case of using a SQL subquery example: >DATA "the_geom from (select g.gid, g.the_geom, a.attr1, a.attr2 from geotable g join attrtable a on g.gid = a.aid) as >subquery unique gid using srid=4326" >When comparing these two examples, second example (SQL subquery example) is missing first "USING" keyword. Shouldn't be >second example as following: >DATA "the_geom from (select g.gid, g.the_geom, a.attr1, a.attr2 from geotable g join attrtable a on g.gid = a.aid) as >subquery USING unique gid using srid=4326" When testing on Mapserver 5.2.x, it seems to be typo in documentation. If I am correct, would You please fix it ? Thanks. Ivan -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 197 bytes Desc: This is a digitally signed message part. URL: From andy at squeakycode.net Mon Feb 8 08:11:22 2010 From: andy at squeakycode.net (Andy Colson) Date: Mon, 08 Feb 2010 10:11:22 -0600 Subject: [mapserver-users] many raster projections Message-ID: <4B7037AA.2020901@squeakycode.net> Ok, I'm confused. Most of the problem is probably because I'm a programmer, not a mapper. I have arial imagery of Minnesota, multiple sets, each seeming to be in a different projection. At the top of my mapfile I have this: MAP EXTENT 1285920 1377857 1426390 1506589 PROJECTION "+proj=tmerc +lat_0=35.83333333333334 +lon_0=-92.5 +k=0.999933333 +x_0=500000 +y_0=0 +ellps=GRS80 +units=m +no_defs" END There are no other PROJECTION settings. Most of the images seem to work. I got the projtext above from loading one of the shapefiles into qgis and looking at its properties. I just kinda hoped they'd all be the same. I did try adding a PROJECTION to the raster layer, but it didnt seem to work. So I thought I'd "just" re-project the imagery. Three sets of imagery seem to work (I didnt touch them, they always worked), they have (again copied from qgis) proj text's of: +proj=tmerc +lat_0=35.83333333333334 +lon_0=-92.5 +k=0.999933333 +x_0=500000.0000000001 +y_0=0 +ellps=GRS80 +datum=NAD83 +to_meter=0.3048006096012192 +no_defs +proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs and +proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs One set is displayed way off the map, way far away from where its supposed to be. Its projtext is: +proj=utm +zone=15 +ellps=GRS80 +datum=NAD83 +units=m +no_defs I attempted to use gdal_translate and gdal_warp. gdal_translate made a new image, with projtext: +proj=tmerc +lat_0=35.83333333333334 +lon_0=-92.5 +k=0.999933333 +x_0=500000 +y_0=0 +ellps=GRS80 +units=m +no_defs but its in the exact same spot, it didnt re-position to where images are supposed to be. A gdalwarp moved it, but not to the right place. So I'm confused, and not sure what I'm doing. Hopefully there is some info in here someone can use to set me on the right path. Any help would be appreciated. -Andy From Steve.Lime at state.mn.us Mon Feb 8 08:12:04 2010 From: Steve.Lime at state.mn.us (Lime, Steve D (DNR)) Date: Mon, 8 Feb 2010 10:12:04 -0600 Subject: [mapserver-users] Re: Making labels appear less often on adjacent tiles In-Reply-To: <1265376766062-4519886.post@n2.nabble.com> References: <4AD5B609.90705@romtelecom.ro> <2922382e0910140437p3d2ef19di4f0b6e511dc13a5d@mail.gmail.com> <4AD5C7D3.1050108@romtelecom.ro> <2922382e0910140743l5b68ac3dk12049f1f4367a009@mail.gmail.com> <4AD6E468.1080804@romtelecom.ro>, <1265376766062-4519886.post@n2.nabble.com> Message-ID: Sounds like you might want to use the MINDISTANCE label parameter in this case. I think if you see it to a value close to the size of your metatiles you'd get sparse labeling of those features but not simply the single label that pre-clipping computation gives you. That's the approach I take with things like National Forests in Minnesota where 1 polygon covers ~3 million acres... Steve ________________________________________ From: mapserver-users-bounces at lists.osgeo.org [mapserver-users-bounces at lists.osgeo.org] On Behalf Of windfreak [martijnvanderpauw at gmail.com] Sent: Friday, February 05, 2010 7:32 AM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] Re: Making labels appear less often on adjacent tiles Now I have an intermediate example. What if I have a large polygon or a large polyline. I don't want to see the labels for every tile of 250 x 250 pixels, but I don't like it when there's only one label when the polygon or polyline spans 40 tiles for example. ----- http://www.topspots.org -- View this message in context: http://n2.nabble.com/Making-labels-appear-less-often-on-adjacent-tiles-tp3822139p4519886.html Sent from the Mapserver - User mailing list archive at Nabble.com. _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From David.Fawcett at state.mn.us Mon Feb 8 08:36:07 2010 From: David.Fawcett at state.mn.us (Fawcett, David (MPCA)) Date: Mon, 8 Feb 2010 10:36:07 -0600 Subject: [mapserver-users] many raster projections In-Reply-To: <4B7037AA.2020901@squeakycode.net> References: <4B7037AA.2020901@squeakycode.net> Message-ID: Andy, It looks like you have data in at least two or three different projections. If you want to display them in the same map using MapServer, you need: - a projection block at the MAP level. This defines your output projection. The map UNITS and EXTENT need tobe consistent with this projection. - a projection block for each layer. This is used to tell MapServer what projection the data for that layer is currently in. MapServer then uses this info to warp all of the layers into the same output projection. Does this help? Are these all publicly available datasets? David. -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Andy Colson Sent: Monday, February 08, 2010 10:11 AM To: mapserver-users Subject: [mapserver-users] many raster projections Ok, I'm confused. Most of the problem is probably because I'm a programmer, not a mapper. I have arial imagery of Minnesota, multiple sets, each seeming to be in a different projection. At the top of my mapfile I have this: MAP EXTENT 1285920 1377857 1426390 1506589 PROJECTION "+proj=tmerc +lat_0=35.83333333333334 +lon_0=-92.5 +k=0.999933333 +x_0=500000 +y_0=0 +ellps=GRS80 +units=m +no_defs" END There are no other PROJECTION settings. Most of the images seem to work. I got the projtext above from loading one of the shapefiles into qgis and looking at its properties. I just kinda hoped they'd all be the same. I did try adding a PROJECTION to the raster layer, but it didnt seem to work. So I thought I'd "just" re-project the imagery. Three sets of imagery seem to work (I didnt touch them, they always worked), they have (again copied from qgis) proj text's of: +proj=tmerc +lat_0=35.83333333333334 +lon_0=-92.5 +k=0.999933333 +x_0=500000.0000000001 +y_0=0 +ellps=GRS80 +datum=NAD83 +to_meter=0.3048006096012192 +no_defs +proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs and +proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs One set is displayed way off the map, way far away from where its supposed to be. Its projtext is: +proj=utm +zone=15 +ellps=GRS80 +datum=NAD83 +units=m +no_defs I attempted to use gdal_translate and gdal_warp. gdal_translate made a new image, with projtext: +proj=tmerc +lat_0=35.83333333333334 +lon_0=-92.5 +k=0.999933333 +x_0=500000 +y_0=0 +ellps=GRS80 +units=m +no_defs but its in the exact same spot, it didnt re-position to where images are supposed to be. A gdalwarp moved it, but not to the right place. So I'm confused, and not sure what I'm doing. Hopefully there is some info in here someone can use to set me on the right path. Any help would be appreciated. -Andy _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From andy at squeakycode.net Mon Feb 8 09:05:48 2010 From: andy at squeakycode.net (Andy Colson) Date: Mon, 08 Feb 2010 11:05:48 -0600 Subject: [mapserver-users] many raster projections In-Reply-To: References: <4B7037AA.2020901@squeakycode.net> Message-ID: <4B70446C.5030505@squeakycode.net> Thank you, but that didnt seem to help. I left the main PROJECTION as is, and I changed my raster to this: LAYER NAME "raster07" STATUS off TILEINDEX "raster07.shp" TILEITEM "location" TYPE RASTER PROJECTION "+proj=utm +zone=15 +ellps=GRS80 +datum=NAD83 +units=m +no_defs" END END Now, here's another problem (to add to the layers of projections). I'm using OpenLayers on the front end (for the website), and I have no idea what all this projection stuff means, and wasnt sure how to set it in OpenLayers. I create the map like this: map = new OpenLayers.Map("map", { controls: [ new OpenLayers.Control.Navigation( {zoomWheelEnabled: false} ), new OpenLayers.Control.PanZoomBar(), ls ], numZoomLevels: 12, maxExtent: new OpenLayers.Bounds([%minx%], [%miny%], [%maxx%], [%maxy%]), maxResolution: 250, unit: 'm', projection: "EPSG:2816"} ); It seems to work. I totally guessed at EPSG:2816, I have no idea if it matches: "+proj=tmerc +lat_0=35.83333333333334 +lon_0=-92.5 +k=0.999933333 +x_0=500000 +y_0=0 +ellps=GRS80 +units=m +no_defs" The shapefiles show up, as do most of the arials. > Are these all publicly available datasets? I dont know, they are from the Livingston county Missouri Assessors office. Hum... did I say Minnesota before? That was wrong, its MO not MN. Its about 2 gig, and I could email and ask them if it really comes down to it. -Andy On 2/8/2010 10:36 AM, Fawcett, David (MPCA) wrote: > Andy, > > It looks like you have data in at least two or three different > projections. If you want to display them in the same map using > MapServer, you need: > > - a projection block at the MAP level. This defines your output > projection. The map UNITS and EXTENT need tobe consistent with this > projection. > > - a projection block for each layer. This is used to tell MapServer > what projection the data for that layer is currently in. > > MapServer then uses this info to warp all of the layers into the same > output projection. > > Does this help? > > Are these all publicly available datasets? > > David. > > > > -----Original Message----- From: > mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Andy > Colson Sent: Monday, February 08, 2010 10:11 AM To: mapserver-users > Subject: [mapserver-users] many raster projections > > Ok, I'm confused. Most of the problem is probably because I'm a > programmer, not a mapper. > > I have arial imagery of Minnesota, multiple sets, each seeming to be > in a different projection. > > At the top of my mapfile I have this: > > MAP EXTENT 1285920 1377857 1426390 1506589 > > PROJECTION "+proj=tmerc +lat_0=35.83333333333334 +lon_0=-92.5 > +k=0.999933333 +x_0=500000 +y_0=0 +ellps=GRS80 +units=m +no_defs" > END > > There are no other PROJECTION settings. Most of the images seem to > work. I got the projtext above from loading one of the shapefiles > into qgis and looking at its properties. I just kinda hoped they'd > all be the same. I did try adding a PROJECTION to the raster layer, > but it didnt seem to work. So I thought I'd "just" re-project the > imagery. > > > Three sets of imagery seem to work (I didnt touch them, they always > worked), they have (again copied from qgis) proj text's of: > > +proj=tmerc +lat_0=35.83333333333334 +lon_0=-92.5 +k=0.999933333 > +x_0=500000.0000000001 +y_0=0 +ellps=GRS80 +datum=NAD83 > +to_meter=0.3048006096012192 +no_defs > > +proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs > > and > > +proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs > > One set is displayed way off the map, way far away from where its > supposed to be. Its projtext is: > > +proj=utm +zone=15 +ellps=GRS80 +datum=NAD83 +units=m +no_defs > > I attempted to use gdal_translate and gdal_warp. > > gdal_translate made a new image, with projtext: +proj=tmerc > +lat_0=35.83333333333334 +lon_0=-92.5 +k=0.999933333 +x_0=500000 > +y_0=0 +ellps=GRS80 +units=m +no_defs > > but its in the exact same spot, it didnt re-position to where images > are supposed to be. > > A gdalwarp moved it, but not to the right place. > > So I'm confused, and not sure what I'm doing. Hopefully there is > some info in here someone can use to set me on the right path. Any > help would be appreciated. > > -Andy _______________________________________________ mapserver-users > mailing list mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From andy at squeakycode.net Mon Feb 8 09:30:43 2010 From: andy at squeakycode.net (Andy Colson) Date: Mon, 08 Feb 2010 11:30:43 -0600 Subject: [mapserver-users] many raster projections In-Reply-To: <4B70446C.5030505@squeakycode.net> References: <4B7037AA.2020901@squeakycode.net> <4B70446C.5030505@squeakycode.net> Message-ID: <4B704A43.5030509@squeakycode.net> To take OpenLayers out of the equation, I made myself a test.map file that just included two layers and used shp2img. If I switch on the 2007 (raster07) then I get no arial (the result image is just a gray slate). If I switch on raster09_chil, the result image has the arial's as expected. Hopefully the attachment will make it through. -Andy On 2/8/2010 11:05 AM, Andy Colson wrote: > Thank you, but that didnt seem to help. > > I left the main PROJECTION as is, and I changed my raster to this: > > LAYER > NAME "raster07" > STATUS off > TILEINDEX "raster07.shp" > TILEITEM "location" > TYPE RASTER > PROJECTION > "+proj=utm +zone=15 +ellps=GRS80 +datum=NAD83 +units=m +no_defs" > END > END > > > Now, here's another problem (to add to the layers of projections). I'm > using OpenLayers on the front end (for the website), and I have no idea > what all this projection stuff means, and wasnt sure how to set it in > OpenLayers. > > I create the map like this: > > map = new OpenLayers.Map("map", { > controls: [ > new OpenLayers.Control.Navigation( {zoomWheelEnabled: false} ), > new OpenLayers.Control.PanZoomBar(), > ls > ], > numZoomLevels: 12, > maxExtent: new OpenLayers.Bounds([%minx%], [%miny%], [%maxx%], [%maxy%]), > maxResolution: 250, > unit: 'm', > projection: "EPSG:2816"} > ); > > It seems to work. I totally guessed at EPSG:2816, I have no idea if it > matches: > "+proj=tmerc +lat_0=35.83333333333334 +lon_0=-92.5 +k=0.999933333 > +x_0=500000 +y_0=0 +ellps=GRS80 +units=m +no_defs" > > The shapefiles show up, as do most of the arials. > > > Are these all publicly available datasets? > > I dont know, they are from the Livingston county Missouri Assessors > office. Hum... did I say Minnesota before? That was wrong, its MO not > MN. Its about 2 gig, and I could email and ask them if it really comes > down to it. > > -Andy > > On 2/8/2010 10:36 AM, Fawcett, David (MPCA) wrote: >> Andy, >> >> It looks like you have data in at least two or three different >> projections. If you want to display them in the same map using >> MapServer, you need: >> >> - a projection block at the MAP level. This defines your output >> projection. The map UNITS and EXTENT need tobe consistent with this >> projection. >> >> - a projection block for each layer. This is used to tell MapServer >> what projection the data for that layer is currently in. >> >> MapServer then uses this info to warp all of the layers into the same >> output projection. >> >> Does this help? >> >> Are these all publicly available datasets? >> >> David. >> >> >> >> -----Original Message----- From: >> mapserver-users-bounces at lists.osgeo.org >> [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Andy >> Colson Sent: Monday, February 08, 2010 10:11 AM To: mapserver-users >> Subject: [mapserver-users] many raster projections >> >> Ok, I'm confused. Most of the problem is probably because I'm a >> programmer, not a mapper. >> >> I have arial imagery of Minnesota, multiple sets, each seeming to be >> in a different projection. >> >> At the top of my mapfile I have this: >> >> MAP EXTENT 1285920 1377857 1426390 1506589 >> >> PROJECTION "+proj=tmerc +lat_0=35.83333333333334 +lon_0=-92.5 >> +k=0.999933333 +x_0=500000 +y_0=0 +ellps=GRS80 +units=m +no_defs" >> END >> >> There are no other PROJECTION settings. Most of the images seem to >> work. I got the projtext above from loading one of the shapefiles >> into qgis and looking at its properties. I just kinda hoped they'd >> all be the same. I did try adding a PROJECTION to the raster layer, >> but it didnt seem to work. So I thought I'd "just" re-project the >> imagery. >> >> >> Three sets of imagery seem to work (I didnt touch them, they always >> worked), they have (again copied from qgis) proj text's of: >> >> +proj=tmerc +lat_0=35.83333333333334 +lon_0=-92.5 +k=0.999933333 >> +x_0=500000.0000000001 +y_0=0 +ellps=GRS80 +datum=NAD83 >> +to_meter=0.3048006096012192 +no_defs >> >> +proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs >> >> and >> >> +proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs >> >> One set is displayed way off the map, way far away from where its >> supposed to be. Its projtext is: >> >> +proj=utm +zone=15 +ellps=GRS80 +datum=NAD83 +units=m +no_defs >> >> I attempted to use gdal_translate and gdal_warp. >> >> gdal_translate made a new image, with projtext: +proj=tmerc >> +lat_0=35.83333333333334 +lon_0=-92.5 +k=0.999933333 +x_0=500000 >> +y_0=0 +ellps=GRS80 +units=m +no_defs >> >> but its in the exact same spot, it didnt re-position to where images >> are supposed to be. >> >> A gdalwarp moved it, but not to the right place. >> >> So I'm confused, and not sure what I'm doing. Hopefully there is >> some info in here someone can use to set me on the right path. Any >> help would be appreciated. >> >> -Andy _______________________________________________ mapserver-users >> mailing list mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: test.map URL: From pmoen at nd.gov Mon Feb 8 10:51:01 2010 From: pmoen at nd.gov (Moen, Paul T.) Date: Mon, 8 Feb 2010 12:51:01 -0600 Subject: [mapserver-users] php mapscript loadQuery problem In-Reply-To: References: Message-ID: <83E36BCA-7657-4964-BCEF-D399A19CEE93@nd.gov> The query file parser will throw a detailed error message if it has a parsing problem. Where would I look for the errors that the query file parser throws? I don't see any in the error_log for apache, which is where all my php errors are logged. Does that mean that the parser is having no problems parsing the file, but something else goes awry? I added some information hoping it may help. This is my command from php $test = $map->saveQuery("/tmp/testfile.txt"); error_log($test." ".MS_SUCCESS); The output from the error_log line above is Testing save query: 0 0 I then try to load the query file with the following commands. $test = $map->loadQuery("/tmp/testfile.txt"); error_log("Testing load = ".$test." - ".MS_SUCCESS); The output from the error_log line above is Testing load = 1 - 0 Thanks, Paul On Feb 1, 2010, at 3:55 PM, Lime, Steve D (DNR) wrote: I?ll send you more details when I get time tonite (I hope) and can test things. I?ve been using 5.6 save/load query functions a ton via the CGI but not PHP. I tested a bunch with Perl MapScript and will have to check those methods against what PHP is doing. Here?s what the lines mean: Line ? Contents 0 - magic string 1 - mode, type (single or multiple), qlayer, slayer 2 - point x, point y, buffer, max results (queryByPoint) 3 - query rect (minx, miny, maxx, maxy) (queryByRect) 4 - shp index, tile index, clear cache flag (queryByIndex) 5 - qitem or NULL (queryByAttribute) 6 - qstring or NULL 7 - operator (used by WFS) 8+ - query shape (queryByShape) Basically each line or so after the first couple match a MapServer query method and it?s parameters. The file contents look fine to me. The query file parser will throw a detailed error message if it has a parsing problem. Steve From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Moen, Paul T. Sent: Monday, February 01, 2010 2:42 PM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] php mapscript loadQuery problem I have not been able to get loadQuery to work. The saveQuery command creates the file and returns MS_SUCCESS. When I try to load the file using loadQuery, it always returns MS_FAILURE. I get no other errors. The permissions are good. Is there a way to enable more verbose error logging to find out what is going on? Is there any documentation on what should be in the saved file? The following is the text from one of the saved query files. MapServer Query - Generated by msSaveQuery() 1 2 83 -1 -1 -1 0 0 2183769.22727273 944435.909090909 2331977.40909091 1066349.09090909 -1 -1 1 NULL NULL -1 0 This is my version. MapServer version 5.6.1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=SWF OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=CAIRO SUPPORTS=FREETYPE SUPPORTS=ICONV SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=SOS_SERVER SUPPORTS=GEOS INPUT=EPPL7 INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE Thanks, Paul -------------- next part -------------- An HTML attachment was scrubbed... URL: From pwillis at aslenv.com Mon Feb 8 10:37:13 2010 From: pwillis at aslenv.com (Peter Willis) Date: Mon, 08 Feb 2010 10:37:13 -0800 Subject: [mapserver-users] Continuing problem with WCS and ENVI Multi-band files Message-ID: <4B7059D9.8030804@aslenv.com> Hello, I continue to have a problem selecting a single band from a multi-band (563 bands) ENVI format BSQ file. Using the following URL mapserver gives me a FLOAT32 GTiff file but it is always filled with zeros. http://wcs.foo.com/cgi-bin/wcs?REQUEST=GetCoverage&SERVICE=WCS&VERSION=1.0.0&COVERAGE=NDVI&CRS=EPSG:4326&BBOX=-135,55,-121,46&WIDTH=256&HEIGHT=256&FORMAT=GEOTIFF_FLOAT&Band=122 Is there any documentation that clearly shows how WCS can be set up to do this? My current LAYER definition is as follows: LAYER NAME VegetationIndex STATUS OFF DEBUG ON TYPE RASTER METADATA "wcs_label" "Data/NDVI" "wcs_rangeset_name" 'bands' "wcs_rangeset_label" "NDVI" "ows_extent" '-135 55 -121 46' "wcs_resolution" '0.08333333333333332 -0.083333333333333332' "ows_srs" 'EPSG:4326' "wcs_srs" 'EPSG:4326' "wcs_formats" 'GEOTIFF_FLOAT,GEOTIFF_INT16' "wcs_nativeformat" 'ENVI' END DATA /NDVI/ndvi.img PROJECTION "init=epsg:4623" END DUMP TRUE END From damarmo at gmail.com Mon Feb 8 11:07:35 2010 From: damarmo at gmail.com (David Martinez Morata) Date: Mon, 8 Feb 2010 14:37:35 -0430 Subject: [mapserver-users] Adding a SLD for a WMS Service Message-ID: <9771eb541002081107o41cdb051t863a1608b7988843@mail.gmail.com> Hello. I have a map file to Serve some layers, and I need to link some layers with a sld files. I read the SLD documentation in the MApserver web site, but i don't reali understud what I'm doing: 1 I put in my layer defifnition SLD "Path/to/my/sld/file.sld" I try with metadatas "wms_sld_url" "Path/to/my/sld/file.sld" "wms_sld_body" "AUTO" *"ows_sld_enabled"* "true" But didn't works I modifie my sld (gvsig generated) file deleting the tags that are not compatible with mapserver and I don't know what to do with... Any Help? Thanks -- Martinez Morata David Thinking GIS -------------- next part -------------- An HTML attachment was scrubbed... URL: From MarkVolz at co.lyon.mn.us Mon Feb 8 12:20:48 2010 From: MarkVolz at co.lyon.mn.us (Mark Volz) Date: Mon, 8 Feb 2010 14:20:48 -0600 Subject: [mapserver-users] hyper-threading and performance Message-ID: <3D56274B4A7874468F58FADDBFD098010894509D@llmhs02.r8nssis.local> Hello, Does anyone know if the performance of Mapserver is increased if hyper-threading is enabled? If so how much? Mark Volz GIS Specialist Lyon County, MN -------------- next part -------------- An HTML attachment was scrubbed... URL: From andy at squeakycode.net Mon Feb 8 12:30:06 2010 From: andy at squeakycode.net (Andy Colson) Date: Mon, 08 Feb 2010 14:30:06 -0600 Subject: [mapserver-users] hyper-threading and performance In-Reply-To: <3D56274B4A7874468F58FADDBFD098010894509D@llmhs02.r8nssis.local> References: <3D56274B4A7874468F58FADDBFD098010894509D@llmhs02.r8nssis.local> Message-ID: <4B70744E.8090904@squeakycode.net> On 2/8/2010 2:20 PM, Mark Volz wrote: > Hello, > > Does anyone know if the performance of Mapserver is increased if > hyper-threading is enabled? If so how much? > > Mark Volz > > GIS Specialist > > Lyon County, MN > Hey Mark, What sort of usage are we talking? Web hosting? Shapefiles and arials? I'm not sure if mapserver itself will use mult-threads, but if you have multiple requests comming into a website, apache/cgi/mapserver/etc will use multi process/threads/etc. Its tough to say the performance increase. I'm host several maps on a dual-core box, and the cpu's sit around 2 percent. And with lots of arial imagery you might hit disk io limit before you hit cpu limit. (However, I have had some mrsid files that were really cpu intensive to uncompress, they were cpu bound). Are your cpu's even pegged? So, I guess, the answer is, it really depends on a lot of different variables. -Andy From MarkVolz at co.lyon.mn.us Mon Feb 8 12:48:44 2010 From: MarkVolz at co.lyon.mn.us (Mark Volz) Date: Mon, 8 Feb 2010 14:48:44 -0600 Subject: [mapserver-users] hyper-threading and performance In-Reply-To: <4B70744E.8090904@squeakycode.net> References: <3D56274B4A7874468F58FADDBFD098010894509D@llmhs02.r8nssis.local> <4B70744E.8090904@squeakycode.net> Message-ID: <3D56274B4A7874468F58FADDBFD09801089450DD@llmhs02.r8nssis.local> Andy, To be more specific: I am using GeoMoose. GeoMoose draws each layer separately so we do benefit by having a multi-core processor even if there is only one user. We also are using a WMS Service so air photos is for the most part a non issue. If my understanding is correct hyper-threading has up to a 20 percent increase in speed. However, the performance increase is highly application specific and in some cases performance may actually be lower with Hyper-Threading enabled. Mark Volz GIS Specialist Lyon County, MN -----Original Message----- From: Andy Colson [mailto:andy at squeakycode.net] Sent: Monday, February 08, 2010 2:30 PM To: Mark Volz Cc: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] hyper-threading and performance On 2/8/2010 2:20 PM, Mark Volz wrote: > Hello, > > Does anyone know if the performance of Mapserver is increased if > hyper-threading is enabled? If so how much? > > Mark Volz > > GIS Specialist > > Lyon County, MN > Hey Mark, What sort of usage are we talking? Web hosting? Shapefiles and arials? I'm not sure if mapserver itself will use mult-threads, but if you have multiple requests comming into a website, apache/cgi/mapserver/etc will use multi process/threads/etc. Its tough to say the performance increase. I'm host several maps on a dual-core box, and the cpu's sit around 2 percent. And with lots of arial imagery you might hit disk io limit before you hit cpu limit. (However, I have had some mrsid files that were really cpu intensive to uncompress, they were cpu bound). Are your cpu's even pegged? So, I guess, the answer is, it really depends on a lot of different variables. -Andy From andy at squeakycode.net Mon Feb 8 13:03:38 2010 From: andy at squeakycode.net (Andy Colson) Date: Mon, 08 Feb 2010 15:03:38 -0600 Subject: [mapserver-users] hyper-threading and performance In-Reply-To: <3D56274B4A7874468F58FADDBFD09801089450DD@llmhs02.r8nssis.local> References: <3D56274B4A7874468F58FADDBFD098010894509D@llmhs02.r8nssis.local> <4B70744E.8090904@squeakycode.net> <3D56274B4A7874468F58FADDBFD09801089450DD@llmhs02.r8nssis.local> Message-ID: <4B707C2A.5030808@squeakycode.net> Yeah, I've heard the same thing. If your system is cpu bound then I'd bet the difference between enabled and disabled is minimal (regardless if the difference is faster or slower). 20% either way is not very much. If your not cpu bound, I'd bet you see no difference at all. Of course, these are hugely big guesses. And probably wrong. I dont have any numbers to share. Sorry. -Andy On 2/8/2010 2:48 PM, Mark Volz wrote: > Andy, > > To be more specific: > > I am using GeoMoose. GeoMoose draws each layer separately so we do benefit > by having a multi-core processor even if there is only one user. We also are > using a WMS Service so air photos is for the most part a non issue. If my > understanding is correct hyper-threading has up to a 20 percent increase in > speed. However, the performance increase is highly application specific and > in some cases performance may actually be lower with Hyper-Threading enabled. > > > Mark Volz > GIS Specialist > Lyon County, MN > > -----Original Message----- > From: Andy Colson [mailto:andy at squeakycode.net] > Sent: Monday, February 08, 2010 2:30 PM > To: Mark Volz > Cc: mapserver-users at lists.osgeo.org > Subject: Re: [mapserver-users] hyper-threading and performance > > On 2/8/2010 2:20 PM, Mark Volz wrote: >> Hello, >> >> Does anyone know if the performance of Mapserver is increased if >> hyper-threading is enabled? If so how much? >> >> Mark Volz >> >> GIS Specialist >> >> Lyon County, MN >> > > Hey Mark, > > What sort of usage are we talking? Web hosting? Shapefiles and arials? > I'm not sure if mapserver itself will use mult-threads, but if you > have multiple requests comming into a website, apache/cgi/mapserver/etc > will use multi process/threads/etc. > > Its tough to say the performance increase. I'm host several maps on a > dual-core box, and the cpu's sit around 2 percent. And with lots of > arial imagery you might hit disk io limit before you hit cpu limit. > (However, I have had some mrsid files that were really cpu intensive to > uncompress, they were cpu bound). Are your cpu's even pegged? > > So, I guess, the answer is, it really depends on a lot of different > variables. > > > -Andy From Steve.Lime at state.mn.us Mon Feb 8 13:11:41 2010 From: Steve.Lime at state.mn.us (Lime, Steve D (DNR)) Date: Mon, 8 Feb 2010 15:11:41 -0600 Subject: [mapserver-users] php mapscript loadQuery problem In-Reply-To: <83E36BCA-7657-4964-BCEF-D399A19CEE93@nd.gov> References: <83E36BCA-7657-4964-BCEF-D399A19CEE93@nd.gov> Message-ID: The way loadQuery works is like so: 1) Load the queryfile into an internal queryObj 2) Execute the query defined by the queryObj If an error occurs at step 1 you'll get a load error of some sort. If at 2 it is deeper inside one of the query methods. I'm not a PHP user but in Perl you can access the msGetErrorString() function like so: print mapscript::msGetErrorString("\n"); This will print the entire error stack one per line. PHP-MapScript must have something similar. We need to know if the problem is parsing the query file or if it's running the query itself. Steve From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Moen, Paul T. Sent: Monday, February 08, 2010 12:51 PM To: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] php mapscript loadQuery problem The query file parser will throw a detailed error message if it has a parsing problem. Where would I look for the errors that the query file parser throws? I don't see any in the error_log for apache, which is where all my php errors are logged. Does that mean that the parser is having no problems parsing the file, but something else goes awry? I added some information hoping it may help. This is my command from php $test = $map->saveQuery("/tmp/testfile.txt"); error_log($test." ".MS_SUCCESS); The output from the error_log line above is Testing save query: 0 0 I then try to load the query file with the following commands. $test = $map->loadQuery("/tmp/testfile.txt"); error_log("Testing load = ".$test." - ".MS_SUCCESS); The output from the error_log line above is Testing load = 1 - 0 Thanks, Paul On Feb 1, 2010, at 3:55 PM, Lime, Steve D (DNR) wrote: I'll send you more details when I get time tonite (I hope) and can test things. I've been using 5.6 save/load query functions a ton via the CGI but not PHP. I tested a bunch with Perl MapScript and will have to check those methods against what PHP is doing. Here's what the lines mean: Line - Contents 0 - magic string 1 - mode, type (single or multiple), qlayer, slayer 2 - point x, point y, buffer, max results (queryByPoint) 3 - query rect (minx, miny, maxx, maxy) (queryByRect) 4 - shp index, tile index, clear cache flag (queryByIndex) 5 - qitem or NULL (queryByAttribute) 6 - qstring or NULL 7 - operator (used by WFS) 8+ - query shape (queryByShape) Basically each line or so after the first couple match a MapServer query method and it's parameters. The file contents look fine to me. The query file parser will throw a detailed error message if it has a parsing problem. Steve From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Moen, Paul T. Sent: Monday, February 01, 2010 2:42 PM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] php mapscript loadQuery problem I have not been able to get loadQuery to work. The saveQuery command creates the file and returns MS_SUCCESS. When I try to load the file using loadQuery, it always returns MS_FAILURE. I get no other errors. The permissions are good. Is there a way to enable more verbose error logging to find out what is going on? Is there any documentation on what should be in the saved file? The following is the text from one of the saved query files. MapServer Query - Generated by msSaveQuery() 1 2 83 -1 -1 -1 0 0 2183769.22727273 944435.909090909 2331977.40909091 1066349.09090909 -1 -1 1 NULL NULL -1 0 This is my version. MapServer version 5.6.1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=SWF OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=CAIRO SUPPORTS=FREETYPE SUPPORTS=ICONV SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=SOS_SERVER SUPPORTS=GEOS INPUT=EPPL7 INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE Thanks, Paul -------------- next part -------------- An HTML attachment was scrubbed... URL: From cp_n18 at yahoo.com Mon Feb 8 14:34:52 2010 From: cp_n18 at yahoo.com (Jon Miner) Date: Mon, 8 Feb 2010 14:34:52 -0800 (PST) Subject: [mapserver-users] INSIDE Idaho Message-ID: <895090.90388.qm@web111406.mail.gq1.yahoo.com> Anybody familiar with the projections used by INSIDE Idaho? http://inside.uidaho.edu/default.htm I can get the GeoTIFF rendered using this PROJECTION: EXTENT 590767.311 267177.559 601059.798 281203.236 PROJECTION "proj=tmerc" "lat_0=42" "lon_0=-114" "k=0.9996" "x_0=2500000" "y_0=1200000" "ellps=GRS80" "units=m" "no_defs" END but no luck getting the vector stuff to render. - Jon From emontana at igosoftware.es Tue Feb 9 02:00:23 2010 From: emontana at igosoftware.es (=?ISO-8859-1?Q?Eduardo_de_la_Monta=F1a?=) Date: Tue, 09 Feb 2010 11:00:23 +0100 Subject: [mapserver-users] Refresh changes on map Message-ID: <4B713237.2060803@igosoftware.es> Hi, I'm using mapserver with a layer stored on a data base with a lot of points, which I updated with other application. I would like that Mapserver draw this points depending on an atribute "visible". Can Mapserver update the layer on the next wms request with the points updated? How I should set up my mapfile to do this? Thanks in advance, -------------- next part -------------- A non-text attachment was scrubbed... Name: emontana.vcf Type: text/x-vcard Size: 433 bytes Desc: not available URL: From cp_n18 at yahoo.com Tue Feb 9 03:47:51 2010 From: cp_n18 at yahoo.com (Jon Miner) Date: Tue, 9 Feb 2010 03:47:51 -0800 (PST) Subject: [mapserver-users] INSIDE Idaho Message-ID: <791463.650.qm@web111412.mail.gq1.yahoo.com> Bringing this back onto the mailing list.... Re: [mapserver-users] INSIDE Idaho... From: "greg.luker at scu.edu.au" ...Add to Contacts To: Jon Miner ______________________________ Hi Jon, I'm very much NOT a mapserver expert (a beginner in fact), but one thing I noticed (it might mean nothing) is: UNIT["Degree",0.0174532925199433]] I realise that ogr is saying this, but I thought UTM projection unit is metre not degree, and I'm guessing that number (0.0174532925199433) is how many degrees in a metre at that latitude. Also the gdalinfo is listing the origin and pixel size in metres. One thing you could do is just put one layer in a mapfile and set the mapfile projection to NAD83 (or whatever the epsg code is for that) to see if you can actually see the data at all, and then project it into what you need, using "metres" (or maybe "meters") as the unit, somehow. Sorry I can't help more, but maybe this might point you in a useful direction. Thanks, Greg. ----- Forwarded Message ---- From: Jon Miner To: gluker at scu.edu.au Sent: Mon, February 8, 2010 8:16:22 PM Subject: Re: [mapserver-users] INSIDE Idaho Hi Greg - I've looked at the parameters... Here is the DRG file: http://data.insideidaho.org/data2/24k/usgs/drg/idtm/quad/nocollar/archive/43112/cirbu3se_24k_usgs_drg.tgz So I extract that file and then run gdalinfo on the tif file: gdalinfo cirbu3se_24k_usgs_drg.tif Driver: GTiff/GeoTIFF Files: cirbu3se_24k_usgs_drg.tif Size is 4221, 5752 Coordinate System is `' Origin = (590767.311137848766521,281203.236009103886317) Pixel Size = (2.438400000000000,-2.438400000000000) Metadata: TIFFTAG_SOFTWARE=Arc/Info TIFFTAG_XRESOLUTION=0.41 TIFFTAG_YRESOLUTION=0.41 TIFFTAG_RESOLUTIONUNIT=1 (unitless) Image Structure Metadata: COMPRESSION=PACKBITS INTERLEAVE=BAND Corner Coordinates: Upper Left ( 590767.311, 281203.236) Lower Left ( 590767.311, 267177.559) Upper Right ( 601059.798, 281203.236) Lower Right ( 601059.798, 267177.559) Center ( 595913.554, 274190.398) ...etc... Note the blank "coordinate system" entry... Using values from http://spatialreference.org, I came up with the PROJECTION values in my map file, which seems to work, since mapserver renders the DRG. So far so good... Next I download some vector data: http://data.insideidaho.org/data/USCB/TIGER2000/archive/butte/roadsl_butte_uscb.tgz and extract it, then check it with ogrinfo: $ ogrinfo roadsl_butte_uscb.shp roadsl_butte_uscb -so INFO: Open of `roadsl_butte_uscb.shp' using driver `ESRI Shapefile' successful. Layer name: roadsl_butte_uscb Geometry: Line String Feature Count: 2596 Extent: (-113.641719, 43.284631) - (-112.694959, 44.233133) Layer SRS WKT: GEOGCS["GCS_North_American_1983", DATUM["North_American_Datum_1983", SPHEROID["GRS_1980",6378137.0,298.257222101]], PRIMEM["Greenwich",0.0], UNIT["Degree",0.0174532925199433]] ..etc.. If I'm not mistaken, I need to translate this to match the projection of the DRG file... I've been doing this with ogr2ogr: ogr2ogr -t_srs idtm83.wkt -f "ESRI Shapefile" temp roadsl_butte_uscb.shp where the idtm83.wkt contains: PROJCS["NAD_1983_Transverse_Mercator", GEOGCS["GCS_North_American_1983", DATUM["D_North_American_1983", SPHEROID["GRS_1980",6378137.0,298.257222101]], PRIMEM["Greenwich",0.0], UNIT["Degree",0.0174532925199433]], PROJECTION["Transverse_Mercator"], PARAMETER["False_Easting",2500000.0], PARAMETER["False_Northing",1200000.0], PARAMETER["Central_Meridian",-114.0], PARAMETER["Scale_Factor",0.9996], PARAMETER["Latitude_Of_Origin",42.0], UNIT["Meter",1.0]] ogrinfo on the new file reports: Layer name: roadsl_butte_uscb Geometry: Line String Feature Count: 2596 Extent: (2528908.642544, 1342938.885743) - (2605077.684651, 1448186.034775) Layer SRS WKT: PROJCS["NAD_1983_Transverse_Mercator", GEOGCS["GCS_North_American_1983", DATUM["North_American_Datum_1983", SPHEROID["GRS_1980",6378137.0,298.257222101]], PRIMEM["Greenwich",0.0], UNIT["Degree",0.017453292519943295]], PROJECTION["Transverse_Mercator"], PARAMETER["False_Easting",2500000.0], PARAMETER["False_Northing",1200000.0], PARAMETER["Central_Meridian",-114.0], PARAMETER["Scale_Factor",0.9996], PARAMETER["Latitude_Of_Origin",42.0], UNIT["Meter",1.0]] To me (as a programmer, not a map guru) everything seems to match up... Can you spot something that is not right? Thanks - Jon ________________________________ From: "greg.luker at scu.edu.au" To: Jon Miner Sent: Mon, February 8, 2010 5:50:47 PM Subject: Re: [mapserver-users] INSIDE Idaho Hi John, According to this page: http://inside.uidaho.edu/tutorial/data/data.htm all INSIDE data: "are available in Idaho Transverse Mercator (IDTM) projection. Additionally, some data are available in Universal Transverse Mercator (UTM) projection." (UTM zone 11 or zone 12). Parameters are here: http://inside.uidaho.edu/geodata/projparam.htm Is this any help? Thanks, Greg. Greg Luker GIS Lab Manager Southern Cross University 61 2 66203026 From damarmo at gmail.com Tue Feb 9 05:48:15 2010 From: damarmo at gmail.com (David Martinez Morata) Date: Tue, 9 Feb 2010 09:18:15 -0430 Subject: [mapserver-users] Re: [MS4W-Users] Adding a SLD for a WMS Service In-Reply-To: <4B70CAE4.8060506@gatewaygeomatics.com> References: <9771eb541002081107o41cdb051t863a1608b7988843@mail.gmail.com> <4B70CAE4.8060506@gatewaygeomatics.com> Message-ID: <9771eb541002090548s71261110ocfcb381bbb7314b3@mail.gmail.com> Thanks. I try to appli a SLD with diferent calses but , I have and SLD error: Tue Feb 09 09:01:55 2010].152000 : WMS server error. Invalid SLD document : HIDROGRAFIA_GEO_REGVEN_25MIL.shp I need to define my classes in the CLASS tag of the layer in the mapfile? 2010/2/8 Jeff McKenna > David Martinez Morata wrote: > > Hello. > > > > I have a map file to Serve some layers, and I need to link some layers > > with a sld files. > > I read the SLD documentation in the MApserver web site, but i don't > > reali understud what I'm doing: > > > > 1 I put in my layer defifnition > > > > SLD "Path/to/my/sld/file.sld" > > > > I try with metadatas > > > > "wms_sld_url" "Path/to/my/sld/file.sld" > > "wms_sld_body" "AUTO" > > *"ows_sld_enabled"* "true" > > > > But didn't works > > > > I modifie my sld (gvsig generated) file deleting the tags that are not > > compatible with mapserver and I don't know what to do with... > > > > Any Help? > > I don't have any other advice other than to follow the advice in the SLD > document (http://www.mapserver.org/ogc/sld.html#client-side-support). > It sounds like you have a local SLD file, so you should read the > instructions there for using the "wms_sld_body" metadata parameter in > your WMS Client layer (I believe the contents of that metadata is not a > path, but all of the text in the sld document...in any case it is > described more in the SLD document for your reference). > > -jeff > > > -- > Jeff McKenna > MapServer Consulting and Training Services > http://www.gatewaygeomatics.com/ > > > _______________________________________________ > MS4W-Users mailing list > MS4W-Users at lists.maptools.org > http://lists.maptools.org/mailman/listinfo/ms4w-users > -- Martinez Morata David Thinking GIS -------------- next part -------------- An HTML attachment was scrubbed... URL: From dmorissette at mapgears.com Tue Feb 9 05:51:43 2010 From: dmorissette at mapgears.com (Daniel Morissette) Date: Tue, 09 Feb 2010 08:51:43 -0500 Subject: [mapserver-users] php mapscript loadQuery problem In-Reply-To: References: <83E36BCA-7657-4964-BCEF-D399A19CEE93@nd.gov> Message-ID: <4B71686F.5080003@mapgears.com> Lime, Steve D (DNR) wrote: > > This will print the entire error stack one per line. PHP-MapScript must > have something similar. We need to know if the problem is parsing the > query file or if it?s running the query itself. > There is an example showing how to dump the error stack in PHP MapScript at http://mapserver.org/mapscript/php/index.html#errorobj-class Daniel -- Daniel Morissette http://www.mapgears.com/ From cp_n18 at yahoo.com Tue Feb 9 06:44:10 2010 From: cp_n18 at yahoo.com (Jon Miner) Date: Tue, 9 Feb 2010 06:44:10 -0800 (PST) Subject: [mapserver-users] INSIDE Idaho In-Reply-To: <791463.650.qm@web111412.mail.gq1.yahoo.com> References: <791463.650.qm@web111412.mail.gq1.yahoo.com> Message-ID: <601785.27107.qm@web111415.mail.gq1.yahoo.com> Small progress this morning; The extent numbers on my vector data seemed way off, so I switched to IDTM27, which uses easting=500000 and northing=100000, and the results were much closer. There is a visible difference on the mapserver output... all the vector data is rendered "just a bit" west of the matching DRG data. Close enough for now. Contents of my modified idtm83.wtk: PROJCS["NAD_1983_Transverse_Mercator", GEOGCS["GCS_North_American_1983", DATUM["D_North_American_1983", 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",100000.0], PARAMETER["Central_Meridian",-114.0], PARAMETER["Scale_Factor",0.9996], PARAMETER["Latitude_Of_Origin",42.0], UNIT["Meter",1.0]] ----- Original Message ---- From: Jon Miner To: mapserver-users at lists.osgeo.org Sent: Tue, February 9, 2010 6:47:51 AM Subject: Re: [mapserver-users] INSIDE Idaho Bringing this back onto the mailing list.... Re: [mapserver-users] INSIDE Idaho... From: "greg.luker at scu.edu.au" ...Add to Contacts To: Jon Miner ______________________________ Hi Jon, I'm very much NOT a mapserver expert (a beginner in fact), but one thing I noticed (it might mean nothing) is: UNIT["Degree",0.0174532925199433]] I realise that ogr is saying this, but I thought UTM projection unit is metre not degree, and I'm guessing that number (0.0174532925199433) is how many degrees in a metre at that latitude. Also the gdalinfo is listing the origin and pixel size in metres. One thing you could do is just put one layer in a mapfile and set the mapfile projection to NAD83 (or whatever the epsg code is for that) to see if you can actually see the data at all, and then project it into what you need, using "metres" (or maybe "meters") as the unit, somehow. Sorry I can't help more, but maybe this might point you in a useful direction. Thanks, Greg. ----- Forwarded Message ---- From: Jon Miner To: gluker at scu.edu.au Sent: Mon, February 8, 2010 8:16:22 PM Subject: Re: [mapserver-users] INSIDE Idaho Hi Greg - I've looked at the parameters... Here is the DRG file: http://data.insideidaho.org/data2/24k/usgs/drg/idtm/quad/nocollar/archive/43112/cirbu3se_24k_usgs_drg.tgz So I extract that file and then run gdalinfo on the tif file: gdalinfo cirbu3se_24k_usgs_drg.tif Driver: GTiff/GeoTIFF Files: cirbu3se_24k_usgs_drg.tif Size is 4221, 5752 Coordinate System is `' Origin = (590767.311137848766521,281203.236009103886317) Pixel Size = (2.438400000000000,-2.438400000000000) Metadata: TIFFTAG_SOFTWARE=Arc/Info TIFFTAG_XRESOLUTION=0.41 TIFFTAG_YRESOLUTION=0.41 TIFFTAG_RESOLUTIONUNIT=1 (unitless) Image Structure Metadata: COMPRESSION=PACKBITS INTERLEAVE=BAND Corner Coordinates: Upper Left ( 590767.311, 281203.236) Lower Left ( 590767.311, 267177.559) Upper Right ( 601059.798, 281203.236) Lower Right ( 601059.798, 267177.559) Center ( 595913.554, 274190.398) ...etc... Note the blank "coordinate system" entry... Using values from http://spatialreference.org, I came up with the PROJECTION values in my map file, which seems to work, since mapserver renders the DRG. So far so good... Next I download some vector data: http://data.insideidaho.org/data/USCB/TIGER2000/archive/butte/roadsl_butte_uscb.tgz and extract it, then check it with ogrinfo: $ ogrinfo roadsl_butte_uscb.shp roadsl_butte_uscb -so INFO: Open of `roadsl_butte_uscb.shp' using driver `ESRI Shapefile' successful. Layer name: roadsl_butte_uscb Geometry: Line String Feature Count: 2596 Extent: (-113.641719, 43.284631) - (-112.694959, 44.233133) Layer SRS WKT: GEOGCS["GCS_North_American_1983", DATUM["North_American_Datum_1983", SPHEROID["GRS_1980",6378137.0,298.257222101]], PRIMEM["Greenwich",0.0], UNIT["Degree",0.0174532925199433]] ..etc.. If I'm not mistaken, I need to translate this to match the projection of the DRG file... I've been doing this with ogr2ogr: ogr2ogr -t_srs idtm83.wkt -f "ESRI Shapefile" temp roadsl_butte_uscb.shp where the idtm83.wkt contains: PROJCS["NAD_1983_Transverse_Mercator", GEOGCS["GCS_North_American_1983", DATUM["D_North_American_1983", SPHEROID["GRS_1980",6378137.0,298.257222101]], PRIMEM["Greenwich",0.0], UNIT["Degree",0.0174532925199433]], PROJECTION["Transverse_Mercator"], PARAMETER["False_Easting",2500000.0], PARAMETER["False_Northing",1200000.0], PARAMETER["Central_Meridian",-114.0], PARAMETER["Scale_Factor",0.9996], PARAMETER["Latitude_Of_Origin",42.0], UNIT["Meter",1.0]] ogrinfo on the new file reports: Layer name: roadsl_butte_uscb Geometry: Line String Feature Count: 2596 Extent: (2528908.642544, 1342938.885743) - (2605077.684651, 1448186.034775) Layer SRS WKT: PROJCS["NAD_1983_Transverse_Mercator", GEOGCS["GCS_North_American_1983", DATUM["North_American_Datum_1983", SPHEROID["GRS_1980",6378137.0,298.257222101]], PRIMEM["Greenwich",0.0], UNIT["Degree",0.017453292519943295]], PROJECTION["Transverse_Mercator"], PARAMETER["False_Easting",2500000.0], PARAMETER["False_Northing",1200000.0], PARAMETER["Central_Meridian",-114.0], PARAMETER["Scale_Factor",0.9996], PARAMETER["Latitude_Of_Origin",42.0], UNIT["Meter",1.0]] To me (as a programmer, not a map guru) everything seems to match up... Can you spot something that is not right? Thanks - Jon ________________________________ From: "greg.luker at scu.edu.au" To: Jon Miner Sent: Mon, February 8, 2010 5:50:47 PM Subject: Re: [mapserver-users] INSIDE Idaho Hi John, According to this page: http://inside.uidaho.edu/tutorial/data/data.htm all INSIDE data: "are available in Idaho Transverse Mercator (IDTM) projection. Additionally, some data are available in Universal Transverse Mercator (UTM) projection." (UTM zone 11 or zone 12). Parameters are here: http://inside.uidaho.edu/geodata/projparam.htm Is this any help? Thanks, Greg. Greg Luker GIS Lab Manager Southern Cross University 61 2 66203026 _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From pmoen at nd.gov Tue Feb 9 06:49:36 2010 From: pmoen at nd.gov (Moen, Paul T.) Date: Tue, 9 Feb 2010 08:49:36 -0600 Subject: [mapserver-users] php mapscript loadQuery problem In-Reply-To: <4B71686F.5080003@mapgears.com> References: <83E36BCA-7657-4964-BCEF-D399A19CEE93@nd.gov> <4B71686F.5080003@mapgears.com> Message-ID: <2740BB07-F47E-47C2-88EE-02185E85BF84@nd.gov> This is the error I get when dumping the error stack as described below. Error in msEvalRegex(): String failed expression test. On Feb 9, 2010, at 7:51 AM, Daniel Morissette wrote: Lime, Steve D (DNR) wrote: > > This will print the entire error stack one per line. PHP-MapScript must > have something similar. We need to know if the problem is parsing the > query file or if it?s running the query itself. > There is an example showing how to dump the error stack in PHP MapScript at http://mapserver.org/mapscript/php/index.html#errorobj-class Daniel -- Daniel Morissette http://www.mapgears.com/ _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From charlton at 2creek.com Tue Feb 9 06:44:38 2010 From: charlton at 2creek.com (Charlton Galvarino) Date: Tue, 9 Feb 2010 09:44:38 -0500 Subject: [mapserver-users] WMS BBOX tolerance out of this world? Message-ID: <97FDCEA6D905154D94E20D02312C8A310D0D4B77BC@mse18be1.mse18.exchange.ms> Hi, all. I'm hoping that someone knows this answer off the top of their head so I won't have to sort through mountains of OGC specs. That's the lazy developer in me. Let's say we're dealing w/ epsg 4326. We as humans (some mostly human) know that this generally means -180,-90,180,90. Or perhaps sometimes 0,-90,360,90. My question is, does the WMS server need to support queries outside of these bounds? E.g. for a dataset advertised as 4326 w/ bounds -180,-90,180,90, if the user requests -198,-99,198,99, should the user get the 'data' image surrounded by white space or get an error that says 'sorry, that was something I don't understand'? A GetCaps can advertise the BBOX for the site and each layer, but I'm still asking about these exceptional cases. I dug around and found that both ESRI and MapServer WMS servers support these queries just fine. But are they being nice, or does the WMS spec say that these are valid queries and that the servers should support them? Many TIA, Charlton Examples of ESRI & MapServer queries. Apologies if the URL's get chopped up in listserv land. ESRI world http://toposervices.cr.usgs.gov/wmsconnector/com.esri.wms.Esrimap/USGS_EDNA_geo?LAYERS=Counties&FORMAT=image%2Fpng&TRANSPARENT=true&VERSION=1.1.1&SERVICE=WMS&REQUEST=GetMap&STYLES=&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&SRS=EPSG%3A4326&BBOX=-180,-90,108,90&WIDTH=360&HEIGHT=180 ESRI world + 10% in all directions http://toposervices.cr.usgs.gov/wmsconnector/com.esri.wms.Esrimap/USGS_EDNA_geo?LAYERS=Counties&FORMAT=image%2Fpng&TRANSPARENT=true&VERSION=1.1.1&SERVICE=WMS&REQUEST=GetMap&STYLES=&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&SRS=EPSG%3A4326&BBOX=-198,-99,198,99&WIDTH=360&HEIGHT=180 MapServer world http://disc1.sci.gsfc.nasa.gov/daac-bin/wms_airs?LAYERS=AIRX3STD_SURFPRES_D&FORMAT=image%2Fpng&TRANSPARENT=true&VERSION=1.1.1&SERVICE=WMS&REQUEST=GetMap&STYLES=&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&SRS=EPSG%3A4326&BBOX=-180,-90,108,90&WIDTH=360&HEIGHT=180 MapServer world + 10% in all directions http://disc1.sci.gsfc.nasa.gov/daac-bin/wms_airs?LAYERS=AIRX3STD_SURFPRES_D&FORMAT=image%2Fpng&TRANSPARENT=true&VERSION=1.1.1&SERVICE=WMS&REQUEST=GetMap&STYLES=&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&SRS=EPSG%3A4326&BBOX=-198,-99,198,99&WIDTH=360&HEIGHT=180 Charlton Galvarino 1 (803) 233-6205 : voice 1 (803) 223-9579 : fax charlton at 2creek.com P.O. Box 50960 Columbia, SC 29250 From andy at squeakycode.net Tue Feb 9 07:14:03 2010 From: andy at squeakycode.net (Andy Colson) Date: Tue, 09 Feb 2010 09:14:03 -0600 Subject: [mapserver-users] many raster projections In-Reply-To: References: <4B7037AA.2020901@squeakycode.net> <4B70446C.5030505@squeakycode.net> <4B704A43.5030509@squeakycode.net> Message-ID: <4B717BBB.4070801@squeakycode.net> On 2/8/2010 1:31 PM, Fawcett, David (MPCA) wrote: > Andy, > > Assuming that MapServer can find the data, the main reason that you > wouldn't see any data for the layer is that it doesn't fall within > the output extent bbox. (To rule out any data issues, you could > create a second map file with no projection info and only your 07 > layer. Run gdalinfo against the 07 data and use the bbox info to set > your map file extent) > > What do you see if you run the gdalinfo utility against the data (or > one of your tiles) from raster07? the gdalinfo is impressively long, here is the parts that I think are important: Size is 48980, 49445 Coordinate System is: PROJCS["NAD83 / UTM zone 15N", GEOGCS["NAD83", DATUM["North_American_Datum_1983", SPHEROID["GRS 1980",6378137,298.2572221010002, AUTHORITY["EPSG","7019"]], AUTHORITY["EPSG","6269"]], PRIMEM["Greenwich",0], UNIT["degree",0.0174532925199433], AUTHORITY["EPSG","4269"]], PROJECTION["Transverse_Mercator"], PARAMETER["latitude_of_origin",0], PARAMETER["central_meridian",-93], PARAMETER["scale_factor",0.9996], PARAMETER["false_easting",500000], PARAMETER["false_northing",0], UNIT["metre",1, AUTHORITY["EPSG","9001"]], AUTHORITY["EPSG","26915"]] Origin = (429904.000000000000000,4428374.000000000000000) Image Structure Metadata: INTERLEAVE=PIXEL Corner Coordinates: Upper Left ( 429904.000, 4428374.000) ( 93d49'16.36"W, 40d 0'9.53"N) Lower Left ( 429904.000, 4378929.000) ( 93d48'57.36"W, 39d33'25.87"N) Upper Right ( 478884.000, 4428374.000) ( 93d14'50.62"W, 40d 0'19.05"N) Lower Right ( 478884.000, 4378929.000) ( 93d14'44.90"W, 39d33'35.25"N) Center ( 454394.000, 4403651.500) ( 93d31'57.31"W, 39d46'53.71"N) my mapfile has: MAP EXTENT 1285920 1377857 1426390 1506589 so, yeah, the origin is not within the bbox. On an image that works, it has: Origin = (1329809.953999999910593,1463071.948000000091270) which looks to be within the bbox. So how do I get the arial moved? Why didnt putting the projection in the raster layer (or running gdal_translate or gdal_warp) move it into the right bbox? > Does the spatial reference system > match what you thought that it was? Huh? Does "spatial reference system" == "projection" == "Coordinate System"? I dont know... > > It looks like the definition for your output projection does match > epsg:2816. http://spatialreference.org/ref/epsg/2816/ > > If you look at the extent that you are setting in your map file (in > coordinates of epsg:2816), you aren't covering the southern part of > the zone. Did you base your extent on the entire area that you need > to cover? I got the bounds from a shapefile, its the largest one and covers everything I want to display. See the ogrinfo below. > > Also, you have UNITS set to feet, but your output projection has > '+units=m'. I would set units to METERS. Well crap. ogrinfo -so countyBoundary.shp countyBoundary INFO: Open of `countyBoundary.shp' using driver `ESRI Shapefile' successful. Layer name: countyBoundary Geometry: Polygon Feature Count: 1 Extent: (1285920.182293, 1377857.531376) - (1426390.260458, 1506589.406771) Layer SRS WKT: PROJCS["NAD_1983_StatePlane_Missouri_Central_FIPS_2402_Feet", GEOGCS["GCS_North_American_1983", DATUM["North_American_Datum_1983", SPHEROID["GRS_1980",6378137.0,298.257222101]], PRIMEM["Greenwich",0.0], UNIT["Degree",0.0174532925199433]], PROJECTION["Transverse_Mercator"], PARAMETER["False_Easting",1640416.666666667], PARAMETER["False_Northing",0.0], PARAMETER["Central_Meridian",-92.5], PARAMETER["Scale_Factor",0.9999333333333333], PARAMETER["Latitude_Of_Origin",35.83333333333334], UNIT["Foot_US",0.3048006096012192]] NAME: String (50.0) SHAPE_Leng: Real (19.11) SHAPE_Area: Real (19.11) That means its in feet, right? Both my mapfile and OpenLayers are using: +proj=tmerc +lat_0=35.83333333333334 +lon_0=-92.5 +k=0.999933333 +x_0=500000 +y_0=0 +ellps=GRS80 +units=m +no_defs Does that mean mapserver is reprojecting to meters... thats probably why OpenLayers can show it, right? The output of mapserver is meters and OpenLayers is expecting meters. So that's not really bad, right? But if I reproject the shapefiles it'll save me some cpu time, yes? Would this affect the arials? Thank you very much with the help on this. -Andy From David.Fawcett at state.mn.us Tue Feb 9 07:21:40 2010 From: David.Fawcett at state.mn.us (Fawcett, David (MPCA)) Date: Tue, 9 Feb 2010 09:21:40 -0600 Subject: [mapserver-users] Refresh changes on map In-Reply-To: <4B713237.2060803@igosoftware.es> References: <4B713237.2060803@igosoftware.es> Message-ID: Eduardo, Yes, this is possible. Every request to MapServer is made against the latest version of your data. To draw only points with a value of 'yes' in the column named 'visible': - add a layer to your map file that connects to your data source. - add a class to the layer - add a style to your layer that defines how the points will be symbolized - Now, test the map file at this point to see if your data works correctly. You can do this by using the shp2img utility that comes with MapServer or even easier, make a URL request to MapServer using mode=map. - once the layer works, add an filter to your layer. The syntax may vary based on the database that you are using, but it should be something like FILTER "visible = 'yes'". I think that the simplest strategy for you is to: - get the layer working as a simple CGI MapServer call. - then apply your expression to limit the points to only the ones that you want - finally, modify your map file to server the layer as a WMS David. -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Eduardo de la Monta?a Sent: Tuesday, February 09, 2010 4:00 AM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] Refresh changes on map Hi, I'm using mapserver with a layer stored on a data base with a lot of points, which I updated with other application. I would like that Mapserver draw this points depending on an atribute "visible". Can Mapserver update the layer on the next wms request with the points updated? How I should set up my mapfile to do this? Thanks in advance, From charlton at 2creek.com Tue Feb 9 07:25:53 2010 From: charlton at 2creek.com (Charlton Galvarino) Date: Tue, 9 Feb 2010 10:25:53 -0500 Subject: [mapserver-users] RE: WMS BBOX tolerance out of this world? In-Reply-To: <97FDCEA6D905154D94E20D02312C8A310D0D4B77BC@mse18be1.mse18.exchange.ms> References: <97FDCEA6D905154D94E20D02312C8A310D0D4B77BC@mse18be1.mse18.exchange.ms> Message-ID: <97FDCEA6D905154D94E20D02312C8A310D0D4B7803@mse18be1.mse18.exchange.ms> > My question is, does the WMS server need to support queries outside of > these bounds? E.g. for a dataset advertised as 4326 w/ bounds -180,- According to the 1.1.1 spec . . . ======== If a request contains a Bounding Box whose area does not overlap at all with the BoundingBox advertised in the Capabilities XML for the requested geodata object, the server should return empty content (e.g., a blank map, empty coverage file, null feature set) for that element. Any elements that are partly or entirely contained in the Bounding Box should be returned in the appropriate format. If the Bounding Box values are not defined for the given SRS (e.g., latitudes greater than 90 degrees in EPSG:4326), the server should return empty content for areas outside the valid range of the SRS. ======== Well, it sounds pretty clear then. Return the data for the area that is defined. Right? From dmorissette at mapgears.com Tue Feb 9 07:30:39 2010 From: dmorissette at mapgears.com (Daniel Morissette) Date: Tue, 09 Feb 2010 10:30:39 -0500 Subject: [mapserver-users] WMS BBOX tolerance out of this world? In-Reply-To: <97FDCEA6D905154D94E20D02312C8A310D0D4B77BC@mse18be1.mse18.exchange.ms> References: <97FDCEA6D905154D94E20D02312C8A310D0D4B77BC@mse18be1.mse18.exchange.ms> Message-ID: <4B717F9F.3010801@mapgears.com> Charlton Galvarino wrote: > > My question is, does the WMS server need to support queries outside of these bounds? E.g. for a dataset advertised as 4326 w/ bounds -180,-90,180,90, if the user requests -198,-99,198,99, should the user get the 'data' image surrounded by white space or get an error that says 'sorry, that was something I don't understand'? A GetCaps can advertise the BBOX for the site and each layer, but I'm still asking about these exceptional cases. > > I dug around and found that both ESRI and MapServer WMS servers support these queries just fine. But are they being nice, or does the WMS spec say that these are valid queries and that the servers should support them? > My interpretation of the spec is that it is okay to return white space and those cases. Here is what WMS 1.1.1 section 6.5.6 says about this: """ If a request contains a Bounding Box whose area does not overlap at all with the BoundingBox advertised in the Capabilities XML for the requested geodata object, the server should return empty content (e.g., a blank map, empty coverage file, null feature set) for that element. Any elements that are partly or entirely contained in the Bounding Box should be returned in the appropriate format. """ Later in the text, they open the door to an (optional) exception to the above rule for maps crossing the date line (+/- 180 degrees longitude), in which case a server could choose to support requests such as lon=120,250 to cover the Pacific Ocean for instance. However I don't think this changes the answer to your question, i.e. it is okay for a client to request maps whose bbox does not fit strictly inside the advertized layer bounds, and in this case the client should expect some white space around the data. Daniel -- Daniel Morissette http://www.mapgears.com/ From dmorissette at mapgears.com Tue Feb 9 07:38:17 2010 From: dmorissette at mapgears.com (Daniel Morissette) Date: Tue, 09 Feb 2010 10:38:17 -0500 Subject: [mapserver-users] php mapscript loadQuery problem In-Reply-To: <2740BB07-F47E-47C2-88EE-02185E85BF84@nd.gov> References: <83E36BCA-7657-4964-BCEF-D399A19CEE93@nd.gov> <4B71686F.5080003@mapgears.com> <2740BB07-F47E-47C2-88EE-02185E85BF84@nd.gov> Message-ID: <4B718169.6090908@mapgears.com> Moen, Paul T. wrote: > This is the error I get when dumping the error stack as described below. > > Error in msEvalRegex(): String failed expression test. > My first guess is that this error message comes from the file extension test on the filename of your query file. Your query file has to have a .qy extension if I'm not mistaken, otherwise MapServer won't open it. This error message should definitely be improved. Daniel -- Daniel Morissette http://www.mapgears.com/ From dmorissette at mapgears.com Tue Feb 9 07:49:15 2010 From: dmorissette at mapgears.com (Daniel Morissette) Date: Tue, 09 Feb 2010 10:49:15 -0500 Subject: [mapserver-users] php mapscript loadQuery problem In-Reply-To: <4B718169.6090908@mapgears.com> References: <83E36BCA-7657-4964-BCEF-D399A19CEE93@nd.gov> <4B71686F.5080003@mapgears.com> <2740BB07-F47E-47C2-88EE-02185E85BF84@nd.gov> <4B718169.6090908@mapgears.com> Message-ID: <4B7183FB.9000607@mapgears.com> Daniel Morissette wrote: > Moen, Paul T. wrote: >> This is the error I get when dumping the error stack as described below. >> >> Error in msEvalRegex(): String failed expression test. >> > > My first guess is that this error message comes from the file extension > test on the filename of your query file. Your query file has to have a > .qy extension if I'm not mistaken, otherwise MapServer won't open it. > > This error message should definitely be improved. > For the record, I have created a ticket to make sure we don't forget to fix this error message: http://trac.osgeo.org/mapserver/ticket/3302 Daniel -- Daniel Morissette http://www.mapgears.com/ From emontana at igosoftware.es Tue Feb 9 08:29:37 2010 From: emontana at igosoftware.es (=?ISO-8859-1?Q?Eduardo_de_la_Monta=F1a?=) Date: Tue, 09 Feb 2010 17:29:37 +0100 Subject: [mapserver-users] Pixmap problem Message-ID: <4B718D71.6070805@igosoftware.es> Hi, I'm using pixmap (a PNG image) for my layer of points on Mapserver. It works perfectly, but when the point is near of the edge of the tile, the symbol appeared cutted, only part of the symbol is visible. How can I solve this problem? Any suggestion is welcome, Thanks in advance -------------- next part -------------- A non-text attachment was scrubbed... Name: emontana.vcf Type: text/x-vcard Size: 433 bytes Desc: not available URL: From Steve.Lime at state.mn.us Tue Feb 9 09:03:33 2010 From: Steve.Lime at state.mn.us (Lime, Steve D (DNR)) Date: Tue, 9 Feb 2010 11:03:33 -0600 Subject: [mapserver-users] Pixmap problem In-Reply-To: <4B718D71.6070805@igosoftware.es> References: <4B718D71.6070805@igosoftware.es> Message-ID: For point symbols I don't believe you can stop the cropping of the marker. To do so you'd need to probably switch to an annotation layer in which the markers are considered part of a label. Then you can set PARTIALS FALSE in the label object. The downside here is that the label processing will remove overlapping markers which may not be what you want. You can try setting LABELCACHE OFF (layer object) or even FORCE TRUE (label object) to get around that. Here's a sample layer definition (not tested): LAYER NAME 'markers' DATA 'some point shapefile' STATUS DEFAULT TYPE ANNOTATION CLASS STYLE SYMBOL 'marker.png' END LABEL PARIALS FALSE FORCE TRUE END TEXT ' ' # I think you have to draw some text for this to work END END Something to try anyway... Steve -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Eduardo de la Monta?a Sent: Tuesday, February 09, 2010 10:30 AM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] Pixmap problem Hi, I'm using pixmap (a PNG image) for my layer of points on Mapserver. It works perfectly, but when the point is near of the edge of the tile, the symbol appeared cutted, only part of the symbol is visible. How can I solve this problem? Any suggestion is welcome, Thanks in advance From pmoen at nd.gov Tue Feb 9 09:27:55 2010 From: pmoen at nd.gov (Moen, Paul T.) Date: Tue, 9 Feb 2010 11:27:55 -0600 Subject: [mapserver-users] php mapscript loadQuery problem In-Reply-To: <4B7183FB.9000607@mapgears.com> References: <83E36BCA-7657-4964-BCEF-D399A19CEE93@nd.gov> <4B71686F.5080003@mapgears.com> <2740BB07-F47E-47C2-88EE-02185E85BF84@nd.gov> <4B718169.6090908@mapgears.com> <4B7183FB.9000607@mapgears.com> Message-ID: > Daniel Morissette wrote: >> Moen, Paul T. wrote: >> This is the error I get when dumping the error stack as described below. >> >> Error in msEvalRegex(): String failed expression test. >> > > My first guess is that this error message comes from the file extension > test on the filename of your query file. Your query file has to have a > .qy extension if I'm not mistaken, otherwise MapServer won't open it. > Oops, I did not know that. I changed the extension to .qy and the loadQuery gives a MS_SUCCESS. The right items are high lighted now but I get many of the following errors when I dumping the error stack. Error in msEvalExpression(): Cannot evaluate expression, no item index defined. This only seems to happen when there are many classes in the layer. Are these errors expected? Thanks, Paul > This error message should definitely be improved. > > For the record, I have created a ticket to make sure we don't forget to > fix this error message: > > http://trac.osgeo.org/mapserver/ticket/3302 > > Daniel > -- > Daniel Morissette > http://www.mapgears.com/ > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From Steve.Lime at state.mn.us Tue Feb 9 10:32:27 2010 From: Steve.Lime at state.mn.us (Lime, Steve D (DNR)) Date: Tue, 9 Feb 2010 12:32:27 -0600 Subject: [mapserver-dev] RE: [mapserver-users] colorramp and datarangeon the fly? In-Reply-To: <4B6B1429.20407@swoodbridge.com> References: <8CF4F4E7-1CEB-4CAA-8B6C-4FCDD74D03EC@osgis.nl> <4B69A13E.3010708@uva.nl> <4B69A693.8010507@swoodbridge.com> <4B6A82F2.163B.00A8.0@ci.stpaul.mn.us> <4B6B1429.20407@swoodbridge.com> Message-ID: I don't want to see this die. Perhaps we could take thread and either rework RFC 6 (http://mapserver.org/development/rfc/ms-rfc-6.html) which has to do with color ramping or create a new one to supplant it. Any takers? Steve -----Original Message----- From: Stephen Woodbridge [mailto:woodbri at swoodbridge.com] Sent: Thursday, February 04, 2010 12:39 PM To: Lime, Steve D (DNR) Cc: Bob Basques; Jan Hartmann; MapServer Dev Mailing List; mapserver-users at lists.osgeo.org Subject: Re: [mapserver-dev] RE: [mapserver-users] colorramp and datarangeon the fly? To build on what Steve is saying it might help to think of features in mapserver as requiring two separate components: 1) the algorithm 2) the presentation Obviously you can not present something that you do not have. the algorithm is how you generate stuff. Once we have stuff we need to present it via the multitude of rendering modules and interfaces, like the CGI interface or template interface, etc and rendered as text, json, xml, etc. I think adding a STATS object might be a good way to add pluggable algorithms and filters into the layer. A year plus ago, I did some research into thematic cartography and the math and statistics involved in that. Here are some of the data classification methods we might want to support: 1) equal intervals 2) quantiles (quartiles are n=4 quantiles) 3) mean-standard deviation 4) maximum breaks 5) natural breaks 6) optimal You can probably find more on these on wikipedia if you want the math behind them. In addition to the above for choropleths we might want to consider bivariant or multivariant analysis. And there is also a need to apply filters to the data like: 1) eliminate outliers 2) numerous smoothing algorithms that might be appropriate - triangularization - inverse distance - kriging - various interpolation routines that solve various issues with the data 3) probably others You might look on Amazon used books for some reference material on thematic mapping. I got the following: Introduction to Thematic Cartography, by Judith Tyner Thematic Cartography and Visualization, by Terry Slocum Thematic Cartography and Geographic Visualization, by Slocum, McMaster, Kessler and Howard These are all excellent and there are a lot of others. I think the point here is that there is a lot of research that has gone into this field and if we want to build tools that will allow mapserver to work effectively in this area, and I DO think we should do this, then we need to understand the scope of what needs to be done even if it is not all done at once and we need to build a pluggable interface that allows us to easily add stats analysis and apply statistical filters as the need arises. I think for the most part what Steve L has described will meet (I guessing) 80-90% of the requirements that might reasonably thrown at us and the others we can most likely say are too specialized or out of scope. I will also note that for the most part it can be argued that mapserver should NOT do the analysis, that that is the realm of other tools, but given that the analysis has been preformed that mapserver needs to support rendering it. Some of the analysis mentioned above it non-trivial to do on the fly. It is not clear to me where we draw a line in the sand and justify yes this in mapserver, no, that is not in mapserver. Ok, sorry this probably way more than any of you want to know :) -Steve W Lime, Steve D (DNR) wrote: > You're always mixing things up aren't you... > > I don't think you need a special mode. This strikes me as just another > special form of template output based on a query. Presently you can get > layer level query data (e.g. number of results) and of course spatial > and non-spatial attributes for each feature. What's needed here is the > mechanism to gather layer stats (and a definition of what those are) in > either draw or query context and then a means of using or presenting > them. Imaging in a new "stats" tag within a result set like so (within > a resultset tag): > > [stats item="foo" format="$stddev,$min,$max"] > > You could use that to populate XML, JSON or just plain HTML output for > use on the client. This tag would draw from a populated layerStatsObj > which might consist of an array or hash of itemStatsObj's... You could > populate those objects on-the-fly or perhaps even from a file. Would > probably need a new STATS ... END block within a layer to drive this. Just > thinking out loud. > > Steve > > *From:* Bob Basques [mailto:Bob.Basques at ci.stpaul.mn.us] > *Sent:* Thursday, February 04, 2010 8:19 AM > *To:* Lime, Steve D (DNR); Stephen Woodbridge; Jan Hartmann > *Cc:* MapServer Dev Mailing List; mapserver-users at lists.osgeo.org > *Subject:* RE: [mapserver-dev] RE: [mapserver-users] colorramp and > datarangeon the fly? > > > > All, > > > > Just to mix it up a little, what about doing a half and half approach. > MapServer could generate something simpler (the data basics from a data > read on the fly, and return a simple ramping config file, which could be > used to pass back as a file for the custom aspects. > > > > Just having these two options would open up some doors, MapServer > returning a simple ramp structure as a file, could be used in a User > interface to do more complicated theming for example. Once the basic > data limits are known, the ramping divisions are much easier to decide on. > > > > Could this work as a compiled in module for those that need/want it > instead of always in? or would it make more sense to build in, ?? > Something similar to a mode=legend sort of thing, like mode=ramp_txt ?? > > > > bobb > > > > > > >>> "Lime, Steve D (DNR)" wrote: > > At one point I toyed with the idea of supporting a .stats file for a > layer and supplying a routine (command-line) that would populate it. The > file would contain data like you're talking about. Doesn't help with the > on-the-fly needs Bart was articulating. > > Steve > > -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Stephen > Woodbridge > Sent: Wednesday, February 03, 2010 10:39 AM > To: Jan Hartmann > Cc: Lime, Steve D (DNR); MapServer Dev Mailing List; > mapserver-users at lists.osgeo.org > Subject: Re: [mapserver-dev] RE: [mapserver-users] colorramp and > datarange on the fly? > > Right, I think there are two use cases: > > 1) data exploration - can be slower but needs flexibility > 2) production serving - needs to be fast, and probably limits > flexibility to some predefined models > > I think that there is also another angle to this, which is how the > summary data is computed for example: > > 1) min/max/average/std > 2) statistical analysis > 3) binning into some number of classes > 4) removing outliers so the results are not skewed by them > 5) etc > > There are a lot of ways the people might need to summarize they data. > > If the data is in a database, then you can add all the analysis, slicing > and dicing to the database and the rendering to mapserver. > > So, I think that it would be nice to be able to read some "metadata" > about a layer and then use that for building the display using something > like colorramp and datarange. We might want to look at ways that we > could establish in mapserver for fetching the "metadata" about a layer. > For example: > > 1) define the "metadata" in the METADATA object > 2) define a .met file for a shapefile or tileindex that contained the > "metadata" for that layer > 3) define a separate SQL query that could be used to fetch the > "metadata" for the layer > 4) something similar for other layer providers. > 5) scan the data in two passes to compute some simple "metadata" > > Thoughts? > > -Steve W > > > Jan Hartmann wrote: > > If you allow two passes, you can have all sorts of summarized values in > > the template, to be used in the second pass, like Bart's actual extent > > used for coloring. Doesn't look to difficult to implement to me, as long > > as the two passes only get called when really necessary. I'm not sure if > > performance is an issue for MapServer itself: if you really want high > > performance, you should use the underlying format or database directly. > > > > Jan > > > > On 3-2-2010 17:02, Lime, Steve D (DNR) wrote: > >> How big a change would depend on the implementation. The brute force > >> approach where you simply loop through features once to compute ranges > >> and then again to draw would be probably pretty straight forward and > >> driver independent. Wouldn't be fast (but would be simple). Complexity > >> would be added as you try and boost performance by: > >> > >> - allowing drivers to compute stats in their own way (e.g. add to > >> the layer API something like msLayerGetStats(...)) > >> - caching geometries from a first pass through the shapes for the > >> second > >> > >> Steve > >> > >> BTW The color ramp support needs to be cleaned up first. I think we > >> scared the originator of that code away when an RFC was originally put > >> together. > >> > >> -----Original Message----- > >> From: mapserver-users-bounces at lists.osgeo.org > >> [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Bart van > >> den Eijnden > >> Sent: Wednesday, February 03, 2010 5:12 AM > >> To: mapserver-users at lists.osgeo.org > >> Subject: [mapserver-users] colorramp and datarange on the fly? > >> > >> Hi list, > >> > >> is it possible to have a colorramp in Mapserver based on the min and > >> max value in the current extent? > >> > >> So instead of predefining the min and max in DATARANGE, have Mapserver > >> use the min and max value of the dataset in the current extent? > >> > >> If not, would it be an easy change or a very complex one? > >> > >> Best regards, > >> Bart_______________________________________________ > >> mapserver-users mailing list > >> mapserver-users at lists.osgeo.org > >> http://lists.osgeo.org/mailman/listinfo/mapserver-users > >> _______________________________________________ > >> mapserver-dev mailing list > >> mapserver-dev at lists.osgeo.org > >> http://lists.osgeo.org/mailman/listinfo/mapserver-dev > >> > > _______________________________________________ > > mapserver-dev mailing list > > mapserver-dev at lists.osgeo.org > > http://lists.osgeo.org/mailman/listinfo/mapserver-dev > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > _______________________________________________ > mapserver-dev mailing list > mapserver-dev at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-dev > From Steve.Lime at state.mn.us Tue Feb 9 10:57:33 2010 From: Steve.Lime at state.mn.us (Lime, Steve D (DNR)) Date: Tue, 9 Feb 2010 12:57:33 -0600 Subject: [mapserver-users] Continuing problem with WCS and ENVI Multi-band files In-Reply-To: <4B7059D9.8030804@aslenv.com> References: <4B7059D9.8030804@aslenv.com> Message-ID: Any chance of getting a test dataset? -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Peter Willis Sent: Monday, February 08, 2010 12:37 PM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] Continuing problem with WCS and ENVI Multi-band files Hello, I continue to have a problem selecting a single band from a multi-band (563 bands) ENVI format BSQ file. Using the following URL mapserver gives me a FLOAT32 GTiff file but it is always filled with zeros. http://wcs.foo.com/cgi-bin/wcs?REQUEST=GetCoverage&SERVICE=WCS&VERSION=1.0.0&COVERAGE=NDVI&CRS=EPSG:4326&BBOX=-135,55,-121,46&WIDTH=256&HEIGHT=256&FORMAT=GEOTIFF_FLOAT&Band=122 Is there any documentation that clearly shows how WCS can be set up to do this? My current LAYER definition is as follows: LAYER NAME VegetationIndex STATUS OFF DEBUG ON TYPE RASTER METADATA "wcs_label" "Data/NDVI" "wcs_rangeset_name" 'bands' "wcs_rangeset_label" "NDVI" "ows_extent" '-135 55 -121 46' "wcs_resolution" '0.08333333333333332 -0.083333333333333332' "ows_srs" 'EPSG:4326' "wcs_srs" 'EPSG:4326' "wcs_formats" 'GEOTIFF_FLOAT,GEOTIFF_INT16' "wcs_nativeformat" 'ENVI' END DATA /NDVI/ndvi.img PROJECTION "init=epsg:4623" END DUMP TRUE END _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From dmorissette at mapgears.com Tue Feb 9 12:00:49 2010 From: dmorissette at mapgears.com (Daniel Morissette) Date: Tue, 09 Feb 2010 15:00:49 -0500 Subject: [mapserver-users] php mapscript loadQuery problem In-Reply-To: References: <83E36BCA-7657-4964-BCEF-D399A19CEE93@nd.gov> <4B71686F.5080003@mapgears.com> <2740BB07-F47E-47C2-88EE-02185E85BF84@nd.gov> <4B718169.6090908@mapgears.com> <4B7183FB.9000607@mapgears.com> Message-ID: <4B71BEF1.1010308@mapgears.com> Moen, Paul T. wrote: > > The right items are high lighted now but I get many of the following errors when I dumping the error stack. > > Error in msEvalExpression(): Cannot evaluate expression, no item index defined. > > This only seems to happen when there are many classes in the layer. Are these errors expected? > This would happen if you have classes with string constants (EXPRESSION "...") or regular expressions (EXPRESSION /.../), but you did not specify an ITEM in the layer definition (so MapServer has no attribute value to use in matching the expression). Daniel -- Daniel Morissette http://www.mapgears.com/ From pmoen at nd.gov Tue Feb 9 12:31:15 2010 From: pmoen at nd.gov (Moen, Paul T.) Date: Tue, 9 Feb 2010 14:31:15 -0600 Subject: [mapserver-users] php mapscript loadQuery problem In-Reply-To: <4B71BEF1.1010308@mapgears.com> References: <83E36BCA-7657-4964-BCEF-D399A19CEE93@nd.gov> <4B71686F.5080003@mapgears.com> <2740BB07-F47E-47C2-88EE-02185E85BF84@nd.gov> <4B718169.6090908@mapgears.com> <4B7183FB.9000607@mapgears.com> <4B71BEF1.1010308@mapgears.com> Message-ID: What would I use for a CLASSITEM when my expression is a Logical ?MapServer expressions?? For example. EXPRESSION ('[SURFACE]' == 'Paved' AND '[ROADCLASS]' == 'Primary') Thanks, Paul On Feb 9, 2010, at 2:00 PM, Daniel Morissette wrote: Moen, Paul T. wrote: > > The right items are high lighted now but I get many of the following errors when I dumping the error stack. > > Error in msEvalExpression(): Cannot evaluate expression, no item index defined. > > This only seems to happen when there are many classes in the layer. Are these errors expected? > This would happen if you have classes with string constants (EXPRESSION "...") or regular expressions (EXPRESSION /.../), but you did not specify an ITEM in the layer definition (so MapServer has no attribute value to use in matching the expression). Daniel -- Daniel Morissette http://www.mapgears.com/ _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From dmorissette at mapgears.com Tue Feb 9 12:39:43 2010 From: dmorissette at mapgears.com (Daniel Morissette) Date: Tue, 09 Feb 2010 15:39:43 -0500 Subject: [mapserver-users] php mapscript loadQuery problem In-Reply-To: References: <83E36BCA-7657-4964-BCEF-D399A19CEE93@nd.gov> <4B71686F.5080003@mapgears.com> <2740BB07-F47E-47C2-88EE-02185E85BF84@nd.gov> <4B718169.6090908@mapgears.com> <4B7183FB.9000607@mapgears.com> <4B71BEF1.1010308@mapgears.com> Message-ID: <4B71C80F.4070403@mapgears.com> Moen, Paul T. wrote: > What would I use for a CLASSITEM when my expression is a Logical ?MapServer expressions?? > > For example. > > EXPRESSION ('[SURFACE]' == 'Paved' AND '[ROADCLASS]' == 'Primary') > In this case you do not need a CLASSITEM, and if you provide one it is simply ignored. You need one only for string constant expressions and regular expressions. Daniel -- Daniel Morissette http://www.mapgears.com/ From lgaudette at ehealthinformation.ca Tue Feb 9 14:06:47 2010 From: lgaudette at ehealthinformation.ca (Lisa Gaudette) Date: Tue, 9 Feb 2010 14:06:47 -0800 (PST) Subject: [mapserver-users] Dynamically determining map size with map script? Message-ID: <1265753207962-4544257.post@n2.nabble.com> I am using C# MapScript to generate a series of map images representing different Canadian provinces individually. I'd rather not have to fiddle with each one to determine the right image size in pixels to get the desired level of detail. I'm thinking there must be some way to give it the shape files and something like a desired scale and have it figure out the image size, but I don't see how. I've tried seeing if I can just set SCALEDENOM without an image size but that doesn't do it (and it's not really clear to me what it is supposed to do). An alternate approach would be to specify a maximum dimension and have it determine the other, which would at least give me fewer things to fiddle with; I get hung up there on the fact that the ratio of my map extents in either m or lat/lon is definitely not the desired ratio of the projected image in pixels, and I don't see a way to get from one to the other. -- View this message in context: http://n2.nabble.com/Dynamically-determining-map-size-with-map-script-tp4544257p4544257.html Sent from the Mapserver - User mailing list archive at Nabble.com. From pwillis at aslenv.com Tue Feb 9 15:16:34 2010 From: pwillis at aslenv.com (Peter Willis) Date: Tue, 09 Feb 2010 15:16:34 -0800 Subject: [mapserver-users] Continuing problem with WCS and ENVI Multi-band files In-Reply-To: References: <4B7059D9.8030804@aslenv.com> Message-ID: <4B71ECD2.3060608@aslenv.com> Hello, This has actually been resolved. I just haven't got back here to give an update until now. The proper mapserver use case for ENVI type rasters and WCS will be posted at mapserver.org by Frank Warmerdam once I get my 'stuff' together. There are some small sample ENVI test files available at: http://filebin.ca/cpaux/ENVI_test_files.ZIP NOTE: the files listed as ...int32... are actually ...int16... and the file name is a typo. These files (content) are not scientific data files but 6 band binary files with headers. The image data is a text burn in of the band number in each band on a zero background. The problem I was having with my WCS dataset LAYER definition seemed to clear up with some minor editing. There is a sample map file for UMN mapserver and ENVI format WCS located at: http://filebin.ca/upkmxs/mapfile.txt The geographic pixel size in the map file is incorrect. It should be 2.8125 degrees not 0.08333. The file is only 128x64 spatially. the band selection for GetCoverage URL is &bands= ie:(see end of URL line) http://somewcsserver.net/cgi-bin/wcs?REQUEST=GetCoverage&SERVICE=WCS&VERSION=1.0.0&COVERAGE=BOGUStestData&CRS=EPSG:4326&BBOX=-180,-90,180,90&WIDTH=128&HEIGHT=64&FORMAT=GEOTIFF_FLOAT&bands=6 Hope that's useful. If you need NDVI that's a whole other story. :) Peter Lime, Steve D (DNR) wrote: > Any chance of getting a test dataset? > > -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Peter Willis > Sent: Monday, February 08, 2010 12:37 PM > To: mapserver-users at lists.osgeo.org > Subject: [mapserver-users] Continuing problem with WCS and ENVI Multi-band files > > Hello, > > I continue to have a problem selecting > a single band from a multi-band (563 bands) > ENVI format BSQ file. > > Using the following URL mapserver gives me a FLOAT32 GTiff > file but it is always filled with zeros. > > http://wcs.foo.com/cgi-bin/wcs?REQUEST=GetCoverage&SERVICE=WCS&VERSION=1.0.0&COVERAGE=NDVI&CRS=EPSG:4326&BBOX=-135,55,-121,46&WIDTH=256&HEIGHT=256&FORMAT=GEOTIFF_FLOAT&Band=122 > > Is there any documentation that clearly > shows how WCS can be set up to do this? > > My current LAYER definition is as follows: > > LAYER > NAME VegetationIndex > STATUS OFF > DEBUG ON > TYPE RASTER > METADATA > "wcs_label" "Data/NDVI" > "wcs_rangeset_name" 'bands' > "wcs_rangeset_label" "NDVI" > "ows_extent" '-135 55 -121 46' > "wcs_resolution" '0.08333333333333332 -0.083333333333333332' > "ows_srs" 'EPSG:4326' > "wcs_srs" 'EPSG:4326' > "wcs_formats" 'GEOTIFF_FLOAT,GEOTIFF_INT16' > "wcs_nativeformat" 'ENVI' > > END > DATA /NDVI/ndvi.img > PROJECTION > "init=epsg:4623" > END > DUMP TRUE > END From francesco.pirotti at unipd.it Wed Feb 10 00:04:17 2010 From: francesco.pirotti at unipd.it (francesco) Date: Wed, 10 Feb 2010 09:04:17 +0100 Subject: [mapserver-users] mapscript does not use GRID information when reprojecting rect object - part 2 In-Reply-To: <4B462723.8010801@mapgears.com> References: <939ef32f1001070651q4d7fa356p50f47ec3903e65da@mail.gmail.com> <939ef32f1001070718m71b620a0s17e608c3ba129b61@mail.gmail.com> <4B462723.8010801@mapgears.com> Message-ID: <4B726881.2080200@unipd.it> Hello list, I posted a question 3 month ago and lost track of it and found that Daniel Morissette answered practically the same day. So first of all thank you Daniel, your help is greatly approciated, sorry for the silence: second of all I pick up were I left off: PROBLEM: I have a mapfile with layers which use two projections: *main project projection* PROJECTION "proj=utm" "zone=32" "ellps=WGS84" "datum=WGS84" "units=m" "no_defs" END *layer projection* PROJECTION "proj=tmerc" "lat_0=0" "lon_0=9" "k=0.9996" "x_0=1500000" "y_0=0" "ellps=intl" "units=m" "no_defs" "nadgrids=lombardia_tot.gsb,null" END Both do *not *use the epsg file. the layer is reprojected "perfectly" (sorry for the non-carthographic emotional term) in the correct project coordinates. Next step was to zoom to an object in the layer so I calculated the minum bounding box of the object in the layer and reprojected it to project coordinates so that I could zoom to the map correctly. This works but does not consider the "nadgrids" parameter and thus has quite an error (30 m). Daniel suggested that the PROJ_LIB configure parameter might be different in the map and in the script. I checked with a mapobj->configureoptions and got back an empty array in the script and in the mapfile. In my environment variables PROJ_LIB is set to the correct folder contiaining the proj epsg & co. files. I will keep trying and testing and let you know. It is quite strange, almost like mapscript does not consider the "nadgrids" parameter in the projection object. Will keep testing. Cheers, -- *Francesco Pirotti* Dep. TESAF CIRGEO ? Interdepartmental Research Center on Cartography Photogrammetry Remote Sensing and G.I.S. University of Padova Web: http://www.cirgeo.unipd.it/cirgeo/francescopirotti.htm Email: francesco.pirotti at unipd.it Phone: +39 049 827 2710 Phone: +39 349 55 39 261 -------------- next part -------------- An HTML attachment was scrubbed... URL: From vasileestan at gmail.com Wed Feb 10 01:00:51 2010 From: vasileestan at gmail.com (Vasile Cristian Stan) Date: Wed, 10 Feb 2010 01:00:51 -0800 (PST) Subject: [mapserver-users] documentation about interaction between Mapserver and Webserver software Message-ID: <1265792451763-4546690.post@n2.nabble.com> Hi, I work to a thesis about WebGis architecture an I need some documentation about interaction between Mapserver and Webserver software. Where I can find any documentation about this subject? Thank you, Cristian -- View this message in context: http://n2.nabble.com/documentation-about-interaction-between-Mapserver-and-Webserver-software-tp4546690p4546690.html Sent from the Mapserver - User mailing list archive at Nabble.com. From Morten.Sickel at nrpa.no Wed Feb 10 02:19:17 2010 From: Morten.Sickel at nrpa.no (Morten Sickel) Date: Wed, 10 Feb 2010 11:19:17 +0100 Subject: [mapserver-users] PHP MapScript pixel coordinates to map coordinates In-Reply-To: References: Message-ID: <0CE0A03D0F390E46B12B64489D20B1D406BA2BFCF1@MAILHUB.NRPA.LOCAL> Seems like noone have answered this yet... In fact, it is as easy as using proportions. Mapservers mapextent is given in units of the actual projection of the ma?. If you need to have the extent in another projection, the cornerpoints can be reprojected. Morten -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Shorthouse, David Sent: Wednesday, January 20, 2010 4:57 AM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] PHP MapScript pixel coordinates to map coordinates Folks, This question has no doubt been asked many times, but for the life of me I cannot find a solution. Here's what I'm trying to do: I have a jQuery-based front-end that uses the wonderful jcrop extension (http://deepliquid.com/content/Jcrop.html) that helps coordinate zoom. I'm hoping to use this same front-end to permit cropping of a resultant map image, which means I need to pass the four pixel corner coordinates, convert to map coordinates (projection may be variable), then set the extent such that the resultant map image will have the same dimensions as that described by the user on the front-end. So, how can I convert pixel coordinates to map coordinates? Note that the map projection is not always DD so I cannot merely use proportions as I have seen in some solutions. Surely this is easier than I am making it out to be. Thanks for any advice, David Shorthouse _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From woodbri at swoodbridge.com Wed Feb 10 05:58:30 2010 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Wed, 10 Feb 2010 08:58:30 -0500 Subject: [mapserver-users] documentation about interaction between Mapserver and Webserver software In-Reply-To: <1265792451763-4546690.post@n2.nabble.com> References: <1265792451763-4546690.post@n2.nabble.com> Message-ID: <4B72BB86.2080805@swoodbridge.com> On 2/10/2010 4:00 AM, Vasile Cristian Stan wrote: > Hi, > > I work to a thesis about WebGis architecture an I need some documentation > about interaction between Mapserver and Webserver software. > Where I can find any documentation about this subject? > > > Thank you, > Cristian > Christian, I think you need to be a little more specific about on what your want. For example, mapserver runs as a CGI or FastCGI application.or as mapscript with wrappers for PHP, Perl, Python, C#, and many more. These are wrappers to the mapserver library that bring that functionality into those respective languages. Mapserver also support OGC protocols like WMS, WFS, WCS, SOS, SLD, probably some others. Mapserver is optionally built with GDAL/OGR that gives it access to a huge number of vector and raster GIS data formats. There are also multiple database connectors that allow mapserver to pull data from databases like PostgreSQL/PostGIS, Oracle, MySQL, ODBC (via OGR), SQLite (via OGR), etc. You are asking about mapserver intereactions with the web server, what are typical interactions that you might be interested in? -Steve W From christian.braun at tudor.lu Wed Feb 10 05:31:24 2010 From: christian.braun at tudor.lu (Christian Braun) Date: Wed, 10 Feb 2010 14:31:24 +0100 Subject: [mapserver-users] Changelog of version 4 to 5 Message-ID: <4F12093A-3BC5-488F-96A0-9F91683DFE76@tudor.lu> Hello list members, currently I am doing a migration of our servers and changed mapserver from version 4.10 to the latest 5.6. As I figured out some problems with the syntax of the map file I wanted to know where I can find some kind of 'changelog' for mapfile syntax between the versions. I remember that there was somehing on the old web site layout but I am not able to find it anymore. Could someone please help me out with a document, Christian From ml at lingner.eu Wed Feb 10 06:30:52 2010 From: ml at lingner.eu (Lars Lingner) Date: Wed, 10 Feb 2010 15:30:52 +0100 Subject: [mapserver-users] Changelog of version 4 to 5 In-Reply-To: <4F12093A-3BC5-488F-96A0-9F91683DFE76@tudor.lu> References: <4F12093A-3BC5-488F-96A0-9F91683DFE76@tudor.lu> Message-ID: <4B72C31C.4000900@lingner.eu> Christian Braun schrieb: > Hello list members, > > currently I am doing a migration of our servers and changed mapserver from version 4.10 to the latest 5.6. As I figured out some problems with the syntax of the map file I wanted to know where I can find some kind of 'changelog' for mapfile syntax between the versions. > I remember that there was somehing on the old web site layout but I am not able to find it anymore. > > Could someone please help me out with a document, The migration guides are here: 4.x. -> 5.0 http://trac.osgeo.org/mapserver/browser/branches/branch-5-0/mapserver/MIGRATION_GUIDE.TXT 5.0 -> 5.2 http://trac.osgeo.org/mapserver/browser/branches/branch-5-2/mapserver/MIGRATION_GUIDE.TXT 5.2 -> 5.4 http://trac.osgeo.org/mapserver/browser/branches/branch-5-4/mapserver/MIGRATION_GUIDE.TXT (I'm not sure if the obove are all the same) 5.4 -> 5.6 http://trac.osgeo.org/mapserver/browser/branches/branch-5-6/mapserver/MIGRATION_GUIDE.TXT They should be referenced in the docs, but I don't have a link handy. Lars From danlittle at yahoo.com Wed Feb 10 08:15:43 2010 From: danlittle at yahoo.com (Dan Little) Date: Wed, 10 Feb 2010 08:15:43 -0800 (PST) Subject: [mapserver-users] hyper-threading and performance In-Reply-To: <4B707C2A.5030808@squeakycode.net> References: <3D56274B4A7874468F58FADDBFD098010894509D@llmhs02.r8nssis.local> <4B70744E.8090904@squeakycode.net> <3D56274B4A7874468F58FADDBFD09801089450DD@llmhs02.r8nssis.local> <4B707C2A.5030808@squeakycode.net> Message-ID: <766162.47760.qm@web51401.mail.re2.yahoo.com> Hey Mark, If you're looking to speed up GeoMOOSE (or any MapServer Installation) there are a few general rules to follow: 1) GM Specific - As of 2.0+ it's actually A LOT easier to have multiple layers in a single image. The CPU capabilities doesn't help here, but the client has less images to download and will appear to be a bit faster. 2) MS General - INDEXES, TILING, INDEXES. If you don't want to use shptree and the various shp* utils for indexing and tiling your dataset then you might want to try putting the data into PostGIS. Especially datasets like road ways and parcels. Your aerials will generally better from more CPU capability. ----- Original Message ---- > From: Andy Colson > To: Mark Volz > Cc: mapserver-users at lists.osgeo.org > Sent: Mon, February 8, 2010 3:03:38 PM > Subject: Re: [mapserver-users] hyper-threading and performance > > Yeah, I've heard the same thing. If your system is cpu bound then I'd > bet the difference between enabled and disabled is minimal (regardless > if the difference is faster or slower). 20% either way is not very much. > > If your not cpu bound, I'd bet you see no difference at all. > > Of course, these are hugely big guesses. And probably wrong. I dont > have any numbers to share. Sorry. > > -Andy > > > On 2/8/2010 2:48 PM, Mark Volz wrote: > > Andy, > > > > To be more specific: > > > > I am using GeoMoose. GeoMoose draws each layer separately so we do benefit > > by having a multi-core processor even if there is only one user. We also are > > using a WMS Service so air photos is for the most part a non issue. If my > > understanding is correct hyper-threading has up to a 20 percent increase in > > speed. However, the performance increase is highly application specific and > > in some cases performance may actually be lower with Hyper-Threading enabled. > > > > > > Mark Volz > > GIS Specialist > > Lyon County, MN > > > > -----Original Message----- > > From: Andy Colson [mailto:andy at squeakycode.net] > > Sent: Monday, February 08, 2010 2:30 PM > > To: Mark Volz > > Cc: mapserver-users at lists.osgeo.org > > Subject: Re: [mapserver-users] hyper-threading and performance > > > > On 2/8/2010 2:20 PM, Mark Volz wrote: > >> Hello, > >> > >> Does anyone know if the performance of Mapserver is increased if > >> hyper-threading is enabled? If so how much? > >> > >> Mark Volz > >> > >> GIS Specialist > >> > >> Lyon County, MN > >> > > > > Hey Mark, > > > > What sort of usage are we talking? Web hosting? Shapefiles and arials? > > I'm not sure if mapserver itself will use mult-threads, but if you > > have multiple requests comming into a website, apache/cgi/mapserver/etc > > will use multi process/threads/etc. > > > > Its tough to say the performance increase. I'm host several maps on a > > dual-core box, and the cpu's sit around 2 percent. And with lots of > > arial imagery you might hit disk io limit before you hit cpu limit. > > (However, I have had some mrsid files that were really cpu intensive to > > uncompress, they were cpu bound). Are your cpu's even pegged? > > > > So, I guess, the answer is, it really depends on a lot of different > > variables. > > > > > > -Andy > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From chris.green at ibstv.co.uk Wed Feb 10 09:07:24 2010 From: chris.green at ibstv.co.uk (Chris Green) Date: Wed, 10 Feb 2010 17:07:24 -0000 Subject: [mapserver-users] mouseover with mapserver...? Message-ID: <01ec01caaa73$8418cfe0$8c4a6fa0$@green@ibstv.co.uk> Hi all I am using ms4w and have managed to make a number of maps work really well. However one thing I would really like to implement is a mouseover function which indicates and/or highlights features without requiring a click. There is a link to a good example of this on the Mapserver website: http://maps.dnr.state.mn.us/cgi-bin/mapserv48?map=/usr/local/www/docs_maps/e co/rsg/search/search_example.map &qlayer=county&mode=nquery&searchmap=true It is probably my lack of web/javascript design experience but the fact is that I have totally failed to make any kind of mouseover work with mapserver. Can anyone provide the source code of something that works? Chris -------------- next part -------------- An HTML attachment was scrubbed... URL: From Morten.Sickel at nrpa.no Wed Feb 10 09:17:14 2010 From: Morten.Sickel at nrpa.no (Morten Sickel) Date: Wed, 10 Feb 2010 18:17:14 +0100 Subject: [mapserver-users] CGI-wrapper script on windows / openlayers wmsgetfeatureinfo Message-ID: <0CE0A03D0F390E46B12B64489D20B1D406BA300A6E@MAILHUB.NRPA.LOCAL> I have mapserver up and running, now I'm trying to use openlayers. Some simpler pars work fine, but when I get to OpenLayers.Control.WMSGetFeatureInfo I need to use a wrapper script to hide the map= parameter, but how to do that on windows? Or, is there some way to add the parameter? I have tried querier = new OpenLayers.Control.WMSGetFeatureInfo({ url: url, title: "Test", map:wmsfile, layers: [mobile], queryVisible: true }); where the wmsfile is a pointer to the wmsfile in the filesystem (works fine in OpenLayers.Layer.WMS) but when the query is sent, the map-parameter has not been taken into account. Do I need a wrapper script, or have I overlooked something in openlayers? Morten Sickel Norwegian Radiation Protection Authority From Steve.Lime at state.mn.us Wed Feb 10 09:29:04 2010 From: Steve.Lime at state.mn.us (Lime, Steve D (DNR)) Date: Wed, 10 Feb 2010 11:29:04 -0600 Subject: [mapserver-users] mouseover with mapserver...? In-Reply-To: <01ec01caaa73$8418cfe0$8c4a6fa0$@green@ibstv.co.uk> References: <01ec01caaa73$8418cfe0$8c4a6fa0$@green@ibstv.co.uk> Message-ID: It's kinda dependent on what client environment you're using. OpenLayers, for example, has a hover control that you can use to do this. This site uses that technique to provide tooltips. http://www.dnr.state.mn.us/waters/csg/index.html Basically if you pause the mouse for n seconds you fire a hover event which does a MapServer query. Watch the above site in firebug and you'll see 'em. If the query fails (nothing of interest was found) the no tooltip is displayed. In the example you mention is relevant to image map creation and my guess that's not what your after. What client environment are you using? Steve From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Chris Green Sent: Wednesday, February 10, 2010 11:07 AM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] mouseover with mapserver...? Hi all I am using ms4w and have managed to make a number of maps work really well. However one thing I would really like to implement is a mouseover function which indicates and/or highlights features without requiring a click. There is a link to a good example of this on the Mapserver website: http://maps.dnr.state.mn.us/cgi-bin/mapserv48?map=/usr/local/www/docs_maps/eco/rsg/search/search_example.map&qlayer=county&mode=nquery&searchmap=true It is probably my lack of web/javascript design experience but the fact is that I have totally failed to make any kind of mouseover work with mapserver. Can anyone provide the source code of something that works? Chris -------------- next part -------------- An HTML attachment was scrubbed... URL: From adams at terrestris.de Wed Feb 10 09:22:22 2010 From: adams at terrestris.de (adams) Date: Wed, 10 Feb 2010 18:22:22 +0100 Subject: [mapserver-users] mouseover with mapserver...? In-Reply-To: <01ec01caaa73$8418cfe0$8c4a6fa0$@green@ibstv.co.uk> References: <01ec01caaa73$8418cfe0$8c4a6fa0$@green@ibstv.co.uk> Message-ID: <4B72EB4E.3070709@terrestris.de> Chris, this is more a client side implementation. OpenLayers e.g. offers functionalities to implement sth. like that, theres also a Mapbender tool which is able to deal with that. I think it's worth to have a look for your client, in which you want to represent your maps. I am not aware at any mapscript-mapserver functionality doing that, but I personally never used that part of mapserver.... What you see in your link is also a kind of webmapping-client (usually defined as a template in the mapfile), you can look behind if you browse the source code of that site. Regards, Till Chris Green wrote: > > Hi all > > > > I am using ms4w and have managed to make a number of maps work really > well. However one thing I would really like to implement is a > mouseover function which indicates and/or highlights features without > requiring a click. There is a link to a good example of this on the > Mapserver website: > http://maps.dnr.state.mn.us/cgi-bin/mapserv48?map=/usr/local/www/docs_maps/eco/rsg/search/search_example.map&qlayer=county&mode=nquery&searchmap=true > > > > > It is probably my lack of web/javascript design experience but the > fact is that I have totally failed to make any kind of mouseover work > with mapserver. Can anyone provide the source code of something that > works? > > > > > > Chris > > > > > > > > > > ------------------------------------------------------------------------ > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -- --------------------------------------------------------- terrestris GmbH & Co. KG Irmintrudisstrasse 17 53111 Bonn Germany Till Adams Gesch?ftsf?hrung Tel: +49 (0)228 / 962 899-52 Fax: +49 (0)228 / 962 899-57 adams at terrestris.de http://www.terrestris.de Amtsgericht Bonn, HRA 6835 --------------------------------------------------------- Komplement?rin: terrestris Verwaltungs GmbH vertreten durch: Hinrich Paulsen, Till Adams -------------- next part -------------- An HTML attachment was scrubbed... URL: From cjauvin at gmail.com Wed Feb 10 11:55:16 2010 From: cjauvin at gmail.com (Christian Jauvin) Date: Wed, 10 Feb 2010 14:55:16 -0500 Subject: [mapserver-users] Announcement: DraconesPH, a surveillance app built with Dracones Message-ID: Dear GIS community and MapServer users, Sending messages of this type won't become an habit, I promise, but I thought once more that some of you could be interested by the first release of DraconesPH, an open source web mapping and surveillance application currently in use by the Montreal Public Health, and built with the Dracones framework that I released a little earlier. The DraconesPH features: * UI built with the Ext JS library * PostGIS randomly generated data model * SaTScan (a space-time scan statistics software) visualization module You can read more about, or try it on the Dracones site: http://surveillance.mcgill.ca/dracones/draconesph/index.php Best regards, Christian Jauvin From Morten.Sickel at nrpa.no Thu Feb 11 04:41:01 2010 From: Morten.Sickel at nrpa.no (Morten Sickel) Date: Thu, 11 Feb 2010 13:41:01 +0100 Subject: [mapserver-users] CGI-wrapper script on windows / openlayers wmsgetfeatureinfo In-Reply-To: <0CE0A03D0F390E46B12B64489D20B1D406BA300A6E@MAILHUB.NRPA.LOCAL> References: <0CE0A03D0F390E46B12B64489D20B1D406BA300A6E@MAILHUB.NRPA.LOCAL> Message-ID: <0CE0A03D0F390E46B12B64489D20B1D406BA2BFCFA@MAILHUB.NRPA.LOCAL> I found another answer myself, guess this counts as a bit more elegant than a cgi-wrapper script ;-) I use the mod_rewrite in apache, following these three steps: 1) Comment out the mod_rewrite line in httpd.conf 2) Enable mod_rewrite for the actual document root. I am using virtual servers and added the following lines in the actual section: Options FollowSymLinks AllowOverride All (where "c:\documents and settings\vserver\radioecology" is the htdocs directory for the relevant virtual server) 2.5 Restart apache 3 make a .htaccess file in the actual directory: RewriteEngine on RewriteRule ^wmsmap?(.*) /cgi-bin/mapserv.exe?map=/documents+and+settings/vserver/radioecology/mobilweb/mobilwms.map&$1 The rewriteRule says: given a webpage starting with wmsmap, pick out the query parameters, make a new page request starting with /cgi-bin/mapserv.exe?map=(...)? and add on whatever was the query parameter in the original page request. ie, /wmsmap?mode=map will be rewritten to /cgi-bin/mapserv.exe?map=/documents+and+settings/vserver/radioecology/mobilweb/mobilwms.map&mode=map Quite simple when one just knows how to do it. I would propose to add something like the text above to chapter 12.6 A Simple CGI Wrapper Script in the manual - that would at least have saved me quite some time.. -- Morten Sickel Norwegian Radiation Protection Authority -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Morten Sickel Sent: Wednesday, February 10, 2010 6:17 PM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] CGI-wrapper script on windows / openlayers wmsgetfeatureinfo I have mapserver up and running, now I'm trying to use openlayers. Some simpler pars work fine, but when I get to OpenLayers.Control.WMSGetFeatureInfo I need to use a wrapper script to hide the map= parameter, but how to do that on windows? Or, is there some way to add the parameter? I have tried querier = new OpenLayers.Control.WMSGetFeatureInfo({ url: url, title: "Test", map:wmsfile, layers: [mobile], queryVisible: true }); where the wmsfile is a pointer to the wmsfile in the filesystem (works fine in OpenLayers.Layer.WMS) but when the query is sent, the map-parameter has not been taken into account. Do I need a wrapper script, or have I overlooked something in openlayers? Morten Sickel Norwegian Radiation Protection Authority _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From omurdd at gmail.com Thu Feb 11 06:54:33 2010 From: omurdd at gmail.com (=?UTF-8?B?w5Ztw7xyIEQuIERhbGFu?=) Date: Thu, 11 Feb 2010 16:54:33 +0200 Subject: [mapserver-users] Simple up-to-date example for Mapserver and Openlayers (WFS) Message-ID: <655296ec1002110654p68b530aeq800e1467306020cb@mail.gmail.com> I've searched tons of sites and read, try to implement many examples but can't find a good'n simple tutorial for a map served with Mapserver WFS server and screened with Openlayers. I think that's possible to draw a map using only wfs. My map file and WFS conf. works good with Quantum GIS but not with openlayers. Could some one help me to find my way ? By the way here's my configuration <---OL.html---> OpenLayers Example
<---OL.html---> <---myMap.map---> MAP NAME myMap STATUS ON SIZE 1000 600 EXTENT 26.739934 38.190944 27.373940 38.636502 UNITS METERS SHAPEPATH "./mapFiles" IMAGECOLOR 255 255 255 PROJECTION "init=epsg:4326" END OUTPUTFORMAT NAME "aggpng24" DRIVER AGG/PNG MIMETYPE "image/png" IMAGEMODE RGB EXTENSION "png" END IMAGETYPE aggpng24 WEB IMAGEPATH "./tmp/" IMAGEURL "tmp/" TEMPLATE "./basicTemplate.html" METADATA "wfs_title" "myMAP DEMO WFS SERVICE" "wfs_onlineresource" " http://194.27.174.184/cgi-bin/mapserv?map=/Library/WebServer/Documents/myMap.map&service=WFS " "wfs_srs" "EPSG:4326" END END LAYER NAME "Ilce_Sinirlari" TYPE POLYGON STATUS DEFAULT EXTENT 26.739934 38.190944 27.373940 38.636502 PROJECTION "init=epsg:4326" END CONNECTIONTYPE OGR CONNECTION "ilceSinir.TAB" #DATA "ilceler.SHP" DUMP TRUE METADATA "wfs_title" "Ilce_Sinirlari" "gml_featureid" "ADINUMARAS" "gml_include_items" "all" END STYLEITEM "AUTO" CLASS END END END <---myMap.map---> -------------- next part -------------- An HTML attachment was scrubbed... URL: From kobben at itc.nl Thu Feb 11 08:02:48 2010 From: kobben at itc.nl (=?iso-8859-1?Q?Barend_K=F6bben?=) Date: Thu, 11 Feb 2010 17:02:48 +0100 Subject: [mapserver-users] Simple up-to-date example for Mapserver and Openlayers (WFS) In-Reply-To: <655296ec1002110654p68b530aeq800e1467306020cb@mail.gmail.com> Message-ID: I assume you did check if the file OL.html comes from the same domain as the WFS service (ie. http://194.27.174.184) ? If not, you need a proxy to the WFS that makes the JavaScript in OL.html think the data comes from the same domain as itself (as cross-domain AJAX is not allowed by JS). BArend On 11-02-10 15:54, "?m?r D. Dalan" wrote: > OL.html---> > > > > ??OpenLayers Example > ?? ? > ?? ? > ?? ? > ?? ? ?
> ?? ? ?