Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
F
fordecyt_2019
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Rodrigo Tapia-McClung
fordecyt_2019
Commits
c93728c6
Commit
c93728c6
authored
Aug 13, 2019
by
Anne Blankert
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add README
parent
d599e719
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
28 additions
and
2 deletions
+28
-2
README.md
README.md
+25
-0
geobuf.js
geobuf.js
+1
-1
pgserver.js
pgserver.js
+1
-0
swagger.js
swagger.js
+1
-1
No files found.
README.md
0 → 100644
View file @
c93728c6
# PGServer
Another PostGIS http API server
Upload and download geo-data, preview, filter
Serve cached mapbox vector tiles (mvt), geojson, geobuf
Built on
[
Node Express
](
https://expressjs.com/
)
## Requirements
*
access to a
[
PostGIS
](
https://postgis.net
)
server
*
[
Node and npm
](
https://nodejs.org/en/download/
)
## Installation
If you don't have git, you can donwload
[
a zip file
](
https://github.com/anneb/pgserver/archive/master.zip
)
of the project instead.
git clone this_repository
cd this_repository
npm install
cp config/dbconfig.example.json config/dbconfig.json
# now edit config/dbconfig.json for your PostGis database
npm start
# point your browser to localost:8090 for more info
### Due credit
API based on
[
Dirt Simple PostGIS http API
](
https://github.com/tobinbradley/dirt-simple-postgis-http-api
)
\ No newline at end of file
geobuf.js
View file @
c93728c6
...
...
@@ -88,7 +88,7 @@ const sql = (params, query) => {
* pattern: '^-?[0-9]{0,20}.?[0-9]{1,20}?(,-?[0-9]{0,20}.?[0-9]{1,20}?){2,3}$'
* responses:
* 200:
* description: geo
json
* description: geo
buf data
* 422:
* description: invalid datasource or columnname
*/
...
...
pgserver.js
View file @
c93728c6
...
...
@@ -20,6 +20,7 @@ const login = require('./login.js')(app);
const
upload
=
require
(
'./upload.js'
)(
app
);
const
mvt
=
require
(
'./mvt.js'
)(
app
,
readOnlyPool
);
const
geojson
=
require
(
'./geojson.js'
)(
app
,
readOnlyPool
);
const
geobuf
=
require
(
'./geobuf.js'
)(
app
,
readOnlyPool
);
const
list_layers
=
require
(
'./list_layers'
)(
app
,
readOnlyPool
);
const
bbox
=
require
(
'./bbox.js'
)(
app
,
readOnlyPool
);
...
...
swagger.js
View file @
c93728c6
...
...
@@ -23,7 +23,7 @@ const swaggerDefinition = {
const
swaggerJSDocOptions
=
{
swaggerDefinition
,
apis
:
[
'./login.js'
,
'./mvt.js'
,
'./list_layers.js'
,
'./bbox.js'
,
'./geojson.js'
]
apis
:
[
'./login.js'
,
'./mvt.js'
,
'./list_layers.js'
,
'./bbox.js'
,
'./geojson.js'
,
'./geobuf.js'
]
}
const
swaggerSpec
=
swaggerJSDoc
(
swaggerJSDocOptions
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment