Skip to main content
deleted 3 characters in body; edited title
Source Link
Taras
  • 35.9k
  • 7
  • 77
  • 153

How to add *one* Adding one missing contour line with GDAL/OGR?

Due to tetraphobia in Taiwan we are not allowed to have streets whose names that end in "4".

My mission is to reconstruct where 14th Street would have gone.

missing contour

I shall use use GDAL/OGR, pretending the streets are contours!

Here's my data,

$ cat e.csv WKT "LINESTRING Z (120.71991 24.17197 12,120.72250 24.17178 12,120.72420 24.17151 12)" "LINESTRING Z (120.72420 24.17225 13,120.72251 24.17254 13,120.71991 24.17265 13)" "LINESTRING Z (120.71991 24.17409 15,120.72420 24.17399 15)" "LINESTRING Z (120.72420 24.17504 16,120.71991 24.17497 16)" 

On it, I used gdal_rasterize and then gdal_contour -fl 14, but the results were were so embarrassing that I dare not mention the exact command line I used used, and I'm starting to get tetraphobia too.

How to add *one* missing contour line with GDAL/OGR?

Due to tetraphobia in Taiwan we are not allowed to have streets whose names that end in "4".

My mission is to reconstruct where 14th Street would have gone.

missing contour

I shall use use GDAL/OGR, pretending the streets are contours!

Here's my data,

$ cat e.csv WKT "LINESTRING Z (120.71991 24.17197 12,120.72250 24.17178 12,120.72420 24.17151 12)" "LINESTRING Z (120.72420 24.17225 13,120.72251 24.17254 13,120.71991 24.17265 13)" "LINESTRING Z (120.71991 24.17409 15,120.72420 24.17399 15)" "LINESTRING Z (120.72420 24.17504 16,120.71991 24.17497 16)" 

On it I used gdal_rasterize and then gdal_contour -fl 14 but the results were so embarrassing I dare not mention the exact command line I used and I'm starting to get tetraphobia too.

Adding one missing contour line with GDAL/OGR

Due to tetraphobia in Taiwan we are not allowed to have streets whose names end in "4".

My mission is to reconstruct where 14th Street would have gone.

missing contour

I shall use GDAL/OGR, pretending the streets are contours!

Here's my data,

$ cat e.csv WKT "LINESTRING Z (120.71991 24.17197 12,120.72250 24.17178 12,120.72420 24.17151 12)" "LINESTRING Z (120.72420 24.17225 13,120.72251 24.17254 13,120.71991 24.17265 13)" "LINESTRING Z (120.71991 24.17409 15,120.72420 24.17399 15)" "LINESTRING Z (120.72420 24.17504 16,120.71991 24.17497 16)" 

On it, I used gdal_rasterize and then gdal_contour -fl 14, but the results were so embarrassing that I dare not mention the exact command line I used, and I'm starting to get tetraphobia too.

Give data file a name.
Source Link

Due to tetraphobia in Taiwan we are not allowed to have streets whose names that end in "4".

My mission is to reconstruct where 14th Street would have gone.

missing contour

I shall use use GDAL/OGR, pretending the streets are contours!

Here's my data,

$ cat e.csv WKT "LINESTRING Z (120.71991 24.17197 12,120.72250 24.17178 12,120.72420 24.17151 12)" "LINESTRING Z (120.72420 24.17225 13,120.72251 24.17254 13,120.71991 24.17265 13)" "LINESTRING Z (120.71991 24.17409 15,120.72420 24.17399 15)" "LINESTRING Z (120.72420 24.17504 16,120.71991 24.17497 16)" 

On it I used gdal_rasterize and then gdal_contour -fl 14 but the results were so embarrassing I dare not mention the exact command line I used and I'm starting to get tetraphobia too.

Due to tetraphobia in Taiwan we are not allowed to have streets whose names that end in "4".

My mission is to reconstruct where 14th Street would have gone.

missing contour

I shall use use GDAL/OGR, pretending the streets are contours!

Here's my data,

WKT "LINESTRING Z (120.71991 24.17197 12,120.72250 24.17178 12,120.72420 24.17151 12)" "LINESTRING Z (120.72420 24.17225 13,120.72251 24.17254 13,120.71991 24.17265 13)" "LINESTRING Z (120.71991 24.17409 15,120.72420 24.17399 15)" "LINESTRING Z (120.72420 24.17504 16,120.71991 24.17497 16)" 

On it I used gdal_rasterize and then gdal_contour -fl 14 but the results were so embarrassing I dare not mention the exact command line I used and I'm starting to get tetraphobia too.

Due to tetraphobia in Taiwan we are not allowed to have streets whose names that end in "4".

My mission is to reconstruct where 14th Street would have gone.

missing contour

I shall use use GDAL/OGR, pretending the streets are contours!

Here's my data,

$ cat e.csv WKT "LINESTRING Z (120.71991 24.17197 12,120.72250 24.17178 12,120.72420 24.17151 12)" "LINESTRING Z (120.72420 24.17225 13,120.72251 24.17254 13,120.71991 24.17265 13)" "LINESTRING Z (120.71991 24.17409 15,120.72420 24.17399 15)" "LINESTRING Z (120.72420 24.17504 16,120.71991 24.17497 16)" 

On it I used gdal_rasterize and then gdal_contour -fl 14 but the results were so embarrassing I dare not mention the exact command line I used and I'm starting to get tetraphobia too.

Removed helpme
Source Link
Vince
  • 20.5k
  • 16
  • 49
  • 65

Due to tetraphobia in Taiwan we are not allowed to have streets whose names that end in "4".

My mission is to reconstruct where 14th Street would have gone.

missing contour

I shall use use GDAL/OGR, pretending the streets are contours!

Here's my data,

WKT "LINESTRING Z (120.71991 24.17197 12,120.72250 24.17178 12,120.72420 24.17151 12)" "LINESTRING Z (120.72420 24.17225 13,120.72251 24.17254 13,120.71991 24.17265 13)" "LINESTRING Z (120.71991 24.17409 15,120.72420 24.17399 15)" "LINESTRING Z (120.72420 24.17504 16,120.71991 24.17497 16)" 

On it I used gdal_rasterize and then gdal_contour -fl 14 but the results were so embarrassing I dare not mention the exact command line I used and I'm starting to get tetraphobia too. Help!

Due to tetraphobia in Taiwan we are not allowed to have streets whose names that end in "4".

My mission is to reconstruct where 14th Street would have gone.

missing contour

I shall use use GDAL/OGR, pretending the streets are contours!

Here's my data,

WKT "LINESTRING Z (120.71991 24.17197 12,120.72250 24.17178 12,120.72420 24.17151 12)" "LINESTRING Z (120.72420 24.17225 13,120.72251 24.17254 13,120.71991 24.17265 13)" "LINESTRING Z (120.71991 24.17409 15,120.72420 24.17399 15)" "LINESTRING Z (120.72420 24.17504 16,120.71991 24.17497 16)" 

On it I used gdal_rasterize and then gdal_contour -fl 14 but the results were so embarrassing I dare not mention the exact command line I used and I'm starting to get tetraphobia too. Help!

Due to tetraphobia in Taiwan we are not allowed to have streets whose names that end in "4".

My mission is to reconstruct where 14th Street would have gone.

missing contour

I shall use use GDAL/OGR, pretending the streets are contours!

Here's my data,

WKT "LINESTRING Z (120.71991 24.17197 12,120.72250 24.17178 12,120.72420 24.17151 12)" "LINESTRING Z (120.72420 24.17225 13,120.72251 24.17254 13,120.71991 24.17265 13)" "LINESTRING Z (120.71991 24.17409 15,120.72420 24.17399 15)" "LINESTRING Z (120.72420 24.17504 16,120.71991 24.17497 16)" 

On it I used gdal_rasterize and then gdal_contour -fl 14 but the results were so embarrassing I dare not mention the exact command line I used and I'm starting to get tetraphobia too.

Source Link
Loading