Re: [gdal-dev] Motion: adopt RFC 66: OGR random layer read/write capabilities

2016-10-05 Thread jratike80
+1 -Jukka Rahkonen- Even Rouault-2 wrote > Hi, > > I know that Howard has expressed some concerns regarding the potential > confusion that this could add, but I'm not sure what better alternatives > there > would be to address the needs it tries to solve. > > So I move to adopt RFC 66: OGR r

Re: [gdal-dev] Time for 2.1.2 ?

2016-10-10 Thread jratike80
+1 QGIS users will probably appreciate https://trac.osgeo.org/gdal/ticket/6672 a lot. -Jukka Rahkonen- Even Rouault-2 wrote > Hi, > > I'd like to prepare a RC for a 2.1.2 bugfix release on Friday, unless > someone > needs more time to push a fix. If there are outstanding issues not yet in > t

Re: [gdal-dev] Outdated external overviews

2016-10-11 Thread jratike80
Hi, Hard to say if such use case exists. Perhaps if .ovr is actually not subsampled from the main data at all but tweaked from let's say 1:5 scale raster maps when the main maps are 1:2. I have created such overview stacks sometimes through .vrt. I am not sure if the automatic invalidatin

Re: [gdal-dev] New GMLAS (GML Application Schema) in trunk

2016-10-20 Thread jratike80
Hi Even I made a very short test with these data: http://xml.nls.fi/XML/Schema/sovellus/ktjkii/modules/kiinteistotietojen_kyselypalvelu_WFS/Asiakasdokumentaatio_wfs-2015/helmikuu2017/ktjkii-wfs-2015.xsd http://xml.nls.fi/XML/Schema/sovellus/ktjkii/modules/kiinteistotietojen_kyselypalvelu_WFS/Asia

Re: [gdal-dev] Wrongly identified SQLITE_BLOB as geomtry

2016-10-24 Thread jratike80
Please put a test db somewhere or describe how to create such a database. I made a quick test by importing some XML file with spatialite-gui 1.8.0-dev. it creates a table as CREATE TABLE "xml" ( "pk_uid" INTEGER PRIMARY KEY AUTOINCREMENT, "xml_document" BLOB NOT NULL ,"file_name" TEXT NOT NULL ,"s

Re: [gdal-dev] Wrongly identified SQLITE_BLOB as geomtry

2016-10-24 Thread jratike80
How did you create the database? It is a spatial db for Spatialite as well because it contains also field GEOMETRY which is registered in geometry_columns. DLL of the "timeseries" table is CREATE TABLE 'timeseries' ( ogc_fid INTEGER PRIMARY KEY, 'data' BLOB, 'end' VARCHAR, 'start' VARCHAR, 'statio

Re: [gdal-dev] Wrongly identified SQLITE_BLOB as geomtry

2016-10-24 Thread jratike80
Hi, It does smell like a bug. Could you repeat my test and take care to have the additional BLOB field created after the geometry field? For me this workaround seems to work and there is only one geometry left and "data" field is reported as "binary" type. FID Column = ogc_fid Geometry Column = g

Re: [gdal-dev] Motion: Promote 2.1.2RC4 for release

2016-10-25 Thread jratike80
Even Rouault-2 wrote > Motion: GDAL/OGR 2.1.2RC4 is promoted to be the official 2.1.2 final > release. > > --- > > +1 Even +1 -Jukka Rahkonen- -- View this message in context: http://osgeo-org.1560.x6.nabble.com/gdal-dev-Motion-Promote-2-1-2RC4-for-release-tp5292496p5292539.html Sent from t

Re: [gdal-dev] splitting other_tags from .osm file

2016-10-29 Thread jratike80
Hi, Have you tried "all_tags" http://www.gdal.org/drv_osm.html? Shapefiles are poor as target format because it limits the name of the tag to 10 characters, and the length of the value to 255 characters. I recommend to use Spatialite or GeoPackage instead. -Jukka Rahkonen- -- View this messag

Re: [gdal-dev] Motion: adopt RFC 65: IETF RFC7946 GeoJSON

2016-10-29 Thread jratike80
Conditional +1 Do I understand right that M must be dropped when writing geometries which include measure into RFC 7946 variant? This is not mentioned in GDAL RFC 65, how about in the code? -Jukka Rahkonen- -- View this message in context: http://osgeo-org.1560.x6.nabble.com/gdal-dev-Motion-a

Re: [gdal-dev] splitting other_tags from .osm file

2016-10-30 Thread jratike80
Hi, I apologize that I did not remember right what -all_tags is doing. The difference is as written in http://www.gdal.org/drv_osm.html "Similar to "other_tags", except that it contains both keys specifically identified to be reported as dedicated fields, as well as other keys." Thus all_tags co

Re: [gdal-dev] Dropping GeoPackage table doesn't reduce file size

2016-10-31 Thread jratike80
You must vacuum https://www.sqlite.org/lang_vacuum.html. It can be slow so you do not necessarily want to do it if your database is big and if you dropped just a small table. ogrinfo db.gpkg -sql "VACUUM" -Jukka Rahkonen- -- View this message in context: http://osgeo-org.1560.x6.nabble.com/gd

Re: [gdal-dev] Simple circle in OGR

2016-11-02 Thread jratike80
Hi, If you have defaultGeoSys.SetWellKnownGeogCS("EPSG:4326") then perhaps units are supposed to be in degrees. -Jukka Rahkonen- -- View this message in context: http://osgeo-org.1560.x6.nabble.com/Simple-circle-in-OGR-tp5294053p5294064.html Sent from the GDAL - Dev mailing list archive at Na

Re: [gdal-dev] GDAL WMTS Driver - How do you control the Tile Matrix Set's Tile Level?

2016-11-06 Thread jratike80
Hi, Did you forget to include your request? Or do you mean that you asked gdal_translate just to convert the whole data source that you defined with that xml file into some other format without defining the window by using -spat or -projwin? -Jukka Rahkonen- -- View this message in context: h

Re: [gdal-dev] Make gdal_polygonize to support the mask band

2016-11-07 Thread jratike80
Even Rouault-2 wrote > Le vendredi 04 novembre 2016 18:00:10, Rahkonen Jukka (MML) a écrit : >> Hi, >> >> Once again someone wants to get the footprints of valid data in images >> http://gis.stackexchange.com/questions/216624/creating-a-shapefile-for-foo >> tprint-of-tasters-valid-data-areas-with-

Re: [gdal-dev] How to replace an osm key?

2016-11-11 Thread jratike80
Hi, You can rename the fields with SQL ogrinfo -dialect sqlite -sql "select geometry, building as bldg from multipolygons" hamburg-latest.osm.pbf Geometry Column = GEOMETRY bldg: String (0.0) Slight drawback is that you must include all the attributes in SELECT but you can save the c

Re: [gdal-dev] Why are fields required in osmconf.ini file?

2016-11-17 Thread jratike80
georges wrote > Thank you for the quick reply Even! > > So this required predefined set of fields is a necessary step for any .osm > file conversion with ogr2ogr.exe? > Not only conversion from .osm to .shp? > But also to .pbf, geojson etc. ? Only exception and highly recommended if you want to g

Re: [gdal-dev] Converting MULTILINESTRING to LINESTRING

2016-11-18 Thread jratike80
Nelson A. de Oliveira wrote > Hi! > > Sorry if it's not the appropriated place to ask this, but is there a > way to convert MULTILINESTRING to LINESTRING? > For example: > > = > ogr2ogr -f "SQLite" -gt 65536 -dsco SPATIALITE=YES database.sqlite > shape.shp > ERROR 1: Cannot insert feature wit

Re: [gdal-dev] Unable to extract features from KML

2016-11-20 Thread jratike80
Hi, The main problem is that KML support such data models which do not suit well with the simple feature model of GDAL. You can get some information about that by reading http://www.gdal.org/drv_libkml.html. In your case each feature has two geometries: one point and one polygon. Best that can be

Re: [gdal-dev] laundering of field's names in GDAL

2016-11-27 Thread jratike80
I believe that the answer in gis.stackexchange http://gis.stackexchange.com/questions/219177/can-colon-character-be-used-in-shapefile-field-names is correct. The dBase III format that is used in shapefiles for storing attributes does not accept colon in field names, and GDAL does not want to write

Re: [gdal-dev] WFS: GetGeomFieldDefn(i)->GetNameRef() returns empty stirng (C++ API)

2016-11-29 Thread jratike80
With GDAL 2.2.0dev and ogrinfo this works: -- View this message in context: http://osgeo-org.1560.x6.nabble.com/gdal-dev-WFS-GetGeomFieldDefn-i-GetNameRef-returns-empty-stirng-C-API-tp5297844p5297847.html Sent from the GDAL - Dev mailing list archive at Nabble.com. __

Re: [gdal-dev] WMTS - Need TileLevel option Servers responding with bad capabilities

2016-12-01 Thread jratike80
esacree wrote > Question: Is it possible to get a TileLevel option added to the new GDAL > WMTS driver? > > Reason: WMTS servers at USGS and ESRI are returning XML Capabilities with > TileLevel 18 (Google) or TileLevel 19 (default028mm). The USGS help desk > said that the tile servers are only

Re: [gdal-dev] Append new data to GeoPackege raster table as overview

2016-12-01 Thread jratike80
Even Rouault-2 wrote > The following works: > > gdal_translate Taustakartta_4milj.png test.gpkg -of gpkg -a_srs epsg:3067 > -expand rgba > gdal_translate Taustakartta_8milj.png Taustakartta_8milj_rgba.tif -expand > rgba > gdalwarp Taustakartta_8milj_rgba.tif test.gpkg -doo ZOOM_LEVEL=2 > > Expen

Re: [gdal-dev] osm_id vs osm_way_id?

2016-12-01 Thread jratike80
georges wrote > Hello, > I am converting an .osm file to shapefile, and there is one thing that I > do not understand: > > What is the difference between: osm_id and osm_way_id fields (keys)? > > They are defined in osmconf.ini file, but only for [multipolygons]. > Here is an explanation from the

Re: [gdal-dev] Why are fields required in osmconf.ini file?

2016-12-04 Thread jratike80
Brad Hards wrote >> Why is that so? Why do field names need to be predefined before their >> extraction from the .osm file? >> >> Why can't only those fields which already exist in the .osm file, be >> extracted? > How could ogr2ogr possibly know what fields are in the file? It would > require >

Re: [gdal-dev] How does GDAL OSM driver deal with closed ways?

2016-12-05 Thread jratike80
In OSM it is a bit fuzzy what closed linestrings mean. Partly it is based on known and agreed semantics which may be documented in wiki.openstreetmap.org/wiki/Map_Features. So a closed linestring is a polygon if is has any building tag, but a closed linestring "junction=roundabout" is a closed line

Re: [gdal-dev] How does GDAL OSM driver deal with closed ways?

2016-12-05 Thread jratike80
Here are some useful links for those who are really interested in polygons in OSM data http://www.openstreetmap.org/user/BharataHS/diary/39957 https://www.openstreetmap.org/user/PlaneMad/diary/38908 https://github.com/osmlab/fixing-polygons-in-osm/blob/master/doc/faq.md https://github.com/osmlab/f

Re: [gdal-dev] Call for discussion on RFC 64: Triangle, Polyhedral surface and TIN

2016-12-07 Thread jratike80
Even Rouault-2 wrote > Hi, > > This is a call to discuss the proposed RFC 64: Triangle, Polyhedral > surface and TIN > > https://trac.osgeo.org/gdal/wiki/rfc64_triangle_polyhedralsurface_tin > > ~ I am wondering this part: "GEOS methods are still used in some cases, but with the follo

Re: [gdal-dev] Primary keys are ignored in ogr2ogr when converting from Sqlite databases

2016-12-09 Thread jratike80
César Martínez wrote > Is this a bug or is an intended behaviour? Is there any way to workaround > it? > I am using GDAL version 1.11.3. It also happens when exporting to a > different format such as PostGIS. A workaround is to pick the primary key as a normal attribute and let GDAL to create its

Re: [gdal-dev] Motion: adopt RFC 64: Triangle, Polyhedral surface and TIN

2016-12-09 Thread jratike80
Even Rouault-2 wrote > Hi, > > There have been some good remarks, one regarding integration with GEOS > that I've > taken into account in the implementation, another one regarding the > possibility to > get indexed TIN that I think can be later added if needed. > > So I move to adopt RFC 64: Tr

Re: [gdal-dev] PostGIS with more than one geometry column per table | R-Trees

2017-01-16 Thread jratike80
Alexander Berdnikow wrote > > http://www.geopackage.org/modeling_guidelines.html > > Use Case 2 describes a way how to handle multiple geometries in > GeoPackage. Then you convert the first geometry with all the attributes into GeoPackage and then add another layer with a command like -Jukk

Re: [gdal-dev] Question about .aux.xml sidecar file handling...

2017-01-18 Thread jratike80
Carl Godkin-2 wrote > Hi, > > I have a geological map in a pair of files called USGS.tif and > USGS.tif.aux.xml > > The XML seems to have ground control points ( > > ) and a geographic > coordinate system ( > > ) > > I was hoping that GDAL would treat the file as if it's a GeoTIFF. But if > I

Re: [gdal-dev] Question about .aux.xml sidecar file handling...

2017-01-18 Thread jratike80
Carl Godkin-2 wrote > I don't understand the purpose of the .aux.xml sidecar file. gdalinfo > says > it sees it, but does GDAL not actually read it or use any of the contained > information (GCPs and CRS)? That's what it seems like. Please share your files or prepare a small sample for testing s

Re: [gdal-dev] MBTiles from gdal2tiles vs. from gdal_translate

2017-01-23 Thread jratike80
mj10777 wrote > The main reason (at the time - over 4 years ago) was: > - that there was no write support for mbtiles then > (as you no doubt saw in the link you provided) I am interested in what I was asking "what advantage/difference there is with saving gdal2tiles output into MBtiles format v

Re: [gdal-dev] Motion: Promote 2.1.3RC1 for release

2017-01-25 Thread jratike80
Even Rouault-2 wrote > Hi, > > Motion: GDAL/OGR 2.1.3RC1 is promoted to be the official 2.1.3 final > release. > > --- > > +1 Even +1 -Jukka Rahkonen- -- View this message in context: http://osgeo-org.1560.x6.nabble.com/gdal-dev-Motion-Promote-2-1-3RC1-for-release-tp5304716p5304719.html S

Re: [gdal-dev] gdalwarp - dataset shifted several metres compared to arcgis

2017-01-27 Thread jratike80
Nicole Stoffels wrote > Hi, > > I am trying to reproject the CORINE 2012 dataset from LAEA (EPSG:3035) > to UTM 32 (EPSG:32632). I use the following command: > > $ gdalwarp -overwrite -s_srs EPSG:3035 -t_srs EPSG:32632 -tr 100 100 > -tap -dstnodata '-' g100_clc12_V18_5.tif corine2012_utm32n

Re: [gdal-dev] shapefile field indexing on OGR 1.x vs 2.1

2017-01-31 Thread jratike80
Even Rouault-2 wrote > Another option is to not use shapefiles and use more powerful alternatives > like GeoPackage > or Spatialite. > > Even I wonder how usable and reliable this peculiar attribute index is. Would it be a big loss to stop supporting it? -Jukka Rahkonen- -- View this messag

Re: [gdal-dev] Setting a point into postgresql using GDAL

2017-02-07 Thread jratike80
andreahmed wrote > Hi All, > I’m trying to set a point xyz, which represents longitude altitude > latitude, but when I create the feature, I get Error 1 Can’t find > transcation response. > > The Geometry field is set by this in the database: > > ALTER TABLE poiserver ALTER COLUMN geom TYPE GEOME

Re: [gdal-dev] Convert multipolygons from OSM

2017-02-07 Thread jratike80
lhomme.xavier wrote > Hi > I'm trying to extract multipologons from a PBF file and convert them to > a > Fgdb or ashapefile : > > More pricesely , I'm trying to extract waterway on Paris, And I don't > succeed to retreive the Seine river. But only some part. > > Here is my cmdline : > > Ogr2

Re: [gdal-dev] Motion: Adopt RFC 67 Null values in OGR

2017-02-10 Thread jratike80
Even Rouault-2 wrote > Hi, > > I move to adopt RFC 67: Null values in OGR > > https://trac.osgeo.org/gdal/wiki/rfc67_nullfieldvalues > > Starting with my +1, > > Best regards, > > Even +1 -Jukka Rahkonen- -- View this message in context: http://osgeo-org.1560.x6.nabble.com/gdal-dev-M

Re: [gdal-dev] Can i modify existing coordinates data in GeoTiff using GDAL

2017-02-10 Thread jratike80
Hi, Use this tool http://www.gdal.org/gdal_edit.html. -Jukka Rahkonen- -- View this message in context: http://osgeo-org.1560.x6.nabble.com/Can-i-modify-existing-coordinates-data-in-GeoTiff-using-GDAL-tp5307425p5307428.html Sent from the GDAL - Dev mailing list archive at Nabble.com.

Re: [gdal-dev] Problem with black edges to DOQQs using JPEG in Tiff compression

2017-02-13 Thread jratike80
Stephen Woodbridge wrote > Even, > Thanks for the quick feedback. I'll will give these suggestions and try > today and let you know how it goes. > > Thanks, >-Steve Hi Steve, They are probably good suggestions but folks did not bother to think what is your ultimate target. It is not to impr

Re: [gdal-dev] Testing of OGR generated GeoPackage datasets with other implementations

2017-03-02 Thread jratike80
Even Rouault-2 wrote > So I'd be interested if people could test > http://even.rouault.free.fr/geopackage/ne_10m_admin_0_countries_france.gpkg > (or any other gpkg you may generate with today's ogr2ogr) with other > software package that > don't use OGR underneath (ArcGIS for example). Hi, MapI

Re: [gdal-dev] Testing of OGR generated GeoPackage datasets with other implementations

2017-03-02 Thread jratike80
Even Rouault-2 wrote > And what about > http://even.rouault.free.fr/geopackage/ne_10m_admin_0_countries_france_alternative.gpkg > if you don't mind ? It opens as well. BTW. the layer is described as POLYGON in gpkg_geometry_columns but the one feature in the main table is MULTIPOLYGON. -Jukka-

Re: [gdal-dev] Testing of OGR generated GeoPackage datasets with other implementations

2017-03-02 Thread jratike80
Even Rouault-2 wrote > OK. I've changed the implementation to reflect the above prototyping and > regenerated from it > http://even.rouault.free.fr/geopackage/ne_10m_admin_0_countries_france_alternative2.gpkg MapInfo is fine with that one, too. -Jukka- -- View this message in context: http://

Re: [gdal-dev] Proposed ogrmerge.py utility script

2017-03-04 Thread jratike80
Even Rouault-2 wrote > Opinions on script naming (I also tought to ogrcat.py to reflect the > similarity with the Unix cat > utility used to concatenate files), option naming, etc.. are welcome Hi, ogrmerge.py is good name for the script. I would rename -overwrite_lyr into -overwrite_layer. It p

Re: [gdal-dev] sqlite -> spatialite (rowid)

2017-03-07 Thread jratike80
Even Rouault-2 wrote > I think that Spatialite's validateRowid() fuction should be patched to > check if the rowid > column is not of type INTEGER PRIMARY KEY, if so that's acceptable, > instead of just checking > for rowid. CC'ing Sandro. Let's see what Sandro says but I do not believe it is ac

Re: [gdal-dev] Executing a query getting null layer

2017-03-22 Thread jratike80
andreahmed wrote > I replaced OGRSQL with SQLite, It says now > > No such function: st_linefrommultipoint That's no wonder because SpatiaLite does not have such function https://www.gaia-gis.it/gaia-sins/spatialite-sql-latest.html. Where do you have your data? Are they in PostGIS which has a nat

Re: [gdal-dev] Executing a query getting null layer

2017-03-22 Thread jratike80
andreahmed wrote > Now I get undefined function st_linefrommultipoint > > Here is my query again > > string query = "SELECT * FROM areas WHERE > st_contains(st_polygon(st_addpoint(st_linefrommultipoint(areas.geom),st_startpoint(st_linefrommultipoint(areas.geom)),-1),st_srid(areas.geom)),st_mpoint

Re: [gdal-dev] Executing a query getting null layer

2017-03-22 Thread jratike80
andreahmed wrote > I'm using WFS-T. Does ogrinfo support that ? Can you show me the full > syntax please. I'm beginner in that topic. Ok. A few mails ago you wrote "My data is in mapserver database which is PostGres PostGIS. What's the equivalent function for st_linefrommultipoint?" which made Eve

Re: [gdal-dev] ogr2ogr GML GML_INVERT_AXIS_ORDER_IF_LAT_LONG not working

2017-03-22 Thread jratike80
Put a small test andye wrote > FYI I have an example of a GML from the same source prepared by FME where > the result is LAT LONG. I'm just trying to replicate the format. Put a small test dataset for "import.tab" so others can try to reproduce. -Jukka Rahkonen- -- View this message in contex

Re: [gdal-dev] ogr2ogr GML GML_INVERT_AXIS_ORDER_IF_LAT_LONG not working

2017-03-22 Thread jratike80
And did you already try simply with -t_srs epsg:4283? -Jukka- -- View this message in context: http://osgeo-org.1560.x6.nabble.com/ogr2ogr-GML-GML-INVERT-AXIS-ORDER-IF-LAT-LONG-not-working-tp5313555p5313748.html Sent from the GDAL - Dev mailing list archive at Nabble.com. _

Re: [gdal-dev] Executing a query getting null layer

2017-03-23 Thread jratike80
andreahmed wrote > What I'm trying to achieve is to check if 4 points is contained inside the > polygon, so I'm doing currently that query with SQLite dialect: > I'm not sure if its correct or no, I have tried it, but it seems its > working, I don't have enough data to test it out, so would you ch

Re: [gdal-dev] ogr2ogr GML GML_INVERT_AXIS_ORDER_IF_LAT_LONG not working

2017-03-26 Thread jratike80
Hi, I am not sure if the coordinate system dependent axis order was defined or not in GML2. At least all the WFS v. 1.0.0 servers that I know and which have GML2 as the default outputformat always produce longitude-latitude coordinates. Therefore I would not even try to create GML2 as latitude-lon

Re: [gdal-dev] Is it possible to add new fields to a shapefile and populate then?

2017-04-03 Thread jratike80
Stephen Woodbridge wrote > Hi All, > > I have a shapefile(s) and I want to read the features, generate some > metrics about each feature and then add them to the that feature. I'm > using python and one obvious way to to in effect create a new shapefile > with the columns I need to add, then co

Re: [gdal-dev] SQLite driver hit and miss with spatial index

2017-04-06 Thread jratike80
Frederik Ramm wrote > Hi, > >while what I wrote in the previous post is still interesting and a > bit strange, I have meanwhile upgraded to GDAL 2 packages from the > ubuntugis-unstable repository for Xenial, and now the behaviour is as I > would expect it: The ogr2ogr -spat command *with* ind

Re: [gdal-dev] ogr2ogr intersect very slow at command line with large sqlite input

2017-04-09 Thread jratike80
CTL101 wrote > Hi Stephen, thanks for responding. Yes I do have spatial indexes as prior > processing was filtering using ogr2ogr to select desired rows in the table > for subsequent processing. It is my understanding that ogr2ogr defaults to > producing these spatial indexes unless specifically in

Re: [gdal-dev] ogr2ogr intersect very slow at command line with large sqlite input

2017-04-10 Thread jratike80
CTL101 wrote > Hi Jukka, Thanks for your advice and the useful link. I have done as you > suggested and put together a revised query and tested in on a sample. This > worked successfully and significantly more quickly. I will now test on the > full dataset. The following is my command as it stands.

Re: [gdal-dev] [Geoserver-devel] GML lat-lon coverages and interoperability

2017-04-10 Thread jratike80
Peter Baumann wrote > Hi all, > > why not simply check against the compliance tests of WCS 2 and maybe a > reference > implementation? Might be the easiest for answering all such questions. > > cheers, > > Peter Hi, I could not find exact match for raster image (GeoTIFF) case from http://cite.

Re: [gdal-dev] Limiting Oracle layers to the tables of a given schema

2017-04-14 Thread jratike80
Vautour, André (INT) wrote > Hi all, > > I started playing with the Oracle Spatial (OCI) vector driver and was > surprised that the default behaviour is to look for all the tables listed > in ALL_SDO_GEOM_METADATA. > > I would have expected it to use all the tables in the schema (user) that > was

Re: [gdal-dev] Filtering GeoTIFFs touching/inside an area

2017-04-18 Thread jratike80
Nelson A. de Oliveira wrote > Is it possible to filter GeoTIFFs touching/inside a specific area? > > For example, https://i.imgur.com/xPA4iqq.png > > I have a lot of GeoTIFFs, an area and would like to somehow filter > only the images that are touching or inside that area. > It's not exactly a cl

Re: [gdal-dev] Initialization "record" causing bad extents/geometries in OGR for GPX files

2017-04-26 Thread jratike80
Vlad wrote > Thanks Even. > These things are coming from a cell phone app.. > > http://www.fulcrumapp.com Hi Vlad, They have nice web page but obviously not e-mail addresses so I wrote sort of a bug report into their chat box. -Jukka Rahkonen- -- View this message in context: http://osgeo-o

Re: [gdal-dev] Motion: Promote GDAL 2.2.0 RC1 for release

2017-05-04 Thread jratike80
+1 -Jukka Rahkonen- Even Rouault-2 wrote > Motion: GDAL/OGR 2.2.0 RC1 is promoted to be the official 2.2.0 final > release. > > --- > > My vote: +1 -- View this message in context: http://osgeo-org.1560.x6.nabble.com/gdal-dev-Motion-Promote-GDAL-2-2-0-RC1-for-release-tp5319362p531938

Re: [gdal-dev] ogr2ogr PROMOTE_TO_MULTI with linestrings?

2017-05-15 Thread jratike80
Stephen Woodbridge wrote > On 5/15/2017 6:15 PM, Stephen Woodbridge wrote: >> Hi, >> >> I'm trying to load both polygons and linestrings and would like >> PROMOTE_TO_MULTI to work for both, but it appears to define Multipolygon >> type and does not work for linestrings/multilinestrings. >> >> M

Re: [gdal-dev] gdalenhance command issue with stddev option

2017-06-05 Thread jratike80
naresh wrote > Dear All, > I have configured GDAL2.1.0 in windows 64 bit machine. I am using > following command > > gdalenhance -of JPEG -stddev 2.0 E:\first.jpg E:\first_enhance.jpg > > got the following error > > option -stddev incomplete, or not recognised > > Please help me how to use

Re: [gdal-dev] Pix format reading Gdal

2017-06-05 Thread jratike80
naresh wrote > Dear All, > I have configured GDAL2.1.0 in windows 64 bit machine. > > The gdalwrap, gdaltranslate commands for pixfile formats showing error. > Please kindly help me how to overcome the issue > > Thanks&Regards, > Naresh Please kindly enhance your question which does not tell

Re: [gdal-dev] gdal_translate with srcwin and center reference point

2017-06-15 Thread jratike80
issam boughanmi wrote > hi, > i want to use subset a large raster image using gdal_translate with srcwin > parameter > > but i want also to give some reference point to be at the center of the > output file . > > so if the output file size is 2000X2000 pixel for exemple, i want that > my given

Re: [gdal-dev] Motions: Promote 2.1.4RC1 and 2.2.1RC1 for release

2017-06-28 Thread jratike80
Even Rouault-2 wrote > Hi, > > Motion 1: GDAL/OGR 2.1.4RC1 is promoted to be the official 2.1.4 release. > > Motion 2: GDAL/OGR 2.2.1RC1 is promoted to be the official 2.2.1 release. > --- > > +1 to both: Even +1 to both. -Jukka Rahkonen- -- View this message in context: http://osgeo-org.

Re: [gdal-dev] gdaladdo without explicit factors specified

2017-06-28 Thread jratike80
Even Rouault-2 wrote > Hi, > > I'm pretty sure this must have annoyed a lot of people. When you run > gdaladdo, you need to > specify the appropriate overview levels. Generally you use power-of-two > factors, but the > question is then: what is the last relevant factor given the dimension of > m

Re: [gdal-dev] Downsampling with gdal_translate and overviews

2017-07-21 Thread jratike80
Julien Michel-2 wrote > Hi all, > > ... > So here are > my questions : > > - Is gdal_translate using the nearest overview level as a start for > resampling ? > > - Is there a way to prevent that (other than removing the ovr file) ? > > - Is it expected than the resampling yields artifacts whe

Re: [gdal-dev] Help request for data alignment issue

2020-06-17 Thread jratike80
Hi, You do not give enough details so I could try to follow your steps. It is odd that gdal_edit does not give the desired result. But have you tried to use "GEOTIFF_KEYS_FLAVOR"="ESRI_PE" directly as a gdalwarp creation option? -Jukka Rahkonen- Jessica Evans wrote > Hi > > Wondering if anyone

Re: [gdal-dev] MSSQLSpatial not using BCP to load

2020-06-29 Thread jratike80
Hi, Don't use -skipfailures. It is only possible to skip errors one by one if transactions also contain just one row. It is even documented in the Performance hints in https://gdal.org/programs/ogr2ogr.html. -Jukka Rahkonen- hectormauer wrote > Hi, > > As a part of a project I need to load qu

Re: [gdal-dev] GDAL SQLITE ID reserved column issue

2020-07-11 Thread jratike80
Hi, What Even did will be included in next releases. But if you wish that GeoJSON that contains both the identifier "id" and also "ID" as an attribute can be converted into SQLite based formats (GeoPackage, SQLite) in the future it will not happen. For SQLite all "ID", "id", "Id", and "iD" mean th

Re: [gdal-dev] VRT performance Improvement

2020-07-28 Thread jratike80
Hi, I guess that the slowest part is not VRT but your SQL SELECT * FROM "features" WHERE LegendEntryName IN("V_XX_AR","V_XX_LB","V_DOCIND_PT","V_XX_ML") because GeoJSON does not support attribute indexes. I would have a try by converting GeoJSON into GeoPackage or any other database format. R

Re: [gdal-dev] acess /vsimem files

2020-08-06 Thread jratike80
Hi, Perhaps you could use the autotest https://github.com/OSGeo/gdal/blob/master/autotest/gcore/tiff_read.py#L552 as an example. -Jukka Rahkonen- Roy-Sabourin, Julien (ECCC) wrote > (pyton) > Hi, I'm using > driver.Create('/vsimem/file.tif', xsize, ysize, 1, gdal.GDT_Byte) > to make a tif fil

Re: [gdal-dev] Required PROJ data in PROJ7

2020-08-19 Thread jratike80
Hi, This question may belong rather to the Proj mailing list. There is already a thread https://lists.osgeo.org/pipermail/proj/2020-July/009729.html. -Jukka Rahkonen- John Daniel-2 wrote > Hello, > The old proj-datumgrid is divided into a small, 13 MB required dataset and > a number of much la

Re: [gdal-dev] gdalbuildvrt could not use worldfile

2020-08-20 Thread jratike80
Hi, I don't know your map viewer but perhaps it wants to know both the location of your image (the coordinates) and in what coordinate reference system the coordinates are. You have now the corner coordinates and pixel size but the CRS is unknown. Run gdalbuildvrt with "-a_srs" for attaching it. I

Re: [gdal-dev] I have a problem getting higher resolution in a VRT file

2020-08-20 Thread jratike80
Even Rouault-2 wrote > ... > By default, VRT uses nearest resampling. You must specify something else. > Look for "A resampling attribute can be specified" in > https://gdal.org/drivers/raster/vrt.html > ... > > -- Actually in the provided .vrt file I can see But isn't bilinear unsuitable for

Re: [gdal-dev] Motion: promote GDAL 3.1.3 RC1

2020-09-03 Thread jratike80
+1 -Jukka Rahkonen- Even Rouault-2 wrote > Hi, > > Having heard no issues with RC1, > > Motion: > > Adopt GDAL 3.1.3 RC1 as final 3.1.3 release > > +1 Even > > -- > Spatialys - Geospatial professional services > http://www.spatialys.com > > ___

Re: [gdal-dev] Error writing/reading simple ENVI file

2020-09-10 Thread jratike80
Calogero Mauceri wrote > > I'm not sure why it tries to open the ENVI file using the OpenJPEG reader. > Anyway I'm using GDAL 2.4.4 and OpenJPEG 2.3.0. I tried GDAL 3.1.2, but I > get the same error. GDAL is quessing the driver by the file name extension and starts trying them one by one, in the

Re: [gdal-dev] Confusion regarding GeoPDF composition.xml units

2020-09-23 Thread jratike80
Hi, I was remembering that I got involved in user units sometimes and found this https://trac.osgeo.org/gdal/ticket/5412. Then we considered that PDF is not valid if user units are not set and if the document is larger than 14400x14400 units. I believe I was playing with orthophoto coverages and m

Re: [gdal-dev] OZI Raster Driver - new ozf4 file format support

2020-09-28 Thread jratike80
Hi, As far as I know the ozf format has never been open but fundamentally it is rather simple. Version 3 introduced encryption but it was also simple and reverse engineered soon https://www.globalmapperforum.com/uploads/attachments/3/1298.txt. Since that the author of Ozi Explorer made ozf4 versio

Re: [gdal-dev] Clip feature while query from .gdb using OpenFileGDB driver

2020-09-30 Thread jratike80
Hi, You can use gdal.VectorTranslate with the same options that ogr2ogr utility supports https://gdal.org/programs/ogr2ogr.html. That includes -clipsrc [xmin ymin xmax ymax]|WKT|datasource|spat_extent "Clip geometries to the specified bounding box (expressed in source SRS), WKT geometry (POLYGON

Re: [gdal-dev] How does it work FEATURE_SERVER_PAGING?

2020-09-30 Thread jratike80
Hi, I get more features with your command. I tested with GDAL 3.2.0dev Layer name: out Geometry: Polygon Feature Count: 1319 Word "file" in your command is remaining from some copy-paste, I guess. Using either FEATURE_SERVER_PAGING="YES" or FEATURE_SERVER_PAGING=YES did not have an effect. Perha

Re: [gdal-dev] gdal_translate multiplies bands

2020-09-30 Thread jratike80
Hi, Perhaps it is just about how you open your GeoPackage. See https://gdal.org/drivers/raster/gpkg.html: "Opening options By default, the driver will expose a GeoPackage dataset as a four band (Red,Green, Blue,Alpha) dataset, which gives the maximum compatibility with the various encodings of t

Re: [gdal-dev] How does it work FEATURE_SERVER_PAGING?

2020-09-30 Thread jratike80
Hi, Works for me also with GDAL 2.4.4 from gisinternals.com C:\ohjelmat\gdal_244>ogrinfo -al -so out.geojson INFO: Open of `out.geojson' using driver `GeoJSON' successful. Layer name: out Geometry: Polygon Feature Count: 1319 Debug: HTTP: Fetch(http://sifweb.regione.sicilia.it/arcgis/res

Re: [gdal-dev] How does it work FEATURE_SERVER_PAGING?

2020-10-01 Thread jratike80
Hi, Yes, the result with ogrinfo is the same but probably it is not the right tool for testing the paging. With paging GDAL is fetching the first page, puts it somewhere, asks more pages, and finally builds a combined dataset as a result. If you let GDAL to do its job and check how it went your sh

Re: [gdal-dev] Creating DTM Pyramids with max values, and dtm pyramid with min values

2020-10-16 Thread jratike80
Hi, The problem with tailor made overviews can be solved with VRT https://gdal.org/drivers/raster/vrt.html. "Overview: This optional element describes one overview level for the band. It should have a child SourceFilename and SourceBand element. The SourceFilename may have a relativeToVRT boolean

Re: [gdal-dev] gdaladdo zoom level not supported

2020-10-21 Thread jratike80
The question in gis.stackexchange is this https://gis.stackexchange.com/questions/376827/gdaladdo-zoom-level-not-supported -Jukka Rahkonen- -- Sent from: http://osgeo-org.1560.x6.nabble.com/GDAL-Dev-f3742093.html ___ gdal-dev mailing list gdal-dev@lis

Re: [gdal-dev] Motion: promote GDAL 3.1.4 RC2

2020-10-21 Thread jratike80
+1 -Jukka Rahkonen- Even Rouault-2 wrote > Hi, > > Motion: > > Adopt GDAL 3.1.4 RC2 as final 3.1.4 release > > Starting with my +1 > > Even -- Sent from: http://osgeo-org.1560.x6.nabble.com/GDAL-Dev-f3742093.html ___ gdal-dev mailing list gda

Re: [gdal-dev] ogr2ogr -preserve_fid does not work when dst_datasource is SQLite/SpatiaLite

2020-10-25 Thread jratike80
Hi, Could you give some test data? As far as I know shapefiles do not have any pk_column that user could select. -Jukka Rahkonen- Paul Li wrote > Using this option to convert shapefiles to shapefiles (with less columns) > works perfectly fine. However, when dst_datasource is SQLite/SpatiaLite,

Re: [gdal-dev] Opening .dt2 datafiles that do not contain geospatial data

2020-10-28 Thread jratike80
Hi, What does "gdalinfo your.dt2 --debug on" show? Could you share a problematic file? -Jukka Rahkonen- Juliette Behra wrote > Hello, > > I have got black and white image files saved as .dt2 files which I need to > open in Python to process some information contained in the image headers. > I

Re: [gdal-dev] https://stackoverflow.com/questions/61342237/gdal-translate-missing-spatial-reference-system

2020-10-29 Thread jratike80
Hi, But you did not find out what is special in the spatial reference of your source image and why GDAL 3.0.2 did not find it while 2.4.1 had no problem. First step would be to run gdalinfo with 2.4.1 and 3.0.2 and compare the reports. -Jukka Rahkonen- Laurynas Gedminas wrote > OK, so the issu

Re: [gdal-dev] Motion: promote GDAL 3.2.0 RC1

2020-10-29 Thread jratike80
+1 -Jukka Rahkonen- Even Rouault-2 wrote > Hi, > > Having heard about no critical ([1]) issues regarding RC1 > > Motion: > > Adopt GDAL 3.2.0 RC1 as final 3.2.0 release > > Starting with my +1 > > Even > > [1] The only regression I'm aware of currently is regarding the > possibility to >

Re: [gdal-dev] Retrieving 3DEP data via GDAL's WCS driver...

2020-11-01 Thread jratike80
Hi, By adding "-- debug on" into your command it is possible to get details about what GDAL is doing. Here are the main parts from the log gdal_translate "WCS:https://elevation.nationalmap.gov:443/arcgis/services/3DEPElevation/ImageServer/WCSServer?version=2.0.1&coverage=DEP3Elevation"; test.tif

Re: [gdal-dev] Spherical Mercator Projection mismatching major/minor axis

2020-11-06 Thread jratike80
Hi, This does not really belong to my knowledge area but I'll have a try anyway. Check what you have after reading the proj string instead. Here with Python >>> from osgeo import osr >>> spatialRef = osr.SpatialReference() >>> spatialRef.ImportFromProj4("+proj=merc +a=6378137 +b=6378137 +lat_ts=

Re: [gdal-dev] WCS_GDAL Driver Image SubSet Request

2020-11-09 Thread jratike80
Hi, Do you want to make is somehow impossible to request data beyound the BoundingBox that you defined in the XML file? If you just want to get data from the rectangle that you or your users define, gdal_translate with the regular -spat option should work out-of-the-box. -Jukka Rahkonen- julie

Re: [gdal-dev] Oracle Spatial Driver: Is it possible to append features to a table?

2020-11-11 Thread jratike80
Hi, It should work. Write your two first ogr2ogr commands (the initial one and first to append) as a whole but without OCI connection details. The -nln parameter must appear in the append command if I remember right. -Jukka Rahkonen- Kreß, Marius wrote > Dear GDAL developers and users, > > I

Re: [gdal-dev] Location change on gdalwarp reprojection

2020-11-11 Thread jratike80
Hi, The bounds do not mean exactly what you think. Re-projecting a rectangular image from EPSG:27573 into EPSG:4326 rotates the image somewhat counter-clockwise. This image is from another context https://www.usgs.gov/media/images/landsat-1-8-landsatlook-image-examples but you can get the idea. Th

Re: [gdal-dev] gdal-dev Digest, Vol 198, Issue 14

2020-11-12 Thread jratike80
Hi Ari, I fear that user cannot control this with the switches. This is the reason for the error: ``` WCS: Requesting http://demo.geo-solutions.it/geoserver/wcs?SERVICE=WCS&REQUEST=GetCoverage&VERSION=2.0.1&COVERAGEID=nurc__mosaic&SUBSET=Long(6.3953399152693953,6.3953399152693953)&SUBSET=Lat(46.5

  1   2   3   4   >