[postgis-users] Is that possible a function to behave differently inside and outside another main function code?

rodrigosperb rodrigosperb at gmail.com
Thu Nov 12 12:44:29 PST 2009


Not really... It is very unlikely that this situation would happen...

The functions are defined are monotonous and always grow (though eventual
steps my occur, this shouldn't be really a problem...)

Rodrigo Sperb


Kevin Neufeld wrote:
> 
> 
> rodrigosperb wrote:
> ...
>> Well, I'm quite sure that the input have at least 2 points. Because they
>> are
>> "bigger" functions (implemented as LINESTRING) that I cut a part (and my
>> RAISE NOTICEs during the code seem to indicate that this cutting performs
>> correctly), so they will have at least 2-points, start and end of the X
>> interval in which I cut the function to give as input.
>> 
> 
> Ah OK.  Is it possible your cutting would yield a vertical 2-point line? 
> Cuz such a line would have only 1 distinct X 
> value, right?  That's what I meant by erroneous input data.  If I
> understand correctly, based on your query logic, a 
> vertical line input into your function would result in a single POINT
> geometry which you try to turn into a LINESTRING.
> 
> -- Kevin
> _______________________________________________
> postgis-users mailing list
> postgis-users at postgis.refractions.net
> http://postgis.refractions.net/mailman/listinfo/postgis-users
> 
> 

-- 
View this message in context: http://old.nabble.com/Is-that-possible-a-function-to-behave-differently-inside-and-outside-another-main-function-code--tp26251542p26326042.html
Sent from the PostGIS - User mailing list archive at Nabble.com.




More information about the postgis-users mailing list