On Wed, Aug 24, 2011 at 8:58 PM, Ivan Suftin <[email protected]> wrote:
> Some followup...
>
> I've been debugging through the code for 
> wfs-2.1.1/org.geoserver.wfs.response/ShapeipOutputFormat.java
>
> The call I am making:
> http://localhost:8080/upload/ows?service=WFS&version=1.0.0&request=GetFeature&typeName=upload:Yahara_River_HRUs_alb_eq&maxFeatures=50&outputFormat=SHAPE-ZIP
>
> In ShapeZipOutputFormat, line 184, we have:
> FeatureTypeInfo ftInfo = 
> catalog.getFeatureTypeByName(fc.getSchema().getName());
>
> The variable ftInfo comes back null from this call.
>
> fc.getSchema().getName() comes back with a populated object (though the 
> namespace property for this object is http://www.opengis.net/gml and I 
> thought it should be either "upload" or "gov.usgs.cida.gdp.upload" which is 
> the namespace URI for the "upload" workspace

This is wrong, it might seem the datastore is not respecting the
namespace configured for it.
Are you using a custom data store that does not respect the basics?
Or did you configure the store directly on the filesystem, instead of
using the GUI or
rest-config, possibly generating an invalid configuration?

I've tried with a few layers on different geoserver installations but
I cannot seem to reproduce
your issue. Here are a couple of examples, one in the default
workspace, the other in a secondary workspace

http://demo.geo-solutions.it/geoserver/ows?service=WFS&version=1.0.0&request=GetFeature&typeName=nurc:temporals&maxFeatures=50&outputFormat=shape-zip
http://demo.geo-solutions.it/geoserver/ows?service=WFS&version=1.0.0&request=GetFeature&typeName=cite:provrt&maxFeatures=50&outputFormat=shape-zip

Cheers
Andrea


-- 
-------------------------------------------------------
Ing. Andrea Aime
GeoSolutions S.A.S.
Tech lead

Via Poggio alle Viti 1187
55054  Massarosa (LU)
Italy

phone: +39 0584 962313
fax:      +39 0584 962313

http://www.geo-solutions.it
http://geo-solutions.blogspot.com/
http://www.youtube.com/user/GeoSolutionsIT
http://www.linkedin.com/in/andreaaime
http://twitter.com/geowolf

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

------------------------------------------------------------------------------
Special Offer -- Download ArcSight Logger for FREE!
Finally, a world-class log management solution at an even better 
price-free! And you'll get a free "Love Thy Logs" t-shirt when you
download Logger. Secure your free ArcSight Logger TODAY!
http://p.sf.net/sfu/arcsisghtdev2dev
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to