Letractively / morisoliver

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

Modify OLIVER to handle shapefile-based data layers #142

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Shapefile can be put into GeoServer, but OLIVER needs to be tweaked to handle 
them. 

There are several references to "SHAPE" in the map.js which needs to be 
"the_geom" for a shapefile.  So somehow the shapefile needs to be detected (we 
could use a new "type" in the folderset - currently it's "pt", "line"/ "poly", 
"raster" - we could add "shp".  Or I could put "shapefile" as a GeoServer 
keyword which gets put into the sliced get capabilities output. 

Example of a good query: (same except for name of geometry field) 

<wfs:GetFeature resultType="hits" xmlns:wfs="http://www.opengis.net/wfs" 
service="WFS" version="1.1.0" xsi:schemaLocation="http://www.opengis.net/wfs 
http://schemas.opengis.net/wfs/1.1.0/wfs.xsd" 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><wfs:Query 
typeName="massgis:l3_taxpar_poly_assess" srsName="EPSG:26986" 
xmlns:massgis="http://massgis.state.ma.us/featuretype"><ogc:Filter 
xmlns:ogc="http://www.opengis.net/ogc"><ogc:Intersects><ogc:PropertyName>the_geo
m</ogc:PropertyName><gml:Polygon xmlns:gml="http://www.opengis.net/gml" 
srsName="EPSG:26986"><gml:exterior><gml:LinearRing><gml:posList>235937.50318189 
909939.59464296 235941.22231774 909939.59464296 235941.22231774 909943.31377881 
235937.50318189 909943.31377881 235937.50318189 
909939.59464296</gml:posList></gml:LinearRing></gml:exterior></gml:Polygon></ogc
:Intersects></ogc:Filter></wfs:Query></wfs:GetFeature>

The other problem is that once the GetFeature is done and the good response 
comes back the table is not drawn.

Original issue reported on code.google.com by Aleda.Fr...@state.ma.us on 3 Apr 2012 at 8:25

GoogleCodeExporter commented 8 years ago

Original comment by Aleda.Fr...@state.ma.us on 3 Apr 2012 at 8:27

GoogleCodeExporter commented 8 years ago
Now the table just worked... odd, but good.

OK, so maybe the_geom just needs to get put in for SHAPE for certain places 
based on knowing which layer is a shapefile. 

Original comment by Aleda.Fr...@state.ma.us on 3 Apr 2012 at 8:28

GoogleCodeExporter commented 8 years ago
now detects if folderset has type shp, swaps SHAPE for the_geom in that case
for WFS queries, also small change to detect shp for enable of shapefile radio
button in extract, however did not code for proper geometry icon therefore all
shp layers use the db icon by default

Original comment by Aleda.Fr...@state.ma.us on 27 Apr 2012 at 7:55

GoogleCodeExporter commented 8 years ago
I think the yellow "!" icon also does not go away as it should for shp 
datalayers.

Original comment by Aleda.Fr...@state.ma.us on 10 May 2012 at 8:37

GoogleCodeExporter commented 8 years ago
This works well but it also needs to be done for the filter builder code - 
toolConfig_sample_filter.js

Original comment by Aleda.Fr...@state.ma.us on 14 Nov 2012 at 9:25

GoogleCodeExporter commented 8 years ago

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