201 reputation
113
bio website combal.free.fr
location Paris, France
age 42
visits member for 1 year, 11 months
seen Oct 8 at 10:06

Scientist: expert in remote sensing and its use for environmental and agronomy monitoring. I code mostly with python, bash, gdal. Also developing some applications with Objective-C


Jan
7
comment How to update polygon longitude if negative?
Actually, I'm kind of swimming in circles: at the beginning, I wanted to go grom EPSG:4326 to another latlon/WGS84 with long in 0-360°, but get stuck because +lon_wrap is not supported (see gis.stackexchange.com/questions/79447). In your example i see different projections centered around Pacific, but nothing like a geodetic/WGS84. Would such a projection EPSG code exist?
Jan
7
comment How to update polygon longitude if negative?
Thanks for that, but I still answer the same error message. I replaced X(geometry) with ST_X(geometry): same error message too.
Jan
7
comment How to update polygon longitude if negative?
In principle, I'd agree with you. In this specific case, my problem is the dateline, that remain visible, because the polygons are split around it: once centering my openlyers view on the Pacific, the border of the polygons show the dateline, which I don't want.
Jan
7
comment How to change shapefile longitude from -180 - 180 to 0 - 360?
Yes, simple but perfectly working approach. Thanks! Now, I only need to figure out how to get ride of the vertical line (border between the two dissolved polygons) that remains after the dissolve operation.
Jan
7
comment How to update polygon longitude if negative?
by "layer" I meant the layer name. I edit my post in that sense, but the error message is still the same.
Jan
7
comment How to change shapefile longitude from -180 - 180 to 0 - 360?
Yes, that's what I need (sorry for my typo, I've edited it now). I saw your answer below, the problem is that everything is shifted, including the parts in 0-180 that should not move.
Dec
4
comment How to change shapefile longitude from -180 - 180 to 0 - 360?
Sorry, it is not what I meant: the command you gave shifts the values, while I want to have another longitude mapping domain: [0 360] instead of [-180, 180], which means that the map will be centered on 180° (in the pacific) instead of 0° (Greenwhich). So I guess the operation should include some modulo operator?
Oct
4
comment openlayers: reading polygon attributes
Thanks a lot, that's exactly what I was looking for!!
Oct
4
comment openlayers: reading polygon attributes
Thanks for the tip, I'll play around with that!
Oct
2
comment OpenLayers: constraint a map extent and fit a div
I've just tried: it changes nothing, the shapefile keeps on repeating...
Oct
2
comment OpenLayers: constraint a map extent and fit a div
Thanks for that. I guess my problem is related to what I read in the link you provided. Do you know how I can forbid the layer named 'lmes' (colored shapefiles in the image) to display before -180 and after 180? I suppose it would help framing the view
Oct
1
comment open layers: how to acces an event attribute value from WMSGetFeatureInfo
I'm using geoserver, so it support GML, and the layer is queryable.
Feb
1
comment Python OGR: convert a point geometry into polygon
Thanks for the detailed comments and code snippets!
Feb
1
comment Python OGR: convert a point geometry into polygon
Many thanks for you comment (I saw it after posting an answer to my own question). I will use your snippet in my code. Thanks again!
Dec
26
comment how to cast integer to float in an ogrinfo sql statement?
Thanks for your 2 lines solutions! Nathan W (below) explains why it is not possible to do it in a single command.
Dec
26
comment how to cast integer to float in an ogrinfo sql statement?
Many thanks for your detail answer! I should have search more on ogr pages...
Nov
19
comment How to create PostGIS template?
To complete your answer (which works on my Mac): on a Mac, if you installed postgis from Kyngchaos ports, the postgis installation file is: /usr/local/pgsql/share/extension/postgis--2.0.1.sql