Oliver Tonnhofer
ae4197a147
writer: do not use GEOS for LineString geometries
2017-11-21 15:27:10 +01:00
Oliver Tonnhofer
a367850f6f
writer: do not check for validity of simple polygons
...
Skips slow GEOS IsValid calls for polygons with only 4 corners.
They can be invalid, but its more unlikely to get simple polygons
wrong and even if, it should affect only small polygons like buildings.
2017-11-21 14:43:20 +01:00
Oliver Tonnhofer
e245e01b95
geom: cache geos wkb writer
2017-11-21 14:43:20 +01:00
Oliver Tonnhofer
3ac986a498
code: remove unused functions/conversions
2017-11-21 14:43:20 +01:00
Oliver Tonnhofer
d8bccbe35a
test: move test helper into test file
2017-11-21 14:43:20 +01:00
Oliver Tonnhofer
7244552479
fix test error output
2017-11-15 15:13:57 +01:00
Oliver Tonnhofer
b82b1db8c1
remove support for old-style multipolyon relation handling
...
First simplification as a result of #142 and
https://github.com/osmlab/fixing-polygons-in-osm/issues/15
2017-05-09 11:34:54 +02:00
Oliver Tonnhofer
fb7d574d9e
fix memory leak in Geom.Bounds
...
GEOS envelope geometry was not destroyed when calculating the boundary.
This leak was triggered with mappings with webmerc_area and imports
with -limitto. (closes #139 )
2017-03-03 09:12:15 +01:00
Oliver Tonnhofer
b034c52261
remove -lgeos
2016-01-15 15:01:49 +01:00
Oliver Tonnhofer
c419d9b2c2
fix test for extended elemen.Member
2016-01-08 09:35:53 +01:00
Oliver Tonnhofer
23ff4867e8
add first go system test
2015-11-22 11:09:15 +01:00
Oliver Tonnhofer
7f1a5cb999
validate polygons from ways
2015-11-21 18:10:20 +01:00
Oliver Tonnhofer
838123acc2
fix Benchmarks
2015-11-20 15:03:08 +01:00
Oliver Tonnhofer
b3b388b11b
import multipolygons if at least on ring was build
2015-10-20 13:20:48 +02:00
Oliver Tonnhofer
29a4d4e10f
add missing test files
2015-08-07 14:17:55 +02:00
Oliver Tonnhofer
171e1c24fa
refactor geom api: make ring private
2015-04-30 10:05:22 +02:00
Oliver Tonnhofer
7c438fb867
remove Geom from OSMElem
...
removes GEOS depenency from pbf parser
2015-04-30 09:42:49 +02:00
Oliver Tonnhofer
2aa45895e1
log non-4326 point when loading geojson
2015-03-10 15:57:17 +01:00
Oliver Tonnhofer
112d889639
support -limitto with -srid 4326
...
- refactored geojson/limit package
- geojson files are now required to be in EPSG:4326
2015-03-02 09:22:08 +01:00
Oliver Tonnhofer
6394f92a7a
do not import outer way of relation into same table as relation
...
improved inserted-ways detection by marking outer ways as inserted
if they match the same table as the relation.
2015-01-05 15:49:11 +01:00
Oliver Tonnhofer
0a311d62d7
close open ways when end-nodes are close to each other but not identical
2014-10-22 13:36:06 +02:00
Oliver Tonnhofer
e440ca7489
close open rings when end-nodes are close to each other but not identical
2014-10-21 17:21:48 +02:00
Oliver Tonnhofer
5c376496c4
update comments in mergeRings
2014-10-21 16:12:21 +02:00
Oliver Tonnhofer
3b73f91a0d
make go gettable
2014-08-04 15:19:35 +02:00
Oliver Tonnhofer
f30e4f35f8
add -lgeos to LDFLAGS
2014-06-23 13:27:24 +02:00
Oliver Tonnhofer
593811a231
read properties of geojson features
2014-05-21 09:15:32 +02:00
Oliver Tonnhofer
de4ec76ed8
handle ways without refs/nodes in ring builder
...
fixes 'index out of range' panics
2014-01-14 12:06:43 +01:00
Oliver Tonnhofer
07c11bf4da
tweak limitto grid parameters
2013-12-18 13:29:32 +01:00
Oliver Tonnhofer
eb216b4392
refactored filtering of inserted_ways
2013-12-16 16:54:42 +01:00
Oliver Tonnhofer
3affe43808
improve inserted_ways handling
...
compare destination tables for each way instead of only comparing
if the tags are similar
2013-12-16 09:57:47 +01:00
Oliver Tonnhofer
fdb34b7b4c
remove duplicate geojson reader code
2013-12-02 14:13:53 +01:00
Oliver Tonnhofer
e8f4098e18
automatically transform GeoJSON in WGS84 to webmercator
2013-12-02 14:13:31 +01:00
Oliver Tonnhofer
122bfc4f31
do not auto destroy BoundsPolygon
2013-12-02 11:43:44 +01:00
Oliver Tonnhofer
34cf674fa0
read geojson with z-values
2013-11-26 09:47:00 +01:00
Oliver Tonnhofer
2d1c98022f
remove go vet warnings
2013-11-13 15:41:34 +01:00
Oliver Tonnhofer
63cf97eb01
make sure clipped geometries are DestroyedLayer
2013-11-12 12:06:46 +01:00
Oliver Tonnhofer
aa632e2bd6
do not add prepared geometries to index
2013-11-11 09:41:41 +01:00
Oliver Tonnhofer
2cebe56d8f
prevent SIGSEGV when building buffered limitto geometry
2013-11-04 16:00:19 +01:00
Oliver Tonnhofer
7903a3293b
close geojson file handle
2013-11-04 14:31:05 +01:00
Oliver Tonnhofer
5203225bcd
improve limiter
...
- check complete contains first
- intersect with original geometry if it intersects to many parts
2013-10-31 18:21:21 +01:00
Oliver Tonnhofer
26d58fc461
refactored geojson API; add tests
2013-10-21 15:34:00 +02:00
Oliver Tonnhofer
cb91bda39f
use new GeoJSON reader for limitto tests
2013-10-21 15:31:07 +02:00
Oliver Tonnhofer
ac094e8dce
replace OGR dependency for limitto with simple GeoJSON parser
2013-10-21 14:59:31 +02:00
Oliver Tonnhofer
a48cd0317d
remove duplicate nodes
...
prevents inserts of broken ways with only two identical nodes
2013-09-11 11:35:11 +02:00
Oliver Tonnhofer
8a3585dbba
ignore name tag when checking if way of multipolygon was inserted
2013-09-09 12:31:07 +02:00
Oliver Tonnhofer
52fb1dfd6e
add package descriptions
2013-09-02 10:26:29 +02:00
Oliver Tonnhofer
7f4c807cce
remove unused file
2013-09-02 10:25:03 +02:00
Oliver Tonnhofer
9e454714b8
name package to imposm3
2013-08-29 15:44:31 +02:00
Oliver Tonnhofer
d26c58d416
collect the right geometries for IndexQuery result
2013-08-09 16:11:57 +02:00
Oliver Tonnhofer
49a13a6f3b
automatically calculate split params for large limitto coverages
2013-08-09 14:34:00 +02:00