Re: [mapserver-users] WCS pops up to open image
I changed the format to PNG and it worked! Virginia On Tue, Jun 14, 2011 at 10:44 AM, Stephan Meißl wrote: > Virginia, > > as far as I know only Safari supports displaying TIFF images natively. > There are add-ons available for Firofox, though. > > cu > Stephan > > > On Sun, 2011-06-12 at 17:14 -0300, Virginia Maffei wrote: > > Hi, i'm trying to publish a tiff loaded in postgis raster and when i > > make a GetCoverage it just pops up a window to download the image > > (mapserv.exe.tiff) > > Why is it happening? If i download the image its looking correctly > > what i'm expecting but i want to see it in the browser. > > > > > > Thanks! > > > > > > Virginia > > > > > > ___ > > mapserver-users mailing list > > mapserver-users@lists.osgeo.org > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Requested BBOX outside requested coverage
Thanks Stephen! That was the problem! Virginia On Tue, Jun 14, 2011 at 10:34 AM, Stephan Meißl wrote: > Virginia, > > it looks strange that the second parameter in your bounding box is > bigger than the fourth one. > > Besides that I suspect that you might be using different projections > with different units (meter vs. degree). > > cu > Stephan > > > On Sat, 2011-06-11 at 18:46 -0300, Virginia Maffei wrote: > > Hi, i want to do a getcoverage with wcs but the log throws: > > > > > > > > [Sat Jun 11 18:27:50 2011].26000 msWCSGetCoverage(): WCS server error. > > Requested BBOX > > (-66.5079075029609,-84.6440997947261,-30.3257514953085,-83.1977984037033) > is outside requested coverage BBOX > (366582.290141166,6127927.10038269,857582.290141166,6670927.10038269) > > [Sat Jun 11 18:27:50 2011].26000 freeLayer(): freeing layer at > > 021CB940. > > > > > > the url is: > > > > > > > http://localhost/cgi-bin/mapserv.exe?map=/ms4w/apps/tutorial/htdocs/example1-1.map&SERVICE=WCS&VERSION=1.0.0&REQUEST=GetCoverage&coverage=localidades&CRS=EPSG:32721&BBOX=40,70,80,60&WIDTH=491&HEIGHT=543&FORMAT=GTiff > > > > > > Could someone explain me whats wrong and how does bbox works? > > > > > > Sorry, but i'm very new at this... > > > > > > thank you! > > > > > > Virginia > > > > > > > > > > ___ > > mapserver-users mailing list > > mapserver-users@lists.osgeo.org > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] WCS pops up to open image
Hi, i'm trying to publish a tiff loaded in postgis raster and when i make a GetCoverage it just pops up a window to download the image (mapserv.exe.tiff) Why is it happening? If i download the image its looking correctly what i'm expecting but i want to see it in the browser. Thanks! Virginia ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] GetCoverage pops up to download mapserv.exe
Thanks Mark! Every comment or help is welcome :) good luck with your WCS! regards, Virginia On Sat, Jun 11, 2011 at 7:57 PM, Mark Phillips wrote: > Virginia, > > I don't feel like I understand WCS very well myself --- I'm currently > struggling with getting my own WCS service working the way I need, and am > not having a lot of success. But for what it's worth, it looks to me like > your issue has to do with projections. One of your BBOXes seems to be > specified in lon/lat (the > numbers > (-66.5079075029609,-84.6440997947261,-30.3257514953085,-83.1977984037033 > look like lon/lat values), and the other one looks like values in a > different projection. I suspect that the problem has something to do with > the projections specified in your mapfile, and/or the projection being > requested in the request. I'm afraid I can't offer much more specific > advise than that right now, though, because I don't understand the details > myself! > > --Mark > > > On Sat, Jun 11, 2011 at 6:41 PM, Virginia Maffei wrote: > >> Thanks Mark! >> the message its showing is: >> >> > xmlns="http://www.opengis.net/ogc"; xmlns:xsi=" >> http://www.w3.org/2001/XMLSchema-instance"; xsi:schemaLocation=" >> http://www.opengis.net/ogc >> http://schemas.opengis.net/wcs/1.0.0/OGC-exception.xsd";> >> > locator="bbox">msWCSGetCoverage(): WCS server error. Requested BBOX >> (-66.5079075029609,-84.6440997947261,-30.3257514953085,-83.1977984037033) is >> outside requested coverage BBOX >> (366582.290141166,6127927.10038269,857582.290141166,6670927.10038269) >> >> >> >> I posted it in another post but i thought this issue wasn't related with >> the other one. >> >> Do you have any idea about how bbox works? >> >> regards, >> Virginia >> >> >> On Sat, Jun 11, 2011 at 7:03 PM, Mark Phillips wrote: >> >>> Assuming your cgi-bin directory is properly configured to run mapserv.exe >>> as a cgi executable, rather than serving it as a static file, this is >>> probably the result of mapserver encountering a problem and delivering an >>> error message to the browser, probably in the form of an xml response, and >>> what is happening is that the browser is confused about the mime type of the >>> response. Try saving the file and viewing it with an editor; you'll >>> probably find an error message in it. >>> >>> On Sat, Jun 11, 2011 at 5:32 PM, Virginia Maffei wrote: >>> >>>> Hi, i'm trying to do a getcoverage with WCS and it just pops up asking >>>> if i want to download mapserv.exe. >>>> >>>> The url i'm using is: >>>> >>>> >>>> http://localhost/cgi-bin/mapserv.exe?map=/ms4w/apps/tutorial/htdocs/example1-1.map&SERVICE=WCS&VERSION=1.0.0&REQUEST=GetCoverage&coverage=localidades&CRS=EPSG:32721&BBOX=40,70,80,60&WIDTH=491&HEIGHT=543&FORMAT=GTiff >>>> >>>> does anyone knows whats happening and how to resolve it? I checked the >>>> FAQ but i didn't understand >>>> >>>> thanks! >>>> >>>> Virginia >>>> >>>> >>>> ___ >>>> mapserver-users mailing list >>>> mapserver-users@lists.osgeo.org >>>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>>> >>>> >>> >> > ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] GetCoverage pops up to download mapserv.exe
Thanks Mark! the message its showing is: http://www.opengis.net/ogc"; xmlns:xsi=" http://www.w3.org/2001/XMLSchema-instance"; xsi:schemaLocation=" http://www.opengis.net/ogc http://schemas.opengis.net/wcs/1.0.0/OGC-exception.xsd";> msWCSGetCoverage(): WCS server error. Requested BBOX (-66.5079075029609,-84.6440997947261,-30.3257514953085,-83.1977984037033) is outside requested coverage BBOX (366582.290141166,6127927.10038269,857582.290141166,6670927.10038269) I posted it in another post but i thought this issue wasn't related with the other one. Do you have any idea about how bbox works? regards, Virginia On Sat, Jun 11, 2011 at 7:03 PM, Mark Phillips wrote: > Assuming your cgi-bin directory is properly configured to run mapserv.exe > as a cgi executable, rather than serving it as a static file, this is > probably the result of mapserver encountering a problem and delivering an > error message to the browser, probably in the form of an xml response, and > what is happening is that the browser is confused about the mime type of the > response. Try saving the file and viewing it with an editor; you'll > probably find an error message in it. > > On Sat, Jun 11, 2011 at 5:32 PM, Virginia Maffei wrote: > >> Hi, i'm trying to do a getcoverage with WCS and it just pops up asking if >> i want to download mapserv.exe. >> >> The url i'm using is: >> >> >> http://localhost/cgi-bin/mapserv.exe?map=/ms4w/apps/tutorial/htdocs/example1-1.map&SERVICE=WCS&VERSION=1.0.0&REQUEST=GetCoverage&coverage=localidades&CRS=EPSG:32721&BBOX=40,70,80,60&WIDTH=491&HEIGHT=543&FORMAT=GTiff >> >> does anyone knows whats happening and how to resolve it? I checked the FAQ >> but i didn't understand >> >> thanks! >> >> Virginia >> >> >> ___ >> mapserver-users mailing list >> mapserver-users@lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> >> > ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] Requested BBOX outside requested coverage
Hi, i want to do a getcoverage with wcs but the log throws: [Sat Jun 11 18:27:50 2011].26000 msWCSGetCoverage(): WCS server error. Requested BBOX (-66.5079075029609,-84.6440997947261,-30.3257514953085,-83.1977984037033) is outside requested coverage BBOX (366582.290141166,6127927.10038269,857582.290141166,6670927.10038269) [Sat Jun 11 18:27:50 2011].26000 freeLayer(): freeing layer at 021CB940. the url is: http://localhost/cgi-bin/mapserv.exe?map=/ms4w/apps/tutorial/htdocs/example1-1.map&SERVICE=WCS&VERSION=1.0.0&REQUEST=GetCoverage&coverage=localidades&CRS=EPSG:32721&BBOX=40,70,80,60&WIDTH=491&HEIGHT=543&FORMAT=GTiff Could someone explain me whats wrong and how does bbox works? Sorry, but i'm very new at this... thank you! Virginia ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] GetCoverage pops up to download mapserv.exe
Hi, i'm trying to do a getcoverage with WCS and it just pops up asking if i want to download mapserv.exe. The url i'm using is: http://localhost/cgi-bin/mapserv.exe?map=/ms4w/apps/tutorial/htdocs/example1-1.map&SERVICE=WCS&VERSION=1.0.0&REQUEST=GetCoverage&coverage=localidades&CRS=EPSG:32721&BBOX=40,70,80,60&WIDTH=491&HEIGHT=543&FORMAT=GTiff does anyone knows whats happening and how to resolve it? I checked the FAQ but i didn't understand thanks! Virginia ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Problem using mapserver with WCS
Thank you Frank! I looked at your mapfile and i noticed there were some configurations that were missing. Now its working! regards, Virginia On Fri, Jun 10, 2011 at 10:02 AM, Frank Warmerdam wrote: > On 11-06-09 11:58 PM, Virginia Maffei wrote: > >> Thanks Frank, i dropped the map= from the url but now it throws an error >> that i >> dont understand: >> msWCSGetCoverageMetadata(): WCS server error. Unable to determine the SRS >> for >> this layer, no projection defined and no metadata available. >> >> Do you have any idea whats the problem i'm having? the mapfile is the same >> one. >> > > Virginia, > > I notice you do not have any PROJECTION blocks or SRS service metadata at > the layer or map level. I would suggest you re-review the WCS > documentation. > > You might want to use the following as an example of a fairly > minimalist WCS service mapfile (ignore all the request comments at > the start - these are part of the autotest). > > http://svn.osgeo.org/mapserver/trunk/msautotest/wxs/wcs_simple.map > > > Best regards, > -- > > ---+-- > I set the clouds in motion - turn up | Frank Warmerdam, > warmer...@pobox.com > 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 mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Problem using mapserver with WCS
Thanks Frank, i dropped the map= from the url but now it throws an error that i dont understand: msWCSGetCoverageMetadata(): WCS server error. Unable to determine the SRS for this layer, no projection defined and no metadata available. Do you have any idea whats the problem i'm having? the mapfile is the same one. Virginia On Wed, Jun 8, 2011 at 11:04 PM, Frank Warmerdam wrote: > On 11-06-08 07:54 PM, Virginia Maffei wrote: > >> Hi, I installed ms4w and i'm trying to configure wcs in my mapfile, but >> it's >> not working. The url that i'm using is: >> >> http://localhost/cgi-bin/mapserv.exe?map=/ms4w/apps/tutorial/htdocs/example1-1.map&layer=localidades&mode=map&SERVICE=WCS&VERSION=1.0.0&REQUEST=GetCapabilities >> < >> http://localhost/cgi-bin/mapserv.exe?map=/ms4w/apps/tutorial/htdocs/example1-1.map&layer=localidades&mode=map&SERVICE=WCS&VERSION=1.0.0&REQUEST=GetCapabilities >> > >> >> but i cant see the xml it just stil shows the tiff image. >> >> I attached the mapfile so it can help to check which is the problem. >> >> > Virginia, > > I suspect the mode=map is interfering - try dropping it out of the > request. It is not a proper WCS keyword. > > Best regards, > -- > > ---+-- > I set the clouds in motion - turn up | Frank Warmerdam, > warmer...@pobox.com > 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 > mapserver-users@lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] Problem using mapserver with WCS
Hi, I installed ms4w and i'm trying to configure wcs in my mapfile, but it's not working. The url that i'm using is: http://localhost/cgi-bin/mapserv.exe?map=/ms4w/apps/tutorial/htdocs/example1-1.map&layer=localidades&mode=map&SERVICE=WCS&VERSION=1.0.0&REQUEST=GetCapabilities but i cant see the xml it just stil shows the tiff image. I attached the mapfile so it can help to check which is the problem. Colud you help me with this issue? Thanks!! Virginia example1-1.map Description: Binary data ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] Postgis Raster Connection
> Hi, i'm new at this and i'm trying to connect to postgis raster in the > mapfile. > I loaded a tif file into postgis raster database. It created a table with 2 > fields. > In the mapfile i added the connection like it specifies in the postgis > raster FAQ but it doesnt displays a thing: > > > LAYER > NAME coolwktraster > TYPE raster > STATUS ON > DATA "PG:host=localhost port=5432 dbname='somedb' user='someuser' > password='whatever' > schema='someschema' table='cooltable' mode='2'" > PROCESSING "NODATA=0" > PROCESSING "SCALE=AUTO" > #... other standard raster processing functions here > #... classes are optional but useful for 1 band data > CLASS > NAME "boring" > EXPRESSION ([pixel] < 20) > COLOR 250 250 250 > END > CLASS > NAME "mildly interesting" > EXPRESSION ([pixel] > 20 AND [pixel] < 1000) > COLOR 255 0 0 > END > CLASS > NAME "very interesting" > EXPRESSION ([pixel] >= 1000) > COLOR 0 255 0 > END > END > > > the mode=2 i deleted it because its for other postgis version, i have > postgis 1.5.2. > > Could you help me with this? Could someone connect with success? > > Thank you! > > Viriginia > > ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] SLD with filter
Hi, i'm new at this and i'm trying to connect to postgis raster in the mapfile. I loaded a tif file into postgis raster database. It created a table with 2 fields. In the mapfile i added the connection like it specifies in the postgis raster FAQ but it doesnt displays a thing: LAYER NAME coolwktraster TYPE raster STATUS ON DATA "PG:host=localhost port=5432 dbname='somedb' user='someuser' password='whatever' schema='someschema' table='cooltable' mode='2'" PROCESSING "NODATA=0" PROCESSING "SCALE=AUTO" #... other standard raster processing functions here #... classes are optional but useful for 1 band data CLASS NAME "boring" EXPRESSION ([pixel] < 20) COLOR 250 250 250 END CLASS NAME "mildly interesting" EXPRESSION ([pixel] > 20 AND [pixel] < 1000) COLOR 255 0 0 END CLASS NAME "very interesting" EXPRESSION ([pixel] >= 1000) COLOR 0 255 0 END END the mode=2 i deleted it because its for other postgis version, i have postgis 1.5.2. Could you help me with this? Could someone connect with success? Thank you! Viriginia ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users