Re: [postgis-users] Missing postgis_config.h

2010-03-04 Thread Dan Ramage
Mark,

Well, something odd has happened. I checked out PostGIS from svn, got it
built and installed.
After seeing your email just now, I tried building the 1.5 release again,
untarred it, ran configure and then make and it built this time.

Could something in the environment have changed when I  ran the 'sh
autogen.sh' before running the configure in the svn checkout version?


Dan

-Original Message-
From: postgis-users-boun...@postgis.refractions.net
[mailto:postgis-users-boun...@postgis.refractions.net] On Behalf Of Mark
Cave-Ayland
Sent: Thursday, March 04, 2010 9:31 AM
To: PostGIS Users Discussion
Subject: Re: [postgis-users] Missing postgis_config.h

Dan Ramage wrote:

> I'm trying to make the latest 1.5.0 as well as the 1.4.1 release, 
> however I am getting an error of:
> 
> "liblwgeom.h:18:31: error: ../postgis_config.h: No such file or directory"
> 
>  
> 
> I see in the archives this was an issue with a previous version and the 
> suggestion was to pull from the archive.
> 
> Should I do the same as well, or might there be another issue?

Hi Dan,

postgis_config.h is generated by running configure. What does the output 
of the configure command look like?


ATB,

Mark.

-- 
Mark Cave-Ayland - Senior Technical Architect
PostgreSQL - PostGIS
Sirius Corporation plc - control through freedom
http://www.siriusit.co.uk
t: +44 870 608 0063

Sirius Labs: http://www.siriusit.co.uk/labs
___
postgis-users mailing list
postgis-users@postgis.refractions.net
http://postgis.refractions.net/mailman/listinfo/postgis-users

___
postgis-users mailing list
postgis-users@postgis.refractions.net
http://postgis.refractions.net/mailman/listinfo/postgis-users


Re: [postgis-users] Missing postgis_config.h

2010-03-04 Thread Mark Cave-Ayland

Dan Ramage wrote:

I’m trying to make the latest 1.5.0 as well as the 1.4.1 release, 
however I am getting an error of:


“liblwgeom.h:18:31: error: ../postgis_config.h: No such file or directory”

 

I see in the archives this was an issue with a previous version and the 
suggestion was to pull from the archive.


Should I do the same as well, or might there be another issue?


Hi Dan,

postgis_config.h is generated by running configure. What does the output 
of the configure command look like?



ATB,

Mark.

--
Mark Cave-Ayland - Senior Technical Architect
PostgreSQL - PostGIS
Sirius Corporation plc - control through freedom
http://www.siriusit.co.uk
t: +44 870 608 0063

Sirius Labs: http://www.siriusit.co.uk/labs
___
postgis-users mailing list
postgis-users@postgis.refractions.net
http://postgis.refractions.net/mailman/listinfo/postgis-users


[postgis-users] Missing postgis_config.h

2010-03-04 Thread Dan Ramage
I'm trying to make the latest 1.5.0 as well as the 1.4.1 release, however I
am getting an error of:

"liblwgeom.h:18:31: error: ../postgis_config.h: No such file or directory"

 

I see in the archives this was an issue with a previous version and the
suggestion was to pull from the archive. 

Should I do the same as well, or might there be another issue?

 

Thanks,

 

Dan

___
postgis-users mailing list
postgis-users@postgis.refractions.net
http://postgis.refractions.net/mailman/listinfo/postgis-users


Re: [postgis-users] Looking for a equivalent of st_getpoint() to replace Z in a given point in a linestring

2010-03-04 Thread Bruno Friedmann
On 03/04/2010 11:11 AM, Olivier Courtin wrote:
> 
> On Mar 4, 2010, at 9:48 AM, Bruno Friedmann wrote:
> 
>> Perhaps in documentation we need a cross link (see also) between
>> st_setpoint (the setter) and st_pointn (the getter).
> 
> Could be better yes, done in SVN ones:
> 
> 
> 
> Tks for the report,
> 
> -- 
> Olivier

You're welcomed 

The last disturbing point I found is the following :

st_setpoint is zero indexed
st_pointn is 1 indexed ...

So it force in loop to continually adjust index ...
seems the two functions doesn't have the same history, but would be great ? for 
2.x version to standardized them ?
or having a st_getpoint ( kind of alias of st_pointn ) also zero based.

What do you think about that ?


-- 

 Bruno Friedmann

Ioda-Net Sàrl
  2830 Vellerat - Switzerland

___
postgis-users mailing list
postgis-users@postgis.refractions.net
http://postgis.refractions.net/mailman/listinfo/postgis-users


Re: [postgis-users] Looking for a equivalent of st_getpoint() to replace Z in a given point in a linestring

2010-03-04 Thread Olivier Courtin


On Mar 4, 2010, at 9:48 AM, Bruno Friedmann wrote:

Perhaps in documentation we need a cross link (see also) between  
st_setpoint (the setter) and st_pointn (the getter).


Could be better yes, done in SVN ones:



Tks for the report,

--
Olivier
___
postgis-users mailing list
postgis-users@postgis.refractions.net
http://postgis.refractions.net/mailman/listinfo/postgis-users


Re: [postgis-users] Db connect

2010-03-04 Thread Nicolas Ribot
> With them in place..
> ERROR received
> Parse error: syntax error, unexpected '=' in C:\OSGeo4W\apache\htdocs\lu.php 
> on line 2
>

Hi,

$db_handle = pg_connect(”host = localhost port = 5432
 dbname = postgis user = postgres password = GrassJump”);

Put this on one line, not two.
Escape your '\' chars: c:\\OSGeo4W\\...

Nico
___
postgis-users mailing list
postgis-users@postgis.refractions.net
http://postgis.refractions.net/mailman/listinfo/postgis-users


Re: [postgis-users] Looking for a equivalent of st_getpoint() to replace Z in a given point in a linestring

2010-03-04 Thread Bruno Friedmann
On 03/04/2010 09:15 AM, Olivier Courtin wrote:
> 
> On Mar 4, 2010, at 9:12 AM, Bruno Friedmann wrote:
> 
> Bruno,
> 
>> We have the st_setpoint() and the st_numpoints that I can use to loop
>> for each point.
>> but I've not found a st_getpoint(line_geom, index point) returning the
>> point geom.
> 
> PointN is your friend
> http://postgis.refractions.net/documentation/manual-1.5/ST_PointN.html
> 
> Have a look to the example with generate_series loop construction
> 
> -- 
> Olivier
> 

Thank you Olivier, I've missed it !

Perhaps in documentation we need a cross link (see also) between st_setpoint 
(the setter) and st_pointn (the getter).


-- 

 Bruno Friedmann

___
postgis-users mailing list
postgis-users@postgis.refractions.net
http://postgis.refractions.net/mailman/listinfo/postgis-users


Re: [postgis-users] Looking for a equivalent of st_getpoint() to replace Z in a given point in a linestring

2010-03-04 Thread Olivier Courtin


On Mar 4, 2010, at 9:12 AM, Bruno Friedmann wrote:

Bruno,

We have the st_setpoint() and the st_numpoints that I can use to  
loop for each point.
but I've not found a st_getpoint(line_geom, index point) returning  
the point geom.


PointN is your friend
http://postgis.refractions.net/documentation/manual-1.5/ST_PointN.html

Have a look to the example with generate_series loop construction

--
Olivier

___
postgis-users mailing list
postgis-users@postgis.refractions.net
http://postgis.refractions.net/mailman/listinfo/postgis-users


[postgis-users] Looking for a equivalent of st_getpoint() to replace Z in a given point in a linestring

2010-03-04 Thread Bruno Friedmann
Hi all,

After looking around into docs & google, I've the following requirement

I've a table of lines (4d). For each of them I need to replace the Z of each 
point.

We have the st_setpoint() and the st_numpoints that I can use to loop for each 
point.
but I've not found a st_getpoint(line_geom, index point) returning the point 
geom.
So I can get and use the st_x,st_y,st_z,st_m of the desired point and rebuild a 
precise point geom with wanted Z .

Any ideas or ways to search is welcome !


-- 

 Bruno Friedmann
___
postgis-users mailing list
postgis-users@postgis.refractions.net
http://postgis.refractions.net/mailman/listinfo/postgis-users