nakijun / morisoliver

Automatically exported from code.google.com/p/morisoliver
0 stars 0 forks source link

Export through identify (using any of the 3 options) broken for the 3 non-26986 output formats #182

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Summary:

Export is broken:
In all 3 ways of using export through identify (draw a box and use the box as 
select, draw a shape and use shape as select, identify a feature and use 
feature as select)
Affecting all 3 non-26986 output projections (26986 is fine)
basemap doesn't matter
browser doesn't matter 

It's broken in 2 different ways: The first we have a fix for.

1) utm18/19 gives empty shapefile.  We looked at the wfsrequest.txt (see below 
for more on that) and we know what the problem is.  The request is stating that 
it wants utm18 which is 26918 but that it says that the bounding box supplied 
is 26918.  The bounding box or shape provided is always 26986.  So, the first 
EPSG mention in the request is OK to be 26918 but the following three should be 
26986.  When we change that and post it with wget the request works. See 
attached wfsrequest.txt and wfsrequest_fixed.txt to see the difference.

2) wgs84 gives no shapefile and no wfsrequest.txt and has a mkzip error 

Saul had edited mkzip awhile ago May 2012? to include a debug wfsrequest.txt in 
the output zip which represents what was submitted.  Requests for wgs84 output 
format don't produce a wfsrequest.txt or a shapefile at all in the .zip which 
does include other download files such as .lyr. So there is some error mkzip 
before it even gets that far.  The apache error log has: 

[Fri Nov 09 16:17:04 2012] [error] [client 146.243.44.177] From Header - Basic 
ZW9oZWRfbmV3X2JlZGZvcmQ6bDRVbUMweXQ=, referer: 
http://maps.massgis.state.ma.us/map_ol_nov_2012/moris.php
[Fri Nov 09 16:17:09 2012] [error] [client 146.243.44.177]   
End-of-central-directory signature not found.  Either this file is not, 
referer: http://maps.massgis.state.ma.us/map_ol_nov_2012/moris.php
[Fri Nov 09 16:17:09 2012] [error] [client 146.243.44.177]   a zipfile, or it 
constitutes one disk of a multi-part archive.  In the, referer: 
http://maps.massgis.state.ma.us/map_ol_nov_2012/moris.php
[Fri Nov 09 16:17:09 2012] [error] [client 146.243.44.177]   latter case the 
central directory and zipfile comment will be found on, referer: 
http://maps.massgis.state.ma.us/map_ol_nov_2012/moris.php
[Fri Nov 09 16:17:09 2012] [error] [client 146.243.44.177]   the last disk(s) 
of this archive., referer: 
http://maps.massgis.state.ma.us/map_ol_nov_2012/moris.php
[Fri Nov 09 16:17:09 2012] [error] [client 146.243.44.177] unzip:  cannot find 
zipfile directory in one of MWRA Towns with Water or Sewer.zip or, referer: 
http://maps.massgis.state.ma.us/map_ol_nov_2012/moris.php
[Fri Nov 09 16:17:09 2012] [error] [client 146.243.44.177]         MWRA Towns 
with Water or Sewer.zip.zip, and cannot find MWRA Towns with Water or 
Sewer.zip.ZIP, period., referer: 
http://maps.massgis.state.ma.us/map_ol_nov_2012/moris.php
[Fri Nov 09 16:17:09 2012] [error] [client 127.0.0.1] File does not exist: 
/opt/massgis/wwwroot/metadata/GISDATA.MWRASERVICE_POLY.xml
[Fri Nov 09 16:17:09 2012] [error] [client 146.243.44.177] error fetching 
metadata file (return code 256) 
http://127.0.0.1/metadata/GISDATA.MWRASERVICE_POLY.xml at 
/opt/massgis/cgi-bin/mkzip_nov_2012 line 183., referer: 
http://maps.massgis.state.ma.us/map_ol_nov_2012/moris.php
[Fri Nov 09 16:17:09 2012] [error] [client 146.243.44.177] Use of uninitialized 
value in concatenation (.) or string at /opt/massgis/cgi-bin/mkzip_nov_2012 
line 199., referer: http://maps.massgis.state.ma.us/map_ol_nov_2012/moris.php
[Fri Nov 09 16:17:09 2012] [error] [client 146.243.44.177] /bin/bash: -c: line 
0: unexpected EOF while looking for matching `'', referer: 
http://maps.massgis.state.ma.us/map_ol_nov_2012/moris.php
[Fri Nov 09 16:17:09 2012] [error] [client 146.243.44.177] /bin/bash: -c: line 
1: syntax error: unexpected end of file, referer: 
http://maps.massgis.state.ma.us/map_ol_nov_2012/moris.php

Original issue reported on code.google.com by Aleda.Fr...@state.ma.us on 9 Nov 2012 at 9:21

Attachments:

GoogleCodeExporter commented 9 years ago
Same as Issue 171? 

Original comment by Aleda.Fr...@state.ma.us on 5 Dec 2012 at 5:43

GoogleCodeExporter commented 9 years ago
Would you help me w/ a simple use case?  Looking at the nice examples you gave 
me above, it looks like you fired the export by using a shape.  Here are two 
examples that are from simple bbox queries.

wget --header "Content-Type:text/xml" --post-file=26986.post 
'http://giswebservices.massgis.state.ma.us/geoserver/wfs' -O 26986.ZIP
Gives us a nice ZIP as we'd expect.

wget --header "Content-Type:text/xml" --post-file=26918.post 
'http://giswebservices.massgis.state.ma.us/geoserver/wfs' -O 26918.ZIP
Gives us a ZIP w/o any features.  However, there is only one EPSG that is part 
of the POST (which differs from the more complex by-shape export from your 
example).  So can you tell me what is broken here?  Do the coordinates always 
need an EPSG defined?  And it should be 26986?

Original comment by cpl...@gmail.com on 25 Jun 2013 at 3:51

Attachments:

GoogleCodeExporter commented 9 years ago
I think I've figured our my questions for #2 above.  I'll be back . . .

Original comment by cpl...@gmail.com on 25 Jun 2013 at 4:37

GoogleCodeExporter commented 9 years ago
Please try r502.

Original comment by cpl...@gmail.com on 25 Jun 2013 at 5:34

GoogleCodeExporter commented 9 years ago
So far I tried all 3 (26918, 26919, 4326) in Firefox successfully, with custom 
basemap.

Original comment by Aleda.Fr...@state.ma.us on 25 Jun 2013 at 6:09

GoogleCodeExporter commented 9 years ago
All my vector testing is good so far - 4 browsers, different basemaps, 3 
different ways of extracting.  Rasters, however,

http://maps.massgis.state.ma.us/map_ol_to5b/oliver.php?lyrs=Modeled%20Wind%20Spe
ed%20at%20100M~massgis:GISDATA.IMG_WIND_SPD100M~GISDATA.IMG_WIND_SPD100M::Defaul
t&bbox=-73.90661498992527,41.51844894553887,-69.47088501007312,42.58706179928094
6&coordUnit=m&measureUnit=m&base=MassGIS_Basemap¢er=-7980355.1456062,5169222.16
66416&zoom=9&opacity=1&baseO=1&filt=undefined

The UI says we can download a raster in the 4 different projections. 
Does extracting this raster in different projections really download it in 
different projections? It seems to always give me 26986 I think.  It's hard for 
me to read the WFS request in Firebug, because it's "Charlton-style".  When I 
ask for 4326 this is what I see: 

<layers><layer wmsStyle="" wmsLayer="GISDATA.IMG_WIND_SPD100M" name="Modeled 
Wind Speed at 100M" 
baseURL="http://giswebservices.massgis.state.ma.us/geoserver/wms?REQUEST___EQ___
GetMap___AMP___VERSION___EQ___1.1.0___AMP___SERVICE___EQ___WMS___AMP___EXCEPTION
___EQ___application/vnd.ogc.se_inimage___AMP___layers___EQ___massgis:GISDATA.IMG
_WIND_SPD100M___AMP___FORMAT___EQ___image/geotiff___AMP___bbox___EQ___-866.45248
10006,809269.19714698,369365.173507,929393.88570299___AMP___srs___EQ___EPSG:2698
6___AMP___width___EQ___1851___AMP___height___EQ___601"><metadata>http://www.mass
.gov/anf/research-and-tech/it-serv-and-support/application-serv/office-of-geogra
phic-information-massgis/datalayers/windspeed.html</metadata><metadata>http://ma
ps.massgis.state.ma.us/metadata/GISDATA_IMG_WIND_SPD100M.xml</metadata></layer><
zip name="wind_4326_custom"/></layers>

If we're not supporting anything bug 26986 for rasters we should grey out the 
other projections. I'm having trouble finding notes on this... 

Original comment by Aleda.Fr...@state.ma.us on 25 Jun 2013 at 7:27

GoogleCodeExporter commented 9 years ago
If I had it to do over again, I would do away w/ that Charlton style for sure!

Exporting raster as WFS?  That doesn't seem like it even makes sense.

Original comment by cpl...@gmail.com on 25 Jun 2013 at 7:36

GoogleCodeExporter commented 9 years ago
Ah, right, it's WMS isn't it? Any way I can get the actual request to 
GeoServer?  That would make more sense to me.

Original comment by Aleda.Fr...@state.ma.us on 25 Jun 2013 at 7:38

GoogleCodeExporter commented 9 years ago
We already had a note in our docs: 

"Currently, rasters can only be downloaded in NAD83/Massachusetts State Plane 
Coordinate System, Mainland Zone, meters - EPSG:26986."

so let's not look to support other projections as that would probably get us 
into WCS territory.

But we should, if someone only has one raster layer - currently it looks in the 
UI as if they get to download it in 4 projections, we should grey out the 
non-26986 options.

Original comment by Aleda.Fr...@state.ma.us on 25 Jun 2013 at 7:44

GoogleCodeExporter commented 9 years ago
See what you think about r506.

Basically, if they are ONLY exporting a raster, the projection options are 
disabled.  In any other case, they are enabled (including when they are 
exporting a combo of features and shapes -- in that case, I hope the only 
available... stuff will clue people in).

Original comment by cpl...@gmail.com on 25 Jun 2013 at 8:40

GoogleCodeExporter commented 9 years ago
I like it, letting Emily know... 

Original comment by Aleda.Fr...@state.ma.us on 26 Jun 2013 at 3:03

GoogleCodeExporter commented 9 years ago
Emily likes the raster change too. 
She's going to do a little extract testing today.  I have done a number of 
combinations successfully so far:

    FF towns bbox custom basemap 26986
    FF towns bbox custom basemap 26918
    FF towns bbox custom basemap 26919
    FF towns bbox custom basemap 4326
    FF towns bbox google basemap 26986
    FF towns bbox google basemap 26918
    FF towns bbox google basemap 26919
    FF towns bbox google basemap 4326 
    FF towns draw google basemap 26986 
    FF towns draw google basemap 26918 
    FF towns draw google basemap 26919
    FF towns draw google basemap 4326 
    FF schools by town google basemap 4326
    IE towns draw google basemap 4326 
    Chrome schools by town google basemap 26918
    Chrome towns bbox google basemap 4326
    Safari towns bbox google basemap 4326

Original comment by Aleda.Fr...@state.ma.us on 26 Jun 2013 at 3:07

GoogleCodeExporter commented 9 years ago
Hi Aleda,

This looks fixed to me. Here's what I tested:

IE schools bbox custom basemap 26918
IE schools bbox custom basemap 26919
IE schools bbox custom basemap 4326
Chrome schools draw bing basemap 26918
Chrome schools draw bing basemap 26919
Chrome schools draw bing basemap 4326
Safari schools by town custom basemap 26918
Safari schools by town custom basemap 26919
Safari schools by town custom basemap 4326

Thanks,

Emily

Original comment by Aleda.Fr...@state.ma.us on 26 Jun 2013 at 7:45