Hi Andrea,

Thank you for your response. In fact that is an alternative that I
have to explore a little more.

But anyway, I thought to work out the shapefiles to maintain the same
structure in each case.

Thank you!
Best Regards,
André

2012/6/24 Andrea Aime <[email protected]>:
> On Wed, Jun 20, 2012 at 12:54 PM, André Matos <[email protected]> wrote:
>>
>> As far as I know geoserver, the layer to display must be defined
>> statically, i. e. the geotools store returns which shapefiles exists,
>> and in geoserver world the feature source will be mapped to a layer.
>> But, this mapping must be defined administratively, choosing the store
>> and the layer in geoserver.
>>
>> To achieve this, I find out that I can develop a data store that
>> returns a single feature source, publish it as a layer in geoserver
>> and then select the shapefile using the cql_filter parameter along
>> with the filters for data...
>>
>> I know that geoserver works a little different and that's why need
>> your orientation.
>> Do you have any sugestions?
>
>
> What you are suggesting is going to work only if the structure of the layer,
> that is, SRS, list and type of attributes, as well as type of the geometry,
> is the same for all the dynamic layers you want to expose.
>
> You might be better off using REST config and adding the layers you need
> dynamically from another application/script:
> http://docs.geoserver.org/latest/en/user/restconfig/rest-config-api.html
>
> 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
> mob:    +39 339 8844549
>
> 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
>

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to