Hi i try to print some border over parcel.
Parcels from wms print corrent (PDF is ok). But when i try to add some
border over parcel, i don't see it on pdf print. I create geojson with
border over parcel.
this i get from SQL: SELECT ST_AsGeoJSON(the_geom) from parcel where id=1
geoJson: {"type": "MultiPolygon", "coordinates": [[[[274604.318116018,
504623.020638737], [274597.85142438, 504652.201942991], [274373.153887072,
504619.643360464], [274377.23721282, 504589.922945945], [274604.318116018,
504623.020638737]]]]}
I send to geoserver print provider post message:
question 1: what is bad i this code?
{type: "Vector",name: "border",opacity:
1,styles:[{"strokeColor":"red","strokeWidth":3,"strokeOpacity":1}], geoJson:
{"type": "MultiPolygon", "coordinates": [[[[274604.318116018,
504623.020638737], [274597.85142438, 504652.201942991], [274373.153887072,
504619.643360464], [274377.23721282, 504589.922945945], [274604.318116018,
504623.020638737]]]]}}
this print wms - works ok.
{"baseURL":"http://my_url.com/","opacity":1,"singleTile":"true","type"
:"WMS","srs":"EPSG:2180","layers":["townx:parcels"],"format":"image/png","styles":[""]}]
--
View this message in context: http://osgeo-org.1560.x6.nabble.com/Geoserver-2-7-0-print-vector-data-geoJson-from-postgis-tp5222458.html
Sent from the GeoServer - User mailing list archive at Nabble.com.