Skip to content

Commit

Permalink
JSON fixes in documentation codeblocks (#2774)
Browse files Browse the repository at this point in the history
* fix JSON in pdal.io/python.html

* Fix JSON in pipeline.rst

* Fix JSON in filters.chipper.rst

* more JSON fixes in various .rst files

* more JSON fixes in documentation

* Removing "pipeline" as example is a snippet
  • Loading branch information
NicolaiLolansen authored and abellgithub committed Mar 3, 2020
1 parent 12f6210 commit 6356487
Show file tree
Hide file tree
Showing 14 changed files with 17 additions and 19 deletions.
2 changes: 1 addition & 1 deletion doc/pipeline.rst
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ files from a single pipeline. The crop filter creates two output point views
"input.las",
{
"type" : "filters.crop",
"bounds" : [ "([0, 75], [0, 75])", "([50, 125], [50, 125])" ],
"bounds" : [ "([0, 75], [0, 75])", "([50, 125], [50, 125])" ]
},
"output#.las"
]
Expand Down
7 changes: 3 additions & 4 deletions doc/python.rst
Original file line number Diff line number Diff line change
Expand Up @@ -73,15 +73,14 @@ results as `Numpy`_ arrays:
json = """
{
[
[
"1.2-with-color.las",
{
"type": "filters.sort",
"dimension": "X"
}
]
}"""
]
"""
import pdal
pipeline = pdal.Pipeline(json)
Expand Down
2 changes: 1 addition & 1 deletion doc/stages/filters.chipper.rst
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ Example
"example.las",
{
"type":"filters.chipper",
"capacity":"400",
"capacity":"400"
},
{
"type":"writers.pgpointcloud",
Expand Down
4 changes: 2 additions & 2 deletions doc/stages/filters.merge.rst
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ contains the points in "utm3.las".
.. code-block:: json
[
"utm1.las"
"utm1.las",
"utm2.las",
"utm3.las",
"out#.las"
Expand All @@ -65,7 +65,7 @@ and "utm2.las", while "out2.las" contains the points from "utm3.las".
.. code-block:: json
[
"utm1.las"
"utm1.las",
"utm2.las",
{
"type" : "filters.merge"
Expand Down
2 changes: 1 addition & 1 deletion doc/stages/filters.miniball.rst
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ outlier.
{
"type":"filters.miniball",
"knn":8
}
},
"output.laz"
]
Expand Down
2 changes: 1 addition & 1 deletion doc/stages/filters.planefit.rst
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ outlier.
{
"type":"filters.planefit",
"knn":8
}
},
"output.laz"
]
Expand Down
2 changes: 1 addition & 1 deletion doc/stages/filters.shell.rst
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ command to construct overview bands for the data using average interpolation.
{
"type":"filters.shell",
"command" : "gdaladdo -r average output-2m.tif 2 4 8 16"
}
},
{
"type":"filters.shell",
"command" : "gdaladdo -r average output-5m.tif 2 4 8 16"
Expand Down
3 changes: 1 addition & 2 deletions doc/stages/readers.gdal.rst
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,7 @@ RGB values of an `ASPRS LAS`_ file using :ref:`writers.las`.
{
"type":"readers.gdal",
"filename":"./pdal/test/data/autzen/autzen.jpg",
"header", "Red, Green, Blue"
"header": "Red, Green, Blue"
},
{
"type":"writers.text",
Expand Down
2 changes: 1 addition & 1 deletion doc/stages/readers.las.rst
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ Example
},
{
"type":"writers.text",
"filename":"outputfile.txt",
"filename":"outputfile.txt"
}
]
Expand Down
2 changes: 1 addition & 1 deletion doc/stages/readers.pgpointcloud.rst
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ Example
"table":"lidar",
"column":"pa",
"spatialreference":"EPSG:26910",
"where":"PC_Intersects(pa, ST_MakeEnvelope(560037.36, 5114846.45, 562667.31, 5118943.24, 26910))",
"where":"PC_Intersects(pa, ST_MakeEnvelope(560037.36, 5114846.45, 562667.31, 5118943.24, 26910))"
},
{
"type":"writers.text",
Expand Down
2 changes: 1 addition & 1 deletion doc/stages/writers.bpf.rst
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ Example
[
{
"type":"readers.bpf"
"type":"readers.bpf",
"filename":"inputfile.las"
},
{
Expand Down
2 changes: 1 addition & 1 deletion doc/stages/writers.e57.rst
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ Example
{
"type":"writers.e57",
"filename":"outputfile.e57",
"doublePrecision":false
"doublePrecision":false
}
]
Expand Down
2 changes: 1 addition & 1 deletion doc/stages/writers.fbx.rst
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ Example
[
{
"type":"readers.las"
"type":"readers.las",
"filename":"inputfile.las"
},
{
Expand Down
2 changes: 1 addition & 1 deletion doc/stages/writers.null.rst
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ Example
"type":"filters.hexbin"
},
{
"type":"writers.null",
"type":"writers.null"
}
]
Expand Down

0 comments on commit 6356487

Please sign in to comment.