Octavian,

this looks to me like a WFS filter query, perhaps one that could be 
implemented with the Intersects operator. Do you want areas that have 
some part inside your geometry (Intersects) or complete containment 
(Conatains/Within)?

See the WFS_getFeatureIntersects-1.1.xml in the GeoServer demo requests 
and B.3.16 Example 16 in the WFS 2.0.2 standard:
http://docs.opengeospatial.org/is/09-025r2/09-025r2.html#331

To use XML WFS requests from JavaScript, you will need to satisfy the 
JavaScript origin rules for XML requests; you will need a GeoServer 
instance that appears to clients to be on the same server as your Google 
Map (either installed there or with a reverse proxy). Client JavaScript 
makes WFS filter query to get XML. The GeoServer instance connects to 
your data store, which contains a layer of all the administrative areas, 
one feature per area, at all granularities (so they overlap).

Your Google Map will likely be in EPSG:3857. GeoServer will perform all 
reprojections to convert between this coordinate reference system and 
that of your data.

For WMS mapping you could use a property that is filtered based on the 
scale of the map to prevent overlap.

Kind regards,
Ben.

On 27/10/15 03:17, Octavian Machidon wrote:
> Hello,
>
> I working on a Web app and I need some Geolocation functionality.
> I am new to Geoserver, and would like to ask for some help/hints to put me
> on the right track.
> Here's the deal:
> Based on a polygon selection on a Google Map, I need to retrieve the list
> of administrative areas in that polygon area (countries + states +
> counties). The database must consist of all administrative areas in the US
> and as many as possible in the rest of the world (down to
> regions/states/provinces).
>
> Any hints are greatly appreciated.
>
> Thanks.
>
>
>
> ------------------------------------------------------------------------------
>
>
>
> _______________________________________________
> Geoserver-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/geoserver-users
>

-- 
Ben Caradoc-Davies <[email protected]>
Director
Transient Software Limited <http://transient.nz/>
New Zealand

------------------------------------------------------------------------------
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to