[postgis-devel] Build ST_GeomFromGeoJSON

Paul Ramsey pramsey at opengeo.org
Sat Nov 19 15:46:38 PST 2011


./autogen.sh to regenerate ./configure

p

On Sat, Nov 19, 2011 at 2:52 PM,  <maplabs at light42.com> wrote:
> maybe I am missing something basic... (Debian Wheezy, Pg 9.1, postgis_trunk
> rev 8189)
>
> sudo apt-get install libjson0-dev
>
> ## package shows installed  /usr/include/json/   and /usr/lib/libjson.so
> .so.0  .so.0.0.1  .a   .la
>
> make clean; ../configure ; make; sudo make install
> createdb test2; ...
>
> \df st_geomfrom*
> ..   st_geomfromgeojson
>
> select st_astext( st_geomfromgeojson( st_asgeojson( 'POINT(1 1)')));
>
> ## fail ##
>
> make clean
> ./configure --with-jsondir=/usr
>
> WARNING: unrecognized options: --with-jsondir
> ..
> psql -c "drop database test2"
> createdb test3; ...
> ## fail
>
> select st_astext( st_geomfromgeojson( st_asgeojson( 'POINT(1 1)')));
>
> -----
> ???
>
> -Brian
>
> -----------------------------------------------------------------------------------------------------------
>
> On Thu, 17 Nov 2011 16:19:59 -0800, Paul Ramsey <pramsey at opengeo.org> wrote:
> Thanks so much Kashif. I have applied your patch and added some guards
>>
>> to it's possible to compile without JSON-C supoprt, and a very minimal
>> number of regression tests (should be expanded to cover all geometry
>> types).
>> Yours,
>> Paul
>>
>> On Mon, Nov 14, 2011 at 8:10 AM, PostGIS <trac at osgeo.org> wrote:
>> > #376: Add ST_GeomFromGeoJSON
>> >
>> > ------------------------------------------------+---------------------------
>> >  Reporter:  colivier                            |       Owner:  colivier
>> >     Type:  enhancement                         |      Status:  new
>> >  Priority:  medium                              |   Milestone:  PostGIS
>> > 2.0.0
>> > Component:  postgis                             |     Version:  trunk
>> >  Keywords:  GeoJSON import  ST_GeomFromGeoJSON  |
>> >
>> > ------------------------------------------------+---------------------------
>> >
>> > Comment(by kashif):
>> >
>> >  I have attached a patch to the current svn for testing. >
>> > --
>> > Ticket URL: <http://trac.osgeo.org/postgis/ticket/376#comment:4>
>> > PostGIS <http://trac.osgeo.org/postgis/>
>> > The PostGIS Trac is used for bug, enhancement & task tracking, a user
>> > and developer wiki, and a view into the subversion code repository of
>> > PostGIS project. > _______________________________________________
>> > postgis-devel mailing list
>> > postgis-devel at postgis.refractions.net
>> > http://postgis.refractions.net/mailman/listinfo/postgis-devel
>> >
>> _______________________________________________
>> postgis-devel mailing list
>> postgis-devel at postgis.refractions.net
>> http://postgis.refractions.net/mailman/listinfo/postgis-devel
>>
>>
>
>
> _______________________________________________
> postgis-devel mailing list
> postgis-devel at postgis.refractions.net
> http://postgis.refractions.net/mailman/listinfo/postgis-devel
>



More information about the postgis-devel mailing list