0

I already finish input and run all the GeoDjango code, it worked. But time after time my data got bigger and result in big size of GeoJSON. I used this code to read database from PostgreSQL (PostGIS) as GeoJSON and view it in Leaflet :

def testcrud_datasets(request):
    testcrud = serialize('geojson', Testcrud.objects.all())
    return HttpResponse(testcrud, content_type='json')

Some solution I read suggest that I should use TopoJSON. How to get TopoJSON format from my PostgreSQL database since serialize does not support TopoJSON type?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.