wavded / ogre

ogr2ogr geojson-focused web client
http://ogre.adc4gis.com
MIT License
266 stars 79 forks source link

Use ogre directly from another Script (without API) #81

Closed maka1000 closed 3 years ago

maka1000 commented 4 years ago

Hi, is it for using ogre required, that the tool is available with a domain as example www.apiogre.com, or is it also possible to use the features directly from another script on same server?

vfonsecaz commented 4 years ago

hi,

what do you mean? what are you trying to do?

maka1000 commented 4 years ago

Hi,

I have an application on my server and i need to do requests to ogre which is on same server like the application. The usual way to use the api from ogre is this flow: I send a JSON request to an URL (Domain/IP) and get a JSON respond: [URL] --JSON-->[OGRE]--JSON-->

But I want to do this: I send a JSON request directly to the ogre script (without the API and without the Domain/IP) and get a JSON respond: [App] --JSON-->[OGRE]--JSON-->

vfonsecaz commented 4 years ago

Well in my case I installed ogre via npm so it's acessible via http://localhost:3000 Ogre has two endpoints: http://localhost:3000/convert (convert to geojson) http://localhost:3000/convertJson (convert to shapefile)

I have a web application (javascript) on the same server as ogre wich makes ajax calls to these ogre endpoints...

github-actions[bot] commented 3 years ago

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.

github-actions[bot] commented 3 years ago

This issue was closed because it has been stalled for 5 days with no activity.