Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

Is there any website or web service where I throw a polygon postgis and he show me on the map this polygon.

Example:

I put this

POLYGON((0 0, 1 0, 1 1, 0 1, 0 0))

and the service show me the polygon on a map?

I don't want to create a full application, only want see the polygons that the Mondrian/Pentaho give me and I'd like to see the polygon on a map. If exists some plugin to pentaho that do this, would be perfect.

share|improve this question
    
In fact, the Mondrian returns me a GMX query and I have the possibility to view the geom columns, so, I would like to copy this geom data and paste and some place to view it. –  Luciano Borges Jun 13 '13 at 11:50
add comment

4 Answers 4

postgisonline is for things like this.

go to http://postgisonline.org/map.php and paste your code. But you have to write it as a query understandable for PostGIS and call the geometry the_geom. Then you will, from your example get this in return

enter image description here

share|improve this answer
    
Interesting link. But I could not figure out how to get the query to run. –  Devdatta Tengshe Jun 13 '13 at 10:24
    
press "Map 1", you can also press the number"2" button to get a quick tour, how to use the site. –  Nicklas Avén Jun 13 '13 at 11:16
add comment

You could use a new "webservice" called MapFart :)

alias mapfart='curl -H "Content-Type: application/octet-stream" --data-binary @- mapfart.com/api/fart'
echo 'LINESTRING(3 4,10 50,20 25)' | mapfart
share|improve this answer
add comment

Maybe my understanding of the question, is totally different from other people who have answered, but I think that you have a bunch of polygons in WKT, and you want to see them on a map, as a one time thing.

If so, I'll guide you to this sample of OpenLayers: http://openlayers.org/dev/examples/vector-formats.html

You can paste the WKT in the Box, and select Well Known Text as the format. Then Just press 'add feature'. You will see the geometry on the map.

share|improve this answer
    
Ahh yeah seems I misread the question :) –  Nathan W Jun 13 '13 at 5:26
    
@NathanW I don't think you are to blame. The question is a bit vague. –  Devdatta Tengshe Jun 13 '13 at 6:05
add comment

To set up a web service, try this: http://mapserver.org/trunk/tinyows/ and then use openlayers to view it.

Or you could use QGIS to connect to postGIS and view the data.

Or try this: http://geojason.info/leaflet-vector-layers/demos/postgis-restful-web-service-framework/ which I don't really understand, but seems to use PHP to get vectors for leaflet.

In fact, that last one looks like the easiest. See:

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.