Daniel Kastl | 1 Aug 2008 02:29
Picon
Picon

Re: pgrouting

Hi,

If you have no idea what to start with I recommend you to take a look at
the tutorial: http://pgrouting.postlbs.org/wiki/WorkshopFOSS4G2007

Daniel

searchelite schrieb:
> Hi all..can anyone tell me about the pgrouting..
> I have roads table, vehicle point table and emergency point table..
> I want to calculate shortest route where vehicle point as the source and
> emergency point as a target..
>
> Thank you 
>   
danny | 1 Aug 2008 12:12
Picon

Merge all polygons from a dataset

Hello everybody,

I've converted a shapefile of Europe to PostGIS. I would like to merge all the countries together so that I only have one polygon left, the whole contour of Europe. I have tried ST_Union that gives me no result. I've tried several other functions to no avail. Does anybody know how I should proceed?

Many thanks,

Erik
_______________________________________________
postgis-users mailing list
postgis-users <at> postgis.refractions.net
http://postgis.refractions.net/mailman/listinfo/postgis-users
Sophie GRAS | 1 Aug 2008 12:20
Picon
Favicon

Re: JSON

Hi everybody,
i want to use the asgeojson function.
Do you know where we can find the 1.3.4 version of postgis ?
once you have your data in the "geojson format", how do you "call" it in the json file ?
Thanks for your help

Sophie

----- Mail Original -----
De: "Paragon Corporation" <lr <at> pcorp.us>
À: "PostGIS Users Discussion" <postgis-users <at> postgis.refractions.net>
Envoyé: Jeudi 31 Juillet 2008 07:16:24 GMT +01:00 Amsterdam / Berlin / Berne / Rome / Stockholm / Vienne
Objet: RE: [postgis-users] JSON

We should update the docs to have an Availability section for the Geometry
Outputs.  Well at the very least for the ST_AsGeomJson.

It confused me too when  I tried to use that function and realized it was in
an unreleased version.
 

-----Original Message-----
From: postgis-users-bounces <at> postgis.refractions.net
[mailto:postgis-users-bounces <at> postgis.refractions.net] On Behalf Of Paul
Ramsey
Sent: Wednesday, July 30, 2008 7:29 PM
To: PostGIS Users Discussion
Subject: Re: [postgis-users] JSON

I think it's unreleased on the 1.3 branch. I have it here on my development
box.  So 1.3.4 would have it.

# select st_asgeojson(geom) from fe_edges limit 1;
                                                          st_asgeojson
----------------------------------------------------------------------------
----------------------------------------------------
 
{"type":"MultiLineString","coordinates":[[[-89.734634999999997,31.4920720000
00000],[-89.734955999999997,31.492237999999997]]]}
(1 row)


On Wed, Jul 30, 2008 at 4:16 PM, Jim <jbucher <at> cnrit.tamu.edu> wrote:
> I just installed 1.3.3 and I don't see an ST_AsGeoJson or an AsGeoJson
> function.
>
> Paul Ramsey wrote:
>>
>> Jim,
>>
>> We've got that contribution already,
>>
>>
>> http://postgis.refractions.net/documentation/manual-1.3/ch06.html#id2
>> 975494
>>
>> Thanks though!
>>
>> Paul
>>
>
> _______________________________________________
> postgis-users mailing list
> postgis-users <at> postgis.refractions.net
> http://postgis.refractions.net/mailman/listinfo/postgis-users
>
_______________________________________________
postgis-users mailing list
postgis-users <at> postgis.refractions.net
http://postgis.refractions.net/mailman/listinfo/postgis-users


_______________________________________________
postgis-users mailing list
postgis-users <at> postgis.refractions.net
http://postgis.refractions.net/mailman/listinfo/postgis-users
_______________________________________________
postgis-users mailing list
postgis-users <at> postgis.refractions.net
http://postgis.refractions.net/mailman/listinfo/postgis-users
Mark Cave-Ayland | 1 Aug 2008 12:41
Picon

Re: postgis on Debian 4.0

Adrian wrote:
> I'm trying to create a postgis database on a brand new install of Debian 
> 4.0r2 (which I understand is the stable, rock solid no problems 
> version), using the following steps:
> 
> aptitude install postgresql-8.1-postgis
> su - postgres
> createuser <username>
> createdb -E UTF8 -O <username> <dbname>
> createlang plpgsql <dbname>
> 
> Everything looks OK until I do
> 
> psql -d gis -f /usr/share/postgresql-8.1-postgis/lwpostgis.sql
> 
> and then I get lots of error messages that start with:
> 
> psql:/usr/share/postgresql-8.1-postgis/lwpostgis.sql:39: NOTICE:  type
> "histogram2d" is not yet defined
> DETAIL:  Creating a shell type definition.
> psql:/usr/share/postgresql-8.1-postgis/lwpostgis.sql:39: ERROR:  could
> not load library "/usr/lib/postgresql/8.1/lib/liblwgeom.so.1.1":
> /usr/lib/postgresql/8.1/lib/liblwgeom.so.1.1: undefined symbol:
> vacuum_delay_point
> psql:/usr/share/postgresql-8.1-postgis/lwpostgis.sql:44: ERROR:  current
> transaction is aborted, commands ignored until end of transaction block
> 
> Any suggestions on how to fix it? I would have though many people have 
> been here before me, but I can't find them with Google. It looks to me 
> like the 8.1 version of the lwpostgis.sql script doesn't match the 
> shared library in the 8.1 release.

Eh? This looks like a broken package/installation - vacuum_delay_point 
was added in PostgreSQL 8.0 and so something else is wrong here. Are you 
sure you don't have multiple versions of PostGIS / lwpostgis.sql installed?

BTW PostgreSQL 8.1 and PostGIS 1.1 are both extremely old - you should 
really consider building the latest PostGIS 1.3.x release to avoid 
several nasty PostGIS bugs, and preferably a newer version of PostgreSQL 
at the same time.

ATB,

Mark.

--

-- 
Mark Cave-Ayland
Sirius Corporation - The Open Source Experts
http://www.siriusit.co.uk
T: +44 870 608 0063
Pedro Doria Meunier | 1 Aug 2008 12:37
Favicon

Re: Merge all polygons from a dataset

Hi Erik,

(PostGIS 'listers' please forgive me)

I know this is a bit off-topic but have you tried OpenJump?
http://openjump.org/wiki/show/HomePage

You have easy-going multiple polygons merging...

As to what Erik asked, I'd also like to know as I've never tried that too ...

HTH,
Pedro Doria Meunier


On Fri, 2008-08-01 at 12:12 +0200, danny wrote:
Hello everybody,

I've converted a shapefile of Europe to PostGIS. I would like to merge all the countries together so that I only have one polygon left, the whole contour of Europe. I have tried ST_Union that gives me no result. I've tried several other functions to no avail. Does anybody know how I should proceed?

Many thanks,

Erik

_______________________________________________ postgis-users mailing list postgis-users <at> postgis.refractions.net http://postgis.refractions.net/mailman/listinfo/postgis-users
_______________________________________________
postgis-users mailing list
postgis-users <at> postgis.refractions.net
http://postgis.refractions.net/mailman/listinfo/postgis-users
Courtin Olivier | 1 Aug 2008 12:41
Favicon

Re: JSON


On Aug 1, 2008, at 12:20 PM, Sophie GRAS wrote:

Hi Sophie,

> i want to use the asgeojson function.
> Do you know where we can find the 1.3.4 version of postgis ?

This version is not yet released,
You could use the current SVN version from 1.3 branch:

svn checkout http://svn.refractions.net/postgis/branches/1.3 postgis-1.3

(require to have an svn client already installed, cf http://subversion.tigris.org/)

> once you have your data in the "geojson format", how do you "call"  
> it in the json file ?

Not sure to really understand the question, below a working use case:

SELECT ST_AsGeoJson(the_geom) FROM your_table LIMIT 1;

and copy/paste the result in OpenLayers:
cf <http://openlayers.org/dev/examples/vector-formats.html>

HTH,

--
Olivier
Obe, Regina | 1 Aug 2008 12:56
Favicon

RE: JSON

Sophie,
The 1.3.4 is well not actually released yet, but you can get it from the svn repository
By following the instructions here
http://postgis.refractions.net/download/  (on how to connect to the repository)
 
Then checkout the branches/1.3
 
I was hoping it would be a bit easier - to just download the postgis-svn.tar.gz (but looking at that - that looks like the 1.4 version which is kind of unstable at the moment I think).
 
HINT HINT to someone in dev group:  Maybe we should also output the 1.3 branch as a tar.gz?
 
After you have compiled etc, it outputs just the geojson part, so you'll need to glue the strings (forming your attribute) together with your favorite web language e.g. PHP, python, .NET, Perl, whatever
 
and then you could use OpenLayers which has a driver for GeoJSON format as described
 
 
and example here (actually this one you can cut and paste an individual GeoJSON output geometry to see how it looks - take for example Paul's example below - get rid of the line breaks and paste in)
 
Hope that helps,
Regina
 

From: postgis-users-bounces <at> postgis.refractions.net [mailto:postgis-users-bounces <at> postgis.refractions.net] On Behalf Of Sophie GRAS
Sent: Friday, August 01, 2008 6:20 AM
To: PostGIS Users Discussion
Subject: Re: [postgis-users] JSON

Hi everybody,
i want to use the asgeojson function.
Do you know where we can find the 1.3.4 version of postgis ?
once you have your data in the "geojson format", how do you "call" it in the json file ?
Thanks for your help

Sophie

----- Mail Original -----
De: "Paragon Corporation" <lr <at> pcorp.us>
À: "PostGIS Users Discussion" <postgis-users <at> postgis.refractions.net>
Envoyé: Jeudi 31 Juillet 2008 07:16:24 GMT +01:00 Amsterdam / Berlin / Berne / Rome / Stockholm / Vienne
Objet: RE: [postgis-users] JSON

We should update the docs to have an Availability section for the Geometry
Outputs.  Well at the very least for the ST_AsGeomJson.

It confused me too when  I tried to use that function and realized it was in
an unreleased version.
 

-----Original Message-----
From: postgis-users-bounces <at> postgis.refractions.net
[mailto:postgis-users-bounces <at> postgis.refractions.net] On Behalf Of Paul
Ramsey
Sent: Wednesday, July 30, 2008 7:29 PM
To: PostGIS Users Discussion
Subject: Re: [postgis-users] JSON

I think it's unreleased on the 1.3 branch. I have it here on my development
box.  So 1.3.4 would have it.

# select st_asgeojson(geom) from fe_edges limit 1;
                                                          st_asgeojson
----------------------------------------------------------------------------
----------------------------------------------------
 
{"type":"MultiLineString","coordinates":[[[-89.734634999999997,31.4920720000
00000],[-89.734955999999997,31.492237999999997]]]}
(1 row)


On Wed, Jul 30, 2008 at 4:16 PM, Jim <jbucher <at> cnrit.tamu.edu> wrote:
> I just installed 1.3.3 and I don't see an ST_AsGeoJson or an AsGeoJson
> function.
>
> Paul Ramsey wrote:
>>
>> Jim,
>>
>> We've got that contribution already,
>>
>>
>> http://postgis.refractions.net/documentation/manual-1.3/ch06.html#id2
>> 975494
>>
>> Thanks though!
>>
>> Paul
>>
>
> _______________________________________________
> postgis-users mailing list
> postgis-users <at> postgis.refractions.net
> http://postgis.refractions.net/mailman/listinfo/postgis-users
>
_______________________________________________
postgis-users mailing list
postgis-users <at> postgis.refractions.net
http://postgis.refractions.net/mailman/listinfo/postgis-users


_______________________________________________
postgis-users mailing list
postgis-users <at> postgis.refractions.net
http://postgis.refractions.net/mailman/listinfo/postgis-users

The substance of this message, including any attachments, may be confidential, legally privileged and/or exempt from disclosure pursuant to Massachusetts law. It is intended solely for the addressee. If you received this in error, please contact the sender and delete the material from any computer.

Help make the earth a greener place. If at all possible resist printing this email and join us in saving paper.

_______________________________________________
postgis-users mailing list
postgis-users <at> postgis.refractions.net
http://postgis.refractions.net/mailman/listinfo/postgis-users
Obe, Regina | 1 Aug 2008 13:15
Favicon

RE: Merge all polygons from a dataset

Erik,
How were you using ST_Union and what exactly do you mean by no result.  no result as it looks blank?  If you are using something like PgAdmin III - it will look blank because it exceeds the buffer supported by PgAdmin III.
 
SELECT the_geom is null
FROM (somequery or table) as foo
LIMIT 1
 
will tell you if its actually returning no geometry
 
Hope that helps,
Regina

From: postgis-users-bounces <at> postgis.refractions.net [mailto:postgis-users-bounces <at> postgis.refractions.net] On Behalf Of danny
Sent: Friday, August 01, 2008 6:12 AM
To: postgis-users <at> postgis.refractions.net
Subject: [postgis-users] Merge all polygons from a dataset

Hello everybody,

I've converted a shapefile of Europe to PostGIS. I would like to merge all the countries together so that I only have one polygon left, the whole contour of Europe. I have tried ST_Union that gives me no result. I've tried several other functions to no avail. Does anybody know how I should proceed?

Many thanks,

Erik

The substance of this message, including any attachments, may be confidential, legally privileged and/or exempt from disclosure pursuant to Massachusetts law. It is intended solely for the addressee. If you received this in error, please contact the sender and delete the material from any computer.

Help make the earth a greener place. If at all possible resist printing this email and join us in saving paper.

_______________________________________________
postgis-users mailing list
postgis-users <at> postgis.refractions.net
http://postgis.refractions.net/mailman/listinfo/postgis-users
fsalas | 1 Aug 2008 14:10
Picon

error with PgRouting 1.02 on Win32

 Bruce
Thanks for his instruction, right now it works well

 

Best regards Francisco salas



___________________________________
Dpto de Sistemas Informáticos
Oficina Central Grupo Empresarial GEOCUBA
Este mensaje esta libre de virus.
Revisado por Kaspersky Antivirus
----------------------------------------------------------------------
Engine version: 4.0.1.14 Engine date: 2002/06/25 Definition count: 917484 Definition date: 2008/07/31 MDAV version: 2.2.9
_______________________________________________
postgis-users mailing list
postgis-users <at> postgis.refractions.net
http://postgis.refractions.net/mailman/listinfo/postgis-users
Randall, Eric | 1 Aug 2008 14:27

RE: Merge all polygons from a dataset

As others have mentioned somewhere, you could also use:
 
select st_buffer(st_collect(the_geom),0) from yourpolytable
 
Eric
 
-----Original Message-----
From: postgis-users-bounces <at> postgis.refractions.net [mailto:postgis-users-bounces <at> postgis.refractions.net]On Behalf Of danny
Sent: Friday, August 01, 2008 6:12 AM
To: postgis-users <at> postgis.refractions.net
Subject: [postgis-users] Merge all polygons from a dataset

Hello everybody,

I've converted a shapefile of Europe to PostGIS. I would like to merge all the countries together so that I only have one polygon left, the whole contour of Europe. I have tried ST_Union that gives me no result. I've tried several other functions to no avail. Does anybody know how I should proceed?

Many thanks,

Erik
_______________________________________________
postgis-users mailing list
postgis-users <at> postgis.refractions.net
http://postgis.refractions.net/mailman/listinfo/postgis-users

Gmane