While it is possible to make a custom format (generating your own JSON
output) it seems a bit of a bother. I guess if you have to do this for the
Leaflet code to work you may consider using an a GeoServer SQL view (using
SQL to extract an appropriate X and Y column from the geometry).

--
Jody Garnett

On 8 December 2014 at 11:43, Mark Volz <[email protected]> wrote:

>  Hello
>
>
>
> I would like to configure leaflet-search
> http://labs.easyblog.it/maps/leaflet-search/ to search against parcels
> that are stored in GeoServer.  In their examples their geoJSON is expecting
> the latitude and longitude to be in separate columns, while GeoServers
> default geoJSON format has the coordinates in an array.  A member of the
> leaflet mail list mentioned that I should add a column in my shapefile for
> lat and long so I can use leaflet search.  I don’t know if this would be
> the best solution as it would imply that I would need to change the data
> for all of my layers in GeoServer.  Instead I would like to check with this
> group to see if anyone has had success in either 1) creating a geoJSON
> template that populates the required latitude and longitude values from the
> shape itself, or 2) Reconfigured the code in leaflet to work with
> geoServers native geoJSON output.
>
>
>
> Please let me know if anyone has had success in configuring GeoServer and
> leaflet-search.
>
>
>
> Thank You
>
>
>
> Sincerely,
>
> *Mark Volz, GISP*
>
>
>
>
> ------------------------------------------------------------------------------
> Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
> from Actuate! Instantly Supercharge Your Business Reports and Dashboards
> with Interactivity, Sharing, Native Excel Exports, App Integration & more
> Get technology previously reserved for billion-dollar corporations, FREE
>
> http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
> _______________________________________________
> Geoserver-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/geoserver-users
>
>
------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to